/* ==========================================================================
   Shoe Box — marketing site styles
   Design tokens ported 1:1 from the app's Claude Design "Shoe Box App" theme
   (lib/theme/tokens.ts, tailwind.config.js). Calm, un-sneaker-like, cream.
   ========================================================================== */

:root {
  /* surfaces & ink */
  --bg:          #F4F1EC;
  --surface:     #FFFFFF;
  --chrome:      #EDE8E0;
  --ink:         #161513;
  --ink-soft:    #5C5851;
  --ink-muted:   #A39E94;
  --line:        rgba(20, 18, 15, 0.10);
  --line-strong: rgba(20, 18, 15, 0.16);

  /* brand card palette (the colour-by-brand shoebox) */
  --sage:       #9CA77B;
  --mustard:    #E0B53C;
  --sky:        #A6C8E0;
  --coral:      #F26C4F;
  --cobalt:     #1F4FBF;
  --cream-card: #EDE6D6;
  --magenta:    #D8418A;
  --lavender:   #B6A8D9;
  --terracotta: #C4623A;
  --card-black: #2A2A2A;
  --red:        #C8252C;
  --pistachio:  #7DB87E;

  /* fit semantics */
  --fit-tight:   #C2451F;
  --fit-perfect: #237A40;
  --fit-loose:   #B07A18;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-sm: 0 1px 2px rgba(20,18,15,.05), 0 4px 14px rgba(20,18,15,.05);
  --shadow:    0 2px 6px rgba(20,18,15,.06), 0 18px 48px rgba(20,18,15,.10);
  --shadow-lg: 0 10px 30px rgba(20,18,15,.10), 0 40px 90px rgba(20,18,15,.18);

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv05';
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--bg); }

/* ----------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.center { text-align: center; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -0.015em; }

.lede { color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; font-weight: 500; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 14px; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }

/* store badges (custom, App-Store-style) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  padding: 11px 18px 11px 16px; border-radius: 15px;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge .sb-top { font-size: 10px; font-weight: 600; opacity: .72; letter-spacing: .02em; }
.store-badge .sb-bot { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; }
.store-badge .sb-soon {
  position: absolute; top: -9px; right: -7px;
  background: var(--mustard); color: var(--ink);
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------------- hero */
.hero { position: relative; padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 82% -8%, rgba(156,167,123,.20), transparent 55%),
    radial-gradient(90% 80% at 0% 0%, rgba(224,181,60,.14), transparent 50%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--terracotta); }
.hero .lede { margin-top: 20px; max-width: 30ch; }
.hero-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-note { font-size: 13px; color: var(--ink-muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fit-perfect); box-shadow: 0 0 0 4px rgba(35,122,64,.14); }

/* ----------------------------------------------------------------- phone */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 327 / 690;
  background: linear-gradient(160deg, #232220, #0d0c0b);
  border-radius: 52px; padding: 13px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.04);
}
.phone-screen {
  position: relative; height: 100%; width: 100%;
  background: var(--bg); border-radius: 40px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(20,18,15,.06);
  display: flex; flex-direction: column;
}
.phone-island {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #0d0c0b; border-radius: 999px; z-index: 5;
}
.app-top { padding: 52px 22px 12px; }
.app-kicker { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-muted); }
.app-title-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 3px; }
.app-title { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; }
.app-count { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); }
.app-deck { position: relative; flex: 1; padding: 8px 18px 0; }

/* shoe cards (the signature stacked shoebox) */
.shoe-card {
  position: relative; border-radius: 20px; padding: 16px 18px 15px;
  box-shadow: 0 1px 1px rgba(20,18,15,.05), 0 14px 26px rgba(20,18,15,.16);
  margin-top: -34px;
}
.shoe-card:first-child { margin-top: 0; }
.shoe-card .sc-brand { font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(20,18,15,.55); }
.shoe-card .sc-model { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: rgba(20,18,15,.92); margin-top: 1px; }
.shoe-card .sc-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.shoe-card .sc-size { font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: .9; color: rgba(20,18,15,.92); }
.shoe-card .sc-size span { font-size: 15px; font-weight: 700; opacity: .55; margin-left: 3px; }

.fit { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.55); }
.fit::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.fit-perfect { color: var(--fit-perfect); } .fit-perfect::before { background: var(--fit-perfect); }
.fit-tight   { color: var(--fit-tight);   } .fit-tight::before   { background: var(--fit-tight); }
.fit-loose   { color: var(--fit-loose);   } .fit-loose::before   { background: var(--fit-loose); }

/* ----------------------------------------------------------------- logos / trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--chrome) 55%, var(--bg)); }
.trust .wrap { padding-top: 32px; padding-bottom: 0; }
.trust-head { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-muted); text-align: center; }

/* slow auto-scrolling brand ribbon */
.marquee {
  position: relative; overflow: hidden; margin: 18px 0 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex; width: max-content; will-change: transform;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  flex: none; margin-right: 48px; white-space: nowrap;
  font-size: clamp(15px, 1.7vw, 19px); font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink-soft); opacity: .72;
}
.marquee-track .more { color: var(--terracotta); opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.fcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .25s, border-color .25s;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.fcard .ficon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 18px; background: var(--chrome);
}
.fcard .ficon svg { width: 24px; height: 24px; stroke: var(--ink); }
.fcard h3 { margin-bottom: 8px; }
.fcard p { color: var(--ink-soft); font-size: 15px; line-height: 1.58; font-weight: 500; }
/* showcase split row */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.showcase.flip .showcase-media { order: -1; }
.showcase h2 { font-size: clamp(26px, 3.4vw, 40px); }
.showcase p { margin-top: 16px; }
.tick-list { margin-top: 22px; display: grid; gap: 13px; }
.tick { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.tick svg { flex: none; width: 21px; height: 21px; margin-top: 1px; }
.tick span { color: var(--ink-soft); font-weight: 500; }
.tick b { font-weight: 700; color: var(--ink); }

/* a loose cluster of cards for showcase media */
.card-cluster { position: relative; padding: 10px; }
.card-cluster .shoe-card { margin: 0 0 16px; box-shadow: var(--shadow); }
.card-cluster .shoe-card:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--ink); }
.step .snum { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--ink-muted); }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--ink-soft); font-size: 15px; line-height: 1.58; font-weight: 500; }

/* ----------------------------------------------------------------- privacy band */
.band {
  background: linear-gradient(168deg, #1b1a17, #0f0e0c); color: var(--bg);
  border-radius: var(--radius-xl); padding: clamp(34px, 5vw, 60px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(156,167,123,.28), transparent 65%); }
.band .eyebrow { color: rgba(244,241,236,.6); }
.band h2 { color: var(--bg); margin-top: 12px; max-width: 18ch; }
.band p { color: rgba(244,241,236,.78); margin-top: 16px; max-width: 56ch; font-size: 16px; line-height: 1.6; }
.band-points { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.band-points .bp b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.band-points .bp span { color: rgba(244,241,236,.66); font-size: 13.5px; line-height: 1.5; }
.band-points .bp { padding-top: 16px; border-top: 1px solid rgba(244,241,236,.16); }

/* ----------------------------------------------------------------- FAQ */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 2px; position: relative;
  font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--ink-muted); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-a { padding: 0 44px 24px 2px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; font-weight: 500; }
.faq .faq-a a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------------------------------------------- CTA */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(32px, 5vw, 58px); font-weight: 900; letter-spacing: -0.035em; max-width: 16ch; margin: 0 auto; }
.cta-final .lede { margin: 18px auto 30px; max-width: 46ch; }
.cta-final .stores { justify-content: center; }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--chrome) 55%, var(--bg)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 60px 0 34px; }
.footer-brand .brand { font-size: 19px; }
.footer-brand p { margin-top: 14px; color: var(--ink-soft); font-size: 14px; max-width: 30ch; line-height: 1.6; font-weight: 500; }
.fcol h4 { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; }
.fcol a { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); padding: 6px 0; transition: color .15s; }
.fcol a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 40px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: var(--ink-muted); font-weight: 500; }
.footer-bottom .fb-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.footer-bottom a:hover { color: var(--ink); }

/* ============================================================ doc / legal pages */
.doc-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.doc-head .eyebrow { margin-bottom: 14px; }
.doc-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -0.035em; }
.doc-head .updated { margin-top: 16px; font-size: 14px; color: var(--ink-muted); font-weight: 600; }
.doc-head .doc-intro { margin-top: 20px; max-width: 64ch; color: var(--ink-soft); font-size: 16.5px; line-height: 1.6; font-weight: 500; }

.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: clamp(36px, 5vw, 64px) 0 40px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc h4 { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.toc a { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 6px 0; line-height: 1.4; transition: color .15s; }
.toc a:hover { color: var(--ink); }

.doc-body { max-width: 720px; }
.doc-body section { padding-top: 14px; margin-bottom: 38px; scroll-margin-top: 92px; }
.doc-body h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.doc-body h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.doc-body p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; font-weight: 500; margin-bottom: 14px; }
.doc-body ul { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.doc-body ul li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 16px; line-height: 1.62; font-weight: 500; }
.doc-body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.doc-body ul li b, .doc-body p b { color: var(--ink); font-weight: 700; }
.doc-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.doc-body .callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--terracotta);
  border-radius: 14px; padding: 18px 20px; margin: 6px 0 18px;
}
.doc-body .callout p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.doc-body .callout p b { color: var(--ink); }

.data-table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 14.5px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); font-weight: 800; }
.data-table td { color: var(--ink-soft); font-weight: 500; line-height: 1.5; }
.data-table td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* support page specifics */
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0 8px; }
.support-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.support-card .ficon { width: 44px; height: 44px; border-radius: 12px; background: var(--chrome); display: grid; place-items: center; margin-bottom: 16px; }
.support-card .ficon svg { width: 23px; height: 23px; stroke: var(--ink); }
.support-card h3 { font-size: 18px; margin-bottom: 7px; }
.support-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; font-weight: 500; }
.support-card a.inline { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* the support line at the end of each page */
.support-line { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 26px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; font-weight: 500; }
.support-line a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.back-link:hover { color: var(--ink); }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lede { max-width: 46ch; }
  .hero-actions { align-items: stretch; }
  .phone-stage { margin-top: 8px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .showcase.flip .showcase-media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .band-points { grid-template-columns: 1fr; }
  .support-cards { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .store-badge { flex: 1; }
}
