/* DisneyFan.ai — "Fireworks" blue design. Mobile first. No inline styles (CSP blocks them). */
:root {
  --navy: #0B1E4A; --navy-2: #17306B; --blue: #1E5BD6; --blue-d: #1747A8; --sky: #9CC4FF; --sky-2: #D9E8FF;
  --pale: #E4EEFF; --bg: #F6F9FF; --teal: #0B7A72; --teal-bg: #D8F3EF; --indigo: #2F5FD0;
  --ink: #0B1E4A; --ink-2: #33405E; --muted: #4F5B76; --on-dark: #C9D8F5; --line: #DCE6F7;
  --red: #B91C1C; --red-bg: #FFF0F0; --green: #15803D; --green-bg: #E6F7EC; --yellow: #FDE68A; --mint: #7FE3D8;
  --radius: 22px; --radius-sm: 14px;
  /* aliases used by admin.css */
  --blue-dk: #1747A8; --sky-wash: #E4EEFF; --amber: #9A5B00; --amber-bg: #FFF3DD;
  --display: Fredoka, system-ui, sans-serif; --body: "Nunito Sans", system-ui, sans-serif;
  --font-d: Fredoka, 'Nunito Sans', system-ui, sans-serif;
  --font: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--blue); } a:hover { color: var(--blue-d); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

main { flex: 1 0 auto; }
.gate main { flex: none; }

/* ---------- type ---------- */
.h-page { font-family: var(--font-d); font-weight: 700; font-size: clamp(28px, 6vw, 40px); line-height: 1.1; }
.h-section { font-family: var(--font-d); font-weight: 700; font-size: clamp(28px, 5.4vw, 40px); line-height: 1.12; }
.h-section-sm { font-family: var(--font-d); font-weight: 700; font-size: 28px; }
.h-card { font-family: var(--font-d); font-weight: 600; font-size: 19px; line-height: 1.25; }
.h-card-lg { font-family: var(--font-d); font-weight: 600; font-size: 22px; line-height: 1.25; }
.eyebrow { font-size: 14px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow-sky { color: var(--sky); } .eyebrow-teal { color: var(--teal); }
.muted { color: var(--muted); } .lg { font-size: 17px; } .sm { font-size: 13px; }
.on-dark { color: var(--on-dark); } .on-navy { color: #fff; } .on-blue { color: var(--pale); } .muted-on-blue { color: var(--sky); font-weight: 800; }
.fine { font-size: 13px; color: var(--muted); }
.link-strong { font-weight: 800; text-decoration: none; }

/* ---------- layout helpers ---------- */
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid-2.tight { gap: 12px; }
.align-start { align-items: start; }
.band { padding: 48px 0; }
.band-pad { padding-top: 56px; padding-bottom: 56px; }
.band-sky { background: var(--sky-2); }
.band-navy { background: var(--navy); color: #fff; }
.band-blue { background: var(--blue); color: #fff; }
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.section-intro { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.app-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); padding-top: 20px; padding-bottom: 40px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .app-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-top: 28px; } .wrap { padding: 0 32px; } .band { padding: 64px 0; } .band-pad { padding-top: 80px; padding-bottom: 80px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent; line-height: 1.1; text-align: center; }
.btn-lg { min-height: 52px; font-size: 17px; padding: 14px 26px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-sky { background: var(--sky); color: var(--navy); } .btn-sky:hover { background: #B6D4FF; color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; } .btn-blue:hover { background: var(--blue-d); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; } .btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); } .btn-outline:hover { background: var(--pale); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-light { background: #fff; color: var(--navy); border: 0; font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 999px; min-height: 44px; white-space: nowrap; }
.btn-link { background: none; border: 0; padding: 8px 0; color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; line-height: 1.5; white-space: nowrap; width: fit-content; }
.tag-red { background: var(--red); color: #fff; } .tag-green { background: var(--green); color: #fff; } .tag-blue { background: var(--blue); color: #fff; }
.tag-teal { background: var(--teal); color: #fff; } .tag-white { background: #fff; color: var(--navy); } .tag-soft { background: #EAF1FF; color: var(--muted); }
.tag-yellow { background: var(--yellow); color: var(--navy); } .tag-mint { background: var(--mint); color: var(--navy); } .tag-pale { background: #CFE2FF; color: var(--navy); }
.tag-indigo { background: var(--indigo); color: #fff; } .tag-amber { background: #B45309; color: #fff; } .tag-purple { background: #6D28D9; color: #fff; }
.tag-sample { background: #FFF4D6; color: #7A4B00; border: 1px dashed #D4A017; }
.tag-outline { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- UAT band ---------- */
.uat-band { background: #FFF4D6; color: #5B3B00; font-size: 12px; font-weight: 700; text-align: center; padding: 4px 12px; }

/* ---------- header ---------- */
.site-head { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.fireworks { position: absolute; right: -150px; top: -60px; opacity: .55; pointer-events: none; }
.home .fireworks { opacity: .9; }
@media (min-width: 1000px) { .fireworks { right: -60px; top: -40px; } }
.nav { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; position: relative; }
.brand { font-family: var(--font-d); font-weight: 700; font-size: 24px; color: #fff; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand span { color: var(--sky); } .brand:hover { color: #fff; }
.brand-sm { font-size: 18px; }
.nav-links { display: none; gap: 22px; font-weight: 700; font-size: 15px; }
.nav-links a { color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav-links a[aria-current="page"] { border-bottom-color: var(--sky); }
.credit-pill { color: #fff; background: var(--navy-2); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.credit-pill:hover { color: #fff; background: #20408A; }
@media (min-width: 860px) { .nav-links { display: flex; margin-right: auto; } .brand { margin-right: 20px; font-size: 26px; } .nav { gap: 20px; padding-top: 18px; padding-bottom: 18px; } }
@media (max-width: 400px) { .credit-pill { padding: 8px 10px; font-size: 13px; } .btn-light { padding: 10px 14px; } .brand { font-size: 21px; } }

/* context bar (resort + dates) */
.context-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.context-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.seg { display: inline-flex; background: var(--pale); border-radius: 999px; padding: 4px; gap: 4px; max-width: 100%; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px; color: var(--ink-2); min-height: 40px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg-wrap { flex-wrap: wrap; border-radius: 22px; }
.live-grid > .side { order: -1; }
@media (min-width: 1000px) { .live-grid > .side { order: 0; } }
.context-row { flex-wrap: nowrap; }
.chip-pre { display: none; }
@media (min-width: 480px) { .chip-pre { display: inline; } }
.trip-chip { white-space: nowrap; flex: none; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 14px; color: var(--navy); min-height: 40px; }
@media (max-width: 420px) { .seg button { padding: 8px 10px; font-size: 13px; } }

/* ---------- landing ---------- */
.hero-band { background: var(--navy); color: #fff; margin-top: -1px; }
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 24px; padding-bottom: 56px; position: relative; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--navy-2); color: #CFE2FF; font-size: 13px; font-weight: 800; padding: 7px 14px; border-radius: 999px; width: fit-content; max-width: 100%; }
.hero h1 { font-family: var(--font-d); font-weight: 700; font-size: clamp(36px, 8.5vw, 60px); line-height: 1.04; letter-spacing: -.01em; }
.hero h1 span { color: var(--sky); }
.lede { font-size: 18px; color: var(--on-dark); max-width: 560px; }
.hero-fine { font-size: 14px; color: var(--on-dark); }
.sample-card { flex: 1 1 400px; min-width: 0; background: #fff; color: var(--ink); border-radius: 24px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 12px; }
.sample-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.h-card { overflow-wrap: anywhere; }
.mini { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; }
.mini-red { background: var(--red-bg); } .mini-green { background: var(--green-bg); } .mini-blue { background: var(--pale); }
.mini-title { font-weight: 800; }
.mini-meta { font-size: 13px; color: var(--muted); }
@media (min-width: 1000px) { .hero { padding-top: 40px; padding-bottom: 80px; gap: 48px; } .sample-card { padding: 24px; } }
.coast-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 0; text-align: left; transition: transform .12s ease; }
.coast-card:hover { color: var(--ink); transform: translateY(-2px); }
.coast-wdw { box-shadow: 0 6px 0 var(--blue); } .coast-dlr { box-shadow: 0 6px 0 var(--teal); }
.coast-card[aria-pressed="true"] { outline: 3px solid var(--blue); }
.coast-name { font-family: var(--font-d); font-weight: 600; font-size: 26px; line-height: 1.15; }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius); }
.f-blue { background: var(--pale); } .f-sky { background: var(--sky-2); } .f-teal { background: var(--teal-bg); } .f-indigo { background: #E3ECFF; }
.f-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.f-blue .f-icon { background: var(--blue); } .f-sky .f-icon { background: var(--sky); color: var(--navy); } .f-teal .f-icon { background: var(--teal); } .f-indigo .f-icon { background: var(--indigo); }
.f-name { font-family: var(--font-d); font-weight: 600; font-size: 22px; }
.f-quote { color: var(--ink-2); font-size: 15px; }
.f-cost { margin-top: auto; font-size: 13px; font-weight: 800; color: var(--blue-d); }
.f-teal .f-cost { color: var(--teal); }
.live-demo { background: var(--navy-2); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.demo-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--navy); }
.demo-row .tag { flex: none; }
.pack { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--pale); }
.pack:nth-child(3n+2) { background: var(--sky-2); } .pack:nth-child(3n) { background: var(--teal-bg); }
.pack-free { background: #fff !important; border: 2px solid var(--line); }
.pack-name { font-family: var(--font-d); font-weight: 600; font-size: 22px; }
.pack-price { font-family: var(--font-d); font-weight: 700; font-size: 40px; line-height: 1; }
.pack-credits { font-weight: 800; color: var(--blue-d); }
.pack ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; font-size: 15px; flex: 1; }
.pack p { color: var(--ink-2); font-size: 15px; flex: 1; }
.note-box { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #EAF1FF; border-radius: 18px; color: var(--ink-2); font-size: 15px; }
.note-box svg { flex: none; }
.note-box strong { color: var(--navy); }

/* ---------- first run ---------- */
.view-start { padding: 32px 0 56px; }
.view-start .narrow { display: flex; flex-direction: column; gap: 20px; }
.step-label { font-weight: 800; color: var(--blue); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 800; font-size: 14px; }
input[type="date"], input:not([type]), input[type="text"], input[type="search"], select { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; }
input:focus, select:focus { border-color: var(--blue); outline: none; }
.form-error { color: var(--red); font-weight: 700; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }

/* ---------- today ---------- */
.day-card { background: var(--navy); color: #fff; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.day-date { font-weight: 800; color: var(--sky); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row button { flex: none; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; min-height: 38px; color: var(--ink-2); }
.filter-row button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fact { background: #fff; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-left: 6px solid var(--blue); }
.fact h3 { font-size: 17px; font-weight: 800; line-height: 1.35; }
.fact p { color: var(--ink-2); }
.fact .meta { font-size: 13px; color: var(--muted); }
.fact.c-red { border-left-color: var(--red); } .fact.c-green { border-left-color: var(--green); } .fact.c-teal { border-left-color: var(--teal); }
.fact.c-amber { border-left-color: #B45309; } .fact.c-purple { border-left-color: #6D28D9; } .fact.c-indigo { border-left-color: var(--indigo); } .fact.c-yellow { border-left-color: #D4A017; } .fact.c-mint { border-left-color: #14B8A6; }
.fact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 16px; background: #fff; border-radius: 18px; border: 1px dashed var(--line); }
.side-live { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-live li { display: flex; gap: 10px; align-items: flex-start; }
.side-live .tag { flex: none; }
.week { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.week li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.week li:last-child { border-bottom: 0; }
.week .is-today { font-weight: 800; color: var(--blue); }
.side { gap: 16px; }

/* ---------- live ---------- */
.live-head { padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tile-n { font-family: var(--font-d); font-weight: 700; font-size: 30px; line-height: 1; color: var(--ink); }
.tile-green { background: var(--green-bg); } .tile-yellow { background: #FFF7D6; } .tile-mint { background: var(--teal-bg); }
.kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kind { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 12px; font-weight: 800; font-size: 15px; min-height: 52px; text-align: left; color: var(--navy); }
.kind:hover { border-color: var(--blue); }
.kind[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.picker { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--bg); border-radius: 16px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.pick-list .group { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 6px; }
.pick { border: 0; background: #fff; border-radius: 12px; padding: 12px 14px; text-align: left; font-weight: 700; min-height: 48px; border: 1px solid var(--line); }
.pick:hover { border-color: var(--blue); }
.toast { font-weight: 700; color: var(--green); font-size: 14px; }
.toast:empty { display: none; }
.toast.warn { color: #9A3412; }
.explain summary { font-weight: 800; cursor: pointer; min-height: 32px; }
.explain p { margin-top: 10px; color: var(--ink-2); }
.quiet { background: var(--teal-bg); border: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-btn { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; color: var(--navy); min-height: 36px; }
.mini-btn:hover { border-color: var(--blue); }

/* ---------- ask ---------- */
.chat-wrap { padding-top: 20px; padding-bottom: 32px; max-width: 860px; }
.chat { display: flex; flex-direction: column; gap: 14px; padding: 0; overflow: hidden; }
.chat-head { background: var(--navy); color: #fff; padding: 18px 20px; }
.chat-head .muted { color: var(--on-dark); }
.msgs { list-style: none; margin: 0; padding: 4px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; max-height: 60vh; overflow-y: auto; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; display: flex; flex-direction: column; gap: 6px; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--pale); border-bottom-left-radius: 6px; }
.msg.pending p { color: var(--muted); font-style: italic; }
.msg .meta { font-size: 12px; color: var(--muted); }
.msg .src { font-size: 12px; color: var(--ink-2); }
.msg .meta a { font-weight: 800; }
.suggest { display: flex; gap: 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button { flex: none; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--navy); min-height: 40px; }
.suggest button:hover { border-color: var(--blue); }
.ask-row { display: flex; gap: 8px; padding: 0 16px; }
.ask-row input { flex: 1; min-width: 0; border-radius: 999px; padding-left: 18px; }
.send { flex: none; width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.send:disabled { opacity: .5; }
.chat > .fine { padding: 0 16px 16px; }

/* ---------- credits ---------- */
.credits-page { padding-top: 24px; padding-bottom: 48px; }
.balance-card { background: var(--blue); color: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.balance-n { font-family: var(--font-d); font-weight: 700; font-size: 56px; line-height: 1; }
.notice { background: #FFF7D6; color: #5B3B00; border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.formula { display: flex; flex-direction: column; gap: 8px; }
.formula div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg); border-radius: 12px; flex-wrap: wrap; }
.formula span { color: var(--muted); font-size: 14px; }
.costs { margin: 0; display: flex; flex-direction: column; }
.costs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.costs div:last-child { border-bottom: 0; }
.costs dt { font-weight: 700; } .costs dd { margin: 0; color: var(--muted); font-weight: 700; text-align: right; }
.table-scroll { overflow-x: auto; }
.usage { width: 100%; border-collapse: collapse; font-size: 15px; }
.usage th, .usage td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.usage th { font-size: 13px; color: var(--muted); }
.usage .num { text-align: right; white-space: nowrap; }
.usage td:first-child { white-space: nowrap; color: var(--muted); }

/* ---------- footer + tab bar ---------- */
.site-foot { background: var(--navy); color: var(--on-dark); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.foot-copy { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; align-self: flex-end; }
.foot-links a { color: #fff; text-decoration: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(11,30,74,.08); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; color: var(--muted); text-decoration: none; padding: 6px 0; min-height: 48px; border-radius: 12px; }
.tabbar a[aria-current="page"] { color: var(--blue); background: var(--pale); }
body.has-tabbar { padding-bottom: 76px; }
@media (min-width: 860px) { .tabbar { display: none !important; } body.has-tabbar { padding-bottom: 0; } }

/* ---------- dialogs ---------- */
dialog { border: 0; border-radius: var(--radius); padding: 24px; width: min(440px, calc(100% - 32px)); color: var(--ink); box-shadow: 0 24px 60px rgba(11,30,74,.35); }
dialog::backdrop { background: rgba(11,30,74,.55); }
dialog h2 { font-family: var(--font-d); font-weight: 700; font-size: 26px; margin-bottom: 8px; }
dialog > p { margin-bottom: 14px; color: var(--ink-2); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.dialog-actions form { margin: 0; }
.signin-buttons { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.provider { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 16px; }
.provider.google { background: #fff; color: #1F1F1F; border: 2px solid #DADCE0; } .provider.google:hover { background: #F8F9FA; color: #1F1F1F; }
.provider.apple { background: #000; color: #fff; } .provider.apple:hover { background: #222; color: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; margin: 6px 0 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.muted-note { background: var(--bg); border-radius: 12px; padding: 12px; color: var(--muted); margin-bottom: 12px; }

/* ---------- tester gate / opening soon (server-rendered pages) ---------- */
.gate { display: grid; place-items: center; min-height: 100vh; background: linear-gradient(160deg, var(--navy), var(--navy-2)); padding: 16px; }
.gate-card { background: #fff; border-radius: var(--radius); padding: 28px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 10px; }
.gate-card h1 { font-family: var(--font-d); font-weight: 700; font-size: 28px; }
.gate-card h1 span { color: var(--blue); }
.gate-card h2 { font-family: var(--font-d); font-size: 22px; }
.gate-card label { font-weight: 800; font-size: 14px; display: block; margin-top: 6px; }
.gate-card input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; font-size: 16px; margin-top: 6px; }
.gate-card button { width: 100%; margin-top: 12px; border: 0; background: var(--blue); color: #fff; font-weight: 800; border-radius: 999px; padding: 12px 18px; min-height: 48px; }
.gate-error { color: var(--red); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
