/* ==========================================================================
   Rosy design system
   One dominant color (hot pink), true black ink, paper-pink surfaces,
   a plum "night" world for membership, and one signature object: the receipt.
   ========================================================================== */

:root {
  /* brand */
  --pink: #FF0099;
  --pink-active: #E00087;
  --pink-deep: #A60264;
  --plum: #540233;
  --plum-night: #290219;

  /* semantic roles (light) */
  --bg: #FEF9FC;
  --surface: #FFFFFF;
  --surface-2: #FCEEF8;
  --surface-3: #FAE0F1;
  --tint-yellow: #FCF0D8;
  --tint-lilac: #EDEDFE;
  --text: #000000;
  --text-2: #464644;
  --muted: #6F6A6D;
  --border: #EBD3E1;
  --border-strong: #000000;
  --accent: var(--pink-active);
  --accent-text: #C40076;
  --on-accent: #FFFFFF;
  --success: #0B7A4B;
  --success-bg: #E2F5EC;
  --warning: #9A5200;
  --warning-bg: #FCF0D8;
  --danger: #C4122F;
  --danger-bg: #FDE7EA;
  --focus: #000000;

  /* receipt is paper in every theme */
  --receipt: #FFFEFB;
  --receipt-ink: #14060E;
  --receipt-muted: #6F6A6D;
  --receipt-rule: #D9CFD4;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.3125rem;
  --t-lg: 1.625rem;
  --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.0625rem);
  --t-2xl: clamp(2.125rem, 1.3rem + 3.2vw, 3.25rem);
  --t-3xl: clamp(3.375rem, 1.1rem + 8.4vw, 6.75rem);

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* shape */
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px; --r-pill: 999px;
  --bw: 1.5px;
  --shadow-1: 0 1px 0 rgba(41, 2, 25, .05), 0 6px 16px -8px rgba(84, 2, 51, .18);
  --shadow-2: 0 2px 0 rgba(41, 2, 25, .05), 0 24px 48px -20px rgba(84, 2, 51, .35);
  --shadow-paper: 0 1px 1px rgba(41, 2, 25, .12), 0 18px 28px rgba(41, 2, 25, .28);

  /* motion */
  --dur-1: 120ms; --dur-2: 240ms; --dur-3: 480ms; --dur-4: 1100ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  --header-h: 72px;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A0110; --surface: #290219; --surface-2: #35062A; --surface-3: #450836;
    --tint-yellow: #3A2A0C; --tint-lilac: #25224A;
    --text: #FEF9FC; --text-2: #EBD3E1; --muted: #C3A3B6;
    --border: #4E1A3C; --border-strong: #FEF9FC;
    --accent-text: #FF5CBB;
    --success: #5FD6A2; --success-bg: #0C3324;
    --warning: #F2B866; --warning-bg: #3A2A0C;
    --danger: #FF8093; --danger-bg: #470D18;
    --focus: #FFFFFF;
    --shadow-1: 0 1px 0 rgba(0,0,0,.3), 0 6px 16px -8px rgba(0,0,0,.6);
    --shadow-2: 0 2px 0 rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A0110; --surface: #290219; --surface-2: #35062A; --surface-3: #450836;
  --tint-yellow: #3A2A0C; --tint-lilac: #25224A;
  --text: #FEF9FC; --text-2: #EBD3E1; --muted: #C3A3B6;
  --border: #4E1A3C; --border-strong: #FEF9FC;
  --accent-text: #FF5CBB;
  --success: #5FD6A2; --success-bg: #0C3324;
  --warning: #F2B866; --warning-bg: #3A2A0C;
  --danger: #FF8093; --danger-bg: #470D18;
  --focus: #FFFFFF;
  --shadow-1: 0 1px 0 rgba(0,0,0,.3), 0 6px 16px -8px rgba(0,0,0,.6);
  --shadow-2: 0 2px 0 rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--t-base)/1.55 var(--font-body);
  font-feature-settings: "pnum";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 560; letter-spacing: -0.022em; line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); letter-spacing: -0.035em; line-height: .94; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.12; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.lede { font-size: var(--t-md); line-height: 1.45; color: var(--text-2); max-width: 34em; }
.num, .tnum, table { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: var(--s-4); top: -80px; z-index: 100; background: #000; color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); transition: top var(--dur-2) var(--ease-out); }
.skip:focus { top: var(--s-3); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  --_bg: var(--accent); --_fg: var(--on-accent); --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  background: var(--_bg); color: var(--_fg); border: var(--bw) solid var(--_bd);
  border-radius: var(--r-pill); font-weight: 650; font-size: var(--t-base); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(224, 0, 135, .6); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ink { --_bg: #000; --_fg: #fff; }
.btn-ink:hover { box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7); }
.btn-ghost { --_bg: transparent; --_fg: var(--text); --_bd: var(--border-strong); }
.btn-ghost:hover { --_bg: var(--text); --_fg: var(--bg); box-shadow: none; }
.btn-quiet { --_bg: transparent; --_fg: var(--text); min-height: 44px; padding: 0 var(--s-4); font-weight: 600; }
.btn-quiet:hover { --_bg: var(--surface-2); box-shadow: none; transform: none; }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--t-sm); }
.btn-block { width: 100%; }
.link { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-thickness: 2.5px; }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 40; height: var(--header-h); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: 1.75rem; letter-spacing: -0.04em; line-height: 1; padding: 6px 4px; margin-left: -4px; }
.logo svg { width: 30px; height: 30px; }
.logo .cheek-a { fill: currentColor; } .logo .cheek-b { fill: var(--pink); }
body[data-route="home"] .logo .cheek-b { fill: #fff; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: var(--s-4); }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--t-sm); padding: 10px 12px; border-radius: var(--r-pill); transition: background-color var(--dur-2) var(--ease-out); }
.nav a:hover { background: rgba(0, 0, 0, .08); }
.nav a[aria-current="page"] { background: var(--text); color: var(--bg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: var(--t-sm); }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; place-items: center; }
.menu-btn:hover { background: rgba(0, 0, 0, .08); }
body[data-route="home"] .site-header { color: #000; }
body[data-route="home"] .site-header .btn-ghost { --_fg: #000; --_bd: #000; }
body[data-route="home"] .site-header .btn-ghost:hover { --_bg: #000; --_fg: #fff; }
body[data-route="home"] .site-header :focus-visible { outline-color: #000; }
body[data-route="home"] .avatar { background: #000; color: #fff; }

@media (max-width: 1080px) {
  .menu-btn { display: grid; }
  .nav, .header-actions { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .site-header.open { position: fixed; height: auto; background: var(--bg); color: var(--text); box-shadow: var(--shadow-2); padding-bottom: var(--s-5); }
  .site-header.open .wrap { flex-wrap: wrap; height: auto; row-gap: 0; }
  .site-header.open .logo, .site-header.open .menu-btn { margin-top: 12px; }
  .site-header.open .menu-btn { order: 1; }
  .site-header.open .nav { order: 2; }
  .site-header.open .header-actions { order: 3; }
  .site-header.open .logo .cheek-b { fill: var(--pink); }
  .site-header.open .nav, .site-header.open .header-actions { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: var(--s-3) 0 0; gap: var(--s-2); }
  .site-header.open .nav a { font-size: var(--t-md); padding: 14px 16px; }
  .site-header.open .header-actions .btn { width: 100%; }
  body[data-route="home"] .site-header.open { color: var(--text); }
  body[data-route="home"] .site-header.open .btn-ghost { --_fg: var(--text); --_bd: var(--border-strong); }
}

/* ---------- routes ---------- */
.route { min-height: 100vh; }
.route-pad { padding-top: calc(var(--header-h) + var(--s-6)); padding-bottom: var(--s-9); }

/* ---------- hero ---------- */
.hero { position: relative; overflow-x: clip; background: var(--pink); color: #000; padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-8); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(255, 255, 255, .28), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(166, 2, 100, .55), transparent 65%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-7); align-items: start; }
.hero h1 { margin-bottom: var(--s-5); }
.hero .lede { color: #1d0011; margin-bottom: var(--s-6); }
.hero :focus-visible { outline-color: #000; }

.tripbar { background: #fff; color: #000; border: var(--bw) solid #000; border-radius: var(--r-lg); padding: var(--s-2); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(136px, 1fr) minmax(136px, 1fr) minmax(112px, .8fr) auto; gap: 0; box-shadow: 6px 6px 0 #000; }
.tripbar .cell { position: relative; padding: 10px 14px 8px; border-right: 1px solid #EBD3E1; min-width: 0; border-radius: var(--r-md); transition: background-color var(--dur-2) var(--ease-out); }
.tripbar .cell:focus-within { background: #FCEEF8; }
.tripbar .cell:nth-of-type(4) { border-right: 0; }
.tripbar label { display: block; font-size: var(--t-xs); font-weight: 650; color: #464644; }
.tripbar input, .tripbar select { width: 100%; border: 0; background: transparent; padding: 2px 0 4px; font-weight: 600; font-size: var(--t-base); color: #000; color-scheme: light; min-height: 30px; }
.tripbar input::placeholder { color: #8d8689; font-weight: 500; }
.tripbar input:focus, .tripbar select:focus { outline: none; }
.tripbar .btn { min-height: 60px; align-self: center; margin-left: var(--s-2); padding: 0 28px; }
.tripbar-note { margin-top: var(--s-4); font-size: var(--t-sm); color: #1d0011; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; }
.pill-btn { border: var(--bw) solid #000; background: transparent; color: #000; border-radius: var(--r-pill); padding: 8px 14px; min-height: 40px; font-weight: 600; font-size: var(--t-sm); transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.pill-btn:hover { background: #000; color: #fff; }

.hero-receipt { justify-self: end; width: min(100%, 340px); margin-top: var(--s-8); margin-bottom: calc(-1 * var(--s-10)); transform: rotate(2.5deg); transform-origin: top center; position: relative; z-index: 2; }

@media (max-width: 1020px) {
  .tripbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tripbar .cell:nth-of-type(4) { grid-column: 1 / -1; }
  .tripbar .cell { border-right: 0; border-bottom: 1px solid #EBD3E1; border-radius: 0; }
  .tripbar .cell:first-of-type { grid-column: 1 / -1; }
  .tripbar .cell:nth-of-type(4) { border-bottom: 1px solid #EBD3E1; }
  .tripbar .btn { grid-column: 1 / -1; margin: var(--s-2) 0 0; }
}
@media (max-width: 860px) {
  .hero { padding-bottom: var(--s-8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-receipt { justify-self: center; margin-bottom: calc(-1 * var(--s-9)); transform: rotate(-1.5deg); }
}
@media (max-width: 520px) {
  .tripbar { box-shadow: 4px 4px 0 #000; }
  .tripbar .cell:nth-of-type(2) { border-right: 1px solid #EBD3E1; }
  .hero .lede { font-size: 1.125rem; }
}
@media (max-width: 350px) {
  .tripbar { grid-template-columns: minmax(0, 1fr); }
  .tripbar .cell:nth-of-type(2) { border-right: 0; }
}

/* ---------- receipt (signature object) ---------- */
.receipt-wrap { filter: drop-shadow(0 1px 1px rgba(41, 2, 25, .16)) drop-shadow(0 12px 16px rgba(41, 2, 25, .24)); }
.receipt {
  --zig: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  background: var(--receipt); color: var(--receipt-ink);
  padding: var(--s-5) var(--s-5) var(--s-7);
  -webkit-mask: var(--zig); mask: var(--zig);
  font-size: var(--t-sm); line-height: 1.4; border-radius: 3px 3px 0 0;
  background-image: repeating-linear-gradient(0deg, rgba(41, 2, 25, .018) 0 2px, transparent 2px 5px);
}
.receipt-head { text-align: center; padding-bottom: var(--s-4); border-bottom: 1.5px dashed var(--receipt-rule); margin-bottom: var(--s-4); }
.receipt-head .brand { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.04em; }
.receipt-head .trip { font-weight: 650; margin-top: 6px; font-size: var(--t-base); }
.receipt-head .meta { color: var(--receipt-muted); font-size: var(--t-xs); }
.receipt-lines { display: grid; gap: 10px; }
.receipt-line { display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: baseline; }
.receipt-line dt { color: var(--receipt-ink); }
.receipt-line dt small { display: block; color: var(--receipt-muted); font-size: var(--t-xs); }
.receipt-line dd { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-weight: 600; text-align: right; }
.receipt-line.strike dd { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--receipt-muted); font-weight: 500; }
.receipt-line.credit dd { color: #0B7A4B; }
.receipt-rule { border: 0; border-top: 1.5px dashed var(--receipt-rule); margin: var(--s-4) 0; }
.receipt-total { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-3); }
.receipt-total .label { font-weight: 650; }
.receipt-total .label small { display: block; font-weight: 400; color: var(--receipt-muted); font-size: var(--t-xs); }
.receipt-total .amount { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-weight: 640; font-size: 2.75rem; letter-spacing: -0.04em; line-height: .9; color: var(--pink-active); }
.receipt-foot { margin-top: var(--s-5); text-align: center; color: var(--receipt-muted); font-size: var(--t-xs); }
.receipt-bars { height: 34px; margin: var(--s-4) auto 6px; width: 78%; background: repeating-linear-gradient(90deg, #14060E 0 2px, transparent 2px 4px, #14060E 4px 5px, transparent 5px 9px, #14060E 9px 12px, transparent 12px 14px); opacity: .85; }

/* print-out motion: the receipt feeds out of a slot */
.printer { position: relative; overflow: hidden; padding: 10px 20px 84px; margin: -10px -20px -84px; pointer-events: none; }
.printer .receipt-wrap { pointer-events: auto; }
.printer::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 10px; background: #000; border-radius: 6px; z-index: 3; box-shadow: 0 2px 0 rgba(255,255,255,.15) inset; }
.printer.printing .receipt-wrap { animation: feed var(--dur-4) var(--ease-out) both; animation-delay: var(--print-delay, 0ms); }
@keyframes feed { from { transform: translateY(-101%); } to { transform: translateY(0); } }

/* ---------- sections ---------- */
.section { padding: var(--s-9) 0; }
.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-head p { margin-top: var(--s-4); }
.after-hero { padding-top: calc(var(--s-9) + var(--s-6)); }

.ways { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); }
.way { border-radius: var(--r-lg); padding: var(--s-6); border: var(--bw) solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: var(--s-3); }
.way h3 { max-width: 16em; }
.way p { color: var(--text-2); max-width: 32em; }
.way-travel { grid-column: span 7; grid-row: span 2; background: var(--surface-3); border-color: transparent; padding: var(--s-7); }
.way-travel h3 { font-size: var(--t-xl); }
.way-earn { grid-column: span 5; background: var(--tint-yellow); border-color: transparent; }
.way-build { grid-column: span 5; background: var(--tint-lilac); border-color: transparent; }
.way .fact { margin-top: auto; padding-top: var(--s-5); display: flex; align-items: baseline; gap: var(--s-3); }
.way .fact strong { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.way .fact span { color: var(--text-2); font-size: var(--t-sm); }
.mini-board { margin-top: var(--s-5); background: var(--surface); border-radius: var(--r-md); padding: var(--s-2) var(--s-4); }
.mini-board li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-4); align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: var(--t-sm); }
.mini-board li:last-child { border-bottom: 0; }
.mini-board .was { color: var(--muted); text-decoration: line-through; }
.mini-board .now { font-weight: 700; }
@media (max-width: 860px) {
  .way-travel, .way-earn, .way-build { grid-column: 1 / -1; }
  .way-travel { padding: var(--s-6); }
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); counter-reset: step; }
.step { border-top: var(--bw) solid var(--border-strong); padding-top: var(--s-4); counter-increment: step; }
.step::before { content: counter(step); font-family: var(--font-display); font-weight: 600; font-size: var(--t-2xl); line-height: 1; color: var(--accent-text); display: block; margin-bottom: var(--s-4); }
.step h3 { font-size: var(--t-md); margin-bottom: var(--s-2); font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
.step p { color: var(--text-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: var(--s-5); } }

/* membership: the plum night world */
.night { position: relative; background: var(--plum-night); color: #FEF9FC; isolation: isolate; border-radius: var(--r-lg); padding: var(--s-8) var(--s-7); overflow: hidden; }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 100% 0%, rgba(255, 0, 153, .38), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(166, 2, 100, .45), transparent 60%); }
.night :focus-visible { outline-color: #fff; }
.night-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.night h2 sup { font-size: .55em; color: var(--pink); vertical-align: .55em; margin-left: 2px; }
.night .lede { color: #EBD3E1; margin-top: var(--s-4); }
.perks { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.perks li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; color: #FCEEF8; }
.perks .icon { color: var(--pink); margin-top: 3px; }
.calc { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-lg); padding: var(--s-6); backdrop-filter: blur(6px); }
.calc h3 { font-size: var(--t-md); font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--s-5); }
.slider-row { margin-bottom: var(--s-5); }
.slider-row label { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-sm); color: #EBD3E1; margin-bottom: var(--s-2); }
.slider-row output { font-weight: 700; color: #fff; font-size: var(--t-base); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--pink) var(--fill, 50%), rgba(255,255,255,.22) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--pink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: transform var(--dur-1) var(--ease-spring); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-out { border-top: 1px dashed rgba(255,255,255,.25); padding-top: var(--s-5); display: grid; gap: var(--s-2); }
.calc-out .row { display: flex; justify-content: space-between; font-size: var(--t-sm); color: #EBD3E1; }
.calc-out .row b { color: #fff; font-variant-numeric: tabular-nums; }
.calc-verdict { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-md); background: rgba(255, 0, 153, .16); border: 1px solid rgba(255, 0, 153, .45); font-weight: 600; line-height: 1.4; }
.calc-verdict.no { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }
.calc .btn { margin-top: var(--s-5); }
@media (max-width: 900px) { .night { padding: var(--s-7) var(--s-5); } .night-grid { grid-template-columns: 1fr; gap: var(--s-7); } }

/* faq */
.faq { border-top: var(--bw) solid var(--border-strong); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) 0; font-weight: 650; font-size: var(--t-md); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--dur-2) var(--ease-out); color: var(--accent-text); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-7) var(--s-5) 0; color: var(--text-2); max-width: 44em; }

.closer { background: var(--pink); color: #000; border-radius: var(--r-lg); padding: var(--s-8) var(--s-7); display: grid; grid-template-columns: 1fr auto; gap: var(--s-6); align-items: end; }
.closer h2 { max-width: 12em; }
.closer :focus-visible { outline-color: #000; }
@media (max-width: 760px) { .closer { grid-template-columns: 1fr; padding: var(--s-7) var(--s-5); } }

.site-footer { border-top: 1px solid var(--border); padding: var(--s-7) 0 var(--s-8); color: var(--muted); font-size: var(--t-sm); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--s-7); }
.footer-grid .logo { color: var(--text); }
.fine { font-size: var(--t-xs); line-height: 1.6; max-width: 62em; }
.fine + .fine { margin-top: var(--s-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field > label, .legend { font-weight: 650; font-size: var(--t-sm); }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 0 var(--s-4); border-radius: var(--r-md);
  border: var(--bw) solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--border-strong); box-shadow: 0 0 0 3px rgba(255, 0, 153, .28); }
.input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.input:disabled { opacity: .55; cursor: not-allowed; }
.field-error { color: var(--danger); font-size: var(--t-xs); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); }
.field-row .field { min-width: 0; }
input[type="date"].input { min-width: 0; padding-right: var(--s-3); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.input-prefix .input { padding-left: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: var(--bw) solid var(--border); background: var(--surface); font-weight: 600; font-size: var(--t-sm); transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.chip:hover span { border-color: var(--muted); }
.chip input:active + span { transform: scale(.96); }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-5); min-width: 0; }
fieldset .legend { display: block; margin-bottom: var(--s-2); padding: 0; }

.stepper { display: inline-grid; grid-template-columns: 48px 56px 48px; align-items: center; border: var(--bw) solid var(--border); border-radius: var(--r-md); background: var(--surface); height: 50px; }
.stepper button { height: 100%; border: 0; background: transparent; display: grid; place-items: center; border-radius: var(--r-md); }
.stepper button:hover:not(:disabled) { background: var(--surface-2); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- planner ---------- */
.planner { display: grid; grid-template-columns: minmax(0, 372px) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.planner > aside { min-width: 0; }
.planner-form { position: static; background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-1); }
.planner-form h1 { font-size: var(--t-xl); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: var(--s-2); }
.planner-form > p { color: var(--text-2); font-size: var(--t-sm); margin-bottom: var(--s-5); }
.disclosure { border: 0; background: none; padding: 8px 0; font-weight: 650; font-size: var(--t-sm); color: var(--accent-text); display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.disclosure .icon { transition: transform var(--dur-2) var(--ease-out); }
.disclosure[aria-expanded="true"] .icon { transform: rotate(45deg); }
.form-actions { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
@media (min-width: 981px) and (min-height: 960px) { .planner-form { position: sticky; top: var(--s-5); } }
@media (max-width: 980px) { .planner { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
@media (max-width: 480px) { input[type="date"].input { padding-inline: 12px 6px; font-size: var(--t-sm); } }

.history { margin-top: var(--s-6); }
.history h2 { font-family: var(--font-body); font-size: var(--t-sm); font-weight: 650; letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-2); }
.history li + li { border-top: 1px solid var(--border); }
.history button { width: 100%; text-align: left; background: none; border: 0; padding: var(--s-3) var(--s-2); display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s-3); border-radius: var(--r-sm); min-height: 56px; }
.history button:hover { background: var(--surface-2); }
.history .place { font-weight: 650; }
.history .when { grid-column: 1; font-size: var(--t-xs); color: var(--muted); }
.history .price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); margin-left: 6px; vertical-align: 2px; }

/* results */
.results { scroll-margin-top: var(--s-5); min-width: 0; overflow-x: clip; padding-inline: 20px; margin-inline: -20px; }
.state { border: var(--bw) dashed var(--border); border-radius: var(--r-lg); padding: var(--s-7) var(--s-6); background: var(--surface); }
.state h2 { font-size: var(--t-xl); margin-bottom: var(--s-3); }
.state p { color: var(--text-2); max-width: 36em; }
.state .btn-row { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.state.error { border-style: solid; border-color: var(--danger); background: var(--danger-bg); }
.state.error .icon-lg { color: var(--danger); }
.icon-lg { width: 36px; height: 36px; margin-bottom: var(--s-4); }
.idea-list { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.idea { width: 100%; text-align: left; border: var(--bw) solid var(--border); background: var(--bg); border-radius: var(--r-md); padding: var(--s-4); display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: center; transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.idea:hover { border-color: var(--border-strong); transform: translateX(4px); }
.idea b { display: block; }
.idea span { font-size: var(--t-sm); color: var(--muted); }

.loading-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.progress { display: grid; gap: var(--s-4); margin: var(--s-5) 0; }
.progress li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: center; color: var(--muted); transition: color var(--dur-2) var(--ease-out); }
.progress .dot { width: 28px; height: 28px; border-radius: 50%; border: var(--bw) solid var(--border); display: grid; place-items: center; transition: all var(--dur-2) var(--ease-out); }
.progress .dot .icon { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: all var(--dur-2) var(--ease-spring); stroke-width: 3; }
.progress li.now { color: var(--text); font-weight: 650; }
.progress li.now .dot { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 0, 153, .2); animation: pulse 1.6s var(--ease-in-out) infinite; }
.progress li.done { color: var(--text-2); }
.progress li.done .dot { background: var(--pink-active); border-color: var(--pink-active); color: #fff; }
.progress li.done .dot .icon { opacity: 1; transform: scale(1); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 0, 153, 0); } }
.skel { border-radius: 6px; background: linear-gradient(100deg, #EFE4EA 30%, #FBF4F8 50%, #EFE4EA 70%); background-size: 300% 100%; animation: shimmer 1.6s var(--ease-in-out) infinite; height: 14px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.skel-line { display: grid; grid-template-columns: 1fr 64px; gap: var(--s-5); margin-bottom: 14px; }
@media (max-width: 760px) { .loading-grid { grid-template-columns: minmax(0, 1fr); } .loading-grid .receipt-wrap { max-width: 340px; } }

.plan-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: var(--s-6); align-items: start; margin-bottom: var(--s-8); }
.verdict-kicker { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: var(--t-sm); padding: 6px 14px 6px 10px; border-radius: var(--r-pill); margin-bottom: var(--s-4); }
.verdict-kicker.good { background: var(--success-bg); color: var(--success); }
.verdict-kicker.mid { background: var(--warning-bg); color: var(--warning); }
.verdict-kicker.bad { background: var(--danger-bg); color: var(--danger); }
.verdict h1 { font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.03em; margin-bottom: var(--s-4); }
.verdict .reason { font-size: var(--t-md); line-height: 1.45; color: var(--text-2); max-width: 30em; }
.verdict .season { margin-top: var(--s-4); color: var(--muted); font-size: var(--t-sm); max-width: 38em; }
.verdict { container-type: inline-size; }
.scoreline { margin-top: var(--s-6); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s-5); align-items: center; padding: var(--s-5); background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-lg); }
.gauge { position: relative; }
.gauge svg { width: 150px; height: 84px; overflow: visible; }
.gauge .track { stroke: var(--surface-3); }
.gauge .fill { stroke: var(--gauge, var(--pink)); stroke-dasharray: 157.08; stroke-dashoffset: 157.08; transition: stroke-dashoffset 1.2s var(--ease-out) .25s; }
.gauge .val { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-family: var(--font-display); font-weight: 640; font-size: 2.5rem; letter-spacing: -0.04em; line-height: 1; }
.scoreline h2 { font-family: var(--font-body); font-size: var(--t-base); font-weight: 700; letter-spacing: -0.005em; margin-bottom: 4px; line-height: 1.3; }
.scoreline p { font-size: var(--t-sm); color: var(--text-2); }
.conf { display: inline-flex; gap: 3px; vertical-align: -1px; margin-right: 6px; }
.conf i { width: 6px; height: 12px; border-radius: 2px; background: var(--border); }
.conf i.on { background: var(--text); }
.plan-receipt { position: sticky; top: var(--s-5); }
@media (max-width: 1180px) { .plan-top { grid-template-columns: minmax(0, 1fr); } .plan-receipt { position: static; max-width: 360px; } }
@container (max-width: 460px) { .scoreline { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--s-4); } }

.block { margin-bottom: var(--s-8); }
.block > h2 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.block > .sub { color: var(--text-2); margin-bottom: var(--s-5); max-width: 40em; }

.areas { border-top: var(--bw) solid var(--border-strong); }
.area { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-3) var(--s-6); padding: var(--s-5) 0; border-bottom: 1px solid var(--border); }
.area h3 { font-size: var(--t-md); }
.area .vibe { color: var(--text-2); font-size: var(--t-sm); margin-top: 4px; }
.area .trade { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px var(--s-5); }
.area .trade b { color: var(--text-2); font-weight: 650; }
.range { align-self: center; }
.range .nums { display: flex; justify-content: space-between; font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--t-sm); margin-bottom: 6px; }
.range .nums span:last-child { color: var(--muted); font-weight: 500; }
.range .track { position: relative; height: 10px; background: var(--surface-3); border-radius: 5px; }
.range .bar { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--pink); transform-origin: left; animation: grow var(--dur-4) var(--ease-out) both; animation-delay: var(--d, 0ms); }
.range .bar.best { background: var(--text); }
.range .target { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--text); box-shadow: 0 0 0 1.5px var(--bg); }
.range .target::after { content: ""; position: absolute; top: -6px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 1.5px var(--bg); }
@keyframes grow { from { transform: scaleX(0); } }
.range-key { display: flex; gap: var(--s-5); font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-3); align-items: center; flex-wrap: wrap; }
.range-key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text); margin-right: 6px; }
@media (max-width: 640px) { .area { grid-template-columns: minmax(0, 1fr); } }

.moves { display: grid; gap: var(--s-3); counter-reset: mv; }
.move { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-5); padding: var(--s-5); background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-md); align-items: start; }
.move h3 { font-family: var(--font-body); font-size: var(--t-base); font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; }
.move p { grid-column: 1; color: var(--text-2); font-size: var(--t-sm); max-width: 44em; }
.move .save { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; color: var(--success); background: var(--success-bg); border-radius: var(--r-pill); padding: 4px 12px; font-size: var(--t-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }

.timing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: var(--bw) solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.timing div { padding: var(--s-5); border-right: 1px solid var(--border); }
.timing div:last-child { border-right: 0; }
.timing dt { display: flex; gap: var(--s-2); align-items: center; font-size: var(--t-sm); color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.timing dd { font-weight: 650; line-height: 1.35; }
@media (max-width: 760px) { .timing { grid-template-columns: minmax(0, 1fr); } .timing div { border-right: 0; border-bottom: 1px solid var(--border); } .timing div:last-child { border-bottom: 0; } }

.watch { background: var(--warning-bg); border-radius: var(--r-md); padding: var(--s-5); display: grid; gap: var(--s-3); }
.watch li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); color: var(--text); font-size: var(--t-sm); }
.watch .icon { color: var(--warning); margin-top: 2px; }

.plan-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; padding-top: var(--s-5); border-top: 1px solid var(--border); }
.disclaimer { margin-top: var(--s-5); font-size: var(--t-xs); color: var(--muted); display: grid; grid-template-columns: 18px 1fr; gap: var(--s-2); max-width: 60em; line-height: 1.55; }
.disclaimer .icon { width: 16px; height: 16px; margin-top: 2px; }

.reveal > * { animation: rise var(--dur-3) var(--ease-out) both; }
.reveal > *:nth-child(2) { animation-delay: 90ms; } .reveal > *:nth-child(3) { animation-delay: 180ms; }
.reveal > *:nth-child(4) { animation-delay: 270ms; } .reveal > *:nth-child(n+5) { animation-delay: 340ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { position: relative; background: var(--plum-night); color: #FEF9FC; padding: calc(var(--header-h) + var(--s-7)) var(--s-8) var(--s-7); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7); isolation: isolate; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 0% 0%, rgba(255, 0, 153, .5), transparent 60%), radial-gradient(60% 60% at 100% 100%, rgba(166, 2, 100, .5), transparent 60%); }
.auth-side h2 { font-size: var(--t-2xl); max-width: 11em; }
.auth-facts { display: grid; gap: var(--s-4); border-top: 1px dashed rgba(255,255,255,.3); padding-top: var(--s-5); }
.auth-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); color: #EBD3E1; font-size: var(--t-sm); }
.auth-facts b { color: #fff; font-family: var(--font-display); font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; }
.auth-main { padding: calc(var(--header-h) + var(--s-7)) var(--s-5) var(--s-8); display: grid; place-items: start center; }
.auth-card { width: min(100%, 420px); }
.auth-card h1 { font-size: var(--t-2xl); letter-spacing: -0.03em; line-height: 1; margin-bottom: var(--s-3); }
.auth-card > p { color: var(--text-2); margin-bottom: var(--s-6); }
.auth-alt { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--text-2); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--border); transition: background-color var(--dur-2) var(--ease-out); }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warning); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--success); }
.pw-meter[data-s="4"] i { background: var(--success); }
.demo-note { margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--t-xs); color: var(--text-2); display: grid; grid-template-columns: 18px 1fr; gap: var(--s-2); line-height: 1.5; }
.demo-note .icon { width: 16px; height: 16px; margin-top: 2px; }
body[data-route="signin"] .site-header, body[data-route="signup"] .site-header { color: #FEF9FC; }
body[data-route="signin"] .site-header .header-actions, body[data-route="signup"] .site-header .header-actions,
body[data-route="signin"] .site-header .nav, body[data-route="signup"] .site-header .nav { display: none; }
body[data-route="signin"] .site-header .menu-btn, body[data-route="signup"] .site-header .menu-btn { display: none; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  body[data-route="signin"] .site-header, body[data-route="signup"] .site-header { color: var(--text); }
}

/* ---------- wallet ---------- */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-6); }
.page-head h1 { font-size: var(--t-2xl); letter-spacing: -0.03em; line-height: 1; }
.page-head p { color: var(--text-2); margin-top: var(--s-2); }
.wallet-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.panel { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-lg); padding: var(--s-5) var(--s-5); }
.panel + .panel { margin-top: var(--s-5); }
.panel > h2 { font-family: var(--font-body); font-size: var(--t-base); font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; margin-bottom: var(--s-4); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.panel > h2 span { font-weight: 500; color: var(--muted); font-size: var(--t-sm); }
.balance { position: relative; background: var(--pink); color: #000; border-radius: var(--r-lg); padding: var(--s-6); isolation: isolate; overflow: hidden; margin-bottom: var(--s-5); }
.balance::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 100% 0%, rgba(255,255,255,.3), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(166, 2, 100, .5), transparent 60%); }
.balance :focus-visible { outline-color: #000; }
.balance .label { font-weight: 650; font-size: var(--t-sm); }
.balance .amount { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.25rem, 2rem + 6vw, 5.25rem); letter-spacing: -0.045em; line-height: 1; margin: var(--s-2) 0 var(--s-5); }
.balance .amount small { font-size: .45em; letter-spacing: -0.02em; }
.balance-meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); align-items: center; justify-content: space-between; }
.balance-meta dl { display: flex; gap: var(--s-6); }
.balance-meta dt { font-size: var(--t-xs); font-weight: 600; color: #3b0023; }
.balance-meta dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.tx { width: 100%; border-collapse: collapse; }
.tx td { padding: 14px 0; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: var(--t-sm); }
.tx tr:last-child td { border-bottom: 0; }
.tx .ico { width: 44px; }
.tx .ico span { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.tx .ico .icon { width: 18px; height: 18px; }
.tx .what b { display: block; font-weight: 650; font-size: var(--t-base); }
.tx .what span { color: var(--muted); font-size: var(--t-xs); }
.tx .amt { text-align: right; font-weight: 700; white-space: nowrap; }
.tx .amt.plus { color: var(--success); }
.streak { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin: var(--s-4) 0 var(--s-3); }
.streak i { aspect-ratio: 1; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; }
.streak i.on { background: var(--text); color: var(--bg); }
.streak i.next { background: transparent; border: 2px dashed var(--pink); }
.streak .icon { width: 60%; height: 60%; stroke-width: 3.5; }
.bigstat { font-family: var(--font-display); font-weight: 600; font-size: var(--t-2xl); letter-spacing: -0.035em; line-height: 1; }
.advance-bar { height: 10px; border-radius: 5px; background: var(--surface-3); margin: var(--s-4) 0 var(--s-2); overflow: hidden; }
.advance-bar i { display: block; height: 100%; width: 30%; border-radius: 5px; background: var(--pink); }
.offers li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); align-items: center; }
.offers li:last-child { border-bottom: 0; padding-bottom: 0; }
.offers b { font-weight: 650; }
.offers span { grid-column: 1; font-size: var(--t-xs); color: var(--muted); }
.offers .pay { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; color: var(--success); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .wallet-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: var(--s-5); transform: translateX(-50%); display: grid; gap: var(--s-2); width: min(92vw, 440px); pointer-events: none; }
.toast { background: #000; color: #fff; border-radius: var(--r-md); padding: 14px var(--s-5); font-weight: 600; font-size: var(--t-sm); display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: center; box-shadow: var(--shadow-2); animation: toast-in var(--dur-3) var(--ease-spring) both; }
.toast .icon { color: var(--pink); }
.toast.out { animation: toast-out var(--dur-2) var(--ease-in-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- orchestrated page load (hero only) ---------- */
.hero [data-in] { animation: rise var(--dur-3) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .btn:hover, .idea:hover { transform: none; }
}

/* ==========================================================================
   v2: compare, price watch, trip backup, edge section, plans
   ========================================================================== */
.nav a { white-space: nowrap; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F6A6D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; text-overflow: ellipsis; }
textarea.input { padding: 12px var(--s-4); min-height: 120px; resize: vertical; line-height: 1.5; }
.free-line { margin-top: var(--s-4); display: flex; gap: var(--s-2); align-items: center; font-weight: 650; font-size: var(--t-sm); color: #000; }
.free-line .icon { stroke-width: 3; }
.free-flag { display: inline-flex; align-items: center; gap: 6px; background: var(--success-bg); color: var(--success); font-weight: 700; font-size: var(--t-xs); border-radius: var(--r-pill); padding: 4px 12px; margin-bottom: var(--s-3); }
.free-flag .icon { width: 14px; height: 14px; stroke-width: 3; }

/* landing: the edge */
.edges { border-top: var(--bw) solid var(--border-strong); }
.edge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s-6) var(--s-8); align-items: center; padding: var(--s-7) 0; border-bottom: 1px solid var(--border); }
.edge .gripe { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s-3); }
.edge .gripe span { margin-right: 6px; }
.edge .gripe q { quotes: "\201C" "\201D"; font-style: italic; }
.edge h3 { font-size: var(--t-xl); margin-bottom: var(--s-3); max-width: 15em; }
.edge p.body { color: var(--text-2); max-width: 34em; margin-bottom: var(--s-4); }
.edge-vis { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-1); }
.edge-vis .cap { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-3); }
.edge-note { margin-top: var(--s-5); max-width: 62em; }
@media (max-width: 860px) { .edge { grid-template-columns: minmax(0, 1fr); padding: var(--s-6) 0; } }

/* stacked all-in bars (used on landing and in compare results) */
.stack-row + .stack-row { margin-top: var(--s-4); }
.stack-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: var(--t-sm); margin-bottom: 6px; }
.stack-top b { font-weight: 650; }
.stack-top .shown { color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.stack-top .real { font-weight: 700; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-3); }
.stack.tall { height: 22px; border-radius: 11px; }
.seg { height: 100%; transform-origin: left; animation: grow var(--dur-4) var(--ease-out) both; }
.seg + .seg { border-left: 2px solid var(--surface); }
.seg.base { background: var(--text); }
.seg.tax { background: var(--pink-deep); }
.seg.fee { background: var(--pink); }
.seg.park { background: repeating-linear-gradient(135deg, var(--muted) 0 4px, transparent 4px 7px); }
.barkey { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-4); }
.barkey i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.barkey .base { background: var(--text); } .barkey .tax { background: var(--pink-deep); } .barkey .fee { background: var(--pink); }
.barkey .park { background: repeating-linear-gradient(135deg, var(--muted) 0 3px, transparent 3px 5px); }

/* compare form */
.offer-card { border: var(--bw) solid var(--border); border-radius: var(--r-md); padding: var(--s-4); margin-bottom: var(--s-3); background: var(--bg); }
.offer-card .field:last-child, .offer-card fieldset { margin-bottom: 0; }
.offer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-3); min-height: 32px; }
.offer-head b { font-weight: 700; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

/* compare results */
.ai-offer { padding: var(--s-5); border: var(--bw) solid var(--border); border-radius: var(--r-lg); background: var(--surface); margin-bottom: var(--s-4); }
.ai-offer.win { border-color: var(--border-strong); box-shadow: 5px 5px 0 var(--pink); }
.ai-offer-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-5); align-items: start; margin-bottom: var(--s-4); }
.ai-offer h3 { font-size: var(--t-md); }
.ai-offer .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-offer .tags .tag { margin: 0; font-size: var(--t-xs); padding: 3px 10px; }
.tag.good { background: var(--success-bg); color: var(--success); } .tag.warn { background: var(--warning-bg); color: var(--warning); } .tag.win { background: var(--pink-active); color: #fff; }
.ai-total { text-align: right; }
.ai-total .amt { font-family: var(--font-display); font-weight: 640; font-size: var(--t-xl); letter-spacing: -0.035em; line-height: 1; }
.ai-total small { display: block; color: var(--muted); font-size: var(--t-xs); margin-top: 4px; }
.ai-break { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-4); font-size: var(--t-xs); color: var(--muted); }
.ai-break b { display: block; color: var(--text); font-size: var(--t-base); font-variant-numeric: tabular-nums; }
.ai-offer .note { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--text-2); }
@media (max-width: 560px) { .ai-break { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ai-offer-head { grid-template-columns: minmax(0, 1fr); } .ai-total { text-align: left; } }
.asklist { display: grid; gap: var(--s-3); }
.asklist li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); font-size: var(--t-sm); }
.asklist .icon { color: var(--accent-text); margin-top: 2px; }

/* price watch */
.watch-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.watch-head h1 { font-size: var(--t-2xl); letter-spacing: -0.03em; line-height: 1; }
.watch-head p { color: var(--text-2); margin-top: var(--s-2); }
.chart-card { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-5); }
.chart-card svg { width: 100%; height: auto; overflow: visible; }
.c-band { fill: var(--surface-3); } .c-grid { stroke: var(--border); stroke-width: 1; }
.c-target { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 5 5; }
.c-line { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.4s var(--ease-out) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.c-dot { fill: var(--surface); stroke: var(--pink); stroke-width: 3; } .c-dot.last { fill: var(--pink); }
.c-text { font: 600 12px var(--font-body); fill: var(--muted); font-variant-numeric: tabular-nums; }
.c-text.strong { fill: var(--text); font-weight: 700; }
.c-trip { stroke: var(--muted); stroke-width: 1.5; }
.statrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); margin-top: var(--s-4); padding-top: var(--s-4); gap: var(--s-3); }
.statrow dt { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.statrow dd { font-weight: 700; font-size: var(--t-md); font-variant-numeric: tabular-nums; }
.statrow dd.good { color: var(--success); } .statrow dd.bad { color: var(--danger); }
@media (max-width: 560px) { .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.watch-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
@media (max-width: 760px) { .watch-cols { grid-template-columns: minmax(0, 1fr); } }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); }
.inline-form .full { grid-column: 1 / -1; }
.inline-form .field { margin: 0; }
.loglist li { display: grid; grid-template-columns: 1fr auto 40px; gap: var(--s-3); align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: var(--t-sm); }
.loglist li:last-child { border-bottom: 0; }
.loglist span.src { display: block; color: var(--muted); font-size: var(--t-xs); }
.loglist b { font-variant-numeric: tabular-nums; }
.advice { border: var(--bw) solid var(--border-strong); border-radius: var(--r-lg); padding: var(--s-5); background: var(--surface); margin-bottom: var(--s-5); }
.advice h2 { font-size: var(--t-xl); margin: var(--s-2) 0 var(--s-3); }
.advice p { color: var(--text-2); max-width: 44em; }
.advice .triggers { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.advice .triggers li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-2); font-size: var(--t-sm); }
.advice .triggers .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent-text); stroke-width: 3; }
.advice .meta { margin-top: var(--s-4); font-size: var(--t-xs); color: var(--muted); }
.advice .btn-row { margin-top: var(--s-4); display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.check-inline { display: flex; gap: var(--s-3); align-items: center; font-size: var(--t-sm); font-weight: 600; min-height: 44px; cursor: pointer; }
.check-inline input { width: 22px; height: 22px; accent-color: var(--pink-active); }

/* trip backup */
.paper-wrap { filter: drop-shadow(0 1px 1px rgba(41, 2, 25, .16)) drop-shadow(0 12px 16px rgba(41, 2, 25, .2)); margin-bottom: var(--s-6); }
.paper { background: var(--receipt); color: var(--receipt-ink); border-radius: 4px; padding: var(--s-6); background-image: repeating-linear-gradient(0deg, rgba(41, 2, 25, .018) 0 2px, transparent 2px 5px); }
.paper .subject { font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-weight: 600; font-size: var(--t-lg); letter-spacing: -0.02em; line-height: 1.15; padding-bottom: var(--s-4); border-bottom: 1.5px dashed var(--receipt-rule); margin-bottom: var(--s-4); }
.paper .letter { white-space: pre-wrap; font-size: var(--t-sm); line-height: 1.65; min-height: 8em; overflow-wrap: anywhere; }
.paper .caret::after { content: ""; display: inline-block; width: 8px; height: 1.1em; background: var(--pink); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tabs { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--surface-3); margin-bottom: var(--s-4); gap: 2px; max-width: 100%; }
.tabs button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 0 var(--s-4); min-height: 40px; font-weight: 650; font-size: var(--t-sm); color: var(--text-2); transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.checklist li { border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding: var(--s-4) 0; cursor: pointer; align-items: start; }
.checklist input { position: absolute; opacity: 0; }
.checklist .box { width: 28px; height: 28px; border-radius: 50%; border: var(--bw) solid var(--border); display: grid; place-items: center; transition: all var(--dur-2) var(--ease-spring); color: transparent; }
.checklist .box .icon { width: 16px; height: 16px; stroke-width: 3.5; }
.checklist input:checked + .box { background: var(--pink-active); border-color: var(--pink-active); color: #fff; transform: scale(1.06); }
.checklist input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 3px; }
.checklist b { display: block; font-weight: 650; }
.checklist span.why { font-size: var(--t-sm); color: var(--muted); }
.checklist input:checked ~ .txt b { text-decoration: line-through; text-decoration-color: var(--muted); }
.meter { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: var(--s-2) 0 var(--s-3); }
.meter i { display: block; height: 100%; background: var(--pink); border-radius: 4px; transition: width var(--dur-3) var(--ease-out); }

/* plans inside the night section */
.plans { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.plan-card { border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-lg); padding: var(--s-5); background: rgba(255, 255, 255, .05); }
.plan-card.free { background: #FEF9FC; color: #000; border-color: transparent; }
.plan-card .price { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.plan-card .price b { font-family: var(--font-display); font-weight: 620; font-size: var(--t-2xl); letter-spacing: -0.04em; line-height: 1; }
.plan-card .price span { font-weight: 650; }
.plan-card .price em { font-style: normal; font-size: var(--t-sm); margin-left: auto; font-weight: 600; opacity: .75; }
.plan-card ul { display: grid; gap: var(--s-2); font-size: var(--t-sm); }
.plan-card li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-2); }
.plan-card li .icon { width: 16px; height: 16px; margin-top: 4px; stroke-width: 3; color: var(--pink); }
.plan-card.free li .icon { color: var(--pink-active); }
.plan-card li a { font-weight: 650; text-underline-offset: 3px; }
.promises { margin-top: var(--s-5); border-top: 1px dashed rgba(255, 255, 255, .3); padding-top: var(--s-5); }
.promises h3 { font-family: var(--font-body); font-size: var(--t-base); font-weight: 700; letter-spacing: -0.005em; margin-bottom: var(--s-3); }
.promises ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-5); font-size: var(--t-sm); color: #FCEEF8; }
.promises li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-2); }
.promises .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--pink); }
@media (max-width: 560px) { .promises ul { grid-template-columns: minmax(0, 1fr); } }

.nextsteps { display: grid; gap: var(--s-2); }

@media (prefers-reduced-motion: reduce) { .c-line { stroke-dashoffset: 0; animation: none; } .paper .caret::after { animation: none; } }

.watch-cols .panel + .panel, .watch-cols .panel { margin-top: 0; }

/* ==========================================================================
   v3: comparison pages (same tokens, same components)
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-5); }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.vs-hero h1 { font-size: var(--t-2xl); letter-spacing: -0.03em; line-height: 1.02; max-width: 17em; }
.vs-hero .lede { margin-top: var(--s-5); max-width: 40em; }
.vs-hero .lede + .lede { margin-top: var(--s-3); font-size: var(--t-base); }
.checked { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--muted); display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.checked .icon { width: 16px; height: 16px; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.pick { border: var(--bw) solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); background: var(--surface); }
.pick.rosy { border-color: var(--border-strong); box-shadow: 5px 5px 0 var(--pink); }
.pick h2 { font-family: var(--font-body); font-size: var(--t-base); font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; margin-bottom: var(--s-3); }
.pick ul, .pc-card ul { display: grid; gap: var(--s-2); font-size: var(--t-sm); color: var(--text-2); }
.pick li, .pc-card li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-2); }
.pick li .icon, .pc-card li .icon { width: 16px; height: 16px; margin-top: 4px; stroke-width: 3; color: var(--accent-text); }
@media (max-width: 720px) { .picks { grid-template-columns: minmax(0, 1fr); } }

.vs-section { padding: var(--s-8) 0 0; }
.vs-section > h2 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.vs-section > .sub { color: var(--text-2); max-width: 42em; margin-bottom: var(--s-5); }
.vs { border: var(--bw) solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.vs-head, .vs-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); }
.vs-head { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: var(--bw) solid var(--border-strong); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.vs-col { padding: var(--s-4) var(--s-5); font-family: var(--font-display); font-variation-settings: "SOFT" 50; font-weight: 600; font-size: var(--t-md); letter-spacing: -0.02em; line-height: 1.1; }
.vs-col small { display: block; font-family: var(--font-body); font-size: var(--t-xs); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.vs-col.rosy { background: var(--surface-2); box-shadow: inset 0 4px 0 var(--pink); }
.vs-head .vs-col:first-child { border-radius: var(--r-lg) 0 0 0; }
.vs-group { grid-column: 1 / -1; padding: var(--s-5) var(--s-5) var(--s-2); font-family: var(--font-body); font-weight: 700; font-size: var(--t-sm); letter-spacing: 0; color: var(--muted); border-top: 1px solid var(--border); }
.vs-row { border-top: 1px solid var(--border); }
.vs-group + .vs-row { border-top: 0; }
.vs-label { padding: var(--s-4) var(--s-5); font-weight: 650; font-size: var(--t-sm); }
.vs-cell { padding: var(--s-4) var(--s-5); display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: var(--s-3); font-size: var(--t-sm); color: var(--text-2); align-items: start; }
.vs-cell.rosy { background: var(--surface-2); }
.vs > .vs-row:last-child .vs-cell:last-child { border-radius: 0 0 var(--r-lg) 0; }
.vs > .vs-row:last-child .vs-label { border-radius: 0 0 0 var(--r-lg); }
.mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mark .icon { width: 14px; height: 14px; stroke-width: 3.2; }
.mark.yes { background: var(--success-bg); color: var(--success); }
.mark.no { background: var(--surface-3); color: var(--muted); }
.mark.part { background: var(--warning-bg); color: var(--warning); }
.mark.info { background: var(--tint-lilac); color: var(--text-2); }
.vs-key { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-4); align-items: center; }
.vs-key span { display: inline-flex; gap: 6px; align-items: center; }
.vs-key .mark { width: 18px; height: 18px; } .vs-key .mark .icon { width: 10px; height: 10px; }
@media (max-width: 720px) {
  .vs-head, .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vs-head > :first-child { display: none; }
  .vs-head .vs-col.rosy { border-radius: var(--r-lg) 0 0 0; }
  .vs-col { padding: var(--s-3) var(--s-4); font-size: var(--t-base); }
  .vs-label { grid-column: 1 / -1; padding: var(--s-4) var(--s-4) 0; }
  .vs-label + .vs-cell, .vs-label + .vs-cell + .vs-cell { padding-top: var(--s-3); }
  .vs-row { background: linear-gradient(90deg, var(--surface-2) 50%, transparent 50%); }
  .vs-cell { grid-template-columns: minmax(0, 1fr); padding: var(--s-4); gap: var(--s-2); }
  .vs-cell.rosy { background: transparent; }
  .vs-group { padding: var(--s-5) var(--s-4) var(--s-2); background: var(--surface); }
}

.pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.pc-card { border: var(--bw) solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); background: var(--surface); }
.pc-card.rosy { background: var(--surface-2); border-color: transparent; }
.pc-card h3 { font-size: var(--t-lg); margin-bottom: var(--s-4); }
.pc-card h4 { font-family: var(--font-body); font-size: var(--t-sm); font-weight: 700; margin: var(--s-4) 0 var(--s-2); color: var(--text); }
.pc-card h4:first-of-type { margin-top: 0; }
.pc-card .pros .icon { color: var(--success); } .pc-card .cons .icon { color: var(--muted); }
@media (max-width: 720px) { .pc { grid-template-columns: minmax(0, 1fr); } }

.verdict-panel h2 { max-width: 16em; }
.verdict-panel p { color: #EBD3E1; max-width: 44em; margin-top: var(--s-4); font-size: var(--t-md); line-height: 1.5; }
.verdict-panel p + p { font-size: var(--t-base); }
.verdict-panel .together { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: rgba(255, 0, 153, .16); border: 1px solid rgba(255, 0, 153, .45); color: #fff; font-size: var(--t-base); max-width: 46em; }
.verdict-panel .together b { display: block; margin-bottom: 4px; }

.closer .btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.closer p { margin-top: var(--s-3); max-width: 34em; color: #1d0011; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.more-grid .idea { text-decoration: none; background: var(--surface); }
@media (max-width: 720px) { .more-grid { grid-template-columns: minmax(0, 1fr); } }
.sources { font-size: var(--t-xs); color: var(--muted); max-width: 64em; line-height: 1.6; margin-top: var(--s-6); }

/* hub */
.hub-feature { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: end; border: var(--bw) solid var(--border-strong); border-radius: var(--r-lg); padding: var(--s-6); background: var(--surface); box-shadow: 6px 6px 0 var(--pink); margin-bottom: var(--s-5); text-decoration: none; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.hub-feature:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--pink); }
.hub-feature h3 { font-size: var(--t-xl); margin: var(--s-2) 0 var(--s-3); }
.hub-feature p { color: var(--text-2); max-width: 40em; }
@media (max-width: 720px) { .hub-feature { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); } }
.hub-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.hub-card { display: flex; flex-direction: column; gap: var(--s-2); border: var(--bw) solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); background: var(--surface); text-decoration: none; transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.hub-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.hub-card h3 { font-size: var(--t-lg); }
.hub-card p { color: var(--text-2); font-size: var(--t-sm); }
.hub-card .kind { font-size: var(--t-xs); font-weight: 650; color: var(--muted); }
.hub-card .go { margin-top: auto; padding-top: var(--s-3); font-weight: 650; font-size: var(--t-sm); color: var(--accent-text); }
@media (max-width: 720px) { .hub-list { grid-template-columns: minmax(0, 1fr); } }
.glance { border-top: var(--bw) solid var(--border-strong); }
.glance-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-3) var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--border); align-items: center; }
.glance-row.rosy { background: var(--surface-2); margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); border-radius: var(--r-md); border-bottom-color: transparent; }
.glance-row h3 { font-size: var(--t-md); }
.glance-row h3 a { text-decoration: none; } .glance-row h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.glance-row h3 small { display: block; font-family: var(--font-body); font-size: var(--t-xs); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.gchips { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); font-size: var(--t-xs); font-weight: 600; color: var(--text-2); }
.gchip .mark { width: 20px; height: 20px; } .gchip .mark .icon { width: 11px; height: 11px; }
.gchip.off { color: var(--muted); }
@media (max-width: 720px) { .glance-row { grid-template-columns: minmax(0, 1fr); } }

.stackup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-7); align-items: center; }
.stackup .more-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .stackup { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px var(--s-4); margin-top: var(--s-5); font-size: var(--t-sm); }
.footer-links a { text-underline-offset: 3px; color: var(--text-2); }
.footer-links b { width: 100%; color: var(--text); font-weight: 650; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* ==========================================================================
   v4: profile menu, account page, destination suggestions, save toggle
   ========================================================================== */
.profile { position: relative; }
.avatar-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); min-height: 48px; font-weight: 650; font-size: var(--t-sm); transition: background-color var(--dur-2) var(--ease-out); }
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { background: rgba(0, 0, 0, .08); }
.avatar-btn .chev { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.avatar-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.avatar.lg { width: 48px; height: 48px; font-size: var(--t-md); background: var(--pink); color: #000; }
.avatar.xl { width: 88px; height: 88px; font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; background: var(--pink); color: #000; }
.profile-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 312px; z-index: 60; background: var(--surface); color: var(--text); border: var(--bw) solid var(--border-strong); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--pink); padding: var(--s-2); transform-origin: top right; animation: pop-in var(--dur-2) var(--ease-spring) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.pp-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3); align-items: center; border-bottom: 1px solid var(--border); margin-bottom: var(--s-2); }
.pp-head b { display: block; font-weight: 700; line-height: 1.2; }
.pp-head div > span { display: block; font-size: var(--t-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-head .tag { display: inline-block; margin: 6px 0 0; }
.pp-item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; width: 100%; min-height: 46px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-sm); background: none; color: inherit; font-weight: 600; font-size: var(--t-sm); text-align: left; text-decoration: none; }
.pp-item:hover, .pp-item:focus-visible { background: var(--surface-2); }
.pp-item .icon { width: 18px; height: 18px; color: var(--text-2); }
.pp-item .count { font-size: var(--t-xs); font-weight: 700; background: var(--surface-3); color: var(--text-2); border-radius: var(--r-pill); padding: 2px 9px; font-variant-numeric: tabular-nums; }
.pp-item.out, .pp-item.out .icon { color: var(--danger); }
.pp-sep { height: 1px; background: var(--border); margin: var(--s-2) 0; }
@media (max-width: 1080px) {
  .site-header.open .profile { width: 100%; }
  .site-header.open .avatar-btn { display: none; }
  .site-header.open .profile-pop, .site-header.open .profile-pop[hidden] { display: block !important; position: static; width: 100%; box-shadow: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: var(--s-3) 0 0; animation: none; }
}

/* save toggle + toast action */
.btn[aria-pressed="true"] { --_bg: var(--text); --_fg: var(--bg); }
.btn[aria-pressed="true"] .icon { fill: currentColor; }
.btn[aria-pressed="true"]:hover { box-shadow: none; }
.saved-note { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-3); }
.toast.has-action { grid-template-columns: 20px 1fr auto; pointer-events: auto; }
.toast a, .toast button.t-act { color: #fff; font-weight: 700; font-size: var(--t-sm); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 6px 2px; white-space: nowrap; }
.toast a:focus-visible { outline-color: #fff; }
.history h2 { display: flex; justify-content: space-between; align-items: baseline; }
.history h2 a { font-weight: 650; color: var(--accent-text); text-underline-offset: 3px; }

/* account */
.id-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.id-card h1 { font-size: var(--t-2xl); letter-spacing: -0.03em; line-height: 1; }
.id-card p { color: var(--text-2); margin-top: 6px; overflow-wrap: anywhere; }
.id-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); }
.id-card .tags .tag { margin: 0; font-size: var(--t-xs); padding: 4px 12px; }
@media (max-width: 520px) { .id-card { grid-template-columns: minmax(0, 1fr); } }
.trip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--border); align-items: center; }
.trip-row:last-child { border-bottom: 0; padding-bottom: 0; }
.trip-row:first-child { padding-top: 0; }
.trip-row h3 { font-size: var(--t-md); }
.trip-row .meta { font-size: var(--t-sm); color: var(--muted); margin-top: 2px; }
.trip-row .meta b { color: var(--success); font-weight: 700; }
.trip-row .nums { text-align: right; font-variant-numeric: tabular-nums; }
.trip-row .nums b { display: block; font-family: var(--font-display); font-size: var(--t-lg); font-weight: 620; letter-spacing: -0.03em; line-height: 1; }
.trip-row .nums span { font-size: var(--t-xs); color: var(--muted); }
.trip-row .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.trip-row .acts .icon-btn { margin-left: auto; }
.panel .statrow { border-top: 1px solid var(--border); }
.danger-zone { border-style: dashed; }
.btn-danger { --_bg: transparent; --_fg: var(--danger); --_bd: var(--danger); }
.btn-danger:hover { --_bg: var(--danger); --_fg: #fff; box-shadow: none; }
.btn-danger.armed { --_bg: var(--danger); --_fg: #fff; }

/* destination suggestions (combobox) */
.has-suggest { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); min-width: min(300px, 86vw); z-index: 50; margin: 0; padding: 6px; list-style: none; background: var(--surface); color: var(--text); border: var(--bw) solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-2); max-height: 336px; overflow-y: auto; animation: pop-in var(--dur-2) var(--ease-out) both; transform-origin: top left; }
.suggest .s-label { padding: 6px 12px 4px; font-size: var(--t-xs); font-weight: 650; color: var(--muted); }
.suggest [role="option"] { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); align-items: center; min-height: 44px; padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--t-sm); font-weight: 500; }
.suggest [role="option"] .icon { width: 18px; height: 18px; color: var(--muted); }
.suggest [role="option"][aria-selected="true"] { background: var(--surface-2); }
.suggest [role="option"][aria-selected="true"] .icon { color: var(--accent-text); }
.suggest mark { background: none; color: inherit; font-weight: 800; }
.suggest .region { color: var(--muted); }
.tripbar .suggest { background: #fff; color: #000; border-color: #000; top: calc(100% + 12px); left: -8px; }
.tripbar .suggest [role="option"][aria-selected="true"] { background: #FCEEF8; }
.tripbar .suggest .region, .tripbar .suggest .s-label, .tripbar .suggest .icon { color: #6F6A6D; }

.tripbar { position: relative; z-index: 6; }
.planner-form .has-suggest, .panel .has-suggest { z-index: 7; }

/* v5: attractions and airports in suggestions */
.suggest .where { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 500; margin-top: 1px; }
.suggest .s-label:not(:first-child) { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.suggest { max-height: min(420px, 60vh); }
.tripbar .suggest { min-width: min(380px, 86vw); }
.tripbar .suggest .where { color: #6F6A6D; }
.tripbar .suggest .s-label:not(:first-child) { border-top-color: #EBD3E1; }
