:root {
  --bg: #f2f0ee;
  --bg-2: #fffcf8;
  --ink: #2b353c;
  --muted: #47566d;
  --line: rgba(43, 53, 60, 0.12);
  --accent: #2c4eb5;
  --cta: #2c4eb5;
  --cta-ink: #fff;
  --chip: #2b353c;
  --header-h: 56px;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  overflow-x: clip;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Hiragino Sans", "Geeza Pro", "Noto Naskh Arabic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a, button { touch-action: manipulation; }

.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 80;
}
.skip-link:focus { inset-inline-start: 8px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: rgba(242, 240, 238, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

body.on-hero .site-header {
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.82), rgba(8, 10, 12, 0.08) 90%, transparent);
  border-bottom-color: transparent;
  color: #f7f3ee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 24px, 720px);
  margin-inline: auto;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.brand-mark { width: 108px; height: auto; display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 12px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

body.on-hero .lang-btn {
  background: rgba(247, 243, 238, 0.08);
  color: #f7f3ee;
  border-color: rgba(247, 243, 238, 0.42);
}

.lang-icon { width: 18px; height: 18px; display: block; }

body.on-hero .btn-header {
  background: #f4f0ea;
  color: #1a1c1e;
}

.lang-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

#lang-code { font-size: 12px; font-weight: 800; }
.lang-btn-label { font-size: 10px; font-weight: 650; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 750;
  border: 0;
  text-align: center;
}

.btn-header {
  min-height: 44px;
  padding: 8px 14px;
  background: var(--cta);
  color: var(--cta-ink);
  font-size: 14px;
}

.btn-primary {
  width: 100%;
  background: var(--cta);
  color: var(--cta-ink);
  font-size: 17px;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 8px) 0 14px;
  background: #111418;
}

.hero-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #111418;
  border-radius: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 100dvh;
  object-fit: cover;
  object-position: 68% 16%;
  filter: saturate(0.92) contrast(1.1) brightness(1.04);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.22) 0%, rgba(8, 10, 12, 0) 16%, rgba(8, 10, 12, 0.08) 46%, rgba(8, 10, 12, 0.86) 100%),
    linear-gradient(90deg, rgba(8, 10, 12, 0.22) 0%, rgba(8, 10, 12, 0) 36%, transparent 68%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 720px);
  margin-inline: auto;
  padding-bottom: 8px;
  color: #f7f3ee;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(247, 243, 238, 0.72);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(28px, 7.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.hero h1 {
  color: #f7f3ee;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

html[lang="zh-Hant"] .hero h1,
html[lang="ja"] .hero h1,
html[lang="ko"] .hero h1,
html[lang="th"] .hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Hiragino Sans", "Songti TC", sans-serif;
  font-weight: 650;
}

html[lang="ar"] .hero h1 {
  font-family: "Geeza Pro", "Noto Naskh Arabic", serif;
}

.lede {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.hero .lede {
  color: rgba(247, 243, 238, 0.86);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero .btn-primary {
  background: #f4f0ea;
  color: #1a1c1e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background: #fff;
}

.hero-note {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.hero .hero-note {
  color: rgba(247, 243, 238, 0.62);
}

.proof-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-row li {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 4px;
  border-radius: 12px;
  background: var(--chip);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.hero .proof-row li {
  background: rgba(247, 243, 238, 0.12);
  border: 1px solid rgba(247, 243, 238, 0.22);
  color: #f7f3ee;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.trust-row {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 243, 238, 0.55);
}

.hero-peek {
  position: relative;
  z-index: 1;
  width: min(100% - 24px, 720px);
  margin: 10px auto 0;
  padding: 12px 12px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.peek-kicker,
.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.peek-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.peek-cards span {
  min-height: 52px;
  border-radius: 12px;
  background: #e8e4de;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  text-align: center;
}

.peek-cards b { color: var(--accent); font-size: 15px; font-weight: 800; }
.peek-cards em {
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.peek-more { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

a.hero-peek {
  display: block;
  text-decoration: none;
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  .peek-more {
    animation: peekHint 2.2s ease-in-out 1.4s 3;
  }
}

@keyframes peekHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

#pace {
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top) + 12px);
}

.pace-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pace-grid li {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #ece7e0;
}

.pace-grid b {
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pace-grid span {
  color: var(--muted);
  font-size: 14px;
}

.panel {
  width: min(100% - 32px, 720px);
  margin: 0 auto 18px;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.section-lede,
.panel p { margin: 0 0 12px; color: var(--muted); }

.sold-row {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.sold-row li {
  display: grid;
  gap: 2px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #ece7e0;
}

.sold-row b {
  font-size: clamp(26px, 7vw, 32px);
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1.1;
}

.sold-row strong { font-size: 15px; }
.sold-row span { color: var(--muted); font-size: 12px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.tag-row li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.steps li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: #ece7e0;
}

.steps strong { font-size: 16px; }
.steps span { color: var(--muted); font-size: 14px; }

.fine { font-size: 12px; }

.fee-picks {
  display: grid;
  gap: 8px;
}

.fee-pick {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 2px 8px;
  padding: 12px;
  border-radius: 12px;
  background: #ece7e0;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.fee-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.fee-pct {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.fee-pick em {
  grid-column: 1 / -1;
  display: none;
  margin: 4px 0 0;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.fee-pick:has(input:checked) {
  background: #fff;
  border-color: var(--accent);
}

.fee-pick:has(input:checked) em {
  display: block;
}

.quotes {
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.quotes li {
  flex: 0 0 min(82%, 340px);
  scroll-snap-align: start;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: #ece7e0;
}

.honesty ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--muted);
}
.honesty li + li { margin-top: 8px; }

.quotes p { margin: 0; color: var(--ink); font-size: 15px; }
.quotes cite { color: var(--muted); font-size: 13px; font-style: normal; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq p { margin: 8px 0 0; }

.final .text-link { display: block; }

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  width: min(100% - 32px, 720px);
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 12px;
}

.sticky-action {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  background: rgba(242, 240, 238, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.sticky-action[hidden] { display: none; }

.lang-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.45);
}

.lang-backdrop[hidden],
.lang-sheet[hidden] { display: none; }

.lang-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 12px 16px max(20px, env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 18px 18px 0 0;
}

.lang-sheet-title { margin: 4px 0 10px; text-align: center; font-weight: 700; }

.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lang-option {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #ece7e0;
  color: var(--ink);
  cursor: pointer;
}

.lang-option[aria-current="true"] {
  background: var(--cta);
  color: #fff;
}

[dir="rtl"] .lang-btn-copy { align-items: flex-end; }
[dir="rtl"] .hero-visual img { object-position: 32% 16%; }

body.lang-open { overflow: hidden; }
body.lang-open .sticky-action,
body.on-hero .sticky-action { display: none; }

@media (max-width: 359px) {
  .lang-btn-label { display: none; }
  .brand-mark { width: 92px; }
  .hero h1 { font-size: 26px; }
  .hero .lede { font-size: 14px; }
  .hero-note { display: none; }
  .peek-cards span { min-height: 46px; }
}

@media (min-width: 720px) {
  .hero .btn-primary,
  .final .btn-primary {
    width: auto;
    min-width: 280px;
  }

  .hero-copy {
    max-width: 34rem;
    margin-inline-start: max(2rem, calc(50vw - 340px));
    margin-inline-end: auto;
    padding-bottom: 20px;
  }

  .hero-visual img {
    object-position: 74% 22%;
  }

  [dir="rtl"] .hero-visual img {
    object-position: 26% 22%;
  }

  [dir="rtl"] .hero-copy {
    margin-inline-start: auto;
    margin-inline-end: max(2rem, calc(50vw - 340px));
  }
}
