/* ============================================================
   Kheel — page sections (Sand & Ink)
   Layered on tokens.css + kheel.css.
   ============================================================ */

/* ---------- Home hero ---------- */
.hero { background: var(--hero-bg) center / cover; border-bottom: 1px solid var(--border-subtle); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
  padding-top: 88px; padding-bottom: 96px;
}
.hero h1, .phero h1 {
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: var(--fs-56); line-height: 1.04; letter-spacing: var(--ls-tighter);
  margin: 0; color: var(--fg-1); text-wrap: balance;
}
/* The home headline breaks where its sentence does, not where balancing would. */
.hero h1 { text-wrap: wrap; }
.hero__lead, .phero__lead {
  font-size: var(--fs-20); line-height: var(--lh-relaxed); color: var(--fg-2);
  margin: 22px 0 0; max-width: 620px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { font-size: var(--fs-14); color: var(--fg-3); margin: 18px 0 0; }
.hero__lead--more { margin-top: 14px; }

/* ---------- The assistant, using Kheel ---------- */
.chat {
  margin: 0; background: var(--bg-surface); border-radius: var(--radius-card);
  box-shadow: var(--lift-2), var(--shadow-xl); overflow: hidden;
}
.chat__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px;
  font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--fg-3);
  border-bottom: 1px solid var(--border-subtle); background: var(--bg-canvas-soft);
}
.chat__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--color-success-600); }
.chat__body { padding: 22px 22px 24px; display: grid; gap: 16px; }
.chat__you {
  justify-self: end; max-width: 86%; margin: 0;
  background: var(--color-slate-100); color: var(--fg-1);
  padding: 12px 14px; border-radius: 14px 14px 4px 14px;
  font-size: var(--fs-15); line-height: var(--lh-normal);
}
.chat__tools {
  display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--bg-sunken); font-size: var(--fs-13); color: var(--fg-3);
}
.chat__tools .tool { font-family: var(--font-mono); font-size: 12px; color: var(--color-blue-700); margin-right: 6px; }
.chat__ai { font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--fg-1); }
.chat__ai p { margin: 0 0 10px; }
.chat__ai p:last-child { margin-bottom: 0; }
.chat__ai em { font-style: normal; background: var(--color-blue-50); color: var(--color-blue-700); padding: 1px 5px; border-radius: 4px; }

/* ---------- Page hero (inner pages) ---------- */
.phero { padding: 88px 0 72px; background: var(--hero-bg) center / cover; border-bottom: 1px solid var(--border-subtle); }
.phero h1 { max-width: 880px; }
.phero__note { font-size: var(--fs-14); color: var(--fg-3); margin: 20px 0 0; max-width: 620px; }
.phero__note a, .phero__lead a, .hero__note a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; }
.phero--404 { padding: 120px 0 140px; }

.more {
  display: inline-flex; gap: 6px; margin-top: 40px;
  font-size: var(--fs-15); font-weight: var(--fw-medium); color: var(--fg-link);
}
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more--ondark { color: var(--color-blue-300); margin-top: 28px; }

/* ---------- The trail (the numbered argument) ----------
   Three points joined by one smooth wave of dots (assets/trail.js). Each point
   sits at its own height, --y, and its text starts below it. Neighbouring
   heights differ by no more than about 45px, so the wave stays above the text. */
.trail { position: relative; margin-top: 44px; }
.trail__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail__svg .dot { fill: var(--color-slate-300); }
.trail__svg .node { fill: var(--color-blue-600); }
.trail__svg .halo { fill: rgba(47, 91, 183, 0.16); }
.trail__steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px; }
.trail__steps li { position: relative; padding-top: calc(var(--y, 0px) + 54px); }
.trail__node { position: absolute; left: 0; top: var(--y, 0px); width: 16px; height: 16px; }
.trail__n { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--fg-3); }
.trail__steps h3 { font-size: var(--fs-20); font-weight: var(--fw-semibold); letter-spacing: -0.01em; margin: 8px 0 10px; }
.trail__steps p { font-size: var(--fs-15); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 0; }

/* ---------- The model's cards (organise, retain, interrogate) ----------
   Each card's drawing sits on a sand panel set into its top left corner, the
   title beside it on the panel's baseline, the text below. */
.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.mcard { background: var(--bg-surface); border-radius: var(--radius-card); box-shadow: var(--lift-2); overflow: hidden; }
.mcard__head { display: grid; grid-template-columns: 148px 1fr; gap: 20px; align-items: end; }
.mcard__panel { background: var(--bg-sunken); padding: 18px 16px 14px 18px; border-bottom-right-radius: 22px; }
.mcard h3 { font-size: var(--fs-24); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); margin: 0; padding: 0 20px 10px 0; }
.mcard p { font-size: var(--fs-15); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 0; padding: 20px 26px 28px; }

/* Line drawings: 2px ink outlines with round ends, white or sand fills, and one
   part in the action blue. s outline, thin lighter outline, w white fill,
   n sand fill, b blue part, bl blue lines, bd blue dot, d dotted blue thread,
   dk dark dot, serif lettering. */
.ill { display: block; width: 112px; height: auto; overflow: visible; }
.ill .s { fill: none; stroke: var(--fg-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill .s.thin { stroke-width: 1.5; stroke: var(--color-slate-500); }
.ill .w { fill: var(--bg-surface); }
.ill .n { fill: var(--color-slate-100); }
.ill .b { fill: var(--color-blue-100); stroke: var(--color-blue-600); stroke-width: 2; stroke-linejoin: round; }
.ill .bl { fill: none; stroke: var(--color-blue-600); stroke-width: 2; stroke-linecap: round; }
.ill .bd { fill: var(--color-blue-600); }
.ill .d { fill: none; stroke: var(--color-blue-600); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.1 6; }
.ill .lens { fill: rgba(227, 234, 248, 0.55); stroke: var(--fg-1); stroke-width: 2.5; }
.ill .handle { stroke: var(--fg-1); stroke-width: 6; stroke-linecap: round; }
.ill .dk { fill: var(--fg-1); }
.ill .serif { font-family: var(--font-serif); font-style: italic; font-size: 24px; fill: var(--fg-1); }

/* ---------- The line: market to specification ----------
   A transit map. The four areas are stops on one ink line, each with its
   drawing above and its text below; user experience is a second, blue line
   beside it the whole way, and each stop is an interchange across both. On
   narrower screens the lines drop away and the stops stay as a grid. */
.stops { position: relative; margin-top: 56px; }
.stops__lines { position: absolute; left: -48px; right: -48px; top: 124px; height: 24px; }
.stops__main, .stops__ux { position: absolute; left: 0; right: 0; height: 5px; border-radius: 3px; }
.stops__main { top: 0; background: var(--fg-1); }
.stops__ux { top: 16px; background: var(--color-blue-600); }
.stops__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.stops__art { height: 104px; display: flex; align-items: flex-end; }
.stops__art .ill { width: 108px; }
.stops__stop { display: block; width: 22px; height: 38px; margin: 10px 0 0 6px; border-radius: 11px; background: var(--bg-surface); border: 4px solid var(--fg-1); }
.stops h3 { font-size: var(--fs-20); font-weight: var(--fw-semibold); letter-spacing: -0.01em; margin: 18px 0 8px; }
.stops li p { font-size: var(--fs-15); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 0; }
/* User experience spans all four: a blue double-headed arrow across the full
   width, with the note centred beneath it. */
.stops__span { position: relative; height: 12px; margin-top: 44px; }
.stops__span::before { content: ""; position: absolute; left: 1px; right: 1px; top: 5px; height: 2.5px; border-radius: 2px; background: var(--color-blue-600); }
.stops__span i { position: absolute; top: 1px; width: 10px; height: 10px; border: solid var(--color-blue-600); border-width: 2.5px 0 0 2.5px; }
.stops__span i:first-child { left: 1px; transform: rotate(-45deg); }
.stops__span i:last-child { right: 1px; transform: rotate(135deg); }
.stops__legend { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 22px auto 0; max-width: 640px; text-align: center; }
.stops__uxart { flex: none; }
.stops__uxart .ill { width: 88px; }
.stops__legend p { margin: 0; font-size: var(--fs-16); line-height: var(--lh-relaxed); color: var(--fg-2); }
.stops__legend strong { color: var(--fg-1); }

/* ---------- Ink band (works with AI) ---------- */
.band { position: relative; overflow: hidden; background: var(--bg-slate); color: #fff; padding: 96px 0; }
/* The logo's ring of dots, large and faint, as the band's ground. */
.band::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.045);
  -webkit-mask: url("logo-mark.svg") center / contain no-repeat;
  mask: url("logo-mark.svg") center / contain no-repeat;
}
.band__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.band h2 {
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-40);
  line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: 0;
}
.band h2 em { color: var(--color-blue-300); }
.band p { font-size: var(--fs-18); line-height: var(--lh-relaxed); color: rgba(255,255,255,0.74); margin: 18px 0 0; }
.band__card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-card); padding: 24px;
}
.band__label { font-size: var(--fs-13); font-weight: var(--fw-medium); color: rgba(255,255,255,0.6); }
.band code {
  display: block; margin-top: 10px; font-family: var(--font-mono); font-size: var(--fs-14);
  padding: 12px 14px; border-radius: var(--radius-sm); overflow-x: auto; white-space: nowrap;
}
.band code { background: rgba(0,0,0,0.25); color: #fff; }
.band__roles { margin: 0 0 28px; display: grid; gap: 16px; }
.band__roles div + div { padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14); }
.band__roles dt { font-size: var(--fs-16); font-weight: var(--fw-semibold); color: #fff; }
.band__roles dd { margin: 4px 0 0; font-size: var(--fs-15); line-height: var(--lh-normal); color: rgba(255,255,255,0.7); }

/* ---------- How Kheel fits with other tools ---------- */
.fits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.fits h3 { font-size: var(--fs-18); font-weight: var(--fw-semibold); margin: 0 0 8px; padding-top: 14px; border-top: 2px solid var(--color-blue-200); }
.fits p { font-size: var(--fs-15); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 0; }
/* Kheel's own column, centre stage: a larger card, with the columns either
   side of it muted. */
.fits--stage { grid-template-columns: 1fr 1.35fr 1fr; align-items: center; }
.fits--stage > :not(.fits__kheel) h3 { border-top-color: var(--border-subtle); color: var(--fg-2); }
.fits--stage > :not(.fits__kheel) p { color: var(--fg-3); }
.fits__kheel { padding: 22px 28px 28px; background: var(--bg-surface); border: 1px solid var(--color-blue-200); border-radius: var(--radius-card); box-shadow: var(--lift-2); }
.fits__kheel h3 { display: flex; align-items: center; gap: 8px; border-top: 0; padding-top: 4px; font-size: var(--fs-24); color: var(--color-blue-700); }
.fits__kheel p { font-size: var(--fs-16); }
.fits__mark { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: url("logo-mark.svg") center / contain no-repeat; mask: url("logo-mark.svg") center / contain no-repeat; }

/* ---------- Closing call to action ---------- */
.cta { padding: 96px 0; }
.cta__card {
  background: var(--bg-surface); border-radius: var(--radius-card); padding: 56px; box-shadow: var(--lift-2);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta__card h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-32); letter-spacing: var(--ls-tight); margin: 0; max-width: 560px; }
.cta__card p { font-size: var(--fs-16); color: var(--fg-2); margin: 14px 0 0; max-width: 520px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }

/* ---------- Home: the closing offer, as an early-access pass ----------
   The offer's words and buttons on the left; on the right a pass, tilted, with
   a blue tear-off stub. The notches where the stub tears off are cut from both
   halves with radial masks. */
/* On the sand grid the page opens with, so the ending stands apart from the
   section above it and the white pass stands out. */
.cta--offer { background: var(--hero-bg) center / cover; border-top: 1px solid var(--border-subtle); padding: 104px 0; }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.offer h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-40); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: 0; text-wrap: balance; }
.offer p { font-size: var(--fs-17, 1.0625rem); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 18px 0 0; max-width: 480px; }
.offer .cta__actions { margin-top: 30px; }
.pass { --notch: 14px; display: grid; grid-template-columns: 1fr 130px; max-width: 470px; justify-self: center; transform: rotate(-4deg); filter: drop-shadow(0 22px 30px rgba(42,38,34,0.22)) drop-shadow(0 2px 3px rgba(42,38,34,0.08)); }
.pass__main, .pass__stub { padding: 26px 26px 24px; display: grid; gap: 8px; align-content: start; }
.pass__main {
  background: var(--bg-surface); border-radius: 16px 0 0 16px;
  -webkit-mask: radial-gradient(circle var(--notch) at right top, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at right bottom, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at right top, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at right bottom, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.pass__stub {
  background: var(--color-blue-600); color: #fff; border-radius: 0 16px 16px 0; border-left: 2px dashed rgba(255,255,255,0.55);
  place-items: center; text-align: center; font-size: 12px; font-weight: var(--fw-medium);
  -webkit-mask: radial-gradient(circle var(--notch) at left top, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at left bottom, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at left top, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at left bottom, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.pass__main img { height: 22px; width: auto; }
.pass__kind { margin-top: 14px; font-size: 13px; font-weight: var(--fw-medium); color: var(--fg-3); }
.pass__big { font-family: var(--font-serif); font-style: italic; font-size: 56px; line-height: 1; color: var(--color-blue-600); }
.pass__what { margin-top: 6px; font-size: 13px; color: var(--fg-2); }
/* Kheel's ring of dots, in white. */
.pass__ring {
  width: 58px; height: 58px; margin: 6px 0; background: rgba(255,255,255,0.92);
  -webkit-mask: url("logo-mark.svg") center / contain no-repeat; mask: url("logo-mark.svg") center / contain no-repeat;
}

/* ---------- Early access steps; product areas ---------- */
.org { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.org li { background: var(--bg-surface); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--lift-2); }
.org h3 { font-size: var(--fs-16); font-weight: var(--fw-semibold); margin: 0 0 8px; }
.org p { font-size: var(--fs-14); line-height: var(--lh-normal); color: var(--fg-2); margin: 0; }
.org p a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; }
/* Early access: numbered steps. */
.org--steps { counter-reset: step; }
.org--steps h3::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px;
  border-radius: 999px; background: var(--brand-primary); color: #fff; font-size: var(--fs-12);
}

.area { padding: 88px 0; }
.area--canvas { background: var(--color-slate-75); }
.area__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
/* Alternate sides, so the drawn screens zigzag down the page. */
.area--flip .area__text { order: 2; }
.area__text h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-40); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: 0; display: flex; align-items: center; gap: 18px; }
/* Each area's drawing, the same as on the home page's line from market to specification. */
.area__ill.ill { flex: none; width: 76px; }
.area__text > p strong { color: var(--fg-1); font-weight: var(--fw-semibold); }
.area__text > p { font-size: var(--fs-17, 1.0625rem); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 16px 0 0; }
.area__art { min-width: 0; }
.parts { margin: 24px 0 0; display: grid; gap: 14px; }
.parts > div { padding-left: 14px; border-left: 2px solid var(--color-blue-200); }
.parts dt { font-size: var(--fs-15); font-weight: var(--fw-semibold); }
.parts dd { margin: 4px 0 0; font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--fg-2); }
.asks { margin-top: 24px; padding-left: 22px; border-left: 2px solid var(--color-blue-300); }
.asks__label { font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--fg-3); margin-bottom: 8px; }
.asks p { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-18); color: var(--fg-1); margin: 6px 0 0; }

.aside { max-width: 760px; }
.aside h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-24); letter-spacing: var(--ls-tight); margin: 0; }
.aside p { font-size: var(--fs-18); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 12px 0 0; }
.aside a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Works with AI ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.split--center { align-items: center; }
.shead p a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; }
/* Grid items default to min-width: auto, so a long unbroken line of code would
   widen the column past the screen instead of scrolling inside its box. */
.split > *, .band__inner > * { min-width: 0; }
.h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-40); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: 0; }
.body { font-size: var(--fs-18); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 18px 0 0; }
/* What you can do with it: an outcome, and something you might ask for it. */
.does { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.do { display: flex; flex-direction: column; background: var(--bg-surface); border-radius: var(--radius-card); padding: 26px 26px 24px; box-shadow: var(--lift-2); }
.do h3 { font-size: var(--fs-18); font-weight: var(--fw-semibold); letter-spacing: -0.01em; margin: 0; }
.do p { font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--fg-2); margin: 8px 0 18px; }
.do blockquote {
  margin: auto 0 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--color-blue-300);
  font-family: var(--font-serif); font-style: italic; font-size: var(--fs-16); line-height: var(--lh-normal); color: var(--fg-1);
}

/* It works as you: four short assurances. */
.assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 44px; }
.assure > div { border-top: 2px solid var(--color-blue-600); padding-top: 16px; }
.assure--three { grid-template-columns: repeat(3, 1fr); }
.assure h3 { font-size: var(--fs-16); font-weight: var(--fw-semibold); margin: 0; }
.assure p { font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--fg-2); margin: 6px 0 0; }


.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.skill { background: var(--bg-surface); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--lift-2); }
.skill h3 { font-size: var(--fs-24); font-weight: var(--fw-semibold); letter-spacing: -0.01em; margin: 0; }
.skill__lead { font-size: var(--fs-15); color: var(--fg-2); margin: 6px 0 18px; }
.skill--link { display: block; transition: box-shadow 0.15s ease; }
.skill--link:hover { box-shadow: 0 0 0 1px var(--color-blue-300), var(--lift-2); }
.skill--link .skill__lead { margin-bottom: 0; }
.skill__more { display: inline-block; margin-top: 16px; font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--fg-link); }

/* ---------- Pricing ---------- */
.phero--pricing { padding-bottom: 80px; }
.interval { display: inline-flex; gap: 4px; margin-top: 36px; padding: 4px; border-radius: 999px; background: var(--bg-surface); box-shadow: 0 0 0 1px var(--border-default); }
.interval[hidden] { display: none; }
.interval button { font: inherit; font-size: var(--fs-14); font-weight: var(--fw-medium); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; background: transparent; color: var(--fg-2); }
.interval button[aria-pressed="true"] { background: var(--color-slate-900); color: #fff; }
.interval button span { margin-left: 6px; font-size: var(--fs-12); color: var(--color-success-700); }
.interval button[aria-pressed="true"] span { color: #9FDDBB; }
.interval button:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--bg-surface); border-radius: var(--radius-card); padding: 30px 28px; box-shadow: var(--lift-2); }
.plan--main { box-shadow: 0 0 0 2px var(--color-blue-600), var(--lift-2); }
.plan h2 { font-family: var(--font-display); font-size: var(--fs-24); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); margin: 0; }
.plan__for { font-size: var(--fs-15); line-height: 1.45; color: var(--fg-3); margin: 4px 0 0; min-height: 2.9em; }
.plan__price { margin: 24px 0 0; min-height: 128px; }
.plan__price p { margin: 0; font-size: var(--fs-15); color: var(--fg-2); }
.plan__price strong { font-family: var(--font-display); font-size: var(--fs-40); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); color: var(--fg-1); margin-right: 4px; }
.plan__price .plan__also { margin-top: 4px; font-size: var(--fs-14); color: var(--fg-3); }
.plan__price .plan__amount { display: flex; align-items: baseline; gap: 10px; }
.plan__price .plan__amount s { font-family: var(--font-display); font-size: var(--fs-24); color: var(--fg-4); }
.plan__price .plan__then { margin-top: 10px; font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--color-success-600); }
/* With the script, only the chosen interval's prices show. */
.plans[data-interval="month"] [data-show="year"], .plans[data-interval="year"] [data-show="month"] { display: none; }
.plan__btn { width: 100%; margin-top: 24px; }
.plan__trial { min-height: 2.8em; margin: 10px 0 0; text-align: center; font-size: var(--fs-14); font-weight: var(--fw-medium); line-height: 1.4; color: var(--color-success-600); }
.plan__trial s { margin-right: 4px; font-weight: var(--fw-regular); color: var(--fg-4); }
.plan__trial span { display: block; font-weight: var(--fw-regular); color: var(--fg-3); }
.plan__has { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border-subtle); display: grid; gap: 12px; font-size: var(--fs-15); color: var(--fg-1); }
.plan__has li { display: flex; align-items: center; gap: 10px; }
.plan__has li::before { content: ""; flex: none; width: 10px; height: 6px; margin: 0 3px 3px; border: solid var(--color-success-600); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan__has .plan__not { color: var(--fg-4); }
.plan__has .plan__not::before { width: 12px; height: 0; margin: 0 2px; border-width: 0 0 2px; border-color: var(--fg-4); transform: none; }
.plans__note { margin: 24px 0 0; text-align: center; font-size: var(--fs-14); color: var(--fg-3); }


/* How Kheel compares: a kind of tool per row. On a phone each row becomes a
   card, its cells labelled from data-label. */
.compare-wrap { margin-top: 48px; border-radius: var(--radius-card); background: var(--bg-surface); box-shadow: var(--lift-2); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-15); line-height: var(--lh-normal); }
.compare thead th { padding: 14px 20px; text-align: left; font-size: var(--fs-13); font-weight: var(--fw-semibold); color: var(--color-blue-700); background: var(--color-blue-50); }
.compare tbody th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--border-subtle); }
.compare tbody th { width: 26%; font-weight: var(--fw-semibold); color: var(--fg-1); }
.compare__eg { display: block; margin-top: 4px; font-size: var(--fs-13); font-weight: var(--fw-regular); color: var(--fg-3); }
.compare td { color: var(--fg-2); }
.compare td:nth-child(2) { width: 28%; }
.compare td:last-child { color: var(--fg-1); }



/* ---------- Skills ---------- */
.plugin { scroll-margin-top: 72px; }
.plugin__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.plugin__head h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-48); letter-spacing: var(--ls-tighter); line-height: 1.05; margin: 0; }
.plugin__lead { max-width: 680px; margin: 16px 0 0; font-size: var(--fs-20); line-height: var(--lh-relaxed); color: var(--fg-2); }
.plugin__repo {
  flex: none; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: var(--fs-13); color: var(--fg-1); background: var(--bg-surface); box-shadow: 0 0 0 1px var(--border-default);
}
.plugin__repo:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.plugin__repo svg { width: 16px; height: 16px; fill: currentColor; }
.mkrow { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 64px; align-items: center; margin-top: 72px; }
.mkrow--flip { grid-template-columns: 1.25fr 0.75fr; }
.mkrow--flip .mkrow__text { order: 2; }
.mkrow__text h3 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-28); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); margin: 0; }
.mkrow__text p { margin: 14px 0 0; font-size: var(--fs-18); line-height: var(--lh-relaxed); color: var(--fg-2); }
.plugin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 80px; align-items: start; }
.plugin__h3 { font-size: var(--fs-18); font-weight: var(--fw-semibold); margin: 0 0 16px; }
.skillist { margin: 0; display: grid; }
.skillist div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.skillist dt { font-size: var(--fs-15); font-weight: var(--fw-semibold); color: var(--fg-1); }
.skillist + .plugin__fine { margin-top: 16px; }
.skillist dd { margin: 0; font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--fg-2); }
.skillist a, .install a, .plugin__fine a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; }
.plugin__fine { margin: 20px 0 0; font-size: var(--fs-14); line-height: var(--lh-normal); color: var(--fg-3); }
.install { padding: 28px; border-radius: var(--radius-card); background: var(--bg-surface); box-shadow: var(--lift-2); }
.install p { margin: 14px 0 0; font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--fg-2); }
.install .plugin__h3 + p { margin-top: 0; }
/* Commands wrap rather than scroll, so they can be read whole. */
.install pre { margin: 10px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--color-slate-900); overflow-x: auto; }
.install pre code { font-family: var(--font-mono); font-size: var(--fs-13); line-height: 1.6; color: var(--color-slate-50); white-space: pre-wrap; overflow-wrap: anywhere; }
.install code.inline, .skillist code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; color: var(--fg-1); }

/* ---------- The hand of skills (the Skills page's ending) ----------
   Cards fanned from a point below the hand, Kheel's in front. On the right the
   outer card lies under the inner one, with its name in its far corner, so
   both names show. */
.hand { position: relative; height: 340px; }
.hand__card {
  position: absolute; left: 50%; bottom: 20px; width: 150px; height: 200px; margin-left: -75px; padding: 16px 14px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 4px; border-radius: 14px; background: var(--bg-surface);
  box-shadow: 0 0 0 1px rgba(42,38,34,0.08), 0 14px 26px -12px rgba(42,38,34,0.35);
  transform-origin: 50% 210%; transform: rotate(var(--r));
}
.hand__card code { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-blue-700); }
.hand__card > span { font-size: 11px; color: var(--fg-3); }
.hand__card--end { align-items: flex-end; text-align: right; }
.hand__art.ill { width: 100%; margin-top: auto; }
.hand__card--kheel {
  width: 128px; height: 172px; margin-left: -64px; bottom: 6px; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 0 0 2px var(--color-blue-600), 0 18px 30px -12px rgba(42,38,34,0.4);
}
.hand__card--kheel img { width: 46px; height: 46px; margin-bottom: 6px; }
.hand__card--kheel strong { font-size: 20px; letter-spacing: -0.01em; }

/* ---------- Two ways to start (the Product page's ending) ----------
   A demo organisation, filled in and tilted like a card on the table, beside
   a dashed, empty one for your own product. */
.starts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 460px; justify-self: center; padding: 20px 0 34px; }
.starts__card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 18px; border-radius: 14px; box-sizing: border-box; font-size: 12px; color: var(--fg-1); }
.starts__card--demo { background: var(--bg-surface); transform: rotate(-3deg); box-shadow: 0 0 0 1px rgba(42,38,34,0.08), 0 18px 30px -14px rgba(42,38,34,0.35); }
.starts__card--own { align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--color-blue-300); background: rgba(255,255,255,0.45); transform: rotate(2deg) translateY(14px); }
.starts__label { font-size: 11px; font-weight: var(--fw-semibold); color: var(--color-blue-700); }
.starts__card--own .starts__label { position: absolute; top: 18px; }
.starts__org { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.starts__rows { display: grid; gap: 8px; margin-top: 4px; }
.starts__rows div { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; }
.starts__rows .ln + .ln { margin-top: 0; }
.starts__note { margin-top: auto; font-size: 11px; color: var(--fg-3); }
.starts__card--own .starts__note { margin-top: 0; }
.starts__plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--color-blue-600); color: #fff; font-size: 24px; line-height: 1; }
.starts__card--own strong { font-size: 14px; }

/* ---------- The trial calendar (the Pricing page's ending) ---------- */
.cal { width: 100%; max-width: 420px; justify-self: center; box-sizing: border-box; padding: 22px 22px 24px; border-radius: 16px; background: var(--bg-surface); transform: rotate(-2deg); box-shadow: 0 0 0 1px rgba(42,38,34,0.06), 0 26px 40px -18px rgba(42,38,34,0.35); }
.cal__head strong { display: block; font-size: 17px; letter-spacing: -0.01em; color: var(--fg-1); }
.cal__head span { font-size: 12px; color: var(--fg-3); }
.cal__months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.cal__month strong { display: block; margin-bottom: 8px; font-size: 11px; font-weight: var(--fw-semibold); color: var(--fg-3); }
.cal__dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.cal__dots i { aspect-ratio: 1; border-radius: 999px; background: var(--color-blue-100); }
.cal__dots i.today, .cal__key i.today { background: var(--color-blue-600); }
.cal__dots i.end, .cal__key i.end { background: var(--bg-surface); box-shadow: inset 0 0 0 2px var(--color-blue-600); }
.cal__key { display: flex; gap: 18px; margin-top: 16px; font-size: 11px; color: var(--fg-2); }
.cal__key span { display: inline-flex; align-items: center; gap: 6px; }
.cal__key i { width: 10px; height: 10px; border-radius: 999px; }

/* ---------- Gathered in (the Why now page's ending) ----------
   The scattered results the essay describes, each with a dotted line into one
   Kheel panel of linked records. Drawn with .ill's strokes and fills. */
.gathered { width: 100%; max-width: 480px; justify-self: center; }
.gathered .ill { width: 100%; }
.gather text { font-family: var(--font-sans); }
.gather .g-name { font-size: 12.5px; font-weight: 600; fill: var(--fg-1); }
.gather .g-type { font-size: 10.5px; fill: var(--fg-3); }
.gather .g-panel { fill: var(--bg-surface); stroke: var(--border-default); stroke-width: 1.5; filter: drop-shadow(0 18px 24px rgba(42,38,34,0.16)); }
.gather .g-row { fill: var(--color-slate-75); }

/* ---------- Cookie consent (assets/consent.js) ----------
   A card in the corner, not a wall: the page stays usable while it asks.
   Accept and Reject look the same, so neither is the easy way out. */
.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 200; width: min(420px, calc(100vw - 40px)); box-sizing: border-box;
  padding: 22px 22px 20px; border-radius: var(--radius-card); background: var(--bg-surface); color: var(--fg-1);
  box-shadow: 0 0 0 1px var(--border-default), 0 24px 48px -16px rgba(42,38,34,0.35);
}
.consent[hidden] { display: none; }
.consent h2 { margin: 0; font-size: var(--fs-18); font-weight: var(--fw-semibold); }
.consent p { margin: 8px 0 0; font-size: var(--fs-14); line-height: var(--lh-normal); color: var(--fg-2); }
.consent a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; }
.consent__prefs { display: grid; gap: 4px; margin-top: 14px; }
.consent__prefs[hidden] { display: none; }
.consent__opt { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--border-subtle); font-size: var(--fs-13); line-height: var(--lh-normal); color: var(--fg-2); cursor: pointer; }
.consent__opt input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--color-blue-600); }
.consent__opt b { display: block; font-size: var(--fs-14); font-weight: var(--fw-semibold); color: var(--fg-1); }
.consent__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.consent__btn {
  font: inherit; font-size: var(--fs-14); font-weight: var(--fw-medium); height: 38px; padding: 0 16px; border: 0; border-radius: var(--radius-sm);
  background: var(--color-slate-900); color: #fff; cursor: pointer;
}
.consent__btn:hover { background: var(--color-slate-800); }
.consent__more { font: inherit; font-size: var(--fs-14); margin-left: auto; padding: 8px 4px; border: 0; background: none; color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent button[hidden] { display: none; }
.consent button:focus-visible, .consent input:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.cookies-table td { vertical-align: top; }
.cookies-table code { font-family: var(--font-mono); font-size: 0.9em; }
.cookies-table b { font-weight: var(--fw-semibold); }
.linkish { font: inherit; padding: 0; border: 0; background: none; color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish[hidden] { display: none; }
.kfoot__legal { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.kfoot__legal a, .kfoot__legal button { font: inherit; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.kfoot__legal button[hidden] { display: none; }

/* ---------- Legal documents (the Terms, rendered by bin/legal.mjs) ----------
   Numbered as written in the source; each level indents a step. */
.legal { padding-top: 56px; padding-bottom: 96px; }
.legal > * { max-width: 860px; }
.legal h2 { scroll-margin-top: 88px; display: flex; gap: 14px; margin: 48px 0 0; font-family: var(--font-display); font-size: var(--fs-24); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); }
.legal h2:first-of-type { margin-top: 24px; }
.legal p { margin: 14px 0 0; font-size: var(--fs-16); line-height: 1.7; color: var(--fg-2); }
.legal__cl { display: grid; grid-template-columns: 4.6em 1fr; scroll-margin-top: 88px; }
.legal .legal__cl--3 { margin-left: 4.6em; grid-template-columns: 5.4em 1fr; }
.legal .legal__cl--4 { margin-left: 10em; grid-template-columns: 6.2em 1fr; }
.legal .legal__cl--5 { margin-left: 16.2em; grid-template-columns: 7em 1fr; }
.legal__n { font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); color: var(--fg-1); }
.legal .legal__p { margin-left: 4.6em; }
.legal .legal__p:first-child { margin-left: 0; font-size: var(--fs-14); color: var(--fg-3); }
.legal strong { color: var(--fg-1); }
.legal a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Essay (why now) ----------
   Chapters: the heading on the left, kept in view beside its text while it
   scrolls; quotes and the case study span the full width. */
.chapters { padding-top: 16px; padding-bottom: 16px; }
.chapter { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 72px; padding: 56px 0; border-top: 1px solid var(--border-subtle); }
.chapters > .chapter:first-child { border-top: 0; }
.chapter h2 {
  grid-column: 1; grid-row: 1 / span 3; align-self: start; position: sticky; top: 104px; margin: 0;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-28); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); text-wrap: balance;
}
.chapter__text, .chapter__wide { grid-column: 2; max-width: 720px; }
.chapter__after { margin-top: 24px; }
.chapter__text p, .chapter__text li { font-size: var(--fs-18); line-height: 1.7; color: var(--fg-2); }
.chapter__text p { margin: 16px 0 0; }
.chapter__text > :first-child { margin-top: 0; }
.chapter__text ul { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.chapter__text strong { color: var(--fg-1); }
.chapter__text a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; }
.pull {
  margin: 0; padding: 48px 20% 52px 0; border-top: 1px solid var(--border-subtle);
  font-family: var(--font-serif); font-style: italic; font-size: var(--fs-40); line-height: 1.25; color: var(--fg-1); text-wrap: balance;
}
.pull::before { content: "“"; color: var(--color-blue-600); }
.pull::after { content: "”"; color: var(--color-blue-600); }
.essay .cta { padding-top: 72px; }
.essay .cta--offer { padding-top: 104px; }

.case { padding: 96px 0 88px; background: var(--hero-bg) center / cover; border-block: 1px solid var(--border-subtle); }
.case__title { margin: 0; max-width: 880px; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-48); line-height: 1.08; letter-spacing: var(--ls-tighter); text-wrap: balance; }
.case__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--color-blue-600); }
.case__lead { margin: 20px 0 0; max-width: 720px; font-size: var(--fs-20); line-height: var(--lh-relaxed); color: var(--fg-2); }
.case__facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 48px 0 0; }
.case__facts div { padding-top: 14px; border-top: 2px solid var(--color-blue-600); }
.case__facts dt { font-family: var(--font-display); font-size: var(--fs-48); font-weight: var(--fw-semibold); letter-spacing: var(--ls-tight); line-height: 1; color: var(--fg-1); }
.case__facts dd { margin: 8px 0 0; font-size: var(--fs-15); color: var(--fg-2); }
.case__note { margin: 20px 0 0; font-size: var(--fs-13); color: var(--fg-3); }

.kinds-table {
  width: 100%; margin: 20px 0 4px; border-collapse: separate; border-spacing: 0; overflow: hidden;
  background: var(--bg-surface); border-radius: var(--radius-card); box-shadow: var(--lift-2); font-size: var(--fs-16);
}
.kinds-table th { padding: 12px 18px; text-align: left; font-size: var(--fs-13); font-weight: var(--fw-semibold); color: var(--color-blue-700); background: var(--color-blue-50); }
.kinds-table td { padding: 13px 18px; border-top: 1px solid var(--border-subtle); color: var(--fg-1); }

/* One decision followed through the specification: steps on a line. */
.followed { list-style: none; margin: 24px 0 0; padding: 0; }
.chapter__text .followed li { position: relative; margin-left: 6px; padding: 0 0 24px 28px; border-left: 2px solid var(--color-blue-200); }
.chapter__text .followed li:last-child { padding-bottom: 0; border-left-color: transparent; }
.chapter__text .followed li:first-child { border-image: linear-gradient(to bottom, transparent 12px, var(--color-blue-200) 12px) 1; }
.followed li::before { content: ""; position: absolute; left: -8px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-canvas); border: 2px solid var(--color-blue-600); box-sizing: border-box; }
.followed__ref { display: block; width: fit-content; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-13); font-weight: var(--fw-semibold); line-height: 1.4; color: var(--color-blue-700); background: var(--color-blue-50); }
.levels { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.levels li { background: var(--bg-surface); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--lift-2); }
.levels__name { font-size: var(--fs-13); font-weight: var(--fw-semibold); color: var(--color-blue-700); background: var(--color-blue-50); padding: 5px 10px; border-radius: 999px; }
.levels__about { font-size: var(--fs-16); font-weight: var(--fw-medium); color: var(--fg-1); margin: 16px 0 0; }
.levels__eg { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-16); line-height: var(--lh-normal); color: var(--fg-2); margin: 10px 0 0; }

/* ---------- Early access: where things are ---------- */
.status { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-top: 48px; }
.status__col { background: var(--bg-surface); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--lift-2); }
.status__col h3 { margin: 0 0 16px; }
.status__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.status__col li { font-size: var(--fs-15); line-height: var(--lh-normal); color: var(--fg-2); }
.status__col li strong { color: var(--fg-1); }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-13); font-weight: var(--fw-semibold); padding: 5px 11px; border-radius: 999px; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.tag--live { background: var(--color-success-100); color: var(--color-success-700); }
.tag--building { background: var(--color-blue-100); color: var(--color-blue-700); }
.tag--next { background: var(--color-slate-100); color: var(--color-slate-600); }

/* ---------- Early access: keep me posted ---------- */
.keep { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.keep__copy h2 { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-32); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); margin: 0; }
.keep__copy p { font-size: var(--fs-17, 1.0625rem); line-height: var(--lh-relaxed); color: var(--fg-2); margin: 16px 0 0; }
.keep__card { background: var(--brand-primary); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-xl); }

/* The form sits on ink. */
.rform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rform__field { margin-bottom: 10px; }
.rform__field label { display: block; font-size: var(--fs-12); font-weight: var(--fw-medium); color: rgba(255,255,255,0.66); margin-bottom: 6px; }
.rform .opt { color: rgba(255,255,255,0.4); font-weight: var(--fw-regular); }
.rform input[type="email"], .rform input[type="text"] {
  width: 100%; height: 46px; padding: 0 14px;
  font-family: var(--font-sans); font-size: var(--fs-15); color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard);
}
.rform input::placeholder { color: rgba(255,255,255,0.36); }
.rform input:hover { border-color: rgba(255,255,255,0.30); }
.rform input:focus-visible { border-color: var(--color-blue-400); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 3px rgba(115,147,212,0.30); outline: none; }
.rform input[aria-invalid="true"] { border-color: var(--color-danger-600); }
/* Interest topics: checkboxes styled as chips. The real <input> stays in the
   DOM (visually hidden, not display:none) so keyboard and screen readers get the
   native checkbox behaviour, and :checked drives the chip's appearance. */
.rform__topics { border: 0; margin: 4px 0 0; padding: 0; }
.rform__topics legend { padding: 0; font-size: var(--fs-12); font-weight: var(--fw-medium); color: rgba(255,255,255,0.66); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chip span {
  display: inline-block; cursor: pointer; font-size: var(--fs-13); line-height: 1; color: rgba(255,255,255,0.74);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 9px 14px;
  transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.chip span:hover { border-color: rgba(255,255,255,0.34); color: #fff; }
.chip input:checked + span { background: var(--brand-accent); border-color: var(--color-blue-500); color: #fff; font-weight: var(--fw-medium); }
.chip input:focus-visible + span { border-color: var(--color-blue-400); box-shadow: 0 0 0 3px rgba(115,147,212,0.34); }
.rform__submit { width: 100%; margin-top: 18px; }
.rform__submit[disabled] { opacity: 0.65; cursor: default; }
.rform__note { font-size: var(--fs-12); color: rgba(255,255,255,0.48); margin: 14px 0 0; line-height: var(--lh-normal); }
.rform__error {
  display: none; margin-top: 14px; padding: 10px 12px; background: rgba(192,51,75,0.16);
  border: 1px solid rgba(232,128,145,0.4); border-radius: var(--radius-sm); font-size: var(--fs-13); color: #FFCCD4;
}
.rform__error[data-shown] { display: block; }
/* Turnstile renders its own iframe; give it room only once it exists. */
.rform__turnstile:not(:empty) { margin-top: 14px; }
.rdone { display: flex; gap: 14px; align-items: flex-start; }
.rdone__tick { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px; background: var(--color-success-600); color: #fff; display: grid; place-items: center; }
.rdone__tick svg { width: 18px; height: 18px; }
.rdone h3 { font-size: var(--fs-18); font-weight: var(--fw-semibold); color: #fff; margin: 4px 0 6px; }
.rdone p { font-size: var(--fs-15); line-height: var(--lh-normal); color: rgba(255,255,255,0.68); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__inner, .band__inner, .area__inner, .split, .keep, .offer { grid-template-columns: 1fr; gap: 40px; }
  .mcards { grid-template-columns: 1fr; max-width: 560px; }
  .area--flip .area__text { order: 0; }
  .hero__inner { padding-top: 56px; padding-bottom: 64px; }
  .stops__list, .org { grid-template-columns: 1fr 1fr; }
  .stops__lines, .stops__stop { display: none; }
  .status { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; padding: 40px 0; }
  .mkrow, .mkrow--flip, .plugin__grid { grid-template-columns: 1fr; gap: 36px; }
  .mkrow--flip .mkrow__text { order: 0; }
  .chapter h2 { position: static; grid-row: auto; margin-bottom: 16px; }
  .chapter__text, .chapter__wide { grid-column: 1; }
  .case__facts { grid-template-columns: repeat(3, 1fr); }
  .does, .assure { grid-template-columns: 1fr 1fr; }
  .assure--three { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .cta__card { flex-direction: column; align-items: flex-start; padding: 40px; }
}
@media (max-width: 720px) {
  .hero h1, .phero h1 { font-size: var(--fs-40); }
  .hero__lead, .phero__lead { font-size: var(--fs-18); }
  .phero { padding: 56px 0 48px; }
  .fits, .stops__list, .org, .does, .assure, .skills, .levels { grid-template-columns: 1fr; }
  /* Stacked, the path runs down the left through the points. */
  .trail__steps { grid-template-columns: 1fr; gap: 36px; padding-left: 44px; }
  .trail__steps li { padding-top: 0; }
  .trail__node { left: -40px; top: 2px; }
  .area { padding: 64px 0; }
  .keep__copy h2, .cta__card h2 { font-size: var(--fs-28); }
  .area__text h2 { font-size: var(--fs-32); }
  .band { padding: 64px 0; }
  .band h2, .h2 { font-size: var(--fs-32); }
  .band::before { width: 420px; height: 420px; right: -200px; }
  .cta { padding: 64px 0; }
  .cta--offer, .essay .cta--offer { padding: 64px 0 72px; }
  .cta__card { padding: 28px 22px; }
  .legal .legal__cl { grid-template-columns: 1fr; margin-left: 0; }
  .legal .legal__cl--3, .legal .legal__cl--4, .legal .legal__cl--5, .legal .legal__p { padding-left: 14px; margin-left: 0; border-left: 2px solid var(--border-subtle); }
  .legal .legal__cl--4 { padding-left: 28px; }
  .legal .legal__cl--5 { padding-left: 42px; }
  .legal .legal__p:first-child { padding-left: 0; border-left: 0; }
  .plugin__head { flex-direction: column; gap: 4px; }
  .plugin__head h2 { font-size: var(--fs-40); }
  .plugin__lead { font-size: var(--fs-18); }
  .skillist div { grid-template-columns: 1fr; gap: 4px; }
  .install { padding: 22px 18px; }
  .mkrow { margin-top: 56px; }
  .plugin__grid { margin-top: 56px; }
  .keep__card { padding: 24px 20px; }
  .pass { grid-template-columns: 1fr 96px; transform: rotate(-2deg); }
  .starts { gap: 14px; }
  .starts__card { min-height: 210px; padding: 14px; }
  .hand { height: 250px; transform: scale(0.68); transform-origin: 50% 85%; margin: -20px -40px 0; }
  .pass__main, .pass__stub { padding: 20px 16px; }
  .pass__big { font-size: 42px; }
  .rform__row { grid-template-columns: 1fr; }
  .pull { font-size: var(--fs-28); padding: 36px 0 40px; }
  .case { padding: 64px 0; }
  .case__title { font-size: var(--fs-32); }
  .case__facts { grid-template-columns: 1fr 1fr; }
  .case__facts dt { font-size: var(--fs-40); }
  .kinds-table { font-size: var(--fs-14); }
  .kinds-table th, .kinds-table td { padding-inline: 12px; }
  .hero__actions .kbtn, .cta__actions .kbtn { width: 100%; }
  .cta__actions { width: 100%; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare tr { padding: 18px 18px 6px; border-top: 1px solid var(--border-subtle); }
  .compare tr:first-child { border-top: 0; }
  .compare tbody th, .compare td { padding: 0 0 12px; border-top: 0; }
  .compare tbody th { font-size: var(--fs-16); }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--fs-12); font-weight: var(--fw-semibold); color: var(--color-blue-700); }
  .consent { left: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 18px; }
  .consent__btn { flex: 1; }
}
