@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/bricolage-grotesque-800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Gabarito";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/assets/fonts/gabarito-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand palette (ZeroPrompts brand guidelines v1.0) and theme tokens. */
:root {
    --sunflower: #ffc83d;
    --live-red: #f2381f;
    --ink: #191c22;
    --ground: #fdfbf6;
    --sky: #bcd5ff;
    --done-green: #1f9d63;
    --night-navy: #17245a;
    --on-primary: #0d0f14;
    --paper-light: #f2f3f5;

    --bg: var(--ground);
    --surface: #ffffff;
    --tint: #fff4d8;
    --text: var(--ink);
    --muted: #52555b;
    --line: rgba(25, 28, 34, 0.14);
    --line-strong: rgba(25, 28, 34, 0.28);
    --logo: var(--night-navy);
    --strike: var(--live-red);
    --strike-text: var(--live-red);
    --number: var(--text);
    --done-text: #15704a;
    --band-ink: var(--ink);
    --shadow-colour: var(--ink);

    --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
    --font-text: "Gabarito", system-ui, -apple-system, "Segoe UI", sans-serif;

    --margin: clamp(1rem, 4vw, 3rem);
    --gutter: 1.5rem;
    --max: 90rem;
    --header-height: 4.5rem;

    --h1: clamp(2.75rem, 1.4rem + 4.4vw, 5.5rem);
    --h2: clamp(2.25rem, 1.45rem + 3.1vw, 4.25rem);
    --h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
    --section-space: clamp(4.5rem, 3rem + 6vw, 9rem);

    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 1.125rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h1 {
    font-size: var(--h1);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

h2 {
    font-size: var(--h2);
    line-height: 1.02;
}

h3 {
    font-family: var(--font-text);
    font-size: var(--h3);
    font-weight: 600;
    line-height: 1.2;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: 3px;
}

::selection {
    background: var(--sunflower);
    color: var(--ink);
}

.shell {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--margin);
}

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

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Icon system: 24px grid, 1.75px stroke, round caps and joins, ink or primary only. */
.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--ground);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

/* Logo and symbol: path data from the brand kit (kit/D/logo), cropped to the ink box. */
.logo {
    display: block;
    height: 1.75rem;
    aspect-ratio: 766.576 / 118.334;
    color: var(--logo);
}

.logo-light {
    --logo: var(--paper-light);
    --strike: var(--paper-light);
}

/* Live-text strike (brand guidelines p.8): Live Red, 0.085em, crossing out
   only work that is done or no longer needed. Struck text turns muted. */
.task-list s,
.struck-prompts s,
.get-started h2 s {
    text-decoration-line: line-through;
    text-decoration-thickness: 0.085em;
    text-decoration-color: var(--strike-text);
    text-decoration-skip-ink: none;
}

@keyframes strike-through {
    from {
        text-decoration-color: transparent;
    }
}

@keyframes tick-in {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Buttons */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1.2rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button-primary {
    background: var(--sunflower);
    color: var(--ink);
}

.button-primary:hover {
    box-shadow: 3px 3px 0 var(--shadow-colour);
    transform: translate(-2px, -2px);
}

.button-ink {
    background: var(--ink);
    color: var(--ground);
}

.button-ink:hover {
    box-shadow: 4px 4px 0 var(--ground);
    transform: translate(-2px, -2px);
}

.button-large {
    min-height: 3.25rem;
    padding: 0 1.6rem;
    font-size: 1.0625rem;
}

.button:active {
    box-shadow: none;
    transform: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
    text-decoration-color: var(--sunflower);
}

.text-link:hover {
    text-decoration-color: currentColor;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: var(--max);
    height: var(--header-height);
    margin-inline: auto;
    padding-inline: var(--margin);
}

.brand {
    display: inline-flex;
    padding-block: 0.4rem;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}

.nav-links a {
    position: relative;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    background: var(--sunflower);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: 0.25rem;
    padding: 0;
    border: 2px solid var(--text);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    height: 2px;
    background: currentColor;
    transition: transform 200ms ease, top 200ms ease;
}

.menu-toggle span:first-child {
    top: calc(50% - 4px);
}

.menu-toggle span:last-child {
    top: calc(50% + 2px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
    top: calc(50% - 1px);
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem var(--margin) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.mobile-menu-links {
    display: grid;
}

.mobile-menu-links a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    text-transform: lowercase;
}

.mobile-menu .button {
    align-self: flex-start;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 3rem;
    align-items: center;
    padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
}

.hero-copy {
    grid-column: 1 / span 7;
}

.hero h1 {
    max-width: 15ch;
    margin: 1.5rem 0 1.75rem -0.04em;
}

.hero-intro {
    max-width: 35rem;
    color: var(--muted);
    font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
    margin-top: 2.25rem;
}
/* Hero panel: the job being ticked off on a sunflower surface. */
.hero-panel {
    grid-column: 8 / span 5;
    display: flex;
    min-height: 35rem;
    background: var(--sunflower);
    color: var(--ink);
    overflow: hidden;
}

.panel-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.25rem;
    padding: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem) clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem) 3rem;
}

.chat-card,
.task-card {
    border: 2px solid var(--ink);
    background: var(--ground);
    box-shadow: 6px 6px 0 var(--ink);
}

.chat-card {
    width: min(100%, 25rem);
    padding: 1rem 1.15rem;
    animation: card-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both;
}

.chat-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
}

.chat-meta .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.chat-meta span,
.chat-card small {
    color: #52555b;
}

.chat-card p {
    margin: 0.55rem 0 0.35rem;
    font-size: 1.0625rem;
    line-height: 1.4;
}

.chat-card small {
    font-size: 0.8125rem;
}

.task-card {
    align-self: flex-end;
    width: min(100%, 27rem);
    padding: 1.1rem 1.2rem;
    animation: card-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 450ms both;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

.task-from {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(25, 28, 34, 0.14);
    font-size: 0.875rem;
}

.task-from b {
    font-weight: 600;
}

.task-from span:last-child {
    color: #52555b;
}

/* Symbol as an avatar: one colour on sunflower, next to the name. */
.avatar {
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--sunflower);
    color: var(--on-primary);
    --strike: currentColor;
}

.avatar svg {
    width: 0.95rem;
    height: 1rem;
}

.task-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
}

.task-head b {
    font-size: 1rem;
    font-weight: 600;
}

.task-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.9rem 0;
}

.task-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.task-list .icon {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--done-green);
    stroke-width: 2.25;
    animation: tick-in 300ms ease both;
    animation-delay: calc(1.05s + var(--i) * 0.5s + 0.3s);
}

.task-list s {
    color: #52555b;
    animation: strike-through 420ms ease both;
    animation-delay: calc(1.05s + var(--i) * 0.5s);
}

.task-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(25, 28, 34, 0.14);
    animation: card-in 400ms ease 3.25s both;
}

.pill {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--sky);
    font-size: 0.8125rem;
    font-weight: 600;
}

.fake-button {
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    background: var(--ink);
    color: var(--ground);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Section scaffolding */
.band-ink {
    background: var(--band-ink);
    color: var(--paper-light);
    --text: var(--paper-light);
    --muted: #a9afbf;
    --line: rgba(244, 241, 234, 0.16);
}

.band-navy {
    background: var(--night-navy);
    color: var(--paper-light);
    --text: var(--paper-light);
    --muted: #c9cfe3;
    --line: rgba(244, 241, 234, 0.2);
    --number: var(--sunflower);
}

/* Idea */
.idea {
    padding-block: var(--section-space);
}

.idea-title {
    max-width: 17ch;
    font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem);
}

.struck-prompts {
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.struck-prompts p {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.struck-prompts ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem var(--gutter);
}

.struck-prompts li {
    color: var(--muted);
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
    line-height: 1.35;
}

.struck-prompts s {
    text-decoration-color: transparent;
}

.struck-prompts.is-visible s {
    text-decoration-color: var(--strike-text);
    animation: strike-through 500ms ease both;
    animation-delay: calc(300ms + var(--i) * 280ms);
}

.idea-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 3rem;
    margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.idea-lead {
    grid-column: 1 / span 5;
    font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
    line-height: 1.5;
}

.idea-points {
    grid-column: 7 / span 6;
    display: grid;
    gap: 1.75rem;
}

.idea-points li {
    display: grid;
    gap: 0.35rem;
}

.idea-points h3 {
    font-size: 1.375rem;
}

.idea-points p {
    color: var(--muted);
}

/* How it works */
.how {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 3rem;
    padding-block: var(--section-space);
}

.how-intro,
.faq-intro {
    grid-column: 1 / span 4;
    align-self: start;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.how-intro h2,
.faq-intro h2 {
    font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.75rem);
}

.how-intro p,
.faq-intro p,
.cases-intro p {
    max-width: 30rem;
    margin-top: 1.25rem;
    color: var(--muted);
}

.steps {
    grid-column: 6 / -1;
}

.step {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "icon copy"
        "number copy";
    column-gap: 1.5rem;
    row-gap: 0.6rem;
    padding-block: 2rem;
    border-top: 1px solid var(--line);
}

.step:last-child {
    border-bottom: 1px solid var(--line);
}

/* The number sits under the icon, so the heading starts level with the icon. */
.step-number {
    grid-area: number;
    align-self: start;
    color: var(--number);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.step-icon {
    grid-area: icon;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: var(--sunflower);
    color: var(--ink);
}

.step-copy {
    grid-area: copy;
}

.step-copy h3 {
    padding-top: 0.15rem;
}

.step-copy p {
    max-width: 40rem;
    margin-top: 0.6rem;
    color: var(--muted);
}

/* Platform logos: one-colour marks only, one tile per platform, then a count of the rest. */
.platforms {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 34rem;
    margin-top: 1.25rem;
}

.platforms li {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
}

.brand-mark {
    width: 42%;
    height: 42%;
    color: var(--text);
}

.platforms .platforms-more {
    align-content: center;
    gap: 0.15rem;
    border-color: var(--sunflower);
    background: var(--sunflower);
    color: var(--ink);
    line-height: 1;
    text-align: center;
}

.platforms-more b {
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.85rem + 0.6vw, 1.375rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.platforms-more span[aria-hidden] {
    font-size: 0.8125rem;
    font-weight: 600;
}

.control {
    grid-column: 6 / -1;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border: 2px solid var(--text);
    background: var(--tint);
    box-shadow: 8px 8px 0 var(--sunflower);
}

.control h3 {
    max-width: 24ch;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.control ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
    margin-top: 1.5rem;
}

.control li {
    display: flex;
    gap: 0.65rem;
    font-size: 1rem;
    line-height: 1.45;
}

.control .icon {
    margin-top: 0.05rem;
    color: var(--done-text);
    stroke-width: 2.25;
}

/* Use cases */
.cases {
    padding-block: var(--section-space);
    background: var(--tint);
}

.cases-intro {
    max-width: 48rem;
}

/* Jobs: one worked example at a time. The request comes in on the left, ZeroPrompts
   sits in the middle, the tools it checks are on the right and the draft lands bottom
   left. Without JavaScript all four are stacked in their finished state. */
.jobs {
    display: grid;
    gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.jobs.is-enhanced {
    display: block;
}

.job-title {
    margin-bottom: 1rem;
}

.jobs.is-enhanced .job-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.job-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 0.9fr);
    grid-template-rows: auto 1fr;
    gap: 2rem clamp(2rem, 5vw, 5.5rem);
    min-height: 35rem;
    padding: clamp(1.25rem, 0.8rem + 2vw, 3rem);
    padding-bottom: clamp(1.75rem, 1rem + 2vw, 3.25rem);
    background: var(--sky);
    color: var(--ink);
}

.job-stage > * {
    position: relative;
    z-index: 1;
}

.job-stage > .job-wires {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.job-wires path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: job-wire 450ms ease forwards;
}

@keyframes job-wire {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes job-pop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
}

.job-card {
    border: 2px solid var(--ink);
    background: var(--ground);
    box-shadow: 6px 6px 0 var(--ink);
}

.job-request {
    grid-area: 1 / 1;
    align-self: start;
    padding: 1rem 1.15rem;
}

.job-result {
    grid-area: 2 / 1;
    align-self: end;
    padding: 1rem 1.15rem;
}

.job-hub {
    grid-area: 1 / 2 / 3 / 3;
    align-self: center;
    padding: 1.1rem 1.2rem;
    background: var(--surface);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
}

.job-meta b {
    font-weight: 600;
}

.job-meta span,
.job-request small {
    color: #52555b;
}

/* Third-party marks stay one colour (ink); line icons stand in where there is no mark. */
.job-mark {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.job-mark.icon,
.job-tile-mark.icon {
    fill: none;
}

.job-request p,
.job-result p {
    margin: 0.55rem 0 0.35rem;
    font-size: 1.0625rem;
    line-height: 1.4;
}

.job-request small {
    font-size: 0.8125rem;
}

.job-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(25, 28, 34, 0.14);
}

.job-log {
    display: grid;
    gap: 0.55rem;
}

.job-log li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.job-log .icon {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    color: var(--done-green);
    stroke-width: 2.25;
}

.job-tools {
    grid-area: 1 / 3 / 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1.5rem;
}

.job-tool {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.job-tile {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 3.75rem;
    height: 3.75rem;
    border: 2px solid var(--ink);
    background: var(--ground);
    box-shadow: 5px 5px 0 var(--ink);
    transition: opacity 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.job-tile-mark {
    width: 1.7rem;
    height: 1.7rem;
    fill: currentColor;
}

.job-tool > div {
    display: grid;
    justify-items: start;
    gap: 0.3rem;
    padding-top: 0.15rem;
}

.job-tool b {
    font-size: 0.9375rem;
    font-weight: 600;
    transition: opacity 300ms ease;
}

.job-found {
    padding: 0.2rem 0.55rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--ground);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

/* While a job plays, each piece stays hidden (but keeps its space) until its turn. */
.job.is-playing :is(.job-request, .job-result, .job-log li, .job-found):not(.is-on) {
    visibility: hidden;
}

.job.is-playing :is(.job-request, .job-result).is-on {
    animation: card-in 550ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.job.is-playing .job-log li.is-on {
    animation: card-in 400ms ease both;
}

.job.is-playing .job-found.is-on {
    animation: job-pop 350ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.job.is-playing .job-tool:not(.is-on) .job-tile {
    box-shadow: none;
    opacity: 0.45;
    transform: translate(2px, 2px);
}

.job.is-playing .job-tool:not(.is-on) b {
    opacity: 0.55;
}

/* Job picker, added by site.js. The bar fills while the job plays. */
.jobs-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gutter);
    margin-top: 1.5rem;
}

.jobs-nav button {
    position: relative;
    padding: 0.9rem 0 0;
    border: 0;
    border-top: 3px solid var(--line-strong);
    background: none;
    color: var(--muted);
    font: 600 1.0625rem/1.25 var(--font-text);
    text-align: left;
    cursor: pointer;
}

.jobs-nav button[aria-selected="true"] {
    color: var(--text);
}

.jobs-bar {
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
}

.jobs-nav .is-playing .jobs-bar {
    animation: jobs-fill var(--job-duration, 12s) linear forwards;
}

@keyframes jobs-fill {
    to {
        transform: scaleX(1);
    }
}

/* Who it's for */
.who {
    padding-block: var(--section-space);
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 3rem;
    align-items: start;
}

.who-copy {
    grid-column: 1 / span 6;
}

.who-copy h2 {
    max-width: 14ch;
    margin-bottom: 1.75rem;
}

.who-copy p {
    max-width: 36rem;
    color: var(--muted);
}

.who-copy p + p {
    margin-top: 1rem;
}

.flow {
    grid-column: 8 / span 5;
    padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
    background: var(--sunflower);
    color: var(--ink);
    box-shadow: 8px 8px 0 var(--sky);
}

.flow-lead {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.flow ol {
    margin-top: 1.5rem;
    counter-reset: flow;
}

.flow li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 0.75rem;
    padding-block: 1rem;
    border-top: 1px solid rgba(25, 28, 34, 0.22);
    counter-increment: flow;
}

.flow li::before {
    content: counter(flow, decimal-leading-zero);
    grid-row: span 2;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.9;
}

.flow b {
    font-size: 1.125rem;
    font-weight: 600;
}

.flow span {
    color: #3c4049;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.flow-foot {
    padding-top: 1rem;
    border-top: 1px solid rgba(25, 28, 34, 0.22);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
}

/* FAQ */
.faq {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 2.5rem;
    padding-block: var(--section-space);
}

.faq-list {
    grid-column: 6 / -1;
}

.faq-item {
    padding-block: 1.75rem;
    border-top: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-item h3 {
    font-size: 1.25rem;
}

.faq-item p {
    max-width: 42rem;
    margin-top: 0.6rem;
    color: var(--muted);
}

/* Get started */
.get-started {
    padding-block: var(--section-space);
    background: var(--sunflower);
    color: var(--ink);
}

.get-started h2 {
    max-width: 18ch;
    margin: 0 0 1.75rem -0.04em;
    font-size: clamp(3rem, 1.6rem + 5.6vw, 7rem);
    line-height: 0.98;
}

.get-started h2 s {
    /* Owner-approved exception: Live Red strike on sunflower. The struck word is a softened ink
       (a solid mix, not opacity, so the red line keeps full strength) so "approves" leads. */
    color: color-mix(in srgb, var(--ink) 45%, var(--sunflower));
}

.get-started-summary {
    max-width: 34rem;
    font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
}

.get-started-actions {
    margin-top: 2.25rem;
}

/* Sign-up dialog: a sunflower header over a ground body, framed like the hero cards. */
body.modal-open {
    overflow: hidden;
}

.signup-dialog {
    width: min(34rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 2px solid var(--ink);
    background: var(--ground);
    color: var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    overflow: auto;
}

.signup-dialog::backdrop {
    background: rgba(23, 36, 90, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.signup-dialog[open] {
    animation: dialog-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.signup-dialog[open]::backdrop {
    animation: fade-in 320ms ease;
}

.signup-dialog.is-closing {
    animation: dialog-out 240ms ease forwards;
}

.signup-dialog.is-closing::backdrop {
    animation: fade-out 240ms ease forwards;
}

/* Without JavaScript the links target the dialog, so show it as a fixed overlay. */
.signup-dialog:not([data-enhanced]):target,
.signup-dialog:not([data-enhanced]):has(.signup-note:target) {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    margin: auto;
    height: fit-content;
    box-shadow: 8px 8px 0 var(--ink), 0 0 0 100vmax rgba(23, 36, 90, 0.55);
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes dialog-out {
    to {
        opacity: 0;
        transform: translateY(16px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

.signup-head {
    position: relative;
    padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    padding-right: 6.5rem;
    border-bottom: 2px solid var(--ink);
    background: var(--sunflower);
}

.signup-head h2 {
    font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
    line-height: 1;
}

.signup-head p {
    margin-top: 0.85rem;
    font-size: 1rem;
    line-height: 1.45;
}

.signup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.85rem;
    border: 2px solid var(--ink);
    border-radius: 6px;
    background: var(--ground);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.signup-close:hover {
    box-shadow: 3px 3px 0 var(--ink);
    transform: translate(-2px, -2px);
}

.signup-body {
    padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
}

.signup {
    display: grid;
    gap: 1.1rem;
}

.signup-field {
    display: grid;
    gap: 0.4rem;
}

.signup-field label {
    font-size: 0.9375rem;
    font-weight: 600;
}

.signup-field input {
    width: 100%;
    min-height: 3.25rem;
    padding: 0 0.9rem;
    border: 2px solid var(--ink);
    border-radius: 6px;
    background: var(--ground);
    color: var(--ink);
    font: inherit;
    font-size: 1.0625rem;
}

.signup-field input:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

.signup .button {
    width: 100%;
    margin-top: 0.4rem;
    border-color: var(--ink);
}

.signup-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.signup .button[disabled] {
    cursor: progress;
    opacity: 0.7;
}

.signup-status:empty {
    display: none;
}

.signup-status,
.signup-note {
    margin-top: 1.1rem;
    font-size: 1rem;
    font-weight: 600;
}

.signup-note {
    display: none;
}

.signup-note:target {
    display: block;
}

.signup-dialog.is-done .signup,
.signup-dialog:has(#signup-thanks:target) .signup {
    display: none;
}

.signup-dialog.is-done .signup-status,
.signup-note-success {
    margin-top: 0;
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    line-height: 1.35;
}

/* Footer */
.site-footer {
    padding-block: 2.5rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2.5rem;
}

.footer-brand {
    text-decoration: none;
}

.site-footer p {
    color: var(--muted);
    font-size: 0.875rem;
}

.site-footer nav {
    display: flex;
    gap: 1.5rem;
}

.site-footer nav a {
    font-size: 0.875rem;
    font-weight: 600;
    text-underline-offset: 0.25em;
}

/* Reveal on scroll (content stays visible without JavaScript). */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 700ms ease var(--reveal-delay, 0ms),
        transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (scripting: none) {
    .reveal {
        opacity: 1;
        transform: none;
    }

    .struck-prompts s {
        text-decoration-color: var(--strike-text);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .jobs-bar {
        display: none;
    }
}

/* Responsive */
@media (max-width: 68rem) {
    .hero-copy {
        grid-column: 1 / span 7;
    }

    .hero-panel {
        grid-column: 8 / -1;
    }

    .how-intro,
    .faq-intro {
        grid-column: 1 / span 5;
    }

    .steps,
    .control,
    .faq-list {
        grid-column: 6 / -1;
    }
}

@media (max-width: 60rem) {
    .struck-prompts ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-copy,
    .hero-panel,
    .idea-lead,
    .idea-points,
    .how-intro,
    .steps,
    .control,
    .faq-intro,
    .faq-list,
    .who-copy,
    .flow {
        grid-column: 1 / -1;
    }

    .hero h1 {
        max-width: 12ch;
    }

    .hero-panel {
        min-height: 32rem;
    }

    .how-intro,
    .faq-intro {
        position: static;
    }

    .who-copy h2 {
        max-width: 16ch;
    }

    /* Jobs stack in reading order. The lines run straight down a spine through the tool
       tiles, and any spare height goes into the gaps the lines cross, not the bottom. */
    .job-stage {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        align-content: space-between;
        gap: 2rem;
        min-height: 0;
    }

    .job-request,
    .job-result,
    .job-hub,
    .job-tools {
        grid-area: auto;
        align-self: auto;
    }

    .job-tools {
        justify-content: flex-start;
        gap: 1.5rem;
    }

    /* The hub shrinks to its name; the tools and what they found tell the rest. */
    .job-hub {
        padding: 0.8rem 1rem;
    }

    .job-hub .task-from {
        margin: 0;
        padding: 0;
        border: 0;
    }

    .job-log {
        display: none;
    }

    .job-tile {
        width: 3.25rem;
        height: 3.25rem;
    }

    .job-tile-mark {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* The draft's place is held by an outline of the card until it is ready, so the stage
       never ends in empty space. */
    .job.is-playing .job-stage > .job-result:not(.is-on) {
        border-style: dashed;
        background: transparent;
        box-shadow: none;
        visibility: visible;
    }

    .job.is-playing .job-stage > .job-result:not(.is-on) .job-meta {
        opacity: 0.6;
    }

    .job.is-playing .job-stage > .job-result:not(.is-on) p {
        background: repeating-linear-gradient(to bottom, transparent 0 0.4em, rgba(25, 28, 34, 0.16) 0.4em 1em, transparent 1em 1.4em);
        color: transparent;
    }

    .job.is-playing .job-stage > .job-result:not(.is-on) .job-foot > * {
        background: rgba(25, 28, 34, 0.16);
        color: transparent;
    }

    .jobs-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1rem;
    }

    .jobs-nav button {
        font-size: 0.9375rem;
    }
}

@media (max-width: 40rem) {
    :root {
        --header-height: 4rem;
        --gutter: 1rem;
    }

    .logo {
        height: 1.5rem;
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        margin-left: auto;
    }

    .hero-panel {
        min-height: 0;
    }

    .struck-prompts ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .platforms {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .step {
        grid-template-columns: 2.75rem minmax(0, 1fr);
        column-gap: 1rem;
    }

    .step-icon {
        width: 2.75rem;
        height: 2.75rem;
        padding: 0.6rem;
    }

    .control ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
