/* heven · direction C "Bold character"
   One spacing scale (4 8 12 16 24 32 48 64 96 128), three radii (8 12 20),
   one signature colour, one signature shape: three round corners, one sharp. */

:root {
  --paper: #F4F1EA; --surface: #FFFFFF; --soft: #ECE8DE; --ink: #14130F;
  --muted: #5F5B51; --line: #D8D3C6; --edge: #8A8578;
  --hot: #FF4A1C; --on-hot: #14130F; --on-hot-paper: #F4F1EA;
  --inv: #14130F; --on-inv: #F4F1EA;
  --shadow: 0 1px 0 rgba(20,19,15,.04), 0 32px 64px -32px rgba(20,19,15,.38);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-s: 8px; --r-m: 12px; --r-l: 20px;
  --m: 16px; --g: 12px; --nav-h: 64px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
@media (min-width: 600px)  { :root { --m: 32px; --g: 16px; --nav-h: 80px; } }
@media (min-width: 1100px) { :root { --m: 48px; --g: 24px; --nav-h: 88px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F0E0C; --surface: #191815; --soft: #262420; --ink: #F4F1EA;
    --muted: #A8A295; --line: #33302A; --edge: #736E63;
    --inv: #F4F1EA; --on-inv: #14130F;
    --shadow: 0 1px 0 rgba(0,0,0,.2), 0 32px 64px -32px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F0E0C; --surface: #191815; --soft: #262420; --ink: #F4F1EA;
  --muted: #A8A295; --line: #33302A; --edge: #736E63;
    --inv: #F4F1EA; --on-inv: #14130F;
  --shadow: 0 1px 0 rgba(0,0,0,.2), 0 32px 64px -32px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s5); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, p, ul, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--hot); color: var(--on-hot); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: var(--s3); z-index: 20; padding: var(--s2) var(--s4); background: var(--ink); color: var(--paper); border-radius: var(--r-s); transform: translateY(-200%); }
.skip:focus { transform: none; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding-inline: var(--m); }
.on-hot { --ink: var(--on-hot); --paper: var(--on-hot-paper); color: var(--ink); }

/* ---------- mark ---------- */
.mark { width: 28px; height: 28px; flex: none; color: var(--ink); overflow: visible; }
.mark-b { fill: currentColor; transition: transform .25s var(--ease); transform-origin: 2px 30px; }
.mark-e { fill: var(--eye, var(--paper)); transform: translate(calc(var(--ex, 0) * 1px), calc(var(--ey, 0) * 1px)); transition: transform .16s var(--ease); }
.mark-e rect { transform-box: fill-box; transform-origin: center; transform: scaleY(var(--lid, 1)); transition: transform .1s ease-out; }
.blink .mark[data-live], .shy .mark[data-live], .mark.is-asleep { --lid: .14; }
.mark.is-busy .mark-e { animation: read 1.1s var(--ease) infinite alternate; }
.mark.is-asleep { animation: breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes read { from { transform: translate(-1.6px, 1.2px); } to { transform: translate(1.6px, 1.2px); } }
@keyframes breathe { 50% { transform: scaleY(.95); } }

.logo { display: inline-flex; align-items: center; gap: var(--s2); border-radius: var(--r-s); }
.word { font-weight: 800; font-size: 22px; letter-spacing: -.045em; line-height: 1; }
.logo:hover .mark-b { transform: rotate(-8deg); }
.logo:active .mark-b { transform: rotate(-8deg) scale(.94); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  border-radius: var(--r-m); font-weight: 650; letter-spacing: -.01em; white-space: nowrap;
  border: 1.5px solid transparent; user-select: none;
  transition: border-radius .2s var(--ease), transform .12s var(--ease), background-color .15s, color .15s, border-color .15s;
}
.btn:hover { border-bottom-left-radius: 0; }
.btn:active { transform: scale(.97); }
.btn-lg { height: 56px; padding: 0 var(--s5); font-size: 17px; }
.btn-md { height: 40px; padding: 0 var(--s4); font-size: 15px; }
.btn-sm { height: 32px; padding: 0 var(--s3); font-size: 14px; border-radius: var(--r-s); }
.btn-sm .i, .btn-md .i { width: 18px; height: 18px; }
.btn:disabled, .btn.is-off { opacity: .38; pointer-events: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-hot { background: var(--hot); color: var(--on-hot); }
.btn-line { border-color: var(--edge); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i .fill { fill: currentColor; stroke: none; }

.link { font-weight: 550; font-size: 15px; border-radius: var(--s1); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-block: var(--s1); transition: background-size .25s var(--ease); }
.link:hover, .link.under { background-size: 100% 1.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s2); }
.link-arrow .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-m); color: var(--ink); transition: background-color .15s, transform .12s var(--ease), border-radius .2s var(--ease); }
.icon-btn:hover { background: var(--soft); border-bottom-left-radius: 0; }
.icon-btn:active { transform: scale(.94); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: var(--r-s); color: var(--muted); }
.icon-btn.sm:hover { color: var(--ink); }
.icon-btn.sm .i { width: 18px; height: 18px; stroke-width: 1.6; }

.card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); }
.pill { font-size: 12px; font-weight: 600; line-height: 1; padding: 6px var(--s2); border-radius: var(--r-s); background: var(--soft); color: var(--muted); white-space: nowrap; }

/* ---------- nav ---------- */
.nav { position: relative; z-index: 2; height: var(--nav-h); align-items: center; }
.nav .logo { grid-column: 1 / span 5; justify-self: start; }
.nav-actions { grid-column: 6 / -1; justify-self: end; display: flex; align-items: center; gap: var(--s4); }
.nav-prices { display: none; }
.nav .btn .n { display: none; }
@media (max-width: 599px) { .nav .btn .w { display: none; } .nav .btn .n { display: inline; } .nav-actions { gap: var(--s3); } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: var(--s5); padding-bottom: var(--s7); row-gap: var(--s7); }
.hero-copy { grid-column: 1 / -1; position: relative; z-index: 1; }
.kicker { font-size: 16px; font-weight: 650; letter-spacing: -.01em; margin-bottom: var(--s5); }
.hero h1, .display {
  font-size: clamp(60px, 16.5vw, 136px); font-weight: 800; line-height: .97; letter-spacing: -.04em;
  margin-left: -.045em; margin-bottom: var(--s6);
}
.hero h1 span, .display span { display: block; white-space: nowrap; }
.lede { font-size: 20px; line-height: 1.35; letter-spacing: -.015em; max-width: 26ch; margin-bottom: var(--s6); text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }

.field { position: absolute; left: 0; right: 0; bottom: 0; height: 352px; pointer-events: none; }
.field-fill { grid-column: 1 / -1; margin-inline: calc(-1 * var(--m)); background: var(--hot); position: relative; }
.mark-xl { display: none; }

.demo { grid-column: 1 / -1; position: relative; z-index: 1; height: 496px; display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: var(--s5); }
.demo-head { flex: none; display: flex; align-items: center; gap: var(--s2); height: 56px; padding: 0 var(--s4); border-bottom: 1px solid var(--line); }
.demo-head .mark { width: 24px; height: 24px; --eye: var(--surface); }
.demo-head .word { font-size: 18px; }
.demo-head .pill { margin-left: auto; }
.demo-head .icon-btn { margin-right: calc(-1 * var(--s2)); }

/* ---------- messages (shared by demo and chat) ---------- */
.log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s5) var(--s4) var(--s4); display: flex; flex-direction: column; gap: var(--s4); scrollbar-width: thin; }
.log:focus-visible { outline-offset: -4px; border-radius: var(--r-m); }
.msg { display: grid; min-width: 0; }
.msg.me { justify-items: end; }
.bubble { max-width: 86%; padding: var(--s3) var(--s4); background: var(--soft); border-radius: var(--r-l) var(--r-l) 0 var(--r-l); overflow-wrap: anywhere; }
.body { min-width: 0; overflow-wrap: anywhere; }
.body > * + * { margin-top: var(--s3); }
.body ul { padding-left: var(--s5); }
.body li + li { margin-top: var(--s1); }
.body li::marker { color: var(--muted); }
.body blockquote { padding: var(--s1) 0 var(--s1) var(--s4); border-left: 2px solid var(--ink); }
.body blockquote > * + * { margin-top: var(--s2); }
.body strong { font-weight: 700; }

.caret { display: inline-block; width: .5em; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--hot); border-radius: 2px 2px 2px 0; animation: caret 1s steps(2, jump-none) infinite; }
@keyframes caret { to { opacity: .35; } }
.msg.in, .sys.in { animation: in .32s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

.demo .msg.ai .body, .demo .status-b { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; max-width: 34ch; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { height: 40px; padding: 0 var(--s3); font-size: 15px; font-weight: 550; border: 1.5px solid var(--edge); border-radius: var(--r-m); transition: border-radius .2s var(--ease), border-color .15s, background-color .15s, color .15s, transform .12s var(--ease); }
.chip:hover { border-color: var(--ink); background: var(--ink); color: var(--surface); border-bottom-left-radius: 0; }
.chip:active { transform: scale(.97); }
.chip[disabled] { opacity: .45; pointer-events: none; }

.composer { flex: none; display: flex; align-items: flex-end; gap: var(--s2); margin: 0 var(--s3) var(--s3); padding: var(--s2); background: var(--surface); border: 1.5px solid var(--edge); border-radius: var(--r-l); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 0; background: none; padding: var(--s2) var(--s2); min-height: 40px; max-height: 200px; line-height: 24px; font-size: 16px; outline: none; scrollbar-width: thin; }
.composer textarea::placeholder { color: var(--muted); opacity: 1; }
.composer textarea:disabled { cursor: not-allowed; }
.send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-m); background: var(--hot); color: var(--on-hot); transition: border-radius .2s var(--ease), transform .12s var(--ease), background-color .15s, color .15s; }
.send:hover { border-bottom-left-radius: 0; }
.send:active { transform: scale(.92); }
.send:disabled { background: var(--soft); color: var(--muted); cursor: default; transform: none; border-radius: var(--r-m); }
.send .i-stop { display: none; }
.is-streaming .send .i-send { display: none; }
.is-streaming .send .i-stop { display: block; }
.send .i { stroke-width: 2; }

/* ---------- facts ---------- */
.facts { padding-top: 0; }
.fact { position: relative; padding-block: var(--s6); row-gap: var(--s3); }
.fact::before { content: ""; position: absolute; left: var(--m); right: var(--m); top: 0; height: 1px; background: var(--line); }
.fact::after { content: ""; position: absolute; left: var(--m); top: -1px; height: 3px; width: 0; background: var(--hot); transition: width .5s var(--ease); }
.fact:focus-within::after { width: var(--s8); }
@media (hover: hover) { .fact:hover::after { width: var(--s8); } }
@media (max-width: 1099px) { .fact:first-child::before, .fact:first-child::after { display: none; } }
.num { grid-column: 1 / -1; font: 500 13px/24px var(--mono); color: var(--muted); letter-spacing: 0; }
.fact h2 { grid-column: 1 / -1; font-size: clamp(34px, 4.45vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-left: -.04em; text-wrap: balance; }
.detail { grid-column: 1 / -1; display: grid; gap: var(--s3); justify-items: start; align-content: start; padding-top: var(--s2); }
.detail > p:first-child { font-size: 18px; line-height: 1.4; letter-spacing: -.01em; max-width: 30ch; }
.proof { font: 500 14px/24px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
a.proof { font-family: var(--font); font-weight: 550; font-size: 15px; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; }
.roll { padding: var(--s1) var(--s2); margin-left: calc(-1 * var(--s2)); border-radius: var(--r-s); transition: background-color .15s, color .15s, border-radius .2s var(--ease); }
.roll:hover, .roll:focus-visible { background: var(--ink); color: var(--paper); border-bottom-left-radius: 0; }

/* ---------- prices ---------- */
.prices { padding-top: var(--s6); padding-bottom: var(--s8); row-gap: var(--s3); position: relative; scroll-margin-top: 0; }
.prices::before { content: ""; position: absolute; left: var(--m); right: var(--m); top: 0; height: 1px; background: var(--line); }
.price { grid-column: 1 / -1; display: grid; overflow: hidden; }
.pick { padding: var(--s5) var(--s4); }
.pick h2 { font-size: clamp(34px, 4.45vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-left: -.04em; }
.sub { margin-top: var(--s3); font-size: 18px; line-height: 1.4; letter-spacing: -.01em; color: var(--muted); }

 .sizes label { position: relative; cursor: pointer; }
 .sizes input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

 .sizes input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.sizes { display: grid; gap: var(--s2); margin-top: var(--s5); }
.sizes span { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); height: 48px; padding: 0 var(--s4); line-height: 45px; border: 1.5px solid var(--edge); border-radius: var(--r-m); transition: background-color .2s, color .2s, border-color .15s, border-radius .2s var(--ease), transform .12s var(--ease); }
.sizes b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sizes i { font-style: normal; font-size: 13px; color: var(--muted); transition: color .2s; }
.sizes label:hover span { border-color: var(--ink); }
.sizes label:active span { transform: scale(.98); }
.sizes input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); border-bottom-left-radius: 0; }
.sizes input:checked + span i { color: inherit; opacity: .72; }

.read { background: var(--hot); padding: var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s5); }
.read-plan { font: 500 13px/24px var(--mono); }
.amount { font-size: clamp(64px, 6.1vw, 88px); font-weight: 800; line-height: .9; letter-spacing: -.045em; margin-left: -.04em; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); }
.amount > span { white-space: nowrap; }
.amount small { font-size: 16px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.time { margin-top: var(--s3); font-size: 18px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.time > span:first-child { font-weight: 700; }
.bonus { display: inline-block; margin-left: var(--s1); padding: 0 var(--s2); font: 500 13px/24px var(--mono); border: 1.5px solid currentColor; border-radius: var(--r-s) var(--r-s) var(--r-s) 0; vertical-align: 1px; }
.read .btn { width: 100%; }

/* ---------- footer ---------- */
.foot { padding-block: var(--s6); row-gap: var(--s5); align-items: center; border-top: 1px solid var(--line); margin-inline: 0; }
.foot .logo { grid-column: 1 / -1; justify-self: start; }
.foot-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.foot-end { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); color: var(--muted); font-size: 15px; }

/* ---------- sign-in sheet ---------- */
.sheet { width: min(416px, calc(100vw - 2 * var(--m))); padding: var(--s6); border: 0; border-radius: var(--r-l) var(--r-l) var(--r-l) 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.sheet::backdrop { background: rgba(20,19,15,.5); }
.sheet[open] { animation: in .3s var(--ease) both; }
.sheet-x { position: absolute; top: var(--s3); right: var(--s3); }
.sheet h2 { font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-left: -.03em; }
.sheet h2 + p { margin-top: var(--s3); font-size: 18px; color: var(--muted); letter-spacing: -.01em; }
.sheet form[action] { display: grid; gap: var(--s3); margin-top: var(--s5); }

.sheet-note { margin-top: var(--s5); font-size: 15px; color: var(--muted); }
.sheet-note .link { color: var(--ink); }

/* ---------- tablet ---------- */
@media (min-width: 600px) {
  .nav-prices { display: inline; }
  .nav-actions { gap: var(--s5); }
  .hero { padding-top: var(--s7); padding-bottom: var(--s7); row-gap: var(--s8); }
  .kicker { font-size: 18px; }
  .lede { font-size: 22px; }
  .field { height: 448px; }
  .field-fill { grid-column: 6 / -1; margin-left: 0; }
  .demo { grid-column: 3 / -1; height: 528px; }
  .log { padding: var(--s5); gap: var(--s4); }
  .demo-head { padding: 0 var(--s5); }
  .composer { margin: 0 var(--s4) var(--s4); }

  .fact { padding-block: var(--s7); }
  .num { grid-column: 1 / span 2; grid-row: 1; }
  .fact h2 { grid-column: 3 / -1; }
  .detail { grid-column: 3 / -1; padding-top: var(--s3); }

  .prices { padding-top: var(--s7); padding-bottom: var(--s9); }
  .price { grid-column: 3 / -1; }
  .pick, .read { padding: var(--s6); }
  .sizes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sizes span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: 64px; padding: 0 var(--s3); line-height: 20px; }
  .read { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
  .read-plan { width: 100%; }
  .read .btn { width: auto; }

  .faq { padding-top: var(--s7); padding-bottom: var(--s9); }
  .faq .faq-b { grid-column: 3 / -1; }
  .foot .logo { grid-column: 1 / span 2; }
  .foot-links { grid-column: 3 / span 6; }
  .foot-end { grid-column: 9 / -1; justify-content: flex-end; }
  .foot-end p { display: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 1100px) {
  .nav-actions { gap: var(--s6); }
  .home .nav-actions, .gate .nav-actions { --ink: var(--on-hot); --paper: var(--on-hot-paper); color: var(--ink); }
  .hero { padding-top: var(--s7); padding-bottom: var(--s10); align-items: center; }
  .hero-copy { grid-column: 1 / span 6; grid-row: 1; }
  .kicker { font-size: 20px; margin-bottom: var(--s6); }
  .hero h1, .display { font-size: clamp(88px, min(9.4vw, 14svh), 144px); margin-bottom: var(--s7); }
  .lede { font-size: 24px; }
  .field { top: calc(-1 * var(--nav-h)); bottom: var(--s8); height: auto; }
  .field-fill { grid-column: 9 / -1; }
  .mark-xl { display: block; position: absolute; right: var(--m); bottom: var(--s7); width: var(--s9); height: var(--s9); color: var(--on-hot); --eye: var(--hot); }
  .demo { grid-column: 7 / span 5; grid-row: 1; height: clamp(496px, 64svh, 624px); }

  .fact { padding-block: var(--s8); align-items: start; }
  .fact h2 { grid-column: 3 / span 6; transition: transform .5s var(--ease); }
  @media (hover: hover) { .fact:hover h2 { transform: translateX(var(--s2)); } }
  .detail { grid-column: 9 / -1; grid-row: 1; padding-top: var(--s2); }
  .detail > p:first-child { font-size: 20px; }

  .prices { padding-top: var(--s8); padding-bottom: var(--s10); }
  .faq { padding-top: var(--s8); padding-bottom: var(--s10); }
  .faq .faq-b { grid-column: 3 / span 8; }
  .price { grid-template-columns: subgrid; }
  .pick { grid-column: span 6; padding: var(--s7); }
  .read { grid-column: span 4; padding: var(--s7) var(--s6); flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; }
  .read .btn { width: 100%; }
  .foot-end p { display: block; }
}

/* =====================  chat app  ===================== */
.app { overflow: hidden; background: var(--surface); }
.shell { display: grid; grid-template-columns: minmax(0, 1fr); height: 100dvh; }
.side { position: fixed; inset: 0 auto 0 0; z-index: 10; width: min(304px, 86vw); display: flex; flex-direction: column; gap: var(--s4); padding: var(--s3) var(--s3) var(--s4); background: var(--paper); transform: translateX(-100%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s .32s; }
.side-on .side { transform: none; visibility: visible; transition: transform .32s var(--ease); }
.scrim { position: fixed; inset: 0; z-index: 9; background: rgba(20,19,15,.5); opacity: 0; pointer-events: none; transition: opacity .32s; }
.side-on .scrim { opacity: 1; pointer-events: auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; height: 40px; padding-left: var(--s2); }
.side .new { justify-content: flex-start; gap: var(--s3); padding: 0 var(--s3); }
.side .new .i { width: 18px; height: 18px; }
.label { font: 500 12px/16px var(--mono); color: var(--muted); padding: 0 var(--s3); }
.convs { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.convs .label { margin: var(--s2) 0 var(--s2); }
.convs a { flex: none; height: 40px; line-height: 40px; padding: 0 var(--s3); border-radius: var(--r-m); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .15s, border-radius .2s var(--ease); }
.convs a:hover { background: var(--soft); }
.convs a[aria-current] { background: var(--soft); font-weight: 650; border-bottom-left-radius: 0; }
.convs a:focus-visible { outline-offset: -2px; }
.wallet { display: grid; gap: var(--s2); padding: var(--s4); background: var(--soft); border-radius: var(--r-l) var(--r-l) var(--r-l) 0; }
.wallet .label { padding: 0; }
.wallet-n { font-size: 32px; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }

.meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin: var(--s1) 0 var(--s2); }
.meter i { display: block; height: 100%; width: var(--v, 72%); background: var(--hot); border-radius: 2px; transition: width .6s var(--ease); }
.acct { display: flex; align-items: center; gap: var(--s4); padding-left: var(--s3); font-size: 13px; color: var(--muted); }
.acct .link { font-size: 13px; color: var(--ink); }
.acct .icon-btn { margin-left: auto; }

.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100dvh; }
.bar { flex: none; display: flex; align-items: center; gap: var(--s2); height: 56px; padding: 0 var(--s2); }
.bar-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit { flex: none; display: inline-flex; align-items: center; gap: var(--s2); height: 32px; padding: 0 var(--s3); margin-right: var(--s2); border-radius: var(--r-s); background: var(--soft); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-radius .2s var(--ease), background-color .15s; }
.credit:hover { border-bottom-left-radius: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); }
.is-streaming .dot { animation: pulse 1.2s ease-in-out infinite; }
.credit.is-off .dot { background: none; box-shadow: inset 0 0 0 2px var(--muted); }
.credit.is-low { background: var(--hot); color: var(--on-hot); font-family: var(--mono); font-weight: 600; }
.credit.is-low .dot { background: var(--on-hot); animation: pulse 1.2s ease-in-out infinite; }
.credit.is-out { background: var(--ink); color: var(--paper); }
.credit.is-out .dot { background: none; box-shadow: inset 0 0 0 2px currentColor; }
@keyframes pulse { 50% { opacity: .3; } }

.thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable both-edges; }
.thread:focus-visible { outline-offset: -2px; }
.col { max-width: 752px; margin: 0 auto; padding: var(--s4) var(--s4) var(--s6); display: flex; flex-direction: column; gap: var(--s5); }
.app .msg.ai { grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--s3); align-items: start; }
.app .msg.ai .mark { --eye: var(--surface); margin-top: -2px; }
.app .msg.ai > :not(.mark) { grid-column: 2; min-width: 0; }
.app .msg.ai .body { font-size: 16px; line-height: 1.6; }
.app .bubble { line-height: 1.5; }
.tools { display: flex; gap: var(--s1); margin: var(--s2) 0 calc(-1 * var(--s5)) calc(-1 * var(--s2)); height: 32px; opacity: 0; transition: opacity .15s; }
.msg:hover .tools, .msg:focus-within .tools, .col > .msg:last-child .tools { opacity: 1; }
.col > .msg:last-child .tools { margin-bottom: 0; }
.msg.live .tools { visibility: hidden; }
.msg.me .tools { margin-left: 0; margin-right: calc(-1 * var(--s2)); }
@media (hover: none) { .tools { opacity: 1; } }
.done .i { stroke: var(--ink); }

/* status line: one line from Heven, optional detail, steps and actions */
.status .mark { margin-top: -2px; }
.status-b { min-width: 0; display: grid; gap: var(--s2); justify-items: start; }
.status-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s3); font-size: 16px; letter-spacing: -.01em; }
.status-line strong { font-weight: 700; }
.eta { color: var(--muted); font-variant-numeric: tabular-nums; }
.status-t { color: var(--muted); max-width: 56ch; }
.status-n { font-size: 14px; color: var(--muted); }
.status .row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.dots { display: inline-flex; gap: 3px; margin-left: 3px; }
.dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; animation: dot 1.4s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: var(--s7); gap: var(--s1); margin: var(--s1) 0; }
.steps i { height: 4px; border-radius: 2px; background: var(--line); }
.steps .is-done { background: var(--ink); }
.steps .is-now { background: var(--hot); animation: pulse 1.2s ease-in-out infinite; }
.sys { align-self: center; font: 500 12px/16px var(--mono); color: var(--muted); text-align: center; }
.is-dropped .bubble { color: var(--muted); background: none; box-shadow: inset 0 0 0 1.5px var(--line); }

/* reasoning block */
.think { justify-self: start; max-width: 100%; margin-bottom: var(--s2); }
.think summary { display: inline-flex; align-items: center; gap: var(--s1); height: 32px; padding: 0 var(--s2) 0 var(--s3); margin-left: calc(-1 * var(--s3)); border-radius: var(--r-s); font-size: 14px; font-weight: 550; color: var(--muted); cursor: pointer; list-style: none; transition: background-color .15s, color .15s; }
.think summary::-webkit-details-marker { display: none; }
.think summary:hover { background: var(--soft); color: var(--ink); }
.think summary .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.think[open] summary .i { transform: rotate(180deg); }
.think.is-live summary span { animation: pulse 1.2s ease-in-out infinite; }
.think-b { margin-top: var(--s2); padding-left: var(--s4); border-left: 2px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--muted); white-space: pre-wrap; max-width: 60ch; }

/* edit the last message */
.msg.me.is-editing { justify-items: stretch; }
.msg.me.is-editing .bubble, .msg.me.is-editing .tools { display: none; }
.edit { display: grid; gap: var(--s2); padding: var(--s3); background: var(--soft); border-radius: var(--r-l) var(--r-l) 0 var(--r-l); }
.edit textarea { width: 100%; resize: none; border: 0; background: none; outline: none; padding: var(--s1); line-height: 24px; max-height: 240px; }
.edit .row2 { justify-content: flex-end; }

/* low-credit banner */
.banner { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); margin: 0 var(--s2) var(--s2); padding: var(--s2) var(--s2) var(--s2) var(--s4); background: var(--soft); border-radius: var(--r-m) var(--r-m) var(--r-m) 0; font-size: 14px; font-weight: 550; }
.banner-a { display: flex; align-items: center; gap: var(--s4); margin-left: auto; }
.banner .link { font-size: 14px; }
.ai-pill { font-family: var(--mono); letter-spacing: .04em; cursor: help; }
.wallet-h { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* conversation list rows with a menu */
.convs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.conv { position: relative; display: flex; align-items: center; border-radius: var(--r-m); }
.conv a { flex: 1; min-width: 0; }
.conv .icon-btn { position: absolute; right: var(--s1); top: 4px; opacity: 0; }
.conv:hover .icon-btn, .conv:focus-within .icon-btn, .conv .icon-btn[aria-expanded="true"] { opacity: 1; }
.conv:hover a, .conv:focus-within a { padding-right: 40px; }
@media (hover: none) { .conv .icon-btn { opacity: 1; } .conv a { padding-right: 40px; } }
.conv-in { flex: 1; min-width: 0; height: 40px; padding: 0 var(--s3); border: 1.5px solid var(--ink); border-radius: var(--r-m); background: var(--surface); font-size: 15px; outline: none; }
.convs .empty { padding: 0 var(--s3); }
.menu { position: absolute; z-index: 5; right: 0; top: 40px; min-width: 176px; padding: var(--s1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m) var(--r-m) var(--r-m) 0; box-shadow: var(--shadow); display: grid; }
.menu button { display: flex; align-items: center; gap: var(--s3); height: 40px; padding: 0 var(--s3); border-radius: var(--r-s); font-size: 15px; text-align: left; }
.menu button:hover, .menu button:focus-visible { background: var(--soft); outline-offset: -2px; }
.menu .i { width: 18px; height: 18px; color: var(--muted); }

.jump { position: absolute; left: 50%; bottom: 120px; margin-left: -20px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-m); background: var(--surface); border: 1.5px solid var(--edge); box-shadow: var(--shadow); transition: border-radius .2s var(--ease), border-color .15s, transform .12s var(--ease); }
.jump:hover { border-color: var(--ink); border-bottom-left-radius: 0; }
.jump:active { transform: scale(.94); }

.dock { flex: none; width: 100%; max-width: 752px; margin: 0 auto; padding: 0 var(--s3) max(var(--s2), env(safe-area-inset-bottom)); }
.dock .composer { margin: 0; }
.fine { text-align: center; font-size: 12px; line-height: 16px; color: var(--muted); padding-top: var(--s2); }

@media (min-width: 900px) {
  .shell { grid-template-columns: 288px minmax(0, 1fr); }
  .side { position: static; width: auto; transform: none; visibility: visible; padding: var(--s4) var(--s3); transition: none; }
  .side-open, .side-close, .scrim { display: none; }
  .bar { padding: 0 var(--s3) 0 var(--s5); height: 64px; }
  .col { padding: var(--s5) var(--s5) var(--s7); gap: var(--s6); }
  .dock { padding: 0 var(--s5) var(--s3); }
  .app .msg.ai { column-gap: var(--s4); }
}

/* =====================  shared components  ===================== */
.stack { display: grid; gap: var(--s3); }
.row2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.mono { font-family: var(--mono); font-size: .875em; font-variant-numeric: tabular-nums; color: var(--muted); }
.wrap { overflow-wrap: anywhere; }
.empty { color: var(--muted); font-size: 15px; }
.pill.is-ink { background: var(--ink); color: var(--paper); }

/* form */
.f { display: grid; gap: var(--s2); min-width: 0; }
.f-l { font-size: 14px; font-weight: 650; letter-spacing: -.005em; }
.f-l em { font-style: normal; font-weight: 400; color: var(--muted); }
.f-h { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 64ch; }
.f-e { font-size: 14px; font-weight: 550; padding-left: var(--s3); border-left: 3px solid var(--hot); }
.f-row { display: flex; gap: var(--s2); }
.f-row .inp { flex: 1; min-width: 0; }
.f-2 { display: grid; gap: var(--s4); }
.f-inline { grid-auto-flow: column; justify-content: start; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.inp, .sel select { width: 100%; height: 56px; padding: 0 var(--s4); background: var(--surface); color: var(--ink); border: 1.5px solid var(--edge); border-radius: var(--r-m); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.inp:focus, .sel select:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.inp::placeholder { color: var(--muted); opacity: 1; }
.inp[aria-invalid="true"] { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot); }
.in-mono { font: 500 17px var(--mono); font-variant-numeric: tabular-nums; }
.sel { position: relative; display: block; min-width: 0; }
.sel select { appearance: none; -webkit-appearance: none; padding-right: var(--s7); cursor: pointer; text-overflow: ellipsis; }
.sel .i { position: absolute; right: var(--s4); top: 50%; margin-top: -10px; pointer-events: none; }
.sel-sm select { height: 40px; padding: 0 var(--s6) 0 var(--s3); font-size: 15px; border-radius: var(--r-s); }
.sel-sm .i { right: var(--s2); width: 18px; height: 18px; margin-top: -9px; }

/* checkbox: the box takes the sharp corner when ticked */
.ck { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); align-items: start; font-size: 15px; line-height: 24px; cursor: pointer; }
.ck input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--edge); border-radius: var(--r-s); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background-color .15s, border-color .15s, border-radius .2s var(--ease); }
.ck input::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border: solid var(--paper); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform .18s var(--ease); }
.ck input:checked { background: var(--ink); border-color: var(--ink); border-bottom-left-radius: 0; }
.ck input:checked::after { transform: rotate(-45deg) scale(1); }
.ck:hover input { border-color: var(--ink); }
.ck a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; font-weight: 550; }
.ck-box { padding: var(--s4); border: 1.5px solid var(--edge); border-radius: var(--r-m) var(--r-m) var(--r-m) 0; transition: border-color .15s; }
.ck-box:has(input:checked) { border-color: var(--ink); }

/* notes */
.note { padding: var(--s3) var(--s4); background: var(--soft); border-radius: var(--r-m) var(--r-m) var(--r-m) 0; font-size: 15px; line-height: 1.5; }
.note.is-hot { background: var(--hot); color: var(--on-hot); font-weight: 550; }
.note.is-ink { background: var(--ink); color: var(--paper); }
.note .link { font-size: inherit; }
details.more summary { display: inline-flex; align-items: center; gap: var(--s1); font-size: 14px; font-weight: 550; cursor: pointer; list-style: none; border-radius: var(--s1); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
details.more[open] summary .i { transform: rotate(180deg); }
details.more p { margin-top: var(--s2); font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 64ch; }

/* dialogs */
.sheet > * + * { margin-top: var(--s3); }
.sheet > .sheet-x { margin-top: 0; }
.sheet h2 + p, .sheet-t + p { margin-top: var(--s3); font-size: 16px; color: var(--muted); letter-spacing: 0; }
.sheet .stack { margin-top: var(--s5); }
.sheet-t { font-size: 28px !important; line-height: 1.1 !important; letter-spacing: -.035em !important; font-weight: 800; text-wrap: balance; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.sheet-actions > *, .sheet-actions form .btn { flex: 1 1 auto; }
.sheet-actions form { display: flex; flex: 1 1 auto; }
.sheet-c { text-align: center; }
.clock { font: 800 72px/1 var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.langs { display: flex; gap: var(--s3); }
.langs .link { font-size: 13px; font-family: var(--mono); color: var(--ink); }

/* prose: answers and legal documents share one typography */
.prose > * + * { margin-top: var(--s3); }
.prose h2 { font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; margin-top: var(--s6); }
.prose h3 { font-size: 18px; line-height: 1.3; font-weight: 750; letter-spacing: -.02em; margin-top: var(--s5); }
.prose h4 { font-size: 16px; font-weight: 700; margin-top: var(--s5); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: var(--s5); }
.prose li + li { margin-top: var(--s1); }
.prose li::marker { color: var(--muted); }
.prose a { font-weight: 550; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; border-radius: 2px; }
.prose a:hover { background-size: 100% 100%; color: var(--paper); }
.prose :not(pre) > code { font: 500 .875em var(--mono); padding: 2px 6px; background: var(--soft); border-radius: 6px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: var(--s5); }
.code { background: var(--soft); border-radius: var(--r-m) var(--r-m) var(--r-m) 0; overflow: hidden; }
.code-h { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 var(--s1) 0 var(--s4); font: 500 12px var(--mono); color: var(--muted); }
.code pre { margin: 0; padding: 0 var(--s4) var(--s4); overflow-x: auto; font: 400 14px/1.6 var(--mono); tab-size: 2; scrollbar-width: thin; }
.code pre:focus-visible, .tbl:focus-visible { outline-offset: -2px; }
.tbl { overflow-x: auto; scrollbar-width: thin; }
.prose table { border-collapse: collapse; min-width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose th { font: 500 12px/16px var(--mono); color: var(--muted); text-align: left; padding: var(--s2) var(--s4) var(--s2) 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.prose td { padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th:last-child, .prose td:last-child { padding-right: 0; }
.prose-lede { font-size: 20px; line-height: 1.4; letter-spacing: -.015em; }

/* pricing extras and FAQ */

.pick > .f-h { margin-top: var(--s4); }

.faq { position: relative; padding-top: var(--s6); padding-bottom: var(--s8); row-gap: var(--s3); }
.faq::before { content: ""; position: absolute; left: var(--m); right: var(--m); top: 0; height: 1px; background: var(--line); }
.faq-b { grid-column: 1 / -1; min-width: 0; }
.faq h2 { font-size: clamp(34px, 4.45vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-left: -.04em; margin-bottom: var(--s6); }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s5); font-size: clamp(18px, 2vw, 24px); line-height: 1.2; font-weight: 750; letter-spacing: -.025em; cursor: pointer; list-style: none; border-radius: var(--r-s); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { transition: transform .3s var(--ease); }
.qa details[open] summary .i { transform: rotate(45deg); }
.qa summary:hover span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
.qa p { max-width: 62ch; font-size: 17px; line-height: 1.55; padding-bottom: var(--s5); }
.qa p + p { margin-top: calc(-1 * var(--s3)); }
.wallet-sub { display: grid; gap: var(--s2); padding-bottom: var(--s3); margin-bottom: var(--s1); border-bottom: 1px solid var(--line); }
.sections { counter-reset: sec; }
.sections .step:not([hidden]) > .num::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); }
.tile-s { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.read, .summary { transition: background-color .3s var(--ease), color .3s var(--ease); }

/* =====================  gate pages: create account, sign in, error  ===================== */
.gate-main { position: relative; padding-top: var(--s5); padding-bottom: var(--s7); row-gap: var(--s7); min-height: calc(100svh - var(--nav-h) - 120px); align-content: start; }
.gate-copy, .gate-card { grid-column: 1 / -1; position: relative; z-index: 1; }
/* small screens: the colour field is a band behind the lower part of the card, never behind text */
@media (max-width: 1099px) {
  .gate .field { display: none; }
  .gate-copy { grid-row: 1; }
  .gate-card { grid-row: 2; }
  .gate-main:has(.gate-card:not([hidden]))::after { content: ""; grid-row: 2; grid-column: 1 / -1; align-self: end; height: 64%; margin-inline: calc(-1 * var(--m)); background: var(--hot); transform: translateY(var(--s5)); }
}
.gate-card { padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.gate-card .stack { gap: var(--s4); }
.card-t { font: 500 13px/24px var(--mono); color: var(--muted); }
.acct-big { font: 600 clamp(20px, 6vw, 30px)/1.2 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding: var(--s5) 0; white-space: nowrap; }
.gate .sheet-note { margin-top: 0; }
.gate .actions { margin-top: var(--s2); }

/* =====================  app pages: buy, account, receipt, legal  ===================== */
@media (max-width: 599px) { .nav-app .btn { display: none; } }
.page-head { padding-top: var(--s6); padding-bottom: var(--s6); row-gap: var(--s3); }
.page-title { grid-column: 1 / -1; display: grid; gap: var(--s4); justify-items: start; }
.display-2 { font-size: clamp(40px, 6vw, 80px); font-weight: 800; line-height: .98; letter-spacing: -.04em; margin-left: -.04em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
.page-title .lede { margin: 0; max-width: 40ch; color: var(--muted); }
.bal { font-size: 15px; font-variant-numeric: tabular-nums; }
.notices { row-gap: var(--s2); }
.notices > * { grid-column: 1 / -1; margin-bottom: var(--s4); }
.checkout { row-gap: var(--s6); padding-bottom: var(--s8); align-items: start; }
.steps-col, .summary { grid-column: 1 / -1; min-width: 0; }
.step { position: relative; display: grid; row-gap: var(--s3); padding-block: var(--s6); }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.step.grid::before { left: var(--m); right: var(--m); }
.step-b { display: grid; gap: var(--s4); min-width: 0; justify-items: stretch; }
.step-b > .row2, .step-b > .btn, .step-b > details { justify-self: start; }
.step-t { font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.step .sizes { margin-top: 0; }
.plans { display: grid; gap: var(--s2); }
.plan { position: relative; cursor: pointer; }
.plan input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.plan-b { display: grid; gap: var(--s1); height: 100%; padding: var(--s4); border: 1.5px solid var(--edge); border-radius: var(--r-m); transition: background-color .2s, color .2s, border-color .15s, border-radius .2s var(--ease); }
.plan-b b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.plan-b i { font-style: normal; font-size: 14px; color: var(--muted); transition: color .2s; }
.plan-b ul { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s1); font-size: 14px; line-height: 20px; }
.plan-b li { padding-left: var(--s4); position: relative; }
.plan-b li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: currentColor; border-radius: 2px 2px 2px 0; }
.plan:hover .plan-b { border-color: var(--ink); }
.plan input:checked + .plan-b { background: var(--ink); border-color: var(--ink); color: var(--paper); border-bottom-left-radius: 0; }
.plan input:checked + .plan-b i { color: inherit; opacity: .72; }
.plan input:focus-visible + .plan-b { outline: 2px solid var(--ink); outline-offset: 3px; }

.summary { background: var(--hot); border-radius: var(--r-l) var(--r-l) var(--r-l) 0; padding: var(--s5); display: grid; gap: var(--s5); }
.summary .btn-line { border-color: var(--ink); }
.summary .f-h { color: var(--ink); }
.read-lines { margin-top: var(--s3); font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }

.sections { padding-bottom: var(--s8); }
.sections .num { grid-column: 1 / -1; }
.sections .step-b { grid-column: 1 / -1; }
.tiles { display: grid; gap: var(--s2); }
.tile { padding: var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-m); display: grid; gap: var(--s2); }
.tile.is-on { border-color: var(--ink); border-bottom-left-radius: 0; }
.tile .label { padding: 0; display: flex; align-items: center; gap: var(--s2); min-height: 24px; }
.tile-n { font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.rows { display: grid; }
.rowi { display: grid; gap: var(--s2); padding-block: var(--s4); border-top: 1px solid var(--line); }
.rowi:last-child { border-bottom: 1px solid var(--line); }
.rowi-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.rowi-h p { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); min-width: 0; }
.rowi-a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rowi-m { font-size: 14px; color: var(--muted); }
.rowi .row2 { margin-top: var(--s1); }
.inset { padding: var(--s4); background: var(--soft); border-radius: var(--r-m) var(--r-m) var(--r-m) 0; margin-top: var(--s2); font-size: 15px; }

.paper { grid-column: 1 / -1; padding: var(--s5); display: grid; gap: var(--s5); margin-bottom: var(--s8); border-radius: var(--r-l) var(--r-l) var(--r-l) 0; }
.paper-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid var(--ink); }
.paper-h > div { text-align: right; }
.paper .label { padding: 0; }
.paper-n { font: 600 18px/1.3 var(--mono); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.kv dt { font-size: 13px; color: var(--muted); padding-top: var(--s3); }
.kv dd { margin: 0; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.paper-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); font-size: 15px; }
.paper-total b { font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.paper section { display: grid; gap: var(--s2); font-size: 14px; line-height: 1.55; }
.paper section p { color: var(--muted); max-width: 72ch; }

.legal { row-gap: var(--s6); padding-bottom: var(--s9); align-items: start; }
.toc, .legal .prose { grid-column: 1 / -1; min-width: 0; }
.toc { display: grid; gap: var(--s2); padding-top: var(--s5); border-top: 1px solid var(--line); }
.toc .label { padding: 0; }
.toc ol, .toc ul { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s1); }
.toc ol { counter-reset: t; }
.toc ol li { counter-increment: t; display: grid; grid-template-columns: var(--s5) minmax(0, 1fr); align-items: baseline; }
.toc ol li::before { content: counter(t, decimal-leading-zero); font: 500 12px var(--mono); color: var(--muted); }
.toc .link { font-weight: 450; }
.legal .prose { max-width: 68ch; font-size: 17px; line-height: 1.6; padding-top: var(--s5); border-top: 1px solid var(--line); }
.legal .prose h2 { scroll-margin-top: var(--s5); }

@media (min-width: 600px) {
  .gate-card { grid-column: 3 / -1; padding: var(--s6); }
  .f-2 { grid-template-columns: 1fr 1fr; }
  .page-head { padding-top: var(--s7); padding-bottom: var(--s7); }
  .page-head .num { grid-column: 1 / span 2; }
  .page-title { grid-column: 3 / -1; }
  .notices > * { grid-column: 3 / -1; }
  .steps-col { display: grid; grid-template-columns: subgrid; }
  .steps-col .step { grid-column: 1 / -1; grid-template-columns: subgrid; }
  .step .num { grid-column: 1 / span 2; }
  .steps-col .step-b, .sections .step-b { grid-column: 3 / -1; }
  .sections .num { grid-column: 1 / span 2; }
  .plans { grid-template-columns: 1fr 1fr; }
  .summary { grid-column: 3 / -1; padding: var(--s6); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .paper { grid-column: 3 / -1; padding: var(--s7); }
  .kv { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .kv dt, .kv dd { padding-block: var(--s3); border-bottom: 1px solid var(--line); font-size: 15px; }
  .toc, .legal .prose { grid-column: 3 / -1; }
}
@media (min-width: 1100px) {
  .gate-main { padding-top: var(--s7); padding-bottom: var(--s10); align-items: center; align-content: center; min-height: calc(100svh - var(--nav-h) - 104px); }
  .gate-copy { grid-column: 1 / span 6; grid-row: 1; }
  .gate-card { grid-column: 8 / span 4; grid-row: 1; }
  .gate .display { font-size: clamp(88px, min(9.4vw, 17svh), 144px); }
  .page-head { padding-top: var(--s8); }
  .page-title { grid-column: 3 / span 8; }
  .steps-col { grid-column: 1 / span 8; }
  .steps-col .step-b { grid-column: 3 / span 6; }
  .sections .step-b { grid-column: 3 / span 6; }
  .summary { grid-column: 9 / -1; position: sticky; top: var(--s5); padding: var(--s6); }
  .step { padding-block: var(--s7); }
  .paper { grid-column: 3 / span 8; }
  .toc { grid-column: 1 / span 2; position: sticky; top: var(--s5); border-top: 0; padding-top: 0; }
  .legal .prose { grid-column: 3 / span 7; border-top: 0; padding-top: 0; }
  .page-head.grid + .legal .prose { margin-top: 0; }
}

/* ---------- print: the receipt ---------- */
@media print {
  :root { --paper: #fff; --surface: #fff; --soft: #f2f2f2; --ink: #000; --muted: #444; --line: #bbb; --shadow: none; color-scheme: light; }
  .nav, .no-print, .skip { display: none !important; }
  body { background: #fff; }
  .grid { padding-inline: 0; display: block; }
  .paper { margin: 0; padding: 0; box-shadow: none; border-radius: 0; }
}

/* ---------- motion and contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .caret, .dots i { animation: none !important; }
}
@media (forced-colors: active) {
  .field-fill, .read { border: 1px solid CanvasText; }
   .sizes input:checked + span { outline: 2px solid Highlight; }
}

/* =====================  offers (SPEC 2.2): pack, Max, Ultra, extra hour; Enterprise by e-mail  ===================== */
.sizes-o i { white-space: normal; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; min-width: 0; max-width: 100%; }
.sizes-o span { min-width: 0; }
.sizes-o span { min-height: 48px; height: auto; padding-block: var(--s2); }
@media (min-width: 600px) { .sizes-o span { min-height: 72px; height: auto; } }
.plan-p { margin-top: var(--s2); font-size: 16px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.in-num { width: 112px; font-variant-numeric: tabular-nums; }
.f-inline .in-num { flex: none; }
/* Enterprise: the readout turns into the inverse panel (the design's premium treatment), the action keeps the signature colour */
.price[data-mode="enterprise"] .read { background: var(--inv); --ink: var(--on-inv); --paper: var(--inv); color: var(--on-inv); }
.price[data-mode="enterprise"] .read .btn-ink { background: var(--hot); color: var(--on-hot); }
.note > p + p { margin-top: var(--s2); }
