/* Fiteran landing site — mobile first (phones are the target), scales up for tablets/desktop */
:root {
  --teal: #0F4B3D;
  --teal-2: #16624F;
  --teal-3: #1E7A63;
  --gold: #D9A441;
  --gold-soft: #F6E7C4;
  --cream: #FBF7EE;
  --ink: #1B2420;
  --muted: #5E6B66;
  --line: #E6E0D2;
  --card: #FFFFFF;
  --serif: 'Fraunces', 'Noto Serif Devanagari', Georgia, serif;
  --sans: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.55 var(--sans); overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
html[lang="hi"] body { line-height: 1.7; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.3; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Buttons: big, thumb-friendly */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--gold); color: var(--teal); font-weight: 700; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(217, 164, 65, .35);
  transition: transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; box-shadow: none; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(15, 75, 61, .96); backdrop-filter: blur(8px); color: #fff; }
.nav-in { display: flex; align-items: center; gap: 10px; height: 58px; }
/* 品牌字标：奔跑小人标志 + 金色 Fiteran（与 App 图标一致） */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: 'Inter', var(--sans); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; color: var(--gold); margin-right: auto; }
.logo img { width: 34px; height: auto; }
.nav-links { display: none; gap: 22px; margin-right: 12px; }
.nav-links a { text-decoration: none; opacity: .85; font-size: 15px; }
.lang { display: flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; color: #fff; font: 600 12px var(--sans);
  padding: 6px 10px; border-radius: 999px; cursor: pointer; min-height: 30px;
}
.lang button.on { background: #fff; color: var(--teal); }
.nav .btn-sm { display: none; }

/* Hero */
.hero { background: radial-gradient(120% 80% at 90% 0%, var(--teal-3) 0%, var(--teal) 55%); color: #fff; padding: 28px 0 40px; overflow: hidden; }
.hero-in { display: grid; gap: 22px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); background: rgba(217,164,65,.14); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: 40px; margin: 16px 0 14px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: 16px; opacity: .9; max-width: 34em; }
.hero-cta { display: grid; gap: 10px; margin: 24px 0 18px; }
.trust-row { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; opacity: .9; }
.trust-row li::before { content: '✓'; color: var(--gold); font-weight: 700; margin-right: 8px; }

/* Hero photo with floating step / coin chips */
.hero-photo { position: relative; margin: 0; order: -1; width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hp-chip { position: absolute; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 16px; padding: 10px 14px; box-shadow: 0 10px 24px rgba(0,0,0,.2); font-size: 13px; }
.hp-chip b { font-family: var(--serif); font-size: 20px; color: var(--teal); }
.hp-steps { top: 16px; left: 16px; flex-direction: column; align-items: flex-start; gap: 0; }
.hp-steps span { color: var(--muted); font-size: 12px; }
.hp-coins { right: 16px; bottom: 18px; background: var(--gold); color: var(--teal); font-weight: 700; }
.hp-coins b { color: var(--teal); }
.hp-coins i { font-style: normal; font-weight: 800; font-size: 18px; }

/* Numbers strip */
.numbers { background: #fff; border-bottom: 1px solid var(--line); }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); padding: 0; }
.nums > div { background: #fff; padding: 20px 16px; text-align: center; }
.nums b { display: block; font-family: var(--serif); font-size: 26px; color: var(--teal); }
.nums span { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 48px 0; }
.section.alt { background: #fff; }
.sec-lead { color: var(--muted); margin: 10px 0 24px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 20px; position: relative; }
.step-img { position: relative; margin-bottom: 14px; }
.step-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.step-img .n { position: absolute; left: 10px; bottom: -14px; margin: 0; box-shadow: 0 0 0 4px #fff; }
.steps li h3, .steps li p { padding: 0 8px; }
.steps li h3 { margin-top: 12px; }
.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.ex-table { width: 100%; border-collapse: collapse; background: var(--cream); border-radius: 16px; overflow: hidden; font-size: 15px; }
.ex-table th, .ex-table td { padding: 14px 12px; text-align: left; }
.ex-table th { background: var(--teal); color: #fff; font-weight: 600; font-size: 13px; }
.ex-table td:last-child { font-weight: 700; color: var(--teal); }
.ex-table tr + tr td { border-top: 1px solid var(--line); }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

.invite { display: grid; gap: 24px; }
.inv-copy .btn { margin-top: 4px; }
.inv-photo { position: relative; margin: 0 0 40px; }
.inv-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.inv-photo .inv-card { position: absolute; left: 16px; right: 16px; bottom: -36px; padding: 16px; box-shadow: 0 14px 30px rgba(15,75,61,.3); }
.inv-photo .inv-card b { font-size: 26px; margin: 4px 0 10px; }
.inv-card { background: var(--teal); color: #fff; border-radius: 22px; padding: 24px; text-align: center; }
.inv-card span { opacity: .8; font-size: 14px; }
.inv-card b { display: block; font-family: var(--serif); font-size: 34px; letter-spacing: .08em; color: var(--gold); margin: 8px 0 16px; }
.inv-share { display: flex; gap: 8px; justify-content: center; }
.inv-share i { font-style: normal; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 8px 16px; }
.inv-share .wa { background: #25D366; color: #fff; }
.inv-share .tg { background: #2AABEE; color: #fff; }

.cards { display: grid; gap: 12px; margin-top: 20px; }
.card { background: var(--cream); border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.card h3::before { content: ''; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--gold); margin-bottom: 12px; }
.card p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; }
.faq h2 { margin-bottom: 14px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 16px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 16px 16px; color: var(--muted); font-size: 15px; }

.final { background: linear-gradient(rgba(11,58,47,.82), rgba(11,58,47,.92)), url(photos/cta.webp) center 30% / cover no-repeat, var(--teal); color: #fff; text-align: center; padding: 72px 0; }
.final h2 { font-size: 30px; }
.final p { opacity: .85; margin: 12px 0 24px; }

.foot { background: #0a2f26; color: rgba(255,255,255,.8); padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot-in { display: grid; gap: 18px; }
.foot .logo { color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.foot-links a { text-decoration: none; }
.foot .fine { color: rgba(255,255,255,.5); margin: 0; }

/* Story: illustrative person + 3-step path with real numbers */
.story-in { display: grid; gap: 24px; }
.story-photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo figcaption { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.eyebrow-dark { color: #8a6412; background: var(--gold-soft); }
.story-copy h2 { margin-top: 12px; }
.story-path { list-style: none; padding: 0; margin: 0 0 8px; counter-reset: sp; }
.story-path li { position: relative; padding: 0 0 18px 44px; counter-increment: sp; }
.story-path li::before { content: counter(sp); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--gold); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.story-path li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 32px; bottom: 2px; border-left: 2px dashed var(--line); }
.story-path b { display: block; font-size: 18px; color: var(--teal); }
.story-path span { color: var(--muted); font-size: 15px; }

/* 带邀请码打开时：导航下方的邀请码条，跟随滚动保持可见 */
.code-bar { position: sticky; top: 58px; z-index: 19; background: var(--gold-soft); border-bottom: 1px solid #EBD39A; color: var(--ink); }
.cb-in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.cb-text { flex: 1; min-width: 0; }
.cb-label { display: block; font-size: 12px; color: #7a5712; font-weight: 600; line-height: 1.3; }
.cb-code { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: .08em; color: var(--teal); white-space: nowrap; line-height: 1.25; user-select: all; -webkit-user-select: all; }
.cb-hint { display: block; font-size: 12px; color: #6b5a33; line-height: 1.4; margin-top: 2px; }
.cb-copy { flex-shrink: 0; border: 0; border-radius: 999px; background: var(--teal); color: #fff; font: 700 14px var(--sans); padding: 0 16px; min-height: 40px; cursor: pointer; }

/* Sticky bottom CTA on phones — appears after the hero scrolls away */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 238, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }

/* ---------- Invite activity page ---------- */
.page-invite .wrap { max-width: 560px; }
.ip-hero { padding: 32px 0 36px; }
.ip-hero h1 { font-size: 36px; margin: 16px 0 12px; }
.ip-code {
  position: relative; margin: 24px 0 14px; padding: 18px; border-radius: 20px; text-align: center;
  background: rgba(255,255,255,.08); border: 1.5px dashed rgba(217,164,65,.7);
}
.ip-code span { font-size: 13px; opacity: .8; }
.ip-code b { display: block; font-family: var(--serif); font-size: 36px; letter-spacing: .1em; color: var(--gold); margin: 4px 0 10px; }
.ip-copy { border: 0; border-radius: 999px; background: #fff; color: var(--teal); font: 600 14px var(--sans); padding: 9px 20px; min-height: 40px; cursor: pointer; }
.ip-nocode { margin: 20px 0; opacity: .85; }
.ip-rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.ip-rewards > div { background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 10px; text-align: center; }
.ip-rewards b { font-family: var(--serif); font-size: 26px; color: var(--teal); }
.ip-rewards span { font-size: 13px; color: var(--muted); margin-left: 4px; }
.ip-rewards em { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: #9a6c14; margin-top: 2px; }
.ip-steps { margin-top: 20px; }
.ip-plus { margin-top: 18px; font-weight: 600; color: var(--teal); }
.page-invite main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

/* ---------- Ad promo page: one screen, one button ---------- */
.page-ad { background: radial-gradient(120% 70% at 85% 0%, var(--teal-3) 0%, var(--teal) 60%); color: #fff; }
.ad {
  min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
}
.ad-top { display: flex; justify-content: space-between; align-items: center; }
.ad-top .logo { font-size: 22px; }
.ad-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; }
.ad-body .eyebrow { align-self: flex-start; }
.ad-body h1 { font-size: 44px; margin: 14px 0 10px; }
.ad-body h1 em { font-style: normal; color: var(--gold); }
.ad-ring { position: relative; width: 150px; height: 150px; margin: 24px auto 20px; }
.ad-ring svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.ad-ring circle { fill: none; stroke-width: 10; }
.ad-ring .t { stroke: rgba(255,255,255,.14); }
.ad-ring .b { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; animation: ring 1.6s .3s ease-out forwards; }
.ad-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ad-ring b { font-family: var(--serif); font-size: 28px; }
.ad-ring span { color: var(--gold); font-weight: 700; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.ad-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ad-list li { background: rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.ad-list li::before { content: '✓'; color: var(--gold); font-weight: 700; margin-right: 10px; }
.ad-foot .btn { min-height: 56px; font-size: 17px; }
.ad-note { text-align: center; font-size: 13px; opacity: .8; margin-top: 10px; }
.ad-fine { text-align: center; font-size: 11px; opacity: .55; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .ad-ring .b { animation: none; stroke-dashoffset: 0; } }

@media (min-width: 720px) {
  h2 { font-size: 36px; }
  .nav-links { display: flex; }
  .nav .btn-sm { display: inline-flex; }
  .hero { padding: 64px 0 72px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero h1 { font-size: 60px; }
  .lead { font-size: 18px; }
  .hero-cta { display: flex; }
  .phone { width: 300px; }
  .nums { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 80px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .example { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
  .example .fine { grid-column: 1 / -1; }
  .invite { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .story-in { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 56px; }
  .hero-photo { order: 0; justify-self: center; max-width: 400px; aspect-ratio: 4 / 5; border-radius: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
  .hero-photo img { object-position: 50% 50%; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .faq { max-width: 760px; }
  .final h2 { font-size: 42px; }
  .foot { padding-bottom: 40px; }
  .foot-in { grid-template-columns: 1fr auto; }
  .sticky-cta { display: none; }
}

/* Download help sheet: in-app browser -> open in Chrome; normal browser -> install steps */
.dl-mask { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.dl-sheet { width: 100%; max-width: 480px; background: #fff; color: var(--ink); border-radius: 22px 22px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,0,.2); animation: dlUp .2s ease-out; }
.dl-sheet h3 { font-size: 20px; margin-bottom: 8px; }
.dl-sheet p { color: var(--muted); margin-bottom: 16px; }
.dl-steps { margin: 4px 0 18px; padding-left: 22px; color: var(--ink); }
.dl-steps li { margin-bottom: 10px; line-height: 1.5; }
.dl-alt { font-size: 14px; margin: 12px 0 0 !important; }
.dl-link { display: block; width: 100%; margin-top: 12px; background: none; border: 0; color: var(--teal); font: 600 15px var(--sans); text-align: center; text-decoration: underline; cursor: pointer; padding: 8px; }
@keyframes dlUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dl-sheet { animation: none; } }
