/* jayda.ai marketing site v2 — desktop first.
 * Structure measured from promptwatch.com (research/promptwatch-teardown.md): 1312px column on a hairline grid,
 * glass product frame over a blue bar wave, motion only inside product frames.
 * Product UI is never redrawn here: it comes from real jayda-fe snapshots in demo/fe (see assets/js/player.js).
 */
@font-face { font-family: 'Geist'; src: url('../../demo/fe/fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../../demo/fe/fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* Tokens mirror jayda-fe (docs/design-system/foundations.md, src/index.css): colour, radius, elevation, controls. */
:root {
  --ink: #1e2538;        /* kumo text-default */
  --ink-2: #1e2538;
  --muted: #5c6375;      /* kumo text-subtle */
  --muted-2: #5c6375;
  --ground: #f4f4f5;     /* kumo canvas, flat */
  --tile: #fff;          /* kumo base */
  --tile-solid: #fff;
  --group: #e3e8f1;      /* kumo group frame */
  --tint: #f1f4fa;       /* kumo tint */
  --hover: #d9e3f6;      /* kumo hover */
  --line: #d8dde8;       /* kumo line */
  --line-2: #d8dde8;
  --hairline: #edf0f6;   /* kumo hairline */
  --line-strong: #858ea2;
  --blue: #136efb;       /* kumo brand */
  --blue-ink: #0b57d0;   /* kumo brand-hover */
  --blue-ring: color-mix(in oklch, #136efb, black 10%);
  --blue-50: #eef5ff;
  --blue-100: #dbe9ff;
  --navy: #0b1b3a;
  --ok: #009966;         /* kumo success oklch(59.6% .145 163.2) */
  --warn: #b45309;
  --col: 82rem;          /* 1312px */
  --gutter: 24px;
  --r-tile: 4px;         /* kumo radius steps 4/6/8/12 only */
  --r-card: 8px;
  --r-frame: 12px;
  /* kumo elevation; hover/press never transition box-shadow */
  --shadow-control: 0 2px 4px 0 rgb(0 0 0 / .05), 0 4px 8px 0 rgb(0 0 0 / .1);
  --shadow-raised: 0 1px 2px 0 rgb(16 24 40 / .05), 0 4px 12px -2px rgb(16 24 40 / .08);
  --shadow-lifted: 0 2px 4px -1px rgb(16 24 40 / .06), 0 8px 20px -4px rgb(16 24 40 / .12);
  --shadow-floating: 0 4px 8px -2px rgb(16 24 40 / .08), 0 16px 32px -8px rgb(16 24 40 / .18);
  --shadow-modal: 0 8px 16px -4px rgb(16 24 40 / .1), 0 24px 56px -12px rgb(16 24 40 / .28);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --dur-fast: 100ms;
  --dur-base: 200ms;
  --dur-slow: 350ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --move-sm: 6px;
}
@media (prefers-reduced-motion: reduce) { :root { --move-sm: 0px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; } /* sticky nav never covers a focused or anchored target (A5) */
body {
  margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
/* kumo scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgb(30 37 56 / .24) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgb(30 37 56 / .24); border: 2px solid transparent; background-clip: padding-box; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background-color: rgb(30 37 56 / .4); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
/* MOTOR wordmark, same svg jayda-fe renders (src/ui/motor-logo): cap height, text colour, sits on the baseline */
.motor-logo { display: inline-block; height: .72em; width: 4.37em; fill: currentColor; stroke: none; vertical-align: baseline; margin: 0 .15em; }
.motor-logo.lg { height: 18px; width: 109px; margin: 0; }

/* ---------- column + hairline grid ---------- */
.row { display: grid; grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--col)) minmax(var(--gutter), 1fr); }
.row > .col { grid-column: 2; }
.spacer { height: 64px; }
.spacer.sm { height: 32px; }
.cells { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cell { background: var(--tile); padding: 32px; }
.cell.solid { background: var(--tile-solid); }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; text-wrap: balance; }
.h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.01em; }
.sub { font-size: 20px; line-height: 28px; color: var(--muted); margin: 0; }
.body { font-size: 17px; line-height: 27px; color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); font-weight: 500; margin: 0 0 16px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); }
.accent { color: inherit; }
.two-tone { color: var(--ink); }
.two-tone span { color: var(--muted); }
.center { text-align: center; }
.head { max-width: 760px; }
.head.center { margin: 0 auto; }
.head .sub { margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  /* kumo Button: 36px, 14/500, radius 8, 1px ring + control shadow; hover is instant (background only) */
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  border: 0;
}
.btn.lg { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 8px; }
.btn.solid { background: var(--blue); color: #fff; box-shadow: 0 0 0 1px var(--blue-ring), var(--shadow-control); }
.btn.solid:hover { background: var(--blue-ink); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-control); }
.btn.ghost:hover { background: var(--tint); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-control); }
.btn.dark:hover { background: var(--navy); }
/* "Try the demo" (Alvis 2026-12-04: stand out more): filled dark, play mark, next to the blue "Get started" */
.btn.demo { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px var(--ink), 0 8px 18px -8px rgb(30 37 56 / .6); }
.btn.demo:hover, .btn.demo:active { background: var(--navy); }
.btn.demo .icon { width: 12px; height: 12px; color: #9cc0ff; }
.btn:active:not(:focus-visible) { transform: scale(.98); }
.btn.solid:active { background: var(--blue-ink); }
.btn.ghost:active { background: var(--hover); }
.btn .icon { width: 16px; height: 16px; }
.cta-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.center .cta-pair, .cta-pair.center { justify-content: center; }

/* ---------- announcement + nav ---------- */
.announce { background: var(--blue-ink); color: #fff; font-size: 14px; }
.announce .col { display: flex; justify-content: center; align-items: center; gap: 10px; height: 40px; }
.announce a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce .pill { background: rgba(11,27,58,.45); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 500; }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(244, 244, 245, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav .col { display: flex; align-items: center; height: 64px; gap: 32px; }
.nav .logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 8px; border: 0;
  background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > button[aria-expanded="true"] { background: var(--hover); }
.nav-links .icon { width: 14px; height: 14px; color: var(--muted); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-right .link { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 0 12px; }
.nav-right .link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 8px); left: -12px; width: 640px; padding: 8px; border-radius: 8px;
  background: #fff; border: 0; box-shadow: 0 0 0 1px var(--line), var(--shadow-floating); /* kumo L3 popover */
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(calc(var(--move-sm) * -1));
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
}
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility 0s; }
.menu a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 6px; }
.menu a:hover { background: var(--tint); }
.menu .mi { width: 36px; height: 36px; border-radius: 8px; background: var(--blue-50); color: var(--blue-ink); display: grid; place-items: center; }
.menu .mi .icon { width: 20px; height: 20px; }
.menu b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.menu small { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 72px; text-align: center; }
.hero::before { /* masked dot texture */
  content: ''; position: absolute; inset: 0 0 auto; height: 560px; pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, .16) 1px, transparent 1.2px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 0%, transparent 75%);
}
.hero .col { position: relative; }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); margin-bottom: 28px; }
.hero .badge .tag { background: var(--blue-50); color: var(--blue-ink); font-weight: 500; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.hero .badge .icon { width: 14px; height: 14px; color: var(--muted); margin-right: 4px; }
.hero h1 { max-width: 880px; margin: 0 auto; }
.chip-word { display: inline-flex; align-items: center; vertical-align: middle; gap: 8px; height: 56px; padding: 0 16px 0 10px; margin: 0 4px; border-radius: 12px; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--line), var(--shadow-raised); position: relative; top: -4px; }
.chip-word .chip-ico { width: 38px; height: 38px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; overflow: hidden; position: relative; }
.chip-word .chip-ico svg { position: absolute; width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateY(var(--move-sm)); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.chip-word .chip-ico svg.on { opacity: 1; transform: none; }
.chip-word .chip-label { font-size: 20px; letter-spacing: -.01em; color: var(--ink-2); min-width: 150px; text-align: left; font-weight: 500; }
.hero .sub { max-width: 640px; margin: 24px auto 0; }
.hero .cta-pair { justify-content: center; margin-top: 32px; }
.hero .proof-line { margin: 20px 0 0; font-size: 13px; color: var(--muted); display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero .proof-line span { display: inline-flex; align-items: center; gap: 6px; }
.hero .proof-line .icon { width: 14px; height: 14px; color: var(--blue); }

/* tabs */
.tabs { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; overflow: hidden;
}
/* kumo: unselected = ghost button (hover fill), selected = secondary button (white, line ring, control shadow) */
.tab:hover { color: var(--ink); background: var(--hover); }
.tab[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-control); }
.tab .icon { width: 16px; height: 16px; }
.tab[aria-selected="true"] .icon { color: var(--blue); }
.tab .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.tab .prog i { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
/* [EXCEPTION] R3 .tab.is-running .prog i — progress bar spans one autoplay scene (about 14 s); paused with the stage */
/* [EXCEPTION] R8 .tab.is-running .prog i — one scene's progress, no button (Alvis); pointer over or focus inside the stage holds it; pause: .stage */
.tab.is-running .prog i { animation: tabprog var(--tab-ms, 14000ms) linear forwards; }
.stage-wrap.is-paused ~ .tabs .prog i, #ask.is-paused .tab .prog i { animation-play-state: paused; }
@keyframes tabprog { to { transform: scaleX(1); } }

/* ---------- product stage (glass over bar wave) ---------- */
.stage-wrap { position: relative; margin-top: 24px; }
/* Reduced motion: nothing moves (camera cuts, clips stay at the top); state stays readable from the selected tab and the stills. */
@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:focus-visible) { transform: none; }
  .tab.is-running .prog i, .stage-ripple.on { animation: none !important; }
  .stage-cursor, .stage-doc, .crop iframe { transition: opacity 150ms var(--ease) !important; }
  .stage-cursor svg { transition: none !important; }
  .stage-cursor.down svg { transform: none; }
}

.glass {
  position: relative; margin: 0 auto; max-width: 1184px; padding: 8px 8px 0;
  background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(64px) saturate(1.5); backdrop-filter: blur(64px) saturate(1.5);
  border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-frame) var(--r-frame) 0 0;
  box-shadow: var(--shadow-floating);
}
.glass.round { border-radius: var(--r-frame); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.stage { position: relative; }
.stage-view { position: relative; overflow: hidden; border-radius: 6px 6px 0 0; background: #fff; border: 1px solid var(--hairline); }
.glass.round .stage-view { border-radius: 6px; }
/* [EXCEPTION] R3 .stage-doc — camera pan/zoom between parts of a real screen, like a screen recording (Alvis: no veil, no outline); cut under reduced motion */
.stage-doc { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; opacity: 0; pointer-events: none; background: #fff;
  transition: opacity 320ms var(--ease), transform 700ms cubic-bezier(.45, 0, .2, 1); }
.stage-doc.is-active { opacity: 1; }
.stage-doc.no-cam { transition: opacity 320ms var(--ease); }
.stage-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; z-index: 3; }
.stage-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; border-radius: 6px; }
.stage-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -2px 0 0 -3px; opacity: 0;
  /* [EXCEPTION] R3 .stage-cursor — scripted pointer glides between targets like a real hand (700 ms); scene is user-pausable */
  transition: transform 700ms cubic-bezier(.45, 0, .2, 1), opacity 200ms var(--ease); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.stage-cursor.on { opacity: 1; }
.stage-cursor.no-glide { transition: none; }
.stage-cursor svg { width: 22px; height: 22px; transition: transform var(--dur-fast) var(--ease); }
.stage-cursor.down svg { transform: scale(.88); }
.stage-ripple { position: absolute; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(19, 110, 251, .28); opacity: 0; }
.stage-ripple.on { animation: ripple 400ms var(--ease) forwards; }
@keyframes ripple { from { opacity: 1; scale: .4; } to { opacity: 0; scale: 1.4; } }
/* Alvis: film the demo like a normal recording - no blue outline, no veil; the camera crop is the guide. */
.stage-ring { display: none; }
/* Explore mode: the stage is clickable; a hotspot under the pointer shows a hand cursor. */
.stage { cursor: pointer; }
.stage.is-exploring { cursor: default; }
.stage.is-exploring.is-hot { cursor: pointer; }
/* No on-stage guidance labels (Alvis): the caption stays for screen readers only, the camera framing is the guide. */
.stage-caption, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.stage-caption .dot { display: none; }
.stage.is-instant .stage-caption { display: none; }

/* mascot variant */
.m-only { display: none !important; }
.has-mascot .m-only { display: block !important; }
.has-mascot .no-m { display: none !important; }
.stage-mascot { position: absolute; z-index: 6; right: -118px; bottom: 40px; width: 150px; height: auto; pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(11, 27, 58, .25)); }
/* below ~1400px the stage spans the page edge to edge: no room beside it, and the mascot would push a horizontal
   scrollbar (measured 1280px: +69px overflow) */
@media (max-width: 1400px) { .has-mascot .stage-mascot { display: none !important; } }

/* ---------- proof band ---------- */
.proof { position: relative; z-index: 2; margin-top: -1px; }
.proof .cells { grid-template-columns: 1.3fr 2fr; border-radius: 0 0 6px 6px; }
.proof .cell { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.proof .lead { font-size: 15px; color: var(--muted); margin: 0; }
.proof .lead b { color: var(--ink); font-weight: 500; }
/* make logos: 512px squares with transparent padding, shown at 56px */
.makes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px 0; align-items: center; }
.makes li { display: grid; place-items: center; height: 56px; }
.makes img { width: 56px; height: 56px; object-fit: contain; transform: scale(1.75); filter: grayscale(1) contrast(1.1); opacity: .72;
  transition: opacity var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease); }
.makes li:hover img { filter: none; opacity: 1; }
.makes .more a { font-size: 13px; font-weight: 500; color: var(--blue-ink); white-space: nowrap; }
.makes .more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.browse-only { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; background: #fffbeb; border: 1px solid #fde68a; font-size: 13px; line-height: 18px; color: #78350f; }
.browse-only .logos { display: flex; flex: none; }
.browse-only img { width: 36px; height: 36px; object-fit: contain; transform: scale(1.6); filter: grayscale(1); opacity: .7; }
.fine { font-size: 12px; line-height: 18px; color: var(--muted-2); margin: 0; }

/* ---------- stats band ---------- */
.stats .cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 32px; }
.stat .k { font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .k small { font-size: 22px; letter-spacing: -.01em; color: var(--muted); margin-left: 2px; }
.stat .l { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--muted); }
.stat .src { margin-top: 18px; font-size: 12px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }
.stat .src .icon { width: 12px; height: 12px; }

/* ---------- platform cards with live crops ---------- */
.platform .cells { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pcard { grid-column: span 2; display: flex; flex-direction: column; padding: 0; }
.pcard.wide { grid-column: span 3; }
.pcard .txt { padding: 28px 28px 0; }
.pcard .txt .h3 { margin-bottom: 8px; }
.pcard .txt p { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); }
.pcard .txt a.more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--blue-ink); }
.pcard .txt a.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard .txt a.more .icon { width: 14px; height: 14px; }
.crop { position: relative; margin: 24px 0 0 28px; height: 280px; overflow: hidden; border-radius: 8px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0;
  background: #fff; box-shadow: var(--shadow-raised); }
.pcard.wide .crop { height: 320px; }
.crop.center-crop { margin: 24px 28px 0; border-radius: 8px 8px 0 0; border-right: 1px solid var(--line); }
/* [EXCEPTION] R3 .crop iframe — the clip scrolls through peer rows like a screen recording (Alvis: no outline); pointer over the card holds it; static under reduced motion */
.crop iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0;
  transition: opacity var(--dur-slow) var(--ease), transform 700ms cubic-bezier(.45, 0, .2, 1); }
.crop.ready iframe { opacity: 1; }
.crop .tagline { position: absolute; left: 10px; bottom: 10px; z-index: 3; font-size: 12px; background: rgba(11,18,32,.82); color: #fff; padding: 4px 8px; border-radius: 4px; }

/* ---------- pillar sections ---------- */
.pillar .cells { grid-template-columns: 5fr 7fr; }
.pillar.flip .cells { grid-template-columns: 7fr 5fr; }
.pillar.flip .pill-text { order: 2; }
.pill-text { padding: 48px 40px; display: flex; flex-direction: column; }
.pill-text .h2 { font-size: 36px; line-height: 44px; }
.pill-text .body { margin-top: 16px; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 12px 12px 10px; border-radius: 8px; font-size: 15px; line-height: 22px; color: var(--muted); counter-increment: s;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--muted); font-family: var(--mono); }
.steps li b { color: var(--ink); font-weight: 500; }
.steps li.on { background: var(--blue-50); color: var(--ink-2); }
.steps li.on::before { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill-text .cta-pair { margin-top: auto; padding-top: 28px; }
.pill-stage { padding: 28px 0 0 28px; position: relative; overflow: hidden; background:
  radial-gradient(120% 90% at 100% 0%, rgba(19,110,251,.10), transparent 60%), var(--tile); }
.pillar.flip .pill-stage { padding: 28px 28px 0 0; }
.pill-stage .glass { max-width: none; margin: 0; padding: 6px 0 0 6px; border-right: 0; border-radius: var(--r-frame) 0 0 0; }
.pillar.flip .pill-stage .glass { padding: 6px 6px 0 0; border-left: 0; border-right: 1px solid var(--line); border-radius: 0 var(--r-frame) 0 0; }
.pill-stage .stage-view { border-radius: 6px 0 0 0; border-right: 0; border-bottom: 0; }
.pillar.flip .pill-stage .stage-view { border-radius: 0 6px 0 0; border-left: 0; border-right: 1px solid var(--hairline); }
/* Pillar mascot sits in the text column above the CTAs, never over the app UI. */
.pill-mascot { margin-top: auto; padding-top: 24px; align-self: flex-end; width: 110px; height: auto; }
.has-mascot .pill-text .cta-pair { margin-top: 0; padding-top: 4px; }
/* Pause sits bottom-left: the FE estimate preview has its own zoom control bottom-right. */

/* ---------- principles ---------- */
.principles .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principle { padding: 32px; }
.principle .pi { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); color: var(--blue); margin-bottom: 22px; }
.principle .pi .icon { width: 18px; height: 18px; }
.principle h3 { font-size: 18px; line-height: 26px; letter-spacing: -.01em; }
.principle-mascot { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; padding: 20px 32px; }
.principle-mascot img { width: 96px; height: auto; }
.principle-mascot p { margin: 0; font-size: 15px; color: var(--muted); max-width: 720px; }
.principle-mascot p b { color: var(--ink); font-weight: 500; }

/* ---------- pricing teaser ---------- */
.plans .cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan.feat { background: #fff; box-shadow: inset 0 0 0 1px var(--blue); position: relative; } /* kumo: selected card = 1px brand ring */
.plan .pname { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 500; }
.plan .ptag { font-size: 12px; line-height: 16px; color: var(--blue-ink); background: var(--blue-50); padding: 2px 8px; border-radius: 999px; font-weight: 500; } /* kumo Badge */
/* Pro Tech billing term: mini tabs inside the card, as on the live jayda.ai pricing page (only Pro Tech has terms). */
/* Pro Tech term tabs sit on the plan-name row, so every card's price starts on the same line (Alvis) */
.plan .phead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.plan .phead .pname { margin: 0; }
/* every plan's name row is as tall as the Pro Tech term switch (28px), so all price rows line up */
.plan .pname { min-height: 28px; }
.plan .phead .pterm { margin-top: 0; align-self: center; }
.pterm { display: inline-flex; align-self: flex-start; gap: 2px; margin-top: 12px; padding: 2px; border-radius: 8px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.pterm label { position: relative; cursor: pointer; }
.pterm input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pterm span { display: block; padding: 3px 10px; border-radius: 6px; font-size: 12px; line-height: 18px; color: var(--muted); }
.pterm input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px 0 rgb(16 24 40 / .05); font-weight: 500; }
.pterm input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.plan .price { margin-top: 18px; font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan .pnote { font-size: 13px; color: var(--muted); margin: 10px 0 0; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; line-height: 20px; }
.plan li .icon { width: 16px; height: 16px; color: var(--blue); margin-top: 2px; }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- final CTA + FAQ + banner + footer ---------- */
.final { text-align: center; padding: 96px 0 88px; position: relative; overflow: hidden; }
.final .h-xl { font-size: 64px; line-height: 1.02; letter-spacing: -.03em; font-weight: 500; max-width: 900px; margin: 0 auto; }
.final .sub { max-width: 600px; margin: 22px auto 0; }
.final .cta-pair { margin-top: 32px; }
.final .final-mascot { width: 170px; margin: 0 auto 8px; }

.faq .cells { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.faq-side { padding: 40px; display: flex; flex-direction: column; }
.faq-side .contact { margin-top: auto; padding-top: 32px; display: flex; gap: 14px; align-items: center; }
.faq-side .contact .av { width: 44px; height: 44px; border-radius: 8px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.faq-side .contact p { margin: 0; font-size: 14px; color: var(--muted); }
.faq-side .contact a { color: var(--blue-ink); font-weight: 500; }
.faq-list { padding: 16px 40px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform var(--dur-base) var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 20px; font-size: 15px; line-height: 24px; color: var(--muted); max-width: 680px; }
.faq-list details p a { color: var(--blue-ink); }

.banner { border-radius: 12px; overflow: hidden; position: relative; padding: 48px 56px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: radial-gradient(80% 140% at 85% 0%, #3d8bff 0%, rgba(61,139,255,0) 60%), linear-gradient(110deg, #0b1b3a 0%, #0f3a8a 55%, #136efb 100%); }
.banner h2 { color: #fff; font-size: 32px; line-height: 40px; max-width: 620px; }
.banner p { margin: 10px 0 0; color: rgba(255,255,255,.75); font-size: 16px; }
.banner .btn.ghost { background: rgba(11,27,58,.4); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.banner :focus-visible, .announce :focus-visible { outline-color: #fff; }
.banner .btn.ghost:hover { background: rgba(255,255,255,.18); }
.banner .btn.light { background: #fff; color: var(--navy); }
.banner .btn.light:hover { background: var(--blue-50); }

/* a quiet footer: page background, one hairline above it, no tread and no blue fill (Alvis 2026-12-03) */
.footer { margin-top: 216px; padding: 56px 0 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.footer .grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer .brand img { height: 24px; width: auto; }
.footer .brand p { margin: 16px 0 0; max-width: 320px; line-height: 22px; }
.footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; font-size: 12px; line-height: 18px; color: var(--muted-2); }
.footer .legal p { margin: 0; max-width: 760px; }

/* ---------- pricing page ---------- */
.price-hero { padding-top: 72px; }
.price-hero .plan { text-align: left; }
.price-hero .plan .pfor { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); min-height: 40px; }
.price-hero .plan .price:not(.num) { margin-top: 18px; }
.price-hero .plan .btn { margin-top: 18px; }
.price-hero .plan .pfine { margin: 10px 0 0; font-size: 12.5px; line-height: 18px; color: var(--muted); min-height: 36px; }
.price-hero .plan .pfine a { color: var(--blue-ink); }
.price-hero .plan ul { margin-bottom: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.pterms { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.pterms .cell { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 20px 24px; align-items: start; }
.pterms .icon { width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }
.pterms p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.pterms b { color: var(--ink); font-weight: 500; }
.pterms .motor-logo { height: 12px; width: auto; vertical-align: -1px; }
.cmp-wrap { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.compare thead th small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { position: sticky; top: 64px; background: #fff; font-weight: 500; font-size: 15px; z-index: 2; }
.compare tbody th { font-weight: 400; color: var(--ink-2); width: 34%; }
.compare td { color: var(--ink-2); width: 16.5%; }
.compare .grp th { background: var(--ground); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 18px; }
.compare .yes .icon { color: var(--blue); width: 18px; height: 18px; }
.compare .no { color: var(--muted-2); }
.compare .feat-col { background: rgba(19, 110, 251, .035); }
.price-note { font-size: 13px; color: var(--muted); }

/* ---------------- interactive demo pages (demo-diagnose.html, demo-estimate.html) ---------------- */
.demo-page { padding: 40px 0 24px; }
.demo-head { max-width: 720px; margin-bottom: 28px; }
.demo-head .body { margin-top: 12px; color: var(--muted); }
.demo-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.demo-back .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.demo-back:hover { color: var(--ink); }
.demo-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.demo-grid > .glass { width: 100%; margin: 0; }
.demo-steps { position: sticky; top: 88px; }
.demo-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.demo-steps ol button { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; width: 100%; text-align: left; padding: 10px 10px 10px 8px;
  border: 0; border-radius: 8px; background: transparent; font: inherit; color: var(--muted); cursor: pointer; counter-increment: s;
  transition: background-color var(--dur-fast) var(--ease); }
.demo-steps ol button::before { content: counter(s); grid-row: span 2; width: 24px; height: 24px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--muted); font-family: var(--mono); }
.demo-steps ol button b { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.demo-steps ol button span { font-size: 13px; line-height: 18px; }
.demo-steps ol button:hover { background: var(--ground); }
.demo-steps ol button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.demo-steps ol button.is-done::before { content: "✓" / "done"; background: var(--blue-50); border-color: var(--blue-50); color: var(--blue-ink); }
.demo-steps ol button.is-current { background: var(--blue-50); }
.demo-steps ol button.is-current::before { background: var(--blue); border-color: var(--blue); color: #fff; }
.demo-actions { display: flex; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- homepage v3 (Alvis: less crowded, cleanshot.com rhythm): one idea per section, a short paragraph, one
   button, one large product visual; open space instead of boxed grids. ---------- */
.cover { padding-top: 144px; text-align: center; }
.cover .h2 { max-width: 760px; margin: 0 auto; }
.cover .sub { max-width: 640px; margin: 16px auto 0; }
.cover .motor-logo { height: .7em; }
.figs { display: flex; justify-content: center; gap: 72px; margin: 48px 0 0; }
.figs div { display: flex; flex-direction: column-reverse; gap: 4px; }
.figs dt { font-size: 14px; color: var(--muted); }
.figs dd { margin: 0; font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cover .makes { max-width: 980px; margin: 56px auto 0; }
.cover .fine { margin-top: 20px; }
.feature { padding-top: 160px; }
.feature .col { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.feature.flip .col { grid-template-columns: 7fr 5fr; }
.feature.flip .ftxt { order: 2; }
.ftxt { display: flex; flex-direction: column; align-items: flex-start; }
.ftxt .h2 { max-width: 460px; }
.ftxt .body { margin-top: 18px; max-width: 440px; }
.ftxt .btn { margin-top: 28px; }
.feat-mascot { width: 96px; height: auto; margin-top: 28px; }
/* kumo group frame (flat, no gradient) holding one raised card */
.fvis { position: relative; border-radius: 12px; padding: 36px 0 0 36px; overflow: hidden; background: var(--group); }
.feature.flip .fvis { padding: 36px 36px 0 0; }
.fvis .crop { margin: 0; height: 440px; border-radius: 8px 0 0 0; box-shadow: var(--shadow-raised); }
.feature.flip .fvis .crop { border-radius: 0 8px 0 0; border-left: 0; border-right: 1px solid var(--line); }
.cover ~ .plans { padding-top: 160px; }
.plans + .faq, .world + .faq { padding-top: 144px; }

/* ---------- nav menu under 60rem ---------- */
.nav-toggle { display: none; }
html.menu-open { overflow: hidden; }
.only-sm { display: none; }

[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
/* labels in the body face, not tracked capitals */
.eyebrow { font-size: 14px; line-height: 20px; letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: none; }
.compare .grp th { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); }
/* three plan terms, the wordmark inside its sentence */
.plans .pterms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pterms .motor-logo { width: 73px; }
.demo-back { display: flex; width: max-content; padding-block: 12px; margin-block: -12px; }
.demo-grid > .glass { background: var(--tile); -webkit-backdrop-filter: none; backdrop-filter: none; }
.plan .pnote, .price-hero .plan .pfine { font-size: 14px; line-height: 20px; }
.plan .phead { flex-wrap: wrap; }
.plan .phead .pname, .pterm span { white-space: nowrap; }
.pterm span { padding-inline: 7px; }

/* ---------- FAQ answers: a short fade, no height animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] > p { animation: faq-in var(--dur-base) var(--ease); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- tablet: two columns, one menu button ---------- */
@media (max-width: 75rem) {
  .plans .cells, .principles .cells, .stats .cells, .platform .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard, .pcard.wide { grid-column: span 1; }
  .footer .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer .brand { grid-column: 1 / -1; }
  .price-hero .plan .pfor, .price-hero .plan .pfine, .plan .pnote { min-height: 0; }
}
@media (max-width: 60rem) {
  .nav .col { gap: 8px; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
  .nav-toggle:hover { background: var(--hover); }
  .nav-toggle .icon { width: 22px; height: 22px; }
  .nav-toggle[aria-expanded="true"] .i-open, .nav-toggle[aria-expanded="false"] .i-close { display: none; }
  .nav-right .link, .nav-right .btn.ghost, .nav-right .btn.demo { display: none; }
  .nav-right .btn.solid { height: 40px; }
  .only-sm { display: block; }
  .nav nav { position: absolute; left: 0; right: 0; top: 100%; display: none; max-height: calc(100dvh - 64px); overflow-y: auto; padding: 8px var(--gutter) 24px; background: var(--tile); border-top: 1px solid var(--line); box-shadow: var(--shadow-floating); }
  .nav.is-open nav { display: block; }
  .nav.is-open { background: var(--tile); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > li > a { display: flex; height: 52px; padding: 0 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--hairline); }
  .nav-links > li.has-menu > button { display: none; }
  .menu { position: static; width: auto; padding: 8px 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; transition: none; border-bottom: 1px solid var(--hairline); border-radius: 0; }
  .menu a { padding: 10px 4px; }
  .demo-grid, .faq .cells, .pterms { grid-template-columns: minmax(0, 1fr); }
  .demo-steps { position: static; }
  .faq-side .contact { margin-top: 0; }
  .cmp-wrap { overflow-x: auto; }
  .plans .pterms { grid-template-columns: minmax(0, 1fr); }
  .demo-grid > .glass { order: -1; }
  .compare { min-width: 680px; }
  .compare th, .compare td { padding-inline: 14px; }
  .compare thead th { position: static; }
  .banner { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
/* ---------- phone ---------- */
@media (max-width: 40rem) {
  :root { --gutter: 16px; }
  .announce .col { height: auto; min-height: 40px; padding-block: 8px; text-align: center; }
  .sub { font-size: 18px; line-height: 27px; }
  .plans .cells, .principles .cells, .stats .cells, .platform .cells { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 24px 20px; }
  .faq-side, .faq-list { padding: 24px 20px; }
  .faq-list { padding-block: 4px; }
  .footer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .legal { flex-direction: column; gap: 12px; }
  .compare { min-width: 620px; }
  .compare .grp th { width: auto; }
  .compare tbody tr:not(.grp) th, .compare thead tr > :first-child { position: sticky; top: auto; left: 0; z-index: 1; width: 148px; background: #fff; box-shadow: 1px 0 0 var(--line); }
  .banner { padding: 32px 20px; }
  .banner h2 { font-size: 26px; line-height: 33px; }
}
@media (pointer: coarse) {
  .btn, .btn.lg { min-height: 48px; }
  .nav-right .btn.solid { min-height: 44px; }
  .tab { min-height: 44px; }
  .pterm span { padding-block: 12px; }
  .footer ul { gap: 0; }
  .footer li a { display: inline-flex; align-items: center; min-height: 44px; }
}
