/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --bg-paper: #FBF5EF;
  --bg-surface: #FFFFFF;
  --bg-surface-2: #F6E9DC;
  --ink: #2B2015;
  --ink-soft: #63503F;
  --ink-faint: #9A836E;
  --line: #EEDFCE;
  --line-strong: #DFC6A9;

  --orange-signal: #E8590C;
  --orange-signal-dark: #B8420A;
  --orange-signal-tint: #FCE7D6;

  --amber-pending: #F2A63D;
  --amber-pending-dark: #D6890F;
  --amber-pending-tint: #FDF1DD;

  --green-verified: #2E9E56;
  --green-verified-tint: #E5F5EA;

  --coral-muted: #B0403C;
  --coral-muted-tint: #F6E4E2;

  --font-cjk: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max-width: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(43, 32, 21, 0.05), 0 8px 24px -12px rgba(43, 32, 21, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(43, 32, 21, 0.07), 0 16px 32px -14px rgba(43, 32, 21, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-paper: #1B140E;
    --bg-surface: #241B14;
    --bg-surface-2: #2C2117;
    --ink: #F5EAE0;
    --ink-soft: #D8C3B0;
    --ink-faint: #A38C77;
    --line: #3B2C20;
    --line-strong: #4C382A;
    --orange-signal: #FF8A4C;
    --orange-signal-dark: #FFB37E;
    --orange-signal-tint: #3D2618;
    --amber-pending-tint: #33270F;
    --green-verified-tint: #163524;
    --coral-muted-tint: #3A1F1E;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 32px -14px rgba(0, 0, 0, 0.6);
  }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-cjk);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--orange-signal-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-cjk);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.35; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); margin-top: 2.4em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; color: var(--ink-soft); }
li { margin-bottom: 0.5em; }
strong { color: var(--ink); font-weight: 700; }

.num, .stat-value, .step-index, .otp-cell {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 3px solid var(--amber-pending);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 3.2rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding: 2rem 0; }

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  margin-bottom: 1.6em;
}

hr.rule { border: none; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  flex-shrink: 0;
}
.site-logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.site-logo__word { white-space: nowrap; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--orange-signal-dark); }
.site-nav a.active { color: var(--orange-signal-dark); border-bottom-color: var(--orange-signal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1.5rem 1.2rem;
    gap: 0.2rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 0.6rem 0; border-bottom: none; }
  .site-nav a.active { border-bottom: none; color: var(--orange-signal-dark); }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Buttons / CTA
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn--primary {
  background: var(--amber-pending);
  color: #221605;
  box-shadow: 0 6px 18px -6px rgba(214, 137, 15, 0.55);
}
.btn--primary:hover { background: var(--amber-pending-dark); transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(214, 137, 15, 0.6); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--orange-signal-dark);
  border: 1.5px solid var(--orange-signal);
}
.btn--ghost:hover { background: var(--orange-signal-tint); }

.cta-block {
  background: linear-gradient(155deg, var(--orange-signal-dark), var(--orange-signal) 70%);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  margin: 2.6rem 0;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  box-shadow: var(--shadow-card);
}
.cta-block__text h3 { color: #fff; margin: 0 0 0.3em; }
.cta-block__text p { color: rgba(255, 255, 255, 0.82); margin: 0; }
.cta-block__text a { color: #fff; text-decoration: underline; }
.cta-block .btn--primary { flex-shrink: 0; }
.cta-block--compact { padding: 1.4rem 1.6rem; }

/* ==========================================================================
   OTP digit motif (signature element)
   ========================================================================== */
.otp-row {
  display: inline-flex;
  gap: 0.4rem;
}
.otp-cell {
  width: 2.4rem;
  height: 2.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange-signal-dark);
}
.otp-cell--empty { border-style: dashed; color: var(--ink-faint); background: transparent; }
.otp-cell--fill-in {
  animation: otp-fill 2.4s ease-in-out infinite;
}
.otp-cell--fill-in:nth-child(1) { animation-delay: 0s; }
.otp-cell--fill-in:nth-child(2) { animation-delay: 0.12s; }
.otp-cell--fill-in:nth-child(3) { animation-delay: 0.24s; }
.otp-cell--fill-in:nth-child(4) { animation-delay: 0.36s; }
.otp-cell--fill-in:nth-child(5) { animation-delay: 0.48s; }
.otp-cell--fill-in:nth-child(6) { animation-delay: 0.6s; }
@keyframes otp-fill {
  0%, 8% { transform: translateY(0); background: var(--bg-surface); border-color: var(--line-strong); }
  4% { transform: translateY(-3px); background: var(--orange-signal-tint); border-color: var(--orange-signal); }
  100% { transform: translateY(0); background: var(--bg-surface); border-color: var(--line-strong); }
}
@media (prefers-reduced-motion: reduce) {
  .otp-cell--fill-in { animation: none; background: var(--orange-signal-tint); border-color: var(--orange-signal); }
}

.hero {
  padding: 3.4rem 0 2.6rem;
  background: radial-gradient(120% 140% at 85% -10%, var(--orange-signal-tint), transparent 60%), var(--bg-paper);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-signal-dark);
  background: var(--orange-signal-tint);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.1em;
}
.hero__eyebrow svg { width: 1em; height: 1em; }
.hero__lede { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1.6em; }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero__device {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.hero__device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.hero__device-head .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-verified);
  display: inline-block;
  margin-right: 0.4em;
  box-shadow: 0 0 0 3px var(--green-verified-tint);
}
.hero__device-caption { text-align: center; font-size: 0.9rem; color: var(--ink-soft); margin: 1rem 0 0.3rem; }
.hero__countdown { text-align: center; font-family: var(--font-mono); color: var(--amber-pending-dark); font-size: 0.95rem; font-weight: 700; }
.hero__otp-wrap { display: flex; justify-content: center; padding: 0.6rem 0 0.2rem; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__device { max-width: 360px; }
}

/* ==========================================================================
   Stat / icon grid (infographic block)
   ========================================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.8rem 0 2.4rem;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.stat-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.stat-card__icon {
  width: 2.2rem; height: 2.2rem;
  color: var(--orange-signal);
  margin-bottom: 0.7rem;
}
.stat-card__icon svg { width: 100%; height: 100%; }
.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1.15;
}
.stat-label { font-size: 0.88rem; color: var(--ink-faint); margin-top: 0.3rem; display: block; }
.stat-card__title { font-size: 1rem; font-weight: 700; color: var(--ink); display: block; }

.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid--3 .stat-card { text-align: center; }
.stat-grid--3 .stat-card__icon { margin-left: auto; margin-right: auto; }

@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Comparison highlight cards
   ========================================================================== */
.compare-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.6rem 0 2.2rem;
}
.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}
.compare-card__head { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.8rem; }
.compare-card__head svg { width: 1.35rem; height: 1.35rem; color: var(--green-verified); flex-shrink: 0; }
.compare-card__title { font-weight: 700; }
.compare-card p { margin: 0; font-size: 0.94rem; }

@media (max-width: 860px) { .compare-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Tables (comparison / pricing)
   ========================================================================== */
.table-scroll { overflow-x: auto; margin: 1.6rem 0 2.2rem; border-radius: var(--radius); border: 1px solid var(--line); }
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  font-size: 0.95rem;
  min-width: 560px;
}
table.compare-table caption { caption-side: top; text-align: left; padding: 0.9rem 1rem 0; font-weight: 700; color: var(--ink); }
table.compare-table th, table.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.compare-table thead th {
  background: var(--bg-surface-2);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
table.compare-table tbody tr:last-child td { border-bottom: none; }
table.compare-table tbody tr:hover { background: var(--orange-signal-tint); }
table.compare-table td:first-child, table.compare-table th:first-child { min-width: 160px; }

.mark { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 700; }
.mark svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.mark--yes { color: var(--green-verified); }
.mark--no { color: var(--coral-muted); }

/* ==========================================================================
   Step flow (5-step process — a genuine sequence)
   ========================================================================== */
.step-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  margin: 1.8rem 0 2.2rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
}
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-sm);
  background: var(--orange-signal-tint);
  color: var(--orange-signal-dark);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.step p { margin: 0; font-size: 0.92rem; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.25rem;
  right: -0.65rem;
  width: 0.5rem;
  height: 2px;
  background: var(--line-strong);
}
@media (max-width: 960px) {
  .step:not(:last-child)::after { display: none; }
}

/* ==========================================================================
   Checklists (as bulleted, but styled with icon markers)
   ========================================================================== */
ul.icon-list { list-style: none; padding-left: 0; margin: 1.2rem 0 1.6rem; }
ul.icon-list li {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  padding: 0.55em 0;
  border-bottom: 1px dashed var(--line);
}
ul.icon-list li:last-child { border-bottom: none; }
ul.icon-list svg { width: 1.2em; height: 1.2em; color: var(--orange-signal); flex-shrink: 0; margin-top: 0.15em; }

/* ==========================================================================
   Callouts / notes
   ========================================================================== */
.callout {
  display: flex;
  gap: 0.8rem;
  background: var(--amber-pending-tint);
  border: 1px solid var(--amber-pending);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1.6rem 0;
}
.callout svg { width: 1.3rem; height: 1.3rem; color: var(--amber-pending-dark); flex-shrink: 0; }
.callout p { margin: 0; font-size: 0.94rem; color: var(--ink); }
.callout--source { background: var(--bg-surface-2); border-color: var(--line-strong); }
.callout--source svg { color: var(--ink-faint); }

.note-inline { font-size: 0.88rem; color: var(--ink-faint); margin-top: -1.2rem; }

.section--top-gap { padding-top: 2.4rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { margin: 1.4rem 0 2rem; }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 1.1rem; height: 1.1rem; color: var(--ink-faint); flex-shrink: 0; transition: transform 0.15s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item__body { padding: 0 1.2rem 1.1rem; margin: 0; font-size: 0.95rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface-2);
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 1.6rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 0.6rem; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-desc { font-size: 0.9rem; color: var(--ink-faint); max-width: 34ch; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin: 0 0 0.8em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55em; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--orange-signal-dark); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Simple pages (about/contact/policy)
   ========================================================================== */
.page-simple .container { max-width: 760px; }
