/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════════════════════════════════ */

/* Shared bits */
.h-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 64px; row-gap: 18px; align-items: end; margin-bottom: 64px; }
.h-head > .h2 { grid-column: 1; }
.h-head > .lede { grid-column: 2; padding-bottom: 6px; }
.h-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; justify-self: end; padding: 2px 10px; border-radius: var(--r-xs); font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--body); background: var(--surface-2); }
.pill--pos { color: var(--pos); background: var(--pos-bg); }
.pill--neg { color: var(--neg); background: #F7E8E6; }
.pill--brand { color: var(--brand); background: var(--brand-pale); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: #C5CCDB; flex: none; }
.spark { width: 10px; height: 10px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spark 1.6s var(--ease) infinite; }
@keyframes spark { 50% { transform: scale(.6) rotate(45deg); } }

/* Hero */
.h-hero { position: relative; padding: 104px 0 0; background: var(--surface); }
.h-hero::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 560px; pointer-events: none;
  background-image: linear-gradient(90deg, var(--rule-faint) 1px, transparent 1px), linear-gradient(var(--rule-faint) 1px, transparent 1px);
  background-size: var(--cell-x) 100%, 100% var(--cell);
  background-position: var(--grid-x) 0, 0 0;
  /* Fades out downward, and almost away behind the headline and copy. */
  -webkit-mask-image: linear-gradient(#000 0%, transparent 90%), var(--hero-hush);
  mask-image: linear-gradient(#000 0%, transparent 90%), var(--hero-hush);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* A soft hole in the grid over the text column: lines drop to about 20% there. */
/* The grid is locked to the rails: 24 equal columns between them, with a line exactly on each rail.
   (In background-position, 50% means (box - tile) / 2, hence the + half a cell.) */
.h-hero {
  --rail-w: calc(var(--max) + var(--gutter) * 2);
  --cell: calc((var(--rail-w) - 1px) / 24); /* the right rail is the last pixel of the column */
  --cell-x: var(--cell);
  --grid-x: calc(50% - var(--rail-w) / 2 + var(--cell) / 2);
}
@media (max-width: 1168px) { .h-hero { --cell-x: calc(100% / 24); --cell: 48px; --grid-x: 0; } }
.h-hero { --hero-hush: radial-gradient(ellipse 760px 420px at calc(50% - min(50%, var(--max) / 2) + 380px) 300px, rgba(0, 0, 0, .2) 40%, #000 100%); }
/* Both grid layers sit behind the hero content. */
.h-hero::before, .h-hero::after { z-index: 0; }
.h-hero > * { position: relative; z-index: 1; }
/* The grid lights up around the cursor. */
.h-hero::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 560px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background-image: linear-gradient(90deg, rgba(9, 67, 176, .2) 1px, transparent 1px), linear-gradient(rgba(9, 67, 176, .2) 1px, transparent 1px);
  background-size: var(--cell-x) 100%, 100% var(--cell);
  background-position: var(--grid-x) 0, 0 0;
  -webkit-mask-image: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%), var(--hero-hush);
  mask-image: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 70%), var(--hero-hush);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.h-hero.is-lit::after { opacity: 1; }
.h-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; text-align: left; }
.h-hero .h1 { max-width: 1000px; }
/* Two lines: the platform, then who it's for, with the adjective cycling (quirks.js). */
.h-hero .h-title { max-width: none; }
.h-title__l1, .h-title__l2 { display: block; }
.h-rot { color: var(--brand); }
.h-rot + .ty-caret.is-done { width: 0; margin: 0; }
/* Two set lines across the full width: "The Agentic SEO/GEO Platform for", then the rotating word and "Brands".
   Each stays on one row from 960px up; the reserved height (quirks.js) keeps the text below still. */
.h-hero__top { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.h-hero__grid { margin-top: 24px; }
.h-hero__top .h-title { width: 100%; font-size: clamp(40px, 6.4vw, 60px); line-height: 1.06; }
@media (min-width: 960px) { .h-title__l1, .h-title__l2 { white-space: nowrap; } }
.h-hero .lede { max-width: 620px; }
.h-hero .h-ctas { justify-content: flex-start; }

/* Launch film */
.h-film { margin-top: 56px; }
.h-film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--surface); }

/* Interactive demo */
.demo { margin-top: 56px; }
.demo__win { overflow: hidden; }
.demo__bar { display: flex; align-items: center; gap: 16px; height: 42px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--rule-faint); }
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 10px; height: 10px; border-radius: 999px; background: #E3E7F5; }
.demo__url { padding: 3px 12px; border-radius: 6px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.demo__play { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: var(--body); }
.demo__play:hover { background: var(--surface-2); }
.demo__play svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo__play .i-play { display: none; fill: currentColor; stroke: none; }
.demo.is-paused .i-pause { display: none; }
.demo.is-paused .i-play { display: block; }
.demo__app { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 470px; }
.demo__side { display: flex; flex-direction: column; gap: 18px; padding: 16px 12px; border-right: 1px solid var(--rule-faint); background: #FAFAFF; }
.demo__brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.demo__brand > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.demo__brand b { font-size: 14px; font-weight: 600; color: var(--ink); }
.demo__brand .small { font-size: 12px; }
.demo__avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #F2A65A; color: #fff; font-size: 14px; font-weight: 600; }
.demo__nav { display: flex; flex-direction: column; gap: 2px; }
.demo__tab { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--body); text-align: left; overflow: hidden; transition: background .2s, color .2s; }
.demo__tab svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.demo__tab:hover { background: var(--surface-2); color: var(--ink); }
.demo__tab.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.demo__tab.is-on svg { color: var(--brand); }
.demo__prog { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; opacity: 0; }
.demo__tab.is-on .demo__prog { opacity: .7; animation: prog var(--dur, 6s) linear forwards; }
.demo.is-paused .demo__prog { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }
.demo__main { position: relative; padding: 20px 22px; overflow: hidden; background: #fff; }
.demo__cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 3; pointer-events: none; opacity: 0; transition: transform .9s var(--ease), opacity .3s; }
.demo__cursor.is-click { animation: click .3s var(--ease); }
@keyframes click { 50% { scale: .8; } }

.scene { display: none; flex-direction: column; gap: 14px; height: 100%; }
.scene.is-on { display: flex; animation: fade-up .5s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.scene__head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--ink); }
.scene__head b { font-weight: 600; }
.scene__cta { align-self: flex-start; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--paper); }
.kpi b { font-size: 26px; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); font-family: var(--mono); }
.kpi__d { font-size: 12px; font-weight: 500; color: var(--pos); }
.vis { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; flex: 1; }
.vis__chart { width: 100%; height: 190px; border-bottom: 1px solid var(--rule-faint); background: repeating-linear-gradient(to bottom, transparent 0 46px, var(--rule-faint) 46px 47px); }
.is-on .vis__chart path { animation: draw 1.8s var(--ease) .2s both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.vis__ais, .sov { display: flex; flex-direction: column; gap: 12px; }

.mbar { display: grid; grid-template-columns: 128px 1fr 40px; align-items: center; gap: 12px; font-size: 13px; color: var(--ink); }
.mbar__n { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mbar__n .logo-ai { width: 16px; height: 16px; border-radius: 4px; }
.mbar__t { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mbar__t i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--brand); }
.mbar > .num { text-align: right; color: var(--body); }
.sov .mbar__t i { background: #C5CCDB; }
.mbar--you .mbar__t i { background: var(--brand); }
.mbar--you .dot { background: var(--brand); }
.is-on .mbar__t i { animation: grow 1s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes grow { from { width: 0; } }

.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper); font-size: 13px; color: var(--ink); }
.row .logo-ai { width: 16px; height: 16px; border-radius: 4px; }
.row__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-on .row, .is-on .kwt__r:not(.kwt__r--h), .is-on .pcard { animation: fade-up .5s var(--ease) both; animation-delay: var(--d, 0ms); }

.kwsearch { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); box-shadow: 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(9, 67, 176, .1); font-size: 14px; color: var(--ink); }
.kwsearch svg { width: 16px; height: 16px; color: var(--muted); }
.caret { width: 1.5px; height: 16px; margin-left: -8px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kwt__r { display: grid; grid-template-columns: minmax(0, 2fr) 70px 110px 76px; align-items: center; gap: 12px; padding: 9px 4px; font-size: 13px; color: var(--ink); }
.kwt__r + .kwt__r { border-top: 1px solid var(--rule-faint); }
.kwt__r--h { font-size: 12px; color: var(--muted); }
.kwt__k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd { display: flex; align-items: center; gap: 8px; }
.kd i { display: block; height: 6px; max-width: 60px; border-radius: 999px; background: var(--pos); }
.kd i.is-mid { background: var(--spark); }
.kd em { font-style: normal; font-size: 12px; color: var(--body); }

.cal7 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; flex: 1; align-content: start; }
.cal7__d { grid-row: 1; padding-bottom: 2px; font-size: 12px; color: var(--muted); }
.pcard { grid-column: var(--c); grid-row: var(--r); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 92px; padding: 10px; border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow-sm); font-size: 12px; }
.pcard b { font-weight: 500; line-height: 1.35; color: var(--ink); }
.pcard span { display: flex; justify-content: space-between; align-items: center; }
.pcard em { font-style: normal; font-weight: 500; color: var(--pos); }
.pri { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: var(--r-xs); }
.pri--high { color: var(--brand); background: var(--brand-pale); }
.pri--mid { color: var(--body); background: var(--surface-2); }

.writer { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; flex: 1; }
.doc { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--r-md); box-shadow: var(--ring); }
.doc__t { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); }
.doc__p { min-height: 110px; font-size: 13px; line-height: 1.65; color: var(--body); }
.doc__h { font-size: 14px; font-weight: 600; color: var(--ink); }
.doc__ln { display: block; height: 8px; width: var(--w); border-radius: 4px; background: var(--surface-2); }
.scores { display: flex; flex-direction: column; gap: 14px; }
.ring { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--paper); }
.ring svg { grid-row: span 2; width: 52px; height: 52px; }
.ring b { font-size: 22px; font-weight: 400; color: var(--ink); line-height: 1; font-family: var(--mono); letter-spacing: -0.03em; }
.ring__v { stroke-dasharray: var(--v) 100; }
.is-on .ring__v { animation: ring 1.4s var(--ease) both; }
@keyframes ring { from { stroke-dasharray: 0 100; } }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks .tick { font-size: 13px; }

/* Shared by the platform pages */
.rank { padding: 2px 9px; border-radius: var(--r-xs); background: var(--pos-bg); color: var(--pos); font-size: 12px; font-weight: 500; }
.miss { color: var(--faint); font-weight: 400; }
/* An AI answer */
.ans { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); box-shadow: var(--ring); }
.art .ans { box-shadow: none; padding: 4px; }
.ans__q { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-faint); font-size: 14px; font-weight: 600; color: var(--ink); }
.ans__q .logo-ai { width: 18px; height: 18px; border-radius: var(--r-xs); }
.ans__a { min-height: 96px; font-size: 14px; line-height: 1.7; color: var(--body); }
.ans__a mark { padding: 1px 4px; border-radius: 4px; background: var(--brand-pale); color: var(--brand); font-weight: 500; }
.ans__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ans__tags .pill { justify-self: auto; }

/* Setup mocks */
.av-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.av-form label, .av-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.av-input { padding: 9px 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 400; font-size: 14px; }
.av-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: var(--r-sm); box-shadow: 0 0 0 1px rgba(6, 27, 68, .08); }
.av-tags .pill { justify-self: auto; }
.av-tags .logo-ai { width: 14px; height: 14px; border-radius: 3px; }
.av-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper); font-size: 14px; color: var(--body); }
.av-check.is-on { color: var(--ink); }
.av-box { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #C5CCDB; }
.av-check.is-on .av-box { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.av-ais { display: flex; gap: 3px; }
.av-ais .logo-ai { width: 14px; height: 14px; border-radius: 3px; }


/* AIs strip */
.h-ais { padding: 56px 0 8px; }

/* One platform */
.h-unify .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.h-unify .h2 { align-self: flex-start; max-width: 720px; text-align: left; }
.h-unify__art { width: 100%; max-width: 960px; }
/* The whole city fits on screen, however short the window. */
.h-unify__art .iso { width: 100%; height: auto; max-height: calc(100svh - 120px); margin: 0 auto; }
.h-unify__art + .h2 { margin-top: 32px; }
.iso { display: block; width: 100%; height: auto; overflow: visible; }
.iso-link { fill: none; stroke: #A3AEC4; stroke-width: 1.5; stroke-dasharray: 4 5; }
.iso-break circle { fill: #fff; stroke: #E8C3BE; }
.iso-break path { stroke: var(--neg); stroke-width: 1.6; stroke-linecap: round; }
.iso-label { font-size: 14px; font-weight: 500; fill: var(--body); text-anchor: middle; }
.iso-float { animation: drift 6s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-6px); } }
.iso-road { fill: none; stroke: #D3DCF0; stroke-width: 15; stroke-linecap: butt; }
.iso-lane { fill: none; stroke: #fff; stroke-width: 1.2; stroke-dasharray: 6 7; }
.iso-car { fill: var(--brand); }
.iso-car--b { fill: #F2A65A; }
.iso-shadow { fill: rgba(9, 67, 176, .22); filter: url(#iso-blur); }
.iso-pulse { fill: none; stroke: var(--brand); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 3s var(--ease) infinite; }
@keyframes pulse { from { opacity: .7; transform: scale(.55); } to { opacity: 0; transform: scale(1.25); } }
.iso-beam { fill: url(#iso-beam); }
.iso-beam--over { fill: url(#iso-beam-lit); pointer-events: none; mix-blend-mode: multiply; }
.iso-tag--lit rect { stroke: rgba(79, 127, 224, .55); filter: drop-shadow(0 0 10px rgba(79, 127, 224, .45)) drop-shadow(0 2px 4px rgba(6, 27, 68, .08)); }
.iso-logo { animation: hover 4s ease-in-out infinite; }
@keyframes hover { 50% { translate: 0 -10px; } }
.iso-logo__tile { fill: #fff; stroke: rgba(9, 67, 176, .14); filter: drop-shadow(0 18px 24px rgba(9, 67, 176, .28)); }
.iso-logo__halo { fill: url(#iso-halo); transform-box: fill-box; transform-origin: center; animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.15); opacity: .6; } }
.iso-logo__spark { transform-box: fill-box; transform-origin: center; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.75) rotate(45deg); } }
.iso-pin { fill: none; stroke: var(--brand); stroke-width: 1.3; }
.iso-dot { fill: var(--brand); }
.iso-tag rect { fill: #fff; stroke: rgba(9, 67, 176, .25); filter: drop-shadow(0 2px 4px rgba(6, 27, 68, .08)); }
.iso-tag text { font-size: 12.5px; font-weight: 500; fill: var(--ink); text-anchor: middle; }
.iso-tag--on rect { fill: var(--brand); stroke: var(--brand); }
.iso-tag--on text { fill: #fff; font-weight: 600; }
/* Phones: the drawings bleed past the gutters and their labels grow, so the words stay readable. */
@media (max-width: 600px) {
  .h-unify { overflow: hidden; }
  .h-unify__art { width: calc(100% + 32px); max-width: none; }
  .h-unify__art .iso--scattered { width: 112%; max-width: none; margin-left: -6%; }
  .h-unify__art .iso--unified { width: 134%; max-width: none; margin-left: -17%; max-height: none; }
  .iso-label { font-size: 22px; }
  .iso-tag { transform-box: fill-box; transform-origin: center; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) { .iso-float, .iso-pulse, .iso-logo, .iso-logo__halo, .iso-logo__spark { animation: none; } .iso-car { display: none; } }

/* Features */
.h-details { background: var(--paper); }
.h-details .wrap { display: flex; flex-direction: column; gap: 96px; }
.h-details .h-head { margin-bottom: -24px; }
.detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.detail--flip .detail__copy { order: 2; }
.detail__copy { display: flex; flex-direction: column; gap: 14px; }
.detail__copy .h2 { font-size: clamp(26px, 3.2vw, 36px); }
.art { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.art__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; font-size: 15px; color: var(--ink); }
.art__head b { font-weight: 600; }
.vt { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.vt--head { font-size: 12px; color: var(--muted); }
.vt__ai { display: flex; justify-content: center; }
.vt__ai .logo-ai { width: 18px; height: 18px; border-radius: 5px; }
.heat { padding: 8px 0; border-radius: var(--r-xs); text-align: center; font-size: 13px; font-weight: 500; color: var(--ink); background: rgba(9, 67, 176, calc(var(--v) * .4)); }
.src { display: grid; grid-template-columns: 18px 1fr auto 76px; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--ink); }
.src + .src, .tpage + .tpage { border-top: 1px solid var(--rule-faint); }
.src__c { color: var(--body); }
.tpage { display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr 52px; align-items: center; gap: 14px; padding: 11px 0; font-size: 14px; color: var(--ink); }
.tpage__u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpage__b { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tpage__b i { display: block; height: 100%; border-radius: 999px; background: #3FA89A; }
.tpage .num { text-align: right; color: var(--body); }
.rep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rep__k { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-md); background: var(--paper); }
.rep__k b { font-size: 24px; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); font-family: var(--mono); }
.rep__d { font-size: 12px; font-weight: 500; color: var(--pos); }
.share { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: var(--r-md); box-shadow: var(--ring); }
.share__url { font-size: 13px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Features bento: one tile per tool. A product view on top, the label, title and three points below. */
.h-feat { background: var(--paper); }
.ft-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.ft-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 2px; background: var(--brand); }
.ft-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 16px; }
.ft-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-xl); background: var(--surface); transition: border-color .2s var(--ease); }
.ft-tile:hover { border-color: #D3D9E6; }
.ft-tile--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.ft-tile--6 { grid-column: span 6; }
.ft-tile--4 { grid-column: span 4; }
.ft-vis { height: 300px; padding: 24px 24px 0; overflow: hidden; background-color: var(--paper); background-image: radial-gradient(var(--rule) 1px, transparent 1px); background-size: 16px 16px; border-bottom: 1px solid var(--rule); }
.ft-tile--wide .ft-vis { height: auto; min-height: 400px; padding: 32px 0 0 32px; border-bottom: 0; border-right: 1px solid var(--rule); }
.ft-win { height: 100%; overflow: hidden; border-radius: 10px 10px 0 0; background: var(--surface); box-shadow: 0 0 0 1px var(--rule), 0 10px 30px -12px rgba(6, 27, 68, .18); }
.ft-tile--wide .ft-win { border-radius: 10px 0 0 0; }
.ft-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--rule-faint); font-size: 13px; color: var(--ink); white-space: nowrap; }
.ft-bar__c { color: var(--muted); }
.ft-bar b { font-weight: 500; }
.ft-bar__k { margin-left: auto; padding: 1px 6px; border-radius: var(--r-xs); box-shadow: var(--ring); font-size: 11px; color: var(--muted); }
.ft-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.ft-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 6px; }
.ft-kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); box-shadow: var(--ring); font-size: 12px; color: var(--muted); }
.ft-kpi b { font-family: var(--mono); font-size: 24px; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; }
.ft-d { font-style: normal; font-weight: 500; }
.ft-d--up { color: var(--pos); }
.ft-d--down { color: var(--neg); }
.ft-heat { display: flex; flex-direction: column; gap: 6px; padding: 10px 16px 16px; }
.ft-sov { display: grid; grid-template-columns: 140px 1fr 36px; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--ink); }
.ft-sov__n { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ft-sov__n .logo-ai { width: 16px; height: 16px; }
.ft-sov__n em { padding: 0 6px; border-radius: var(--r-xs); background: var(--brand-pale); font-size: 11px; font-style: normal; font-weight: 500; color: var(--brand); }
.ft-sov__t { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ft-sov__t i { display: block; height: 100%; border-radius: 999px; background: #C5CEE0; }
.ft-sov.is-you .ft-sov__t i { background: var(--brand); }
.ft-sov > .num { text-align: right; color: var(--body); }
.ft-seg { display: inline-flex; gap: 2px; margin: 12px 16px 6px; padding: 2px; border-radius: var(--r-sm); box-shadow: var(--ring); font-size: 12px; color: var(--body); }
.ft-seg span { padding: 3px 10px; border-radius: var(--r-xs); }
.ft-seg .is-on { background: var(--brand-pale); color: var(--brand); font-weight: 500; }
.ft-kw { display: grid; grid-template-columns: minmax(0, 1fr) 64px 34px; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--rule-faint); font-size: 13px; color: var(--ink); }
.ft-kw--head { border-top: 0; padding-bottom: 4px; font-size: 12px; color: var(--muted); }
.ft-kw--pages { grid-template-columns: minmax(0, 1.5fr) 1fr 52px; gap: 14px; padding: 0; }
.ft-kw--pages > :last-child { text-align: right; }
.ft-kw > .num { text-align: right; color: var(--body); }
.ft-kw__k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-kd { padding: 1px 0; border-radius: var(--r-xs); text-align: center; font-size: 12px; font-weight: 500; background: rgba(192, 42, 53, calc(var(--kd) * .22)); }
.ft-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 16px; }
.ft-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ft-col__h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ft-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--r-xs); font-size: 12px; font-weight: 500; }
.ft-tag--gray { color: var(--chip-ink); background: var(--chip-bg); }
.ft-tag--blue { color: var(--brand); background: var(--brand-pale); }
.ft-tag--green { color: var(--pos); background: var(--pos-bg); }
.ft-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--r-md); box-shadow: var(--ring); background: var(--surface); }
.ft-card b { font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.ft-card span { font-size: 12px; color: var(--muted); }
.ft-copy { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 24px; }
.ft-tile--wide .ft-copy { justify-content: center; gap: 14px; padding: 40px; }
.ft-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ft-label { font-weight: 500; color: var(--ink); }
.ft-title { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.ft-tile--wide .ft-title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }
.ft-text { font-size: 16px; color: var(--body); text-wrap: pretty; }
.ft-rule { width: 100%; margin: 4px 0; border: 0; border-top: 1px dashed var(--rule); }
.ft-list { display: flex; flex-direction: column; gap: 10px; }
.ft-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--body); }
.ft-list svg { flex-shrink: 0; color: var(--muted); }
@media (max-width: 960px) {
  .ft-tile--wide, .ft-tile--6, .ft-tile--4 { grid-column: 1 / -1; }
  .ft-tile--wide { display: flex; }
  .ft-tile--wide .ft-vis { min-height: 0; height: 340px; padding: 24px 0 0 24px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .ft-tile--wide .ft-copy { padding: 24px; }
}
@media (max-width: 600px) {
  .ft-head { margin-bottom: 32px; }
  .ft-vis { height: 280px; padding: 16px 16px 0; }
  .ft-tile--wide .ft-vis { height: 320px; padding: 16px 0 0 16px; }
  .ft-kpi { padding: 8px; }
  .ft-kpi b { font-size: 18px; }
  .ft-sov { grid-template-columns: 112px 1fr 32px; gap: 8px; }
  .ft-board { gap: 6px; padding: 12px; }
  .ft-copy, .ft-tile--wide .ft-copy { padding: 18px; }
}

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.how__steps { display: flex; flex-direction: column; gap: 6px; }
.how__step { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 20px 24px; border-radius: var(--r-lg); text-align: left; overflow: hidden; transition: background .2s; }
.how__step:hover { background: var(--paper); }
.how__step.is-on { background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-faint); }
.how__step b { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.how__d { display: none; font-size: 15px; color: var(--body); }
.how__step.is-on .how__d { display: block; animation: fade-up .4s var(--ease); }
.how__prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.how__step.is-on .how__prog { animation: prog 6s linear forwards; }
.how.is-held .how__prog { animation: none; }
.how__win { overflow: hidden; }
.how__count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--brand); }
.how__count b { font-weight: 500; }
.hs { display: none; flex-direction: column; gap: 14px; min-height: 380px; padding: 24px; }
.hs.is-on { display: flex; animation: fade-up .45s var(--ease); }
.hs__t { font-size: 17px; font-weight: 600; color: var(--ink); }
.hs__score { display: flex; align-items: center; gap: 12px; }
.hs__score b { font-size: 40px; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-family: var(--mono); }
.hs__note { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; border-radius: var(--r-md); background: var(--paper); font-size: 13px; color: var(--body); }
.hs__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hs__btn { align-self: flex-start; margin-top: auto; }
.flow { display: flex; flex-direction: column; gap: 8px; }
.flow__gap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: var(--r-md); background: #FBF2F1; }
.flow__gap b { font-weight: 500; color: var(--ink); }
.flow__arrow { align-self: center; color: var(--brand); font-size: 18px; line-height: 1; }
.flow__kw { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm); box-shadow: var(--ring); font-size: 14px; color: var(--ink); }
.flow__kw .num { color: var(--pos); font-weight: 500; }
.is-on .flow__kw { animation: fade-up .45s var(--ease) both; }
.is-on .flow__kw:nth-of-type(2) { animation-delay: .1s; }
.is-on .flow__kw:nth-of-type(3) { animation-delay: .2s; }
.strat { display: grid; grid-template-columns: minmax(0, 1fr) 80px 60px; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--ink); }
.strat + .strat { border-top: 1px solid var(--rule-faint); }
.strat--h { font-size: 12px; color: var(--muted); padding-top: 0; }
.strat b { text-align: right; font-weight: 500; color: var(--pos); }
.strat .pill { justify-self: start; }
.doc--sm .doc__ln { height: 7px; }

/* Compare */
.h-vs { background: var(--paper); }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px; }
.cmp { width: 100%; min-width: 960px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 15px; color: var(--ink); }
.cmp col.cmp__lab { width: 25%; }
.cmp th, .cmp td { height: 64px; padding: 0 12px; text-align: center; vertical-align: middle; font-weight: 400; }
.cmp thead th { height: 88px; }
.cmp thead img { display: block; margin: 0 auto; height: 24px; width: auto; max-width: 100%; object-fit: contain; }
.cmp tbody th { padding-left: 20px; text-align: left; }
/* Every tool gets the same treatment. Arrowsterr only stands out by its colored logo. */
.cmp tbody tr:nth-child(odd) > * { background: #fff; }
.cmp tbody tr:nth-child(odd) > :first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.cmp tbody tr:nth-child(odd) > :last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.yes, .no { display: inline-block; width: 18px; height: 18px; vertical-align: middle; background: center / contain no-repeat; }
.yes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8' fill='none' stroke='%230E7C57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.no { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 4.5l9 9M13.5 4.5l-9 9' fill='none' stroke='%23D1553A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cmp-note { margin-top: 16px; text-align: right; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .cmp-note { text-align: left; } }
/* Closing CTA */
.h-cta { padding: 96px 0; }
.cta .h2 { max-width: 820px; }
.cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 72px 64px; border-radius: var(--r-xl); text-align: left;
}
.cta .h-ctas { justify-content: flex-start; }
.cta .logo-stack { display: inline-flex; gap: 10px; }
.cta .logo-stack span { display: inline-flex; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.cta .logo-stack .logo-ai { width: 24px; height: 24px; border-radius: 7px; opacity: .92; }

@media (max-width: 1020px) {
  .detail, .how { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .h-head { grid-template-columns: minmax(0, 1fr); }
  .h-head > .lede { grid-column: 1; }
  .detail--flip .detail__copy { order: 0; }
}
@media (max-width: 860px) {
  .demo__app { grid-template-columns: minmax(0, 1fr); height: auto; }
  .demo__side { flex-direction: row; padding: 10px; border-right: 0; border-bottom: 1px solid var(--rule-faint); overflow-x: auto; scrollbar-width: none; }
  .demo__side::-webkit-scrollbar { display: none; }
  .demo__brand { display: none; }
  .demo__nav { flex-direction: row; }
  .demo__tab { white-space: nowrap; }
  .demo__main { min-height: 520px; padding: 16px; }
  .demo__cursor { display: none; }
  .vis, .writer { grid-template-columns: 1fr; }
  .vis__chart { height: 120px; }
}
@media (max-width: 600px) {
  .cta { padding: 48px 24px; }
  .av-form { grid-template-columns: 1fr; }
  .h-hero { padding-top: 56px; }
  .kpis { gap: 6px; }
  .kpi { padding: 10px; }
  .kpi b { font-size: 20px; }
  .mbar { grid-template-columns: 104px 1fr 36px; gap: 8px; }
  .kwt__r { grid-template-columns: minmax(0, 1fr) 52px 70px; }
  .kwt__r > :nth-child(4) { display: none; }
  .cal7 { grid-template-columns: 1fr; }
  .cal7__d { display: none; }
  .pcard { grid-column: 1; grid-row: auto; min-height: 0; }
  .pcard:nth-of-type(n+5) { display: none; }
  .h-details .wrap { gap: 72px; }
  .art, .hs { padding: 16px; }
  .vt { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); font-size: 13px; }
  .tpage { grid-template-columns: minmax(0, 1fr) 60px 44px; }
  .how__step { padding: 16px; }
  .h-cta { padding: 64px 0; }
}

/* Hero headline: streams in like an AI writing it (see quirks.js). */
.ty-rest { color: transparent; }
.ty-tok { animation: ty-in .28s var(--ease) both; }
@keyframes ty-in { from { opacity: 0; filter: blur(4px); } }
.ty-caret {
  display: inline-block; width: .09em; height: .82em; margin: 0 .02em 0 .04em; vertical-align: -.04em;
  border-radius: 1px; background: var(--brand); animation: ty-blink 1s steps(1) infinite;
}
.ty-caret.is-done { opacity: 0; transition: opacity .4s; animation: none; }
@keyframes ty-blink { 50% { opacity: 0; } }

/* Zippie says hi (homepage only). The Zippie section itself lives in assets/zippie.css. */
.zhi { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: flex-end; gap: 8px; transition: opacity .25s, transform .25s; }
.zhi[hidden] { display: none; }
.zhi.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.zhi__me { display: inline-flex; border-radius: 999px; padding: 4px; transition: transform .2s; cursor: pointer; filter: drop-shadow(0 8px 14px rgba(9, 67, 176, .25)); }
.zhi__me:hover { transform: translateY(-3px) rotate(-4deg); }
.zhi__bubble { position: relative; max-width: 270px; margin-bottom: 44px; border-radius: 18px 18px 4px 18px; background: #fff; padding: 12px 16px; text-align: left; font-size: 14px; line-height: 1.45; color: var(--ink); box-shadow: 0 0 0 1px var(--rule), 0 14px 34px -14px rgba(11, 27, 63, .35); cursor: pointer; animation: zhi-in .35s ease-out; }
.zhi__bubble span { display: block; transition: opacity .25s; }
.zhi__bubble.is-swap span { opacity: 0; }
.zhi__close { position: absolute; top: -10px; right: 70px; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; font-size: 15px; line-height: 1; color: var(--muted); box-shadow: 0 0 0 1px var(--rule), 0 4px 10px -4px rgba(11, 27, 63, .3); opacity: 0; transition: opacity .15s; }
.zhi:hover .zhi__close, .zhi__close:focus-visible { opacity: 1; }
.zhi.is-quiet .zhi__bubble, .zhi.is-quiet .zhi__close { display: none; }
@keyframes zhi-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@media (max-width: 600px) {
  .zhi { right: 12px; bottom: 12px; }
  .zhi__bubble, .zhi__close { display: none; }
}
@media (prefers-reduced-motion: reduce) { .zhi__bubble { animation: none !important; } }

/* ═══════════════════════════════════════════════════════════════════════
   BRAND V5 · "THE NAVIGATOR" (homepage)
   Tokens from the Arrowsterr Brand design system (docs/brand.md in the app
   repo): grey product base, Signal Blue to point, Night to close, one gold
   Spark per view. Motifs: the Climb eyebrow, payoff words, the Notch on the
   main button and the featured tile, Target ticks, the dotted flight grid.
   Tokens, eyebrows, payoff words and notched buttons live in base.css.
   ═══════════════════════════════════════════════════════════════════════ */
/* Hero: the flight grid (dots on the rail-locked grid) in place of lines. */
.h-hero__copy { gap: 22px; }
.h-hero::before {
  background-image: radial-gradient(circle, var(--rule-strong) 1.3px, transparent 1.8px);
  background-size: var(--cell-x) var(--cell);
  background-position: calc(var(--grid-x) - var(--cell-x) / 2) calc(var(--cell) / -2);
}
.h-hero::after {
  background-image: radial-gradient(circle, var(--brand) 1.8px, transparent 2.3px);
  background-size: var(--cell-x) var(--cell);
  background-position: calc(var(--grid-x) - var(--cell-x) / 2) calc(var(--cell) / -2);
}
.h-hero .h1 { font-weight: 700; }
.h-hero__copy > .small { font-size: 14px; color: var(--muted); }
.home .demo__side { background: var(--paper); }
.home .demo__tab.is-on { box-shadow: inset 0 0 0 1px var(--rule); }

/* Square tracks: no pills anywhere. */
.home .mbar__t, .home .mbar__t i, .home .tpage__b, .home .tpage__b i, .home .kd i,
.home .ft-sov__t, .home .ft-sov__t i { border-radius: 2px; }
.home .sov .mbar__t i, .home .ft-sov__t i { background: var(--rule-strong); }
.home .tpage__b i { background: var(--sky); }
.home .ft-sov.is-you .ft-sov__t i, .home .mbar--you .mbar__t i { background: var(--brand); }

/* Deltas carry a chevron, so a change reads without colour. */
.home .ft-d, .home .kpi__d, .home .rep__d { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); }
.home .ft-d::before, .home .kpi__d::before, .home .rep__d::before {
  content: ''; width: 9px; height: 7px; flex: none; background: currentColor;
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
}
.home .ft-d--down::before { transform: scaleY(-1); }

/* Features: the wide tile is the featured frame, with the Notch. */
.home .ft-dot {
  width: 11px; height: 8px; border-radius: 0; background: var(--brand);
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
}
.home .ft-tile:hover { border-color: var(--rule-strong); }
.home .ft-tile--wide {
  position: relative; border-top-right-radius: 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.home .ft-tile--wide::after {
  content: ''; position: absolute; top: 0; right: 0; width: 16px; height: 16px; pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - .75px), var(--rule-strong) calc(50% - .75px), var(--rule-strong) calc(50% + .75px), transparent calc(50% + .75px));
}
.home .ft-vis { background-image: radial-gradient(var(--rule-strong) 1px, transparent 1.4px); }
.home .ft-win { border-radius: 8px 8px 0 0; box-shadow: 0 0 0 1px var(--rule); }
.home .ft-tile--wide .ft-win { border-radius: 8px 0 0 0; }
/* Target ticks on the first number in the featured tile. */
.home .ft-tile--wide .ft-kpi:first-child {
  position: relative;
  background:
    linear-gradient(var(--brand), var(--brand)) top left / 10px 1.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) top left / 1.5px 10px no-repeat,
    linear-gradient(var(--brand), var(--brand)) top right / 10px 1.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) top right / 1.5px 10px no-repeat,
    linear-gradient(var(--brand), var(--brand)) bottom left / 10px 1.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) bottom left / 1.5px 10px no-repeat,
    linear-gradient(var(--brand), var(--brand)) bottom right / 10px 1.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) bottom right / 1.5px 10px no-repeat,
    var(--surface);
  box-shadow: none;
}
.home .ft-list svg { color: var(--brand); }

/* How it works: numbered steps in mono. */
.home .how__steps { counter-reset: how; }
.home .how__step b { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-size: 20px; }
.home .how__step b::before { counter-increment: how; content: counter(how, decimal-leading-zero); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--brand); }
.home .how__d { padding-left: 28px; }
.home .flow__gap { background: var(--neg-bg); }


/* Compare: brand colours on the marks. */
.home .yes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.5 3.5 7.5-8' fill='none' stroke='%230B7A54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.home .no { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 4.5l9 9M13.5 4.5l-9 9' fill='none' stroke='%23C02A35' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.home .cmp tbody th { font-weight: 500; }


/* ═══════════════════════════════════════════════════════════════════════
   MOTION, after brew.new
   1 sky, 2 rotating word, 3 live logo, 4 shine ring, 5 breathing rings,
   6 marquee, 7 prompt stage, 8 auto-advance, 9 card reveal (base.css),
   10 live dot. Loops pause off screen (home.js) and stop for reduced motion.
   ═══════════════════════════════════════════════════════════════════════ */

/* 1 · Sky: a blue gradient, two drifting blurred shapes and grain */
.sky { position: relative; isolation: isolate; overflow: clip; border-radius: 24px; background: linear-gradient(180deg, #F3F6FF 0%, #8FB0FF 45%, #4F7FE0 78%, #0943B0 100%); }
.sky::before, .sky::after { content: ''; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; animation: sky-drift 24s ease-in-out infinite alternate; }
.sky::before { background: #fff; top: -25%; left: -12%; }
.sky::after { background: #0943B0; bottom: -35%; right: -18%; animation-duration: 31s; animation-delay: -8s; }
@keyframes sky-drift { to { transform: translate(18%, 12%) rotate(40deg) scale(1.15); } }
.sky__grain { position: absolute; inset: 0; z-index: -1; opacity: .33; mix-blend-mode: overlay; pointer-events: none; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 256px 256px; }
.sky.is-off::before, .sky.is-off::after, .sky.is-off .sky__ring { animation-play-state: paused; }
.h-sky { margin-top: 56px; padding: 56px 24px 0; }
.h-sky .h-film { margin-top: 0; border-radius: 18px 18px 0 0; padding-bottom: 0; box-shadow: 0 30px 70px rgba(6, 44, 117, .28); }
.h-sky .h-film__video { border-radius: 12px 12px 0 0; }
@media (min-width: 768px) { .h-sky { padding: 72px 56px 0; } }

/* 5 · Breathing rings behind the film */
.sky__ring { position: absolute; left: 50%; top: 105%; z-index: -1; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); transform: translate(-50%, -50%); pointer-events: none; animation: sky-breathe 6s ease-in-out infinite; }
.sky__ring--1 { width: 140%; }
.sky__ring--2 { width: 108%; border-color: rgba(255, 255, 255, .9); background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, .25) 40%, transparent 70%); animation-delay: -2s; }
.sky__ring--3 { width: 78%; border-color: rgba(255, 255, 255, .45); animation-delay: -4s; }
@keyframes sky-breathe { 0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .7; transform: translate(-50%, -50%) scale(1.04); } }

/* 2 · Rotating word: rise in, hold, rise out (quirks.js swaps the word each loop) */
.h-rot--turn { white-space: nowrap; }
.h-rot__w { display: inline-block; animation: rot-turn 2.5s -.3s infinite; }
@keyframes rot-turn {
  0% { opacity: 0; transform: translateY(.3em); animation-timing-function: var(--ease); }
  12% { opacity: 1; transform: translateY(0); animation-timing-function: linear; }
  88% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(.64, 0, .78, 0); }
  100% { opacity: 0; transform: translateY(-.3em); }
}

/* 3 · Live logo: the Spark twinkles, a sheen climbs the chevrons, gold embers rise */
.h-mark { position: relative; width: 44px; height: 48px; }
.h-mark svg { width: 100%; height: 100%; overflow: visible; }
.h-mark__star { transform-box: fill-box; transform-origin: center; animation: mark-twinkle 2.6s ease-in-out infinite; }
@keyframes mark-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 18% { transform: scale(.82) rotate(-12deg); } 40% { transform: scale(1.12) rotate(8deg); } 62% { transform: scale(.94) rotate(-4deg); } 80% { transform: scale(1.04) rotate(6deg); } }
.h-mark__sheen { animation: mark-sheen 3.2s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes mark-sheen { 0% { transform: translateY(70px); } 70%, 100% { transform: translateY(-40px); } }
.h-mark__ember { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--spark); opacity: 0; animation: mark-ember 2.7s ease-out infinite; }
@keyframes mark-ember { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--drift, 4px), -28px) scale(.3); } }

/* 4 · Shine: a blue light circles the main button, cut to the same notch */
@property --shine-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.shine { position: relative; display: inline-flex; padding: 2px; --notch: 12px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  background: conic-gradient(from var(--shine-a), rgba(9, 67, 176, .18) 0deg, #8FB0FF 70deg, #fff 90deg, rgba(9, 67, 176, .18) 110deg 360deg);
  animation: shine-spin 4s linear infinite; }
@keyframes shine-spin { to { --shine-a: 360deg; } }

/* 6 · Marquee: the AI logos scroll, with faded edges */
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee .ai-row { flex-wrap: nowrap; gap: 12px; padding-right: 12px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 7 · Prompt stage */
.h-ask__stage { min-height: 460px; padding: 64px 16px 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ask { position: relative; z-index: 2; width: 100%; max-width: 580px; min-height: 136px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 18px 20px 14px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 16px 40px -16px rgba(6, 44, 117, .45); }
.ask__q { font-size: 17px; line-height: 26px; color: var(--ink); min-height: 52px; }
.ask__caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--brand); animation: blink 1s steps(1) infinite; }
.ask__foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.ask__go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); }
.answers { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; display: flex; justify-content: center; gap: 12px; padding: 0 16px; }
.answers > li { flex: 1; max-width: 180px; min-width: 0; height: 100%; transform-origin: bottom center; transform: translateY(100%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); transition-delay: calc(var(--k) * 40ms); }
.answers > li:nth-child(1) { --y: 16px; --r: -4deg; } .answers > li:nth-child(2) { --y: 4px; --r: -1.5deg; } .answers > li:nth-child(3) { --y: 0px; --r: 0deg; } .answers > li:nth-child(4) { --y: 4px; --r: 1.5deg; } .answers > li:nth-child(5) { --y: 16px; --r: 4deg; }
.answers.is-up > li { transform: translateY(var(--y)) rotate(var(--r)); opacity: 1; }
.answer { height: 100%; padding: 12px; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 -10px 30px -12px rgba(6, 44, 117, .45); font-size: 13px; line-height: 20px; color: var(--muted); overflow: hidden; }
.answer__ai { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.answer__ai .logo-ai { width: 16px; height: 16px; }
.answer__list { list-style: decimal; padding-left: 18px; }
.answer__list .is-us { color: var(--brand); font-weight: 600; }
.h-ask .cmp-note { text-align: center; }
@media (max-width: 640px) { .answers > li:nth-child(n+4) { display: none; } .answers { gap: 8px; } }

/* 8 · Auto-advance: How it works pauses its 6s fill while you hover it */
.how:hover .how__step.is-on .how__prog { animation-play-state: paused; }

/* 10 · Live dot on the hero label */
.eyebrow--live::before { display: none; }
.live-dot { position: relative; width: 8px; height: 8px; flex: none; }
.live-dot::before, .live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2BAA5E; }
.live-dot::before { animation: live-radiate 2.2s ease-out infinite; }
@keyframes live-radiate { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

@media (prefers-reduced-motion: reduce) {
  .sky::before, .sky::after, .sky__ring, .h-rot__w, .h-mark__star, .h-mark__sheen, .h-mark__ember, .shine, .marquee__track, .ask__caret, .live-dot::before { animation: none; }
  .answers > li { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE V2: 50:50 hero, "starts with your brand", the scroll city.
   The feature story (story.css) and the closing sections (closing.css) follow.
   ═══════════════════════════════════════════════════════════════════════ */

/* Hero: copy and buttons on the left, the film on the right */
@media (min-width: 1024px) {
  .h-hero { padding-bottom: 32px; }
  .h-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 40px; }
  .h-hero__grid .h-sky { margin-top: 0; padding: 40px 32px; }
  .h-hero__grid .h-sky .h-film { border-radius: 14px; }
  .h-hero__grid .h-sky .h-film__video { border-radius: 10px; }
  .h-hero__grid .sky__ring { top: 50%; }
}

/* Starts with your brand: the site address types, the steps tick, the brand cards land one by one */
.h-brand .h-head { margin-bottom: 40px; }
.h-city__heads .h2 { font-size: clamp(28px, 3.6vw, 44px); }
.h-brand__stage { padding: 40px 32px 32px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.bk-url { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bk-url__box { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; padding: 0 18px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 16px 40px -16px rgba(6, 44, 117, .45); font-size: 16px; color: var(--ink); }
.bk-url__box svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.3; }
.bk-grid { width: 100%; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 14px; align-items: start; }
.bk-col { display: flex; flex-direction: column; gap: 14px; }
.bk-card { padding: 18px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 18px 40px -20px rgba(6, 44, 117, .5); font-size: 13px; line-height: 20px; color: var(--body); }
.bk-file { font-size: 15px; font-weight: 600; color: var(--ink); }
.bk-sub { color: var(--muted); font-size: 12.5px; }
.bk-h { margin: 16px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bk-h--top { margin-top: 0; }
.bk-p b { color: var(--ink); font-weight: 600; }
.bk-colors { display: flex; flex-direction: column; gap: 6px; }
.bk-colors li { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.bk-colors i { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.bk-colors span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-type__top { display: flex; justify-content: space-between; align-items: center; }
.bk-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #0B1B3F; letter-spacing: -.01em; }
.bk-logo img { width: 26px; height: 26px; flex: none; }
.bk-aa { font-size: 30px; font-weight: 600; color: #0B1B3F; letter-spacing: -.02em; }
.bk-aa span { color: #0943B0; }
.bk-fan { position: relative; height: 112px; margin: 14px 0 12px; }
.bk-shot { position: absolute; top: 8px; width: 46%; height: 92px; padding: 10px; display: flex; flex-direction: column; gap: 6px; border-radius: 9px; background: #FCFCFC; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 8px 18px -10px rgba(20, 32, 35, .45); font-size: 11px; color: #0B1B3F; }
.bk-shot i { height: 5px; border-radius: 3px; background: #DCE6FA; }
.bk-shot i:nth-child(3) { width: 70%; } .bk-shot i:nth-child(4) { width: 50%; }
.bk-shot--a { left: 0; transform: rotate(-6deg); }
.bk-shot--b { left: 27%; top: 0; z-index: 1; background: #0943B0; color: #fff; transform: rotate(1deg); }
.bk-shot--b i { background: rgba(255, 255, 255, .35); }
.bk-shot--c { right: 0; transform: rotate(6deg); }
.bk-palette { display: flex; height: 22px; margin-bottom: 8px; border-radius: 6px; overflow: hidden; }
.bk-palette i { flex: 1; }
.bk-list li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--rule); }
.bk-list li:first-child { border-top: 0; padding-top: 0; }
.bk-list b { color: var(--ink); font-weight: 600; }
.bk-list span { color: var(--muted); font-size: 12.5px; }
.bk-rivals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-rivals li { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font-weight: 500; }
.bk-rivals i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.bk-rivals img { width: 22px; height: 22px; display: block; }
.bk-prompts { display: flex; flex-direction: column; gap: 6px; }
.bk-prompts li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); }
.bk-prompts svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.4; stroke-linecap: round; }
.h-brand .cmp-note { text-align: center; }
@media (max-width: 960px) {
  .bk-grid { grid-template-columns: 1fr 1fr; }
  .bk-card--md { grid-row: span 2; }
  .bk-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .h-brand__stage { padding: 24px 12px 20px; }
  .bk-grid, .bk-col:last-child { grid-template-columns: 1fr; }
  .bk-card--md { grid-row: auto; }
    .bk-url { align-items: stretch; }
}
/* The scroll city: the section is tall, the stage stays pinned, and home.js sets --p from 0 to 1 as you scroll.
   0 to .3: the five tools slide to the middle and shrink. .26 to .56: the city rises, district by district.
   .54 to .6: its labels land, and the finished city holds so people can read it. .8 to 1: a line draws down from the
   city's bottom tip to the bottom of the screen (--y), where the feature story's own line picks it up, so the city leads
   into the features. A light runs down both lines and the dot above the first feature glows when it lands.
   The pin sits under the 64px nav, with room above the heading. */
.h-city { position: relative; height: 420vh; --p: 0; }
.h-city__pin { position: sticky; top: 65px; height: calc(100vh - 65px); height: calc(100svh - 65px); display: flex; align-items: center; overflow: hidden; padding: 56px 0 16px; box-sizing: border-box;
  --y: clamp(0, (var(--p) - .8) / .2, 1); }
@media (min-width: 783px) { .admin-bar .h-city__pin { top: 97px; height: calc(100vh - 97px); height: calc(100svh - 97px); } }
.h-city__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.h-city__heads { display: grid; width: 100%; max-width: 820px; text-align: center; }
.h-city__h { grid-area: 1 / 1; align-self: center; }
.h-city__h--a { opacity: calc(1 - clamp(0, (var(--p) - .18) / .06, 1)); transform: translateY(calc(clamp(0, (var(--p) - .18) / .06, 1) * -16px)); }
.h-city__h--b { opacity: clamp(0, (var(--p) - .24) / .06, 1); transform: translateY(calc((1 - clamp(0, (var(--p) - .24) / .06, 1)) * 16px)); }
.h-city__stage { position: relative; display: grid; width: min(100%, 860px, (100svh - 345px) * 960 / 840); }
.h-city__stage > * { grid-area: 1 / 1; align-self: center; }
.h-city__stage .iso { width: 100%; height: auto; }
.h-city__scattered { --t: clamp(0, (var(--p) - .04) / .24, 1); pointer-events: none; transform: translateY(calc(var(--t) * 25%)); }
.h-city__scattered .iso-float { animation: none; }
.h-city .iso-isl { transform-box: fill-box; transform-origin: center;
  transform: translate(calc(var(--dx) * var(--t) * 1px), calc(var(--dy) * var(--t) * 1px)) scale(calc(1 - var(--t) * .55));
  opacity: calc(1 - clamp(0, (var(--p) - .24) / .06, 1)); }
.h-city .iso-isl .iso-label { opacity: calc(1 - var(--t) * 1.6); }
.h-city__scattered .iso-links { opacity: calc(1 - clamp(0, (var(--p) - .02) / .12, 1)); }
.h-city__unified .iso-shadow { opacity: clamp(0, (var(--p) - .26) / .12, 1); }
.h-city .iso-d { --u: clamp(0, (var(--p) - .26 - var(--o) * .022) / .08, 1); opacity: var(--u); transform: translateY(calc((1 - var(--u)) * 36px)); }
.h-city .iso-d:has(.iso-logo) { --o: 10; }
.h-city .iso-tags { opacity: clamp(0, (var(--p) - .54) / .06, 1); }
/* The zipline: it starts at the city's bottom tip (93% down the drawing) and draws down to the bottom of the pin as you
   scroll. --zip-len (home.js) is that distance. A light runs down it on a loop, then down the feature story's line. */
.h-city__zip { position: absolute; left: 50%; top: 93%; width: 2px; height: var(--zip-len, 30vh); margin-left: -1px; background: rgb(9 67 176 / .55); pointer-events: none;
  clip-path: inset(0 -16px calc((1 - var(--y)) * 100%) -16px); }
.h-city__zip::before { content: ""; position: absolute; left: -2px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal, #0943B0); }
.h-city__zip::after, .story__zip::after { content: ""; position: absolute; left: 50%; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px var(--signal, #0943B0), 0 0 12px 4px rgb(9 67 176 / .45); opacity: 0; }
.h-city__zip::after { animation: zip-city 2.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes zip-city { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 70% { top: 100%; opacity: 1; } 72%, 100% { top: 100%; opacity: 0; } }
@media (max-width: 760px) {
  .h-city { height: 340vh; }
  .h-city__stage { width: calc(100% + 32px); max-width: none; }
  .h-city .iso-label { font-size: 22px; }
  .h-city .iso-tag { transform-box: fill-box; transform-origin: center; transform: scale(1.3); }
}
/* No motion: the two pictures, one after the other, like before. */
@media (prefers-reduced-motion: reduce) {
  .h-city { height: auto; padding: var(--section) 0; --p: 1; }
  .h-city__pin { position: static; height: auto; overflow: visible; }
  .h-city__heads, .h-city__stage { display: contents; }
  .h-city__inner { gap: 24px; }
  .h-city__h--a { order: 1; opacity: 1; transform: none; }
  .h-city__scattered { order: 2; width: 100%; max-width: 960px; --t: 0; transform: none; }
  .h-city .iso-isl, .h-city__scattered .iso-links { opacity: 1; }
  .h-city__h--b { order: 3; margin-top: 32px; }
  .h-city__unified { order: 4; width: 100%; max-width: 960px; }
  .h-city__zip { display: none; }
  .story__zip::after, .story__feat:first-child::after { animation: none; }
  }

/* ── Feature story: nine features, two product screens each (pages/home/story.php) ── */

.story { --sx-tint: #F7F8FA; --sx-fade: rgba(9, 67, 176, .06); font-variant-numeric: tabular-nums; }
.story__feat { padding: 96px 0; }
.story__feat + .story__feat { border-top: 1px solid var(--rule-faint); }
/* The line from the city lands here: it runs from the top of the first feature to a dot above its heading. */
.story__feat:first-child { position: relative; }
.story__zip { position: absolute; left: 50%; top: 0; width: 2px; height: 64px; margin-left: -1px; background: rgb(9 67 176 / .55); pointer-events: none; }
.story__zip::after { animation: zip-story 2.8s linear infinite; }
.story__feat:first-child::after { content: ""; position: absolute; left: 50%; top: 64px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff;
  box-shadow: inset 0 0 0 2px var(--signal, #0943B0), 0 0 0 0 rgb(9 67 176 / .35); animation: zip-land 2.8s ease-out infinite; }
/* The same 2.8s beat as the city's light: it enters this line as that one leaves the screen, then the dot glows. */
@keyframes zip-story { 0%, 69% { top: 0; opacity: 0; } 70% { top: 0; opacity: 1; } 86% { top: 100%; opacity: 1; } 88%, 100% { top: 100%; opacity: 0; } }
@keyframes zip-land { 0%, 85% { box-shadow: inset 0 0 0 2px var(--signal, #0943B0), 0 0 0 0 rgb(9 67 176 / .35); } 100% { box-shadow: inset 0 0 0 2px var(--signal, #0943B0), 0 0 0 12px rgb(9 67 176 / 0); } }
.story__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.story__head .h2 { margin: 0; text-wrap: balance; }
.story__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.story__go { display: flex; justify-content: center; margin: 40px 0 0; }
.story__pair .sc:nth-child(2).reveal { transition-delay: .08s; }

/* The card frame */
.story .sc {
  display: flex; flex-direction: column; min-width: 0; margin: 0;
  padding: 28px 28px 0; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden;
  background: linear-gradient(to bottom, var(--sx-tint) 55%, var(--sx-fade)), var(--sx-tint);
}
.story .sc__t { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.story .sc__x { margin: 6px 0 22px; font-size: 15px; line-height: 1.5; color: var(--body); }

/* The white panel inside */
.story .sp {
  flex: 1; display: flex; flex-direction: column; min-height: 0; height: 340px;
  background: var(--surface); border: 1px solid var(--rule); border-bottom: 0; border-radius: 12px 12px 0 0;
  box-shadow: 0 1px 2px rgba(11, 27, 63, .04), 0 8px 24px rgba(11, 27, 63, .06);
  overflow: hidden;
}
.story .sp__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule-faint); }
.story .sp__head b { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.story .sp__head span { font-size: 12.5px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .sp__body {
  flex: 1; min-height: 0; padding: 14px 18px; overflow: hidden; font-size: 14px; color: var(--body);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

/* ── Small parts ── */
.story .sx-ai { width: 16px; height: 16px; flex: none; border-radius: 4px; object-fit: contain; }
.story .sx-tile {
  display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 5px;
  background: var(--c); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 1;
}
.story .sx-tile--logo { display: block; background: none; object-fit: contain; }
.story .sx-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.story .sx-you { padding: 1px 7px; border-radius: 999px; background: var(--brand-pale); color: var(--brand); font-size: 11.5px; font-weight: 500; }
.story .sx-bar { display: inline-block; vertical-align: middle; width: 104px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.story .sx-bar i { display: block; height: 100%; border-radius: 999px; }
.story .sx-pct { display: inline-block; min-width: 34px; margin-left: 8px; text-align: right; color: var(--ink); font-weight: 500; }
.story .sx-dot { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--body); }
.story .sx-dot i { width: 7px; height: 7px; flex: none; border-radius: 50%; }
.story .sx-dot--soft { padding: 2px 8px 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--spark-text); font-size: 12.5px; }
.story .sx-delta { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.story .sx-delta--up { background: var(--pos-bg); color: var(--pos); }
.story .sx-delta--down { background: var(--neg-bg); color: var(--neg); }
.story .sx-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.story .sx-tag--miss { background: var(--neg-bg); color: var(--neg); }
.story .sx-muted { color: var(--muted); }
.story .sx-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Tables ── */
.story .sx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.story .sx-table th { padding: 0 8px 10px; font-size: 12.5px; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--rule); }
.story .sx-table td { padding: 11px 8px; border-bottom: 1px solid var(--rule-faint); color: var(--ink); vertical-align: middle; }
.story .sx-table th:first-child, .story .sx-table td:first-child { padding-left: 0; }
.story .sx-table th:last-child, .story .sx-table td:last-child { padding-right: 0; }
.story .sx-table th.sx-num, .story .sx-table td.sx-num { text-align: right; }
.story .sx-table td { white-space: nowrap; }
.story .sx-table td.sx-muted { color: var(--muted); }
.story .sx-table td:first-child { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ── Answer ── */
.story .sx-chat { display: grid; gap: 12px; }
.story .sx-chat__q { justify-self: end; max-width: 86%; margin: 0; padding: 9px 13px; border-radius: 12px; background: var(--surface-2); color: var(--ink); line-height: 1.45; }
.story .sx-chat__a p, .story .sx-chat__a ol { margin: 0 0 10px; line-height: 1.55; }
.story .sx-chat__a ol { padding-left: 20px; }
.story .sx-chat__a li { margin-bottom: 4px; }
.story .sx-chat__a b { color: var(--ink); font-weight: 600; }
.story .sx-chat__who { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.story .sx-chat__meta { display: flex; gap: 16px; }
.story .sx-chat mark { background: var(--brand-pale); color: var(--brand); border-radius: 3px; padding: 0 2px; margin: 0 -2px; }
.story .sx-cite { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; vertical-align: 1px; }
.story .sx-cite em { font-style: normal; color: var(--ink); }

/* ── Heatmap ── */
.story .sx-heat { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; }
.story .sx-heat__h { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.story .sx-heat__b { min-width: 0; overflow: hidden; padding: 0 4px 0 0; }
.story .sx-heat__b .sx-name { font-size: 13.5px; }
.story .sx-heat__c {
  display: grid; place-items: center; height: 38px; border-radius: 8px;
  background: rgba(9, 67, 176, calc(var(--a) * .42)); color: var(--ink); font-size: 13.5px; font-weight: 500;
}

/* ── Sources ── */
.story .sx-link { display: grid; gap: 3px; min-width: 0; }
.story .sx-link b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.story .sx-link > span { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.story .sx-link .sx-tile { width: 14px; height: 14px; font-size: 8.5px; border-radius: 4px; }
.story .sx-split { display: flex; gap: 3px; height: 10px; margin: 6px 0 18px; }
.story .sx-split i { display: block; height: 100%; border-radius: 999px; }
.story .sx-list { margin: 0; padding: 0; list-style: none; }
.story .sx-list li { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-faint); }
.story .sx-list li .sx-dot { color: var(--ink); font-weight: 500; }
.story .sx-list li b { color: var(--ink); font-weight: 500; }

/* ── Keywords ── */
.story .sx-kw__q { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.story .sx-kw__q b { color: var(--ink); font-size: 15px; font-weight: 600; }
.story .sx-kw__q span { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.story .sx-kw__grid { display: grid; grid-template-columns: 132px 1fr; gap: 16px; }
.story .sx-gauge { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 8px; border: 1px solid var(--rule); border-radius: 10px; }
.story .sx-gauge svg { width: 100px; height: 55px; }
.story .sx-gauge b { margin-top: -30px; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink); }
.story .sx-gauge small { font-size: 12px; color: var(--muted); }
.story .sx-kw__trend { min-width: 0; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; }
.story .sx-kw__vol { display: flex; align-items: baseline; gap: 6px; }
.story .sx-kw__vol b { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink); }
.story .sx-kw__vol > span:not(.sx-delta) { color: var(--muted); font-size: 13px; margin-right: 4px; }
.story .sx-kw__intent { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }

/* ── Charts ── */
.story .sx-chart { position: relative; height: 72px; margin-top: 10px; }
.story .sx-chart--tall { height: 112px; }
.story .sx-area { display: block; width: 100%; height: 100%; overflow: visible; }
.story .sx-area__end { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 2px solid; border-radius: 50%; background: #fff; }
.story .sx-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); }

/* ── Domain ── */
.story .sx-dom__site { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.story .sx-dom__site b { color: var(--ink); font-size: 15px; font-weight: 600; }
.story .sx-dom__site .sx-muted { margin-left: auto; font-size: 12.5px; }
.story .sx-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.story .sx-tiles > div { display: grid; justify-items: start; gap: 4px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; }
.story .sx-tiles span:not(.sx-delta) { font-size: 12.5px; color: var(--muted); }
.story .sx-tiles b { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.story .sx-tiles--3 { margin-bottom: 14px; }

/* ── Calendar ── */
.story .sp--cal .sp__body { padding-top: 12px; }
.story .sx-cal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.story .sx-cal__top b { color: var(--ink); font-weight: 600; }
.story .sx-cal__top > span { display: flex; gap: 12px; font-size: 12.5px; }
.story .sx-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.story .sx-cal__dow, .story .sx-cal__day { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.story .sx-cal__dow { padding: 5px 6px; font-size: 11.5px; color: var(--muted); }
.story .sx-cal__day { display: grid; align-content: start; gap: 3px; min-width: 0; height: 58px; padding: 4px 4px 0; }
.story .sx-cal__day em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.story .sx-cal__item {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 5px; border-radius: 4px;
  border-left: 2px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--ink); font-size: 11px; line-height: 1.3;
}

/* ── Brief ── */
.story .sx-brief__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule-faint); }
.story .sx-brief__meta > span { display: grid; gap: 3px; min-width: 0; }
.story .sx-brief__meta small { font-size: 12px; color: var(--muted); }
.story .sx-brief__meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 500; }
.story .sx-brief__meta .sx-dot { overflow: hidden; color: var(--ink); font-weight: 500; }
.story .sx-brief__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.story .sx-brief__h { margin: 0 0 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.story .sx-brief__cols ul + .sx-brief__h { margin-top: 16px; }
.story .sx-outline, .story .sx-srcs, .story .sx-faqs { margin: 0; padding: 0; list-style: none; }
.story .sx-outline { counter-reset: o; }
.story .sx-outline li { counter-increment: o; display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule-faint); color: var(--ink); line-height: 1.35; }
.story .sx-outline li::before { content: counter(o); color: var(--faint); min-width: 12px; }
.story .sx-srcs li { padding: 5px 0; }
.story .sx-faqs li { padding: 5px 0 5px 12px; border-left: 2px solid var(--rule); margin-bottom: 6px; color: var(--ink); line-height: 1.35; }
.story .sx-site { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.story .sx-site .sx-tile { width: 16px; height: 16px; font-size: 9.5px; border-radius: 4px; }

/* ── Editor ── */
.story .sx-editor { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 16px; }
.story .sx-doc p { margin: 0 0 10px; line-height: 1.6; color: var(--body); }
.story .sx-doc p.sx-doc__h { margin: 0 0 8px; font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.story .sx-doc p.sx-doc__h--sm { margin-top: 16px; font-size: 15px; }
.story .sx-pub { align-self: start; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.story .sx-pub__t { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--ink); font-weight: 600; font-size: 13px; }
.story .sx-pub dl { margin: 0 0 12px; }
.story .sx-pub dt { font-size: 12px; color: var(--muted); }
.story .sx-pub dd { margin: 2px 0 9px; font-size: 13px; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.story .sx-btn { display: flex; justify-content: center; padding: 7px 10px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 500; }

/* ── Traffic ── */
.story .sx-path { color: var(--ink); }
.story .sx-stack { display: inline-flex; }
.story .sx-stack .sx-ai { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.story .sx-stack .sx-ai + .sx-ai { margin-left: -5px; }

/* ── Reports ── */
.story .sx-report { padding: 16px; border: 1px solid var(--rule); border-radius: 10px; }
.story .sx-report__cover { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--rule-faint); font-size: 12.5px; }
.story .sx-report__logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.story .sx-report__logo i { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#16A34A 0 25%, #0E7490 0 100%); }
.story .sx-report__t { margin: 14px 0 12px; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.story .sx-report__row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: end; }
.story .sx-report__score { display: grid; justify-items: start; gap: 4px; }
.story .sx-report__score small { font-size: 12px; color: var(--muted); }
.story .sx-report__score b { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; color: var(--ink); }
.story .sx-report__chart .sx-chart { margin: 0; }
.story .sx-report__list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.story .sx-report__list .sx-dot { color: var(--ink); white-space: normal; }

/* ── Schedules ── */
.story .sx-sched .sx-brief__h:not(:first-child) { margin-top: 16px; }
.story .sx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--rule); border-radius: 10px; }
.story .sx-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.story .sx-row b { color: var(--ink); font-weight: 500; }
.story .sx-row .sx-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.story .sx-row > .sx-num { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ── Phones ── */
@media (max-width: 860px) {
  .story__feat { padding: 72px 0; }
  .story__head { margin-bottom: 32px; }
  .story__pair { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .story .sc { padding: 22px 16px 0; }
  .story .sp { height: 320px; }
  .story .sp__head { padding: 12px 14px; }
  .story .sp__body { padding: 12px 14px; font-size: 13.5px; }
  .story .sx-table { font-size: 13.5px; }
  .story .sx-table .sx-muted:not(td:first-child), .story .sx-table th.sx-muted, .story .sx-table .sx-hide-sm { display: none; }
  .story .sx-bar { width: 48px; }
  .story .sx-table .sx-you { display: none; }
  .story .sx-heat__h { gap: 4px; font-size: 11.5px; }
  .story .sx-heat__h .sx-ai { width: 12px; height: 12px; }
  .story .sx-cal__top b { white-space: nowrap; }
  .story .sx-cal__top > span { gap: 8px; font-size: 12px; }
  .story .sx-kw__grid { grid-template-columns: 1fr; }
  .story .sx-gauge { display: none; }
  .story .sx-editor { grid-template-columns: 1fr; }
  .story .sx-pub { display: none; }
  .story .sx-brief__cols { grid-template-columns: 1fr; }
  .story .sx-list li { grid-template-columns: 1fr auto; }
  .story .sx-list li .sx-muted { display: none; }
  .story .sx-cal__item { font-size: 0; padding: 0; height: 5px; border-left: 0; background: var(--c); border-radius: 999px; }
  .story .sx-cal__day { height: 40px; }
  .story .sx-brief__meta { grid-template-columns: 1fr 1fr; }
  .story .sx-brief__meta > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story__pair .sc:nth-child(2).reveal { transition-delay: 0s; }
}

/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE · CLOSING SECTIONS (pages/home/closing.php)
   MCP, the live demo card, plans, questions and the final line.
   Text is the site font with even-width digits; only real code uses mono.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 6. MCP ─────────────────────────────────────────────────────────── */
.h-mcp__head { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; margin-left: auto; max-width: 760px; text-align: right; }
.h-mcp__head .lede { max-width: 640px; }
.h-mcp__ctas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.h-mcp__stage {
  position: relative; isolation: isolate; overflow: clip; margin-top: 56px; padding: 40px; border-radius: 28px;
  background: radial-gradient(120% 90% at 0% 0%, #F3F6FF 0%, rgba(243, 246, 255, 0) 55%), linear-gradient(160deg, #DCE6FF 0%, #8FB0FF 42%, #4F7FE0 74%, #0943B0 100%);
}
.h-mcp__stage::before {
  content: ''; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; top: -30%; right: -10%; border-radius: 50%;
  background: #fff; filter: blur(90px); opacity: .45; pointer-events: none;
}
.h-mcp__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .28; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.h-mcp__grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.h-mcp__pick, .h-mcp__card, .h-mcp__chat {
  background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(11, 27, 63, .06), 0 18px 40px -18px rgba(6, 44, 117, .35);
}
.h-mcp__pick { padding: 18px; }
.h-mcp__pick-t { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.h-mcp__list { display: flex; flex-direction: column; gap: 2px; }
.h-mcp__list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--body); text-align: left; cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.h-mcp__list button:hover { background: var(--rule-faint); color: var(--ink); }
.h-mcp__list button[aria-selected="true"] { background: var(--brand-pale); color: var(--ink); }
.h-mcp__list button:focus-visible { outline: none; box-shadow: var(--focus); }
.h-mcp__logo { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); }
.h-mcp__logo img { border-radius: 4px; }
.h-mcp__logo--lg { width: 40px; height: 40px; border-radius: 12px; }
.h-mcp__note { margin: 14px 2px 0; font-size: 13px; color: var(--muted); }
.h-mcp__card { padding: 24px; }
.h-mcp__card[hidden] { display: none; }
.h-mcp__card-head { display: flex; align-items: center; gap: 12px; }
.h-mcp__card-head strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.h-mcp__card-head span span { display: block; font-size: 14px; color: var(--muted); }
.h-mcp__steps { margin: 18px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--body); }
.h-mcp__steps li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.h-mcp__code { margin-top: 18px; overflow: hidden; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule); background: var(--paper); }
.h-mcp__code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 500; color: var(--muted); }
.h-mcp__copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--body); cursor: pointer;
}
.h-mcp__copy:hover { background: var(--rule-faint); color: var(--ink); }
.h-mcp__copy.is-done { color: var(--pos); }
.h-mcp__code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--ink); white-space: pre; }
.h-mcp__chat { max-width: 640px; margin: 20px 0 0 auto; padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 12px; }
.h-mcp__chat-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-faint); font-size: 14px; font-weight: 600; color: var(--ink); }
.h-mcp__chat-bar img { border-radius: 4px; }
.h-mcp__msg { font-size: 15px; line-height: 1.6; color: var(--body); }
.h-mcp__msg p { margin: 8px 0 0; }
.h-mcp__msg strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.h-mcp__msg--me { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--surface-2); color: var(--ink); }
.h-mcp__tool { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--brand-pale); font-size: 13px; font-weight: 500; color: var(--brand); }
.h-mcp__tool-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.h-mcp__sample { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .h-mcp__head { align-items: flex-start; text-align: left; margin-left: 0; }
  .h-mcp__ctas { justify-content: flex-start; }
  .h-mcp__stage { padding: 16px; border-radius: 20px; margin-top: 40px; }
  .h-mcp__grid { grid-template-columns: minmax(0, 1fr); }
  .h-mcp__list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .h-mcp__list button { width: auto; padding: 6px 10px 6px 6px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--rule); }
  .h-mcp__list .h-mcp__logo { width: 22px; height: 22px; box-shadow: none; }
  .h-mcp__card { padding: 18px; }
  .h-mcp__chat { margin-top: 16px; }
}

/* ── 7. Live demo card ──────────────────────────────────────────────── */
.h-demo { padding-top: 0; }
.h-demo__card {
  position: relative; isolation: isolate; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  padding: 56px; border-radius: 28px; background: radial-gradient(80% 120% at 100% 100%, #4F7FE0 0%, rgba(79, 127, 224, 0) 60%), linear-gradient(135deg, #0B1B3F 0%, #0943B0 100%); color: #fff;
}
.h-demo__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.h-demo__copy .h2 { color: #fff; }
.h-demo__copy .lede { color: rgba(255, 255, 255, .8); max-width: 460px; }
.h-demo__peek { position: relative; margin: -20px -90px -90px 0; }
.h-demo__win { border-radius: 16px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; transform: rotate(-2deg); }
.h-demo__dots { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.h-demo__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.h-demo__rows { display: grid; grid-template-columns: 90px minmax(0, 1fr); min-height: 240px; }
.h-demo__side { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; background: var(--paper); border-right: 1px solid var(--rule); }
.h-demo__side b { height: 8px; border-radius: 4px; background: var(--surface-3); }
.h-demo__side b:first-child { background: var(--brand-pale); }
.h-demo__main { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.h-demo__title { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); }
.h-demo__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.h-demo__tiles i { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); font-style: normal; }
.h-demo__tiles em { font-style: normal; font-size: 11px; color: var(--muted); }
.h-demo__tiles strong { font-size: 18px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.h-demo__line { height: 8px; border-radius: 4px; background: var(--rule-faint); overflow: hidden; }
.h-demo__line b { display: block; height: 100%; border-radius: 4px; background: var(--brand); opacity: .75; }
@media (max-width: 860px) {
  .h-demo__card { grid-template-columns: minmax(0, 1fr); padding: 32px 24px 0; gap: 28px; border-radius: 20px; }
  .h-demo__peek { margin: 0 -40px -30px 0; }
}

/* ── 9. Plans ───────────────────────────────────────────────────────── */
.h-price__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.h-price__head .lede { max-width: 620px; }
.h-price__cycle { display: inline-flex; gap: 2px; margin-top: 8px; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.h-price__cycle button {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 0; border-radius: 9px; background: none;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.h-price__cycle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 27, 63, .08), 0 0 0 1px var(--rule); }
.h-price__cycle button:focus-visible { outline: none; box-shadow: var(--focus); }
.h-price__cycle span { padding: 1px 7px; border-radius: 6px; background: var(--pos-bg); color: var(--pos); font-size: 12px; font-weight: 600; }
.h-price__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.h-price__plan { display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.h-price__plan.is-hot { box-shadow: inset 0 0 0 2px var(--brand), 0 24px 50px -24px rgba(9, 67, 176, .4); }
.h-price__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h-price__top h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); }
.h-price__badge { padding: 3px 9px; border-radius: 999px; background: var(--brand-pale); color: var(--brand); font-size: 12px; font-weight: 600; white-space: nowrap; }
.h-price__tag { margin: 6px 0 0; min-height: 44px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.h-price__amount { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 0; }
.h-price__num { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.h-price__per { font-size: 15px; color: var(--muted); }
.h-price__bill { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.h-price__btn { margin-top: 20px; width: 100%; justify-content: center; }
.h-price__list { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule-faint); display: flex; flex-direction: column; gap: 10px; }
.h-price__list li { display: flex; gap: 9px; font-size: 14px; line-height: 1.45; color: var(--body); font-variant-numeric: tabular-nums; }
.h-price__list svg { flex: none; margin-top: 3px; color: var(--brand); }
.h-price__more { margin: 28px 0 0; text-align: center; font-size: 15px; }
.h-price__more a { color: var(--brand); font-weight: 500; text-decoration: none; }
.h-price__more a:hover { text-decoration: underline; }
@media (max-width: 1080px) { .h-price__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .h-price__grid { grid-template-columns: minmax(0, 1fr); } .h-price__tag { min-height: 0; } }

/* ── 10. Questions ──────────────────────────────────────────────────── */
.h-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.h-faq__side { display: flex; flex-direction: column; gap: 16px; }
.h-faq__side .lede a { color: var(--brand); font-weight: 500; text-decoration: none; }
.h-faq__side .lede a:hover { text-decoration: underline; }
.h-faq__list details { border-bottom: 1px solid var(--rule); }
.h-faq__list details:first-child summary { padding-top: 6px; }
.h-faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--ink);
}
.h-faq__list summary::-webkit-details-marker { display: none; }
.h-faq__list summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.h-faq__list summary svg { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.h-faq__list details[open] summary svg { transform: rotate(180deg); }
.h-faq__list details p { margin: -8px 0 22px; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--body); }
@media (max-width: 860px) { .h-faq__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .h-faq__list summary { font-size: 16px; padding: 18px 0; } }

/* ── 11. Final line ─────────────────────────────────────────────────── */
.h-final { padding: 96px 0 112px; overflow: clip; }
.h-final__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.h-final__title {
  margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.035em;
}
.h-final__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 600px) { .h-final { padding: 64px 0 80px; } }

@media (prefers-reduced-motion: reduce) {
  .h-mcp__list button, .h-faq__list summary svg { transition: none; }
}

/* Hero, centered (after peec.ai): the logo, the headline, the line and the buttons stack in the middle,
   and the film sits full width under them. The rotating word only moves its own line sideways. */
.h-hero__top { align-items: center; text-align: center; }
.h-hero__top .h-title { text-align: center; }
.h-hero__grid, .h-hero__grid.wrap { display: flex; flex-direction: column; align-items: center; gap: 56px; margin-top: 28px; }
.h-hero__copy { align-items: center; text-align: center; max-width: 680px; }
.h-hero__copy .lede { color: #262626; }
.h-hero__copy > .small { color: #525252; }
.h-hero .h-hero__copy .h-ctas { justify-content: center; }
.h-hero__grid .h-sky, .h-hero__grid .h-sky.sky { width: 100%; max-width: 1040px; margin-top: 0; }
@media (min-width: 1024px) {
  .h-hero__grid { display: flex; }
}
