/* 车援宝 / LynxOn design system — mobile-first, WeChat in-app browser primary.
   Brand source: Dane's 2025 deck (LynxOn red, thin-serif spaced title, white
   curve sweep, gold honors). One accent (red); gold only for honors/高级.
   Everything is driven by the tokens below — pages should use classes/vars,
   not one-off inline sizes/spacing, so the system stays coherent as it grows. */

:root {
  /* brand + surface */
  --brand: #C8102E;
  --brand-deep: #8F0C1F;
  --brand-glow: #E8402C;
  --grad-brand: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  --gold: #B8892F;
  --gold-ink: #7A5613;   /* AA-safe gold text on light */
  --gold-soft: #F6EDD8;
  --nev: #2E8B47;
  --nev-ink: #216B37;    /* AA-safe green text on nev-soft */
  --nev-soft: #EAF6EE;
  --wechat: #07C160;
  --ink: #23262B;
  --ink-soft: #6B7079;   /* ~4.9:1 on white — AA for body text */
  --paper: #FFFFFF;
  --mist: #F5F5F7;
  --line: #E9E9EE;

  /* type scale — one ramp; hierarchy via weight, not new sizes */
  --fs-caption: 12px;
  --fs-small: 13px;
  --fs-body: 14px;
  --fs-base: 16px;
  --fs-lead: 17px;
  --fs-h3: 21px;
  --fs-h2: 24px;
  --fs-display: 30px;

  /* spacing — 4pt ramp */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 28px;

  /* radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 18px; --r-pill: 999px;
  --radius: var(--r-md);

  /* elevation */
  --shadow-1: 0 1px 3px rgba(35, 38, 43, .06);
  --shadow-2: 0 1px 6px rgba(35, 38, 43, .05);
  --shadow-lift: 0 2px 12px rgba(35, 38, 43, .10);

  /* motion */
  --dur-fast: .15s; --dur-mid: .28s; --dur-slow: .5s;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.32, .72, 0, 1);

  --col: 520px;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  font-size: var(--fs-base);
  line-height: 1.7;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.shell {
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ————— red hero band (the deck's signature) ————— */
.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, var(--brand-glow) 0%, transparent 55%),
    var(--grad-brand);
  color: #fff;
  text-align: center;
  padding: calc(28px + env(safe-area-inset-top)) 20px 0;
  position: relative;
  overflow: hidden;
}
.hero .skyline {
  position: absolute; inset: auto 0 0 0; height: 62%;
  opacity: .14; pointer-events: none;
}
.hero-inner { position: relative; padding-bottom: 34px; }
.hero-kicker {
  font-size: 11px; letter-spacing: .42em; text-indent: .42em;
  opacity: .82; text-transform: uppercase; margin-bottom: 14px;
}
.hero-titleband {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hero-titleband .rule {
  flex: 1 1 0; min-width: 10px; max-width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85));
}
.hero-titleband .rule:last-child {
  background: linear-gradient(90deg, rgba(255,255,255,.85), transparent);
}
.hero-side {
  font-size: var(--fs-caption); letter-spacing: .18em; opacity: .9; white-space: nowrap;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 10vw, 44px);
  letter-spacing: .3em;
  text-indent: .3em;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,.18);
}
.hero-sub { margin-top: 10px; font-size: var(--fs-small); opacity: .88; letter-spacing: .06em; }
/* white curve sweep — closes every hero, echoes the deck covers */
.hero .sweep { display: block; width: 100%; height: 30px; margin-top: 18px; }

/* compact page-header variant */
.pagehead { text-align: center; }
.pagehead .hero-title { font-size: var(--fs-display); }
.pagehead .hero-inner { padding-bottom: 22px; }

/* ————— content ————— */
.content { flex: 1; padding: 20px 18px calc(28px + env(safe-area-inset-bottom)); }
.section { margin-bottom: var(--sp-7); scroll-margin-top: 56px; }
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: .04em;
  margin-bottom: 4px;
}
.section-title::after {
  content: ""; display: block; width: 34px; height: 3px;
  background: var(--brand); margin-top: 8px; border-radius: 2px;
}
.section-note { color: var(--ink-soft); font-size: var(--fs-small); line-height: 1.6; margin: 8px 0 14px; }

/* type utilities — reach for these instead of inline font-size */
.txt { font-size: var(--fs-base); line-height: 1.7; }
.txt-sm { font-size: var(--fs-body); line-height: 1.6; color: var(--ink-soft); }
.txt-xs { font-size: var(--fs-caption); line-height: 1.55; color: var(--ink-soft); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-top: var(--sp-3);
}
.card-title { font-size: var(--fs-lead); font-weight: 600; }
/* brand-filled card — was a bespoke inline gradient on company.mjs */
.card.on-brand {
  background: var(--grad-brand); color: #fff; border: none; text-align: center;
}

/* full-bleed tint band to give long pages chapter rhythm */
.band { background: var(--mist); margin: 0 -18px; padding: 20px 18px; }
.band > .section:last-child { margin-bottom: 0; }

/* sticky in-page segment nav (long pages) */
.segnav {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: var(--sp-2); overflow-x: auto;
  margin: 0 -18px 4px; padding: 0 18px;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.segnav a {
  flex: none; min-height: 44px; display: inline-flex; align-items: center;
  font-size: var(--fs-small); color: var(--ink-soft); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.segnav a:active { color: var(--brand); }

/* 主页 nav cards */
.navgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-4); }
.navcard {
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  min-height: 128px;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.navcard:active { transform: scale(.97); box-shadow: var(--shadow-1); }
.navcard .glyph {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: #FBEDEF; color: var(--brand);
}
.navcard .glyph svg { width: 22px; height: 22px; }
.navcard b { font-size: var(--fs-lead); }
.navcard span { font-size: var(--fs-caption); color: var(--ink-soft); line-height: 1.6; word-break: keep-all; }
/* keep product names as unbreakable units so a wrap only ever falls at a middot */
.navcard .lineup > span { white-space: nowrap; }
.navcard .tag {
  font-size: 10px; color: var(--brand); border: 1px solid currentColor;
  border-radius: var(--r-pill); padding: 0 6px; margin-left: 6px; vertical-align: 2px;
}

/* buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  width: 100%; min-height: 48px;
  border: none; border-radius: 26px;
  font-size: var(--fs-base); font-weight: 600;
  background: var(--brand); color: #fff;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.btn:active { opacity: .9; transform: scale(.98); }
.btn.wechat { background: var(--wechat); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.small { min-height: 44px; font-size: var(--fs-body); width: auto; padding: 0 18px; }
.btn svg { width: 20px; height: 20px; }

/* pricing tables — fit the viewport, never scroll off the price columns */
.pricetable { width: 100%; border-collapse: collapse; font-size: var(--fs-body); margin-top: 10px; }
.pricetable th {
  background: var(--brand); color: #fff; font-weight: 600;
  padding: 9px 7px; text-align: left; font-size: var(--fs-small);
}
.pricetable.nev th { background: var(--nev); }
.pricetable td { padding: 9px 7px; border-bottom: 1px solid var(--line); }
.pricetable td:first-child { white-space: nowrap; }
.pricetable tr:nth-child(even) td { background: #FBF7F7; }
.pricetable.nev tr:nth-child(even) td { background: var(--nev-soft); }
.pricetable .num {
  font-weight: 700; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.pricetable.nev .num { color: var(--nev-ink); }
.pricetable .u { margin-left: 2px; font-weight: 400; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 10px; }

/* price-contrast rows (comparison blocks that used to overflow as wide tables) */
.cmp-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-3);
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.cmp-row:last-child { border-bottom: none; }
.cmp-veh b { font-size: var(--fs-body); font-weight: 600; }
.cmp-veh span { display: block; font-size: var(--fs-caption); color: var(--ink-soft); line-height: 1.5; margin-top: 2px; }
.cmp-prices { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp-4s { font-size: var(--fs-caption); color: var(--ink-soft); text-decoration: line-through; }
.cmp-arrow { color: var(--ink-soft); margin: 0 4px; }
.cmp-us { font-size: var(--fs-lead); font-weight: 700; color: var(--brand); }
.cmp-row.nev .cmp-us { color: var(--nev-ink); }

/* product cards */
.product { border-top: 3px solid var(--brand); }
.product.nev { border-top-color: var(--nev); }
.product .cat {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand); background: #FBEDEF; border-radius: var(--r-sm);
  padding: 2px 8px; margin-bottom: 8px;
}
.product.nev .cat { color: var(--nev-ink); background: var(--nev-soft); }
.product .sub { color: var(--ink-soft); font-size: var(--fs-small); margin-top: 2px; }
.product .oneprice {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-display); font-weight: 700; color: var(--brand); margin: 8px 0 2px;
}
.product .oneprice small { font-size: var(--fs-body); font-weight: 400; color: var(--ink-soft); }
.product .oneprice small .u { margin-left: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge {
  font-size: 11px; color: var(--brand); background: #FBEDEF;
  border-radius: var(--r-sm); padding: 2px 7px;
}
.product.nev .badge { color: var(--nev-ink); background: var(--nev-soft); }
.coverage { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.6; margin-top: 8px; }
.product .cta-row { display: flex; gap: 10px; margin-top: 14px; }

/* six advantages — 2-col grid with an editorial ghost numeral */
.advgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-3); }
.adv {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; position: relative; overflow: hidden;
}
.adv .n {
  font-family: var(--font-display); font-size: var(--fs-display); font-weight: 300;
  color: #F0C6CD; line-height: 1; display: block; margin-bottom: 4px;
}
.adv b { font-size: var(--fs-base); font-weight: 600; }
.adv p { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.6; margin-top: 4px; }

/* eligibility list */
.eli-list { list-style: none; font-size: var(--fs-base); }
.eli-list li { padding: 3px 0; }

/* commission */
.tiergrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-4); }
.tier {
  border-radius: var(--radius); padding: 18px 14px; text-align: center;
  border: 1px solid var(--line); background: var(--paper);
}
.tier.senior {
  background: linear-gradient(160deg, #FBF3DD, #F0E0B8);
  border: 1.5px solid var(--gold);
  box-shadow: var(--shadow-lift);
}
.tier .lvl { font-size: var(--fs-body); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }
.tier.senior .lvl { color: var(--gold-ink); }
.tier .lvl svg { fill: var(--gold); }
.tier .pct {
  font-size: 40px; font-weight: 800; color: var(--brand);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.tier.senior .pct { position: relative; }
.tier.senior .pct::after {
  content: ""; display: block; width: 28px; height: 3px;
  margin: 4px auto 0; background: var(--gold); border-radius: 2px;
}
.tier .plus { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.5; }

/* stats band (company) */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-4); }
.stat {
  background: var(--grad-brand);
  color: #fff; border-radius: var(--radius); padding: 16px 14px;
}
.stat b { font-size: var(--fs-h2); font-variant-numeric: tabular-nums; display: block; }
.stat span { font-size: var(--fs-caption); opacity: .88; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.chip {
  font-size: var(--fs-small); color: var(--ink); font-weight: 500;
  border: 1px solid #DADAE0; border-radius: var(--r-pill); padding: 5px 13px;
  background: var(--paper); box-shadow: var(--shadow-1);
}
.honor {
  display: flex; gap: 10px; align-items: flex-start; margin-top: var(--sp-3);
  font-size: var(--fs-body);
}
.honor .dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-top: 8px;
}

/* chat */
.chatpage { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.chathead {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.chathead .back {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: none;
  display: grid; place-items: center; background: transparent;
  transition: transform var(--dur-fast) var(--ease);
}
.chathead .back::before {
  content: ""; position: absolute; width: 36px; height: 36px; border-radius: 50%;
  background: var(--mist); z-index: -1;
}
.chathead .back { position: relative; z-index: 0; }
.chathead .back:active { transform: scale(.92); }
.chathead .who { flex: 1; }
.chathead .who b { font-size: var(--fs-base); display: block; line-height: 1.3; }
.chathead .who span { font-size: var(--fs-caption); color: var(--ink-soft); }
.chathead .human {
  border: 1.5px solid var(--brand); color: var(--brand); background: #fff;
  border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 600;
  min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center;
  transition: transform var(--dur-fast) var(--ease);
}
.chathead .human:active { transform: scale(.94); }
.chatlog { flex: 1; overflow-y: auto; padding: 14px 14px 6px; background: var(--mist); }
.sysnote {
  font-size: var(--fs-caption); color: var(--ink-soft); text-align: center;
  margin: 6px auto 12px; max-width: 88%; line-height: 1.55;
}
.msg { display: flex; gap: 8px; margin-bottom: 12px; }
/* AI bubbles anchor to a small brand avatar (the deck's 车 mark) */
.msg.ai::before {
  content: "车"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #FBEDEF; color: var(--brand);
  font-family: var(--font-display); font-size: var(--fs-base); font-weight: 600;
  display: grid; place-items: center; align-self: flex-start;
}
.msg .bubble {
  max-width: 80%; padding: 10px 14px; border-radius: var(--r-lg);
  font-size: var(--fs-base); line-height: 1.7; word-break: break-word;
  white-space: pre-wrap;
  animation: bubblein var(--dur-mid) var(--ease) both;
}
.msg.ai .bubble { background: var(--paper); border-top-left-radius: 4px; box-shadow: var(--shadow-1); }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.msg.sys { justify-content: center; }
.msg.sys .bubble { background: transparent; color: var(--ink-soft); font-size: var(--fs-caption); box-shadow: none; animation: none; }
/* error / network bubble — visible, with a one-tap hotline */
.msg.sys.err .bubble {
  background: #FBEDEF; color: var(--brand); font-size: var(--fs-small);
  padding: 8px 14px; border-radius: var(--r-md); max-width: 88%;
}
.msg.sys.err a { font-weight: 600; text-decoration: underline; color: var(--brand); }
@keyframes bubblein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft);
  animation: blink 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 70%, 100% { opacity: .25; } 35% { opacity: 1; } }
.chips-row { display: flex; gap: var(--sp-2); overflow-x: auto; padding: 6px 14px; background: var(--mist); -webkit-overflow-scrolling: touch; }
.chips-row .qchip {
  flex: none; font-size: var(--fs-small); color: var(--brand);
  background: var(--paper); border: 1px solid #F0C6CD; border-radius: var(--r-pill);
  min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center;
  transition: transform var(--dur-fast) var(--ease);
}
.chips-row .qchip:active { transform: scale(.94); }
.chatbar {
  flex: none; display: flex; gap: 10px; align-items: flex-end;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -1px 8px rgba(35, 38, 43, .05);
}
.chatbar textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 11px 15px; font-size: 15px; font-family: inherit; line-height: 1.4;
  max-height: 110px; outline: none; background: var(--mist);
}
.chatbar textarea:focus { border-color: var(--brand); background: #fff; }
.chatbar .send {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none;
  display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.chatbar .send:active:not(:disabled) { transform: scale(.92); }
.chatbar .send:disabled { background: var(--line); color: #B9BCC2; }
.chatbar .send svg { width: 20px; height: 20px; }

/* modal (转人工) — animated bottom sheet */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20,20,24,.45);
  display: flex; align-items: flex-end; justify-content: center; z-index: 50;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease), visibility var(--dur-mid);
}
.modal-mask.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: var(--col);
  background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform var(--dur-mid) var(--ease-out);
}
.modal-mask.open .modal { transform: none; }
.modal .sheet-grip {
  width: 36px; height: 4px; border-radius: 2px; background: var(--line);
  margin: 0 auto 14px;
}
.modal h3 { font-size: var(--fs-lead); margin-bottom: 6px; }
.modal p { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; }
.modal input {
  width: 100%; min-height: 46px; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0 14px; font-size: 15px; font-family: inherit;
  margin-bottom: 12px; outline: none;
}
.modal input:focus { border-color: var(--brand); }
.modal .row { display: flex; gap: 10px; }

/* video placeholder */
.videobox {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; margin-top: 16px;
  background:
    radial-gradient(90% 120% at 80% 10%, #3A3F47 0%, #23262B 60%);
  color: #fff; display: grid; place-items: center; text-align: center;
}
.videobox .mark { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: .28em; text-indent: .28em; opacity: .92; }
.videobox .hint { font-size: var(--fs-caption); opacity: .6; margin-top: 6px; }
.videobox .playring {
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.videobox .playring svg { width: 22px; height: 22px; margin-left: 3px; }

/* login */
.loginpage .content { display: flex; flex-direction: column; }
.login-actions { margin-top: auto; padding-top: 28px; }
.login-points { margin-top: 22px; }
.login-points li {
  list-style: none; display: flex; gap: 10px; align-items: baseline;
  font-size: var(--fs-body); color: var(--ink-soft); margin-bottom: 10px;
}
.login-points li::before { content: "·"; color: var(--brand); font-weight: 800; }

/* footer / legal */
.foot {
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
  text-align: center; font-size: var(--fs-caption); color: var(--ink-soft);
  border-top: 1px solid var(--line); background: var(--paper);
}
.foot .hotline { font-size: var(--fs-small); color: var(--ink); font-weight: 600; margin-bottom: 4px; display: block; }
.foot .hotline a { color: inherit; }
.foot a { color: var(--brand); display: inline-block; padding: 6px 4px; }
.disclaimer {
  background: var(--mist); border-radius: var(--r-sm); padding: 10px 12px;
  font-size: var(--fs-caption); color: var(--ink-soft); line-height: 1.6; margin-top: 14px; text-align: left;
}

/* SMS verification-code login */
.sms-login { margin-top: 22px; display: flex; flex-direction: column; gap: var(--sp-4); }
.field { display: block; }
.field-label { display: block; font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 6px; }
.field-input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-size: var(--fs-base); color: var(--ink); background: #fff;
  transition: border-color var(--dur-fast) var(--ease);
}
.field-input:focus { outline: none; border-color: var(--brand); }
.code-row { display: flex; gap: var(--sp-2); }
.code-row .field-input { flex: 1; min-width: 0; }
.btn-code {
  flex: 0 0 auto; min-height: 48px; padding: 0 14px; white-space: nowrap;
  border: 1.5px solid var(--brand); border-radius: var(--r-md);
  background: #fff; color: var(--brand); font-size: var(--fs-body); font-weight: 600;
  transition: opacity var(--dur-fast) var(--ease);
}
.btn-code:disabled { color: var(--ink-soft); border-color: var(--line); }
.consent {
  display: flex; gap: var(--sp-2); align-items: flex-start;
  font-size: var(--fs-caption); color: var(--ink-soft); line-height: 1.6;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand); }
.btn.primary:disabled { opacity: .5; }
.form-msg { min-height: 18px; font-size: var(--fs-small); text-align: center; margin: 0; }
.form-msg.err { color: var(--brand); }
.form-msg.ok { color: #1a7f37; }
.stub-hint { font-size: var(--fs-caption); color: var(--ink-soft); text-align: center; margin: 0; }

/* welcome intro video */
.introvideo {
  width: 100%; display: block; margin-top: 22px;
  border-radius: var(--r-lg); background: #000;
  aspect-ratio: 960 / 544; box-shadow: var(--shadow-lift);
}

/* greeting band (home) */
.greet {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--mist); border-radius: var(--radius);
}
.greet .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: #FBEDEF; color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: var(--fs-lead);
  flex: none;
}
.greet b { display: block; font-size: var(--fs-lead); }
.greet span { font-size: var(--fs-small); color: var(--ink-soft); }
.greet .replay { margin-left: auto; font-size: var(--fs-small); color: var(--brand); white-space: nowrap; padding: 12px 4px; margin-right: -4px; }

/* interstitial QR */
.qrbox {
  width: 210px; margin: 22px auto 10px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.qrbox canvas, .qrbox img, .qrbox svg { width: 100%; height: auto; display: block; }

/* entrance motion — one orchestrated pass */
.rise { animation: rise var(--dur-slow) var(--ease) both; }
.rise:nth-child(2) { animation-delay: .06s; }
.rise:nth-child(3) { animation-delay: .12s; }
.rise:nth-child(4) { animation-delay: .18s; }
.rise:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* composited hero reveal (no letter-spacing animation → no per-frame reflow) */
.hero-title { animation: settle .7s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-title, .typing i, .msg .bubble { animation: none !important; }
  .modal, .modal-mask { transition: none !important; }
}

/* a11y */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
