/*
  CartGo landing page (EN + KO).
  Design system: DESIGN.md 2.0.0, direction D "Tide sticker" (locked 2026-10-18).
  Warm and plain. Tide for action, coral only for money (inside the app screens).
  Flat surfaces, 1.5px line borders, pills, left-aligned, sentence case, no loops.
*/

:root {
  --ink: #13213A;
  --white: #FFFFFF;
  --mist: #F3F6F8;
  --mint: #E6F6F2;
  --tide: #0B7F6E;
  --tide-pressed: #0A7565;
  --tide-deep: #0B5F53;
  --spray: #5EE0C8;
  --line: #DCE3E9;
  --slate: #55657A;
  --slate-on-ink: #A9B6C7;
  --dark-line: #2C3D5A;

  --font: "Archivo", "Nanum Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-pill: 999px;
  --r-card: 22px;
  --r-panel: 28px;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body:lang(ko) {
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--tide);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--tide-pressed);
}

:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 2px;
  border-radius: 6px;
}

.on-ink :focus-visible {
  outline-color: var(--spray);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Type ---------- */

.display {
  font-size: clamp(2.5rem, 1.6rem + 3.2vw, 3.75rem);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.display:lang(ko) {
  font-size: clamp(2.125rem, 1.45rem + 2.7vw, 3.375rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-title:lang(ko) {
  font-size: clamp(1.625rem, 1.25rem + 1.4vw, 2.25rem);
  line-height: 1.3;
}

.item-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.lead {
  max-width: 36em;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
}

.lead:lang(ko) {
  line-height: 1.7;
}

.muted {
  color: var(--slate);
}

.fineprint {
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.45;
}

.caption {
  margin-top: 14px;
  color: var(--slate);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1.5px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.wordmark {
  font-size: 1.5rem;
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-button svg {
  width: 20px;
  height: 20px;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 20px;
  background: var(--white);
  border-bottom: 1.5px solid var(--line);
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--tide);
}

.nav-list .nav-cta {
  margin-top: 8px;
}

@media (min-width: 960px) {
  .menu-button {
    display: none;
  }

  .site-nav,
  .site-nav[hidden] {
    position: static;
    display: block;
    padding: 0;
    border: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .nav-list a {
    font-size: 0.9375rem;
  }

  .nav-list .nav-cta {
    margin-top: 0;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--tide);
  color: var(--white);
}

.nav-list a.btn-primary,
.nav-list a.btn-primary:hover {
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--tide-pressed);
  color: var(--white);
}

.btn-large {
  min-height: 56px;
  font-size: 1.0625rem;
}

/* ---------- Store badges (official artwork, unchanged) ---------- */
/* Apple: black badge first, at least 40px tall, clear space 1/4 of the height.
   Google: at least 28px tall, the same size as the other badge, clear space 1/4. */

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.badge-link {
  display: inline-block;
  border-radius: 10px;
}

.badge-link img {
  width: auto;
  height: 48px;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-copy .display {
  margin-bottom: 22px;
}

.hero-copy .badges {
  margin-top: 32px;
}

.hero-note {
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 700;
}

.hero-copy .fineprint {
  margin-top: 10px;
}

.stage {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding: 0 24px 32px;
  border-radius: var(--r-panel);
  background: var(--mint);
}

.stage .screen {
  width: min(100%, 272px);
  margin-top: -48px;
}

.screen {
  width: 100%;
  height: auto;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: var(--white);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(40px, 5vw, 80px);
  }

  .stage {
    padding: 0 40px 40px;
  }

  .stage .screen {
    width: min(100%, 320px);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

.section-rule {
  border-top: 1.5px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head .lead {
  margin-top: 18px;
}

/* How it works */

.steps {
  display: grid;
  gap: 48px;
}

.step-figure {
  max-width: 240px;
  margin-bottom: 24px;
}

@media (min-width: 820px) {
  .step-figure {
    max-width: 300px;
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.step p {
  max-width: 30em;
  margin-top: 8px;
}

.policy-note {
  max-width: 44rem;
  margin-top: clamp(36px, 5vw, 56px);
  padding: 16px 20px;
  border-radius: var(--r-card);
  background: var(--mist);
  color: var(--slate);
  font-size: 0.9375rem;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
  }
}

/* Free and Pro */

.plans {
  display: grid;
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
}

.plan-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ring {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--slate);
  font-size: 0.8125rem;
  font-weight: 700;
}

.ring-pro {
  border-color: var(--tide);
  color: var(--tide);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.plan-tagline {
  color: var(--slate);
  font-size: 0.9375rem;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 20px;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-unit {
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 600;
}

.checks li {
  position: relative;
  padding-left: 32px;
}

.checks li + li {
  margin-top: 12px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  background: var(--tide);
  /* Phosphor "check" (regular), MIT licence */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plans-note {
  margin-top: 20px;
  color: var(--slate);
}

.credits {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-panel);
  background: var(--mist);
}

.credits p {
  max-width: 34em;
  margin-top: 12px;
}

.credits-figure {
  max-width: 240px;
}

@media (min-width: 820px) {
  .credits-figure {
    max-width: 280px;
  }
}

.screen-crop {
  aspect-ratio: 640 / 860;
  object-fit: cover;
  object-position: top;
}

@media (min-width: 820px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 960px;
  }

  .credits {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: clamp(32px, 5vw, 72px);
  }
}

/* Before you shop */

.shop {
  display: grid;
  gap: 48px;
}

.shop-item p {
  max-width: 30em;
  margin-top: 8px;
}

.shop-item .step-figure {
  margin-bottom: 24px;
}

.members {
  padding: 28px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
}

.members p {
  margin-top: 8px;
}

@media (min-width: 820px) {
  .shop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
  }
}

/* Privacy */

.facts {
  display: grid;
  gap: 28px;
}

.fact h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
}

.fact p {
  margin-top: 6px;
  color: var(--slate);
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 36px;
}

.privacy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

@media (min-width: 820px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 56px;
    max-width: 960px;
  }
}

/* FAQ */

.faq {
  max-width: 48rem;
  border-top: 1.5px solid var(--line);
}

.faq details {
  border-bottom: 1.5px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 14px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--slate);
  /* Phosphor "caret-down" (regular), MIT licence */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 150ms ease-out;
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq summary:hover {
  color: var(--tide);
}

.faq-answer {
  padding: 0 0 22px;
}

.faq-answer p {
  max-width: 40em;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* ---------- Ink: final call and footer ---------- */

.on-ink {
  background: var(--ink);
  color: var(--white);
}

.on-ink a {
  color: var(--white);
}

.on-ink a:hover {
  color: var(--spray);
}

.final {
  padding-block: clamp(64px, 9vw, 112px);
}

.final .lead {
  margin-top: 16px;
  color: var(--slate-on-ink);
}

.final .badges {
  margin-top: 32px;
}

.site-footer {
  padding-block: 48px 40px;
  border-top: 1.5px solid var(--dark-line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--slate-on-ink);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1.5px solid var(--dark-line);
  color: var(--slate-on-ink);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.footer-legal p + p {
  margin-top: 8px;
}

/* ---------- Mobile sticky bar ---------- */

.sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 84px;
  }

  .sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: block;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1.5px solid var(--line);
    box-shadow: 0 -6px 22px rgba(19, 33, 58, 0.12);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 250ms ease-out, visibility 0s linear 250ms;
  }

  .sticky-bar.is-shown {
    transform: none;
    visibility: visible;
    transition: transform 250ms ease-out;
  }

  .sticky-bar .btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
