@font-face {
  font-family: 'Libre Franklin';
  src: url('./assets/libre-franklin.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --surface-alt: #F7F9FC;
  --ink: #0B112E;
  --muted: #4C5878;
  --border: #D5DEEE;
  --brand: #16215B;
  --brand-hover: #0B112E;
  --brand-soft: #CCE5FF;
  --brand-ink: #16215B;
  --on-brand: #FFFFFF;
  --accent: #0285FF;
  --on-accent: #0B112E;
  --rail-bg: #0B112E;
  --rail-ink: #C9D4EA;
  --rail-active: #16215B;
  --amber-bg: #FEF3C7;
  --amber-ink: #8A3B0B;
  --amber-border: #F2C94C;
  --good-bg: #E5F8EC;
  --good-ink: #166534;
  --guardian-bg: #F5F8FD;
  --shadow: 0 1px 2px rgba(11, 17, 46, .05), 0 10px 28px -12px rgba(11, 17, 46, .16);
  --shadow-lg: 0 20px 50px -12px rgba(11, 17, 46, .4);
  --top: 60px;
  --rail: 76px;
  --rail-open: 264px;
  --gw: 380px;
  --radius: 14px;
}

[data-theme="dark"] {
  --bg: #070C1C;
  --surface: #101735;
  --surface-alt: #172246;
  --ink: #F4F7FF;
  --muted: #A9B6D4;
  --border: #2A3658;
  --brand: #0285FF;
  --brand-hover: #5AB4FF;
  --brand-soft: #16315C;
  --brand-ink: #9CCBFF;
  --on-brand: #0B112E;
  --accent: #0285FF;
  --on-accent: #0B112E;
  --rail-bg: #070B18;
  --rail-ink: #C5D0EA;
  --rail-active: #16215B;
  --amber-bg: #3B240A;
  --amber-ink: #FDE68A;
  --amber-border: #92400E;
  --good-bg: #113524;
  --good-ink: #86EFAC;
  --guardian-bg: #0E1730;
  --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 14px 30px -14px rgba(0, 0, 0, .65);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); margin-top: 10px; }
.kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px; }
[data-theme="dark"] .kicker { color: var(--brand); }
.kicker.light { color: #CCE5FF; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.ico { flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-quiet { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-quiet:hover { border-color: var(--brand); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-lg { padding: 13px 20px; font-size: 16px; }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
[data-theme="dark"] .link-btn, [data-theme="dark"] .link-like { color: var(--brand); }
.link-like { color: var(--brand-ink); font-weight: 600; text-decoration: underline; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
.icon-btn:hover { border-color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
[data-theme="dark"] .pill { color: var(--brand-ink); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-alt); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.tag.conf { background: var(--good-bg); color: var(--good-ink); border-color: transparent; }
.tag.sel { background: var(--amber-bg); color: var(--amber-ink); border-color: var(--amber-border); }

/* ---------- App frame ---------- */
.app {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--gw);
  grid-template-rows: var(--top) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}
.app[data-guardian="min"] { --gw: 0px; }

.topbar {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  background: var(--rail-bg); color: #fff;
  padding: 0 18px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 40;
}
.menu-btn { display: none; background: transparent; border-color: rgba(255,255,255,.18); color: #fff; width: 44px; height: 44px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand .flutter-wordmark { height: 24px; width: auto; filter: none; }
.brand .flutter-mark { display: none; width: 28px; height: 28px; border-radius: 7px; filter: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { display: none; font-size: 15px; white-space: nowrap; }
.brand-text small { font-size: 12px; color: rgba(255,255,255,.7); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 500; }
.top-btn:hover { background: rgba(255,255,255,.12); }
#theme-icon { display: inline-flex; }
.user-pill { display: flex; align-items: center; gap: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.16); }
.user-meta { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.user-meta strong { font-size: 14px; }
.user-meta small { font-size: 12px; color: rgba(255,255,255,.7); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* ---------- Left pop-out menu ---------- */
.side-menu {
  grid-column: 1; grid-row: 2;
  position: relative; z-index: 30;
  width: var(--rail);
  background: var(--rail-bg); color: var(--rail-ink);
  display: flex; flex-direction: column;
  padding: 10px 12px 14px;
  transition: width .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.app[data-menu="open"] .side-menu { width: var(--rail-open); box-shadow: var(--shadow-lg); }
.menu-toggle, .menu-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 0; border-radius: 12px; background: transparent; color: inherit;
  text-align: left; white-space: nowrap; position: relative;
}
.menu-toggle { color: #fff; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.14); }
.menu-item:hover, .menu-toggle:hover { background: rgba(255,255,255,.07); }
.menu-item.is-active { background: var(--rail-active); color: #fff; }
.menu-item.is-active::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: #0285FF; }
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.menu-label { opacity: 0; transition: opacity .15s; font-weight: 600; font-size: 15px; }
.app[data-menu="open"] .menu-label { opacity: 1; transition-delay: .08s; }
.menu-badge { position: absolute; left: 30px; top: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: #F2C94C; color: #1B1400; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.app[data-menu="open"] .menu-badge { position: static; margin-left: auto; }
.menu-foot { margin-top: auto; padding: 10px 6px 0; font-size: 12px; color: rgba(255,255,255,.55); white-space: normal; min-height: 40px; }
.menu-foot .menu-label { font-size: 12px; font-weight: 500; display: block; width: 220px; }
.menu-scrim { display: none; }
.app[data-menu="open"] .menu-scrim { display: block; position: fixed; inset: var(--top) 0 0 var(--rail-open); z-index: 25; background: rgba(11, 17, 46, .18); }

/* ---------- Page ---------- */
.page { grid-column: 2; grid-row: 2; overflow-y: auto; outline: none; }
.page-inner { max-width: 1180px; margin: 0 auto; padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: 30px; font-weight: 750; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.foot { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.powered { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.powered img { height: 14px; width: auto; background: #fff; border-radius: 3px; padding: 1px 4px; }
.intro-foot { max-width: 860px; margin: 8px auto 28px; width: calc(100% - 48px); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px 24px; }
.card h2 { font-size: 19px; font-weight: 700; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.callout { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-border); font-size: 15px; display: flex; gap: 10px; flex-wrap: wrap; }
.callout strong { display: block; width: 100%; }
.callout.soft { background: var(--brand-soft); color: var(--ink); border-color: transparent; display: block; }
.callout.soft strong { display: inline; width: auto; }
.callout.warn strong { display: inline; }

/* Home */
.hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,17,46,.92) 0%, rgba(11,17,46,.72) 45%, rgba(11,17,46,.05) 85%); }
.hero-copy { position: relative; z-index: 1; padding: 34px 36px; color: #fff; max-width: 620px; }
.hero-copy h1 { font-size: 36px; font-weight: 750; }
.hero-copy p { margin-top: 10px; color: rgba(255,255,255,.88); font-size: 17px; }
.go-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.go-card { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px 40px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.go-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.go-card .go-ico { color: var(--brand); margin-bottom: 6px; }
.go-card strong { font-size: 16px; }
.go-card span { font-size: 14px; color: var(--muted); }
.go-card .go-arrow { position: absolute; right: 14px; bottom: 14px; color: var(--brand); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.have-list { list-style: none; margin: 0; padding: 0; }
.have-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
.have-list li:first-child { border-top: 0; }
.have-list span { color: var(--muted); }
.have-list strong { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.big-figure { font-size: 34px; font-weight: 750; display: flex; flex-direction: column; }
.big-figure small { font-size: 14px; color: var(--muted); font-weight: 500; }
.two-col .btn { margin-top: 14px; }

/* My benefits tiles */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pic { overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.tile-pic { height: 150px; }
.tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile-area { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile h2 { font-size: 18px; }
.tile p { font-size: 14px; color: var(--muted); flex: 1; }
.status { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-top: 4px; background: var(--surface-alt); color: var(--muted); border: 1px solid var(--border); }
.status.good { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.status.sel { background: var(--amber-bg); color: var(--amber-ink); border-color: var(--amber-border); }
.tile-btn { margin-top: 10px; width: 100%; }
.in-basket-mark { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--amber-ink); }
.reward-list { display: none; }

/* Benefit page */
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.b-hero { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.b-pic { height: 100%; min-height: 180px; }
.b-hero > div { padding: 22px 26px 22px 0; }
.b-hero h1 { font-size: 30px; }
.b-hero p { margin-top: 10px; color: var(--muted); max-width: 66ch; }
.b-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.b-main { display: flex; flex-direction: column; gap: 16px; }
.b-side .sticky { position: sticky; top: 0; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--brand); margin-top: 3px; }
.levels { display: grid; gap: 10px; margin-top: 14px; }
.level { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); }
.level.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface)); }
.level.locked { opacity: .75; cursor: not-allowed; }
.level input { width: 20px; height: 20px; accent-color: var(--brand); }
.level-main { display: flex; flex-direction: column; gap: 2px; }
.level-main small { color: var(--muted); font-size: 14px; }
.lock-note { color: var(--amber-ink) !important; }
.level-price { text-align: right; display: flex; flex-direction: column; }
.level-price strong { font-size: 18px; }
.level-price small { font-size: 12px; color: var(--muted); }
.level .tag { position: absolute; top: -10px; right: 14px; background: var(--brand); color: var(--on-brand); border: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 10px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table td small { display: block; color: var(--muted); font-size: 13px; }
.table tr.total td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.terms h2 { display: flex; align-items: center; gap: 8px; }
.terms h2 .ico { color: var(--amber-ink); }
.terms ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.mini-dl { margin: 12px 0 0; display: grid; gap: 8px; }
.mini-dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid var(--border); padding-top: 8px; }
.mini-dl dt { color: var(--muted); }
.mini-dl dd { margin: 0; font-weight: 600; text-align: right; }
.sel-name { margin-top: 2px; }
.in-basket { margin-top: 14px; display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--good-ink); background: var(--good-bg); padding: 10px 12px; border-radius: 10px; }

/* Life events */
.events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.event-card { position: relative; text-align: left; padding: 20px 48px 20px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.event-card:hover { border-color: var(--brand); }
.event-card span { color: var(--muted); font-size: 14px; }
.event-card .ico { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input { padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); font-weight: 400; font-size: 16px; }
[data-theme="dark"] .field input { color-scheme: dark; }
.event-done h2 { margin-top: 10px; }
.event-done h3 { margin-top: 18px; font-size: 16px; }
.event-done > p { margin-top: 8px; }
.event-ok { width: 44px; height: 44px; border-radius: 50%; background: var(--good-bg); color: var(--good-ink); display: grid; place-items: center; }
.opens { list-style: none; padding: 0; margin: 12px 0 0; }
.opens li { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.opens-pic { width: 88px; height: 60px; border-radius: 8px; }
.opens div { display: flex; flex-direction: column; }
.opens span { color: var(--muted); font-size: 14px; }
.event-done .link-btn { margin-top: 14px; }

/* Basket */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; align-self: flex-start; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 8px 16px; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.seg button small { font-weight: 500; font-size: 12px; color: var(--muted); }
.seg button.on { background: var(--brand); color: var(--on-brand); }
.seg button.on small { color: inherit; opacity: .85; }
.basket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.basket-side { display: flex; flex-direction: column; gap: 16px; }
.basket-table tr.is-new td { background: color-mix(in srgb, var(--amber-bg) 45%, transparent); }
.sel-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.sel-list li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.sel-list li > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sel-list li > div span { color: var(--muted); }
.sel-list .icon-btn { width: 34px; height: 34px; flex: none; }
.warn-note { color: var(--amber-ink) !important; font-size: 13px; display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; margin-top: 4px; }
.pay-dl { margin: 12px 0 0; display: grid; }
.pay-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-top: 1px solid var(--border); }
.pay-dl dt { color: var(--muted); }
.pay-dl dd { margin: 0; font-weight: 600; }
.pay-dl .total { font-size: 17px; border-top: 2px solid var(--ink); }
.pay-dl .total dt { color: var(--ink); font-weight: 700; }
.pay-dl .delta dd { color: var(--amber-ink); }
.review-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.review-pay div { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.review-pay small { color: var(--muted); font-size: 13px; }
.review-pay strong { font-size: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }

/* Total reward */
.seg-wide button { min-width: 110px; }
.reward-summary { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.reward-total { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; }
.reward-total span { font-size: 15px; font-weight: 500; color: var(--muted); }
.reward-summary .callout { margin-top: 0; }
.reward-graphic { position: relative; margin-top: 18px; }
.reward-bars { width: 100%; max-width: 760px; height: auto; display: block; margin: 0 auto; font-family: 'Libre Franklin', sans-serif; }
.reward-f { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); border-radius: 22px; box-shadow: 0 0 0 6px #0285FF; }


/* Thrive */
.thrive-hero { min-height: 230px; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pillar .pillar-ico { color: var(--brand); }
.pillar h2 { margin-top: 10px; font-size: 17px; }
.pillar p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.plus { padding: 24px 26px; border: 2px solid var(--brand); background: linear-gradient(135deg, color-mix(in srgb, var(--brand-soft) 70%, var(--surface)) 0%, var(--surface) 60%); }
.plus-head { display: flex; align-items: center; gap: 14px; color: var(--brand); }
.plus-head h2 { color: var(--ink); font-size: 22px; }
.plus-head .pill { margin-left: auto; }
.plus > p { margin-top: 12px; max-width: 75ch; }
.plus-list { grid-template-columns: 1fr 1fr; }
.checkin { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.checkin h3 { font-size: 16px; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.plus-reply { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--brand); }
.plus-reply p { color: var(--ink); }

/* Documents */
.docs { list-style: none; margin: 0; padding: 6px 0; }
.docs li { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--border); }
.docs li:first-child { border-top: 0; }
.docs .ico { color: var(--brand); }
.docs div { display: flex; flex-direction: column; flex: 1; }
.docs span { color: var(--muted); font-size: 14px; }

/* ---------- Guardian ---------- */
.guardian {
  grid-column: 3; grid-row: 2;
  background: var(--guardian-bg);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 0;
}
.app[data-guardian="min"] .guardian { display: none; }
.g-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.g-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; flex: none; }
.g-mark.sm { width: 32px; height: 32px; border-radius: 10px; }
.g-title h2 { font-size: 18px; }
.g-title p { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.g-min { margin-left: auto; }
.g-min-phone { display: none; }
.g-context { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.g-context .kicker { margin-bottom: 2px; font-size: 11px; }
.g-thread { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.msg { max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.msg.g { background: var(--surface); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-top-right-radius: 4px; }
.msg.warn { border-color: var(--amber-border); background: color-mix(in srgb, var(--amber-bg) 60%, var(--surface)); }
.msg-who { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 4px; }
[data-theme="dark"] .msg-who { color: var(--brand); }
.msg-text small { color: var(--muted); font-size: 13px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.g-chips .chip { font-size: 13px; padding: 6px 11px; }
.g-form { display: flex; gap: 8px; padding: 12px 16px 16px; }
.g-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 15px; }
.g-send { width: 44px; border: 0; border-radius: 12px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }

/* Minimised Guardian: a slim strip at the right edge with the double arrow to restore it */
.guardian-restore { display: none; }
.app[data-guardian="min"] .guardian-restore {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: fixed; right: 0; top: calc(var(--top) + 16px);
  padding: 12px 8px 16px; width: 52px;
  background: var(--surface); border: 1px solid var(--border); border-right: 0;
  border-radius: 14px 0 0 14px; box-shadow: var(--shadow-lg); color: var(--ink); z-index: 20;
}
.app[data-guardian="min"] .guardian-restore:hover { border-color: var(--brand); }
.restore-label { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.guardian-dock, .sheet-scrim { display: none; }

/* ---------- Toasts ---------- */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; gap: 8px; align-items: center; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); }

/* ---------- First visit introduction ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; }
body.intro-on .app { visibility: hidden; }
.intro-top { display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-bottom: 0; background: #0B112E; color: #fff; position: sticky; top: 0; z-index: 2; }
.intro-top .flutter-wordmark { height: 24px; width: auto; filter: none; }
.intro-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; }
.intro-steps li { width: 34px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28); }
.intro-steps li.done { background: #0285FF; opacity: .55; }
.intro-steps li.now { background: #0285FF; opacity: 1; }
.intro-theme { background: var(--surface-alt); border-color: var(--border); color: var(--ink); }
.intro-body { padding: 36px 24px 60px; }
.intro-col { max-width: 860px; margin: 0 auto; }
.speaker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px; }
[data-theme="dark"] .speaker { color: var(--brand); }
.intro h1 { font-size: 34px; font-weight: 750; outline: none; }
.lede { margin-top: 10px; font-size: 17px; color: var(--muted); }
.intro-card { margin-top: 22px; padding: 24px 26px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.covered { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.covered-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px calc(36% + 16px) 14px 16px; position: relative; overflow: hidden; min-height: 104px; display: flex; align-items: flex-start; gap: 12px; background: var(--surface-alt); }
.covered-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
/* Chris, 29 Nov 13:01: the picture fills the whole right side of the card */
.covered-thumb { position: absolute; top: 0; right: 0; bottom: 0; width: 36%; height: auto; border-radius: 0; }
.covered-item small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.covered-item strong { font-size: 17px; }
.covered-item span { font-size: 13px; color: var(--muted); }
.handover-bubble { margin-top: 22px; font-size: 22px; line-height: 1.45; padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px 22px 22px 22px; box-shadow: var(--shadow); }
.handover-hint { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.handover-hint div { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); font-weight: 600; font-size: 14px; }
.handover-hint .ico { color: var(--brand-ink); }
[data-theme="dark"] .handover-hint .ico { color: var(--brand); }

/* Introduction video (self-playing tour) */
.video { margin-top: 20px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0B112E; box-shadow: var(--shadow-lg); }
.video-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.video-progress { flex: 1; min-width: 120px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.video-progress span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .1s linear; }
.video-time { font-size: 14px; color: var(--muted); }
.caption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(88%, 680px); background: rgba(11, 17, 46, .88); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 16px; line-height: 1.4; text-align: center; animation: fadeUp .4s ease both; }
.caption strong { color: #9CCBFF; margin-right: 4px; }
@keyframes fadeUp { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.mini { position: absolute; inset: 0; display: grid; grid-template-columns: 54px 1fr 150px; grid-template-rows: 30px 1fr; background: #F3F6FB; color: #0B112E; font-size: 11px; transition: grid-template-columns .4s ease; }
.mini.menu-open { grid-template-columns: 150px 1fr 150px; }
.mini-top { grid-column: 1 / -1; background: #0B112E; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.m-logo { width: 16px; height: 16px; border-radius: 4px; background: transparent; object-fit: cover; }
.mini-top .m-line { background: rgba(255,255,255,.3); }
.mini-rail { background: #0B112E; padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.m-nav { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #C9D4EA; white-space: nowrap; }
.m-nav span { opacity: 0; transition: opacity .3s .2s; font-weight: 600; }
.mini.menu-open .m-nav span { opacity: 1; }
.m-nav.on { background: #16215B; color: #fff; box-shadow: inset 3px 0 0 #0285FF; }
.mini-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mini-g { background: #fff; border-left: 1px solid #D8E2E2; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.m-gh { display: flex; align-items: center; gap: 4px; font-weight: 700; color: #16215B; }
.m-gh .m-min { margin-left: auto; }
.mini.g-focus .m-gh .m-min { color: #fff; background: #16215B; border-radius: 4px; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.35); } }
.m-bubble { background: #F3F6FB; border-radius: 8px; padding: 6px 8px; line-height: 1.35; }
.mini.g-focus .m-bubble { background: #FEF3C7; color: #8A3B0B; }
.mini[data-scene="advanced"] .m-bubble { background: #CCE5FF; color: #16215B; }
.mini[data-scene="advanced"] .m-min { animation: none; }
.m-bubble.me { background: #16215B !important; color: #fff !important; align-self: flex-end; }
.m-h { font-weight: 800; font-size: 15px; }
.m-line { height: 8px; border-radius: 4px; background: #D8E2E2; }
.m-line.tall { height: 16px; background: rgba(255,255,255,.85); }
.w20 { width: 20%; } .w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; }
.m-hero { height: 90px; border-radius: 10px; background: linear-gradient(90deg, #0B112E 30%, #16215B); padding: 16px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.m-hero .m-line { background: rgba(255,255,255,.45); }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-card { min-height: 50px; border-radius: 8px; background: #fff; border: 1px solid #D8E2E2; padding: 8px; font-weight: 600; }
.m-card.on { border-color: #16215B; box-shadow: 0 0 0 2px #16215B; }
.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-tile { background: #fff; border: 1px solid #D8E2E2; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; gap: 5px; padding-bottom: 6px; }
.m-tile .m-line { margin: 0 6px; }
.m-img { height: 34px; background-size: cover; background-position: center; }
.m-img-health { background-image: url('assets/health.webp'); }
.m-img-family { background-image: url('assets/family.webp'); }
.m-img-money { background-image: url('assets/money.webp'); }
.m-img-time { background-image: url('assets/time.webp'); }
.m-btn { margin: 0 6px; background: #16215B; color: #fff; border-radius: 5px; padding: 3px 6px; font-weight: 700; text-align: center; font-size: 9px; }
.m-btn.big { font-size: 11px; padding: 6px 10px; align-self: flex-start; margin: 0; }
.m-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.m-level { display: flex; gap: 6px; align-items: center; background: #fff; border: 1px solid #D8E2E2; border-radius: 6px; padding: 6px 8px; margin-bottom: 5px; }
.m-level.on { border-color: #16215B; box-shadow: 0 0 0 1.5px #16215B; }
.m-radio { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #52646B; }
.m-level.on .m-radio { background: #16215B; border-color: #16215B; }
.m-terms { border: 1px dashed #F2C94C; background: #FEF3C7; color: #8A3B0B; border-radius: 6px; padding: 6px 8px; font-weight: 700; }
.m-side { background: #fff; border: 1px solid #D8E2E2; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.m-switch { display: inline-flex; gap: 4px; background: #fff; border: 1px solid #D8E2E2; border-radius: 8px; padding: 3px; align-self: flex-start; }
.m-switch span { padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.m-switch span.on { background: #16215B; color: #fff; }
.m-rows { display: flex; flex-direction: column; gap: 5px; }
.m-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #D8E2E2; border-radius: 6px; padding: 6px 8px; font-weight: 600; }
.m-row .m-btn { margin: 0; }
.m-new { background: #FEF3C7; color: #8A3B0B; border-radius: 4px; padding: 1px 6px; }
.m-reward { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 2px 20px 0; }
.m-f { width: 26px; height: 26px; border-radius: 6px; box-shadow: 0 0 0 2px #0285FF; }
.m-bar { height: 14px; border-radius: 4px; align-self: stretch; animation: grow .7s ease both; transform-origin: left; }
.m-bar.b1 { background: #16215B; }
.m-bar.b2 { background: #0285FF; animation-delay: .15s; }
.m-bar.b3 { background: #CCE5FF; animation-delay: .3s; }
.m-bar.b4 { background: #F4F7FB; border: 1px solid #16215B; animation-delay: .45s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Medium screens ---------- */
@media (max-width: 1280px) {
  :root { --gw: 340px; }
  .go-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-layout, .basket-layout { grid-template-columns: 1fr; }
  .b-side .sticky { position: static; }
  .user-meta { display: none; }
}

/* ---------- Phone: menu button opens a left drawer; Guardian is a slide-up sheet ---------- */
@media (max-width: 900px) {
  body { font-size: 15px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr); --top: 56px; }
  .app[data-guardian="min"] { --gw: 0px; }
  .topbar { padding: 0 10px; gap: 10px; }
  .menu-btn { display: inline-grid; width: 42px; height: 42px; }
  .brand .flutter-wordmark { display: none; }
  .brand .flutter-mark { display: block; }
  .brand-text strong { display: block; font-size: 15px; }
  .top-btn { padding: 8px; }
  .top-btn-label, .user-pill { display: none; }

  .side-menu {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 70;
    width: 288px; padding-top: 16px;
    transform: translateX(-105%); transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
  }
  .app[data-menu="open"] .side-menu { width: 288px; transform: none; }
  .menu-label { opacity: 1; }
  .menu-badge { position: static; margin-left: auto; }
  .app[data-menu="open"] .menu-scrim { inset: 0; z-index: 65; background: rgba(11, 17, 46, .5); }

  .page { grid-column: 1; }
  .page-inner { padding: 18px 16px 104px; gap: 16px; }
  .page-head h1 { font-size: 25px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .card-pad { padding: 18px; }
  .hero { min-height: 340px; }
  .hero::after { background: linear-gradient(0deg, rgba(11,17,46,.95) 10%, rgba(11,17,46,.6) 60%, rgba(11,17,46,.1)); }
  .hero-copy { padding: 22px 20px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-copy p { font-size: 15px; }
  .go-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .go-card { padding: 14px 12px 36px; }
  .two-col, .events, .form-grid, .pillars, .plus-list, .review-pay { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile-pic { height: 140px; }
  .b-hero { grid-template-columns: 1fr; gap: 0; }
  .b-pic { min-height: 140px; height: 140px; }
  .b-hero > div { padding: 16px 18px 18px; }
  .b-hero h1 { font-size: 24px; }
  .level { grid-template-columns: auto 1fr; }
  .level-price { grid-column: 2; text-align: left; }
  .opens li { grid-template-columns: 64px 1fr; }
  .opens-pic { width: 64px; height: 50px; }
  .opens .btn { grid-column: 1 / -1; }
  .reward-summary { grid-template-columns: 1fr; }
  .reward-total { font-size: 36px; }
  .reward-bars { display: none; }
  .reward-f { position: static; transform: none; width: 72px; height: 72px; margin: 4px auto 10px; display: block; }
  .reward-graphic { display: flex; justify-content: center; }
  .reward-list { display: grid; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; }
  .reward-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--brand); font-size: 14px; }
  .reward-list .b1 { background: var(--brand); color: var(--on-brand); }
  .reward-list .b2 { background: color-mix(in srgb, var(--brand) 78%, var(--surface)); color: var(--on-brand); }
  .reward-list .b3 { background: var(--brand-soft); color: var(--ink); }
  .reward-list .b4 { background: var(--surface-alt); color: var(--ink); }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding: 8px 10px; font-size: 14px; }
  .seg-wide button { min-width: 0; flex: 1 1 30%; }
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 8px 12px; }
  .table.stack td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.stack td.cell-title { display: block; text-align: left; padding-bottom: 6px; }
  .table.stack td.cell-title small { display: block; }
  .table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; }
  .basket-table tr.is-new td { background: none; }
  .basket-table tr.is-new { background: color-mix(in srgb, var(--amber-bg) 45%, transparent); }
  .plus-head { flex-wrap: wrap; }
  .plus-head .pill { margin-left: 0; }

  .guardian {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: 84dvh; border-left: 0; border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(105%); transition: transform .28s ease;
  }
  .app[data-sheet="open"] .guardian { transform: none; }
  .app[data-guardian="min"] .guardian { display: flex; }
  .g-head { border-radius: 20px 20px 0 0; position: relative; padding-top: 20px; }
  .g-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--border); }
  .g-min-desk { display: none; }
  .g-min-phone { display: block; }

  .guardian-dock {
    display: flex; gap: 8px; align-items: center;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50;
    padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
  }
  .app[data-guardian="min"] .guardian-dock, .app[data-sheet="open"] .guardian-dock { display: none; }
  .dock-open { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; min-width: 0; padding: 0; }
  .dock-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .dock-copy small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock-cta { background: var(--brand); color: var(--on-brand); font-weight: 700; padding: 8px 14px; border-radius: 10px; font-size: 14px; }
  .dock-min { width: 38px; height: 38px; }
  .app[data-guardian="min"] .guardian-restore {
    top: auto; bottom: 16px; right: 16px; width: 58px; height: 58px; padding: 0; border-radius: 50%;
    border: 1px solid var(--border); justify-content: center; gap: 0; background: var(--brand); color: var(--on-brand);
  }
  .app[data-guardian="min"] .guardian-restore > .ico, .app[data-guardian="min"] .restore-label { display: none; }
  .app[data-guardian="min"] .guardian-restore .g-mark { background: transparent; }
  .app[data-guardian="min"] .page-inner { padding-bottom: 90px; }
  .sheet-scrim { display: none; }
  .app[data-sheet="open"] .sheet-scrim { display: block; position: fixed; inset: 0; z-index: 75; background: rgba(11, 17, 46, .5); }
  .toast-region { bottom: 90px; width: calc(100% - 32px); }

  .intro-top { padding: 12px 14px; gap: 10px; }
  .intro-steps li { width: 22px; }
  .intro-body { padding: 22px 16px 40px; }
  .intro h1 { font-size: 26px; }
  .lede { font-size: 15px; }
  .intro-card { padding: 18px; }
  .facts { grid-template-columns: 1fr; }
  .handover-bubble { font-size: 18px; padding: 20px; }
  .handover-hint { grid-template-columns: 1fr; }
  .video-frame { aspect-ratio: 3 / 4; }
  .mini { grid-template-columns: 0 1fr; grid-template-rows: 30px 1fr 110px; }
  .mini.menu-open { grid-template-columns: 130px 1fr; }
  .mini-g { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #D8E2E2; }
  .mini-rail { padding: 8px 4px; }
  .m-tiles { grid-template-columns: 1fr 1fr; }
  .m-split, .m-cards { grid-template-columns: 1fr; }
  .caption { font-size: 14px; bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.basket-thumb .pic { width: 56px; height: 44px; border-radius: 8px; overflow: hidden; }
.basket-thumb .pic img { width: 100%; height: 100%; object-fit: cover; }
.sensitive-toggle { margin: 16px 0; }
.faq { padding: 18px 0; border-bottom: 1px solid var(--line, #ddd); }
.faq:last-child { border-bottom: 0; }
.faq h2 { font-size: 1.1rem; }
.reward-dialog { max-width: 480px; padding: 28px; border: 0; border-radius: 12px; color: var(--ink); background: var(--surface); }
.reward-dialog::backdrop { background: rgb(0 0 0 / 0.55); }
.basket-badge.pop { animation: badge-pop 220ms ease-out; }
@keyframes badge-pop { from { transform: scale(.75); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .basket-badge.pop { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.basket-table th:first-child, .basket-table td:first-child { padding-left: 0; }
/* Headings wrap on spaces only. Money columns stay wide enough for £320.00. */
.basket-table th,
.basket-table td,
.basket-table td[data-label]::before {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
@media (max-width: 700px) { .basket-table.stack tr { position: relative; } .basket-table.stack td.cell-title { padding-right: 70px; } .basket-table.stack td.basket-thumb { position: absolute; right: 12px; top: 8px; width: auto; } }
@media (min-width: 901px) {
  .basket-table { table-layout: auto; width: 100%; font-size: 13px; }
  .basket-table th, .basket-table td { padding-left: 6px; padding-right: 6px; }
  .basket-table th:first-child, .basket-table td:first-child { padding-left: 0; }
  /* £320.00 is the widest figure. NORTHBRIDGE is the widest heading word. */
  .basket-table th:nth-child(4),
  .basket-table td:nth-child(4) { min-width: 5.5rem; }
  .basket-table th:nth-child(5),
  .basket-table td:nth-child(5) { min-width: 7.15rem; }
  .basket-table td:nth-child(4),
  .basket-table td:nth-child(5) { white-space: nowrap; }
  .basket-thumb .pic { width: 56px; max-width: 56px; }
}

/* Matt's review: keep context visible and let an expanded tile span the grid. */
.crumbs { position: sticky; top: 0; z-index: 5; padding: 12px; background: var(--surface); }
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reveal { grid-column: 1 / -1; order: var(--order3); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reveal { order: var(--order2); } }
.guide-card { margin: 24px 0; }
.guide-figure { margin: 16px 0; }
.guide-card video { display: block; width: min(100%, 720px); margin: 0 0 8px; border-radius: 12px; }
.guide-figure figcaption { font-size: 14px; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.b-hero .btn { margin-top: 12px; }
.opens-done { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--good-ink); background: var(--good-bg); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } .reveal { order: var(--order1); } }
