/* 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;
  --gold-bg: rgba(183,121,31,0.12);
  --radius: 22px;
  --radius-btn: 16px;
  --display: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .brand, .display { font-family: var(--display); font-weight: 400; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16,20,29,0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}
header.light {
  background: rgba(245,246,248,0.84);
  border-bottom-color: var(--border);
  color: var(--text);
}
.nav { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand .worth { color: var(--gold-bright); }
header.light .brand .worth, footer .brand .worth { color: var(--gold); }
.nav-links { display: flex; gap: 22px; margin-left: auto; margin-right: 8px; font-size: 14.5px; opacity: 0.78; }
.nav-links a:hover { opacity: 1; }
.nav .cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: var(--ink-deep); font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.nav .cta svg { width: 14px; height: 14px; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: inherit;
  border-radius: 999px; padding: 6px 10px 6px 8px; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
header.light .lang-btn { background: var(--surface); border-color: var(--border); }
.lang-btn:hover { border-color: rgba(232,176,75,0.6); }
.lang .flag { width: 20px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.lang .chev { width: 14px; height: 14px; opacity: 0.7; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 210px; list-style: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 50px rgba(16,20,29,0.28);
}
.lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 500;
}
.lang-menu a:hover { background: var(--surface2); }
.lang-menu a[aria-current="true"] { background: var(--gold-bg); color: var(--gold-text); font-weight: 700; }
.lang-menu a[aria-current="true"]::after { content: "✓"; margin-left: auto; font-size: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-deep); color: #fff;
}
.hero-art {
  position: absolute; inset: 0;
  background: url("assets/hero-carts.webp") center 40% / cover no-repeat;
  opacity: 0.42;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 72% 45%, rgba(232,176,75,0.22), transparent 70%),
    linear-gradient(180deg, rgba(16,20,29,0.35) 0%, rgba(16,20,29,0.55) 55%, var(--ink-deep) 100%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 40px; padding: 84px 0 64px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-bright); font-weight: 700;
}
.hero .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-bright); border-radius: 2px; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #F3D9A4, var(--gold-bright) 45%, #C98F2E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  margin-top: 20px; max-width: 520px;
  font-size: 18.5px; color: rgba(255,255,255,0.84);
}
.hero .actions { margin-top: 32px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero .android { font-size: 13.5px; color: rgba(255,255,255,0.55); }
.hero .android strong { color: rgba(255,255,255,0.8); font-weight: 600; }
.hero .trust { margin-top: 26px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,0.7); }
.hero .trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero .trust svg { width: 15px; height: 15px; color: var(--gold-bright); }

/* App Store badge */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px; padding: 9px 16px 9px 13px; line-height: 1.05;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.badge:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,0.45); }
.badge svg { width: 26px; height: 30px; fill: #fff; flex: none; }
.badge svg.play { width: 28px; height: 28px; }
.badge small { display: block; font-size: 10.5px; letter-spacing: 0.02em; opacity: 0.9; }
.badge b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-top: 1px; }

/* phones */
.phone {
  --pw: 300px;
  width: var(--pw); flex: none;
  background: #0A0D13;
  border-radius: calc(var(--pw) * 0.148);
  padding: calc(var(--pw) * 0.022);
  box-shadow:
    0 40px 90px rgba(0,0,0,0.55),
    0 0 0 1.5px rgba(232,176,75,0.28),
    inset 0 0 0 2px rgba(255,255,255,0.06);
}
.phone .screen {
  border-radius: calc(var(--pw) * 0.128); overflow: hidden; background: #F5F6F8;
  aspect-ratio: 1320 / 2868;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.hero-stage { position: relative; height: 680px; }
.hero-stage .phone { position: absolute; }
.hero-stage .p-front { --pw: 296px; left: 50%; top: 20px; transform: translateX(-38%) rotate(-4deg); z-index: 2; }
.hero-stage .p-back  { --pw: 250px; left: 50%; top: 60px; transform: translateX(36%) rotate(7deg); opacity: 0.94; }
.float {
  position: absolute; z-index: 3; width: max-content; max-width: 90%;
  background: linear-gradient(135deg, #232B3A, #10141D);
  border-radius: 18px; padding: 14px 18px; color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1.5px rgba(232,176,75,0.35);
  font-family: var(--display);
}
.float .cap { font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.float .money { font-size: 26px; margin-top: 2px; color: #F3D9A4; }
.float .meta { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.hero-stage .f1 { left: 2%; bottom: 96px; transform: rotate(-3deg); }
.hero-stage .f2 { right: 0; top: 16px; transform: rotate(3deg); padding: 10px 14px; }
.hero-stage .f2 .chip { font-size: 13px; letter-spacing: 0.08em; color: var(--gold-bright); font-weight: 700; }
.hero-stage .f2 .chip::before { content: "● "; font-size: 9px; vertical-align: 2px; }

/* ---------- proof strip ---------- */
.proof { background: var(--ink-deep); color: #fff; padding: 0 0 56px; }
.proof .row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  background: rgba(255,255,255,0.03); padding: 22px 24px;
}
.proof .stat { padding: 4px 8px; border-left: 1px solid rgba(255,255,255,0.08); }
.proof .stat:first-child { border-left: 0; }
.proof .big { font-family: var(--display); font-size: 28px; color: #F3D9A4; line-height: 1.1; }
.proof .lbl { font-size: 13.5px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.kicker {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-text);
}
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.12; margin-top: 10px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--text-dim); margin-top: 12px; font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* feature rows (text + phone) */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 36px 0;
}
.feature + .feature { border-top: 1px solid var(--border); }
.feature.flip .f-text { order: 2; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.15; margin-top: 10px; }
.feature p { color: var(--text-dim); margin-top: 14px; font-size: 16.5px; max-width: 460px; }
.feature ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.feature li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold); }
.f-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 560px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(420px 320px at 50% 40%, rgba(232,176,75,0.28), transparent 70%), linear-gradient(160deg, #1B2232, #10141D);
}
.f-visual .phone { --pw: 250px; transform: rotate(-3deg); }
.feature.flip .f-visual .phone { transform: rotate(3deg); }
.f-visual.photo::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/shelf.webp") center / cover no-repeat; opacity: 0.35;
}
.f-visual.photo-carts::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/hero-carts.webp") center / cover no-repeat; opacity: 0.4;
}
.f-visual .phone { position: relative; z-index: 1; }
.f-visual .tag {
  position: absolute; z-index: 2; width: max-content; max-width: 88%; background: #fff; color: var(--text);
  border-radius: 14px; padding: 10px 14px; font-size: 13.5px; font-family: var(--display);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.f-visual .tag b { display: block; color: var(--gold-text); font-size: 17px; }
.f-visual .tag.bl { left: 22px; bottom: 64px; transform: rotate(-3deg); }
.f-visual .tag.br { right: 22px; bottom: 64px; transform: rotate(2deg); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; position: relative;
}
.step .n {
  width: 34px; height: 34px; 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: 14px; margin-bottom: 16px;
  font-family: var(--display);
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* pro band */
.pro {
  background: var(--ink-deep); color: #fff; border-radius: 28px;
  padding: 56px 52px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
  position: relative; overflow: hidden;
}
.pro::after {
  content: ""; position: absolute; inset: 0;
  background: url("assets/gold-cart.webp") right center / 58% auto no-repeat;
  opacity: 0.5; mask: linear-gradient(90deg, transparent 32%, black 78%); -webkit-mask: linear-gradient(90deg, transparent 32%, black 78%);
}
.pro > * { position: relative; z-index: 1; }
.pro .kicker { color: var(--gold-bright); }
.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: 12px; max-width: 480px; font-size: 16.5px; }
.pro ul { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.pro li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.pro li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-bright); }
.pro .pricebox {
  justify-self: end; background: rgba(255,255,255,0.06); border: 1px solid rgba(232,176,75,0.35);
  border-radius: 20px; padding: 24px 26px; min-width: 260px; text-align: center; backdrop-filter: blur(6px);
}
.pro .pricebox .amt { font-family: var(--display); font-size: 40px; color: #F3D9A4; line-height: 1; }
.pro .pricebox .per { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.pro .pricebox .alt { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }
.btn-gold {
  display: inline-block;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  color: var(--ink-deep); font-weight: 800; font-size: 15.5px;
  padding: 14px 24px; border-radius: var(--radius-btn);
  box-shadow: 0 10px 30px rgba(183,121,31,0.35);
}
.btn-gold:hover { filter: brightness(1.05); }
.pro .pricebox .btn-gold { margin-top: 18px; width: 100%; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 22px;
}
details summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; font-size: 20px; color: var(--gold); line-height: 1; flex: none;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--text-dim); font-size: 15px; }
details a { color: var(--gold-text); font-weight: 600; text-decoration: underline; }

/* final cta */
.final {
  position: relative; overflow: hidden; background: var(--ink-deep); color: #fff; text-align: center;
  padding: 96px 0;
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/shelf.webp") center / cover no-repeat; opacity: 0.28;
}
.final::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 50% 60%, rgba(232,176,75,0.25), transparent 70%),
              linear-gradient(180deg, var(--ink-deep) 0%, rgba(16,20,29,0.5) 40%, rgba(16,20,29,0.7) 100%);
}
.final .wrap { position: relative; z-index: 1; }
.final .icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.final h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  background: linear-gradient(120deg, #F3D9A4, var(--gold-bright) 45%, #C98F2E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.final p { color: rgba(255,255,255,0.8); margin: 14px auto 0; max-width: 520px; font-size: 17px; }
.final .actions { margin-top: 30px; display: flex; justify-content: center; gap: 16px; align-items: center; flex-wrap: wrap; }
.final .note { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 16px; }

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 34px; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 34px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: #3A3F49; font-size: 15.5px; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal a { color: var(--gold-text); font-weight: 600; }
.legal .legal-note { font-size: 13.5px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 26px; }

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

/* Turkish: keep brand names ("iPhone") out of the locale-aware uppercase */
:lang(tr) .hero .eyebrow { text-transform: none; letter-spacing: 0.03em; }

@media (max-width: 360px) { .brand > span { display: none; } }

/* CJK tweaks */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.25; }
:lang(ja) .hero h1 { font-size: clamp(30px, 3.6vw, 48px); }
:lang(ja) .final h2 { font-size: clamp(26px, 3.4vw, 40px); }
:lang(ja) body, :lang(ja) p { line-break: strict; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 64px 0 72px; text-align: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero .actions, .hero .trust { justify-content: center; }
  .hero-stage { width: 100%; height: 560px; max-width: 560px; margin: 8px auto 0; }
  .hero-stage .p-front { --pw: 250px; }
  .hero-stage .p-back { --pw: 210px; }
  .proof .row { grid-template-columns: repeat(2, 1fr); }
  .proof .stat:nth-child(3) { border-left: 0; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .f-text { order: 0; }
  .f-visual { min-height: 480px; }
  .steps { grid-template-columns: 1fr; }
  .pro { grid-template-columns: 1fr; padding: 40px 30px; }
  .pro .pricebox { justify-self: stretch; }
  .pro::after { opacity: 0.22; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: 10px; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .lang-code, .lang .chev { display: none; }
  .lang-btn { padding: 7px 8px; gap: 0; }
  .nav .cta { padding: 8px 12px; font-size: 13px; }
  .brand { font-size: 18px; gap: 8px; }
  .hero-stage { height: 470px; }
  .hero-stage .p-front { --pw: 210px; top: 10px; transform: translateX(-46%) rotate(-4deg); }
  .hero-stage .p-back { --pw: 176px; top: 40px; transform: translateX(30%) rotate(7deg); }
  .hero-stage .f1 { left: 4px; right: auto; bottom: 36px; padding: 10px 14px; }
  .hero-stage .f1 .money { font-size: 20px; }
  .hero-stage .f2 { display: none; }
  .proof .row { grid-template-columns: 1fr 1fr; padding: 16px; gap: 8px; }
  .proof .big { font-size: 22px; }
  section { padding: 64px 0; }
  .f-visual { min-height: 440px; }
  .f-visual .phone { --pw: 210px; }
  .f-visual .tag.bl { left: 10px; bottom: 24px; }
  .f-visual .tag.br { right: 10px; bottom: 24px; }
  .pro { padding: 32px 22px; border-radius: 22px; }
  .final { padding: 72px 0; }
}
