/* Blogfabrik: slate neutrals with one brick-red accent. Controls use a 10px radius, panels 16 to 20px.
   The page runs no scripts: everything that moves or reacts is CSS. Browsers without scroll-driven
   animations, and anyone who asks for reduced motion, get a complete static page. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* An integer that can be animated, for numbers that count up. */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }

:root {
  --bg: #f3f5f7;
  --bg-2: #e9edf1;
  --surface: #fbfcfd;
  --ink: #16202a;
  --muted: #4f5d6a;
  --line: #dde3e9;
  --line-strong: #c5ced7;
  --accent: #b8471f;
  --accent-strong: #933713;
  --accent-soft: #f5e4dc;
  --accent-ink: #fff8f4;
  --brand: #b8471f;
  --ok: #2b7653;
  --ok-soft: #e0efe6;
  --wait: #8a5d10;
  --wait-soft: #f6ecd7;
  --shadow: 0 1px 2px rgb(22 32 42 / 0.05), 0 12px 32px -12px rgb(22 32 42 / 0.16);
  --shadow-lg: 0 2px 4px rgb(22 32 42 / 0.04), 0 30px 80px -24px rgb(22 32 42 / 0.3);
  --radius-control: 10px;
  --radius-panel: 16px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --page: min(1160px, 100% - 2 * clamp(16px, 5vw, 48px));
  --nav-h: 66px;
  color-scheme: light;
}

/* Dark: follows the system unless the visitor picks light or dark with the switch in the bar
   (two radio buttons, no script; the choice holds while the page is open). */
@media (prefers-color-scheme: dark) {
  :root:not(:has(#t-light:checked)) {
    --bg: #0e1318;
    --bg-2: #131a21;
    --surface: #172029;
    --ink: #e7ecf1;
    --muted: #a5b1bd;
    --line: #232f3a;
    --line-strong: #33414e;
    --accent: #ec8a62;
    --accent-strong: #f4aa8b;
    --accent-soft: #33221a;
    --accent-ink: #170e09;
    --brand: #a9411c;
    --ok: #7fc8a2;
    --ok-soft: #142820;
    --wait: #e2b562;
    --wait-soft: #2b2314;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 40px 90px -30px rgb(0 0 0 / 0.85);
    color-scheme: dark;
  }
}
:root:has(#t-dark:checked) {
  --bg: #0e1318;
  --bg-2: #131a21;
  --surface: #172029;
  --ink: #e7ecf1;
  --muted: #a5b1bd;
  --line: #232f3a;
  --line-strong: #33414e;
  --accent: #ec8a62;
  --accent-strong: #f4aa8b;
  --accent-soft: #33221a;
  --accent-ink: #170e09;
  --brand: #a9411c;
  --ok: #7fc8a2;
  --ok-soft: #142820;
  --wait: #e2b562;
  --wait-soft: #2b2314;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 40px 90px -30px rgb(0 0 0 / 0.85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
/* Pictures keep their shape: width from the layout, height from the aspect ratio. */
img { height: auto; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 640; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: var(--page); margin-inline: auto; }
section[id] { scroll-margin-top: var(--nav-h); }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 30;
  padding: 10px 14px; border-radius: var(--radius-control);
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-control);
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 6px 16px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-quiet { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn-quiet:hover { background: var(--surface); border-color: var(--muted); }
.btn-light { min-height: 52px; padding: 0 26px; font-size: 16px; background: #fff8f4; color: #8a3312; box-shadow: 0 10px 30px -12px rgb(40 12 2 / 0.6); }
.btn-light { position: relative; overflow: hidden; }
.btn-light:hover { background: #fff; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 680; font-size: 18px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.mark-tile { fill: var(--accent); }
.mark-glyph { fill: var(--accent-ink); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* DE / EN: two small segments, the current language filled. */
.lang-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.lang-switch a { min-width: 34px; padding: 4px 9px; border-radius: 999px; text-align: center; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.4; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(22 32 42 / 0.12); }

/* Light or dark: one round button that shows the other mode (moon in light, sun in dark). */
.theme-switch { position: relative; display: inline-grid; border-radius: 999px; }
.theme-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-switch label { grid-area: 1 / 1; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--muted); cursor: pointer; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
.theme-switch label:hover { color: var(--ink); background: var(--surface); }
.theme-switch svg { width: 16px; height: 16px; }
.theme-switch:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-switch:has(input:focus:not(:focus-visible)) { outline: none; }
.theme-switch .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not(:has(#t-light:checked)) .theme-switch .sun { display: grid; }
  :root:not(:has(#t-light:checked)) .theme-switch .moon { display: none; }
}
:root:has(#t-dark:checked) .theme-switch .sun { display: grid; }
:root:has(#t-dark:checked) .theme-switch .moon { display: none; }

/* Shared pieces */
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-wait { background: var(--wait-soft); color: var(--wait); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-plan { background: var(--accent-soft); color: var(--accent-strong); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.count { counter-reset: n var(--n); }
.count::after { content: counter(n); }
.n-14 { --n: 14; --to: 14; }
.n-94 { --n: 94; --to: 94; }
.n-96 { --n: 96; --to: 96; }
.n-100 { --n: 100; --to: 100; }
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-head { max-width: 680px; }
.section-head h2, .rhythm-copy h2, .fit-copy h2, .control-copy h2, .story-copy h2, .faq-layout h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 680; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
/* A faint grid behind the example post, fading out towards the edges. */
.hero::before {
  content: ""; position: absolute; inset: -56px 0 0 -56px; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 55% 75% at 74% 42%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 74% 42%, #000 15%, transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
/* The last word changes: Google, ChatGPT, Perplexity, Gemini. Without motion it stays on Google. */
.rotator { display: inline-grid; color: var(--accent); }
.rotator > span { grid-area: 1 / 1; }
.rotator > span:not(:first-child) { opacity: 0; }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Example post: a mini version of the review screen in the dashboard. */
.preview {
  position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px;
}
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.preview-note { font-size: 12px; color: var(--muted); }
/* The stages share one spot; without motion "waiting for your approval" shows. */
.stages { display: inline-grid; }
.stage {
  grid-area: 1 / 1; justify-self: start; display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 600; background: var(--bg-2); color: var(--muted); opacity: 0;
}
.stage i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.stage-4 { opacity: 1; background: var(--wait-soft); color: var(--wait); }
.stage-5 { background: var(--ok-soft); color: var(--ok); }
.snippet { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.snippet-img { width: 92px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.snippet-url { font-size: 12px; color: var(--muted); }
.snippet-title { margin-top: 2px; font-size: 16px; line-height: 1.3; color: var(--accent-strong); font-weight: 580; }
.snippet-desc { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.score { position: relative; overflow: hidden; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
.score::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; opacity: 0.4; transform-origin: left; transform: scaleX(var(--fill)); }
.score-94 { --fill: 0.94; }
.score-96 { --fill: 0.96; }
.score-100 { --fill: 1; }
.score b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.score span { font-size: 12px; font-weight: 600; }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 800; }
.preview-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.preview-actions .btn { pointer-events: none; }
.preview-actions > span:not(.btn) { font-size: 13px; color: var(--muted); }

/* The production line: example posts on a moving belt. Without motion the row scrolls sideways. */
.belt { padding: clamp(16px, 3vw, 32px) 0 clamp(56px, 8vw, 104px); }
.belt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.belt-head h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; }
.belt-head p { color: var(--muted); font-size: 15px; }
.belt-view { overflow-x: auto; padding-bottom: 6px; }
.belt-track { display: flex; width: max-content; padding-inline: max(16px, (100% - 1160px) / 2); }
.belt-list { position: relative; list-style: none; margin: 0; padding: 0 20px 26px 0; display: flex; gap: 20px; }
/* The belt itself: a striped band under the cards that travels with them. */
.belt-list::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 18px, transparent 18px 30px);
}
.belt-copy { display: none; }
.post-card { flex: none; width: 250px; display: grid; align-content: start; gap: 8px; padding: 10px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 11px; }
.pc-cat { padding: 0 4px; font-size: 12px; font-weight: 650; color: var(--accent-strong); }
.pc-title { padding: 0 4px; min-height: 2.6em; font-size: 15px; font-weight: 600; line-height: 1.3; }
.post-card .pill { justify-self: start; margin-left: 4px; height: 24px; font-size: 12px; }

/* The promise, set large. */
.statement { padding: clamp(64px, 10vw, 136px) 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.statement-text { max-width: 19ch; font-size: clamp(34px, 5.4vw, 72px); font-weight: 680; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.statement-text .soft { color: var(--muted); }

/* The process. Static by default: the steps beside the finished post. */
.story { padding: clamp(72px, 10vw, 136px) 0; }
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story-steps { --dim: 1; position: relative; list-style: none; margin: 36px 0 0; padding: 0 0 0 26px; display: grid; gap: 20px; }
/* A line beside the steps, filled as far as the post has come. */
.story-steps::before, .story-steps::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
.story-steps::before { background: var(--line-strong); }
.story-steps::after { background: var(--accent); transform-origin: top; }
.story-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.step-no { padding-top: 3px; font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.story-steps h3 { font-size: 20px; }
.story-steps p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 40ch; }
.story-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.sc-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.sc-states { display: inline-grid; margin-left: auto; }
.sc-state { grid-area: 1 / 1; justify-self: end; background: var(--bg-2); color: var(--muted); opacity: 0; }
.sc-state.s5 { opacity: 1; }
.sc-state.pill-wait { background: var(--wait-soft); color: var(--wait); }
.sc-state.pill-ok { background: var(--ok-soft); color: var(--ok); }
.sc-layers { display: grid; padding: 22px; min-height: 360px; }
.layer { grid-area: 1 / 1; display: none; }
.layer-5 { display: block; }
.layer-label { margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.layer-label .count { color: var(--ink); }
.topics, .sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topics li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 15px; font-weight: 600; }
.topics small { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.topics .topic-pick { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.sources li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.src { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 650; color: var(--accent-strong); }
.doc-title { font-size: 19px; font-weight: 680; line-height: 1.25; letter-spacing: -0.02em; }
.summary { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.summary strong { font-size: 14px; }
.summary ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.summary li { position: relative; padding-left: 18px; }
.summary li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 9px; height: 2px; border-radius: 2px; background: var(--accent); }
.doc-h2 { margin: 16px 0 10px; font-size: 15px; font-weight: 650; }
.doc-line { display: block; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--bg-2); transform-origin: left; }
.doc-line.short { width: 62%; }
.layer-4 .scores { margin-top: 0; }
.check-fixed::after { content: "überarbeitet"; margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 700; }
:lang(en) .check-fixed::after { content: "revised"; }
.final { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.final img { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.final-cat { font-size: 12px; font-weight: 650; color: var(--accent-strong); }
.final-title { margin-top: 4px; font-size: 18px; font-weight: 680; line-height: 1.25; letter-spacing: -0.02em; }
.final-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.final-actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.final-actions .btn { pointer-events: none; }
.toast { display: none; align-items: center; gap: 10px; width: fit-content; margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fc8a2; }

/* The rhythm: three radio buttons switch the calendar. */
.rhythm-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.rhythm-copy > p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 42ch; }
.rhythm-copy .rhythm-note { font-size: 16px; }
.planner { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.seg label { padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.seg label:hover { color: var(--ink); }
.seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(22 32 42 / 0.16); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.cal { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 10px; }
.cal li { display: grid; gap: 6px; }
.cal-date { font-size: 11px; font-weight: 650; color: var(--muted); white-space: nowrap; transition: opacity 0.3s var(--ease); }
.cal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), filter 0.35s var(--ease); }
.cal li:nth-child(2) img { transition-delay: 25ms; }
.cal li:nth-child(3) img { transition-delay: 50ms; }
.cal li:nth-child(4) img { transition-delay: 75ms; }
.cal li:nth-child(5) img { transition-delay: 100ms; }
.cal li:nth-child(6) img { transition-delay: 125ms; }
.cal li:nth-child(7) img { transition-delay: 150ms; }
.cal li:nth-child(8) img { transition-delay: 175ms; }
.cal li:nth-child(9) img { transition-delay: 200ms; }
.cal li:nth-child(10) img { transition-delay: 225ms; }
.cal li:nth-child(11) img { transition-delay: 250ms; }
.cal li:nth-child(12) img { transition-delay: 275ms; }
.planner:has(#r-zwei:checked) .cal li:not(.bi) img,
.planner:has(#r-monat:checked) .cal li:not(.mo) img { opacity: 0.14; transform: scale(0.82); filter: grayscale(1); }
.planner:has(#r-zwei:checked) .cal li:not(.bi) .cal-date,
.planner:has(#r-monat:checked) .cal li:not(.mo) .cal-date { opacity: 0.4; }
.cal-sum { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.sum-zwei, .sum-monat { display: none; }
.planner:has(#r-zwei:checked) .sum-woche, .planner:has(#r-monat:checked) .sum-woche { display: none; }
.planner:has(#r-zwei:checked) .sum-zwei, .planner:has(#r-monat:checked) .sum-monat { display: inline; }

/* Found and quoted: a search result and an AI answer that names your website. */
.found-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(20px, 3vw, 32px); margin-top: 52px; align-items: start; }
.found-card { padding: clamp(20px, 3vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.found-ai { margin-top: 64px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.mock-search, .mock-answer { margin-bottom: 26px; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.found-ai .mock-answer { background: var(--surface); }
.query { padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.found-ai .query { background: var(--bg); }
.query::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); }
.mock-search .snippet { grid-template-columns: 1fr; margin-top: 12px; padding: 4px 6px 2px; border: 0; background: transparent; }
.answer { margin-top: 14px; font-size: 15px; line-height: 1.65; }
.cite { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.found-card h3 { font-size: 21px; }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 3px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 800; }

/* App windows: the tool and a website, rebuilt with example content. */
.window { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.address { margin-inline: auto; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.window-body { padding: 18px; }
.window .pill { height: 24px; padding: 0 10px; font-size: 12px; }

/* Fits your website: a blog overview with the new post in its section. */
.fit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.fit-copy > p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.fit-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.fit-list li { position: relative; padding-left: 22px; color: var(--muted); }
.fit-list li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 10px; height: 2px; border-radius: 2px; background: var(--accent); }
.fit-list strong { color: var(--ink); font-weight: 600; }
.mock-heading { margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.mock-cards + .mock-heading { margin-top: 18px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-card { position: relative; display: grid; align-content: start; gap: 3px; padding-bottom: 10px; border-radius: 11px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.mock-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 6px; }
.mock-title, .mock-text { padding: 0 9px; }
.mock-title { font-size: 12.5px; font-weight: 650; line-height: 1.3; }
.mock-text { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.mock-new { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.mock-flag { position: absolute; top: 7px; left: 7px; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; }

/* Control: a real switch to try; the first post changes its state. */
.control-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.control-lead { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 44ch; }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: 36px; }
.control-grid > div { position: relative; border-top: 2px solid var(--line-strong); padding-top: 18px; }
.control-grid > div.always::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--accent); transform-origin: left; }
.control-grid h3 { font-size: 19px; }
.control-grid p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.rule-switch { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rule-switch strong { display: block; font-size: 15px; }
.rule-switch small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.switch-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { position: relative; flex: none; width: 40px; height: 24px; margin-top: 1px; border-radius: 999px; background: var(--line-strong); transition: background-color 0.25s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(22 32 42 / 0.3); transition: transform 0.35s var(--ease); }
.switch-input:checked + .switch { background: var(--accent); }
.switch-input:checked + .switch::after { transform: translateX(16px); }
.switch-input:focus-visible + .switch { outline: 3px solid var(--accent); outline-offset: 3px; }
.rule-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.rule-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 11px; background: var(--bg); }
.rule-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.rule-title small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.rule-state { display: inline-grid; }
.rule-state > .pill { grid-area: 1 / 1; justify-self: end; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s; }
.state-on { opacity: 0; transform: translateY(6px); visibility: hidden; }
.rules:has(.switch-input:checked) .state-on { opacity: 1; transform: none; visibility: visible; }
.rules:has(.switch-input:checked) .state-off { opacity: 0; transform: translateY(-6px); visibility: hidden; }
.try { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* FAQ: the heading stays beside the questions; answers are open (easier to read and to quote). */
.faq-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-layout h2 { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq { margin: 0; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 620; font-size: 18px; line-height: 1.35; text-wrap: balance; }
.faq dd { margin: 8px 0 0; color: var(--muted); max-width: 62ch; text-wrap: pretty; }

/* Closing: brick red under a sawtooth roof, like the logo. */
.closing { position: relative; margin-top: 28px; padding: clamp(80px, 11vw, 140px) 0 clamp(72px, 10vw, 120px); background: var(--brand); color: #fff8f4; text-align: center; }
.closing::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 28px;
  background: linear-gradient(to top left, var(--brand) calc(50% - 0.5px), transparent calc(50% + 0.5px)) 0 0 / 56px 28px repeat-x;
}
.closing h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.closing p { margin: 18px auto 36px; max-width: 46ch; font-size: 19px; color: rgb(255 248 244 / 0.86); }
.closing a:focus-visible { outline-color: #fff8f4; }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer p { color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
main:has(> .closing:last-child) + .footer { border-top: 0; }

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal article { max-width: 720px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 28px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }

/* Motion ------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* On load: the headline and the example post rise into place. */
  .hero-copy > *, .preview { animation: rise 0.9s var(--ease) both; }
  .hero-sub { animation-delay: 0.08s; }
  .hero-actions { animation-delay: 0.16s; }
  .preview { animation-delay: 0.2s; }

  .rotator > span { animation: word 10s var(--ease) infinite both; }
  .rotator > span:nth-child(1) { animation-delay: -0.6s; }
  .rotator > span:nth-child(2) { animation-delay: 1.9s; }
  .rotator > span:nth-child(3) { animation-delay: 4.4s; }
  .rotator > span:nth-child(4) { animation-delay: 6.9s; }

  /* The example post: research, writing, checks, waiting, published; 16 s per round. */
  .stage { animation: 16s linear infinite; }
  .stage-1 { animation-name: stage-1; }
  .stage-2 { animation-name: stage-2; }
  .stage-3 { animation-name: stage-3; }
  .stage-4 { animation-name: stage-4; }
  .stage-5 { animation-name: stage-5; }
  .stage i { animation: pulse 1.2s ease-in-out infinite; }
  .preview .snippet-copy { animation: write 16s linear infinite; }
  .preview .snippet-img { animation: picture 16s var(--ease) infinite; }
  .preview .score b { animation: count-loop 16s linear infinite; }
  .preview .score::after { animation: fill 16s var(--ease) infinite; }
  .preview .checks li::before { animation: tick 16s var(--ease) infinite backwards; }
  .preview-actions .btn { animation: ready 16s linear infinite; }
  /* Start halfway, so the page opens on a finished post that is published a few seconds later. */
  .stage, .preview .snippet-copy, .preview .snippet-img, .preview .score b, .preview .score::after, .preview .checks li::before, .preview-actions .btn { animation-delay: -8.8s; }
  .preview .checks li:nth-child(2)::before { animation-delay: -8.4s; }
  .preview .checks li:nth-child(3)::before { animation-delay: -8s; }
  .preview .checks li:nth-child(4)::before { animation-delay: -7.6s; }

  /* The belt moves one full list per round, then starts over seamlessly; it stops under the pointer. */
  .belt-view { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .belt-track { padding-inline: 0; animation: belt 64s linear infinite; }
  .belt-copy { display: flex; }
  .belt-view:hover .belt-track { animation-play-state: paused; }

  /* Hover: cards lift and pictures move closer. Only with a real pointer. */
  @media (hover: hover) {
    .post-card, .mock-card, .found-card, .planner, .preview, .story-card { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
    .post-card:hover, .mock-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
    .found-card:hover, .planner:hover, .preview:hover { transform: translateY(-4px); }
    .mock-card img, .cal img { transition: transform 0.6s var(--ease), opacity 0.35s var(--ease), filter 0.35s var(--ease); }
    .mock-card:hover img { transform: scale(1.06); }
    .btn-primary:hover { box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 10px 24px -10px var(--accent); }
  }

  /* The hero grid drifts slowly; the mail button catches the light now and then. */
  .hero::before { animation: drift 24s linear infinite; }
  .btn-light::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.85) 50%, transparent 70%); transform: translateX(-120%); animation: shine 5s var(--ease) 1s infinite; }
  .query::after { animation: caret 1.1s steps(1) infinite; }
  .theme-switch svg { animation: spin-in 0.5s var(--ease); }

  @supports (animation-timeline: scroll()) {
    /* The bar gains a shadow once the page moves, and a thin line shows how far you have read. */
    .nav { animation: nav-lift linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
    .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; animation: progress linear both; animation-timeline: scroll(root); }
  }

  /* The switch invites a click until it has been used. */
  .switch::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: invite 2.4s var(--ease) infinite; }
  .switch-input:checked + .switch::before, .rule-switch:hover .switch::before { animation: none; }

  @supports (animation-timeline: view()) {
    /* Headings and windows rise as they come into view. */
    .section-head, .belt-head, .rhythm-copy, .fit-copy, .control-copy, .planner, .found-card, .site-mock, .rules {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }

    /* Lists, questions and calendar tiles arrive one after another. */
    .ticks li, .fit-list li { animation: slide-in linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .faq-item { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .control-grid > div.always::before { animation: progress linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
    .cal { view-timeline: --cal block; }
    .cal li { animation: tile-in linear both; animation-timeline: --cal; }
    .cal li:nth-child(1) { animation-range: entry 6% entry 46%; }
    .cal li:nth-child(2) { animation-range: entry 8.5% entry 48.5%; }
    .cal li:nth-child(3) { animation-range: entry 11% entry 51%; }
    .cal li:nth-child(4) { animation-range: entry 13.5% entry 53.5%; }
    .cal li:nth-child(5) { animation-range: entry 16% entry 56%; }
    .cal li:nth-child(6) { animation-range: entry 18.5% entry 58.5%; }
    .cal li:nth-child(7) { animation-range: entry 21% entry 61%; }
    .cal li:nth-child(8) { animation-range: entry 23.5% entry 63.5%; }
    .cal li:nth-child(9) { animation-range: entry 26% entry 66%; }
    .cal li:nth-child(10) { animation-range: entry 28.5% entry 68.5%; }
    .cal li:nth-child(11) { animation-range: entry 31% entry 71%; }
    .cal li:nth-child(12) { animation-range: entry 33.5% entry 73.5%; }

    /* Closing: the roof slides into place and the question grows to full size. */
    .closing { view-timeline: --closing block; }
    .closing::before { animation: roof linear both; animation-timeline: --closing; animation-range: entry 0% entry 60%; }
    .closing h2 { animation: zoom-in linear both; animation-timeline: --closing; animation-range: entry 20% cover 45%; }

    /* The promise lights up word by word. */
    .statement-text { view-timeline: --say block; }
    .statement-text > span { animation: word-on linear both; animation-timeline: --say; }
    .statement-text > span:nth-child(1) { animation-range: cover 10% cover 16%; }
    .statement-text > span:nth-child(2) { animation-range: cover 13% cover 19%; }
    .statement-text > span:nth-child(3) { animation-range: cover 16% cover 22%; }
    .statement-text > span:nth-child(4) { animation-range: cover 19% cover 25%; }
    .statement-text > span:nth-child(5) { animation-range: cover 22% cover 28%; }
    .statement-text > span:nth-child(6) { animation-range: cover 25% cover 31%; }
    .statement-text > span:nth-child(7) { animation-range: cover 28% cover 34%; }
    .statement-text > span:nth-child(8) { animation-range: cover 31% cover 37%; }
    .statement-text > span:nth-child(9) { animation-range: cover 34% cover 40%; }
    .statement-text > span:nth-child(10) { animation-range: cover 37% cover 43%; }
    .statement-text > span:nth-child(11) { animation-range: cover 40% cover 46%; }
    .statement-text > span:nth-child(12) { animation-range: cover 43% cover 49%; }
    .statement-text > span:nth-child(13) { animation-range: cover 46% cover 52%; }
    .statement-text > span:nth-child(14) { animation-range: cover 49% cover 55%; }

    /* The process: the section is tall, its content stays pinned, and scrolling moves the post
       through five equal parts (0 to 20 %, 20 to 40 %, and so on). */
    .story { height: 440vh; padding: 0; view-timeline: --story block; }
    .story-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); display: grid; align-items: center; }
    .story-steps { --dim: 0.3; }
    .story-steps::after { animation: grow-y linear both; animation-timeline: --story; animation-range: contain 2% contain 90%; }
    .story-steps li { opacity: var(--dim); }
    .story-steps li:nth-child(1) { opacity: 1; animation: step-off linear forwards; animation-timeline: --story; animation-range: contain 18% contain 21%; }
    .story-steps li:nth-child(2) { animation: step-on linear both, step-off linear forwards; animation-timeline: --story; animation-range: contain 18% contain 21%, contain 38% contain 41%; }
    .story-steps li:nth-child(3) { animation: step-on linear both, step-off linear forwards; animation-timeline: --story; animation-range: contain 38% contain 41%, contain 58% contain 61%; }
    .story-steps li:nth-child(4) { animation: step-on linear both, step-off linear forwards; animation-timeline: --story; animation-range: contain 58% contain 61%, contain 78% contain 81%; }
    .story-steps li:nth-child(5) { animation: step-on linear both; animation-timeline: --story; animation-range: contain 78% contain 81%; }

    .layer { display: block; }
    .layer-1 { animation: layer-out linear forwards; animation-timeline: --story; animation-range: contain 17% contain 21%; }
    .layer-2 { animation: layer-in linear both, layer-out linear forwards; animation-timeline: --story; animation-range: contain 18% contain 22%, contain 37% contain 41%; }
    .layer-3 { animation: layer-in linear both, layer-out linear forwards; animation-timeline: --story; animation-range: contain 38% contain 42%, contain 57% contain 61%; }
    .layer-4 { animation: layer-in linear both, layer-out linear forwards; animation-timeline: --story; animation-range: contain 58% contain 62%, contain 77% contain 81%; }
    .layer-5 { animation: layer-in linear both; animation-timeline: --story; animation-range: contain 78% contain 82%; }

    .sc-state.s1 { opacity: 1; animation: fade-out linear forwards; animation-timeline: --story; animation-range: contain 18% contain 20%; }
    .sc-state.s2 { animation: fade-in linear both, fade-out linear forwards; animation-timeline: --story; animation-range: contain 19% contain 21%, contain 38% contain 40%; }
    .sc-state.s3 { animation: fade-in linear both, fade-out linear forwards; animation-timeline: --story; animation-range: contain 39% contain 41%, contain 58% contain 60%; }
    .sc-state.s4 { animation: fade-in linear both, fade-out linear forwards; animation-timeline: --story; animation-range: contain 59% contain 61%, contain 78% contain 80%; }
    .sc-state.s5 { animation: fade-in linear both, fade-out linear forwards; animation-timeline: --story; animation-range: contain 79% contain 81%, contain 92% contain 94%; }
    .sc-state.s6 { animation: fade-in linear both; animation-timeline: --story; animation-range: contain 93% contain 95%; }

    /* Inside the parts: the topic is picked, sources arrive, the text grows, checks tick, the post goes live. */
    .topic-pick { animation: pick linear both; animation-timeline: --story; animation-range: contain 4% contain 10%; }
    .layer-2 .count { animation: count-up linear both; animation-timeline: --story; animation-range: contain 21% contain 36%; }
    .sources li { animation: slide-in linear both; animation-timeline: --story; }
    .sources li:nth-child(1) { animation-range: contain 21% contain 24%; }
    .sources li:nth-child(2) { animation-range: contain 24% contain 27%; }
    .sources li:nth-child(3) { animation-range: contain 27% contain 30%; }
    .sources li:nth-child(4) { animation-range: contain 30% contain 33%; }
    .sources li:nth-child(5) { animation-range: contain 33% contain 36%; }
    .summary li { animation: slide-in linear both; animation-timeline: --story; }
    .summary li:nth-child(1) { animation-range: contain 42% contain 45%; }
    .summary li:nth-child(2) { animation-range: contain 45% contain 48%; }
    .summary li:nth-child(3) { animation-range: contain 48% contain 51%; }
    .doc-h2 { animation: fade-in linear both; animation-timeline: --story; animation-range: contain 50% contain 52%; }
    .doc-line { animation: grow-x linear both; animation-timeline: --story; }
    .doc-line:nth-of-type(1) { animation-range: contain 51% contain 54%; }
    .doc-line:nth-of-type(2) { animation-range: contain 53% contain 56%; }
    .doc-line:nth-of-type(3) { animation-range: contain 55% contain 57%; }
    .layer-4 .count { animation: count-up linear both; animation-timeline: --story; animation-range: contain 61% contain 70%; }
    .layer-4 .score::after { animation: grow-x linear both; animation-timeline: --story; animation-range: contain 61% contain 70%; }
    .layer-4 .checks li { animation: slide-in linear both; animation-timeline: --story; }
    .layer-4 .checks li:nth-child(1) { animation-range: contain 64% contain 67%; }
    .layer-4 .checks li:nth-child(2) { animation-range: contain 67% contain 70%; }
    .layer-4 .checks li:nth-child(3) { animation-range: contain 70% contain 73%; }
    .layer-4 .checks li:nth-child(4) { animation-range: contain 73% contain 76%; }
    .final-btn { animation: press linear both; animation-timeline: --story; animation-range: contain 89% contain 93%; }
    .toast { display: flex; animation: toast-in linear both; animation-timeline: --story; animation-range: contain 93% contain 97%; }

    /* The AI answer writes itself, then names your website. */
    .mock-answer { view-timeline: --answer block; }
    .answer > span { animation: word-on linear both; animation-timeline: --answer; }
    .answer > span:nth-child(1) { animation-range: entry 60% cover 36%; }
    .answer > span:nth-child(2) { animation-range: cover 36% cover 43%; }
    .answer > span:nth-child(3) { animation-range: cover 43% cover 50%; }
    .answer > .cite { animation: pop linear both; animation-timeline: --answer; animation-range: cover 50% cover 56%; }

    /* The new post drops into its section on the blog overview. */
    .site-mock .window-body { view-timeline: --blog block; }
    .mock-new { animation: drop-in linear both; animation-timeline: --blog; animation-range: entry 60% cover 50%; }
    .mock-flag { animation: pop linear both; animation-timeline: --blog; animation-range: cover 48% cover 54%; }
  }
}

@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }
@keyframes word { 0% { opacity: 0; transform: translateY(0.3em); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-0.3em); } }
@keyframes stage-1 { 0% { opacity: 0; } 1%, 17% { opacity: 1; } 18%, 100% { opacity: 0; } }
@keyframes stage-2 { 0%, 18% { opacity: 0; transform: translateY(4px); } 19%, 35% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; } }
@keyframes stage-3 { 0%, 36% { opacity: 0; transform: translateY(4px); } 37%, 53% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; } }
@keyframes stage-4 { 0%, 54% { opacity: 0; transform: translateY(4px); } 55%, 79% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }
@keyframes stage-5 { 0%, 80% { opacity: 0; transform: translateY(4px); } 81%, 97% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes write { 0%, 18% { clip-path: inset(0 100% 0 0); } 34%, 97% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes picture { 0%, 42% { opacity: 0; transform: scale(0.9); } 48%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes count-loop { 0%, 38% { --n: 0; } 52%, 100% { --n: var(--to); } }
@keyframes fill { 0%, 38% { transform: scaleX(0); } 52%, 100% { transform: scaleX(var(--fill)); } }
@keyframes tick { 0%, 40% { opacity: 0; transform: scale(0.3); } 44%, 100% { opacity: 1; transform: none; } }
@keyframes ready { 0%, 54% { opacity: 0.45; transform: none; } 56%, 77% { opacity: 1; transform: none; } 79% { transform: scale(0.94); } 81%, 100% { opacity: 1; transform: none; } }
@keyframes belt { to { transform: translateX(-50%); } }
@keyframes drift { to { transform: translate(56px, 56px); } }
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-90deg) scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes nav-lift { from { box-shadow: none; } to { box-shadow: 0 10px 30px -18px rgb(22 32 42 / 0.45); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tile-in { from { opacity: 0; translate: 0 16px; scale: 0.88; } to { opacity: 1; translate: none; scale: 1; } }
@keyframes roof { from { background-position-x: -168px; opacity: 0; } to { background-position-x: 0; opacity: 1; } }
@keyframes zoom-in { from { opacity: 0.2; scale: 0.88; } to { opacity: 1; scale: 1; } }
@keyframes invite { 0% { opacity: 0.55; transform: scale(0.9); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes word-on { from { opacity: 0.14; } to { opacity: 1; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes step-on { from { opacity: var(--dim); } to { opacity: 1; } }
@keyframes step-off { from { opacity: 1; } to { opacity: var(--dim); } }
@keyframes layer-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes layer-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-18px) scale(0.985); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pick { from { border-color: var(--line); background: var(--bg); box-shadow: none; } }
@keyframes count-up { from { --n: 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes press { 0%, 100% { transform: none; } 50% { transform: scale(0.92); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes drop-in { 0%, 45% { opacity: 0; translate: 0 -28px; scale: 0.92; } 80% { opacity: 1; translate: 0 3px; scale: 1; } 100% { opacity: 1; translate: none; scale: 1; } }

/* Tablet and phone */
@media (max-width: 960px) {
  .hero-grid, .story-grid, .rhythm-grid, .found-grid, .fit-grid, .control-layout, .faq-layout { grid-template-columns: 1fr; }
  .found-ai { margin-top: 0; }
  .faq-layout h2 { position: static; }
  .hero h1 { max-width: 14ch; }
}
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Pinned on small screens: only the current step shows above the card. */
    .story-grid { gap: 18px; align-content: center; }
    .story-copy h2 { font-size: clamp(28px, 7vw, 40px); }
    .story-steps { --dim: 0; margin-top: 16px; gap: 0; padding-left: 0; }
    .story-steps::before, .story-steps::after { display: none; }
    .story-steps li { grid-area: 1 / 1; }
    .story-steps p { font-size: 14px; }
    .sc-layers { min-height: 300px; padding: 16px; }
  }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner { gap: 10px; }
  .theme-switch { margin-left: auto; }
  .preview { padding: 16px; }
  .snippet { grid-template-columns: 72px 1fr; gap: 12px; }
  .snippet-img { width: 72px; }
  .post-card { width: 220px; }
  .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seg label { padding: 8px 10px; font-size: 13px; }
  .mock-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-cards > :nth-child(3) { display: none; }
  .control-grid { grid-template-columns: 1fr; }
  .final { grid-template-columns: 96px 1fr; }
  .final img { width: 96px; }
  .final-title { font-size: 16px; }
  .footer nav { margin-left: 0; }
}
