:root {
  --ink: #17153B;
  --ink-soft: #3A3866;
  --slate: #5B5F7A;
  --paper: #F3F6F1;
  --white: #FFFFFF;
  --mint: #BDE5C8;
  --mint-deep: #2F7D55;
  --taxi: #F5C400;
  --taxi-dark: #D9AD00;
  --line: #D5DBD3;

  --wide: 125;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --radius-slip: 18px;
  --radius-ui: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--taxi); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--taxi); color: var(--ink); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* Headings: wide Archivo, the signature of the page */
h1, h2, h3 { font-stretch: 125%; font-variation-settings: "wdth" var(--wide); line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; margin-bottom: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* Header */
.site-header { background: var(--ink); color: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 750; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 1.15rem; }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a { text-decoration: none; font-size: 0.98rem; opacity: 0.85; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-header nav .nav-cta { opacity: 1; background: var(--taxi); color: var(--ink); padding: 0.45rem 0.9rem; border-radius: var(--radius-ui); font-weight: 700; }
.site-header nav .nav-cta:hover { text-decoration: none; background: var(--taxi-dark); }
.header-right { display: flex; align-items: center; gap: 1.5rem; }

/* Language switch: three-way segmented control */
.lang-switch { display: inline-flex; border: 1.5px solid rgba(243, 246, 241, 0.35); border-radius: 999px; padding: 2px; }
.lang-switch a {
  text-decoration: none; color: var(--paper); font-size: 0.88rem; font-weight: 600;
  padding: 0.28rem 0.7rem; border-radius: 999px; opacity: 0.8; line-height: 1.2;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { background: var(--paper); color: var(--ink); opacity: 1; }

/* Chinese pages: Archivo for Latin and digits, system CJK fonts for characters */
:lang(zh-Hans) body, body:lang(zh-Hans) { font-family: "Archivo", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:lang(zh-Hant) body, body:lang(zh-Hant) { font-family: "Archivo", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { line-height: 1.25; letter-spacing: 0.02em; }
html:lang(zh) h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
html:lang(zh) body { line-height: 1.7; }

/* Hero */
.hero { background: var(--ink); color: var(--paper); padding: 3.5rem 0 5rem; position: relative; overflow: hidden; }
.hero::after {
  /* taxiway centerline: a single dashed yellow stripe under the hero copy */
  content: ""; position: absolute; left: 0; right: 0; bottom: 2.2rem; height: 4px;
  background: repeating-linear-gradient(90deg, var(--taxi) 0 48px, transparent 48px 84px);
  opacity: 0.9;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: start; }
.hero-copy { padding-top: 1.5rem; }
.lede { font-size: 1.2rem; max-width: 34ch; color: #D9DCEB; margin: 1.4rem 0 1.8rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; max-width: 40ch; }
.hero-facts li { padding-left: 1.6rem; position: relative; color: #E8EAF3; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.8rem; height: 4px; background: var(--mint); }

/* Cashout slip */
.slip {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-slip);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  position: relative; z-index: 1;
}
.slip-head { padding: 1.4rem 1.6rem 1.2rem; background: var(--mint); border-radius: var(--radius-slip) var(--radius-slip) 0 0; }
.slip-head h2 { font-size: 1rem; font-weight: 700; color: var(--mint-deep); font-stretch: 100%; font-variation-settings: "wdth" 100; }
.slip-readout { margin: 0.35rem 0 0; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.readout-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; line-height: 1;
  font-stretch: 125%; font-variation-settings: "wdth" 125; font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}
.readout-num.is-empty { color: rgba(23, 21, 59, 0.28); }
.readout-label { font-size: 1rem; color: var(--ink-soft); max-width: 26ch; }

/* perforation between stub and body */
.slip-perf { height: 18px; position: relative; background: radial-gradient(circle at 0 50%, var(--ink) 9px, transparent 9.5px) left / 18px 18px no-repeat, radial-gradient(circle at 100% 50%, var(--ink) 9px, transparent 9.5px) right / 18px 18px no-repeat; }
.slip-perf::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; border-top: 2px dashed var(--line); }

.slip-body { padding: 0.6rem 1.6rem 1.6rem; display: grid; gap: 1rem; }

.toggle { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toggle legend { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.4rem; padding: 0; }
.toggle label { flex: 1; min-width: 8rem; position: relative; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle label { display: block; text-align: center; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: var(--radius-ui); font-weight: 600; cursor: pointer; }
.toggle label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.toggle label:has(input:focus-visible) { outline: 3px solid var(--taxi); outline-offset: 2px; }

.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.92rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--slate); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: 0.65rem 0.75rem; border: 2px solid var(--line); border-radius: var(--radius-ui); background: var(--white);
}
textarea { resize: vertical; }
.phone-group { display: grid; grid-template-columns: minmax(7.5rem, 40%) 1fr; gap: 0.5rem; }
.phone-group select { padding-inline: 0.6rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
input:user-invalid, select:user-invalid { border-color: #B3261E; }
.honey { position: absolute !important; left: -9999px !important; height: 0; width: 0; }

.btn {
  display: inline-block; font: inherit; font-weight: 750; font-size: 1.05rem;
  background: var(--taxi); color: var(--ink); border: 0; border-radius: var(--radius-ui);
  padding: 0.9rem 1.4rem; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--taxi-dark); }
.btn-ghost { background: transparent; border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.fineprint { font-size: 0.85rem; color: var(--slate); margin: 0; }

/* Sections */
section { padding-block: 4.5rem; }
.band { background: var(--white); }
.section-intro { color: var(--slate); margin: -0.6rem 0 2rem; max-width: var(--measure); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding-top: 1.2rem; }
.steps li::before {
  content: counter(step); display: block; font-size: 2.8rem; font-weight: 800; line-height: 1;
  font-stretch: 125%; font-variation-settings: "wdth" 125; color: var(--taxi-dark); margin-bottom: 0.8rem;
}
.steps p { color: var(--ink-soft); margin: 0.5rem 0 0; }

.program-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.program-cols h3 { padding-bottom: 0.7rem; border-bottom: 2px solid var(--ink); margin-bottom: 0.4rem; }
.program-cols ul { list-style: none; padding: 0; margin: 0; }
.program-cols li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }

.why-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.why-list { margin: 0; display: grid; gap: 1.6rem; }
.why-list dt { font-weight: 700; font-size: 1.1rem; }
.why-list dd { margin: 0.3rem 0 0; color: var(--ink-soft); max-width: var(--measure); }

.buyers { background: var(--mint); }
.buyers-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.buyers p { max-width: var(--measure); margin: 0; color: var(--ink-soft); }
.buyers .section-title { margin-bottom: 0.8rem; }

.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.9rem; font-size: 1.5rem; font-weight: 500; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 0 0 1.2rem; color: var(--ink-soft); max-width: var(--measure); }

.closing { background: var(--ink); color: var(--paper); }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.closing h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }

/* Footer */
.site-footer { background: #0E0D28; color: #C9CBDD; padding-block: 2.5rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; }
.site-footer p { margin: 0.3rem 0; }
.brand-footer { color: var(--paper); font-size: 1rem; }
.site-footer nav { display: flex; gap: 1.4rem; align-items: flex-start; }
.site-footer a { color: #E6E8F2; }
.disclaimer, .copyright { grid-column: 1 / -1; max-width: 90ch; color: #9A9DB6; }

/* Simple content pages */
.page { padding-block: 3.5rem 5rem; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.5rem; }
.page h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.page p, .page li { color: var(--ink-soft); max-width: var(--measure); }
.page .updated { color: var(--slate); font-size: 0.95rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .why-grid, .faq-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { padding-top: 0; }
  .steps, .program-cols { grid-template-columns: 1fr; gap: 2rem; }
  .buyers-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 440px) {
  .site-header nav { display: none; }
  .brand span { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .header-right { gap: 0.7rem; }
  .field-row { grid-template-columns: 1fr; }
  section { padding-block: 3.2rem; }
  .slip-head, .slip-body { padding-inline: 1.1rem; }
}
