
  :root {
    color-scheme: light dark;
    --bg: oklch(0.985 0.003 250);
    --band: oklch(0.955 0.005 250);
    --surface: oklch(1 0 0);
    --line: oklch(0.88 0.008 250);
    --ink: oklch(0.24 0.012 250);
    --muted: oklch(0.47 0.015 250);
    --accent: oklch(0.48 0.08 225);
    --accent-ink: oklch(0.99 0.003 250);
    --accent-soft: oklch(0.93 0.025 225);
    --works-bg: oklch(0.94 0.035 150);   --works-ink: oklch(0.36 0.07 150);
    --built-bg: oklch(0.93 0.012 250);   --built-ink: oklch(0.37 0.03 250);
    --confirm-bg: oklch(0.95 0.045 85);  --confirm-ink: oklch(0.40 0.08 70);
    --accent-hover: oklch(0.42 0.08 225);
    --st-canvas: #f5f5f5;             /* n8n's light canvas, behind the light screenshot */
    --st-dim: rgba(245, 245, 245, 0.62);
    --lb-backdrop: rgba(8, 10, 12, 0.92);
    --radius: 8px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --gutter: clamp(16px, 4vw, 56px);
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: oklch(0.16 0.008 250);
      --band: oklch(0.19 0.008 250);
      --surface: oklch(0.20 0.008 250);
      --line: oklch(0.30 0.01 250);
      --ink: oklch(0.92 0.006 250);
      --muted: oklch(0.72 0.01 250);
      --accent: oklch(0.72 0.07 225);
      --accent-ink: oklch(0.15 0.01 250);
      --accent-soft: oklch(0.27 0.03 225);
      --works-bg: oklch(0.28 0.035 150);   --works-ink: oklch(0.86 0.06 150);
      --built-bg: oklch(0.28 0.012 250);   --built-ink: oklch(0.86 0.02 250);
      --confirm-bg: oklch(0.29 0.04 75);   --confirm-ink: oklch(0.88 0.07 85);
      --accent-hover: oklch(0.78 0.07 225);
      --st-canvas: #171717;           /* n8n's dark canvas */
      --st-dim: rgba(0, 0, 0, 0.5);
    }
  }

  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
  img { max-width: 100%; }
  .wrap { max-width: 1400px; margin: 0 auto; padding-inline: var(--gutter); }
  section { padding-block: clamp(36px, 5vw, 72px); }
  .band { background: var(--band); border-block: 1px solid var(--line); }
  h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
  h1 { font-size: clamp(30px, 3.6vw, 46px); max-width: 32ch; }
  h2 { font-size: clamp(23px, 2.2vw, 30px); }
  h3 { font-size: 18px; }
  p { margin: 0; text-wrap: pretty; }
  a { color: var(--accent); }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  .lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); max-width: 65ch; }
  .note { font-size: 15px; color: var(--muted); max-width: 65ch; }
  .stack { display: grid; gap: 16px; align-content: start; }
  .section-head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 65ch; }
  .section-head p { color: var(--muted); }
  /* The logo bar: small, so the hero still fits above the fold at 1366x768. */
  .brand { padding-top: clamp(16px, 2vw, 24px); line-height: 0; }
  .brand img { display: block; width: auto; height: 32px; }
  @media (max-width: 600px) { .brand img { height: 28px; } }
  .hero { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); display: grid; gap: 16px; }
  .brand + .hero { padding-top: clamp(20px, 3vw, 40px); }
  /* Hero with the result beside the promise: text left, output mockup right. */
  .hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
  @media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
  .hero-text { display: grid; gap: 18px; align-content: start; }
  .proof { font-size: 15px; color: var(--muted); display: flex; align-items: baseline; gap: 8px; }
  .proof::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--works-ink); transform: translateY(-1px); }
  /* Phone: the hero mockup shows its first two points and says how many more there are. */
  .mock-more { display: none; color: var(--muted); font-size: 15px; }
  @media (max-width: 600px) {
    .mock-body li:nth-child(n+3) { display: none; }
    .mock-more { display: block; }
  }

  .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: start;
                 min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius); cursor: pointer;
                 background: var(--accent); color: var(--accent-ink); font: 600 16px/1.2 var(--font); text-decoration: none; }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-primary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
  .copy-status { font-size: 15px; color: var(--muted); min-height: 1.6em; }
  .copy-fallback { width: 100%; font: 15px/1.5 var(--font); color: var(--ink); background: var(--surface);
                   border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
  .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }

  .badge { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.3; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
  .badge-works { background: var(--works-bg); color: var(--works-ink); }
  .badge-built { background: var(--built-bg); color: var(--built-ink); }
  .badge-confirm { background: var(--confirm-bg); color: var(--confirm-ink); }
  .status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; }
  .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--muted); }
  .legend span { display: flex; align-items: baseline; gap: 6px; }   /* badge and its meaning wrap together */
  .legend .badge { flex: none; }

  .req-table { width: auto; max-width: 100%; border-collapse: collapse; font-size: 16px; }
  .req-table th, .req-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .req-table th { font-size: 14px; color: var(--muted); font-weight: 600; }
  .req-table .later { color: var(--muted); }
  .req-table td:nth-child(2) { white-space: nowrap; }

  .mock { max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .mock-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .mock-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
                 background: var(--accent-soft); color: var(--ink); font-size: 14px; font-weight: 600; }
  .mock-who { font-weight: 600; }
  .mock-when { font-size: 14px; color: var(--muted); }
  .mock-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
  .mock-body ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
  .mock-ref { color: var(--muted); font-size: 15px; }
  .sample-tag { font-size: 13px; font-weight: 600; color: var(--muted); }

  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; align-content: start; }

  ul.plain { margin: 0; padding-left: 20px; display: grid; gap: 10px; max-width: 65ch; }
  ul.plain li::marker { color: var(--accent); }
  .checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 65ch; }
  .checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
  .checklist li::before { content: ""; width: 16px; height: 16px; margin-top: 5px; border: 2px solid var(--accent); border-radius: 4px; }
  .checklist .why { display: block; color: var(--muted); font-size: 15px; }

  .cta { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); background: var(--surface); display: grid; gap: 14px; max-width: 760px; }
  .cta p { font-size: 18px; }
  footer { padding-block: 28px 44px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

  @media (max-width: 900px) {
    .two { grid-template-columns: minmax(0, 1fr); }
    body { font-size: 16px; }
  }
  @media (max-width: 600px) {
    .req-table td:nth-child(2) { white-space: normal; }
    .req-table th:nth-child(3), .req-table td:nth-child(3) { display: none; }
  }

  .st { display: grid; gap: var(--st-gap, clamp(20px, 3vw, 40px)); }
  @media (min-width: 1100px) {
    .st { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
    .st-shots { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); }
  }

  .st-shots { display: grid; gap: 12px; min-width: 0; }
  .st-shot { position: relative; overflow: hidden; border-radius: var(--radius, 8px); line-height: 0;
             border: 1px solid var(--line); background: var(--st-canvas, #1a1a1a); }
  .st.is-ready .st-shot { aspect-ratio: var(--st-ratio, 16 / 10); }
  .st.is-ready .st-shot:not(.is-active) { display: none; }
  .st-shot img { display: block; width: 100%; height: auto; }
  .st-shot picture { display: contents; }
  /* The picture says it can be opened larger, on hover and on keyboard focus. */
  .st.is-ready .st-shot::after { content: "Click to enlarge"; position: absolute; right: 10px; bottom: 10px; line-height: 1.3;
              font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 4px; pointer-events: none;
              background: var(--surface); color: var(--ink); border: 1px solid var(--line); opacity: 0; transition: opacity .2s; }
  .st.is-ready .st-shot:hover::after, .st.is-ready .st-shot:focus-within::after { opacity: 1; }
  .st.is-ready .st-shot img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none;
                              transition: transform .7s ease; cursor: zoom-in; }
  .st-focus { position: absolute; pointer-events: none; border: 3px solid var(--accent);
              border-radius: var(--radius, 8px); box-shadow: 0 0 0 9999px var(--st-dim, rgba(0, 0, 0, 0.35));
              transition: left .7s ease, top .7s ease, width .7s ease, height .7s ease; }
  .st-label { position: absolute; pointer-events: none; line-height: 1.3; font-size: 14px; font-weight: 600;
              padding: 4px 10px; border-radius: 4px; background: var(--accent); color: var(--accent-ink);
              max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
              transition: left .7s ease, top .7s ease; }
  @media (prefers-reduced-motion: reduce) {
    .st.is-ready .st-shot img, .st-focus, .st-label { transition: none; }
  }

  .st-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .st-btn { font: inherit; font-weight: 600; font-size: 15px; line-height: 1; color: var(--ink);
            background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 8px);
            min-height: 44px; min-width: 44px; padding: 0 16px; cursor: pointer; }
  .st-btn:hover { border-color: var(--accent); }
  .st-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .st-status { margin: 0 0 0 auto; color: var(--muted); font-size: 15px; }
  .st-progress { flex: 1 0 100%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .st-progress > span { display: block; height: 100%; width: 0; background: var(--accent); }
  .st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  .st-panel { min-width: 0; }
  .st-now { display: none; }
  .st-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; }
  .st-steps > li:not(.st-phase) { counter-increment: st; border-top: 1px solid var(--line); padding: 12px 0; }
  .st-steps > li:last-child { border-bottom: 1px solid var(--line); }
  .st-phase { margin: 18px 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
  .st-phase:first-child { margin-top: 0; }
  .st-steps h3, .st-now h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; text-wrap: balance; }
  .st-steps h3::before { content: counter(st) ". "; color: var(--muted); font-weight: 600; }
  .st.is-ready .st-steps h3::before { content: none; }
  .st-head { all: unset; display: block; width: 100%; box-sizing: border-box; cursor: pointer;
             border-radius: 4px; min-height: 28px; }
  .st-head::before { content: counter(st) ". "; color: var(--muted); font-weight: 600; }
  .st-head:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
  .st.is-ready .st-steps > li:not(.is-active) h3 { color: var(--muted); font-weight: 500; }
  .st.is-ready .st-steps > li:not(.is-active):not(.st-phase) > :not(h3) { display: none; }
  .st.is-ready .st-steps > li.is-active .st-head::before { color: var(--accent); }
  .st.is-ready .st-steps > li:not(.is-active) .st-head:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
  .st-steps p, .st-now p { margin: 8px 0 0; max-width: 65ch; line-height: 1.55; text-wrap: pretty; }
  .st-badges { display: flex; flex-wrap: wrap; gap: 6px; }

  .st-record { margin: 12px 0 0; padding: 10px 12px 12px; background: var(--surface); border: 1px solid var(--line);
               border-radius: var(--radius, 8px); display: grid; gap: 4px; font-size: 15px; }
  .st-record::before { content: "Sample data"; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px 2px; }
  .st-record > div { display: grid; grid-template-columns: minmax(90px, 35%) 1fr; gap: 12px; padding: 4px 6px; border-radius: 4px; }
  .st-record dt { color: var(--muted); }
  .st-record dd { margin: 0; overflow-wrap: anywhere; }
  .st-record > .is-new { background: var(--accent-soft); }
  .st-record > .is-new dd { font-weight: 600; }

  /* Phone: picture, controls and the active step's text sit together; the step list is hidden. */
  @media (max-width: 600px) {
    .st { --st-ratio: 4 / 3; }
    .st.is-ready .st-now { display: block; }
    .st.is-ready .st-steps { display: none; }   /* Back, Next and "Step x of 6" are enough here */
    .st-now h3::before { content: none; }
  }

  img[data-zoom] { cursor: zoom-in; }
  img[data-zoom]:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

  .lb { position: fixed; inset: 0; z-index: 1000; display: none; background: var(--lb-backdrop, rgba(8, 10, 12, 0.9)); color: var(--lb-fg, #fff); }
  .lb.is-open { display: block; }
  .lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
  .lb-stage.is-dragging { cursor: grabbing; }
  .lb-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; max-height: none;
            user-select: none; -webkit-user-drag: none; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5); }
  .lb-bar { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 1; }
  .lb-btn { font: 600 15px/1 system-ui, sans-serif; color: var(--lb-fg, #fff); background: var(--lb-control-bg, rgba(255, 255, 255, 0.12));
            border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--lb-control-radius, 6px);
            min-width: 44px; height: 44px; padding: 0 14px; cursor: pointer; }
  .lb-btn:hover { background: var(--lb-control-bg-hover, rgba(255, 255, 255, 0.24)); }
  .lb-btn:focus-visible { outline: 2px solid var(--lb-focus, #fff); outline-offset: 2px; }
  .lb-close { font-size: 16px; }
  .lb-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0;
             font: 14px/1.4 system-ui, sans-serif; opacity: 0.75; pointer-events: none; text-align: center;
             width: max-content; max-width: calc(100% - 32px); }
  @media (max-width: 600px) { .lb-zoom { display: none; } }

  .sheet { width: 100%; border-collapse: collapse; font-size: 15px; }
  .sheet th, .sheet td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .sheet th { font-size: 13px; color: var(--muted); font-weight: 600; }
  .sheet td:last-child, .sheet th:last-child { white-space: nowrap; }
  .sheet .num { text-align: right; font-variant-numeric: tabular-nums; }
  .tag-ok { color: var(--works-ink); font-weight: 600; }
  .tag-review { color: var(--confirm-ink); font-weight: 600; background: var(--confirm-bg); padding: 2px 8px; border-radius: 4px; }
  .mock-flag { margin: 0; padding: 10px 18px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
  .field { display: grid; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
  .field small { font-size: 13px; color: var(--muted); font-weight: 600; }
  .fields { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields .wide { grid-column: 1 / -1; }
  .arrow-down { text-align: center; color: var(--muted); font-size: 14px; }
  .st { --st-ratio: 3 / 1; }
  @media (max-width: 600px) { .st { --st-ratio: 4 / 3; } }
  .need { padding-block: clamp(32px, 4vw, 56px); }
