/* Albab public site, redesigned 11 October 2026. Brand colours from
   docs/BRAND.md. Two self-hosted fonts (site/fonts/, OFL): Young Serif for
   headings, Hanken Grotesk for text. The site's CSP allows fonts from this
   origin only, and no other external files. */
@font-face {
  font-family: "Young Serif"; src: url("/fonts/young-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --evergreen: #396B52;
  --evergreen-deep: #2E5743;
  --evergreen-pale: #E3EDE7;
  /* Pumpkin (owner, 18 November 2026): calls to action and prices on the
     public site only; prices appear on the pricing page alone (owner,
     23 November 2026). Buttons fill with --pumpkin and carry ink text (6.2:1;
     white would be 3.0:1). Price text uses --pumpkin-deep on light surfaces
     (5.1:1 or more, measured on the hero gradient) and --pumpkin-light on
     the dark green end section (4.8:1 or more where the price sits). */
  --pumpkin: #F56D07;
  --pumpkin-deep: #9E4500;
  --pumpkin-light: #FFC799;
  --sandstone: #D9C7BB;
  --sandstone-pale: #EFE6DF;
  --silver: #F5F5F5;
  --limestone: #E6E3DC;
  --pewter: #B4A79E;
  --paper: #F7F6F3;
  --ink: #141414;
  --muted: #655F59;
  --line: #E1DDD6;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --text: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--pewter) var(--silver); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--text); overflow-wrap: break-word;
  caret-color: var(--evergreen);
}
::selection { background: var(--sandstone); color: var(--ink); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

a { color: var(--evergreen); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--evergreen-deep); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, main:focus-visible { outline: 2px solid var(--evergreen); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 5; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 0; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font: 650 1.08rem/1.35 var(--text); margin: 0 0 6px; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 0 0 14px; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: #2A2724; max-width: 60ch; }
.muted { color: var(--muted); }
small { font-size: 0.86rem; }
code { font-size: 0.9em; background: var(--limestone); padding: 1px 5px; border-radius: 4px; }

/* Header */
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 18px; padding-bottom: 18px; }
.brand { color: var(--muted); text-decoration: none; display: inline-flex; flex-direction: column; gap: 5px; }
.brand img { display: block; width: 142px; height: 20px; }
.brand small { font: 500 9px/1 var(--text); letter-spacing: 0.35em; text-transform: uppercase; }
/* The tagline spans the wordmark exactly (owner, 15 October): justified to
   its width, with the last letter's spacing hanging past the edge. */
.brand small { display: block; width: calc(100% + 0.35em); margin-right: -0.35em; text-align: justify; text-align-last: justify; white-space: nowrap; }
.brand:hover small { color: var(--evergreen); }
nav.top-nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 15px; }
nav.top-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 4px 0; }
nav.top-nav a:not(.btn):hover { color: var(--evergreen); }
nav.top-nav a[aria-current="page"] { color: var(--evergreen); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border: 1px solid var(--pumpkin); border-radius: 999px;
  background: var(--pumpkin); color: var(--ink); font: 600 16px/1 var(--text); letter-spacing: 0.01em;
  cursor: pointer; text-decoration: none; transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn.small { padding: 10px 16px; font-size: 15px; }
.btn.secondary { background: #fff; border-color: var(--evergreen); color: var(--evergreen); }
.btn.secondary:hover { background: var(--evergreen-pale); border-color: var(--evergreen); color: var(--evergreen-deep); }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 28px 0 0; }
.cta small { color: var(--muted); max-width: 46ch; line-height: 1.5; }
.cta .btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px 0 30px; transition: background-color .6s var(--ease), border-color .6s var(--ease); }
.cta .btn::after, .h-btn::after { content: ""; width: 8px; height: 8px; margin-left: 12px; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); transition: transform .5s var(--ease); }
.cta .btn:hover::after, .h-btn:hover::after { transform: translateX(4px) rotate(45deg); }

/* Home sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(28px, 6vw, 96px); }
.split-head p { color: var(--muted); max-width: 34ch; }


dl.rows { margin: 0; }
dl.rows div { padding: 22px 0; border-top: 1px solid var(--line); }
dl.rows div:first-child { border-top: 0; padding-top: 4px; }
dl.rows dt { font: 400 1.22rem/1.3 var(--display); }
dl.rows dd { margin: 8px 0 0; color: #3A3632; max-width: 60ch; }

/* Reading pages: a calm column under a title; the long privacy page gets a
   contents list beside it on wide screens. */
.doc { max-width: 780px; padding-bottom: clamp(56px, 8vw, 104px); }
/* The title sits in a small morning scene, as the home page's first one
   (14 November): the same sky, a hill and one lit door, drawn in CSS. */
.doc-head { position: relative; isolation: isolate; overflow: hidden; margin: 12px 0 28px; padding: clamp(40px, 6vw, 72px) clamp(22px, 4vw, 52px) clamp(44px, 6vw, 76px); border-radius: 28px; background: linear-gradient(180deg, #FBFAF8 0%, #F6F0EA 40%, #EFE3D8 78%, #EADBCE 100%); }
.doc-head::before { content: ""; position: absolute; z-index: -1; right: -12%; bottom: -92px; width: 62%; height: 150px; border-radius: 50%; background: linear-gradient(180deg, #5B8870, #2E5743 60%); }
.doc-head::after { content: ""; position: absolute; z-index: -1; right: clamp(28px, 9%, 96px); bottom: 34px; width: 50px; height: 84px; border-radius: 999px 999px 0 0; background: linear-gradient(90deg, #2E5743 0 26%, transparent 26%), radial-gradient(120% 90% at 50% 100%, #FFFDF8 0%, #FBEEDD 55%, #F1DEC9 100%); box-shadow: inset 0 0 0 1.5px var(--evergreen-deep), 0 0 44px 6px rgba(255, 241, 220, .85); }
.doc-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); letter-spacing: -.02em; max-width: 18ch; }
.doc-head > * { max-width: min(60ch, 100%); }
/* Wider than a phone, the door stands beside the words: they keep clear of
   it and of the hill (code review, 17 November). */
@media (min-width: 601px) {
  .doc-head { padding-bottom: 88px; }
  .doc-head > * { max-width: min(60ch, 100% - 130px); }
  .doc-head h1 { max-width: min(18ch, 100% - 130px); }
}
.doc-head .lede { margin-bottom: 0; }
.doc-head .muted { margin: 14px 0 0; }
.doc-body { max-width: 68ch; }
.doc-body h2 { margin: 52px 0 12px; font-size: clamp(1.45rem, 2.4vw, 1.8rem); scroll-margin-top: 24px; }
.doc-body h3 { margin-top: 24px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body .cta { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

.toc { margin: 28px 0 0; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.toc p { margin: 0 0 8px; font-weight: 600; font-size: 0.92rem; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 32px; font-size: 0.92rem; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration-color: var(--pewter); }
.toc a:hover { color: var(--evergreen); }

@media (min-width: 1000px) {
  .doc.has-toc { max-width: 1120px; display: grid; grid-template-columns: 220px minmax(0, 68ch); column-gap: 72px; }
  .doc.has-toc .doc-head { grid-column: 1 / -1; }
  .doc.has-toc .toc { grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: 24px; margin-top: 52px; padding: 0; background: none; border: 0; }
  .doc.has-toc .toc ol { columns: auto; padding: 0; list-style: none; border-left: 1px solid var(--line); }
  .doc.has-toc .toc li { padding-left: 16px; margin-bottom: 8px; }
  .doc.has-toc .doc-body { grid-column: 2; }
}

dl.facts { margin: 0; }
dl.facts div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
dl.facts div:first-child { border-top: 0; }
dl.facts dt { font-weight: 600; margin: 0; }
dl.facts dd { margin: 0; color: var(--muted); }

.notice { background: var(--sandstone-pale); border-radius: 16px; padding: 18px 22px; margin: 32px 0; }
.notice p:last-child { margin-bottom: 0; }

/* Footer */
footer.bottom { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.9rem; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
footer.bottom nav a { color: var(--ink); }
footer.bottom p { margin: 0; max-width: 72ch; }
footer.bottom .ph-badge { display: inline-block; margin-bottom: 16px; }
footer.bottom .ph-badge img { display: block; width: 250px; height: 54px; }
footer.bottom .reg { margin-top: 10px; font-size: 0.8125rem; }

/* The cookie choice bar: fixed to the bottom, shown by cookie.js only until
   the visitor answers. */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 4; max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px;
  background: var(--ink); color: #EDEAE6; border-radius: 10px; font-size: 0.92rem;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 280px; }
.cookie a { color: #fff; }
.cookie-actions { display: flex; gap: 8px; }
/* Reject and Accept look exactly the same: neither answer is nudged. */
.cookie .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cookie .btn:hover { background: var(--limestone); border-color: #fff; color: var(--ink); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-head p { max-width: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* The door stands under the words, never behind them. */
  .doc-head { padding-bottom: 132px; border-radius: 22px; }
  /* The wordmark and the button share one line; the links take one row
     under them, and scroll sideways on the narrowest screens. */
  header.top .wrap { position: relative; gap: 8px; padding-top: 14px; padding-bottom: 8px; }
  nav.top-nav { margin-left: 0; width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0 14px; font-size: 14.5px; overflow-x: auto; scrollbar-width: none; }
  nav.top-nav a:not(.btn) { white-space: nowrap; padding: 9px 0; }
  /* The row scrolls, so it clips: the focus ring is drawn inside the link. */
  nav.top-nav a:not(.btn):focus-visible { outline-offset: -2px; }
  nav.top-nav .btn { position: absolute; top: 10px; right: var(--gutter); padding: 9px 14px; font-size: 14px; }
  dl.facts div { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  /* The button must not touch the wordmark, and the links fit the row. */
  nav.top-nav { gap: 0 8px; }
  nav.top-nav .btn { padding: 8px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .cta .btn, .cta .btn::after { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .doc-head > * { animation: s-lift 1s var(--ease) backwards; }
  .doc-head > :nth-child(2) { animation-delay: .12s; }
  .doc-head > :nth-child(3) { animation-delay: .22s; }
  .doc-head > :nth-child(n+4) { animation-delay: .3s; }
}

/* Home, redesigned 14 November 2026 (owner: improve the site, keep the
   colours, be creative). The page is a wall of rounded scenes on paper. The first is a morning
   landscape: a pale road runs from door 1 through doors 2 and 3 to the light
   on the horizon, from idea to market. Each door then has its own room,
   where the door opens as you scroll and a picture from the app of what is
   behind it comes out. Pure CSS and inline SVG: the site may load no script but
   cookie.js, no inline style, and nothing from another origin. Without
   scroll-driven animations, or with reduced motion, every door stands open,
   everything is in place and nothing moves. Colours are the brand's
   (docs/BRAND.md) and tints of them. */
.home { --stone: #EFECE6; --hair: #CFC8BE; --open: -68deg; }
.home .section { border-color: var(--stone); }

.h-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0; }
.h-cta small { max-width: 46ch; line-height: 1.6; color: var(--muted); }
.h-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px 0 30px; border-radius: 999px; background: var(--pumpkin); color: var(--ink); font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; transition: background-color .6s var(--ease); }
.h-btn:hover { background: var(--ink); color: var(--paper); }

/* The first scene. --land is the height of the landscape, --bar of the row
   of door names under it; each door stands at --x across and --y up the
   land, --w wide. */
.s-hero { padding: 0 12px; }
.s-stage { --land: clamp(230px, 33vh, 320px); --bar: 64px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: min(820px, calc(100vh - 92px)); border-radius: 28px; background: linear-gradient(180deg, #FBFAF8 0%, #F6F0EA 36%, #EFE3D8 66%, #EADBCE 100%); }
.s-copy { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; padding: clamp(32px, 5vh, 52px) var(--gutter) 0; margin-bottom: -36px; }
.s-hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.7rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 clamp(16px, 2.2vw, 26px); }
.s-hero h1 span { display: block; }
.s-hero h1 em { font-style: normal; color: var(--evergreen); }
.s-lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.65; max-width: 64ch; color: #4A4540; margin: 0 0 24px; }
.s-copy .h-cta { flex-direction: column; gap: 14px; }
.s-copy .h-cta small { max-width: 64ch; }

.s-land { position: relative; height: var(--land); margin-top: auto; pointer-events: none; }
.s-hills { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* The sun is an element of its own, behind the hills, so its slow breath
   runs on the compositor (performance review, 17 November). */
.s-sun { position: absolute; left: 72.6%; top: 36%; width: clamp(190px, 25vw, 360px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #FFFBF5 0%, rgba(246, 231, 216, .95) 22%, rgba(234, 220, 207, 0) 68%); }
.s-mist { position: absolute; left: -12%; right: -12%; height: 24%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 70%); filter: blur(14px); }
.s-mist-1 { top: 34%; }
.s-mist-2 { top: 58%; opacity: .6; }
.s-mote { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #FFF6EA; box-shadow: 0 0 10px 2px rgba(255, 240, 220, .9); opacity: 0; }
.s-mote:nth-last-child(1) { left: 22%; top: 46%; }
.s-mote:nth-last-child(2) { left: 41%; top: 30%; }
.s-mote:nth-last-child(3) { left: 63%; top: 38%; }
.s-mote:nth-last-child(4) { left: 79%; top: 22%; }
.s-mote:nth-last-child(5) { left: 88%; top: 52%; }

.s-doors { list-style: none; margin: 0; padding: 0 clamp(12px, 4vw, 48px); min-height: var(--bar); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; background: var(--evergreen-deep); }
.s-doors a { display: block; color: var(--paper); text-decoration: none; }
.s-doors a:focus-visible { outline: none; }
.s-label { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 6px 14px; border-radius: 999px; font-weight: 550; font-size: .95rem; letter-spacing: .01em; line-height: 1.25; transition: background-color .5s var(--ease); }
.s-label b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(247, 246, 243, .55); font: 400 .85rem/1 var(--display); }
.s-doors a:hover .s-label { background: rgba(255, 255, 255, .12); }
.s-doors a:focus-visible .s-label { outline: 2px solid var(--paper); outline-offset: 2px; }
.s-arch { position: absolute; left: var(--x); bottom: calc(var(--bar) + var(--land) * var(--y)); width: var(--w); aspect-ratio: 3 / 5; border-radius: 999px 999px 0 0; perspective: 900px; container-type: inline-size; }
/* No door is taller than the land behind it, so none reaches the words. */
.s-doors li:nth-child(1) .s-arch { --x: 27%; --y: .12; --w: max(64px, min(10.4vw, 142px, (var(--land) * .88 - 44px) * .6)); --a: -74deg; }
.s-doors li:nth-child(2) .s-arch { --x: 55.6%; --y: .31; --w: max(46px, min(6.8vw, 94px, (var(--land) * .69 - 44px) * .6)); --a: -68deg; }
.s-doors li:nth-child(3) .s-arch { --x: 70.6%; --y: .53; --w: max(30px, min(4.4vw, 60px, (var(--land) * .47 - 44px) * .6)); --a: -62deg; }
.s-arch::after { content: ""; position: absolute; left: -12%; right: -70%; top: 100%; height: 17%; background: linear-gradient(180deg, rgba(255, 244, 226, .85), rgba(255, 244, 226, 0)); clip-path: polygon(12% 0, 60% 0, 100% 100%, 0 100%); filter: blur(2px); }
.s-glow { position: absolute; inset: 0; border-radius: inherit; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 100%, #FFFDF8 0%, #FBEEDD 55%, #F1DEC9 100%); box-shadow: inset 0 0 0 1.5px var(--evergreen-deep), 0 0 46px 6px rgba(255, 241, 220, .8); padding-left: 22%; font: 400 1.6rem/1 var(--display); font-size: 42cqw; color: var(--evergreen); }
.s-leaf { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--evergreen-deep), var(--evergreen)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transform-origin: left center; transform: rotateY(var(--a)); transition: transform 1.1s var(--ease); }
.s-doors a:hover .s-leaf, .s-doors a:focus-visible .s-leaf { transform: rotateY(-86deg); }

/* What Albab covers, passing slowly. */
.s-ticker { display: flex; align-items: center; gap: 4px; padding: 12px 12px 8px 0; }
.s-ticker-view { order: 1; flex: 1; min-width: 0; overflow: hidden; padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* Anyone can stop the passing line: a checkbox drawn as a pause button, no
   script (code review, 17 November; WCAG 2.2.2). */
.s-pause, .s-pause + label span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.s-pause + label { order: 2; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); color: var(--evergreen-deep); cursor: pointer; transition: box-shadow .4s var(--ease); }
.s-pause + label:hover { box-shadow: inset 0 0 0 1px var(--evergreen); }
.s-pause + label::before { content: ""; width: 10px; height: 12px; border-left: 3px solid; border-right: 3px solid; }
.s-pause:checked + label::before { width: 11px; margin-left: 3px; border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.s-pause:focus-visible + label { outline: 2px solid var(--evergreen); outline-offset: 2px; }
.s-ticker-track { display: flex; width: max-content; }
.s-ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.s-ticker li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 400 clamp(1.05rem, 1.6vw, 1.3rem)/1.2 var(--display); white-space: nowrap; }
.s-ticker li::after { content: ""; width: 8px; height: 13px; border-radius: 999px 999px 0 0; background: var(--evergreen); }

/* Four true numbers. */
.s-facts { padding: clamp(36px, 5vw, 72px) 0 clamp(8px, 2vw, 24px); }
.s-facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s-facts li { display: grid; align-content: start; gap: 10px; padding: 4px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--hair); }
.s-facts li:first-child { border-left: 0; padding-left: 0; }
.s-facts b { font: 400 clamp(3rem, 6.4vw, 5.4rem)/.95 var(--display); letter-spacing: -.03em; color: var(--evergreen); font-variant-numeric: lining-nums; }
.s-facts span { color: var(--muted); max-width: 22ch; line-height: 1.45; }
.s-facts span a { white-space: nowrap; }

/* Three doors. One system. (owner, 3 November): a quiet line before door 1. */
.h-promise { text-align: center; }
.h-system { padding: clamp(72px, 9vw, 130px) 0; }
.h-promise .h-system-line { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; max-width: 16ch; margin: 0 auto; color: var(--ink); }
.h-promise .h-system-line span { color: var(--evergreen); display: block; }

/* Each door has its own room, a rounded scene with its own ground; the
   door's leaf is painted the same. */
.h-room { --room: var(--stone); --fg: var(--ink); --sub: #2A2724; --rule: var(--hair); --accent: var(--evergreen); --frame: var(--evergreen); --lit: var(--sandstone-pale); --quiet: var(--muted); margin: 0 12px 12px; padding: clamp(64px, 9vw, 128px) 0; border-radius: 28px; background: var(--room); color: var(--fg); overflow: clip; }
/* The two evening scenes: door 2's room and the last one. */
.r-2, .s-end-stage { --room: var(--evergreen-deep); --frame: #E6D5C6; --lit: #FBF1E4; --quiet: #C7D5CC; }
.r-2 { --fg: var(--paper); --sub: #E4ECE6; --rule: rgba(247, 246, 243, .22); --accent: #E6D5C6; }
.r-3 { --room: var(--sandstone-pale); --rule: #D9CBBE; }
/* Three rooms, three layouts (21 November 2026): door 1 has its picture on
   the left, door 2 on the right (.r-flip), and door 3 stacks its steps in
   three columns over a wide picture (.r-stack). */
.h-room > .wrap { max-width: 1280px; }
.h-room-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.h-room-copy { min-width: 0; }
.h-room h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 16px; }
.h-q { font: 400 clamp(1.15rem, 1.8vw, 1.45rem)/1.4 var(--display); color: var(--accent); margin: 0 0 36px; }
.h-list { list-style: none; margin: 0 0 32px; padding: 0; max-width: 50ch; border-top: 1px solid var(--rule); counter-reset: h; }
.h-list li { display: grid; grid-template-columns: 2.6em 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: clamp(1rem, 1.2vw, 1.08rem); line-height: 1.6; color: var(--sub); }
.h-list li::before { counter-increment: h; content: counter(h, decimal-leading-zero); font: 400 .95em/1.6 var(--display); color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.h-note { font-size: .9rem; line-height: 1.6; color: var(--quiet); max-width: 50ch; margin: 0; }
.r-stack .h-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); max-width: none; margin-bottom: 0; }
.r-stack .h-list li { display: block; padding: 18px 0 0; border-bottom: 0; }
.r-stack .h-list li::before { display: block; margin-bottom: 4px; }
.r-stack .h-note { margin-top: 28px; }

/* The door: an arched hairline frame, warm light inside with the door's
   number, and the leaf, hinged on the left, that opens slowly. Beside it,
   a picture from the app of what is behind the door. */
.r-scene { position: relative; display: flex; align-items: flex-end; min-width: 0; min-height: clamp(380px, 34vw, 470px); }
.r-stack .r-scene { min-height: 0; margin-top: clamp(36px, 5vw, 64px); }
.r-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px solid var(--rule); }
.h-door { position: relative; width: clamp(160px, 17vw, 210px); aspect-ratio: 3 / 5; border-radius: 999px 999px 0 0; perspective: 2200px; }
.r-scene .h-door { position: absolute; left: 0; bottom: 0; }
.h-room-grid .h-door { width: clamp(120px, 12vw, 160px); }
.h-light { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(110% 80% at 50% 100%, #fff 0%, var(--lit) 62%); box-shadow: inset 0 0 0 1px var(--frame); display: grid; place-items: center; padding-left: 24%; overflow: hidden; }
.r-2 .h-light, .s-end .h-light { box-shadow: inset 0 0 0 1px var(--frame), 0 0 90px 12px rgba(251, 241, 228, .3); }
.h-num { font: 400 clamp(4rem, 7.4vw, 6.2rem)/1 var(--display); color: var(--evergreen); }
.h-room-grid .h-num { font-size: clamp(3rem, 5vw, 4.4rem); }
.h-leaf { position: absolute; inset: 0; border-radius: inherit; background: var(--room); box-shadow: inset 0 0 0 1px var(--frame), 18px 0 40px -24px rgba(20, 40, 30, .45); transform-origin: left center; transform: rotateY(var(--open)); }
.h-leaf b { position: absolute; right: 13%; top: 54%; width: 8px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--frame); }

/* The picture overlaps the door a little, so the door's number stays in
   view. Each is a real screen of the app (site/shots/). */
.r-shot { --lap: clamp(96px, 10vw, 134px); position: relative; flex: 1 1 auto; min-width: 0; margin: 28px 0 6% var(--lap); }
/* Door 2 is the mirror of door 1, where there is room for two columns. */
@media (min-width: 861px) {
  .r-flip .h-room-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .r-flip .r-scene { order: 2; }
  .r-flip .h-door { left: auto; right: 0; }
  .r-flip .r-shot { --from: 38%; margin: 28px var(--lap) 6% 0; }
}
.r-stack .r-shot { flex: 0 1 800px; margin: 0 0 4% 168px; }
.r-shot img { display: block; width: 100%; height: auto; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 20, 20, .08), 0 30px 60px -28px rgba(30, 60, 45, .5), 0 8px 18px -10px rgba(30, 60, 45, .22); }
.r-shot figcaption { margin-top: 12px; font-size: .84rem; line-height: 1.5; color: var(--quiet); }

/* Who it is for: four tinted cards, two wide and two narrow. The wide ones
   carry a door. */
.s-who h2, .s-tele h2, .s-learn h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 clamp(28px, 4vw, 48px); }
.s-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.s-cards li { position: relative; grid-column: span 5; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 30px 30px 32px; border-radius: 22px; overflow: hidden; transition: translate .6s var(--ease), box-shadow .6s var(--ease); }
.s-cards li:nth-child(1), .s-cards li:nth-child(4) { grid-column: span 7; }
.s-cards li:nth-child(1) { background: var(--evergreen-deep); color: var(--paper); }
.s-cards li:nth-child(2) { background: var(--sandstone-pale); }
.s-cards li:nth-child(3) { background: var(--evergreen-pale); }
.s-cards li:nth-child(4) { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.s-cards li:nth-child(1)::before, .s-cards li:nth-child(4)::before { content: ""; position: absolute; right: 36px; bottom: 0; width: 110px; height: 170px; border-radius: 999px 999px 0 0; }
.s-cards li:nth-child(1)::before { background: radial-gradient(110% 80% at 50% 100%, #fff 0%, #FBF1E4 62%); box-shadow: inset 0 0 0 1px #E6D5C6, 0 0 70px 8px rgba(251, 241, 228, .28); }
.s-cards li:nth-child(4)::before { background: var(--sandstone-pale); box-shadow: inset 0 0 0 1px var(--evergreen); }
.s-cards li:hover { translate: 0 -6px; box-shadow: 0 24px 40px -28px rgba(46, 87, 67, .55); }
.s-cards li:nth-child(4):hover { box-shadow: inset 0 0 0 1px var(--evergreen), 0 24px 40px -28px rgba(46, 87, 67, .55); }
.s-cards h3 { font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.15 var(--display); max-width: 14ch; margin: 0 0 8px; }
.s-cards p { max-width: 34ch; margin: 0; color: #3A3632; font-size: 1.02rem; line-height: 1.55; }
.s-cards li:nth-child(1) p { color: #E4ECE6; }

/* Telegram (owner, 21 November 2026): Monitoring alerts and post reminders,
   each with an example of the bot's message (deployment/telegram.mjs and
   telegram-watch.mjs hold the real wording). */
.s-tele h2 { max-width: 18ch; }
.s-tele h2 span, .s-learn h2 span { display: block; color: var(--evergreen); }
.s-tele-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.s-tele-grid li { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--evergreen-pale); }
.s-tele-grid li + li { background: var(--sandstone-pale); }
.s-tele-grid h3 { font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.15 var(--display); margin: 0 0 10px; }
.s-tele-grid li > p { max-width: 36ch; margin: 0 0 28px; color: #3A3632; line-height: 1.55; }
.s-msg { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; margin: auto 0 0; padding: 16px 18px 14px; border-radius: 18px; background: #FFFEFC; box-shadow: 0 0 0 1px rgba(20, 20, 20, .06), 0 24px 44px -28px rgba(30, 60, 45, .5); font-size: .95rem; line-height: 1.45; }
.s-msg img { display: block; width: 44px; height: 44px; border-radius: 50%; }
.s-msg p { margin: 0 0 4px; }
.s-msg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.s-msg-top small, .s-msg figcaption { color: var(--muted); font-size: .8rem; }
.s-msg figcaption { grid-column: 2; margin-top: 6px; }
.s-tele-note { margin: 24px 0 0; font-size: .9rem; color: var(--muted); }

/* Education (owner, 22 November 2026): the app's 100 lessons as 100 small
   doors, one for each lesson. The first 20 are green: free on every plan.
   Six are lit and named below as the app lists them (dist/learn.js holds
   every title and line). docs/BRAND.md says why it has no cards. */
.s-learn h2 { margin-bottom: 18px; }
.s-learn-lede { max-width: 52ch; margin: 0; color: #3A3632; font-size: 1.08rem; line-height: 1.6; }
.s-learn-doors { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: clamp(4px, .7vw, 10px); margin: clamp(36px, 5vw, 60px) 0 clamp(32px, 4.4vw, 52px); }
.s-learn-doors > * { display: grid; place-items: end center; aspect-ratio: 3 / 4; padding-bottom: 16%; border-radius: 999px 999px 0 0; background: var(--sandstone-pale); color: #6B625A; font: 500 clamp(.7rem, .95vw, .8rem)/1 var(--text); font-variant-numeric: lining-nums; }
.s-learn-doors > :nth-child(-n+20) { background: var(--evergreen); color: #fff; }
.s-learn-doors > b:nth-child(n) { background: radial-gradient(110% 80% at 50% 100%, #fff 0%, #FBF1E4 62%); color: var(--evergreen-deep); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--evergreen), 0 10px 22px -12px rgba(46, 87, 67, .55); }
.s-learn-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(24px, 5vw, 72px); }
.s-learn-groups > div { padding-top: 18px; border-top: 2px solid var(--evergreen); }
.s-learn-groups > div + div { border-color: var(--sandstone); }
.s-learn-groups h3 { font: 400 clamp(1.2rem, 1.8vw, 1.45rem)/1.25 var(--display); margin: 0 0 22px; }
.s-learn-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.s-learn-groups li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); row-gap: 3px; align-items: baseline; }
.s-learn-no { grid-row: span 2; font: 400 1.35rem/1 var(--display); color: var(--evergreen); font-variant-numeric: lining-nums tabular-nums; }
.s-learn-groups b { font-size: 1.04rem; font-weight: 600; line-height: 1.35; }
.s-learn-groups b + span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.s-learn-groups p { margin: 22px 0 0; font-size: .95rem; }

/* The last scene: evening, and the first door wide open. */
.s-end { padding: 0 12px 12px; }
.s-end-stage { position: relative; overflow: clip; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px; padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 88px) 0; border-radius: 28px; background: radial-gradient(90% 120% at 78% 100%, #3B7058 0%, #2E5743 55%, #264A39 100%); color: var(--paper); }
.s-end-copy { padding-bottom: clamp(56px, 8vw, 120px); }
.s-end h2 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 36px; }
.s-end .h-btn:hover { background: var(--paper); color: var(--ink); }
.s-end .h-cta small { color: var(--quiet); }
.s-end .h-cta a:not(.h-btn) { color: var(--paper); }
.s-end a:focus-visible { outline-color: var(--paper); }
.s-end-door { position: relative; justify-self: center; padding-bottom: 76px; }
.s-end-door .h-door { width: clamp(180px, 22vw, 270px); }
.s-beam { position: absolute; left: -45%; right: -45%; bottom: 0; height: 76px; background: linear-gradient(180deg, rgba(251, 241, 228, .6), rgba(251, 241, 228, 0)); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); filter: blur(5px); }

/* Motion. On load the first scene arrives: the words rise, the hills settle,
   the light comes up and the doors open. Then only the mist, the light and
   the passing words move. */
@media (prefers-reduced-motion: no-preference) {
  .s-copy .h-cta, .s-arch { animation: s-rise 1.1s var(--ease) backwards; }
  /* The largest words never start invisible: they only rise, so the page's
     largest paint is not held back (performance review, 17 November). */
  .s-hero h1 span, .s-lede { animation: s-lift 1.1s var(--ease) backwards; }
  .s-hero h1 span:nth-child(1) { animation-delay: .1s; }
  .s-hero h1 span:nth-child(2) { animation-delay: .22s; }
  .s-lede { animation-delay: .38s; }
  .s-copy .h-cta { animation-delay: .5s; }
  .s-ridge, .s-road { animation: s-settle 1.5s var(--ease) backwards; }
  .s-ridge-2 { animation-delay: .12s; }
  .s-ridge-3 { animation-delay: .24s; }
  .s-ridge-4 { animation-delay: .36s; }
  .s-road { animation-delay: .7s; }
  .s-sun { animation: s-dawn 2.6s var(--ease) .3s backwards, s-breathe 9s ease-in-out 3s infinite alternate; }
  .s-doors li:nth-child(1) .s-arch { animation-delay: .75s; }
  .s-doors li:nth-child(2) .s-arch { animation-delay: .9s; }
  .s-doors li:nth-child(3) .s-arch { animation-delay: 1.05s; }
  .s-leaf { animation: s-swing 1.8s var(--ease) 1.25s backwards; }
  .s-mist-1 { animation: s-drift 46s ease-in-out infinite alternate; }
  .s-mist-2 { animation: s-drift 64s ease-in-out infinite alternate-reverse; }
  .s-mote { animation: s-float 10s ease-in-out infinite; }
  .s-mote:nth-last-child(2) { animation-delay: 2.2s; }
  .s-mote:nth-last-child(3) { animation-delay: 4.1s; }
  .s-mote:nth-last-child(4) { animation-delay: 6.3s; }
  .s-mote:nth-last-child(5) { animation-delay: 7.7s; }
  .s-ticker-track { animation: s-marquee 70s linear infinite; }
  .s-ticker-view:hover .s-ticker-track, .s-pause:checked ~ .s-ticker-view .s-ticker-track { animation-play-state: paused; }
  /* As you scroll: each door opens and its picture comes out. */
  @supports (animation-timeline: view()) {
    .h-room .h-leaf, .s-end .h-leaf { animation: h-open linear both; animation-timeline: view(); animation-range: entry 35% cover 50%; }
    /* The picture is whole by the time all of it is on screen. */
    .r-shot { animation: r-out linear both; animation-timeline: view(); animation-range: entry 10% entry 100%; }
    .h-room-copy, .s-cards li, .s-tele-grid li, .s-learn-doors, .s-learn-groups > div, .s-facts li { animation: h-rise linear both; animation-timeline: view(); animation-range: entry 5% entry 80%; }
  }
}
@keyframes s-rise { from { transform: translateY(26px); opacity: 0; } }
@keyframes s-lift { from { transform: translateY(26px); } }
@keyframes s-settle { from { transform: translateY(46px); opacity: 0; } }
@keyframes s-dawn { from { transform: translateY(60px) scale(.8); opacity: 0; } }
@keyframes s-breathe { to { transform: scale(1.08); } }
@keyframes s-swing { from { transform: rotateY(0deg); } }
@keyframes s-drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }
@keyframes s-float { 0%, 100% { transform: translateY(12px); opacity: 0; } 50% { transform: translateY(-12px); opacity: .9; } }
@keyframes s-marquee { to { transform: translateX(-50%); } }
@keyframes h-open { from { transform: rotateY(0deg); } to { transform: rotateY(var(--open)); } }
@keyframes h-rise { from { transform: translateY(18px); opacity: .7; } to { transform: none; opacity: 1; } }
@keyframes r-out { from { transform: translateX(var(--from, -38%)) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
/* On paper nothing scrolls: every door is open and every picture is out. */
@media print {
  .h-leaf, .r-shot, .h-room-copy, .s-cards li, .s-tele-grid li, .s-learn-doors, .s-learn-groups > div, .s-facts li { animation: none; }
}
/* With reduced motion the passing words stand still: they wrap, once. */
@media (prefers-reduced-motion: reduce) {
  .h-btn, .h-btn::after, .s-label, .s-leaf, .s-cards li, .s-pause + label { transition: none; }
  .s-ticker { padding-left: var(--gutter); padding-right: var(--gutter); }
  .s-ticker-view { -webkit-mask-image: none; mask-image: none; }
  .s-pause, .s-pause + label { display: none; }
  .s-ticker-track { width: auto; }
  .s-ticker ul { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .s-ticker ul[aria-hidden] { display: none; }
}

@media (max-width: 980px) {
  /* Two even columns, and no doors: the words need the room. */
  .s-cards li:nth-child(n) { grid-column: span 6; }
  .s-cards li::before { display: none; }
}
@media (max-width: 860px) {
  .s-hero, .s-end { padding-left: 8px; padding-right: 8px; }
  .h-room { margin-left: 8px; margin-right: 8px; border-radius: 22px; }
  .s-stage { --land: 220px; --bar: 172px; min-height: 0; border-radius: 22px; }
  .s-doors { grid-template-columns: 1fr; gap: 0; padding: 8px 12px; }
  .s-label { justify-content: flex-start; min-height: 52px; }
  .s-doors li:nth-child(1) .s-arch { --x: 13%; }
  .s-doors li:nth-child(2) .s-arch { --x: 50%; }
  .s-doors li:nth-child(3) .s-arch { --x: 72%; }
  .s-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .s-facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .h-room-grid, .r-stack .h-list, .s-tele-grid { grid-template-columns: 1fr; }
  .r-scene { min-height: 0; margin-bottom: 8px; }
  .r-stack .h-door { width: 120px; }
  .r-stack .h-num { font-size: 3rem; }
  .r-shot, .r-stack .r-shot { margin: 0 0 6% 22%; }
  .s-end-stage { grid-template-columns: 1fr; border-radius: 22px; }
  .s-end-copy { padding-bottom: 8px; }
}
@media (max-width: 600px) {
  /* On a phone the door stands above its picture. Pictures 1 and 2 keep a
     readable size and run off the right edge; the calendar shows whole. */
  .r-scene { display: block; }
  .r-scene::after { display: none; }
  .r-scene .h-door { position: relative; width: 104px; }
  .h-room .h-num { font-size: 3rem; }
  .r-shot, .r-stack .r-shot { margin: -46px calc(-1 * var(--gutter)) 28px 26px; overflow: hidden; border-radius: 14px 0 0 14px; box-shadow: 0 0 0 1px rgba(20, 20, 20, .08), 0 24px 48px -28px rgba(30, 60, 45, .5); }
  .r-stack .r-shot { margin-left: 0; margin-right: 0; border-radius: 14px; }
  .r-shot img { width: 620px; max-width: none; border-radius: 0; box-shadow: none; }
  .r-stack .r-shot img { width: 100%; }
  .r-shot figcaption { margin: 0; padding: 10px 12px 12px; background: #fff; color: var(--muted); }
  .s-cards li:nth-child(n) { grid-column: 1 / -1; min-height: 170px; }
  /* Ten doors to a row: the first two rows are the free lessons. */
  .s-learn-doors { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .s-learn-groups { grid-template-columns: 1fr; }
}

/* Pricing (owner, 11 November 2026): the plan cards as the app draws them
   (dist/style.css .plan-pick): ONLY $x.xx /day in large type, the price a
   month or a year under it, Studio picked with a tick. Monthly or annually
   is a CSS-only switch (two radio buttons, no script, no form); a browser
   without :has() shows both prices. */
.doc-wide { max-width: 1120px; }
.pricing { margin-top: 36px; }
.billing-switch { flex-wrap: wrap; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.billing-switch input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.billing-switch label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background-color 150ms ease-out, color 150ms ease-out; }
.billing-switch input:checked + label { background: var(--evergreen); color: #fff; }
.billing-switch input:focus-visible + label { outline: 2px solid var(--evergreen); outline-offset: 2px; }
.free-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--evergreen); color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.4; }
.billing-switch input:checked + label .free-tag { background: #fff; color: var(--evergreen-deep); }
.plans { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 22px 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(29, 26, 23, 0.05); font-size: 0.95rem; line-height: 1.45; }
.plan-pick { border-color: var(--evergreen); box-shadow: inset 0 0 0 1px var(--evergreen), 0 6px 18px rgba(57, 107, 82, 0.12); background: linear-gradient(var(--evergreen-pale), #fff 70%); }
.plan .plan-name { font: 700 0.9rem/1.3 var(--text); letter-spacing: 0; color: var(--evergreen-deep); margin: 0 0 4px; }
.plan-pick .plan-name::after { content: ""; display: inline-block; width: 9px; height: 5px; margin: 0 0 3px 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin: 0; color: var(--ink); }
.plan-price b, .plan-day { color: var(--pumpkin-deep); }
.plan-price b { font: 400 2.5rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.plan-price small { font-size: 0.85rem; color: var(--muted); }
.plan-price .plan-only { align-self: center; margin-right: 6px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; color: var(--evergreen-deep); }
.plan-day { margin: 2px 0 0; font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-allowance { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-weight: 600; }
.plan-feats { list-style: none; margin: 6px 0 0; padding: 0; }
.plan-feats li { position: relative; padding: 4px 0 4px 22px; color: var(--ink); }
.plan-feats li::before { content: ""; position: absolute; left: 2px; top: 0.85em; width: 8px; height: 4px; border-left: 2px solid var(--evergreen); border-bottom: 2px solid var(--evergreen); transform: rotate(-45deg); }
/* Without :has() the switch stays hidden and both prices show; with it, the
   switch picks one. */
.billing-switch { display: none; }
.per-year::before { content: " · "; }
@supports selector(:has(*)) {
  .billing-switch { display: inline-flex; }
  .per-year::before { content: none; }
  .pricing:not(:has(#period-year:checked)) .per-year { display: none; }
  .pricing:has(#period-year:checked) .per-month { display: none; }
}
/* High Contrast drops backgrounds: the chosen side keeps the system colours. */
@media (forced-colors: active) {
  /* The doors lose their colours: an outline keeps each door a door, and the free ones heavier. */
  .s-learn-doors > * { border: 1px solid; }
  .s-learn-doors > :nth-child(-n+20) { border-width: 3px; }
  .billing-switch input:checked + label { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .billing-switch label { padding: 8px 12px; }
  .free-tag { font-size: 0.625rem; padding: 3px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .billing-switch label { transition: none; }
}
