/* ─────────────────────────────────────────────────────────────────────────
   Chelria · site shell for every page except the app (index.html).

   The line is the whole idea.
     · one flat field, the palette's cloud colour, behind everything
     · the range behind it is a line drawing (mountain-range.js .pure-line)
     · each page has one continuous thread (thread.js) that weaves down the
       page; section labels are set in wide-tracked capitals and sit ON it
     · text never sits on a line: every block of words stands on a plate of
       the field colour with feathered edges, so lines slip behind and vanish
     · anything that needs an edge (a plan, a form, a widget) is drawn as a
       line too: an outlined box, never a filled or blurred one
     · no backdrop-filter anywhere — that was what made the old pages drop to
       23fps while the range moved

   Colours come from the rotating palette: --bw-palette-cloud is the field and
   --bw-ink-on-sky is solved against it, so every palette stays readable.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* inner pages: one solid palette colour, divided by lines.
       background ............ palette step 3      (--bw-role-page)
       text, lines, edges .... palette step 10     (--bw-role-page-ink)
       buttons, logo ......... the gem step        (--bw-role-accent)
     Cards have no fill of their own: they are the page colour inside a line,
     so there is never a white block. */
  --field: var(--bw-role-page, #E9DCCB);
  --s-card: var(--field);
  --s-ink: var(--bw-role-page-ink, #34251F);
  --s-muted: var(--bw-role-page-muted, var(--s-ink));
  --s-faint: var(--s-muted);
  --s-line: var(--s-ink);
  --s-line-strong: var(--s-line);
  --s-raise: var(--field);
  --s-accent: var(--bw-role-page-accent, #A85E46);
  --s-accent-deep: var(--bw-role-strong, var(--s-ink));
  --s-on-accent: var(--bw-role-on-page-accent, var(--field));
  --s-strong: var(--bw-role-strong, var(--s-ink));
  --s-on-strong: var(--bw-role-on-strong, #F6EFE3);
  --thread: var(--s-line);
  --thread-w: 2.4px;

  --s-r: 26px;
  --s-r-sm: 14px;
  --s-pill: 999px;
  --s-gutter: max(16px, min(4vw, 48px));
  --s-ease: cubic-bezier(.2,.72,.2,1);
  --hand-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'%3E%3Cpath d='M1 4H399' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --hand-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 6'%3E%3Cpath d='M1.5 3H14.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  /* irregular radii: the cheap hand-drawn edge for small controls */
  --hand-pill: 999px;
  --hand-field: 14px;
  --sk: var(--s-line);
  --sk-w: 1.8px;

  --s-serif: "BioRhyme", var(--font-zh, serif), Georgia, serif;
  --s-sans: "Spinnaker", "ChelriaPunct-Sans", var(--font-zh, sans-serif), system-ui, sans-serif;
  --s-brand: "Pacifico", cursive;
}

html, body { background: var(--field); }
body.site [hidden] { display: none !important; }
html { scroll-padding-top: 96px; }
html:has(body.site) { overflow-x: clip; }
body.site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--s-ink);
  font-family: var(--s-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: color 1.5s;
}
body.site *, body.site *::before, body.site *::after { box-sizing: border-box; }
:where(body.site) a { color: inherit; }
body.site :focus-visible { outline: 2px solid var(--s-ink); outline-offset: 3px; border-radius: 6px; }
/* the glow typography.css puts on display type was there to lift words off
   coloured ridges; on a flat field it only blurs them */
body.site { --glow-on-paper: none; }
body.site :is(h1, h2, h3, .display, p, span, a, li) { text-shadow: none; }

/* ── the field and the range ──────────────────────────────────────────── */
/* no landscape on inner pages: the background is one flat colour */
body.site > .mtn-bg, body.site > .mtn-sky { display: none !important; }
body.site > :not(.mtn-bg):not(.mtn-sky):not(.toast):not(script):not(style) { position: relative; z-index: 2; }

/* text sits straight on the field and its ribbons; the thread is cut where
   labels are (thread.js), and cards are paper (see .sheet) */
.display, .lede { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }

/* hand-drawn edges (sketch.js) */
.sk { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.sk path { fill: none; stroke: var(--sk); stroke-width: var(--sk-w); stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
/* the edge is drawn on top of the box's own background and under nothing else:
   it is stroke only and sits inside the padding, so it never covers content */
/* a hand-drawn rule, coloured by background-color */
.hand-rule { display: block; height: 7px; background-color: var(--s-line-strong);
  -webkit-mask: var(--hand-line) center / 100% 100% no-repeat; mask: var(--hand-line) center / 100% 100% no-repeat; }

/* ── the thread (drawn by thread.js) ──────────────────────────────────── */
.thread { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--thread); stroke-width: var(--thread-w); stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 1.5s cubic-bezier(.77,0,.175,1); }
.thread.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sDraw 2.6s cubic-bezier(.45,.05,.25,1) .15s forwards; }
@keyframes sDraw { to { stroke-dashoffset: 0; } }
.site-main > :not(.thread) { position: relative; z-index: 1; }

/* the words that sit on the thread */
.tl, [data-thread] {
  display: block; width: fit-content; max-width: calc(100% - 40px); margin-left: auto; margin-right: auto;
  padding: 0 .9em; text-align: center;
  font: 700 13px/1.6 var(--s-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--s-ink);
}
.tl--lg { font-size: clamp(14px, 1.5vw, 17px); letter-spacing: .28em; }
.tl--left { margin-left: 0; }

/* ── shared components ─────────────────────────────────────────────────
   One rule per kind of thing, used by every page. Pages only lay out. */
/* big figures: prices, balances, rates, estimates */
.figure, .price b, .rate-nums b, .estimate b, .units-big, .mt-figure b, .pack .p, .pack .u {
  font-family: var(--s-serif); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.05; color: var(--s-ink);
}
/* small labels: always caps, tracked, muted */
.meta, .try-label, .flabel, .field > label, .rate-nums span, .estimate span, .mcost, .mt-switch i, .always, .prov-tag,
.mt-readout dt, .mt-meter label, .half .meta, .point .meta {
  font: 700 11px/1.4 var(--s-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--s-muted); font-style: normal;
}
/* titles inside cards */
.sheet h3, .plan h3, .rate-top h3, .half h3, .point h3, .row .rl b, .mmain b, .mt-switch b, .mt-defs dt, .id-main b, .step h2 {
  font-family: var(--s-serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--s-ink);
}
.sheet h3, .plan h3, .rate-top h3, .half h3, .point h3 { font-size: 21px; margin: 0 0 8px; }
.row .rl b, .mmain b, .mt-switch b, .mt-defs dt, .id-main b { font-size: 16px; }
.step h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 12px; }
/* body copy inside cards */
.sheet p, .row .rl span, .mmain p, .mt-defs dd, .mt-switch span { color: var(--s-muted); }
/* nested boxes and options inside a card */
.inset, .try, .mrow, .mt-switch button { background: var(--s-raise); border-radius: 20px; }
.mrow.sel, .mt-switch button[aria-checked="true"] { --sk: var(--s-ink); --sk-w: 2.4px; }
/* hand-drawn round marks (radios, checks, avatars) */
.radio, .mt-checks li::before, .av { border-radius: 54% 46% 52% 48% / 48% 54% 46% 52%; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky !important; top: env(safe-area-inset-top, 0px); z-index: 20 !important;
  display: flex; align-items: center; gap: 20px;
  padding: 16px var(--s-gutter);
  transition: background-color .3s, box-shadow .3s;
}
.site-head.is-stuck { background: var(--field); }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 7px; opacity: 1;
  background: var(--s-line-strong); -webkit-mask: var(--hand-line) center / 100% 100% no-repeat; mask: var(--hand-line) center / 100% 100% no-repeat; transition: opacity .3s; }
.site-head.is-stuck::after { opacity: 1; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--s-ink); flex: none; }
.bw-bird{display:inline-block;background:var(--bw-mark,var(--s-accent,#A85E46));-webkit-mask:url("../assets/brand/bird.png") center / contain no-repeat;mask:url("../assets/brand/bird.png") center / contain no-repeat}
.site-mark { width: 28px; height: 28px; flex: none; }
.site-word { font-family: var(--s-brand); font-size: 22px; line-height: 1; padding-bottom: 4px; color: var(--s-ink); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  position: relative; text-decoration: none; white-space: nowrap; color: var(--s-muted);
  font: 700 12px/1 var(--s-sans); letter-spacing: .2em; text-transform: uppercase; padding: 10px 12px;
  transition: color .15s;
}
.site-nav a::after { content: ""; position: absolute; left: 10px; right: calc(10px - .2em); bottom: 1px; height: 6px;
  background: currentColor; -webkit-mask: var(--hand-line) center / 100% 100% no-repeat; mask: var(--hand-line) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .35s var(--s-ease); }
.site-nav a:hover { color: var(--s-ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { clip-path: inset(0 0 0 0); }
.site-nav a[aria-current="page"] { color: var(--s-ink); }
.site-head .btn { flex: none; }

@media (max-width: 760px) {
  .site-head { flex-wrap: wrap; row-gap: 4px; padding-top: 12px; padding-bottom: 8px; }
  .site-word { font-size: 20px; }
  .site-head .btn { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 11px; letter-spacing: .16em; }
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: var(--hand-pill);
  font: 700 12px/1 var(--s-sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .18s, color .18s, box-shadow .18s, transform .18s var(--s-ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn--primary { background: var(--s-accent); color: var(--s-on-accent); }
.btn--primary:hover { background: var(--s-strong); color: var(--s-on-strong); }
.btn--quiet { background: var(--s-card); color: var(--s-ink); box-shadow: inset 0 0 0 1.8px var(--s-ink); }
.btn--quiet:hover { background: var(--s-raise); }
.btn--dark { background: var(--s-strong); color: var(--s-on-strong); }
.btn--dark:hover { background: var(--s-accent); color: var(--s-on-accent); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 11px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 13px; }
.btn--block { width: 100%; }
.btn .arr { display: inline-flex; transition: transform .2s var(--s-ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ── page body ──────────────────────────────────────────────────────────── */
.site-main { flex: 1; width: 100%; padding: 0 var(--s-gutter) 96px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; }
.wrap--prose { max-width: 720px; }
.wrap--narrow { max-width: 440px; }

.hero { text-align: center; padding: clamp(36px, 8vh, 96px) 0 clamp(28px, 6vh, 56px); max-width: 860px; margin: 0 auto; }
.hero > [data-thread] { margin-bottom: clamp(26px, 4vh, 40px); }
.eyebrow { font: 700 12px/1.6 var(--s-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--s-muted); margin: 0 0 16px; }
.display {
  margin-top: 0; margin-bottom: 0; font-family: var(--s-serif); font-weight: 500; color: var(--s-ink);
  font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -.045em; text-wrap: balance;
}
.display--md { font-size: clamp(28px, 3.6vw, 42px); }
.lede { margin-top: 22px; margin-bottom: 0; max-width: 580px; font-size: 16.5px; line-height: 1.65; color: var(--s-muted); text-wrap: pretty; }
.hero .actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.reveal-word { display: inline-block; opacity: 0; filter: blur(8px); transform: translate3d(0,.14em,0);
  animation: sReveal 1100ms var(--s-ease) forwards; animation-delay: calc(var(--i) * 80ms); }
@keyframes sReveal { to { opacity: 1; filter: none; transform: none; } }

/* sections: the thread crosses at each label, so the label opens the section */
.section { margin-top: clamp(72px, 12vh, 128px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head .lede { margin-top: 18px; font-size: 15.5px; }

/* ── sheets: a plate, and where an edge is needed, an outline ─────────────── */
.sheet { border-radius: 30px; padding: clamp(22px, 3.2vw, 38px); background-color: var(--s-card); transition: background-color 1.5s cubic-bezier(.77,0,.175,1); }
.sheet--bare { background: none; }
.sheet--strong { --sk: var(--s-ink); --sk-w: 2.2px; }
.sheet--flush { padding: 0; overflow: hidden; }
.stack > * + * { margin-top: 20px; }
.sheet h2, .h2 { margin: 0 0 10px; font-family: var(--s-serif); font-weight: 500; font-size: clamp(22px, 2.5vw, 28px); line-height: 1.18; letter-spacing: -.03em; }
.sheet h3, .h3 { margin: 0 0 6px; font-family: var(--s-serif); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.sheet p { margin: 0 0 12px; }
.sheet p:last-child { margin-bottom: 0; }
.muted { color: var(--s-muted); }
.small { font-size: 13px; }
.meta { font: 700 11px/1.4 var(--s-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--s-muted); margin: 0 0 12px; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid--2 { grid-template-columns: 1fr; } }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 11px; border-radius: var(--hand-pill); white-space: nowrap;
  font: 700 10.5px/1 var(--s-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--s-ink); box-shadow: inset 0 0 0 1.4px var(--s-line-strong); }
.chip--accent { background: var(--s-accent); color: var(--s-on-accent); box-shadow: none; }
.chip--dark { background: var(--s-strong); color: var(--s-on-strong); box-shadow: none; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--hand-pill); background: var(--s-card); box-shadow: inset 0 0 0 1.8px var(--sk); }
.seg button { appearance: none; border: 0; cursor: pointer; min-height: 36px; padding: 0 16px; border-radius: var(--s-pill);
  font: 700 11px/1 var(--s-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--s-muted); background: transparent; transition: background-color .18s, color .18s; border-radius: var(--hand-pill); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"], .seg button.on { background: var(--s-strong); color: var(--s-on-strong); }

/* ── forms ──────────────────────────────────────────────────────────────── */
.field { display: block; margin: 0 0 16px; }
.field > label, .flabel { display: block; font: 700 11px/1 var(--s-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--s-muted); margin: 0 0 9px; }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 11px 16px; border-radius: var(--hand-field);
  border: 1.8px solid var(--sk); background: var(--s-raise); color: var(--s-ink);
  font: 400 15px/1.4 var(--s-sans); transition: border-color .15s, background-color .15s;
}
.field textarea { font-family: var(--s-serif); resize: vertical; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--s-ink); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--s-faint); }
.form-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--hand-field); font-size: 13px; box-shadow: inset 0 0 0 1.6px currentColor; }
.form-msg.err { color: var(--s-ink); }
.form-msg.ok { color: var(--s-line); }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 16px; font: 700 10.5px/1 var(--s-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--s-faint); }
.divider::before, .divider::after { content: ""; flex: 1; height: 7px; background: var(--s-line-strong);
  -webkit-mask: var(--hand-line) center / 100% 100% no-repeat; mask: var(--hand-line) center / 100% 100% no-repeat; }

.bw-organic-loader { display: inline-flex; gap: 3px; }
.bw-organic-loader i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: sDot 1s infinite ease-in-out; }
.bw-organic-loader i:nth-child(2) { animation-delay: .15s; }
.bw-organic-loader i:nth-child(3) { animation-delay: .3s; }
@keyframes sDot { 0%, 80%, 100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: none; } }

/* ── lists and rows ─────────────────────────────────────────────────────── */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 0 0 9px; font-size: 14px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: calc(.8em - 3px); width: 16px; height: 6px; background: currentColor; opacity: .75;
  -webkit-mask: var(--hand-dash) center / 100% 100% no-repeat; mask: var(--hand-dash) center / 100% 100% no-repeat; }
.rows { display: flex; flex-direction: column; }
.row { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 0; }
.row + .row::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 7px; background: var(--s-line-strong);
  -webkit-mask: var(--hand-line) center / 100% 100% no-repeat; mask: var(--hand-line) center / 100% 100% no-repeat; }
.row:first-child { padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
@media (max-width: 560px) { .row { flex-wrap: wrap; } }

/* ── prose ──────────────────────────────────────────────────────────────── */
.prose { font-size: 15.5px; line-height: 1.75; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose a { color: inherit; text-decoration-thickness: 1.4px; text-underline-offset: 4px; }
.prose strong, .prose b { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1.4px solid var(--s-line); vertical-align: top; }
.prose th { font: 700 11px/1.4 var(--s-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--s-muted); }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 26px; max-width: 640px; margin-left: auto; margin-right: auto; }
.toc a { position: relative; font: 700 11px/2 var(--s-sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--s-ink); }
.toc a::after { content: ""; position: absolute; left: 0; right: .18em; bottom: -2px; height: 6px; background: currentColor; opacity: 0;
  -webkit-mask: var(--hand-line) center / 100% 100% no-repeat; mask: var(--hand-line) center / 100% 100% no-repeat; transition: opacity .2s; }
.toc a:hover::after { opacity: .8; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-foot { position: relative; z-index: 2; padding: 30px var(--s-gutter) 30px; text-align: center; color: var(--s-ink); }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 7px; background: var(--s-line);
  -webkit-mask: var(--hand-line) center / 100% 100% no-repeat; mask: var(--hand-line) center / 100% 100% no-repeat; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; width: fit-content; max-width: 100%; margin: 0 auto;
  font: 700 11px/2 var(--s-sans); letter-spacing: .18em; text-transform: uppercase; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-foot .tag { display: block; width: fit-content; margin: 12px auto 0; font-size: 12px; color: var(--s-muted); }

/* ── toast ──────────────────────────────────────────────────────────────── */
.toast { position: fixed !important; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 50 !important; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--s-strong); color: var(--s-on-strong); font-size: 13px; padding: 11px 20px; border-radius: var(--s-pill);
  transition: opacity .19s, transform .19s var(--s-ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-word { animation: none; opacity: 1; filter: none; transform: none; }
  .thread.draw path { animation: none; stroke-dashoffset: 0; }
  .site-nav a::after { transition: none; }
  .btn, .site-head { transition: none; }
}

/* ── Quiet pages (2026-11-07) ──────────────────────────────────────────
   One flat palette colour, words, and plain lines that divide. No boxes
   around content: a section opens with a rule, columns sit side by side
   under their own rule. Outlines are kept only on things you operate
   (fields, buttons, choices). Lines are straight and smooth. */
.sheet, .sheet--strong, .sheet--bare {
  background: none; border-radius: 0; box-shadow: none;
  padding: 22px 0 0; border-top: 1.5px solid var(--s-line);
}
.sheet .sk, .try .sk, .cycle .sk { display: none; }
.grid { gap: 18px 40px; }
.tl, [data-thread] {
  display: block; width: auto; max-width: none; padding: 0; margin: 0 0 18px; text-align: inherit;
  font: 700 12px/1.6 var(--s-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--s-muted);
}
.hero > [data-thread] { margin-bottom: 18px; }
.section-head > [data-thread], .section-head > .tl { margin-bottom: 12px; }
.site-head::after { height: 1.5px; bottom: 0; -webkit-mask: none; mask: none; background: var(--s-line); }
.site-foot::before { height: 1.5px; top: 0; -webkit-mask: none; mask: none; background: var(--s-line); }
.row + .row::before { height: 1.5px; top: 0; -webkit-mask: none; mask: none; background: var(--s-line); opacity: .5; }
/* operated choices keep a plain rounded outline */
.mrow, .mt-switch button { background: none; border: 1.5px solid color-mix(in srgb, var(--s-line) 45%, transparent); border-radius: 16px; }
.mrow.sel, .mt-switch button[aria-checked="true"] { border: 2.5px solid var(--s-line); }
/* a worked example sits beside its text, divided by one vertical line */
.try { background: none; border-radius: 0; padding: 4px 0 4px 28px; border-left: 1.5px solid var(--s-line); }
@media (max-width: 860px) { .try { padding: 20px 0 0; border-left: 0; border-top: 1.5px solid color-mix(in srgb, var(--s-line) 45%, transparent); } }

/* ── palette changes fade, they never cut ───────────────────────────────
   The palette engine swaps colours by setting custom properties on <html>.
   Registered as colours, those properties interpolate, so every surface,
   word and line that uses them fades with them. Transitions switch on only
   after the first palette has landed (site.js adds .pal-live), so the page
   does not fade in from the fallback colour on load. */
@property --bw-role-field { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-role-card { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-role-inset { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-role-ink { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-role-muted { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-role-line { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-role-page { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-role-page-ink { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-role-page-muted { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-role-page-accent { syntax: '<color>'; inherits: true; initial-value: #A85E46; }
@property --bw-role-on-page-accent { syntax: '<color>'; inherits: true; initial-value: #F6EFE3; }
@property --bw-role-accent { syntax: '<color>'; inherits: true; initial-value: #A85E46; }
@property --bw-role-on-accent { syntax: '<color>'; inherits: true; initial-value: #F6EFE3; }
@property --bw-role-strong { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-role-on-strong { syntax: '<color>'; inherits: true; initial-value: #F6EFE3; }
@property --bw-palette-cloud { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-palette-gem { syntax: '<color>'; inherits: true; initial-value: #A85E46; }
@property --bw-palette-on-gem { syntax: '<color>'; inherits: true; initial-value: #F6EFE3; }
@property --bw-palette-1 { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-palette-2 { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-palette-3 { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-palette-4 { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-palette-5 { syntax: '<color>'; inherits: true; initial-value: #E9DCCB; }
@property --bw-palette-6 { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-palette-7 { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-palette-8 { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-palette-9 { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-palette-10 { syntax: '<color>'; inherits: true; initial-value: #34251F; }
@property --bw-role-block { syntax: '<color>'; inherits: true; initial-value: #7C9BCE; }
@property --bw-role-block-end { syntax: '<color>'; inherits: true; initial-value: #6A86B8; }
@property --bw-role-on-block { syntax: '<color>'; inherits: true; initial-value: #141413; }
@property --bw-role-alt { syntax: '<color>'; inherits: true; initial-value: #5F3D00; }
@property --bw-role-alt-end { syntax: '<color>'; inherits: true; initial-value: #4A3200; }
@property --bw-role-on-alt { syntax: '<color>'; inherits: true; initial-value: #ECE6DC; }
html.pal-live { transition: --bw-role-block 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-block-end 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-on-block 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-alt 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-alt-end 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-on-alt 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-field 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-card 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-inset 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-ink 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-muted 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-line 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-page 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-page-ink 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-page-muted 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-page-accent 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-on-page-accent 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-accent 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-on-accent 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-strong 1.8s cubic-bezier(.45,.05,.35,1), --bw-role-on-strong 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-cloud 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-gem 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-on-gem 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-1 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-2 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-3 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-4 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-5 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-6 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-7 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-8 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-9 1.8s cubic-bezier(.45,.05,.35,1), --bw-palette-10 1.8s cubic-bezier(.45,.05,.35,1); }

/* ── colour blocks ──────────────────────────────────────────────────────
   A block is a field of the palette's next family (see blockRoles in
   mountain-range.js), shaded across that family so it never reads as a flat
   cut-out. Everything inside re-points the page tokens at the block's own
   readable colours, so links, lines and buttons just work in it.
     .block       the next family after the page colour
     .block--alt  the family after that */
.block {
  --b1: var(--bw-role-block); --b2: var(--bw-role-block-end); --bon: var(--bw-role-on-block);
  position: relative; color: var(--bon);
  background: var(--b1);
  border-radius: clamp(26px, 3.4vw, 44px);
  padding: clamp(26px, 4.4vw, 60px);
  --s-ink: var(--bon); --s-muted: var(--bon); --s-line: var(--bon); --s-line-strong: var(--bon);
  --s-accent: var(--bon); --s-on-accent: var(--b1); --s-strong: var(--bon); --s-on-strong: var(--b1);
  --field: var(--b1); --sk: var(--bon);
}
.block--alt { --b1: var(--bw-role-alt); --b2: var(--bw-role-alt-end); --bon: var(--bw-role-on-alt); }
.block :is(h1, h2, h3, p, li, a, span, b, em, dt, dd) { color: inherit; }
.block .btn--primary { background: var(--bon); color: var(--b1); }
.block .btn--primary:hover { background: var(--bon); color: var(--b1); opacity: .88; }
.block-tag { display: block; margin: 0 0 14px; font: 700 11px/1.2 var(--s-sans); letter-spacing: .24em; text-transform: uppercase; }



/* ── polish ──────────────────────────────────────────────────────────────
   The legal pages open with a real title, not a caption-sized one; a clause
   number gets air between it and its heading; links and focus read the same
   way everywhere. */
.legal .hero .display--md { font-size: clamp(44px, 6.2vw, 84px); line-height: .98; letter-spacing: -.05em; }
.legal .hero { padding-bottom: clamp(28px, 5vh, 48px); }
.legal .hero .lede { font-size: 17px; max-width: 34em; }
.clause .num + h2 { margin-top: 20px !important; }
body.site main a:not(.btn):not(.site-nav a) { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
body.site main a:not(.btn):hover { text-decoration-thickness: 2.5px; }
body.site .tl--lg { font-size: clamp(13px, 1.3vw, 15px); letter-spacing: .3em; }
.site-nav .nl-short { display: none; }
@media (max-width: 480px) { .site-nav .nl-long { display: none; } .site-nav .nl-short { display: inline; } }

/* ── ribbon page (Pricing) ───────────────────────────────────────────────
   The whole page sits on the thick ribbons, which keep drifting behind it;
   the content is carried on solid page-colour panes with a drawn edge, and
   the ribbons show in the gutters and between the panes. */
body.ribbon-page > .mtn-bg, body.ribbon-page > .mtn-sky { display: block !important; position: fixed !important; inset: 0 !important; z-index: 0 !important; pointer-events: none; }
body.ribbon-page > .mtn-sky { background: var(--field) !important; }
/* the ribbons keep their colours but go half-transparent; the panes stay
   solid */
body.ribbon-page > .mtn-bg { --mtn-alpha: .5; }
body.ribbon-page > .mtn-sky::before, body.ribbon-page > .mtn-sky::after { content: none !important; display: none !important; }
body.ribbon-page .site-main { padding-top: clamp(28px, 6vh, 64px); padding-bottom: clamp(64px, 14vh, 160px); }
body.ribbon-page .pane { position: relative; background: var(--field); border: 1.5px solid var(--s-line); border-radius: clamp(26px, 3vw, 40px);
  padding: clamp(26px, 4.4vw, 64px) clamp(20px, 4.4vw, 64px); }
body.ribbon-page .pane + .pane { margin-top: clamp(80px, 18vh, 200px); }
body.ribbon-page .pane--top .hero { padding-top: 0; }
body.ribbon-page .pane.section { margin-top: clamp(80px, 18vh, 200px); }
body.ribbon-page .site-foot { position: relative; z-index: 2; background: var(--field); }
@media (max-width: 760px) { body.ribbon-page .site-main { padding-left: 12px; padding-right: 12px; } body.ribbon-page .pane + .pane, body.ribbon-page .pane.section { margin-top: 56px; } }
