/*
 * Page CSS for the landing (src/app/(landing)/[locale]), linked after the kit's
 * stylesheets in its layout. The design kit in /public/assets draws everything else; this file only holds what its recipes
 * mark as "page CSS": what sits inside a visual, a card group's panel height,
 * and the app-frame recipe (references/sections-library.md, app-frame).
 */

/* The client's own logo (the robot mark) needs more than the kit's 24px for a
   wordmark: its face sits inside generous padding. */
.nav__logo img { height: 32px; width: 32px; }

/* ── Hero (collage): the small result card over the window's lower left ─────── */
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }
.d-card {
  background: #fff; color: #0a0b1e; border-radius: 12px; padding: 14px 16px;
  font: 400 14px/1.4 var(--font-text); text-align: left;
  box-shadow: 0 0 0 1px rgb(10 11 30 / .06), 0 18px 40px -20px rgb(10 11 30 / .45);
}
.d-card h5 { margin: 0 0 4px; font: 500 14px/1.3 var(--font-text); }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-chip { font: 500 13px/1 var(--font-text); padding: 5px 8px; border-radius: 999px; background: #e7f4ec; color: #17673f; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4256; border-top: 1px solid rgb(10 11 30 / .06); }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e7f4ec; color: #17673f; font-style: normal; font-size: 13px; font-weight: 500; }
.d-note__line b { font-weight: 500; color: #0a0b1e; }
/* the window's widest column (the age) is left out: the frame cuts empty margin, never a status chip */
.hero__art .ui-win__main { padding-right: var(--ly-cut-room); }

/* ── #inbox: app-frame (the recipe's whole page CSS) ─────────────────────────── */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* ── #how-it-works: one panel height for the card group ──────────────────────────── */
#how-it-works .panel { --p-h: 360px; }
/* each pair lines up: a card's title, description and panel sit on the grid's rows (subgrid), so a
   longer description in one card never pushes its panel below its neighbour's */
#how-it-works .features-grid > .card { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
@media (max-width: 639px) { #how-it-works .panel { --p-h: 220px; } #how-it-works .ui-chat__day { display: none; } }

/* ── #knowledge: three plain lines, each closed by a rule ────────────────────── */
.knowledge__facts > li { padding-block: var(--s-3); border-bottom: 1px solid var(--line); }

/* ── #pricing: a dark stage. Three plans in falling light (Starter the brightest, where the eye
   lands first, Plus neon, Max dark violet), backlit by a dotted violet horizon; the same list in every card, the volume line lit. */
@property --tier-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.pricing {
  --violet: #8b5cf6; --lilac: #c4b5fd;
  --pr-muted: rgb(221 214 254 / .66);
  position: relative; isolation: isolate; overflow: clip;
  background:
    radial-gradient(60% 45% at 50% 0%, rgb(76 29 149 / .35), transparent 70%),
    #07051a;
}
/* a faint field of dots over the whole stage, strongest at the top, like the horizon's */
.pricing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgb(255 255 255 / .16) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 45% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 45% at 50% 0%, #000, transparent 75%);
}

.pricing__head { display: grid; justify-items: center; gap: var(--s-4); max-width: 860px; margin: 0 auto var(--head-gap); text-align: center; }
.pricing__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
  font-size: var(--t-small); font-weight: 500; color: #ede9fe;
  background: linear-gradient(180deg, rgb(139 92 246 / .32), rgb(76 29 149 / .32));
  box-shadow: inset 0 0 0 1px rgb(196 181 253 / .45), 0 0 24px -4px rgb(139 92 246 / .6);
}
.pricing__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #e9d5ff; box-shadow: 0 0 0 3px rgb(167 139 250 / .3), 0 0 10px #c084fc; }
.pricing__head h2 {
  max-width: 20ch; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 35%, #d8ccff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pricing__h2-muted {
  background: linear-gradient(180deg, #b7a6ff, #8b74e8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pricing__line { max-width: 52ch; font-size: var(--t-lead); line-height: 1.5; color: var(--pr-muted); text-wrap: balance; }

/* the stage: the horizon sits behind the cards' lower half, so they stand in its light */
.pricing__stage { position: relative; isolation: isolate; }
.pricing__horizon {
  position: absolute; z-index: -1; pointer-events: none;
  left: 50%; bottom: -240px; width: min(1600px, 160vw); height: 640px; transform: translateX(-50%);
  background:
    radial-gradient(26% 22% at 50% 72%, rgb(255 255 255 / .95) 0%, rgb(243 232 255 / .75) 30%, transparent 100%),
    radial-gradient(44% 38% at 50% 72%, rgb(192 132 252 / .75) 0%, rgb(147 51 234 / .45) 45%, transparent 100%),
    radial-gradient(62% 60% at 50% 72%, rgb(109 40 217 / .5) 0%, rgb(76 29 149 / .2) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 74%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 74%, transparent 96%);
}
/* the horizon's halftone: dots that grow toward its bright centre */
.pricing__horizon::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgb(255 255 255 / .9) 1.1px, transparent 1.7px);
  background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(48% 42% at 50% 72%, #000 0%, rgb(0 0 0 / .5) 45%, transparent 100%);
  mask-image: radial-gradient(48% 42% at 50% 72%, #000 0%, rgb(0 0 0 / .5) 45%, transparent 100%);
  mix-blend-mode: plus-lighter;
}

/* the plans: one row on wide screens, each card a subgrid so names, prices, buttons and lists align */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 0; }
.tier {
  /* the tier's light: ground, edge, glow and dots; this base is Max's, the darkest, and each tier before it a step brighter */
  --tier-bg: linear-gradient(180deg, #1a1236 0%, #0f0b24 55%, #0b0919 100%);
  --tier-edge: rgb(167 139 250 / .22);
  --tier-glow: 0 30px 60px -36px rgb(124 58 237 / .45);
  --tier-dots: .3;
  --tier-tick: rgb(255 255 255 / .1);
  position: relative; isolation: isolate;
  grid-row: span 8; display: grid; grid-template-rows: subgrid; align-items: start;
  padding: clamp(22px, 2.4vw, 32px); border-radius: 18px; color: #fff;
  background: var(--tier-bg);
  box-shadow: inset 0 0 0 1px var(--tier-edge), inset 0 1px 0 rgb(255 255 255 / .1), var(--tier-glow);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
}
/* the tier's dots, in from the top corner as in a lit sheet of glass */
.tier::before {
  content: ""; position: absolute; inset: 0 0 62% 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(circle, rgb(255 255 255 / .85) 1px, transparent 1.6px);
  background-size: 7px 7px; opacity: var(--tier-dots);
  -webkit-mask-image: radial-gradient(60% 85% at 100% 0%, #000 0%, rgb(0 0 0 / .35) 45%, transparent 75%);
  mask-image: radial-gradient(60% 85% at 100% 0%, #000 0%, rgb(0 0 0 / .35) 45%, transparent 75%);
  transition: opacity .4s ease;
}
.tier--2 {
  --tier-bg:
    radial-gradient(120% 60% at 50% 0%, rgb(124 58 237 / .75) 0%, rgb(76 29 149 / .55) 40%, transparent 80%),
    linear-gradient(180deg, #24135a 0%, #150c38 50%, #0e0a26 100%);
  --tier-edge: rgb(167 139 250 / .6);
  --tier-glow: 0 0 34px -6px rgb(139 92 246 / .55), 0 34px 80px -34px rgb(124 58 237 / .8);
  --tier-dots: .5;
  --tier-tick: rgb(167 139 250 / .28);
}
.tier--1 {
  --tier-bg:
    radial-gradient(130% 70% at 50% 0%, rgb(216 180 254 / .9) 0%, rgb(168 85 247 / .85) 22%, rgb(109 40 217 / .7) 50%, transparent 90%),
    linear-gradient(180deg, #5b21b6 0%, #3b1287 45%, #220b5a 100%);
  --tier-edge: rgb(233 213 255 / .85);
  --tier-glow: 0 0 22px rgb(192 132 252 / .75), 0 0 70px rgb(168 85 247 / .5), 0 0 140px rgb(147 51 234 / .35);
  --tier-dots: .7;
  --tier-tick: rgb(255 255 255 / .22);
  --pr-muted: rgb(243 232 255 / .82);
}
.tier--3 .tier__list .is-volume { color: var(--lilac); }
/* Starter's edge: a glint of light that travels round it */
.tier--1::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--tier-spin), transparent 0deg 250deg, rgb(255 255 255 / .2) 290deg, #ffffff 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: tier-spin 6s linear infinite;
}
@keyframes tier-spin { to { --tier-spin: 360deg; } }
@media (hover: hover) {
  .tier:hover { transform: translateY(-6px); }
  .tier:hover::before { opacity: calc(var(--tier-dots) + .2); }
}
@media (prefers-reduced-motion: reduce) {
  .tier { transition: none; }
  .tier:hover { transform: none; }
  .tier--1::after { animation: none; --tier-spin: 300deg; }
}

.tier__name { font: 600 clamp(22px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -0.015em; }
.tier__tagline { margin-top: 4px; color: var(--pr-muted); }
.tier__price { display: flex; align-items: baseline; gap: 6px; margin-top: var(--s-5); }
.tier__amount { font: 650 clamp(44px, 4.4vw, 60px)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tier__per { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; color: var(--pr-muted); }
.tier__extra { margin-top: 2px; font-size: var(--t-small); font-weight: 600; color: #ffffff; font-variant-numeric: tabular-nums; }
.tier__unit { margin-top: var(--s-2); font-size: var(--t-small); color: var(--pr-muted); font-variant-numeric: tabular-nums; }

/* the button: a pale, glossy key, the same in every tier, lit on the brightest (Starter) */
.pricing .tier__btn {
  width: 100%; height: 46px; margin-top: var(--s-5); border-radius: 11px; border: 0;
  color: #120c2a; font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #e4e1ef 100%);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgb(0 0 0 / .12), 0 1px 0 rgb(0 0 0 / .5), 0 10px 24px -10px rgb(0 0 0 / .7);
  transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
}
.pricing .tier__btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f1edff 100%);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgb(0 0 0 / .1), 0 0 0 1px rgb(196 181 253 / .7), 0 0 26px -2px rgb(167 139 250 / .8);
}
.pricing .tier__btn:focus-visible { outline: 2px solid #e9d5ff; outline-offset: 3px; }
.tier--1 .tier__btn { box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgb(255 255 255 / .6), 0 0 28px -4px rgb(255 255 255 / .55), 0 10px 24px -10px rgb(30 0 60 / .8); }

.tier__list { display: grid; gap: 13px; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgb(255 255 255 / .1); font-size: var(--t-small); }
.tier__list > li { display: flex; align-items: center; gap: 10px; line-height: 1.35; color: rgb(255 255 255 / .9); }
.tier__list > li > .flag-pair { margin-left: 2px; }
.tier__list .is-volume { font-weight: 600; color: #e9d5ff; }
.tier--1 .tier__list .is-volume { color: #ffffff; }
.tier__check { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--tier-tick); }
.tier__check svg { width: 14px; height: 14px; fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tier__list .is-volume .tier__check { background: linear-gradient(180deg, #a78bfa, #7c3aed); box-shadow: 0 0 12px rgb(139 92 246 / .8); }

.tier__trial { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / .1); font-size: var(--t-small); font-weight: 600; letter-spacing: .01em; }

.pricing__overage { max-width: 62ch; margin: clamp(140px, 13vw, 190px) auto 0; text-align: center; font-size: var(--t-lead); line-height: 1.5; color: #ede9fe; text-wrap: balance; }
.pricing__note { max-width: 70ch; margin: var(--s-4) auto 0; text-align: center; color: var(--pr-muted); text-wrap: balance; }
.pricing .trust { justify-content: center; }
.pricing .trust svg { stroke: var(--lilac); }

/* stacked (tablet, phone): one card under another, the brightest first, the horizon behind them all */
@media (max-width: 899px) {
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .tier + .tier { margin-top: var(--s-5); }
  .pricing__horizon { bottom: -210px; height: 520px; }
}

/* ── #faq: the chat under the heading, at the width the fragment is drawn for */
.faq__chat { max-width: 440px; }

/* ── Footer: the cookie-settings control reads as the column's other links ──── */
.footer__button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
/* on a phone, a 44px target like every footer link (system.css gives the links theirs) */
@media (max-width: 639px) { .footer__button { display: inline-flex; align-items: center; min-height: 44px; } }
/* the closing word clips sideways only (a long name never makes the page scroll); its ascenders stand
   above the tight line box and stay whole */
.close__word { overflow: clip visible; }

/* ── Cookie choice (ConsentDialog): a non-modal dialog, a small card in the lower left corner */
.consent {
  position: fixed; inset: auto auto var(--s-5) var(--s-5); z-index: 60; margin: 0;
  width: min(420px, calc(100vw - 2 * var(--s-3))); max-height: calc(100svh - 2 * var(--s-5)); overflow: auto;
  padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg, 16px);
  background: var(--bg); color: var(--ink);
  box-shadow: 0 0 0 1px rgb(10 11 30 / .04), 0 24px 56px -24px rgb(10 11 30 / .45);
}
.consent__row { display: grid; gap: var(--s-4); }
.consent__text { font-size: var(--t-small); line-height: 1.5; }
.consent__title { margin: 0 var(--s-7) var(--s-2) 0; font: 500 var(--t-body)/1.3 var(--font-text); letter-spacing: 0; outline: none; }
.consent__status { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); margin-top: var(--s-2); }
.consent__state { display: inline-flex; align-items: center; gap: var(--s-2); }
.consent__state dd { margin: 0; color: var(--muted); }
.consent__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.consent__dot.is-on { background: #17673f; }
.consent__note { margin-top: var(--s-2); color: var(--muted); }
.consent__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); }
.consent__actions .btn { width: 100%; }
.consent__close { position: absolute; top: var(--s-2); right: var(--s-2); display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--r-sm, 8px); }
.consent__close:hover { color: var(--ink); }
/* while it is open, the page keeps its height free at the bottom, so the footer's last line scrolls clear */
body { padding-bottom: var(--consent-h, 0px); }
@media (max-width: 639px) { .consent { inset: auto var(--s-3) var(--s-3) var(--s-3); width: auto; padding: var(--s-4); } }

/* ══ Industry pages (src/app/(landing)/[locale]/industries) ═══════════════════════ */

/* the conversation in the hero: the chat at a reading width, its foot cut by the frame like the landing's window */
.ind-hero__chat .ui-chat { width: min(440px, 100%); }
.ind-chat__channel { margin-left: auto; }
/* the web form a law-firm thread starts from: a system card above the first message */
.ind-form { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--u-line); border-radius: 10px;
            background: var(--u-bg); font-size: 13px; line-height: 18px; color: var(--u-muted); }
.ind-form b { display: block; font-weight: 500; color: var(--u-ink); }

/* #pains: each card opens on its number, set in the mono face */
.ind-num { display: block; margin-bottom: var(--s-5); font: 500 var(--t-small)/1 var(--font-mono); color: var(--accent); letter-spacing: 0.04em; }

/* #night: five timestamps on one line across the dark band, from the first message to the morning */
.night { --dot: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-8); position: relative; }
.night::before { content: ""; position: absolute; left: calc(var(--dot) / 2); right: 0; top: calc(var(--dot) / 2); height: 1px;
                 background: linear-gradient(90deg, var(--line), color-mix(in oklab, var(--ink) 55%, transparent)); }
.night__step { position: relative; display: grid; align-content: start; gap: var(--s-2); }
.night__dot { position: relative; z-index: 1; display: grid; place-items: center; width: var(--dot); height: var(--dot); margin-bottom: var(--s-4);
              border-radius: 50%; background: var(--bg); border: 1px solid color-mix(in oklab, var(--ink) 40%, transparent); color: var(--ink); }
.night__dot:empty::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.night__step.is-morning .night__dot { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.night__time { font: var(--display-weight) clamp(28px, 2.2vw + 4px, 40px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.night__step h3 { font: 500 var(--t-body)/1.35 var(--font-text); margin: 0; }
.night__step p { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
@media (max-width: 1023px) {
  .night { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding-left: calc(var(--dot) + var(--s-5)); }
  .night::before { left: calc(var(--dot) / 2); right: auto; top: 0; bottom: 0; width: 1px; height: auto;
                   background: linear-gradient(180deg, var(--line), color-mix(in oklab, var(--ink) 55%, transparent)); }
  .night__dot { position: absolute; left: calc(-1 * (var(--dot) + var(--s-5))); top: 0; margin: 0; }
}

/* #handles: six jobs, each opened by its tick; the guardrail on a card of its own */
.ind-handles { display: grid; gap: var(--s-5); }
.ind-handles > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.ind-handles h3 { font: 500 var(--t-body)/1.35 var(--font-text); margin: 0 0 var(--s-1); }
.ind-handles p { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.ind-handles .ic { margin-top: 2px; }
.ind-guard { gap: var(--s-3); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); background: color-mix(in oklab, var(--accent) 5%, var(--bg)); }
.ind-guard .t-label { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--accent); }

/* #channels: the hub on its lit panel, a section tall; the calendar and CRM marks in a row */
.ind-channels__panel { --p-h: 520px; border-radius: var(--r-lg); }
@media (max-width: 1023px) { .ind-channels__panel { --p-h: 380px; margin-top: var(--s-6); } }
.ind-tools { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.ind-tools > li { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; }

/* the industry sections: a split's two columns stand centred in the screen; card rows grow to its foot */
.section > .wrap:has(> .ind-split), #night > .wrap { justify-content: center; }
@media (min-width: 1024px) {
  .ind-fill { flex: 1 1 auto; min-height: 0; align-items: stretch; }
  .ind-fill > .card { height: 100%; }
  .ind-fill > .card--open > .panel { flex: 1 1 auto; }
  .ind-col { display: flex; flex-direction: column; gap: var(--s-7); }
  .ind-col__foot { margin-top: auto; }
  .ind-channels__panel { --p-h: 100%; min-height: 440px; align-self: stretch; }
  .ind-split { align-items: start; }
  .ind-handles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
}
/* #pains: three rows, each opened by its number set large in the accent */
.ind-pains { display: grid; }
.ind-pains > li { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: var(--s-6); align-items: start;
                  padding-block: var(--s-6); border-top: 1px solid var(--line); }
.ind-pains > li:last-child { border-bottom: 1px solid var(--line); }
.ind-pains .ind-num { margin: 0; font: var(--display-weight) clamp(48px, 4vw + 8px, 80px)/0.9 var(--font-display); letter-spacing: -0.04em; }
.ind-pains h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin: 0 0 var(--s-2); }
.ind-pains p { color: var(--muted); max-width: 52ch; }
@media (max-width: 1023px) { .ind-pains, .ind-handles { margin-top: var(--s-6); } }

/* ── #settings and #faq: the content sits on the screen's middle, not its top,
   and the two columns meet on their centres. The settings frame is drawn
   shorter so its chat fills it, and the FAQ chat's body is cut to its two
   messages (the fragment's default body leaves a blank band above the input). */
#settings > .wrap, #faq > .wrap { justify-content: center; }
@media (min-width: 1024px) { #settings > .wrap > .grid, #faq > .wrap > .grid { align-items: center; } }
#settings .frame--split { --ratio: 68%; }
#settings .tabs__panel p { font-size: var(--t-lead); line-height: 1.5; }

/* ── .ground-glow, a dark band with depth (#settings, /features #identity): the brand's indigo glowing
   in from the top left, a cool blue from the bottom right, a faint grid that fades toward the edges.
   It goes with .ground-inverse (the dark tokens). On #settings the iris moment's cover sits above all
   of it (its own stage), so the moment is unchanged. */
.ground-glow {
  position: relative; isolation: isolate;
  background:
    radial-gradient(70% 80% at 8% -10%, color-mix(in oklab, var(--p-accent) 55%, transparent), transparent 65%),
    radial-gradient(60% 70% at 100% 110%, color-mix(in oklab, #0ea5e9 34%, transparent), transparent 65%),
    radial-gradient(45% 55% at 72% 45%, color-mix(in oklab, var(--p-accent) 22%, transparent), transparent 70%),
    linear-gradient(160deg, #0c0d2a 0%, #0a0b1e 55%, #0b1530 100%);
}
.ground-glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, #000 20%, transparent 75%);
}

/* on a /features group the numbered list draws its own hairlines, so the grid stays on the heading's
   side and fades out before the list: one line per row, never the grid's lines across the list's.
   (The rows differ in height, so no regular grid can land on every row's line.) */
@media (min-width: 1024px) {
  .feat.ground-glow::before {
    -webkit-mask-image: linear-gradient(to right, #000 0%, rgb(0 0 0 / .8) 30%, transparent 48%);
    mask-image: linear-gradient(to right, #000 0%, rgb(0 0 0 / .8) 30%, transparent 48%);
  }
  .feat--flip.ground-glow::before {
    -webkit-mask-image: linear-gradient(to left, #000 0%, rgb(0 0 0 / .8) 30%, transparent 48%);
    mask-image: linear-gradient(to left, #000 0%, rgb(0 0 0 / .8) 30%, transparent 48%);
  }
}
/* stacked (phone, tablet): the list comes after the heading and its card, so the grid fades out above it */
@media (max-width: 1023px) {
  .feat.ground-glow::before {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .8) 25%, transparent 45%);
    mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .8) 25%, transparent 45%);
  }
}

/* the settings: buttons that look like buttons, each with its glyph in a round well; the chosen one
   white and lifted, with the rotation's time as a bar along its foot */
#settings .tabs { gap: var(--s-3); margin-top: var(--s-6); }
#settings .tab {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 7px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .16);
  background: linear-gradient(180deg, rgb(255 255 255 / .10), rgb(255 255 255 / .04));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .10), 0 6px 18px -10px rgb(0 0 0 / .6);
  color: rgb(255 255 255 / .86); font-size: var(--t-small); font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
#settings .tab__ico {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  background: rgb(255 255 255 / .10); color: #ffffff;
  transition: background var(--dur) var(--ease);
}
#settings .tab__ico svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  #settings .tab:hover { transform: translateY(-2px); color: #ffffff; border-color: rgb(255 255 255 / .34); background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .07)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 12px 26px -12px rgb(0 0 0 / .7); }
}
#settings .tab:active { transform: translateY(0); }
#settings .tab:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
/* the chosen one: white, its edge lit neon purple right on the pill's edge, glowing over the dark. The
   kit's motion layer (motion.js) slides one pill (.m-tab-ind) behind the chosen tab and leaves the tab
   itself clear, so the pill carries the look; without that layer the tab carries it. */
#settings .tabs { --neon: #b46cff; }
#settings .m-tab-ind,
#settings .tabs:not(.m-has-ind) .tab[aria-selected="true"] {
  box-sizing: border-box; border-radius: 999px;
  background: #ffffff; border: 2px solid var(--neon);
  box-shadow: 0 0 10px color-mix(in oklab, var(--neon) 85%, transparent), 0 0 28px color-mix(in oklab, var(--neon) 50%, transparent), 0 14px 34px -12px color-mix(in oklab, var(--p-accent) 80%, transparent);
}
#settings .tab[aria-selected="true"] { color: var(--p-ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
#settings .tabs.m-has-ind .tab[aria-selected="true"] { background: transparent; border-color: transparent; box-shadow: none; }
/* the chosen tab stays put on hover: the pill under it does not follow a lift */
@media (hover: hover) and (pointer: fine) {
  #settings .tab[aria-selected="true"]:hover { transform: none; }
}
#settings .tab[aria-selected="true"] .tab__ico { background: var(--p-accent); }
/* the rotation's time (TabsAutoplay sets [data-auto] and --auto-ms; its end moves to the next tab) */
#settings .tab::after {
  content: ""; position: absolute; left: 49px; right: 18px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--p-accent); transform: scaleX(0); transform-origin: left; opacity: 0;
}
#settings .tabs[data-auto] .tab[aria-selected="true"]::after { opacity: .9; animation: tab-auto var(--auto-ms, 4500ms) linear forwards; }
#settings .tabs[data-auto-paused] .tab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes tab-auto { to { transform: scaleX(1); } }

/* the chosen setting's sentence: a quiet card under the buttons, an accent rule on its left */
#settings .tabs__panel { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); border-left: 2px solid var(--p-accent); border-radius: 0 var(--r-md) var(--r-md) 0; background: rgb(255 255 255 / .05); }
#settings .tabs__panel p { margin: 0; color: rgb(255 255 255 / .9); }

/* the frame: frosted glass with a soft indigo glow behind it, and the chat in it on white */
#settings .frame--split {
  position: relative;
  background: linear-gradient(160deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05));
  border: 1px solid rgb(255 255 255 / .18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 40px 90px -30px rgb(0 0 0 / .75), 0 0 120px -20px color-mix(in oklab, var(--p-accent) 55%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
#settings .frame--split .at-rise {
  --fx-bg: #ffffff; --fx-surface: #f3f4fa; --fx-ink: var(--p-ink); --fx-muted: var(--p-muted);
  --fx-accent: var(--p-accent); --fx-accent-ink: #ffffff;
}
#settings .frame--split .ui { box-shadow: 0 24px 60px -24px rgb(0 0 0 / .55); }
/* the chat whole, input row included, with the same inset under it as above it (no fade: a white
   window fading into glass reads as a grey band) */
#settings .stage > .settings__screen { bottom: var(--ay, 56px); }
@media (max-width: 639px) {
  #settings .frame--split { --ratio: 118%; }
  #settings .stage > .settings__screen { bottom: var(--ay-sm, 24px); }
}
#settings .stage > .settings__screen > :is([data-ui], .ui) { height: 100%; }
@media (prefers-reduced-motion: reduce) { #settings .tab { transition: none; } }
.faq__chat .ui-chat { --chat-body: 132px; }

/* ── /features ───────────────────────────────────────────────────────────────
   The hero's ring diagram fills the silk-folds frame. */
/* the ring stands above the float card (bottom-left), so no group sits under it */
.feat-hero__media > .dg { position: absolute; inset: 0 0 112px; z-index: 1; }
@media (max-width: 1023px) { .feat-hero__media > .dg { inset: 0 0 96px; } }
.feat-hero__media > .ly-float { z-index: 2; }
@media (max-width: 1023px) { .feat-hero__media { min-height: 360px; } }

/* #why: the statement on the screen's middle */
.feat-statement > .wrap { justify-content: center; gap: var(--s-6); }
.feat-statement .t-label { color: var(--accent); }

/* One group a screen: the head column (number, name, line, the card), the
   numbered features beside it in two columns; every other group mirrored. */
.feat > .wrap { justify-content: center; }
.feat__label { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); color: var(--accent); font-family: var(--font-mono); letter-spacing: 0.02em; }
.feat__count { color: var(--muted); }
.feat__count::before { content: "·"; margin-right: var(--s-2); }
.feat__head > h2 { margin: 0; }
.feat__head > .t-lead { margin-top: var(--s-4); color: var(--muted); max-width: 40ch; }
.feat__panel { --p-h: 340px; border-radius: var(--r-lg); margin-top: var(--s-7); }
.feat__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); align-content: center; }
.feat__item { display: grid; align-content: start; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); position: relative; }
/* the hairline over each feature takes the accent from the left as the pointer arrives */
.feat__item::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out, cubic-bezier(.2,.7,.2,1)); }
.feat__item:hover::before { transform: scaleX(1); }
.feat__num { font: var(--display-weight) clamp(32px, 2vw + 8px, 44px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.feat__item h3 { font: 500 var(--t-body)/1.35 var(--font-text); margin: var(--s-2) 0 0; }
.feat__item p { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.ground-inverse .feat__label, .ground-inverse .feat__num { color: var(--ink); }
.ground-inverse .feat__item::before { background: var(--ink); }
@media (min-width: 1024px) {
  .feat__grid { align-items: center; }
  .feat--flip .feat__head { grid-column: 8 / span 5; grid-row: 1; }
  .feat--flip .feat__list { grid-column: 1 / span 6; grid-row: 1; }
  .feat:not(.feat--flip) .feat__list { grid-column: 7 / span 6; }
}
@media (max-width: 1023px) {
  .feat__list { margin-top: var(--s-8); }
  .feat__panel { --p-h: 320px; }
}
@media (max-width: 639px) {
  .feat { --hm: 2; }
  .feat__panel { --p-h: 260px; margin-top: var(--s-6); }
  .feat__list { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
  .feat-next .frame--split { --ratio: 110%; }
}
@media (prefers-reduced-motion: reduce) { .feat__item::before { transition: none; } }
/* #next: the call card's frame drawn to its card, the two columns on their centres */
.feat-next > .wrap { justify-content: center; }
/* the band's ground sets its own height; --g-screen gives the section back its screen */
.feat-next { --g-screen: 100svh; }
@media (max-width: 639px) { .feat-next { --g-screen: 100lvh; } }
@media (min-width: 640px) { .feat-next .frame--split { --ratio: 60%; } }
@media (min-width: 1024px) { .feat-next .ind-split { align-items: center; } }

/* ══ The landing and /features in flow (main.flow: [locale]/page.tsx, features/page.tsx) ═══
   The landing drops the kit's one-section-per-screen heights: a section fixed at
   one or two screens left large empty bands wherever its content was shorter.
   Here every section is as tall as its content and spaced by one token.
   Sections on the white page carry the token above them only, so two white
   sections meet on one gap, never two; a section on its own ground (the band,
   the dark settings) carries it above and below, and the section before one
   carries it below too, so a ground never starts flush on content. On /features
   the hero keeps its screen (the hero rules below are the landing's, .hero--race);
   the industry pages keep the kit's screens. */
:root { --section-y: clamp(64px, 8vw, 112px); }

main.flow > :is(section, .section):not(.hero) { height: auto; min-height: 0; padding: var(--section-y) 0 0; }
main.flow > :is(section, .section):not(.hero) > .wrap { height: auto; }
/* a .fill visual took what the fixed screen left; in flow it gets its own height */
main.flow > .section > .wrap > .fill { flex: none; }
main.flow #inbox .app { height: clamp(460px, 62svh, 600px); }
@media (max-width: 639px) { main.flow #inbox .app { height: 520px; } }
main.flow > .section:is(.bg-band, .bg-dots, .ground-inverse),
main.flow > .section:has(+ .section:is(.bg-band, .bg-dots, .ground-inverse)) { padding-bottom: var(--section-y); }
/* the statement (#speed, letters-assemble on the dots ground) is the page's separator: the grounded
   rule above gives it the same room above and below its line, so it needs no height of its own */
.mo-la__type .nb { white-space: nowrap; }

/* ── #how-it-works: three pairs, a wider gap between the pairs than inside them. The cards sit on a
   subgrid (above), so the grid's own row gap would open inside each card too; the gap between the
   pairs is the margin above every card after the first pair instead. */
#how-it-works .features-grid { row-gap: 0; }
#how-it-works .features-grid > .card:nth-child(n + 3) { margin-top: clamp(56px, 6vw, 96px); }
@media (max-width: 639px) { #how-it-works .features-grid > .card:nth-child(n + 2) { margin-top: var(--s-8); } }
/* the close (the same component on every marketing page) is as tall as its content too: the panel,
   the name under it at half the section gap, then the links. On the landing it follows the FAQ on the
   same white page, so one gap; on the features and industry pages it follows a kit screen. */
body footer.closing { height: auto; min-height: 0; padding: var(--section-y) 0 0; }
/* the kit's closing .wrap has two rows (the close, then the links); here the links have their own band,
   so one row and no gap under the name */
body footer.closing > .wrap { height: auto; grid-template-rows: auto; row-gap: 0; }
body footer.closing .closing__cta { gap: calc(var(--section-y) / 2); }
/* the name ends the white band and stands right on the price banner: a small gap under its baseline */
body footer.closing .close__word { margin-bottom: clamp(16px, 2vw, 28px); }

/* the price banner across the page (production's yellow), the whole band one link to the demo page */
.promo-band {
  display: block; padding: var(--s-4) var(--pad); text-align: center;
  background: #fcd34d; color: #0f172a; font-size: var(--t-body); line-height: 1.5; text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}
.promo-band__price { font: 700 var(--t-lead)/1.3 var(--font-display); letter-spacing: -0.01em; }
.promo-band__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.promo-band__go .m-arrow { width: 11px; height: 11px; transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .promo-band:hover { background: #fde68a; }
  .promo-band:hover .promo-band__go .m-arrow { transform: translateX(3px); }
}
.promo-band:focus-visible { outline: 2px solid #0f172a; outline-offset: -4px; }

/* the directory and the legal row on the dark ground */
.closing__base { padding: clamp(48px, 6vw, 80px) 0 var(--s-6); }
/* a phone: room under the legal row for the chat widget's button, so it never covers the last line */
@media (max-width: 639px) { .closing__base { padding-bottom: 96px; } }
.closing__base a:hover { color: var(--ink); }
.footer__studio { color: #ff66ff; transition: color var(--dur) var(--ease); }
.closing__base .footer__studio:hover { color: var(--ink); }

/* ── Hero: as tall as its content, the words and the visual centred on each other, the proof strip
   last; the whole of it inside the first viewport at 1440x900 and 1280x800 */
main.flow > .hero--race { height: auto; min-height: 0; padding: calc(var(--nav) + clamp(24px, 5svh, 48px)) 0 0; }
main.flow > .hero--race > .wrap { height: auto; display: block; }
main.flow > .hero--race > .wrap > .hero-text { height: auto; }
.hero--race .hero__grid { grid-template-rows: auto; align-content: start; align-items: center; }
.hero--race .hero__text { align-self: center; }
.hero--race h1 .muted { color: var(--muted); }
.hero--race .btn-row { align-items: center; gap: var(--s-5); }
.hero--race .hero__art {
  height: auto; min-height: 440px; align-self: stretch;
  display: grid; place-items: center; padding: var(--s-6);
}
@media (max-width: 1023px) {
  .hero--race .hero__art { flex: none; min-height: 0; max-height: 70svh; padding: var(--s-6) var(--s-4); }
}

/* the proof strip: one row of four, divided by hairlines; big tabular numerals over small labels */
.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(28px, 5svh, 56px) 0 0; border-top: 1px solid var(--line); }
.proof-strip__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-1); padding: var(--s-5) var(--s-5) 0; border-left: 1px solid var(--line); }
.proof-strip__item:first-child { border-left: 0; padding-left: 0; }
.proof-strip__value { margin: 0; font: var(--display-weight) var(--t-stat)/1.05 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.proof-strip__label { font-size: var(--t-small); line-height: 1.4; color: var(--muted); }
@media (max-width: 639px) {
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-strip__item { padding: var(--s-4) 0 var(--s-4) var(--s-4); }
  .proof-strip__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof-strip__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ── The reply race (ReplyRace): one thread on the hero's lit glass. White fragment surface, the
   page's ink and accent, the kit's chat sizes. Hidden pieces keep their room (no layout shift). */
.race {
  width: 100%; display: grid; place-items: center;
  --fx-bg: #ffffff; --fx-ink: var(--ink); --fx-muted: var(--muted); --fx-accent: var(--accent); --fx-accent-ink: #ffffff;
  --ui-font: var(--font-text); --ui-mono: var(--font-mono); --ui-radius: 14px;
}
.race__stack { position: relative; z-index: 1; width: min(392px, 100%); padding-top: 28px; }
/* the typical business, faint behind the thread: it has not answered yet */
.race__ghost {
  position: absolute; top: 0; left: 22px; right: -22px; height: 72px; z-index: 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: 7px 14px;
  border-radius: 14px; background: rgb(255 255 255 / .42); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55);
  font: 500 12px/16px var(--font-text); color: color-mix(in oklab, var(--ground-ink) 72%, transparent);
}
.race__ghost-when { font-weight: 400; }
.race__card { position: relative; z-index: 1; width: 100%; overflow: hidden; }
.race__channel { width: 20px; height: 20px; flex: none; }
.race__body { display: grid; gap: 8px; padding: 12px 16px; }
.race__body > .ui-msg--me { max-width: 270px; }
.race__q { display: grid; gap: 2px; }
.race__q time { justify-self: end; font-size: 11px; line-height: 14px; color: var(--u-muted); font-variant-numeric: tabular-nums; }
/* the signature: the reply timer, counting in the mono face with tabular figures, then locked */
.race__timer {
  justify-self: center; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px;
  border-radius: 999px; font: 500 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; white-space: nowrap;
  background: var(--u-bg); color: var(--u-ink); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent), 0 4px 14px -8px color-mix(in oklab, var(--accent) 60%, transparent);
  transition: opacity 260ms var(--ease), transform 360ms var(--ease), background-color 320ms var(--ease), color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.race__count { min-width: 15ch; text-align: center; }
.race__pulse { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); transition: background-color 320ms var(--ease); }
.race__timer.is-counting .race__pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--accent);
  animation: race-pulse 1s cubic-bezier(.2, .7, .2, 1) infinite;
}
@keyframes race-pulse { from { transform: scale(.45); opacity: .45; } to { transform: scale(1.5); opacity: 0; } }
.race__timer.is-done { background: #e7f4ec; color: #17673f; box-shadow: inset 0 0 0 1px rgb(23 103 63 / .2); }
.race__timer.is-done .race__pulse { background: #17673f; }
.race__slots { display: flex; flex-wrap: wrap; gap: 6px; }
.race__slot {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--accent); background: var(--u-bg);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 38%, transparent);
  transition: opacity 260ms var(--ease), transform 360ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.race__slot.is-picked { background: var(--accent); color: #ffffff; box-shadow: none; animation: race-press 320ms var(--ease); }
@keyframes race-press { 40% { transform: scale(.94); } }
/* the status stack, docked to the card's foot */
.race__status { display: grid; padding: 6px 16px 8px; border-top: 1px solid var(--u-line); background: var(--u-fill); transition: opacity 260ms var(--ease), transform 360ms var(--ease); }
.race__line { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 13px; line-height: 18px; color: var(--u-text-2); transition: opacity 260ms var(--ease), transform 360ms var(--ease); }
.race__line i { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #e7f4ec; color: #17673f; font: 600 11px/1 var(--font-text); font-style: normal; }
.race :is(.race__timer, .race__slot, .race__line, .race__status).is-hidden { opacity: 0; transform: translateY(6px); }
/* the race is static so the kit's pause disc takes the panel's corner, 12px in, like every loop's */
.hero--race .hero__art > .race { position: static; }
@media (max-width: 639px) {
  .race__ghost { right: 0; }
  .race__body { gap: 8px; padding: 10px 12px 12px; }
}

/* ── #cost: without and with, side by side */
.cost__card { display: grid; align-content: start; gap: var(--s-5); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); }
.cost__card h3 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; }
.cost__card ul { display: grid; }
.cost__card li { display: flex; align-items: flex-start; gap: var(--s-3); padding-block: var(--s-3); border-top: 1px solid var(--line); line-height: 1.45; }
.cost__mark { display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 50%; }
.cost__mark svg { width: 14px; height: 14px; }
.cost__card--without { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.cost__card--without h3 { color: var(--muted); }
.cost__card--without .cost__mark { background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--muted); }
.cost__card--with {
  color: var(--ink); border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent);
  background: linear-gradient(155deg, color-mix(in oklab, #c6d3df 55%, #ffffff), #ffffff 62%);
  box-shadow: 0 24px 48px -32px color-mix(in oklab, var(--accent) 50%, transparent);
}
.cost__card--with .cost__mark { background: var(--accent); color: #ffffff; }

/* ── #how-it-works: the two new tiles, still fragments centred on their glass panels */
.mini-stage { display: grid; place-items: center; padding: var(--s-5); }
.takeover, .funnel { width: min(380px, 100%); font-size: 13px; }
.takeover .ui-head .ui-avatar { width: 22px; height: 22px; font-size: 10px; }
.takeover__state { display: flex; align-items: center; gap: 8px; padding: 10px 14px 0; font-size: 12px; }
.takeover__chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-weight: 500; }
.takeover__chip--needs { background: var(--u-fill-2); color: var(--u-muted); }
.takeover__chip--took { background: color-mix(in oklab, var(--accent) 12%, #ffffff); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent); }
.takeover__arrow { color: var(--u-muted); }
.takeover__thread { display: grid; gap: 8px; padding: 12px 14px; }
.takeover__thread > .ui-msg { max-width: 85%; padding: 8px 12px; font-size: 13px; line-height: 18px; }
.takeover__thread > .ui-msg--them { justify-self: start; border-radius: 14px 14px 14px 4px; background: var(--u-fill-2); color: var(--u-ink); }
.takeover__thread > .ui-msg--staff { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--accent); color: #ffffff; }
.takeover__foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--u-line); }
.takeover__hand { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--u-line-2); }
.takeover__hand .ui-agent { width: 16px; height: 16px; }
.funnel__bars { display: grid; gap: 10px; padding: 14px 16px; }
.funnel__bars > li { display: grid; grid-template-columns: 88px minmax(0, 1fr) 36px; align-items: center; gap: 10px; }
.funnel__label { color: var(--u-text-2); }
.funnel__bar { height: 10px; border-radius: 999px; background: var(--u-fill-2); overflow: hidden; }
.funnel__bar > i { display: block; width: var(--f); height: 100%; border-radius: inherit; background: color-mix(in oklab, var(--accent) 40%, #ffffff); }
.funnel__bars > li:last-child .funnel__bar > i { background: var(--accent); }
.funnel__n { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.funnel__foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 14px; border-top: 1px solid var(--u-line); }
.funnel__campaign { width: 100%; font-size: 12px; color: var(--u-muted); }
.funnel__sync { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--u-bg); box-shadow: inset 0 0 0 1px var(--u-line-2); }
.funnel__sync :is(img, svg) { width: 13px; height: 13px; }

/* ── #industries: a card per trade with its own page (its glyph in an accent tile, its name, what it
   books, a large faint copy of the glyph in the corner), then a quiet dashed "and more" tile */
.verticals__grid { list-style: none; margin: 0; padding: 0; }
.verticals__cell { grid-column: span 3; display: grid; }
.vertical {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: var(--s-3);
  min-height: 280px; padding: var(--s-6);
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card);
  color: var(--ink); text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.vertical__ico {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-3);
  border-radius: 14px; color: var(--accent);
  background: color-mix(in oklab, var(--accent) 9%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 18%, transparent);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.vertical__glyph { width: 26px; height: 26px; }
.vertical__name { font: 500 var(--t-card)/1.25 var(--font-text); }
.vertical__line { font-size: var(--t-small); line-height: 1.5; color: var(--muted); max-width: 30ch; }
.vertical__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s-4); font-size: var(--t-small); font-weight: 500; color: var(--accent); }
.vertical__go .m-arrow { width: 11px; height: 11px; transition: transform var(--dur) var(--ease); }
.vertical__mark {
  position: absolute; z-index: -1; right: -32px; bottom: -36px; width: 136px; height: 136px;
  color: var(--accent); opacity: .07; stroke-width: 1.25;
  transform: rotate(-8deg); transition: transform calc(var(--dur) * 2) var(--ease), opacity var(--dur) var(--ease);
}
.vertical--more { justify-content: flex-end; border-style: dashed; background: transparent; }
.vertical--more .vertical__name { font-family: var(--font-display); font-size: var(--t-h3); letter-spacing: -0.02em; }
.vertical__all { align-self: flex-start; margin-top: var(--s-3); font-size: var(--t-small); }
@media (hover: hover) and (pointer: fine) {
  a.vertical:hover { border-color: color-mix(in oklab, var(--accent) 45%, transparent); transform: translateY(-3px); box-shadow: 0 18px 40px -24px color-mix(in oklab, var(--accent) 45%, transparent); }
  a.vertical:hover .vertical__ico { background: var(--accent); color: #ffffff; }
  a.vertical:hover .vertical__mark { opacity: .12; transform: rotate(0deg) scale(1.06); }
  a.vertical:hover .vertical__go .m-arrow { transform: translateX(3px); }
}
a.vertical:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .vertical, .vertical__mark, .vertical__ico, .vertical__go .m-arrow { transition: none; } }
@media (max-width: 1023px) { .verticals__cell { grid-column: span 6; } .vertical { min-height: 240px; } }
@media (max-width: 639px) { .verticals__cell { grid-column: 1 / -1; } .vertical { min-height: 0; } .vertical__mark { width: 128px; height: 128px; } }

/* ── #pricing: the trust row under the plans */
.trust { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); margin-top: var(--s-7); }
.trust > li { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.trust svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

/* ── The testimonial slot (HomeTestimonial, off until real content exists) */
.quote { display: grid; gap: var(--s-5); max-width: 880px; margin: 0; }
.quote blockquote { margin: 0; font: var(--display-weight) var(--t-h3)/1.3 var(--font-display); letter-spacing: -0.01em; }
.quote__who { display: flex; flex-wrap: wrap; gap: var(--s-2); color: var(--muted); }
.quote__name { color: var(--ink); font-weight: 500; }
.quote__metric { display: flex; align-items: baseline; gap: var(--s-3); }
.quote__metric-value { font: var(--display-weight) var(--t-stat)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.quote__metric-label { color: var(--muted); }

/* ── The close: a contained dark panel, the accent glowing from its top right */
.close-panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--s-7) var(--gutter);
  padding: clamp(32px, 5vw, 72px); border-radius: var(--r-lg);
  background-image: radial-gradient(110% 140% at 100% 0%, color-mix(in oklab, #4f46e5 42%, transparent), transparent 62%);
}
.close-panel__text { display: grid; gap: var(--s-4); }
.close-panel h2 { margin: 0; max-width: 18ch; }
.close-panel .t-lead { max-width: 52ch; color: var(--muted); }
.close-panel__actions { display: grid; gap: var(--s-4); justify-items: start; }
.close-panel__micro { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) { .close-panel { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@media (max-width: 639px) { .close-panel .btn-row, .close-panel .btn-row > .btn { width: 100%; } }

/* ── Nav: the language switch set apart from the page links */
.nav__lang { display: inline-flex; align-items: center; gap: 6px; padding-left: var(--s-4); border-left: 1px solid var(--line); }
/* a flag: a 3:2 box with rounded corners and a hairline, so white and pale fields hold their edge */
.flag { display: inline-block; flex: none; width: 21px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); vertical-align: middle; }
.flag > svg { display: block; width: 100%; height: 100%; }
.nav__lang .flag { width: 24px; height: 16px; }
/* the languages line in pricing: both flags side by side where the other lines have one glyph */
.flag-pair { display: inline-flex; flex: none; align-items: center; gap: 4px; }
.flag-pair > .flag { width: 21px; height: 14px; }
/* nav-centre keeps the words on the page's axis while there is room; the kit's side columns could
   shrink under their content, laying the actions over the last words (Spanish below 1440, English
   below 1200). Here each side is at least its content, so the words move off the axis instead of
   under the actions, and on a laptop they sit closer, as the kit already does under 1280. */
@media (min-width: 1024px) {
  .nav--centre .nav__bar { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: var(--s-6); }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .nav--centre .nav__links { gap: 0; }
  .nav--centre .nav__link { padding: 0 var(--s-2); }
  .nav--centre .nav__link::before, .nav--centre .nav__link[aria-current="page"]::after { left: var(--s-2); right: var(--s-2); }
  .nav--centre .nav__actions { gap: var(--s-3); }
  .nav--centre .nav__lang { padding-left: var(--s-3); }
}
/* a small laptop has no room for all six words beside the actions (Spanish least of all): the two
   that only jump to a section of this page (the inbox, the FAQ; both stay in the footer) wait for a
   wider screen; under 1024 the menu holds them all */
@media (min-width: 1024px) and (max-width: 1199px) { .nav--centre .nav__item--wide { display: none; } }

/* ── The chat mocks' input placeholder: the kit's soft grey reads 3.9:1 on the input's fill; the
   fragment's muted ink keeps it a placeholder and clears 4.5:1 */
.ui-chat__ph { color: var(--u-muted); }
