/* Stint public site, docs and simple pages, 30 November 2026: the reference's dark aubergine stage by default (light on the toggle), one violet glow, the product captured. Tokens in tokens.css, the Floor in base.css. */

/* ---- Page ground: one violet glow behind the hero, as the reference (dark theme only; --glow-alpha is 0 in light) ---- */
body { position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0 -10% auto; height: 1100px; z-index: -1; pointer-events: none; opacity: var(--glow-alpha); background: radial-gradient(46% 42% at 50% 44%, var(--glow), transparent 70%); }

/* ---- Heads and leads ------------------------------------------------------------------------------------------- */
.lead { font-size: var(--text-md); line-height: 1.7; color: var(--text); max-width: 36rem; }
@media (min-width: 768px) { .lead { font-size: var(--text-lg); line-height: 1.6; } }
.lead a { color: var(--accent); font-weight: 500; }
.head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.head h2 { font-size: var(--text-h2); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.08; }
.head--center { justify-items: center; text-align: center; }
.head--center h2 { max-width: 20ch; }
.head--center .lead { margin-inline: auto; }
.head--left h2 { max-width: 18ch; }
.head--left .lead { max-width: 30rem; }
.head .btn { white-space: normal; text-align: center; line-height: 1.3; }
.kicker { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--accent); font-size: var(--text-sm); font-weight: 600; }
.more { margin-top: var(--space-xl); }
.more--center { display: flex; justify-content: center; }
main > section { position: relative; padding-block: var(--section-pad); }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* ---- Nav: a glass bar; links centred; the theme toggle and two actions on the right ---------------------------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); height: var(--nav-height); background: transparent; transition: background-color var(--dur-short) var(--ease), box-shadow var(--dur-short) var(--ease); }
.nav.is-scrolled { background: var(--glass-nav); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; height: var(--nav-height); gap: var(--space-xs); }
.nav__links { display: flex; align-items: center; flex: 1; gap: var(--space-2xs); }
.nav__links > a { display: inline-flex; align-items: center; height: 40px; padding: 0 var(--space-sm); border-radius: var(--r-lg); font-size: var(--text-sm); font-weight: 500; color: var(--text); text-decoration: none; transition: color var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease); }
.nav__links > a:first-child { margin-left: auto; }
.nav__links > a:hover, .nav__links > a[aria-current] { color: var(--ink); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: var(--space-xs); margin-left: auto; }
.nav__tools { display: flex; align-items: center; gap: var(--space-xs); margin-left: auto; }
.nav__menu { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.nav__menu:hover { border-color: var(--line-strong); }
.nav__menu svg { width: 22px; height: 22px; }
.nav__menu-close { display: none; }
.nav__menu[aria-expanded="true"] .nav__menu-open { display: none; }
.nav__menu[aria-expanded="true"] .nav__menu-close { display: block; }
@media (max-width: 899.98px) {
  .nav__menu { display: inline-flex; }
  .nav__tools { margin-left: auto; }
  .nav__links { display: none; position: fixed; inset: var(--nav-height) 0 0; height: calc(100dvh - var(--nav-height)); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-lg) var(--gutter); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
  .nav__links.is-open { display: flex; animation: fade-in var(--dur-short) var(--ease) both; }
  .nav__links > a { height: 56px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--text-md); font-weight: 600; color: var(--ink); }
  .nav__links > a:hover { background: transparent; }
  .nav__links > a:first-child { margin-left: 0; }
  .nav__actions { order: -1; flex-direction: column-reverse; align-items: stretch; gap: var(--space-xs); margin: 0 0 var(--space-md); }
  .nav__actions .btn { min-height: 48px; font-size: var(--text-md); }
  body.menu-open { overflow: hidden; }
}
@keyframes fade-in { from { opacity: 0; } }

/* ---- 1. Hero (the reference's): the pill, the head, one line and two actions, centred; then the product captured ---- */
.hero { position: relative; padding-block: var(--space-2xl) var(--space-xl) !important; text-align: center; }
.hero-shot { position: relative; overflow: clip; }
.hero__grid { display: grid; gap: var(--space-2xl); }
.hero__copy { display: grid; justify-items: center; gap: var(--space-lg); min-width: 0; }
.hero__title { font-size: var(--text-h1); font-weight: 700; line-height: 1.02; letter-spacing: var(--tracking-display); max-width: min(16ch, 1100px); }
.hero__lead { max-width: 40rem; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.hero__note { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs) var(--space-md); font-size: var(--text-sm); color: var(--text-subtle); }
.hero__note span { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.hero__note svg { width: 16px; height: 16px; color: var(--accent); }
/* The product captured (the reference shows its own app under the head): flat, cut at the section's foot. */
.shot { position: relative; margin: 0 auto; width: min(100%, 1180px); min-width: 0; }
.shot[data-slot] > img { position: static; inset: auto; height: auto; object-fit: initial; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: var(--r-2xl); box-shadow: var(--shadow-window); background: var(--surface); }
.hero-shot .shot { max-height: min(62vw, 640px); overflow: hidden; border-radius: var(--r-2xl) var(--r-2xl) 0 0; }
.hero-shot .shot img { border-bottom: 0; border-radius: var(--r-2xl) var(--r-2xl) 0 0; }
.shot figcaption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--text-subtle); text-align: center; }

/* The announcement pill: three agent logos and one line. */
.pill { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-sm) 0 var(--space-2xs); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font-size: var(--text-sm); font-weight: 500; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color var(--dur-short) var(--ease), transform var(--dur-short) var(--ease); }
.pill:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.pill .chev { width: 12px; height: 12px; color: var(--text-subtle); }
.pill__logos { display: flex; }
.pill__logos i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.pill__logos i + i { margin-left: calc(-1 * var(--space-xs)); }
.pill__logos img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.pill__short { display: none; }
@media (max-width: 400px) { .pill__long { display: none; } .pill__short { display: inline; } }

/* The rotor: the agent's logo tile and name in the head, swapped every 2.6s; its own line below 1024px. */
.rotor { display: inline-block; vertical-align: bottom; }
.rotor-in { display: inline-flex; align-items: center; gap: 0.16em; transition: opacity 350ms var(--ease), transform 450ms var(--ease-out), filter 350ms var(--ease); }
.js .rotor-in.out { opacity: 0; transform: translateY(-40%); filter: blur(4px); }
.js .rotor-in.pre { opacity: 0; transform: translateY(40%); filter: blur(4px); transition: none; }
.rotor-tile { display: inline-grid; place-items: center; flex: 0 0 0.9em; width: 0.9em; height: 0.9em; border-radius: 0.24em; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); transform: rotate(-5deg) translateY(0.03em); }
.rotor-logo { width: 0.6em; height: 0.6em; object-fit: contain; border-radius: 0.12em; }
.rotor-name { padding-right: 0.04em; padding-bottom: 0.06em; }
@media (max-width: 1023.98px) { .hero__title .rotor { display: block; } .hero__title br { display: none; } }

/* ---- Frames: a soft top rule that opens a section ------------------------------------------------------------- */
.frame::before { content: ''; position: absolute; top: 0; left: 50%; width: min(720px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---- 2. The agents ----------------------------------------------------------------------------------------------- */
.hosts { text-align: center; padding-block: var(--space-2xl) !important; }
.hosts__line { color: var(--text-subtle); font-weight: 500; max-width: 34rem; margin-inline: auto; }
.hosts__grid { list-style: none; margin: var(--space-xl) auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs); max-width: 1000px; }
.hosts__grid a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-md) 0 var(--space-xs); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); text-decoration: none; color: var(--ink); font-size: var(--text-sm); font-weight: 500; box-shadow: var(--shadow-sm); transition: transform var(--dur-short) var(--ease), border-color var(--dur-short) var(--ease); }
.hosts__grid a:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.hosts__plate { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.hosts__plate img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.hosts .more { display: flex; justify-content: center; }

/* ---- 3. The product: a second capture, flat ---------------------------------------------------------------------- */
.showcase .shot { margin-top: var(--space-2xl); }

/* Cards in the sample replies: the product's own card recipe (flat, bordered, as the app's rows). */
.card { display: grid; gap: var(--space-xs); padding: var(--space-sm); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.card--plate { padding: var(--space-md); font-size: var(--text-sm); }
.card__row { display: flex; align-items: flex-start; gap: var(--space-xs); min-width: 0; }
.card__row > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.card__row b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; } .card__row div span { color: var(--text-subtle); }
.card__tile, .tile--sm { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--select); color: var(--select-text); font-style: normal; font-weight: 600; font-size: var(--text-xs); }
:root[data-surface="marketing"][data-theme="dark"] .card__tile, :root[data-surface="marketing"][data-theme="dark"] .tile--sm { background: var(--surface-3); color: var(--ink); }
.card--plate .card__tile { width: 32px; height: 32px; }
.card__chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.card__state { display: flex; align-items: flex-start; gap: var(--space-2xs); font-weight: 500; color: var(--text); }
.card__state svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: var(--space-3xs); }
.card__state--ok { color: var(--ok-text); } .card__state--warn { color: var(--warn-text); } .card__state--err { color: var(--err-text); }

/* ---- 4. The method: five tab cards, a panel beneath ----------------------------------------------------------- */
.switcher { margin-top: var(--space-2xl); }
.tcards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: var(--space-sm); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-2xs) var(--space-2xs) var(--space-xs); }
@media (min-width: 1024px) { .tcards { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }
.tcard { position: relative; display: flex; align-items: center; gap: var(--space-sm); min-height: 72px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); scroll-snap-align: start; text-align: left; cursor: pointer; color: inherit; box-shadow: var(--shadow-sm); transition: border-color var(--dur-short) var(--ease), transform var(--dur-short) var(--ease), box-shadow var(--dur-short) var(--ease); }
.tcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tcard:active { transform: scale(.98); }
.tcard[aria-selected="true"] { border-color: transparent; box-shadow: 0 0 0 2px var(--brand-2), var(--shadow-card); }
.tcard b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); letter-spacing: -0.01em; color: var(--ink); }
.tcard small { display: none; font-size: var(--text-xs); color: var(--text-subtle); }
@media (min-width: 1024px) { .tcard small { display: block; } }
.tile { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-xl); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); transition: background var(--dur-short) var(--ease), color var(--dur-short) var(--ease); }
.tile svg { width: 20px; height: 20px; }
[aria-selected="true"] .tile { background: linear-gradient(140deg, var(--brand-1), var(--brand-3)); border-color: transparent; color: var(--white); }
.switcher .panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-xl); padding: 0; align-items: start; }
@media (min-width: 1024px) { .switcher .panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); } }
html:not(.js) .switcher .panel[hidden], html:not(.js) .hostcode .panel-code[hidden] { display: grid !important; }
html:not(.js) .tcards, html:not(.js) .hosttiles { display: none; }
.js .switcher .panel { animation: panel-in var(--dur-long) var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.panel__text { display: grid; gap: var(--space-md); }
.panel__text h3 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.panel__text > p { font-size: var(--text-sm); line-height: 1.65; max-width: 48ch; }
.facts { margin: var(--space-xs) 0 0; display: grid; }
.facts > div { display: grid; gap: var(--space-2xs); padding: var(--space-sm) 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-md); } }
.facts dt { font-weight: 600; font-size: var(--text-sm); color: var(--ink); } .facts dd { margin: 0; font-size: var(--text-sm); }
.steps { list-style: none; margin: var(--space-xs) 0 0; padding: 0; counter-reset: step; display: grid; }
.steps li { position: relative; display: grid; gap: var(--space-3xs); padding: var(--space-sm) 0 var(--space-sm) var(--space-xl); border-top: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: var(--space-sm); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.steps b { font-weight: 600; font-size: var(--text-sm); color: var(--ink); } .steps span { font-size: var(--text-sm); }
.sample { margin: 0; display: grid; gap: var(--space-xs); padding: 0 var(--space-sm) var(--space-sm); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface-2); overflow: hidden; min-width: 0; }
.sample__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); min-height: 48px; margin: 0 calc(-1 * var(--space-sm)); padding: var(--space-xs) var(--space-md); border-bottom: 1px solid var(--line); background: var(--surface); font-size: var(--text-xs); }
.sample__tool { font-family: var(--font-mono); color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.sample__bar .badge { margin-left: auto; }
.sample > .card:first-of-type { margin-top: var(--space-xs); }
.dots { display: inline-flex; gap: var(--space-xs); } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot-red); } .dots i:nth-child(2) { background: var(--dot-amber); } .dots i:nth-child(3) { background: var(--dot-green); }

/* ---- 5. Connect: host tiles over a code window; then two cards ------------------------------------------------- */
.hostcode { margin-top: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.codewin, .code, .panel-code { min-width: 0; }
.hosttiles { display: flex; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; }
@media (max-width: 767.98px) { .hosttiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hosttiles [role="tab"] { display: flex; align-items: center; gap: var(--space-sm); min-height: 56px; padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-xs); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); color: var(--text); font-size: var(--text-sm); font-weight: 500; cursor: pointer; text-align: left; transition: border-color var(--dur-short) var(--ease), color var(--dur-short) var(--ease), box-shadow var(--dur-short) var(--ease); }
.hosttiles [role="tab"]:hover { color: var(--ink); border-color: var(--line-strong); }
.hosttiles [role="tab"]:active { transform: scale(.98); }
.hosttiles [aria-selected="true"] { color: var(--ink); border-color: transparent; box-shadow: 0 0 0 2px var(--brand-2); }
.code { position: relative; border: 1px solid var(--code-line); border-radius: var(--r-2xl); background: var(--code-bg); overflow: hidden; box-shadow: var(--shadow-lift); }
.code__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); min-height: 52px; padding: var(--space-2xs) var(--space-xs) var(--space-2xs) var(--space-lg); border-bottom: 1px solid var(--code-line); background: var(--code-bar); font-size: var(--text-sm); font-weight: 500; color: var(--code-key); }
.code__bar button { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--code-line); border-radius: var(--r-lg); background: transparent; color: var(--code-text); font-size: var(--text-xs); font-weight: 500; cursor: pointer; transition: background-color var(--dur-micro) var(--ease); }
.code__bar button:hover { background: var(--code-line); }
.code__bar button:active { transform: scale(.98); }
.code__bar button:focus-visible { outline-color: var(--code-string); }
.code pre { margin: 0; padding: var(--space-lg); overflow-x: auto; font: 400 var(--text-sm)/1.65 var(--font-mono); color: var(--code-text); tab-size: 2; }
.code pre code { font-size: inherit; }
.tk-k { color: var(--code-key); font-weight: 500; } .tk-p { color: var(--code-punct); } .tk-s { color: var(--code-string); } .tk-c { color: var(--code-comment); font-style: italic; } .tk-key { color: var(--code-key); }
.connect .container + .container { margin-top: var(--section-pad); }
.duo { display: grid; gap: var(--space-lg); margin-top: var(--space-2xl); }
@media (min-width: 1024px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-o { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-3xl); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-card); }
.card-o__visual { display: grid; align-content: center; min-height: 300px; padding: var(--space-lg); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand-1) 28%, transparent), transparent 60%), radial-gradient(100% 90% at 100% 100%, color-mix(in srgb, var(--brand-3) 18%, transparent), transparent 60%), var(--surface-2); border-bottom: 1px solid var(--line); }
.card-o__text { display: grid; gap: var(--space-sm); padding: var(--space-lg); }
@media (min-width: 640px) { .card-o__text, .card-o__visual { padding: var(--space-xl); } }
.card-o__text h3 { font-size: var(--text-xl); font-weight: 600; }
.card-o__text p { font-size: var(--text-sm); line-height: 1.65; }
.card-o__more { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px; white-space: nowrap; font-size: var(--text-sm); font-weight: 600; color: var(--accent); text-decoration: none; }
.card-o__more:hover { text-decoration: underline; }
.card-o__more .chev, .softpill .chev { width: 12px; height: 12px; }
:not(pre) > code { font-family: var(--font-mono); font-size: 0.875em; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 var(--space-2xs); color: var(--ink); }
.ask { display: grid; gap: var(--space-sm); }
.ask__bar { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) var(--space-md); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-sm); }
.ask__input { flex: 1; color: var(--ink); font-size: var(--text-sm); font-weight: 500; }
.ask__bar .btn { border-radius: var(--r-full); min-height: 44px; }
.ask__log { margin: 0; min-height: 168px; padding: var(--space-md); border: 1px solid var(--code-line); border-radius: var(--r-xl); background: var(--code-bg); font: 400 var(--text-xs)/1.6 var(--font-mono); color: var(--code-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask__log .ln-in { display: block; animation: line-in var(--dur-short) var(--ease-out) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.feed li { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); font-size: var(--text-sm); color: var(--ink); box-shadow: var(--shadow-sm); }
.feed li > span:nth-child(2) { flex: 1; min-width: 0; }
.feed li.is-new { animation: feed-in var(--dur-mid) var(--ease-out) both; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---- 6. With and without: cards that turn; both faces share one grid cell -------------------------------------- */
.compare__grid { display: grid; gap: var(--space-md); margin-top: var(--space-2xl); }
@media (min-width: 900px) { .compare__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.flip { position: relative; perspective: 1400px; }
.flip__in { display: grid; height: 100%; transform-style: preserve-3d; transition: transform 700ms var(--ease-out); }
.flip.is-flipped .flip__in { transform: rotateY(180deg); }
.flip__face { grid-area: 1 / 1; display: grid; align-content: start; gap: var(--space-sm); min-height: 260px; padding: var(--space-lg) var(--space-lg) calc(var(--space-lg) + 44px + var(--space-md)); border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip__face--with { transform: rotateY(180deg); background: var(--accent-soft); border-color: var(--accent); }
.flip__face .badge { justify-self: start; }
.flip__face h3 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.flip__face p { font-size: var(--text-sm); line-height: 1.65; }
.flip__btn { position: absolute; left: var(--space-lg); bottom: var(--space-lg); z-index: 2; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease); }
.flip__btn:hover { background: var(--surface-2); }
.flip__btn:active { transform: scale(.98); }
html:not(.js) .flip__btn { display: none; }
@media (prefers-reduced-motion: reduce) {
  .flip__in { transform: none !important; transform-style: flat; }
  .flip__face { grid-area: auto; transform: none; }
  .flip__face--with { margin-top: var(--space-sm); }
  .flip__btn { display: none; }
}

/* ---- 7. Checked: a three-by-three grid of cards ------------------------------------------------------------------ */
.grid9 { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; gap: var(--space-md); }
@media (min-width: 640px) { .grid9 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid9 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid9 li { display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-lg); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--dur-short) var(--ease), box-shadow var(--dur-short) var(--ease); }
.grid9 li:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.grid9 .ic { width: 40px; height: 40px; padding: var(--space-xs); border-radius: var(--r-xl); background: var(--accent-soft); color: var(--accent-ink); }
.grid9 h3 { font-size: var(--text-lg); font-weight: 600; }
.grid9 p { font-size: var(--text-sm); line-height: 1.65; }

/* ---- 8. Never: four statements ------------------------------------------------------------------------------------ */
.never { text-align: center; }
.never .container { display: grid; justify-items: center; gap: var(--space-lg); }
.never__plate { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: radial-gradient(120% 90% at 30% 10%, var(--tile-ink-hi), var(--tile-ink) 70%); box-shadow: var(--shadow-lift); font-size: 2.5rem; }
.never h2 { font-size: var(--text-h2); letter-spacing: var(--tracking-display); line-height: 1.08; }
.never__list { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 680px; width: 100%; text-align: left; }
.never__list li { display: grid; gap: var(--space-2xs); padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) + 32px); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); position: relative; box-shadow: var(--shadow-sm); }
.never__list li::before { content: ''; position: absolute; left: var(--space-lg); top: calc(var(--space-md) + 0.55em); width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.never__list b { font-size: var(--text-lg); font-weight: 600; line-height: 1.4; color: var(--ink); }
.never__list span { font-size: var(--text-sm); }
.softpill { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px; padding: var(--space-xs) var(--space-md); border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: var(--text-sm); color: var(--ink); text-decoration: none; white-space: nowrap; }
.softpill:hover { background: var(--surface-2); }

/* ---- 9. Prompts: one row that drifts; paused on hover or focus; still under reduced motion ----------------------- */
.prompts { overflow: clip; }
.marquee { display: flex; gap: var(--space-md); margin-top: var(--space-2xl); -webkit-mask: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent); mask: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: var(--space-2xs) 0; display: flex; flex-shrink: 0; gap: var(--space-md); animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track li { display: grid; align-content: space-between; gap: var(--space-md); width: 300px; min-height: 148px; padding: var(--space-lg) var(--space-lg) var(--space-md); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.marquee__track li > span { font-size: var(--text-lg); font-weight: 600; line-height: 1.4; color: var(--ink); }
.marquee__track li .btn { justify-self: start; padding-inline: 0; color: var(--accent); }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--space-md))); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); -webkit-mask: none; mask: none; }
  .marquee__track { animation: none; } .marquee__track li { scroll-snap-align: start; } .marquee__track--dup { display: none; }
}

/* ---- 10. Pricing ------------------------------------------------------------------------------------------------- */
.plans { display: grid; gap: var(--space-md); max-width: 820px; margin: var(--space-2xl) auto 0; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: var(--space-sm); padding: var(--space-xl) var(--space-lg) var(--space-lg); border: 1px solid var(--line); border-radius: var(--r-3xl); background: var(--surface); text-align: center; box-shadow: var(--shadow-card); transition: transform var(--dur-short) var(--ease); }
.plan:hover { transform: translateY(-3px); }
.plan--selected { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--brand-1), var(--brand-2), var(--brand-3)) border-box; box-shadow: var(--shadow-lift); }
.plan__save { justify-self: center; grid-row: 1; }
.plan:not(.plan--selected)::before { content: ''; display: block; height: 24px; }
.plan h3 { font-size: var(--text-xl); justify-self: center; }
.plan__price { display: flex; justify-content: center; align-items: baseline; gap: var(--space-xs); }
.plan__price b { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.2; color: var(--ink); white-space: nowrap; }
.plan__price span { font-size: var(--text-sm); color: var(--text-subtle); }
.plan__sub { padding-block: var(--space-md); border-block: 1px solid var(--line); font-size: var(--text-sm); }
.plan__list { list-style: none; margin: var(--space-xs) 0 var(--space-md); padding: 0; display: grid; gap: var(--space-sm); text-align: left; font-size: var(--text-sm); align-content: start; }
.plan__list li { position: relative; padding-left: var(--space-lg); }
.plan__list li::before { content: ''; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plans__note { margin-top: var(--space-lg); text-align: center; font-size: var(--text-sm); color: var(--text-subtle); }

/* ---- 11. Questions ---------------------------------------------------------------------------------------------- */
.faq__list { margin-top: var(--space-2xl); display: grid; gap: var(--space-sm); }
.faq__list details { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); transition: border-color var(--dur-micro) var(--ease); }
.faq__list details:hover, .faq__list details[open] { border-color: var(--line-strong); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 60px; padding: var(--space-md) var(--space-lg); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; border-radius: var(--r-2xl); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ''; flex-shrink: 0; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: transform var(--dur-short) var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 var(--space-lg) var(--space-lg); line-height: 1.7; }
.faq__list details::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-mid) ease-in-out, content-visibility var(--dur-mid) allow-discrete; }
.faq__list details[open]::details-content { block-size: auto; }

/* ---- 12. Close ------------------------------------------------------------------------------------------------- */
.close { text-align: center; }
.close__card { position: relative; overflow: hidden; display: grid; justify-items: center; gap: var(--space-lg); padding: var(--space-3xl) var(--space-lg); border-radius: var(--r-3xl); background: linear-gradient(140deg, var(--brand-deep-1), var(--brand-deep-2) 55%, var(--brand-deep-3)); color: var(--on-brand); box-shadow: var(--shadow-window); }
.close__card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 20% 0%, var(--sheen-1), transparent 60%), radial-gradient(50% 70% at 100% 100%, var(--sheen-2), transparent 60%); pointer-events: none; }
.close__title { position: relative; color: var(--on-brand); font-size: var(--text-h2); letter-spacing: var(--tracking-display); line-height: 1.05; max-width: 16ch; }
.close__card .lead { position: relative; color: var(--on-brand); }
.close__card .btn { position: relative; background: var(--on-brand); color: var(--on-brand-ink); border-color: var(--on-brand); }
.close__card .btn:hover { background: var(--on-brand-hover); border-color: var(--on-brand-hover); }
.close__card .btn:focus-visible { outline-color: var(--on-brand); }

/* ---- Footer ---------------------------------------------------------------------------------------------------- */
.foot { position: relative; border-top: 1px solid var(--line); background: var(--surface); padding-block: var(--space-3xl) var(--space-2xl); }
.foot__in { display: flex; flex-direction: column; gap: var(--space-2xl); }
@media (min-width: 1024px) { .foot__in { flex-direction: row; flex-wrap: wrap; justify-content: space-between; } }
.foot__mast { display: grid; gap: var(--space-md); align-content: start; min-width: 260px; max-width: 340px; }
.foot__mast p { font-size: var(--text-sm); }
.statuspill { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 36px; padding: 0 var(--space-md) 0 var(--space-sm); border: 1px solid var(--line); border-radius: var(--r-full); font-size: var(--text-xs); color: var(--text); text-decoration: none; }
.statuspill i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.statuspill.is-ok i { background: var(--brand-1); }
.statuspill:hover { color: var(--ink); border-color: var(--line-strong); }
.foot__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
@media (min-width: 768px) { .foot__links { grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: var(--space-3xl); } }
.foot__links h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: var(--space-sm); }
.foot__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.foot__links a { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--text-sm); color: var(--text); text-decoration: none; transition: color var(--dur-micro) var(--ease); }
.foot__links a:hover { color: var(--ink); text-decoration: underline; }
.foot__legal { flex-basis: 100%; font-size: var(--text-xs); color: var(--text-subtle); }

/* ---- Motion: the hero's entrance, then each section arriving once. Visible without script. --------------------- */
.js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-long) var(--ease-out), transform 800ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity var(--dur-long) var(--ease-out), transform 800ms var(--ease-out); }
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-in > :nth-child(3n + 2) { transition-delay: 90ms; }
.js [data-reveal-group].is-in > :nth-child(3n + 3) { transition-delay: 180ms; }
html.is-hidden *, .is-paused, .is-paused * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise], .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; animation: none; }
  .js .rotor-in.out, .js .rotor-in.pre { transform: none; filter: none; }
}

/* ---- Docs (Read): a rail on the left, the prose in a 720px column ------------------------------------------------ */
.doc { display: grid; gap: var(--space-xl); padding-block: var(--space-xl) var(--section-pad); }
@media (min-width: 1024px) { .doc { grid-template-columns: 220px minmax(0, 720px) 1fr; column-gap: var(--space-2xl); } }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); align-self: start; max-height: calc(100dvh - var(--nav-height) - 2 * var(--space-lg)); overflow-y: auto; } .toc details { display: contents; } }
.toc details { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); padding: 0 var(--space-md); }
@media (min-width: 1024px) { .toc details { border: 0; padding: 0; background: none; } }
.toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-weight: 600; font-size: var(--text-sm); color: var(--ink); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ''; width: 8px; height: 8px; margin-right: var(--space-2xs); border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(45deg); transition: transform var(--dur-short) var(--ease); }
.toc details[open] summary::after { transform: rotate(225deg); }
@media (min-width: 1024px) { .toc summary { display: none; } }
.toc ul { list-style: none; margin: 0; padding: 0 0 var(--space-sm); display: grid; gap: 1px; }
@media (min-width: 1024px) { .toc ul { padding: 0; } }
.toc__group { margin: var(--space-md) 0 var(--space-2xs); padding: 0 var(--space-sm); font-size: var(--text-xs); font-weight: 600; color: var(--text-subtle); }
.toc__group:first-child { margin-top: 0; }
.toc a { display: flex; align-items: center; min-height: 36px; padding: 0 var(--space-sm); border-radius: var(--r-lg); text-decoration: none; color: var(--text); font-size: var(--text-sm); transition: color var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease); }
.toc a:hover { color: var(--ink); background: var(--surface-2); }
.toc a[aria-current] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.prose { max-width: 720px; min-width: 0; }
.prose h1 { font-size: var(--text-3xl); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.12; max-width: 24ch; }
.prose > .lead { margin-top: var(--space-md); }
.prose h2 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.02em; margin-top: var(--space-2xl); padding-top: var(--space-2xl); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-height) + var(--space-md)); }
.prose h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); letter-spacing: 0; margin-top: var(--space-xl); scroll-margin-top: calc(var(--nav-height) + var(--space-md)); }
.prose p, .prose ul, .prose ol { margin-top: var(--space-md); line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.25em; } .prose li + li { margin-top: var(--space-xs); }
.prose a { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose .table-wrap { margin-top: var(--space-md); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--surface-2); font-size: var(--text-xs); font-weight: 600; color: var(--text-subtle); white-space: nowrap; }
.prose td:first-child code { white-space: nowrap; }
.prose .code { margin-top: var(--space-md); }
.prose .code__bar { min-height: 48px; padding-left: var(--space-md); font-size: var(--text-xs); }
.prose .code pre { padding: var(--space-md); font-size: var(--text-xs); white-space: pre-wrap; overflow-wrap: anywhere; }
.callout { margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); border: 1px solid color-mix(in srgb, var(--warn-text) 25%, transparent); border-radius: var(--r-xl); background: var(--warn-bg); color: var(--warn-text); font-size: var(--text-sm); }
.callout--note { border-color: color-mix(in srgb, var(--ok-text) 25%, transparent); background: var(--ok-bg); color: var(--ok-text); }
.doc-steps { counter-reset: step; list-style: none; padding: 0; margin-top: var(--space-lg); display: grid; gap: var(--space-lg); }
.doc-steps > li { position: relative; padding-left: 3rem; }
.doc-steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: var(--text-xs); }
.doc-steps strong { display: block; font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.givekey { margin-top: var(--space-lg); }

/* ---- Simple pages (privacy, terms, support, status, not found) ----------------------------------------------- */
.simple { padding-block: var(--space-3xl) var(--section-pad); max-width: calc(var(--container-prose) + 2 * var(--gutter)); }
.simple h1 { font-size: var(--text-h2); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.05; max-width: 18ch; }
.simple .meta { color: var(--text-subtle); font-size: var(--text-sm); margin-top: var(--space-sm); }
.simple .lead { margin-top: var(--space-md); }
.simple h2 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.02em; margin-top: var(--space-2xl); }
.simple p, .simple ul { margin-top: var(--space-md); line-height: 1.75; }
.simple ul { padding-left: 1.2em; }
.simple a { color: var(--accent); font-weight: 500; }
.contact { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
@media (min-width: 640px) { .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact a { display: grid; gap: var(--space-2xs); padding: var(--space-lg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2xl); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform var(--dur-short) var(--ease); }
.contact a:hover { transform: translateY(-2px); }
.contact a b { font-size: var(--text-lg); font-weight: 600; } .contact a span { color: var(--text); font-size: var(--text-sm); font-weight: 400; }
.status-list { list-style: none; margin: var(--space-xl) 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); overflow: hidden; }
.status-list li { display: flex; align-items: center; gap: var(--space-sm); min-height: 56px; padding: var(--space-sm) var(--space-md); border-top: 1px solid var(--line); }
.status-list li:first-child { border-top: 0; }
.status-list li > span:first-of-type { flex: 1; font-weight: 600; color: var(--ink); }
.status-list .chip { margin-left: auto; }
@media (max-width: 40rem) { .status-list li { flex-wrap: wrap; } .status-list li > span:first-of-type { flex-basis: 100%; } .status-list .chip { margin-left: 0; white-space: normal; } }

/* Short pages: the footer meets the bottom of the viewport. */
body:has(> .foot) { min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> .foot) > main, body:has(> .foot) > .doc { flex: 1 0 auto; }
body:has(> .foot) > .nav { flex-shrink: 0; }

/* The job-tailored CV on the landing page (25 November 2026): the four steps beside a sample stint_tailor_cv reply. */
.tailor__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-xl); align-items: start; }
@media (min-width: 1024px) { .tailor__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); } }
.tailor__steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.tailor__steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: var(--space-sm); row-gap: var(--space-3xs); padding: var(--space-md) 0; border-top: 1px solid var(--line); }
.tailor__steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-full); background: var(--surface-3); color: var(--ink); font-weight: 600; font-size: var(--text-sm); }
.tailor__steps b { font-weight: 600; color: var(--ink); }
.tailor__steps span { font-size: var(--text-sm); color: var(--text); }
.tailor__reqs { list-style: none; margin: 0; padding: 0; display: grid; }
.tailor__reqs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xs) 0; border-top: 1px solid var(--line); }
.tailor__reqs li:first-child { border-top: 0; padding-top: 0; }
.tailor__reqs li > span:first-child { font-weight: 500; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

/* The CV templates page: an index of the twelve, then each one's facts beside its text to copy. */
.simple--wide { max-width: calc(var(--container) + 2 * var(--gutter)); }
.simple--wide > .lead { max-width: 40rem; }
.tpl-index ul { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.tpl-index a { display: inline-flex; align-items: center; min-height: 40px; padding: var(--space-2xs) var(--space-sm); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font-size: var(--text-sm); font-weight: 500; text-decoration: none; transition: border-color var(--dur-short) var(--ease), background-color var(--dur-short) var(--ease); }
.tpl-index a:hover { border-color: var(--accent); }
.tpl-index a:active { background: var(--surface-3); }
.tpl { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-height) + var(--space-md)); }
@media (min-width: 1024px) { .tpl { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); } .tpl__head { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); align-self: start; } }
.tpl__head { display: grid; gap: var(--space-sm); align-content: start; min-width: 0; }
.simple .tpl__head h2 { margin-top: 0; overflow-wrap: break-word; min-width: 0; }
.simple .tpl__head > p { margin-top: 0; }
.tpl__facts { margin: 0; display: grid; }
.tpl__facts > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-xs) 0; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.tpl__facts dt { font-weight: 600; color: var(--ink); } .tpl__facts dd { margin: 0; color: var(--text); }
.tpl__head .btn { justify-self: start; }
.tpl__sheet { margin: 0; min-width: 0; padding: var(--space-xl) var(--space-lg); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
@media (min-width: 640px) { .tpl__sheet { padding: var(--space-2xl); } }
.tpl-rules { margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: 1px solid var(--line); max-width: var(--container-prose); }
.simple .tpl-rules h2 { margin-top: 0; }
