/* Rankwise marketing site. Layout copied from chatseo.app (light, electric blue, demo-led); tokens are ours. */
:root {
  --bg: #f6f7fc;
  --bg-2: #eef0fb;
  --surface: #ffffff;
  --surface-2: #f8f9fe;
  --ink: #0d1136;
  --ink-2: #474d72;
  --muted: #6b7196;
  --line: #e2e5f3;
  --line-2: #d3d7ee;
  --brand: #4636ff;
  --brand-2: #2f22e0;
  --brand-ink: #ffffff;
  --brand-soft: #ecebff;
  --green: #0fa968;
  --green-soft: #e3f7ee;
  --amber: #b86e00;
  --amber-soft: #fff3dc;
  --red: #d92d20;
  --red-soft: #fdeceb;
  --shadow: 0 1px 2px rgba(22, 24, 80, .06), 0 8px 24px -8px rgba(40, 36, 140, .14);
  --shadow-lg: 0 2px 4px rgba(22, 24, 80, .05), 0 30px 60px -20px rgba(40, 36, 140, .28);
  --r-card: 18px;
  --r-ctl: 10px;
  --nav-h: 68px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
section[id], [id="top"] { scroll-margin-top: calc(var(--nav-h) + 8px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Type */
.h2 { font: 700 clamp(32px, 4.2vw, 50px)/1.08 var(--display); letter-spacing: -.025em; margin: 0 0 16px; text-wrap: balance; }
.h2 em, .hero-title em, .value em { font-style: italic; color: var(--brand); padding-bottom: .06em; }
.lede { color: var(--ink-2); font-size: 18px; max-width: 62ch; margin: 0 0 48px; text-wrap: pretty; }
.lede.center { margin-left: auto; margin-right: auto; }
.eyebrow { font: 600 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.fine { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-ctl); padding: 11px 18px;
  font: 600 15px/1.2 var(--font); white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s, background .18s, border-color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 18px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 26px -8px color-mix(in srgb, var(--brand) 75%, transparent); }
.btn-outline { background: var(--surface); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-2); }
.btn-white { background: #fff; color: #2a1fd6; box-shadow: 0 10px 30px -10px rgba(0,0,40,.5); }
.btn-white:hover { transform: translateY(-2px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.burger { display: none; background: none; border: 0; padding: 8px; border-radius: 8px; font-size: 22px; }
.mnav { display: grid; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
.mnav[hidden] { display: none; }
.mnav a { padding: 12px 8px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mnav a:last-child { border-bottom: 0; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 20%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(34% 40% at 85% 12%, color-mix(in srgb, #22c3ee 14%, transparent), transparent 70%),
    radial-gradient(30% 36% at 60% 55%, color-mix(in srgb, var(--green) 10%, transparent), transparent 70%);
}
.hero-inner { text-align: center; }
.hero-title {
  font: 800 clamp(38px, 6vw, 70px)/1.06 var(--display); letter-spacing: -.035em;
  margin: 0 auto 20px; max-width: 1100px;
}
.br-lg { display: none; }
@media (min-width: 1000px) { .br-lg { display: inline; } .hero-title { font-size: 66px; } }
.rotator { display: inline-block; position: relative; line-height: 1.3; margin: -.12em 0; vertical-align: baseline; text-align: left; white-space: nowrap; transition: width .5s cubic-bezier(.16,1,.3,1); }
.rot-sizer { display: inline-block; width: 0; }
.rot-word { position: absolute; left: 0; top: 0; display: block; line-height: 1.3; opacity: 0; transform: translateY(.35em) scale(.94); filter: blur(4px); transition: opacity .45s, transform .55s cubic-bezier(.16,1,.3,1), filter .45s; }
.rot-word.is-on { opacity: 1; transform: none; filter: none; }
.rot-word.is-out { opacity: 0; transform: translateY(-.35em) scale(.94); filter: blur(4px); }
.rot-word img { display: inline-block; max-width: none; }
.rot-word .wm { height: var(--h); width: auto; vertical-align: var(--va); }
.rot-word .mk { height: .9em; width: .9em; vertical-align: -.06em; margin-right: .2em; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 44ch; margin: 0 auto 30px; text-wrap: balance; }

.url-form { display: grid; grid-template-columns: minmax(0, 360px) auto; justify-content: center; gap: 10px; }
.url-form.left { justify-content: start; }
.url-field {
  display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-ctl); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.url-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow); }
.url-prefix { padding-left: 16px; color: var(--brand); font-weight: 600; }
.url-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 15px 16px 15px 4px; font: 500 16px var(--font); color: var(--ink); outline: none; }
.url-field input::placeholder { color: var(--muted); }
.form-help { grid-column: 1 / -1; margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.url-form.left .checks { justify-content: flex-start; }
.checks span { display: inline-flex; align-items: center; gap: 6px; }
.checks i { color: var(--green); }
.url-form.is-error .url-field { border-color: var(--red); }

/* Demo */
.demo {
  margin: 56px auto 0; max-width: 1040px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.demo-tabs button {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px;
  background: none; border: 0; border-right: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 15px;
  position: relative; transition: color .15s, background .15s;
}
.demo-tabs button:last-child { border-right: 0; }
.demo-tabs button:hover { color: var(--ink); }
.demo-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); }
.demo-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.demo-tabs button[aria-selected="true"]::after { transform: scaleX(1); transition: transform var(--tab-ms, 9s) linear; }
.demo.paused .demo-tabs button[aria-selected="true"]::after { transition: none; }
.demo-body { padding: 22px 28px 24px; min-height: 560px; display: flex; flex-direction: column; }
.demo-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.demo-site, .demo-live { display: inline-flex; align-items: center; gap: 6px; }
.demo-live i { color: var(--green); font-size: 9px; }
.thread { display: none; max-width: 760px; width: 100%; margin: 0 auto; flex: 1; }
.thread.is-on { display: block; }
.msg-user {
  margin: 0 0 18px auto; width: fit-content; max-width: 80%; background: var(--brand-soft); color: var(--ink);
  padding: 12px 16px; border-radius: 14px 14px 4px 14px; font-size: 15px;
}
.msg-ai { font-size: 15px; color: var(--ink); }
.msg-ai > p { margin: 10px 0 12px; }
.ai-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ai-head img { border-radius: 5px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tools span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
.tools i { color: var(--green); }
.fix-list { list-style: none; counter-reset: fx; margin: 0; padding: 0; display: grid; gap: 8px; }
.fix-list li { counter-increment: fx; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; color: var(--ink-2); }
.fix-list li::before { content: counter(fx); width: 24px; height: 24px; border-radius: 7px; background: var(--brand); color: #fff; font: 600 13px/24px var(--font); text-align: center; }
.fix-list b { color: var(--ink); font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--font); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.tag-hi { background: var(--red-soft); color: var(--red); }
.tag-md { background: var(--amber-soft); color: var(--amber); }
.tag-lo { background: var(--bg-2); color: var(--muted); }
.tag-ok { background: var(--green-soft); color: var(--green); }
.apply { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--brand-soft) 50%, transparent); }
.apply div { display: grid; gap: 2px; font-size: 14.5px; }
.apply span:not(.btn) { color: var(--ink-2); }
.kw-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.kw-row { display: grid; grid-template-columns: 2.2fr .5fr .7fr 1.4fr; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.kw-row:first-child { border-top: 0; }
.kw-h { background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kw-row span:nth-child(2), .kw-row span:nth-child(3) { font-family: var(--mono); font-size: 13px; }
.kw-row:not(.kw-h) span:last-child { color: var(--brand); font-weight: 600; }
.rival-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rival-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.rival-grid strong { display: block; font: 700 30px/1 var(--display); color: var(--brand); margin-bottom: 6px; }
.rival-grid span { font-size: 13.5px; color: var(--ink-2); }
.doc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); box-shadow: var(--shadow); max-width: 560px; }
.doc-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.doc-top > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.doc h4 { font: 700 19px/1.25 var(--display); margin: 12px 0 8px; letter-spacing: -.01em; }
.doc p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-meta span { font-size: 12.5px; background: var(--bg-2); padding: 4px 9px; border-radius: 999px; color: var(--ink-2); }
.demo-input {
  margin: 22px auto 0; max-width: 760px; width: 100%; display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 12px 12px 16px; color: var(--muted); font-size: 15px; background: var(--surface);
}
.send { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
/* staged reveal of a thread */
.thread.is-on .msg-user, .thread.is-on .tools span, .thread.is-on .msg-ai > *:not(.tools) { animation: pop .5s cubic-bezier(.16,1,.3,1) both; }
.thread.is-on .ai-head { animation-delay: .35s; }
.thread.is-on .tools span:nth-child(1) { animation-delay: .6s; }
.thread.is-on .tools span:nth-child(2) { animation-delay: .8s; }
.thread.is-on .tools span:nth-child(3) { animation-delay: 1s; }
.thread.is-on .msg-ai > p { animation-delay: 1.25s; }
.thread.is-on .msg-ai > :nth-child(4) { animation-delay: 1.5s; }
.thread.is-on .msg-ai > :nth-child(5) { animation-delay: 1.9s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Proof */
.proof { padding: 56px 0 24px; }
.proof-label { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 64px; align-items: center; padding: 4px 32px; }
.marquee-track img { height: 30px; width: auto; opacity: .85; filter: saturate(.9); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat { text-align: center; padding: 8px 12px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font: 800 44px/1 var(--display); letter-spacing: -.03em; color: var(--ink); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 110px 0; }
.section.tight { padding: 40px 0; }

/* Flow diagram */
.flow { margin-top: 8px; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-track { fill: none; stroke: var(--line-2); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.flow-line { fill: none; stroke-width: 5; stroke-linecap: round; }
.flow-pulse { fill: var(--brand); filter: drop-shadow(0 0 6px var(--brand)); }
.fnode rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; filter: drop-shadow(0 10px 18px rgba(40, 36, 140, .12)); }
.fnode-end rect { stroke: color-mix(in srgb, var(--green) 60%, var(--line)); }
.fn { height: 200px; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 18px 18px 0; gap: 2px; font-family: var(--font); color: var(--ink); }
.fn > i { font-size: 22px; color: var(--brand); margin-bottom: 8px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); }
.fnode-end .fn > i { color: var(--green); background: var(--green-soft); }
.fn b { font: 700 19px/1.2 var(--display); }
.fn > span:not(.fn-mini) { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.flow-cap { font: 500 14px var(--font); fill: var(--muted); }
.flow-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 32px 20px; box-shadow: var(--shadow);
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 16%, transparent) 1px, transparent 1.4px); background-size: 22px 22px; }
.fnode rect { fill: var(--surface); }
.fn-mini { margin-top: auto; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.fn-mini img { width: 22px; height: 22px; padding: 3px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.fn-mini em { font-style: normal; font-weight: 600; color: var(--green); margin-left: 2px; }
.fn-bubble { background: var(--brand-soft); color: var(--ink); padding: 5px 10px; border-radius: 10px 10px 3px 10px; font-weight: 500; }
.fn-bars { flex-direction: column; align-items: stretch; width: 100%; gap: 5px; }
.fn-bars i { height: 7px; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 45%, transparent)); }
.fn-live { color: var(--green); font-weight: 600; background: var(--green-soft); padding: 5px 10px; border-radius: 999px; }
.fn-live i { font-size: 15px; }
.flow-mobile { display: none; }

/* Blue band */
.band {
  position: relative; background: linear-gradient(180deg, #3b2bff, #2a1fd6 60%, #2419b8); color: #fff;
  border-radius: 40px; margin: 0 12px; padding: 100px 0 90px; overflow: hidden;
}
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 0%, rgba(255,255,255,.16), transparent 70%); pointer-events: none; }
.on-brand { color: #fff; margin-bottom: 56px; }
.frow { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; background: #fff; color: #0d1136; border-radius: 24px; padding: 28px; margin-bottom: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 40, .5); }
.frow.flip { grid-template-columns: 1fr 1.15fr; }
.frow.flip .fpanel { order: 2; }
.frow.wide { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 40px 28px 28px; }
.frow.wide .ftext { text-align: center; max-width: 620px; margin: 0 auto; padding: 0; }
.ftext { padding: 0 20px; }
.ftext h3 { font: 700 clamp(26px, 2.6vw, 34px)/1.12 var(--display); letter-spacing: -.02em; margin: 0 0 14px; }
.ftext p { color: #474d72; font-size: 17px; margin: 0; max-width: 42ch; }
.frow.wide .ftext p { margin: 0 auto; }
.fpanel {
  position: relative; aspect-ratio: 16 / 10.5; border-radius: 18px; overflow: hidden;
  background: #2f3bff url("/assets/panel-bg.webp") var(--bgpos, center) / cover no-repeat;
}
.fpanel-wide { aspect-ratio: auto; min-height: 340px; }
.fcard {
  position: absolute; background: rgba(255,255,255,.94); color: #0d1136; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 20px 40px -12px rgba(8, 6, 60, .45), inset 0 1px 0 rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.7);
  font-size: 13.5px; backdrop-filter: blur(8px);
}
.fc-title { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 10px; font-size: 14px; }
.fc-title i { color: #4636ff; font-size: 17px; }
.fc-title.ok i { color: #0fa968; }
.fc-a { top: 10%; right: 7%; width: 56%; }
.fconn { position: absolute; border: 2px dashed rgba(255,255,255,.55); pointer-events: none; }
.fconn-a { left: 26%; top: 34%; width: 12%; height: 36%; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.fconn-b { left: 50%; top: 58%; width: 12%; height: 22%; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.fconn-c { left: 62%; top: 30%; width: 18%; height: 34%; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.fc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: c; }
.fc-list li { counter-increment: c; display: flex; gap: 8px; padding: 8px 10px; border-radius: 9px; background: #f3f4fb; font-weight: 500; }
.fc-list li::before { content: counter(c) "."; color: #6b7196; }
.fc-list li.on { background: #4636ff; color: #fff; }
.fc-list li.on::before { color: #cfd0ff; }
.fc-b { left: 6%; bottom: 10%; width: 44%; }
.fc-b p { margin: 8px 0 0; }
.fc-b2 { left: auto; right: 5%; bottom: 8%; width: 32%; }
.fc-issues { left: 6%; top: 10%; width: 50%; }
.iss { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid #eceef8; }
.iss:first-of-type { border-top: 0; }
.iss .tag-lo { background: #eef0fb; color: #6b7196; }
.iss .tag-hi { background: #fdeceb; color: #d92d20; }
.iss .tag-md { background: #fff3dc; color: #b86e00; }
.fc-fixed { right: 6%; bottom: 10%; width: 42%; }
.spark svg { width: 100%; height: 48px; overflow: visible; }
.spark path { fill: none; stroke: #0fa968; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.up { display: inline-flex; gap: 5px; align-items: center; margin-top: 6px; color: #0fa968; font-weight: 600; font-size: 13px; }
.fc-rank { left: 6%; top: 50%; transform: translateY(-50%); width: min(58%, 520px); }
.rk { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; font-weight: 500; }
.rk span { width: 24px; height: 24px; border-radius: 7px; background: #eef0fb; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #474d72; }
.rk em { font-style: normal; color: #6b7196; font-size: 12.5px; font-weight: 400; }
.rk.you { background: #ecebff; }
.rk.you span { background: #4636ff; color: #fff; }
.rk.you em { color: #4636ff; font-weight: 600; }
.band-cta { margin-top: 44px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.tile { position: relative; border-radius: var(--r-card); padding: 26px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile > i { font-size: 26px; color: var(--brand); }
.tile h3 { font: 700 22px/1.2 var(--display); margin: 14px 0 8px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.t-audit { grid-column: span 3; grid-row: span 2; background: linear-gradient(160deg, var(--surface), var(--brand-soft)); }
.t-kw { grid-column: span 3; }
.t-write { grid-column: span 3; background: #2a1fd6 url("/assets/panel-bg.webp") 70% 40% / cover; color: #fff; border-color: transparent; }
.t-write > i, .t-write p { color: rgba(255,255,255,.88); }
.t-rank { grid-column: span 4; }
.t-more { grid-column: span 2; background: linear-gradient(150deg, #1a1f5c, #0d1136); color: #eef0ff; border-color: transparent; }
.score { position: absolute; right: 28px; bottom: 28px; width: 170px; height: 170px; display: grid; place-items: center; }
.score svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 10; }
.sc-track { stroke: color-mix(in srgb, var(--brand) 14%, transparent); }
.sc-bar { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 56; }
.score b { font: 800 44px/1 var(--display); margin-top: 10px; }
.score span { font-size: 13px; color: var(--muted); margin-top: -36px; }
.bars { position: absolute; right: 26px; bottom: 24px; width: 42%; height: 110px; display: flex; align-items: flex-end; gap: 8px; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 40%, transparent)); transform-origin: bottom; }
.t-rank p { max-width: 30ch; }
.kw-mini { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.kw-mini li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.kw-mini b { display: inline-flex; align-items: center; gap: 4px; font: 600 13px var(--mono); color: var(--green); white-space: nowrap; }
.kw-mini b i { color: var(--muted); font-size: 12px; }
.audit-mini { max-width: 52%; margin-top: 22px; }
.audit-mini li { background: var(--surface); }
.kw-mini b.bad { color: var(--red); }
.kw-mini b.warn { color: var(--amber); }
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }

/* Hub diagram */
.hub { position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 1000 / 460; }
.hub-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines path { fill: none; stroke: color-mix(in srgb, var(--brand) 45%, var(--line)); stroke-width: 2; stroke-dasharray: 6 8; animation: flowdash 1.6s linear infinite; }
.hub-lines path.out { stroke: var(--line-2); animation-direction: normal; }
@keyframes flowdash { to { stroke-dashoffset: -28; } }
.chip-in, .chip-out {
  position: absolute; top: calc(var(--y) / 460 * 100%); transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px 9px 12px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); white-space: nowrap;
}
.chip-in { left: calc(var(--x) / 1000 * 100%); }
.chip-in i { font-size: 18px; color: var(--brand); }
.chip-out { right: 0; background: var(--surface-2); color: var(--muted); box-shadow: none; font: 500 15px var(--font); cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; }
.chip-out:hover { border-color: var(--line-2); background: var(--surface); }
.chip-out[aria-pressed="false"] { opacity: .5; border-style: dashed; }
.chip-out[aria-pressed="false"] s { text-decoration: none; }
.chip-out img, .chip-out i { opacity: .55; filter: grayscale(.4); }
.chip-out s { text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--red) 70%, transparent); }
.chip-out em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 220px; padding: 26px 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; display: grid; justify-items: center; gap: 6px;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 6%, transparent), 0 30px 70px -20px color-mix(in srgb, var(--brand) 55%, transparent);
}
.hub-core img { border-radius: 12px; }
.hub-core b { font: 700 22px/1.1 var(--display); margin-top: 6px; }
.hub-core span { font-size: 14px; color: var(--ink-2); }
.hub-btn { margin-top: 10px; }
.hub-core::after { content: ""; position: absolute; inset: -10px; border-radius: 30px; border: 2px solid color-mix(in srgb, var(--brand) 30%, transparent); animation: ring 2.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.96); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.cost { margin: 48px auto 0; max-width: 760px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 30px; box-shadow: var(--shadow); }
.cost-col span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.cost-col strong { font: 800 40px/1 var(--display); letter-spacing: -.02em; }
.cost-col small { font-size: 16px; font-weight: 500; color: var(--muted); }
.strike { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--red) 70%, transparent); text-decoration-thickness: 3px; }
.cost-us { text-align: right; }
.cost-us strong { color: var(--brand); }
.cost-arrow { font-size: 26px; color: var(--brand); }
.cost-save { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2); }
.cost-save b { color: var(--green); font-size: 20px; }
.cost-save.muted b { color: var(--muted); }
.cost-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }

/* MCP */
.mcp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.mcp-grid > *, .frow > *, .final-inner > *, .value > *, .plans > * { min-width: 0; }
.mcp .lede { margin-bottom: 24px; }
.mcp .h2 { font-size: clamp(30px, 3.4vw, 44px); }
.code { background: #0d1136; color: #dfe2ff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #262b5c; }
.code-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #262b5c; font: 500 13px var(--mono); color: #9aa0d6; }
.copy { background: #1c2152; border: 1px solid #323870; color: #dfe2ff; padding: 5px 10px; border-radius: 8px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.copy:hover { background: #262b6a; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 13.5px/1.65 var(--mono); }
.mcp-art { margin: 0; }
.mcp-art img { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--shadow-lg); }

/* Pricing */
.toggle { display: flex; width: fit-content; margin: 8px auto 44px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.toggle button { border: 0; background: none; padding: 10px 24px; border-radius: 999px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.save { font-size: 12px; background: var(--green-soft); color: var(--green); padding: 3px 7px; border-radius: 999px; }
.toggle button[aria-pressed="true"] .save { background: #d9ffe9; color: #067a48; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-hot { border: 2px solid var(--brand); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--brand) 60%, transparent); }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { display: flex; gap: 8px; align-items: center; font: 700 15px/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 0 0 12px; }
.plan-for { color: var(--ink-2); margin: 0 0 18px; min-height: 3.2em; font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price s { color: var(--muted); font-size: 22px; font-weight: 500; }
.price s:empty { display: none; }
.price b { font: 800 50px/1 var(--display); letter-spacing: -.03em; }
.price span { color: var(--muted); }
.bill-note { color: var(--muted); font-size: 13.5px; margin: 6px 0 20px; }
.credits { font-size: 13.5px; color: var(--muted); margin: 12px 0 18px; text-align: center; }
.feats { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.feats li { display: flex; gap: 10px; align-items: flex-start; }
.feats i { color: var(--green); margin-top: 4px; }
.feats .plus { font-weight: 600; color: var(--ink); }
.trial { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--ink-2); margin: 30px 0 0; font-weight: 500; }
.trial i { color: var(--brand); font-size: 20px; }
.custom { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 30px; border-radius: var(--r-card); background: var(--bg-2); border: 1px solid var(--line); }
.custom h3 { font: 700 22px/1.2 var(--display); margin: 0 0 4px; }
.custom p { margin: 0; color: var(--ink-2); }

/* Reviews */
.masonry { columns: 3 300px; column-gap: 18px; }
.review { break-inside: avoid; margin: 0 0 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review:nth-child(3n+2) { padding-top: 32px; padding-bottom: 32px; }
.stars { color: #f5a524; display: flex; gap: 2px; font-size: 16px; }
.review blockquote { margin: 12px 0 18px; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.review figcaption { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; font-size: 14px; }
.review figcaption b { grid-column: 2; }
.review figcaption > span:last-child { grid-column: 2; color: var(--muted); }
.av { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 45%)); }

/* Value band */
.value { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 44px 48px; border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line-2); }
.value h2 { font: 700 clamp(28px, 3vw, 38px)/1.15 var(--display); letter-spacing: -.02em; margin: 0; }
.value ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.value li { display: flex; gap: 12px; font-size: 16.5px; color: var(--ink-2); }
.value li i { color: var(--brand); font-size: 22px; flex: none; }

/* FAQ */
.qa { display: grid; gap: 10px; margin-top: 36px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.qa details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 0; font: 600 17px/1.4 var(--font); display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 26px/1 var(--font); color: var(--brand); transition: transform .25s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: -6px 0 20px; color: var(--ink-2); max-width: 64ch; }

/* Final CTA */
.final { padding: 60px 0 110px; }
.final-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 40px 48px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; max-width: 1152px; }
.final-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 0% 50%, var(--brand-soft), transparent 70%); pointer-events: none; }
.final-art { position: relative; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.final-copy { position: relative; }
.final .h2 { margin-bottom: 26px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--surface-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); margin: 12px 0 0; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer h4 { margin: 0 0 4px; font-size: 14px; }
.footer nav a { color: var(--ink-2); font-size: 15px; }
.footer nav a:hover { color: var(--brand); }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Modal */
.modal { border: 0; border-radius: 22px; padding: 0; width: min(440px, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(10, 12, 40, .5); backdrop-filter: blur(4px); }
.modal-x { position: absolute; right: 10px; top: 10px; margin: 0; }
.modal-x button { background: none; border: 0; padding: 8px; font-size: 18px; color: var(--muted); border-radius: 8px; }
.modal-body { padding: 34px 30px 30px; }
.modal-body h3 { font: 700 24px/1.2 var(--display); margin: 0 0 10px; letter-spacing: -.01em; }
.modal-site { display: inline-flex; gap: 6px; align-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 8px; margin: 0 0 20px; }
.modal label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.modal input { width: 100%; padding: 13px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 500 16px var(--font); margin-bottom: 14px; }
.modal input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field-err { color: var(--red); font-size: 14px; margin: -8px 0 12px; }
.done-ic { font-size: 44px; color: var(--green); }
.modal [data-step="done"] p { color: var(--ink-2); margin: 0 0 20px; }

/* Reveal + drawing */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s cubic-bezier(.16,1,.3,1), translate .7s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0ms); }
  .reveal.in { opacity: 1; translate: 0 0; }
  .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 1.8s cubic-bezier(.65,0,.35,1) .2s; }
  .in .draw, .draw.in { stroke-dashoffset: 0; }
  .draw-ring { stroke-dashoffset: 314; transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1) .3s; }
  .in .draw-ring { stroke-dashoffset: 56; }
  .bars span { transform: scaleY(0); transition: transform .8s cubic-bezier(.16,1,.3,1); }
  .in .bars span { transform: scaleY(1); }
  .in .bars span:nth-child(2) { transition-delay: .05s } .in .bars span:nth-child(3) { transition-delay: .1s } .in .bars span:nth-child(4) { transition-delay: .15s }
  .in .bars span:nth-child(5) { transition-delay: .2s } .in .bars span:nth-child(6) { transition-delay: .25s } .in .bars span:nth-child(7) { transition-delay: .3s } .in .bars span:nth-child(8) { transition-delay: .35s }
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .mcp-art img, .final-art { animation: float 7s ease-in-out infinite; }
  .hero-bg { animation: drift 18s ease-in-out infinite alternate; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes drift { to { transform: translate3d(3%, 2%, 0) scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow-pulse { display: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .frow, .frow.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .frow.flip .fpanel { order: 0; }
  .ftext { padding: 0 8px 8px; }
  .mcp-grid { grid-template-columns: minmax(0, 1fr); }
  .mcp-art { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .flow-wide { display: none; }
  .flow-mobile { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; position: relative; }
  .flow-mobile::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 3px; border-radius: 3px; background: linear-gradient(var(--brand), var(--green)); }
  .flow-mobile li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 10px 0; }
  .flow-mobile i { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 24px; color: var(--brand); }
  .flow-mobile li:last-child i { color: var(--green); }
  .flow-mobile b { display: block; font: 700 19px/1.2 var(--display); }
  .flow-mobile span { color: var(--ink-2); font-size: 15px; }
  .flow-mobile[aria-hidden] { }
  .hub { aspect-ratio: auto; display: grid; gap: 14px; justify-items: center; }
  .hub-svg { display: none; }
  .hub-in, .hub-out { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .chip-in, .chip-out { position: static; transform: none; }
  .hub-core { position: relative; left: auto; top: auto; transform: none; margin: 18px 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-audit, .t-rank { grid-column: span 2; }
  .t-kw, .t-write, .t-more { grid-column: span 1; }
  .t-more { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan-for { min-height: 0; }
  .value { grid-template-columns: 1fr; padding: 32px 28px; }
  .final-inner { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .final-art { max-width: 240px; }
  .url-form.left { justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .hero { padding: 44px 0 24px; }
  .url-form { grid-template-columns: 1fr; }
  .url-form .btn { width: 100%; }
  .demo { margin-top: 36px; border-radius: 18px; }
  .demo-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tabs button { flex: none; padding: 13px 14px; font-size: 14px; }
  .demo-body { padding: 16px 14px 16px; min-height: 620px; }
  .msg-user { max-width: 92%; font-size: 14.5px; }
  .fix-list li { grid-template-columns: 24px 1fr; }
  .fix-list li .tag { grid-column: 2; justify-self: start; }
  .apply { flex-direction: column; align-items: stretch; }
  .kw-row { grid-template-columns: 1.6fr .5fr .8fr; font-size: 13px; }
  .kw-row span:last-child { grid-column: 1 / -1; font-size: 12.5px; margin-top: -4px; }
  .kw-h span:last-child { display: none; }
  .rival-grid { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .band { border-radius: 26px; margin: 0 8px; padding: 70px 0 60px; }
  .frow, .frow.wide { padding: 14px; border-radius: 20px; }
  .fpanel { aspect-ratio: 4 / 4.2; }
  .fpanel-wide { aspect-ratio: auto; min-height: 470px; }
  .fcard { font-size: 12.5px; padding: 11px 12px; }
  .fc-a { width: 80%; right: 5%; top: 6%; }
  .fc-b { width: 70%; left: 5%; bottom: 6%; }
  .fc-issues { width: 78%; left: 5%; top: 6%; }
  .fc-fixed { width: 64%; right: 5%; bottom: 6%; }
  .fc-rank { width: 90%; left: 5%; top: 8%; transform: none; }
  .fc-b2 { width: 70%; right: 5%; bottom: 6%; }
  .fconn { display: none; }
  .rk { grid-template-columns: 22px 1fr; }
  .rk em { grid-column: 2; margin-top: -6px; }
  .bento { grid-template-columns: 1fr; }
  .t-audit, .t-rank, .t-kw, .t-write, .t-more { grid-column: auto; grid-row: auto; }
  .t-audit { min-height: 380px; }
  .t-rank { min-height: 300px; }
  .score { width: 140px; height: 140px; right: 20px; bottom: 20px; }
  .audit-mini { max-width: 100%; margin-bottom: 150px; }
  .t-audit { min-height: 0; }
  .bars { left: 26px; right: 26px; width: auto; height: 80px; }
  .cost { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .cost-us { text-align: center; }
  .cost-arrow { transform: rotate(90deg); margin: 0 auto; }
  .custom { flex-direction: column; align-items: flex-start; }
  .masonry { columns: 1; }
  .stat strong { font-size: 36px; }
  .stat span { font-size: 14px; }
  .footer nav a { padding: 4px 0; }
}

/* Legal pages */
.legal p { color: var(--ink-2); font-size: 17px; margin: 0 0 18px; }
.legal a { color: var(--brand); text-decoration: underline; }
