/* ==========================================================================
   StealthGPT homepage prototype · dark mode · built from the Fifth draft
   Colour values are the Dark Mode values of the 📚 Library variables.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Code"; src: url("assets/fonts/fira-code.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("assets/fonts/barlow-semi-condensed-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("assets/fonts/barlow-semi-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root.dark {
  /* 📚 Library, Dark Mode */
  --bg: #000000;              /* color/solid-white */
  --surface: #18181e;         /* color/surface */
  --text: #f0f0f4;            /* color/primary-text */
  --text-2: #a7a7be;          /* color/secondary-text */
  --border: #414158;          /* color/border */
  --icon: #545470;            /* color/icon */
  --near-white: #f8f8fb;      /* color/near-black */
  --primary: #5246f0;         /* color/primary: fills only */
  --primary-hover: #635bd7;   /* primary/600 */
  --primary-50: #0c0a29;      /* primary/50 */
  --cta: #ff3f00;             /* color/secondary: CTAs only */
  --cta-hover: #cc3200;       /* red-orange/600, the library's Red-Orange Hover */
  --red: #d92b3a;             /* red/500 */
  --red-50: #2b080b;          /* red/50 */
  --green: #1a9e5f;           /* green/500 */
  --green-50: #072c1a;        /* green/50 */
  --green-600: #27c077;       /* green/600 */
  --teal: #5bc2b8; --amber: #f0b65a; --amethyst: #b98ee0; --orchid: #e07aae; --cyan: #4fcbec; --forest: #5ab888; /* color/feat/* */

  /* Violet as text. #5246F0 is 3.5:1 on black and 2.9:1 on surface, below the 4.5:1
     needed for body-size text, so links use the library's primary/700 (6.5:1 / 5.4:1).
     To compare with the brand violet, set --link: var(--primary). */
  --link: #8a84e1;            /* primary/700 */
  --chip-humanize: var(--link);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fira Code", ui-monospace, Menlo, Consolas, monospace;
  --cond: "Barlow Semi Condensed", "Inter", sans-serif;

  --gutter: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/24px var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@layer theme, base, components, utilities;
@layer base {
  img, svg { display: block; }
  img { max-width: 100%; height: auto; }
  h1, h2, h3, p, ul, dl, dd, figure, blockquote, pre { margin: 0; }
  ul { padding: 0; list-style: none; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  i { font-style: normal; }
  :focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
}
::selection { background: var(--primary); color: #fff; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.sprite, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ic { flex: none; width: 1em; height: 1em; fill: currentColor; }
.ic-14 { width: 14px; height: 14px; } .ic-16 { width: 16px; height: 16px; }
.ic-20 { width: 20px; height: 20px; } .ic-24 { width: 24px; height: 24px; }
.ic--primary { color: var(--primary); }

/* Film grain, matched to the Figma noise effect (white, mean ≈ 4%, peak 10%) */
.grain { position: absolute; inset: 0; pointer-events: none; background: url("assets/img/grain.png") 0 0 / 96px 96px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 44px; padding: 0 16px; border-radius: 8px;
  font: 500 14px/20px var(--sans); color: #fff; white-space: nowrap;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 36px; padding: 0 20px; font-size: 12px; line-height: 16px; }
.btn--primary { background: var(--primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--cta { background: var(--cta); }
.btn--cta:hover { background: var(--cta-hover); }

.link { color: var(--link); font: 500 14px/20px var(--sans); display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.link:hover { color: var(--text); }
.link--u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link--strong { font-weight: 600; }
.link .ic { transition: transform .25s var(--ease); }
.link:hover .ic { transform: translate(2px, 0); }
.link--strong:hover .ic { transform: translate(2px, -2px); }

.head { max-width: 720px; margin: 0 auto; text-align: center; }
.head--wide { max-width: 800px; }
.head h2, .faq h2, .api h2, .app--ios h2 { font: 500 40px/56px var(--serif); letter-spacing: 0; }
.head p { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.note { font-size: 12px; line-height: 16px; color: var(--text-2); }
.note--center { text-align: center; }

/* ---------- Square reveal ("Letters"): hero headline and benchmark heading ---------- */
.sr-wrap { position: relative; }
.sr-wrap > canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.sr-text .w { white-space: nowrap; }
.sr-text .c { color: transparent; }
.sr-text .c.in { color: var(--link); }
.sr-text .c.ink { color: var(--text); transition: color 240ms ease-out; }
.js .sr-text:not(.is-built) { visibility: hidden; }
.sr-text.is-replayable { cursor: pointer; }

/* ---------- Scroll reveals (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --imgw: max(1000px, 125.55vw);
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(584px, calc(584px + (100vw - 1280px) * .2), 712px);
  padding-bottom: 24px; display: flex;
}
.hero__bg { position: absolute; inset: 0; left: 50%; width: min(100%, 1920px); transform: translateX(-50%); z-index: -2; }
.hero__bg img { position: absolute; left: 0; bottom: calc(var(--imgw) * -.0205); width: var(--imgw); max-width: none; }
.hero > .grain { z-index: -1; }
.hero__in { display: flex; align-items: center; justify-content: space-between; gap: 56px; padding-right: calc(var(--gutter) + 32px); }
.hero__copy { flex: 0 1 500px; min-width: 440px; }
.hero__title { font: 400 44px/60px var(--serif); color: var(--text); }
.hero__sub { margin-top: 24px; }
.hero__trust { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 500 14px/20px var(--sans); }
.hero__rank { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-2); }

.hero__ui { flex: 1 1 380px; max-width: 580px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero__ui .preview-composer {
  height: 220px;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: var(--bg);
}
.hero__ui .preview-composer:focus-within { box-shadow: 0 0 0 1px var(--border); }
.hero__ui .preview-composer button[aria-label="Humanize text"] { border-radius: 50%; }
@media (max-width: 960px) {
  .hero__ui .preview-composer { height: 188px; }
}
.composer { display: flex; flex-direction: column; min-height: 220px; padding: 16px 16px 12px; background: var(--bg); border-radius: 16px; box-shadow: 0 0 0 1px transparent; transition: box-shadow .25s; cursor: text; }
.composer:focus-within { box-shadow: 0 0 0 1px var(--border); }
.composer textarea {
  flex: 1; display: block; width: 100%; min-height: 96px; resize: none; border: 0; outline: 0; background: none;
  padding: 2px 4px; font: 400 16px/24px var(--sans); color: var(--text); caret-color: var(--link);
}
.composer textarea::placeholder { color: var(--text-2); opacity: 1; }
.composer__bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.composer__gap { flex: 1; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.model { height: 36px; padding: 0 16px; border-radius: 999px; font: 500 12px/16px var(--sans); color: var(--text); transition: background-color .2s; }
.model span { color: var(--text-2); margin-right: 6px; }
.model:hover { background: var(--surface); }
.send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; transition: background-color .2s, transform .25s var(--ease); }
.send:hover { background: var(--primary-hover); transform: translateY(-1px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 20px; background: var(--bg); font: 500 13px/18px var(--sans); color: #fff; transition: background-color .2s, transform .25s var(--ease); }
.chip:hover { background: var(--surface); transform: translateY(-1px); }

/* Hero entrance: headline letters first, then the rest settles in */
.js .hero [data-in] { opacity: 0; transform: translateY(10px); }
.js .hero.is-ready [data-in] { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }

/* ==========================================================================
   Strips: "Tested against" and "Humanize AI Text in Multiple Languages"
   One component for both: Sub H2 label + marquee (+ optional link).
   ========================================================================== */
.strip__in { display: flex; align-items: center; gap: 24px 44px; min-height: 100px; }
.strip__label { flex: none; font: 700 14px/16px var(--cond); text-transform: uppercase; }
.strip__marquee { flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.strip__track { display: flex; align-items: center; width: max-content; animation: marquee var(--dur, 48s) linear infinite; }
.strip__marquee:hover .strip__track { animation-play-state: paused; }
.strip__track li { flex: none; display: flex; align-items: center; gap: 10px; padding-right: 36px; font: 400 14px/20px var(--mono); color: var(--text-2); white-space: nowrap; }
.strip__track span { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 14px; }
.strip__link { flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Detector logos: color/icon grey by default, full colour for the one under the pointer */
.strip__track .logo { position: relative; padding-right: 0; margin-right: 56px; height: 32px; }
.logo img { display: block; height: 32px; width: auto; max-width: none; transition: opacity .25s; }
.logo img + img { position: absolute; left: 0; top: 0; opacity: 0; }
.logo:hover img { opacity: 0; }
.logo:hover img + img { opacity: 1; }
.logo--pangram img { width: 120px; object-fit: contain; opacity: 0; }
.logo--pangram::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #545470;
  -webkit-mask: url("./assets/img/pangram.png") center / contain no-repeat;
  mask: url("./assets/img/pangram.png") center / contain no-repeat;
  transition: opacity .25s;
}
.logo--pangram:hover img { opacity: 1; }
.logo--pangram:hover::before { opacity: 0; }
.strip__marquee.is-static { -webkit-mask-image: none; mask-image: none; }
.strip__marquee.is-static .strip__track { flex-wrap: wrap; width: auto; row-gap: 16px; padding: 24px 0; animation: none; }
.strip--detectors .strip__marquee.is-static .strip__track > [aria-hidden="true"] { display: none; }

/* ==========================================================================
   Social proof
   ========================================================================== */
.proof { background: var(--surface); padding: 88px 0; }
.proof__in { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; text-align: center; }
.stats dt { font: 600 48px/72px var(--serif); }
.stats dd { margin-top: 4px; }
.stats > div { display: flex; flex-direction: column; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }
.quote { display: flex; flex-direction: column; gap: 14px; min-height: 200px; padding: 24px; background: var(--bg); border-radius: 10px; }
.stars { display: flex; gap: 2px; color: var(--primary); }
.quote blockquote { font: italic 400 14px/22px var(--serif); }   /* Stealth/Quote small */
.quote cite { font: 600 14px/20px var(--sans); }

/* ==========================================================================
   Humanized Results · before / after with the scroll-driven text morph
   ========================================================================== */
.ba { padding: 96px 0; }
.ba__in { display: flex; flex-direction: column; gap: 48px; }
.ba .head h2 { text-wrap: balance; }   /* two even lines, no single word left alone */
.ba__cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* the study finding in readable text, its method in the small print 16px under it */
.ba__finding { max-width: 640px; margin: 0 auto; text-align: center; font-size: 16px; line-height: 24px; color: var(--text); }
.ba__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: -24px; }
.ba__note { max-width: 760px; margin: -24px auto 0; }
.ba__note a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; white-space: nowrap; transition: color .2s; }
.ba__note a:hover { color: var(--text); }
.ba__card { display: flex; flex-direction: column; min-width: 0; padding: 32px; background: var(--surface); border-radius: 16px; }
.ba__label { font: 700 12px/16px var(--cond); text-transform: uppercase; color: var(--text-2); white-space: pre; min-height: 16px; }
.ba__text { margin-top: 20px; padding: 0 4px; font: 400 16px/24px var(--serif); color: var(--text); }
.ba__text mark { --hl: var(--red); color: inherit; background: var(--hl); padding: .08em 0; box-shadow: 4px 0 0 var(--hl), -4px 0 0 var(--hl); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ba__text--after mark { --hl: var(--green); }
.ba__card hr { width: 100%; height: 1px; margin: 24px 0; border: 0; background: var(--border); opacity: .5; }
.ba__score { margin-top: auto; display: flex; align-items: baseline; gap: 14px; }
.ba__num { font: 500 32px/34px var(--cond); font-variant-numeric: tabular-nums; min-width: 1.6em; transition: color .3s; }
.ba__num--red, .ba__num.is-low { color: var(--red); }
.ba__num--green { color: var(--green); }

.ba__arrow { position: absolute; left: 50%; top: 50%; z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); }
.ba__ring { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); fill: none; }
.ba__ring circle { stroke: var(--green); stroke-width: 1; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }

/* The morph: both texts share one set of cells, laid out as real lines of type */
.morph { margin-top: 20px; font: 400 16px/24px var(--serif); color: var(--text); user-select: none; }
.morph__row { display: flex; width: max-content; height: 24px; white-space: pre; transform-origin: 0 50%; }
.morph__row > i { display: block; height: 24px; line-height: 24px; flex: none; }
.morph .cap { width: 4px; }
.morph .f { background: var(--green); }
.morph .s { font: 500 13px/24px var(--mono); color: var(--link); text-align: center; overflow: visible; }
.morph .e { display: none; }
.ba__label .s { color: var(--link); }
.ba__label i { display: inline-block; text-align: center; }
.ba__measure { position: absolute; left: 0; right: 0; visibility: hidden; pointer-events: none; }
.ba__card--after { position: relative; }

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding: 96px 0; }
.features__pin { display: flex; flex-direction: column; gap: 56px; }
.features__body { display: grid; grid-template-columns: 400fr 720fr; gap: 48px; align-items: start; }
.tools { min-width: 0; }
.tool { padding-top: 20px; }
.tool:first-child { padding-top: 0; }
.tool__name { display: block; width: 100%; text-align: left; font: 400 18px/28px var(--sans); color: var(--text-2); transition: color .25s; }
.tool__name:hover { color: var(--text); }
.tool.is-active .tool__name { font-weight: 600; color: var(--text); }
.tool__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.tool__body > div { overflow: hidden; }
.tool__body p { padding: 8px 0; font-size: 14px; line-height: 20px; color: var(--text-2); max-width: 400px; opacity: 0; transition: opacity .3s; }
.tool.is-active .tool__body { grid-template-rows: 1fr; }
.tool.is-active .tool__body p { opacity: 1; transition-delay: .15s; }
.tool__track { display: block; height: 1px; margin-top: 20px; background: var(--border); }
.tool.is-active .tool__track { height: 2px; }
.tool__track i { display: block; height: 100%; width: 0; background: var(--text); }
.tool.is-active .tool__track i { width: 33%; }
.is-live .tool.is-active .tool__track i { width: 100%; animation: track var(--dur, 8s) linear both; }
.is-live.is-paused .tool.is-active .tool__track i { animation-play-state: paused; }
.is-live.is-manual .tool.is-active .tool__track i { animation: track .7s var(--ease) both; animation-play-state: running; }

/* Scroll-driven tabs (desktop): the block pins below the nav and the page scroll steps
   through the tools. --pin-len (how long it stays pinned) and --f (progress inside the
   current tool) are set by main.js. Below 760px of height only the list + stage pin and
   the header scrolls away; on narrow or very short screens the tabs fall back to tap + timer. */
.features { --pin-h: 672px; }            /* header 96 + gap 56 + stage 520 */
@media (min-width: 961px) and (min-height: 760px) {
  .is-scrolly .features__in { height: calc(var(--pin-h) + var(--pin-len, 0px)); }
  .is-scrolly .features__pin { position: sticky; top: calc((100vh + 56px - var(--pin-h)) / 2); }
}
@media (min-width: 961px) and (min-height: 600px) and (max-height: 759.98px) {
  .is-scrolly .features__pin { height: calc(var(--pin-h) + var(--pin-len, 0px)); }
  .is-scrolly .features__body { position: sticky; top: calc((100vh + 56px - 520px) / 2); }
}
.is-scrolly .tool.is-active .tool__track i { width: calc(var(--f, 0) * 100%); animation: none; }
@keyframes track { from { width: 0; } to { width: 100%; } }

.stage { position: relative; height: 520px; overflow: hidden; border-radius: 16px; background: var(--bg); isolation: isolate; }
.stage__bg { position: absolute; inset: 0; z-index: -2; }
.stage__bg img { position: absolute; left: -31.94%; top: -28.85%; width: 159.72%; max-width: none; transition: transform 1.6s var(--ease); will-change: transform; }
.stage > .grain { z-index: -1; }
.stage[data-active="1"] .stage__bg img { transform: translate(6%, 4%) scale(1.08) rotate(6deg); }
.stage[data-active="2"] .stage__bg img { transform: translate(-7%, 8%) scale(1.12) rotate(-5deg); }
.stage[data-active="3"] .stage__bg img { transform: translate(8%, -5%) scale(1.15) rotate(12deg); }

.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .5s .15s, visibility 0s; }
.panel { width: min(588px, 100%); display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--bg); border-radius: 16px; }
.msg { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface); border-radius: 16px; }
.msg b { font: 500 16px/24px var(--sans); }
.msg p { font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.file { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: 10px; background: var(--bg); font: 500 13px/18px var(--sans); }
.file i { color: var(--text-2); font-weight: 400; }
.steps { padding: 0 16px; }
.steps .ic { color: var(--link); }
.steps li { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; line-height: 20px; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.pill { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--primary); color: #fff; font: 700 12px/16px var(--sans); white-space: nowrap; }
.pill--dim { background: var(--primary-50); color: var(--text); }
/* Scores: "Chip / AI pass" (SealCheck Thin) and "Chip / AI" (Robot Thin) from the Dashboard file's AI Chips, Stealth/Inter/text-xxs */
.score { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 8px; border-radius: 6px; font: 400 11px/16px var(--sans); white-space: nowrap; }
.score--pass { background: var(--green-50); color: var(--green-600); }
.score--ai { background: var(--red-50); color: var(--red); }
.steps .score .ic { flex: none; color: inherit; }
.reply { font-size: 16px; line-height: 24px; }

/* Scene choreography: runs each time a scene becomes active */
.is-live .scene.is-active .msg { animation: rise .5s var(--ease) both .1s; }
.is-live .scene.is-active .steps li { animation: rise .45s var(--ease) both calc(.55s + var(--i) * .5s); }
.is-live .scene.is-active .steps .pill, .is-live .scene.is-active .steps .score { animation: pop .4s var(--ease) both calc(.8s + var(--i) * .5s); }
.is-live .scene.is-active .reply { animation: rise .5s var(--ease) both 2.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Benchmark
   ========================================================================== */
.bench { padding: 96px 0 48px; }
.bench__in { display: flex; flex-direction: column; gap: 48px; }
.bench__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.table th, .table td { padding: 0; height: 56px; font-weight: 400; vertical-align: middle; }
.table th:first-child { width: 30.14%; padding-left: 20px; text-align: left; font-size: 16px; line-height: 24px; }
.table td, .table thead th { text-align: center; }
.table thead th { height: 64px; font: 500 16px/24px var(--sans); }
.table thead th:first-child { font: 400 16px/24px var(--sans); color: var(--text-2); }
.table thead img { margin: 0 auto; }
.table tbody tr:nth-of-type(even) > * { background: var(--surface); }
.table td { font-size: 16px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.table td:nth-child(2) { font-weight: 600; color: var(--text); }
.table__group th { height: 48px; font-weight: 600 !important; background: none !important; }
.table__mean > * { font-weight: 600 !important; }
.table__links .link { font-size: 14px; }
.bench__notes { display: flex; flex-direction: column; gap: 12px; max-width: 760px; padding-top: 16px; }
.bench__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ==========================================================================
   API
   ========================================================================== */
.api { padding-top: 48px; }
.api__card { display: flex; flex-direction: column; gap: 32px; padding: 40px 40px 32px; background: var(--surface); border-radius: 16px; }
.api__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.api__copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.api h2 { font-size: 32px; line-height: 40px; }
.api__lead { margin-top: 12px; color: var(--text-2); }
.api h3 { margin-top: 24px; font: 600 16px/24px var(--sans); }
.api h3 + p { margin: 6px 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
.api__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
.api__more { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 32px; border-top: 1px solid var(--border); }

.code { min-width: 0; background: var(--bg); border-radius: 14px; overflow: hidden; }
.code figcaption { padding: 16px 20px; font: 600 14px/20px var(--sans); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.code pre { padding: 20px; overflow-x: auto; font: 400 14px/20px var(--mono); color: var(--text-2); tab-size: 2; }
.code code { font: inherit; }
.code__note { padding: 16px 20px; font-size: 14px; line-height: 20px; color: var(--text-2); border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.t-cmd { color: var(--amethyst); } .t-flag { color: var(--orchid); } .t-key { color: var(--cyan); } .t-str { color: var(--forest); } .t-bool { color: var(--amber); }

/* ==========================================================================
   Apps
   ========================================================================== */
.apps { padding: 16px 0; }
.apps__in { display: grid; grid-template-columns: 768fr 384fr; gap: 16px; }
.app { position: relative; min-height: 400px; overflow: hidden; background: var(--surface); border-radius: 16px; }
.app__copy { display: flex; flex-direction: column; align-items: flex-start; }
.app--ios .app__copy { height: 100%; max-width: 426px; padding: 32px; }
/* both cards share one title and text size: Stealth/H4 Regular and Text-base */
.app h2 { font: 500 26px/36px var(--serif); }
.app__copy p { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--text-2); }
.app__get { margin-top: auto; padding-top: 32px; display: flex; align-items: flex-end; gap: 16px; }
.qr { padding: 8px; background: var(--bg); border-radius: 8px; }
/* desktop shows the QR to scan; tablet and phone show the store button instead */
.btn-store { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--text); color: var(--surface); font: 500 14px/20px var(--sans); white-space: nowrap; transition: background-color .2s; }
.btn-store:hover { background: #fff; }
.app__phone { position: absolute; right: 0; top: 0; bottom: 0; width: 340px; }
.app__phone img { position: absolute; left: 18px; top: 44px; width: 290px; max-width: none; transition: transform .8s var(--ease); }
.app--ios:hover .app__phone img { transform: translateY(-12px); }

.app--chrome { display: flex; flex-direction: column; }
.app--chrome .app__copy { padding: 24px 24px 24px; }
.btn-pill { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px 0 14px; border: 1px solid var(--text-2); border-radius: 24px; font: 500 13px/16px var(--sans); transition: background-color .2s, border-color .2s; }
.btn-pill:hover { background: var(--bg); border-color: var(--text); }
.app__art { position: relative; flex: 1; min-height: 164px; overflow: hidden; background: var(--bg); isolation: isolate; }
.app__artbg { position: absolute; left: -230px; top: -200px; width: 700px; max-width: none; z-index: -2; }
.app__art > .grain { z-index: -1; }
.popup { position: absolute; left: 50%; top: 29px; width: 264px; margin-left: -132px; padding: 20px 19px; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; transition: transform .8s var(--ease); }
.app--chrome:hover .popup { transform: translateY(-10px); }
.popup__tabs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; padding: 3px; background: var(--surface); border-radius: 10px; font: 500 13px/29px var(--sans); text-align: center; color: var(--text-2); }
.popup__tabs .is-on { background: var(--bg); border-radius: 8px; color: var(--text); }
.popup__area { margin-top: 12px; height: 120px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; line-height: 18px; color: var(--text-2); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 80px 0; }
.faq__in { display: grid; grid-template-columns: 449fr 671fr; gap: 48px; align-items: start; }
.faq h2 { font-size: 32px; line-height: 40px; }
.faq__head p { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.faq__head a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.faq__row { border-bottom: 1px solid var(--border); }
.faq__row:last-child { border-bottom: 0; }
.faq__row h3 { font: inherit; }
.faq__row button { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 20px 8px 24px 0; text-align: left; font: 400 16px/24px var(--sans); transition: color .2s; }
.faq__row button:hover { color: #fff; }
.faq__row button .ic { transition: transform .4s var(--ease); }
.faq__row.is-open button { font-weight: 500; padding-bottom: 16px; }
.faq__row.is-open button .ic { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 24px; opacity: 0; transition: opacity .3s; }
.faq__a a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.faq__a a:hover { color: var(--text); }
.faq__row.is-open .faq__a { grid-template-rows: 1fr; }
.faq__row.is-open .faq__a p { opacity: 1; transition-delay: .1s; }

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.cta { padding: 0 0 96px; }
.cta__stage { position: relative; display: flex; align-items: center; min-height: 360px; overflow: hidden; background: var(--bg); border-radius: 16px; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { position: absolute; left: 21.92%; top: 68.9%; width: max(126.54%, 1000px); max-width: none; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 20%); mask-image: linear-gradient(90deg, transparent 5%, #000 20%);
  animation: drift 26s ease-in-out infinite alternate; }
.cta__stage > .grain { z-index: -1; }
@keyframes drift { from { transform: translateY(-50%) scale(1); } to { transform: translateY(-52%) translateX(-2.5%) scale(1.06); } }
@keyframes drift-m { from { transform: scale(1); } to { transform: scale(1.08); } }
.cta__copy { width: min(460px, 100%); margin-left: 64px; padding: 48px 0; display: flex; flex-direction: column; align-items: flex-start; }
.cta__copy h2 { font: 400 40px/56px var(--serif); }
.cta__copy p { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.cta__copy .btn { margin-top: 40px; }

/* ==========================================================================
   Still deciding
   ========================================================================== */
.ask { padding-bottom: 96px; }
.ask__in { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.ask h2 { font: 600 22px/30px var(--serif); }
.ask p { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.ask__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ask__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--icon); font: 400 14px/20px var(--sans); white-space: nowrap; transition: box-shadow .2s, background-color .2s, transform .25s var(--ease); }
.ask__btn:hover { box-shadow: inset 0 0 0 1px var(--text-2); transform: translateY(-1px); }
.ask__btn .ic { width: 12px; height: 12px; margin-left: -4px; transform: translateY(-3px); transition: transform .25s var(--ease); }
.ask__btn:hover .ic { transform: translate(2px, -5px); }
.ask__btn--solid { background: var(--near-white); color: #000; box-shadow: none; }
.ask__btn--solid:hover { background: #fff; box-shadow: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1921px) {
  .hero { --imgw: 2410px; }
  .hero__bg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero__in { gap: 40px; padding-right: var(--gutter); }
  .features__body { grid-template-columns: 320fr 640fr; gap: 32px; }
}

@media (max-width: 960px) {
  .strip__in { flex-direction: column; justify-content: center; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
  .strip__marquee { flex: none; width: 100%; }

  /* stacked hero: the photo becomes a band along the bottom, the figure walks below the composer */
  .hero { --imgw: 200vw; min-height: 0; padding: 48px 0 176px; }
  .hero__bg img { left: -56vw; -webkit-mask-image: linear-gradient(180deg, transparent, #000 38%); mask-image: linear-gradient(180deg, transparent, #000 38%); }
  .hero__in { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero__copy, .hero__ui { flex: none; min-width: 0; }
  .hero__copy { max-width: 560px; }
  .hero__ui { max-width: 580px; }
  .composer { min-height: 188px; }

  .head h2, .cta__copy h2 { font-size: 34px; line-height: 44px; }
  .ba__cards { grid-template-columns: 1fr; }
  .ba__arrow { position: relative; left: auto; top: auto; margin: -24px auto; transform: rotate(90deg); }
  .features__body { grid-template-columns: 1fr; }
  .stage { order: -1; }
  .quotes { grid-template-columns: 1fr; }
  .quote { min-height: 0; }
  .api__cols { grid-template-columns: 1fr; gap: 32px; }
  .apps__in { grid-template-columns: 1fr; }
  .app--chrome { min-height: 0; }
  .qr { display: none; }
  .btn-store { display: inline-flex; }
  .app__art { min-height: 220px; }
  .app__artbg { left: 50%; margin-left: -420px; width: 840px; top: -240px; }
  .faq__in { grid-template-columns: 1fr; gap: 24px; }
  .cta__bg img { left: 30%; opacity: .9; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 64px; }
  .hero { --imgw: 250vw; padding: 40px 0 124px; }
  .hero__bg img { left: -92vw; }
  .hero__title { font-size: clamp(30px, 8.7vw, 40px); line-height: 1.34; }
  .hero__trust { margin-top: 24px; }
  .hero__trust .dot { display: none; }
  .proof { padding: 64px 0; }
  .stats { gap: 8px; }
  .stats dt { font-size: 32px; line-height: 44px; }
  .stats dd { font-size: 13px; line-height: 18px; }
  .ba, .features { padding: 64px 0; }
  .bench { padding: 64px 0 24px; }
  .ba__in, .bench__in { gap: 32px; }
  .ba__actions { margin-top: -8px; }
  .ba__note { margin-top: -12px; }
  .features__pin { gap: 32px; }
  .head h2, .cta__copy h2 { font-size: 30px; line-height: 40px; }
  .head p, .cta__copy p { font-size: 16px; line-height: 24px; }
  .ba__card { padding: 24px 20px; }
  .stage { height: auto; min-height: 420px; }
  .scene { position: relative; display: none; padding: 16px; }
  .scene.is-active { display: grid; }
  .panel { padding: 16px; gap: 16px; }
  .steps { padding: 0 4px; }
  .table th:first-child { position: sticky; left: 0; z-index: 1; width: 168px; padding-left: 12px; background: var(--bg); }
  .table { min-width: 740px; }
  .api { padding-top: 24px; }
  .api__card { padding: 24px 20px; }
  .api h2 { font-size: 28px; line-height: 36px; }
  .code pre { font-size: 12.5px; line-height: 19px; }
  .app--ios { min-height: 480px; }
  .app--ios .app__copy { height: auto; padding: 24px 20px 0; }
  .app__get { padding-top: 24px; }
  .app__phone { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 250px; overflow: hidden; }
  .app__phone img { left: 50%; margin-left: -130px; top: 0; width: 260px; }
  .faq { padding: 64px 0; }
  .faq h2 { font-size: 28px; line-height: 36px; }
  .cta { padding: 0 0 64px; }
  .cta__stage { min-height: 0; align-items: flex-start; }   /* as tall as the text block */
  .cta__copy { margin: 0; padding: 32px 24px; }
  /* the image fills the stage from the top; a soft dark veil keeps the text readable */
  .cta__bg img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; opacity: 1; transform: none; -webkit-mask-image: none; mask-image: none; animation-name: drift-m; }
  .cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.5) 42%, rgba(0,0,0,0) 86%); }
  .ask { padding-bottom: 64px; }
  .ask__btns { width: 100%; }
  .ask__btn { flex: 1 1 auto; justify-content: center; padding: 0 16px; }
}

/* ---------- Agentic chat (ad block: catch and show) ----------
   Stage 1168 x 640 as drafted: image and orb on the left fading into black,
   hook line and one humanize run on the right. Without JS (or with reduced
   motion) the run is shown finished; .is-live is the animated version. */
.agent { padding: 0; }
.agent__stage { position: relative; display: flex; justify-content: flex-end; height: 640px; overflow: hidden; background: var(--bg); border-radius: 16px; isolation: isolate; }
.agent__bg {
  position: absolute; left: 0; top: 0; bottom: 0; width: 63.36%; z-index: -2; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 49%, rgba(0,0,0,.82) 59%, rgba(0,0,0,.48) 72%, rgba(0,0,0,.14) 85%, transparent 94%);
          mask-image: linear-gradient(90deg, #000 49%, rgba(0,0,0,.82) 59%, rgba(0,0,0,.48) 72%, rgba(0,0,0,.14) 85%, transparent 94%);
}
.agent__bg img { position: absolute; left: -8.11%; top: -10%; width: 162.16%; height: 120%; max-width: none; object-fit: cover; }
.agent__stage > .grain { z-index: -1; }
.agent__orb { position: absolute; left: 5.48%; top: 50%; width: 41.1%; max-width: 480px; aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
.agent__orb canvas { display: block; width: 100%; height: 100%; }

.agent__content { flex: none; width: 41.78%; min-width: 400px; margin-right: 5.48%; padding: 64px 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.agent__head h2 { font: 600 48px/72px var(--serif); letter-spacing: 0; }
.agent__head p { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--text-2); }

.agent__run { position: relative; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.agent__thread { display: flex; flex-direction: column; gap: 16px; }
.agent__msg { align-self: flex-end; width: min(408px, 100%); }
.agent__msg p { -webkit-line-clamp: 1; line-clamp: 1; }
.agent__steps { padding: 4px 0; }
.agent__steps li { border-bottom: 0; }
.agent__steps li + li { border-top: 1px solid var(--border); }
.agent__mark { position: relative; flex: none; width: 16px; height: 16px; }
.agent__mark canvas { position: absolute; left: -2px; top: -2px; width: 20px; height: 20px; opacity: 0; }
.agent__cta { align-self: flex-start; margin-top: 4px; }

.agent__composer { display: none; position: absolute; left: 0; right: 0; bottom: 0; min-height: 172px; cursor: default; }
.agent__composer .icon-btn, .agent__composer .model, .agent__composer .send { pointer-events: none; }
.agent__field { flex: 1; min-height: 72px; padding: 2px 4px; font: 400 16px/24px var(--sans); overflow: hidden; }
.agent__ph { color: var(--text-2); }
.agent__typed, .agent__paste { display: none; }

/* live: starts on the empty composer and plays the run once it is in view */
.agent__stage.is-live .agent__composer { display: flex; transition: opacity .35s, transform .45s var(--ease), box-shadow .25s, visibility 0s; }
.agent__stage.is-live .agent__composer.is-focus { box-shadow: 0 0 0 1px var(--border); }
.agent__stage.is-live .agent__composer.is-gone { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .45s var(--ease), visibility 0s .3s; }
.agent__composer.has-text .agent__ph { display: none; }
.agent__composer.has-text .agent__typed { display: block; }
.agent__composer.is-typing .agent__typed::after { content: ""; display: inline-block; width: 1px; height: 18px; margin-left: 1px; vertical-align: -3px; background: var(--link); animation: agent-caret 1s steps(1) infinite; }
.agent__composer.is-pasted .agent__paste { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; animation: agent-in .3s var(--ease) both; }
.agent__composer .send { transition: transform .18s var(--ease), background-color .2s; }
.agent__composer .send.is-press { transform: scale(.86); background: var(--primary-hover); }
@keyframes agent-caret { 50% { opacity: 0; } }
@keyframes agent-in { from { opacity: 0; transform: translateY(4px); } }

.agent__stage.is-live .agent__msg,
.agent__stage.is-live .agent__step,
.agent__stage.is-live .agent__done,
.agent__stage.is-live .agent__cta { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility 0s .3s, background-color .2s; }
.agent__stage.is-live .agent__msg.is-on,
.agent__stage.is-live .agent__step.is-on,
.agent__stage.is-live .agent__done.is-on,
.agent__stage.is-live .agent__cta.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s, background-color .2s; }
.agent__stage.is-live .agent__msg { transform: translateY(28px); }
.agent__stage.is-live .agent__mark .ic { opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s var(--ease); }
.agent__stage.is-live .agent__step.is-done .agent__mark .ic { opacity: 1; transform: none; }
.agent__stage.is-live .agent__step.is-running .agent__mark canvas { opacity: 1; }
.agent__stage.is-live .agent__step .pill, .agent__stage.is-live .agent__step .score { opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--ease); }
.agent__stage.is-live .agent__step.is-done .pill, .agent__stage.is-live .agent__step.is-done .score { opacity: 1; transform: none; }
.agent__stage.is-live .agent__step.is-running .agent__label { color: var(--text-2); }
.agent__stage.is-replay { cursor: pointer; }

@media (max-width: 960px) {
  .agent__stage { flex-direction: column; justify-content: flex-start; height: auto; }
  .agent__bg { right: 0; bottom: auto; width: auto; height: 440px;
    -webkit-mask-image: linear-gradient(180deg, #000 52%, rgba(0,0,0,.5) 76%, transparent 96%); mask-image: linear-gradient(180deg, #000 52%, rgba(0,0,0,.5) 76%, transparent 96%); }
  .agent__bg img { left: -12%; top: -14%; width: 124%; height: 128%; }
  .agent__orb { position: relative; left: auto; top: auto; transform: none; width: min(340px, 80%); margin: 28px auto 0; }
  .agent__content { width: auto; min-width: 0; margin: 0; padding: 12px 40px 48px; gap: 32px; }
  .agent__run { justify-content: flex-start; }
  .agent__composer { top: 0; bottom: auto; }
  .agent__head h2 { font-size: 40px; line-height: 56px; }
}
@media (max-width: 640px) {
  .agent__bg { height: 380px; }
  .agent__bg img { left: -40%; width: 170%; }
  .agent__orb { width: min(280px, 78%); margin-top: 20px; }
  .agent__content { padding: 4px 20px 32px; gap: 24px; }
  .agent__head h2 { font-size: 34px; line-height: 44px; }
  .agent__field { font-size: 15px; }
}

/* ---------- Offer popup ($1 trial) ----------
   1000 x 656 as drafted: the image with the Letter trail on the left, the offer
   on the grey card colour on the right. On phones it is a bottom sheet. */
html.has-modal { overflow: hidden; }
.offer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.offer[hidden] { display: none; }
.offer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.72); opacity: 0; transition: opacity .3s; }
.offer__box {
  position: relative; display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: min(1000px, 100%); max-height: 100%;
  background: var(--surface); border-radius: 24px; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .3s, transform .45s var(--ease);
}
.offer.is-open .offer__scrim { opacity: 1; }
.offer.is-open .offer__box { opacity: 1; transform: none; }

.offer__media { position: relative; min-height: 0; overflow: hidden; background: var(--bg); touch-action: pan-y; }
.offer__img { position: absolute; left: 50%; bottom: 0; height: 112.2%; width: auto; max-width: none; transform: translateX(-50%); pointer-events: none; }
.offer__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.offer__content { display: flex; flex-direction: column; gap: 24px; min-height: 0; padding: 48px; overflow-y: auto; }
.offer__timer { display: flex; align-items: center; gap: 12px; font: 500 14px/20px var(--sans); color: var(--text-2); }
.offer__timer time { font-variant-numeric: tabular-nums; }
.offer__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: var(--primary-50); color: var(--link); font: 500 12px/16px var(--sans); }
.offer__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.offer__head h2 { font: 500 32px/40px var(--serif); letter-spacing: 0; }   /* Stealth/H3 Medium */
.offer__head em { font-style: normal; color: var(--link); }
.offer__head p { margin-top: 12px; color: var(--text-2); }
.offer__list { display: flex; flex-direction: column; gap: 12px; }
.offer__list li { display: flex; align-items: center; gap: 10px; }
.offer__list .ic { flex: none; color: var(--link); }
.offer__actions { display: flex; flex-direction: column; gap: 12px; }
.offer__deal { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; padding: 16px 24px; background: var(--bg); border-radius: 12px; }
.offer__deal b { display: block; font: 600 16px/24px var(--sans); }
.offer__deal span { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.offer__deal strong { font: 500 40px/56px var(--serif); }   /* Stealth/H2 */
.offer__actions .btn { width: 100%; justify-content: center; }
.offer__ghost { background: transparent; }
.offer__ghost:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.offer__actions .note { margin-top: 4px; }
.offer__close { position: absolute; right: 16px; top: 16px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text-2); transition: color .2s, background-color .2s; }
.offer__close:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }

@media (max-width: 860px) {
  .offer__box { grid-template-columns: 320px minmax(0, 1fr); }
  .offer__content { padding: 40px 32px 32px; }
  .offer__head h2 { font-size: 26px; line-height: 36px; }
}
/* phones: a bottom sheet with the image as a band on top */
@media (max-width: 640px) {
  .offer { padding: 0; place-items: end center; }
  .offer__box { grid-template-columns: minmax(0, 1fr); grid-template-rows: 144px minmax(0, 1fr); width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 24px 24px 0 0; transform: translateY(40px); }
  .offer__img { left: 0; bottom: auto; top: -330px; width: 100%; height: auto; transform: none; }
  .offer__content { gap: 20px; padding: 24px 20px 28px; }
  .offer__close { right: 12px; top: 12px; color: #fff; background: rgba(0,0,0,.45); }
  .offer__close:hover { color: #fff; background: rgba(0,0,0,.6); }
}

/* short phones: a slimmer image band and tighter spacing so the main button stays in view */
@media (max-width: 640px) and (max-height: 720px) {
  .offer__box { grid-template-rows: 96px minmax(0, 1fr); }
  .offer__img { top: -360px; }
  .offer__content { gap: 16px; }
  .offer__head h2 { font-size: 24px; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero [data-in] { opacity: 1; transform: none; }
  .tool.is-active .tool__track i { width: 100%; }
}
