:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --card: #161616;
  --border: #2a2a2a;
  --text: #f4f4ef;
  --muted: #a3a39a;
  --accent: #c6ff3d;
  --accent-hover: #b4f01f;
  --accent-ink: #0a0a0a;
  --accent-text: #c6ff3d;
  --accent-2: #ff5c35;
  --danger: #ff6b6b;
  --ok: #c6ff3d;
  --nav-bg: rgb(10 10 10 / .82);
  --hero-glow: rgb(198 255 61 / .10);
  --accent-soft: rgb(198 255 61 / .16);
  --mark-bg: rgb(198 255 61 / .9);
  --rival-soft: rgb(255 92 53 / .22);
  --ok-soft: rgb(198 255 61 / .08);
  --danger-soft: rgb(255 107 107 / .08);
  --client-text: #d4d4cc;
  --shadow: rgb(0 0 0 / .55);
  --hard-shadow: var(--accent);
  --chart-bar: #c6ff3d;
  --backdrop: rgb(5 5 5 / .75);
  --radius: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --max: 1120px;
  color-scheme: dark;
}

/* Light theme: explicit choice (data-theme, set before paint by the inline
   script in <head>), or the system setting when JS is off. */
:root[data-theme="light"] {
  --bg: #f4f4ef;
  --bg-alt: #ebebe4;
  --card: #ffffff;
  --border: #d8d8cf;
  --text: #0a0a0a;
  --muted: #55554f;
  --accent: #c6ff3d;
  --accent-hover: #b4f01f;
  --accent-ink: #0a0a0a;
  --accent-text: #3d6b00;
  --accent-2: #d93f17;
  --danger: #d92020;
  --ok: #2f7a00;
  --nav-bg: rgb(244 244 239 / .85);
  --hero-glow: rgb(198 255 61 / .35);
  --accent-soft: rgb(198 255 61 / .35);
  --mark-bg: #c6ff3d;
  --rival-soft: rgb(217 63 23 / .16);
  --ok-soft: rgb(47 122 0 / .07);
  --danger-soft: rgb(217 32 32 / .06);
  --client-text: #2b2b27;
  --shadow: rgb(20 20 10 / .12);
  --hard-shadow: #0a0a0a;
  --chart-bar: #0a0a0a;
  --backdrop: rgb(10 10 10 / .4);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f4f4ef;
    --bg-alt: #ebebe4;
    --card: #ffffff;
    --border: #d8d8cf;
    --text: #0a0a0a;
    --muted: #55554f;
    --accent: #c6ff3d;
    --accent-hover: #b4f01f;
    --accent-ink: #0a0a0a;
    --accent-text: #3d6b00;
    --accent-2: #d93f17;
    --danger: #d92020;
    --ok: #2f7a00;
    --nav-bg: rgb(244 244 239 / .85);
    --hero-glow: rgb(198 255 61 / .35);
    --accent-soft: rgb(198 255 61 / .35);
    --mark-bg: #c6ff3d;
    --rival-soft: rgb(217 63 23 / .16);
    --ok-soft: rgb(47 122 0 / .07);
    --danger-soft: rgb(217 32 32 / .06);
    --client-text: #2b2b27;
    --shadow: rgb(20 20 10 / .12);
    --hard-shadow: #0a0a0a;
    --chart-bar: #0a0a0a;
    --backdrop: rgb(10 10 10 / .4);
    color-scheme: light;
  }
}

@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo, .plan-price strong, .metric-value strong, .case-stats strong, .btn { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav nav a:not(.btn):hover { color: var(--text); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}
.theme-toggle:hover { color: var(--text); background: var(--card); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show the icon of the theme you'd switch TO. */
.theme-toggle .icon-moon, :root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; font-weight: 700; border: 2px solid var(--accent-ink);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); }
@media (hover: hover) and (pointer: fine) { .btn:hover { box-shadow: 3px 3px 0 var(--text); } }
.btn:active { transform: scale(.97); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--card); }

.hero { padding: 112px 0 96px; background: radial-gradient(60% 60% at 50% 0%, var(--hero-glow), transparent 70%); }
.hero h1 { max-width: 18ch; }
.eyebrow { color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 48px; }
.engines { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.engines li { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .9rem; }

.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.stack p { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.steps p { color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); font-weight: 700; margin-bottom: 16px; }

.faq { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); transition: transform .2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; }

.form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { color: var(--muted); font-weight: 400; }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  font: inherit; font-size: 16px;
}
input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .9rem; margin: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: 10px; border: 1px solid; }
.notice.success { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.notice.error { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

.footer { padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 760px) {
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .grid-2, .field-row { grid-template-columns: 1fr; gap: 16px; }
  .form .btn { justify-self: stretch; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hero-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; max-width: 720px; margin-top: 32px; }
.hero-note { color: var(--muted); font-size: .9rem; margin: 12px 0 40px; }

.clients { border-block: 1px solid var(--border); padding: 24px 0; }
.clients-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.clients-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.clients ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.clients li { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--client-text); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.plan-highlight { border: 2px solid var(--text); box-shadow: 6px 6px 0 var(--hard-shadow); }
.plan-badge { position: absolute; top: -12px; inset-inline-start: 24px; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent-ink); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan-price { margin: 4px 0 8px; }
.plan-price strong { font-size: 2.2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); margin-inline-start: 4px; }
.plan-regular { margin: -6px 0 6px; color: var(--muted); font-size: .9rem; }
.plan-yearly { margin: -4px 0 8px; color: var(--accent-2); font-size: .9rem; font-weight: 600; }
.plan-blurb { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; align-content: start; gap: 10px; font-size: .95rem; flex: 1; }
.plan li { padding-inline-start: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent-2); font-weight: 700; }
.plan .btn { width: 100%; }

.compare-title { font-size: 1.15rem; margin: 48px 0 12px; }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 760px; }
.compare th, .compare td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.compare thead th { color: var(--muted); font-weight: 600; }
.compare tbody th { font-weight: 600; }
.compare td { color: var(--muted); }
.compare .us { color: var(--text); font-weight: 600; background: var(--accent-soft); }

select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  font: inherit; font-size: 16px;
  appearance: none; -webkit-appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239aa1b2' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.start-dialog {
  width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 18px;
  background: var(--bg-alt); color: var(--text);
  box-shadow: 0 30px 80px -20px var(--shadow);
}
.start-dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
.start-dialog[open] { animation: start-in .18s ease-out; }
@keyframes start-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.start-form { position: relative; display: grid; gap: 12px; padding: 32px 28px 24px; }
.start-form h2 { font-size: 1.7rem; margin: 0; }
.start-form .eyebrow { margin: 0; }
.start-sub, .start-note { color: var(--muted); margin: 0; }
.start-sub { margin-bottom: 8px; }
.start-note { font-size: .85rem; text-align: center; }
.start-form .btn { width: 100%; }
.start-close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.start-close:hover { background: var(--card); color: var(--text); }

/* ---- Interactions (see app.js) ---- */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .hero-copy h1 { max-width: none; }
.engine { display: block; width: fit-content; min-height: 1.15em; padding: 0 .12em; margin-top: .06em; color: var(--accent-ink); background: var(--accent); white-space: nowrap; transform: rotate(-1deg); } /* own line: typing never reflows the headline */
.engine[data-typing]::after {
  content: ""; display: inline-block; width: 3px; height: .85em; margin-inline-start: 4px;
  vertical-align: -0.06em; background: currentColor; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.ai-demo {
  margin: 0; padding: 20px 22px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px var(--shadow);
}
.hero-demo { border: 2px solid var(--text); box-shadow: 8px 8px 0 var(--hard-shadow); }
.ai-demo-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ai-chip { margin-inline-start: auto; font-size: .72rem; font-weight: 500; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.ai-q { width: fit-content; max-width: 88%; margin: 14px 0 12px auto; padding: 10px 14px; border-radius: 12px; background: var(--bg-alt); font-size: .95rem; }
.ai-a { margin: 0 0 12px; font-size: .98rem; line-height: 1.6; }
.hero-demo .ai-a { min-height: 6.4em; } /* room for the streamed answer, so the card doesn't jump */
.ai-a[data-streaming]::after {
  content: ""; display: inline-block; width: 7px; height: 1em; margin-inline-start: 2px;
  vertical-align: -0.12em; background: var(--muted); border-radius: 1px;
}
.ai-demo mark { color: var(--accent-ink); background: var(--mark-bg); padding: 0 4px; border-radius: 4px; }
.ai-demo mark.rival { background: var(--rival-soft); }
.ai-sources { margin: 0; font-size: .8rem; color: var(--muted); }

.ba-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.ba-toggle button {
  border: 0; border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--muted);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.ba-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.ba-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.ba-swap { display: grid; }
.ba-swap > * {
  grid-area: 1 / 1; margin: 0;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s;
}
.ba-swap.ai-sources { margin-top: 12px; }
[data-state="after"] .ba-before, [data-state="before"] .ba-after {
  opacity: 0; transform: translateY(6px); visibility: hidden;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s 250ms;
}
.ba-metrics { display: grid; gap: 16px; }
.metric { padding: 20px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.metric-label { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.metric-value { margin: 0; }
.metric-value strong { font-size: 2.4rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.metric-value span { color: var(--muted); margin-inline-start: 6px; }
.metric-bar { display: block; width: 100%; height: 6px; margin-top: 12px; border: 0; border-radius: 999px; background: var(--border); overflow: hidden; appearance: none; -webkit-appearance: none; }
.metric-bar::-webkit-progress-bar { background: var(--border); border-radius: 999px; }
.metric-bar::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.metric-bar::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.metric-engines { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.metric-engines li {
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; color: var(--muted);
  border: 1px solid var(--border);
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
}
[data-state="before"] .metric-engines li[data-before="true"],
[data-state="after"] .metric-engines li[data-after="true"] {
  color: var(--text); border-color: var(--accent); background: var(--accent-soft);
}

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal[data-visible] { opacity: 1; transform: none; }

/* ---- Portfolio ---- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); }
.case h3 { font-size: 1.8rem; margin-bottom: 4px; }
.case h3 a { text-decoration: none; }
.case h3 a:hover { text-decoration: underline; }
.case-desc { color: var(--muted); }
.case-steps { margin: 20px 0; padding-inline-start: 20px; display: grid; gap: 10px; color: var(--muted); }
.case-steps li::marker { color: var(--accent-2); font-weight: 700; }
.case-ranks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.case-ranks li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--bg-alt); font-size: .95rem; }
.case-ranks strong { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.case-chart { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case-stats p { margin: 0; color: var(--muted); font-size: .9rem; }
.case-stats strong { display: block; font-size: 2.2rem; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.case-stats span { display: block; font-size: .8rem; }
.case-chart svg { width: 100%; height: auto; overflow: visible; }
.case-bar { fill: var(--chart-bar); transform-box: fill-box; transform-origin: bottom; }
.case-val { fill: var(--text); font-size: 10px; font-weight: 700; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.case-lbl { fill: var(--muted); font-size: 9px; }
.case-chart figcaption { color: var(--muted); font-size: .8rem; }
.case-chart-title { margin: 0; font-weight: 700; }
.case-start { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.case-start-lbl { fill: var(--text); font-size: 8px; font-weight: 700; }
/* Bars grow once when the case study scrolls into view (app.js adds .reveal). */
.case.reveal .case-bar { transform: scaleY(0); }
.case.reveal[data-visible] .case-bar { transform: scaleY(1); transition: transform 700ms var(--ease-out); }
.case.reveal[data-visible] .case-bar:nth-of-type(2) { transition-delay: 60ms; }
.case.reveal[data-visible] .case-bar:nth-of-type(3) { transition-delay: 120ms; }
.case.reveal[data-visible] .case-bar:nth-of-type(4) { transition-delay: 180ms; }
.case.reveal[data-visible] .case-bar:nth-of-type(5) { transition-delay: 240ms; }
.case.reveal[data-visible] .case-bar:nth-of-type(6) { transition-delay: 300ms; }
.case.reveal[data-visible] .case-bar:nth-of-type(7) { transition-delay: 360ms; }
.products-title { margin: 48px 0 16px; font-size: 1.15rem; }
.products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.products a {
  display: grid; align-content: start; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color 150ms ease;
}
.products a:hover { border-color: var(--text); }
.products strong { font-size: 1rem; }
.products span { color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* ---- Blog ---- */
.blog-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.eyebrow a { text-decoration: none; }
.post-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; }
.post-list a {
  display: block; padding: 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--border); transition: border-color 150ms ease;
}
.post-list a:hover { border-color: var(--text); }
.post-list h2 { font-size: 1.3rem; margin-bottom: 8px; }
.post-list p { color: var(--muted); margin-bottom: 12px; }
.post-meta { color: var(--muted); font-size: .9rem; }
.prose { margin-top: 32px; font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 .4em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .3em; }
.prose a { color: var(--accent-2); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); }
.prose code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; padding: .1em .35em; border-radius: 5px; background: var(--bg-alt); border: 1px solid var(--border); }
.prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--border); line-height: 1.5; }
.prose pre code { padding: 0; border: 0; background: none; font-size: .9rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.prose td code { white-space: nowrap; }
.post-cta { margin-top: 56px; padding: 28px; border-radius: 18px; background: var(--card); border: 2px solid var(--text); box-shadow: 6px 6px 0 var(--hard-shadow); }
.post-cta h2 { font-size: 1.4rem; }
.post-cta p { color: var(--muted); }
.post-more { margin-top: 48px; }
.post-more h2 { font-size: 1.1rem; }
.post-more ul { padding-inline-start: 1.2em; display: grid; gap: 8px; }
.post-more a { color: var(--accent-2); }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---- AI crawler directory ---- */
.kind-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 40px; }
.kind-legend p { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); color: var(--muted); font-size: .92rem; }
.kind-legend strong { color: var(--text); }
.bot-group { margin-top: 32px; }
.bot-group h2 { font-size: 1.2rem; margin-bottom: 12px; }
.bot-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.bot-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; height: 100%; padding: 14px 16px; border-radius: 12px;
  text-decoration: none; background: var(--card); border: 1px solid var(--border); transition: border-color 150ms ease;
}
.bot-list a:hover { border-color: var(--text); }
.bot-name { font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; }
.bot-products { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
.kind { align-self: start; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.kind-search { color: var(--ok); border-color: var(--ok); }
.kind-training { color: var(--accent-text); border-color: var(--accent-text); }
.kind-user { color: var(--accent-2); border-color: var(--accent-2); }
.bot-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 24px 0 0; }
.bot-facts div { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.bot-facts dt { color: var(--muted); font-size: .8rem; margin-bottom: 4px; }
.bot-facts dd { margin: 0; font-weight: 600; }
.bot-facts code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.bot-source { margin-top: 32px; }

/* ---- AI crawler checker ---- */
.checker-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 8px 0 16px; }
.checker-results { margin-top: 32px; }
.checker-results > h2 { font-size: 1.5rem; margin-bottom: 4px; }
.checker-summary { margin: 16px 0 8px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--ok); background: var(--ok-soft); }
.checker-summary.bad { border-color: var(--danger); background: var(--danger-soft); }
.checker-kind { font-size: 1rem; margin: 28px 0 10px; }
.checker-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checker-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline;
  padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--border);
}
.checker-list .bot-name { text-decoration: none; }
.checker-list .bot-name:hover { text-decoration: underline; }
.checker-verdict { font-weight: 700; font-size: .9rem; white-space: nowrap; grid-row: 1; grid-column: 2; }
.checker-op, .checker-why { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
.v-allowed .checker-verdict, .v-notoptedout .checker-verdict { color: var(--ok); }
.v-blocked .checker-verdict { color: var(--danger); }
.v-optedout .checker-verdict { color: var(--accent-text); }
.v-notapplied .checker-verdict, .v-unknown .checker-verdict { color: var(--muted); }
.v-blocked { border-color: var(--danger) !important; }
.checker-about { margin-top: 48px; }

/* ---- One-off card (unused since the report moved into the plan grid) ---- */
.oneoff {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; margin-top: 20px; padding: 28px 32px;
  border-radius: var(--radius); background: var(--card); border: 2px dashed var(--text);
}
.oneoff h3 { font-size: 1.5rem; margin: 4px 0; }
.oneoff .eyebrow { margin: 0; }
.oneoff ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; align-content: center; }
.oneoff li { padding-inline-start: 24px; position: relative; }
.oneoff li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent-2); font-weight: 700; }

/* ---- Contact: fill-in-the-blanks sentence ---- */
.sentence-form .notice p { margin: 0; }
.sentence-form .notice { margin-bottom: 20px; }
.sentence { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.55; letter-spacing: -0.02em; margin: 0 0 24px; }
.blank {
  font: inherit; letter-spacing: inherit; color: var(--text); background: var(--accent-soft);
  border: 0; border-bottom: 3px solid var(--text); border-radius: 6px 6px 0 0;
  padding: 0 .25em; margin: 0 0 0 .1em; width: auto; min-width: 6ch; max-width: 100%;
  field-sizing: content; /* grows with the text where supported; app.js covers the rest */
}
.blank::placeholder { color: var(--text); opacity: .35; }
.blank:focus-visible { outline: none; background: var(--accent); color: var(--accent-ink); }
.blank[aria-invalid="true"] { border-bottom-color: var(--danger); }
.sentence-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; }
.sentence-note { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.next-steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.next-steps li { border-top: 1px solid var(--border); padding-top: 16px; }
.next-steps .eyebrow { display: block; margin-bottom: 8px; font-size: .75rem; }
.next-steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.next-steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---- Schema generator ---- */
.schema-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.schema-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.schema-tabs a[aria-current] { background: var(--accent); border-color: var(--accent-ink); color: var(--accent-ink); }
.schema-intro { color: var(--muted); }
.schema-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 20px; }
.field-help { margin: 0; color: var(--muted); font-size: .8rem; }
.schema-result { margin-top: 40px; }
.schema-result h2 { font-size: 1.3rem; margin-top: 28px; }
.schema-code { position: relative; }
.schema-code .btn { position: absolute; top: 10px; inset-inline-end: 10px; }
.schema-code pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--border); font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.schema-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.schema-checks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); }
.schema-checks li.missing { border-color: var(--danger); }
.schema-mark { font-weight: 700; color: var(--muted); width: 1em; }
.schema-checks li.ok .schema-mark { color: var(--ok); }
.schema-checks li.missing .schema-mark { color: var(--danger); }
.schema-note { flex-basis: 100%; color: var(--muted); font-size: .85rem; padding-inline-start: 1.6em; }

/* ---- Founder ---- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-xs { width: 24px; height: 24px; border-radius: 50%; vertical-align: -7px; margin-inline-end: 6px; }
.sentence-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.sentence-foot .sentence-note { margin: 0; }
.founder-contact { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.founder-contact strong { color: var(--text); }
.founder-contact a { color: var(--accent-2); }
.founder-note { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 32px; padding: 24px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.founder-note p { margin: 0 0 8px; color: var(--muted); }
.founder-note .founder-hi { color: var(--text); font-weight: 700; font-size: 1.15rem; }
.founder-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; }
.founder-links a { color: var(--accent-2); }

/* ---- How it works: timeline ---- */
.timeline { counter-reset: none; }
.timeline li { position: relative; padding-top: 22px; border-top: 2px solid var(--border); }
.timeline li::before { content: ""; position: absolute; top: -7px; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline .eyebrow { display: block; margin-bottom: 6px; }
.timeline-note { margin: 32px 0 0; color: var(--muted); max-width: 70ch; }

@media (max-width: 1024px) {
  .hero-grid, .ba-grid, .case, .oneoff, .next-steps { grid-template-columns: 1fr; gap: 32px; }
  .plans { grid-template-columns: 1fr; row-gap: 28px; max-width: 560px; }
}
@media (max-width: 760px) {
  .hero-form, .sentence-row, .schema-fields { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .clients-inner { gap: 12px; }
  /* Row labels stay pinned while the competitor columns scroll sideways;
     the AISEOTop column comes first so it is always in view. */
  .compare { min-width: 600px; font-size: .85rem; }
  .compare th, .compare td { padding: 10px 8px; }
  .compare tbody th, .compare thead th:first-child {
    position: sticky; inset-inline-start: 0; z-index: 1; background: var(--bg); width: 120px; min-width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity 300ms ease; }
  .ba-swap > *, [data-state="after"] .ba-before, [data-state="before"] .ba-after { transform: none; }
  .case.reveal .case-bar { transform: none; }
  .start-dialog[open] { animation: start-fade .18s ease-out; }
  .btn:active { transform: none; }
  .faq summary::after { transition: none; }
}
@keyframes start-fade { from { opacity: 0; } }

/* ---- Language switcher (footer) ---- */
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; width: 100%; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 0.85rem; }
.footer-langs a { color: var(--muted); }
.footer-langs a:hover { color: var(--text); }
.footer-langs [aria-current] { color: var(--text); font-weight: 600; }

/* ---- "Email the founder" lines next to decision points ---- */
.ask-founder { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 0.92rem; }
.ask-founder .avatar-xs { border-radius: 50%; flex: none; }
.ask-founder a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Right-to-left (Hebrew) ----
   Layout uses logical properties (inline-start/end), so it mirrors on its
   own. The typing caret and the engine marker's tilt flip here. */
[dir="rtl"] .engine { transform: rotate(1deg); }

/* ---- Product page checker ---- */
.checker-source { margin: 4px 0 16px; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.pc-checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.pc-checks li { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.pc-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.pc-pass .pc-mark { background: var(--ok-soft); color: var(--ok); }
.pc-warn .pc-mark { background: var(--accent-soft); color: var(--text); }
.pc-fail .pc-mark { background: var(--danger-soft); color: var(--danger); }
.pc-fail { border-color: var(--danger) !important; }
.pc-body p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.pc-body .pc-value { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; overflow-wrap: anywhere; }

/* Press kit */
.press h2 { margin-top: 48px; }
.press-copy { margin: 8px 0 24px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.press-copy-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.press-copy-head .post-meta { margin: 0; }
.press-facts { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 24px; margin: 0; }
.press-facts dt { color: var(--muted); }
.press-facts dd { margin: 0; }
.press-founder { display: flex; gap: 20px; align-items: flex-start; }
.press-founder img { border-radius: 50%; flex: none; }
.press-founder p { margin: 0 0 8px; }
.press-logos { display: flex; gap: 16px; margin: 16px 0; }
.press-logo { margin: 0; padding: 24px; border-radius: 12px; border: 1px solid var(--border); line-height: 0; }
.press-logo.dark { background: #0a0a0a; }
.press-logo.light { background: #f4f4ef; }
.press-downloads, .press-colors { list-style: none; padding: 0; }
.press-downloads li, .press-colors li { margin: 6px 0; display: flex; align-items: center; gap: 10px; }
.press-swatch { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); flex: none; }
.press-shots { display: grid; gap: 24px; }
.press-shots figure { margin: 0; }
.press-shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }
.press-shots figcaption { margin-top: 8px; }
@media (max-width: 560px) {
  .press-facts { grid-template-columns: 1fr; gap: 2px; }
  .press-facts dd { margin-bottom: 10px; }
  .press-founder { flex-direction: column; }
}
