/* RetroWorth — brand tokens mirrored from the app (DesignTokens.swift) */
:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface2: #EEF0F4;
  --text: #16181D;
  --text-dim: #61656E;
  --border: #E2E5EA;
  --ink: #232B3A;
  --ink-deep: #10141D;
  --gold: #B7791F;
  --gold-bright: #E8B04B;
  --gold-text: #8A5A15;
  --radius: 18px;
  --radius-btn: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* header */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .worth { color: var(--gold); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav .cta {
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px;
}

/* hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-deep); color: #fff;
}
.hero-art {
  position: absolute; inset: 0;
  background: url("https://kvuqyadrsvtiswzdowhc.supabase.co/storage/v1/object/public/web/hero-carts.jpg") center 30% / cover no-repeat;
  opacity: 0.5;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,20,29,0.55) 0%, rgba(16,20,29,0.25) 40%, var(--ink-deep) 96%);
}
.hero-inner { position: relative; padding: 104px 0 84px; text-align: center; }
.hero h1 {
  font-size: clamp(38px, 6.5vw, 62px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800;
  background: linear-gradient(120deg, #F3D9A4, var(--gold-bright) 45%, #C98F2E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  margin: 20px auto 0; max-width: 560px;
  font-size: 18.5px; color: rgba(255,255,255,0.86);
}
.hero .chips { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  font-size: 13px; color: var(--gold-bright);
  border: 1px solid rgba(232,176,75,0.5); border-radius: 999px; padding: 6px 13px;
}
.hero .actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-gold {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: var(--ink-deep); font-weight: 800; font-size: 16px;
  padding: 15px 28px; border-radius: var(--radius-btn);
  box-shadow: 0 10px 30px rgba(183,121,31,0.35);
}
.btn-gold:hover { filter: brightness(1.05); }
.hero .store-note { font-size: 13.5px; color: rgba(255,255,255,0.55); }

/* sections */
section { padding: 74px 0; }
.kicker {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-text);
}
h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin-top: 8px; }
.section-head { max-width: 620px; margin-bottom: 38px; }
.section-head p { color: var(--text-dim); margin-top: 10px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(183,121,31,0.12); font-size: 20px; margin-bottom: 14px;
}
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--text-dim); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .n {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: var(--ink-deep); font-weight: 800; font-size: 13px; margin-bottom: 12px;
}

/* pro band */
.pro {
  background: var(--ink-deep); color: #fff; border-radius: 26px;
  padding: 46px 40px; display: flex; gap: 36px; align-items: center; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.pro::after {
  content: ""; position: absolute; inset: 0;
  background: url("https://kvuqyadrsvtiswzdowhc.supabase.co/storage/v1/object/public/web/gold-cart.jpg") right center / 46% auto no-repeat;
  opacity: 0.35; mask: linear-gradient(90deg, transparent 30%, black 75%);
}
.pro > div { position: relative; z-index: 1; }
.pro h2 {
  background: linear-gradient(120deg, #F3D9A4, var(--gold-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pro p { color: rgba(255,255,255,0.8); margin-top: 10px; max-width: 460px; }
.pro .price { margin-top: 18px; font-size: 15px; color: var(--gold-bright); font-weight: 700; }

/* faq */
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 700; font-size: 15.5px; }
details p { margin-top: 10px; color: var(--text-dim); font-size: 14.5px; }

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 34px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: #3A3F49; font-size: 15.5px; }
.legal ul { padding-left: 22px; margin: 8px 0; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 34px 0 44px; }
.foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--text-dim); }
.foot .brand { font-size: 16px; color: var(--text); }
.foot .links { margin-left: auto; display: flex; gap: 18px; }
.foot a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-inner { padding: 84px 0 64px; }
  .pro { padding: 34px 26px; }
  .pro::after { opacity: 0.18; }
}
