/* Kaido app · the Phantom look: black, steel grey, white type, Kaido's sage for what is chosen and for the main button.
   Montserrat for titles, Inter for reading (the same files as iOMS). One column the width of a phone; on a computer it
   sits in the middle. The page's security policy allows no inline styles, so every look is here. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/montserrat.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --page: #050505; --bg: #0a0a0a; --card: #161616; --card-hover: #1b1b1b; --tile: #222222; --well: #2c2c2c;
  --ink: #ffffff; --body: rgba(255, 255, 255, .82); --muted: #a8b0b5; --line: rgba(255, 255, 255, .09); --edge: rgba(255, 255, 255, .2);
  --accent: #a8cd97; --accent-hover: #b9d9aa; --accent-soft: rgba(168, 205, 151, .14); --on-accent: #0a0a0a;
  --cold: #9cc3d6; --heat: #e2a676; --alert: #d4735f;
  --r: 16px; --top: 56px; --nav: 64px; --col: 480px;
  --display: Montserrat, "Helvetica Neue", Arial, sans-serif; --text: Inter, "Helvetica Neue", Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --gut-l: max(16px, env(safe-area-inset-left, 0px)); --gut-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--page); color: var(--body); font: 15px/1.55 var(--text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, p, figure, dl, dd { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1:focus, h1:focus-visible { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- the frame: top bar, the page, the tabs ---------- */
.shell { position: relative; max-width: var(--col); min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: calc(var(--top) + var(--safe-t));
  padding: var(--safe-t) var(--gut-r) 0 var(--gut-l); background: rgba(10, 10, 10, .88); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.logo { width: 88px; height: auto; }
.pill { font: 600 10px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(168, 205, 151, .45);
  border-radius: 999px; padding: 5px 9px 4px; white-space: nowrap; }
.icon-btn { position: relative; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--tile); }
.icon-btn.sm { width: 36px; height: 36px; background: var(--tile); font: 500 19px/1 var(--text); }
.icon-btn.sm:hover { background: var(--well); }
.msg-btn .dot { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent);
  color: var(--on-accent); font: 700 10.5px/18px var(--text); text-align: center; }
.main { flex: 1; display: grid; gap: 14px; align-content: start; min-width: 0;
  padding: 18px var(--gut-r) calc(var(--nav) + var(--safe-b) + 28px) var(--gut-l); }
.tabs { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; max-width: var(--col); margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + var(--safe-b)) max(6px, env(safe-area-inset-left, 0px));
  background: rgba(10, 10, 10, .94); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tab { min-width: 0; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 500 10.5px/1.2 var(--text); }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--accent); }
.demo-note { margin-top: 6px; text-align: center; font-size: 12px; color: var(--muted); }
@media (min-width: 560px) {
  .shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .tabs { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ---------- type ---------- */
h1 { font: 600 26px/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); overflow-wrap: break-word; }
h2 { font: 600 17px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); overflow-wrap: break-word; }
h2.big { font-size: 24px; line-height: 1.2; }
.eyebrow { font: 600 10.5px/1.45 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent, .accent { color: var(--accent); }
.eyebrow.section { margin: 8px 2px -4px; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
b, strong { font-weight: 600; }
.upper { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; }
.small { font-size: 12.5px; line-height: 1.5; }
.center { text-align: center; }
.lead { font-size: 16.5px; line-height: 1.55; color: var(--body); }
.fig { font: 600 34px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.head, .hello { display: grid; gap: 6px; padding: 4px 2px 2px; }
.split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }

/* ---------- icons ---------- */
.ic { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic.chev { width: 18px; height: 18px; color: var(--muted); }

/* ---------- cards and tiles ---------- */
.card { width: 100%; min-width: 0; display: grid; gap: 10px; padding: 18px; border: 0; border-radius: var(--r); background: var(--card); color: var(--body); text-align: left; }
button.card:hover { background: var(--card-hover); }
.card.hero { gap: 8px; padding: 22px 20px; border: 1px solid rgba(168, 205, 151, .16); background: linear-gradient(160deg, #1b2119 0%, var(--card) 62%); }
.link-card { display: flex; align-items: center; gap: 14px; }
.link-card .grow { display: grid; gap: 2px; }
.link-card b { color: var(--ink); }
.link-card .grow > span:not(.eyebrow) { font-size: 13.5px; color: var(--muted); }
.link-card > .ic:first-child { color: var(--accent); }
.week { display: flex; align-items: center; gap: 16px; }
.week .grow { display: grid; gap: 2px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { min-width: 0; min-height: 106px; display: grid; gap: 3px; align-content: start; justify-items: start; padding: 14px; border: 0; border-radius: var(--r);
  background: var(--card); color: var(--body); text-align: left; }
.tile:hover { background: var(--card-hover); }
.tile .ic { width: 24px; height: 24px; margin-bottom: 8px; color: var(--accent); }
.tile b { font: 600 15px/1.25 var(--display); color: var(--ink); }
.tile span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 999px; font: 600 14px/1.25 var(--display); text-align: center; text-decoration: none; }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .45); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 12.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.actions.center { justify-content: center; }
.stack { display: grid; gap: 10px; }

/* ---------- figures, rings and bars ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metrics div { display: grid; gap: 2px; align-content: start; min-width: 0; }
.metrics span { font-size: 12px; line-height: 1.35; color: var(--muted); }
.metrics b { font: 600 20px/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.metrics small { font: 400 11px var(--text); color: var(--muted); }
.metrics em { font-style: normal; font-size: 11.5px; line-height: 1.35; color: var(--accent); }
.mini-ring { flex: none; width: 64px; height: 64px; }
.ring-bg { fill: none; stroke: var(--tile); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.ring .ring-bg, .ring .ring-fg { stroke-width: 7; }
.ring .ring-fg { transition: stroke-dashoffset .25s linear; }
.bars { width: 100%; height: auto; }
.bar { fill: var(--well); }
.bar.now { fill: var(--accent); }
.bar-n { fill: var(--ink); font: 600 12px var(--display); text-anchor: middle; }
.bar-l { fill: var(--muted); font: 400 10.5px var(--text); text-anchor: middle; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 24px; align-items: center; gap: 10px; font-size: 13px; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body); }
.hbar svg, .progress { display: block; width: 100%; }
.hbar svg { height: 8px; }
.hbar b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.progress { height: 6px; margin-top: 4px; }
.track { fill: var(--well); }
.fill { fill: var(--accent); }
.stepper { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.stepper b { min-width: 66px; text-align: center; font: 600 15px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- lists and rows ---------- */
.list { display: grid; margin: 0; padding: 0; list-style: none; }
.list li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { padding-top: 4px; border-top: 0; }
.list .grow { display: grid; gap: 2px; }
.list b { font-size: 14.5px; color: var(--ink); }
.list .grow > span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.list li > .ic { color: var(--accent); }
.list li > .muted { font-size: 13px; text-align: right; }
.list.codes { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.row-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 4px; border: 0; border-top: 1px solid var(--line); background: transparent;
  color: var(--body); text-align: left; }
.row-btn .grow { display: grid; gap: 2px; }
.row-btn b { color: var(--ink); }
.row-btn .grow > span { font-size: 13px; color: var(--muted); }
.row-btn > .ic:first-child { color: var(--accent); }
.row-btn.flat { padding: 0; border-top: 0; }
.list-nav { gap: 0; padding: 4px 14px; }
.list-nav .row-btn:first-child { border-top: 0; }
.switch-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: transparent;
  color: var(--body); text-align: left; }
.switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--well); transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #d8d8d8; transition: transform .2s, background .2s; }
.switch-row[aria-checked="true"] .switch { background: var(--accent); }
.switch-row[aria-checked="true"] .switch span { transform: translateX(18px); background: var(--on-accent); }
.seg { max-width: 100%; display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 22px; background: var(--tile); }
.main > .seg { justify-self: center; }
.seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 13px/1.2 var(--display); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--bg); }
.tag { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font: 600 10.5px/1.2 var(--text); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 999px; background: transparent; color: var(--ink); font: 500 13.5px/1.25 var(--text); }
.chip:hover { border-color: rgba(255, 255, 255, .45); }
.chip.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.facts { display: grid; gap: 14px; }
.facts div { display: grid; gap: 3px; }
.facts dt { font: 600 10.5px/1.45 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.facts dd { color: var(--body); }

/* ---------- the order's steps ---------- */
.steps { display: grid; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--well); }
.steps li:last-child::before { display: none; }
.steps li.done::before { background: var(--accent); }
.steps .dot { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; margin-top: 4px; border: 2px solid var(--well); border-radius: 50%; background: var(--card); }
.steps li.done .dot { border-color: var(--accent); background: var(--accent); }
.steps li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.steps .grow { display: grid; gap: 2px; }
.steps b { color: var(--ink); }
.steps li.todo b { font-weight: 500; color: var(--body); }
.steps .grow > span { font-size: 13px; color: var(--muted); }
.steps .grow > .note { color: var(--accent); }

/* ---------- pictures, units and products ---------- */
.hero-img { overflow: hidden; border-radius: var(--r); background: var(--card); }
.hero-img img { width: 100%; }
.unit-card, .product-card { gap: 0; padding: 0; overflow: hidden; }
.unit-card img, .pic { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pic.blank { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% 0%, #2a2a2a 0%, var(--tile) 70%); }
.pic.blank b { font: 600 13px var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.pic.wide { border-radius: var(--r); }
.unit-body { display: grid; gap: 4px; padding: 14px 16px 16px; font-size: 13.5px; color: var(--muted); }
.unit-body b.ink { font-size: 15px; }
.price { font-weight: 600; color: var(--ink); }
.cards { display: grid; gap: 12px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pair div { display: grid; gap: 4px; }
.prose { gap: 12px; line-height: 1.62; }
.event { display: flex; align-items: flex-start; gap: 14px; }
.event .date, .date-chip { flex: none; width: 54px; display: grid; padding: 8px 0; border-radius: 12px; background: var(--tile); text-align: center; }
.event .date b, .date-chip b { font: 600 20px/1.1 var(--display); color: var(--ink); }
.event .date span, .date-chip span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.event .grow { display: grid; gap: 6px; justify-items: start; }
.event .split { width: 100%; }

/* ---------- rewards, profile ---------- */
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--tile); }
.code span { min-width: 0; font: 600 16px var(--display); letter-spacing: .12em; color: var(--ink); overflow-wrap: anywhere; }
.pref { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pref:first-of-type { border-top: 0; padding-top: 2px; }
select { min-height: 40px; padding: 0 12px; border: 1px solid var(--edge); border-radius: 12px; background: var(--tile); color: var(--ink); font-size: 15px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head > div { display: grid; gap: 4px; min-width: 0; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font: 600 22px var(--display); }
.avatar.sm { width: 42px; height: 42px; font-size: 16px; }
.list li > .avatar.sm { background: var(--tile); color: var(--ink); }

/* ---------- who is Kaido, partners and perks ---------- */
.amb-card { display: flex; align-items: center; gap: 14px; }
.amb-card .grow { display: grid; gap: 3px; }
.amb-card .grow > span:not(.split) { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.amb-card b { font-size: 15.5px; }
.profile-head .tag { justify-self: start; }
.perk h2 { font-size: 18px; line-height: 1.3; }

/* the ambassadors: a moving picture each (avatars.js) until a photo is taken; the fields still open in the same grid */
.av { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 14px; background: radial-gradient(130% 100% at 30% 0%, #1d1d1d 0%, #121212 70%); }
.av.wide { aspect-ratio: 16 / 9; border-radius: var(--r); }
.av svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.av .av-c { fill: none; stroke: rgba(255, 255, 255, .075); stroke-width: 1; vector-effect: non-scaling-stroke; }
.av .av-ci { fill: none; stroke: rgba(168, 205, 151, .24); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.av .av-route { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 1.3; stroke-dasharray: 2 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.av .av-done { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.av .av-dot, .av .av-summit { fill: var(--accent); }
.av .av-halo { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .45; vector-effect: non-scaling-stroke; }
.av .av-band { fill: rgba(168, 205, 151, .1); stroke: rgba(255, 255, 255, .22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.av .av-ln, .av .av-tick { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.av .av-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.av .av-st { fill: #141414; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill .3s, stroke .3s; }
.av .av-st.on { fill: var(--accent); stroke: var(--accent); }
.av .av-label { font: 600 10px var(--display); letter-spacing: .22em; fill: var(--muted); }
.av .av-barline { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.av .av-plate { fill: #101010; stroke: rgba(255, 255, 255, .78); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.av .av-collar { fill: rgba(255, 255, 255, .78); }
.av .av-w { fill: rgba(255, 255, 255, .5); }
.av .av-w.on { fill: var(--accent); }
.av .av-play { stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.av .av-floor { stroke: rgba(255, 255, 255, .1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.av .av-vf { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.av .av-tub { fill: #171717; stroke: rgba(255, 255, 255, .75); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.av .av-water { fill: rgba(168, 205, 151, .35); }
.av .av-shadow { fill: rgba(0, 0, 0, .55); }
.showroom .av { margin-bottom: 14px; }
.av-i { position: absolute; z-index: 1; top: 9px; left: 11px; font: 700 26px/1 var(--display); letter-spacing: -.06em; color: var(--ink); }
.av > .tag { position: absolute; z-index: 1; top: 9px; right: 9px; padding: 3px 7px; font-size: 9.5px; background: rgba(10, 10, 10, .72); }
.amb-tile { min-width: 0; display: grid; gap: 3px; align-content: start; padding: 0; border: 0; background: transparent; color: var(--muted); text-align: left;
  font-size: 12.5px; line-height: 1.4; scroll-snap-align: start; }
.amb-tile .av { margin-bottom: 6px; }
.amb-tile b { font: 600 15px/1.3 var(--display); }
.amb-tile:hover .av { outline: 1px solid rgba(168, 205, 151, .4); outline-offset: -1px; }
.amb-tile.open .av > .tag { color: var(--ink); }
.amb-shelf { grid-auto-columns: 40%; }
.amb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.perk-shelf { grid-auto-columns: 58%; }
.perk-tile { min-width: 0; display: grid; gap: 8px; align-content: start; padding: 16px; border: 0; border-radius: var(--r); background: var(--card); color: var(--muted);
  text-align: left; font-size: 12.5px; line-height: 1.45; scroll-snap-align: start; }
.perk-tile:hover { background: var(--card-hover); }
.perk-tile b { font: 600 15px/1.3 var(--display); color: var(--ink); }
.perk-tile.open { background: transparent; border: 1px dashed rgba(168, 205, 151, .4); }
.quote { font: 600 17px/1.4 var(--display); }
.facts { display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts div:first-child { padding-top: 2px; border-top: 0; }
.facts dt { font: 600 10px/1.9 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 14px; line-height: 1.55; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.facts a { color: var(--accent); }

/* the menu's middle button: Sessions, the timer and everything to do with using the ice bath */
.tab.main-tab { gap: 3px; color: var(--ink); }
.tab-ic { width: 46px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.tab-ic .ic { width: 21px; height: 21px; }
.tab.main-tab:hover .tab-ic { background: var(--accent-hover); }
.tab.main-tab.on { color: var(--accent); }
.tab.main-tab.on .tab-ic { outline: 3px solid rgba(168, 205, 151, .3); outline-offset: 0; }

/* ---------- Today: the range to swipe, Build your Kaido, news and community ---------- */
.section-head { margin-top: 12px; }
h2.section-head, .section-head h2 { font-size: 19px; }
.shelf { min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 10px; margin: 0 calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut-l));
  padding: 2px var(--gut-r) 8px var(--gut-l); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut-l) var(--gut-r); scrollbar-width: thin; scrollbar-color: var(--well) transparent; }
.shelf-item { min-width: 0; display: grid; gap: 4px; align-content: start; padding: 0 0 14px; border: 0; border-radius: var(--r); overflow: hidden;
  background: var(--card); color: var(--muted); text-align: left; font-size: 13px; line-height: 1.4; scroll-snap-align: start; }
.shelf-item:hover { background: var(--card-hover); }
.shelf-item img, .shelf-item .thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; }
.shelf-item .thumb { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, #2a2a2a 0%, var(--tile) 70%); color: var(--accent); }
.shelf-item .thumb .ic { width: 30px; height: 30px; }
.shelf-item > b, .shelf-item > span:last-child { padding: 0 14px; }
.shelf-item > b { font-size: 13.5px; }
.build-card { border: 1px solid rgba(168, 205, 151, .16); background: linear-gradient(160deg, #1b2119 0%, var(--card) 62%); }
.feed { display: grid; gap: 12px; }
.feed-card { gap: 0; padding: 0; overflow: hidden; text-decoration: none; }
a.feed-card:hover { background: var(--card-hover); }
.feed-body { display: flex; align-items: center; gap: 14px; padding: 14px 16px 16px; }
.feed-body .grow { display: grid; gap: 4px; }
.feed-body b { font: 600 16px/1.3 var(--display); color: var(--ink); overflow-wrap: break-word; }
.feed-body .grow > span:not(.feed-meta):not(.sr) { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.feed-body > .avatar.sm { background: var(--tile); color: var(--ink); }
.badge-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--tile); color: var(--accent); }

/* ---------- Build your Kaido ---------- */
.build-step h2 { display: flex; align-items: center; gap: 10px; }
.num { flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font: 600 13px/1 var(--display); }
.opts { display: grid; gap: 8px; }
.opt { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--body); text-align: left; }
.opt:hover:not(:disabled) { border-color: var(--edge); }
.opt .grow { display: grid; gap: 2px; }
.opt b { font: 600 15px/1.3 var(--display); color: var(--ink); }
.opt .grow > span { font-size: 13px; color: var(--muted); }
.tickbox { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--edge); border-radius: 50%; color: transparent; }
.tickbox .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt[aria-pressed="true"] .tickbox { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.build-step .switch-row { padding-bottom: 0; }
.summary { gap: 12px; }
.summary .seg button { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.summary .list li > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary .total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.summary .total b { font: 600 28px/1.15 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.summary .split b { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.summary .right { margin-top: -10px; }

/* ---------- messages ---------- */
.thread { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.msg { max-width: 86%; display: grid; gap: 4px; }
.msg p { padding: 11px 14px; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .who { padding: 0 6px; font-size: 11.5px; color: var(--muted); }
.msg.them { justify-self: start; }
.msg.them p { border-bottom-left-radius: 6px; background: var(--card); color: var(--ink); }
.msg.me { justify-self: end; }
.msg.me .who { text-align: right; }
.msg.me p { border-bottom-right-radius: 6px; background: var(--accent); color: var(--on-accent); }
.composer { position: sticky; z-index: 5; bottom: calc(var(--nav) + var(--safe-b) + 10px); display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(22, 22, 22, .97); }
.composer:focus-within { border-color: rgba(168, 205, 151, .55); }
.composer input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font-size: 16px; }
.composer input:focus { outline: none; }
.composer input::placeholder { color: var(--muted); }
.composer .btn { min-height: 44px; }

/* ---------- breathing ---------- */
.breathe { display: grid; justify-items: center; gap: 8px; padding: 8px 0 2px; }
.orb { width: min(62vw, 230px); aspect-ratio: 1; display: grid; place-items: center; }
.orb span { width: 100%; height: 100%; border-radius: 50%; transform: scale(.55);
  background: radial-gradient(circle at 50% 42%, rgba(168, 205, 151, .6) 0%, rgba(168, 205, 151, .16) 58%, rgba(168, 205, 151, 0) 71%); }
.orb.run.box span { animation: box 16s ease-in-out infinite; }
.orb.run.relax span { animation: relax 19s ease-in-out infinite; }
@keyframes box { 0% { transform: scale(.55); } 25% { transform: scale(1); } 50% { transform: scale(1); } 75% { transform: scale(.55); } 100% { transform: scale(.55); } }
@keyframes relax { 0% { transform: scale(.55); } 21.05% { transform: scale(1); } 57.89% { transform: scale(1); } 100% { transform: scale(.55); } }
.phase { min-height: 1.3em; font: 600 22px/1.3 var(--display); color: var(--ink); }
.count { min-height: 1.4em; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- full-screen moments: a session, the check-in, saved, the intro, sharing ---------- */
.overlay { max-width: var(--col); min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: calc(28px + var(--safe-t)) max(20px, env(safe-area-inset-right, 0px)) calc(28px + var(--safe-b)) max(20px, env(safe-area-inset-left, 0px));
  background: var(--bg); text-align: center; }
.overlay h1 { font-size: 28px; }
.overlay .logo { width: 96px; margin: 0 auto 18px; }
.overlay.intro, .overlay.share { justify-content: flex-start; padding-top: calc(44px + var(--safe-t)); text-align: left; }
.overlay.intro .logo { margin: 0 0 26px; }
.overlay .card { text-align: left; }
.choices { display: grid; gap: 10px; margin: 10px 0 6px; }
.choice { min-height: 58px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink);
  font: 600 16px/1.3 var(--display); text-align: left; }
.choice:hover { border-color: var(--accent); }
.live { justify-content: space-between; }
.live.cold { background: radial-gradient(120% 70% at 50% 28%, #0f1f28 0%, var(--bg) 72%); }
.live.heat { background: radial-gradient(120% 70% at 50% 28%, #2b1a10 0%, var(--bg) 72%); }
.live.cold .ring-fg { stroke: var(--cold); }
.live.heat .ring-fg { stroke: var(--heat); }
.ring-wrap { position: relative; width: min(70vw, 260px); aspect-ratio: 1; margin: 0 auto; }
.ring { display: block; width: 100%; height: 100%; }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.ring-text b { font: 600 52px/1 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring-text span { font-size: 13px; color: var(--muted); }
.temp { font: 600 18px var(--display); color: var(--ink); }
.hint { min-height: 3.1em; font-size: 15.5px; color: var(--body); }
.safety { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.safety.box { padding: 14px 16px; border-radius: var(--r); background: var(--card); text-align: left; }
.moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0; }
.mood { min-height: 46px; padding: 0 18px; border: 1px solid var(--edge); border-radius: 999px; background: transparent; color: var(--ink); font: 600 14.5px var(--display); }
.mood.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tick { width: 76px; height: 76px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.tick .ic { width: 38px; height: 38px; stroke-width: 2; }

/* ---------- a short note ---------- */
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(var(--nav) + var(--safe-b) + 18px); max-width: min(440px, calc(100% - 32px)); padding: 12px 18px;
  border-radius: 14px; background: #f2f2f2; color: #0a0a0a; font: 500 14px/1.4 var(--text); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- moving between pages ---------- */
.enter { animation: enter .24s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .enter, .orb.run.box span, .orb.run.relax span { animation: none; }
  .orb.run span { transform: scale(.8); }
  .ring .ring-fg, .switch, .switch span, .toast, .av .av-st { transition: none; }
}
