:root {
    --bg:          hsl(60, 20%, 98%);
    --card:        hsl(36, 30%, 93%);
    --text:        hsl(0, 0%, 10%);
    --muted:       hsl(0, 0%, 10%);
    --accent:      hsl(21, 90%, 54%);
    --accent-soft: hsl(13, 48%, 81%);
    --link:        hsl(21, 45%, 32%);
    --link-hover:  hsl(21, 55%, 24%);
    --wf-error:    hsl(0, 62%, 52%);
    --radius: 10px;
    --shadow: 0 6px 24px rgba(30, 20, 10, 0.07);

    --tint-header:  hsl(21, 70%, 93%);
    --tint-install: transparent;
    --tint-faq:     hsl(35, 73.6%, 98.3%);

    --content-max: 1180px;
    --content-max-wide: 1820px;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;

    display: grid;
    grid-template-columns:
        [full-start] 1fr
        [content-start] min(var(--content-max), 100% - 2 * var(--space-4)) [content-end]
        1fr [full-end];
}

body > * { grid-column: content; }
body > .full-bleed { grid-column: full; }

/* Links: warm brown that harmonizes with the cream/orange palette, instead of
   the clashing browser blue. Nav, footer, and heading links set their own. */
a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 0.12em;
}
a:hover {
    color: var(--link-hover);
}

.nav-hamburger { display: none; }
.nav-menu { display: block; }

.topnav {
    position: absolute;
    top: 1.1rem;
    right: 2rem;
    z-index: 2;
}

.gh-link {
    color: #8a8a8a;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: normal;
}

.gh-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.hero-head {
    text-align: center;
    padding: 0.6rem 0 0.6rem 0;
    background: var(--tint-header);
}
.brand-lockup {
    display: flex;
    align-items: flex-end;   /* sit the plane on the wordmark baseline */
    justify-content: center;
    gap: 0;
}
.brand-logo {
    width: clamp(1.75rem, 3.4vw, 2.6rem);
    height: auto;
    flex: none;
}
.brand-logo--trailing {
    /* plane lifted off the top of the "h" — climbing up+right at ~2 o'clock,
       left tail clearing the "h" with a visible gap (take-off) */
    margin-left: -0.4rem;
    margin-bottom: 0.55em;
    align-self: flex-start;
}
.wordmark {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
    line-height: 1.05;
}

.tagline {
    margin: 0.5rem 0 0 0;
    font-size: 1.4rem;
    color: hsl(0, 8.7%, 24.9%);
    font-weight: 500;
}

.main-layout {
    max-width: var(--content-max-wide);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    grid-template-areas:
        "demo    install"
        "faq     install";
    column-gap: 2.5rem;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.hero {
    grid-area: demo;
    padding: 0.5rem 0 1rem;
}

.hero-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sample-flow {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.sample-flow-demo {
    margin-top: 1.5rem;
}

.workflow-figure {
    margin: 0.5rem auto 0;
    width: 100%;
    box-sizing: border-box;
    padding: 1.25rem 1.5rem;
    border: 1px solid hsl(0, 0%, 88%);
    border-radius: var(--radius);
    background: hsl(28, 40%, 97%);
}

.workflow-caption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
}

/* Caption links sit among bold black caption text; at bold weight the brown
   link reads as just "dark" and loses its link character. Drop them to regular
   weight so they stay legible as links. */
.workflow-caption a,
.plan-caption a {
    font-weight: 400;
}

.intro-assumptions-lead {
    align-self: stretch;
    margin-bottom: 0.25rem;
}

.intro-assumptions {
    align-self: stretch;
    margin: 0 0 0.75rem;
    padding-left: 3rem;
}

.intro-assumptions + .demo-heading {
    margin-top: 1rem;
}

.intro-assumptions li {
    margin: 0.35rem 0;
}

.intro-assumptions li::marker {
    font-weight: 700;
}

.demo-heading {
    align-self: flex-start;
    width: 100%;
    margin: 3rem 0 0.5rem;
    text-align: left;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.demo-heading--minor {
    font-size: 1.3rem;
    margin-top: 2rem;
}

/* On desktop the concept blocks are core content: the <details> ships with the
   `open` attribute so all children render inline, and the summary is hidden.
   On mobile a script removes `open` and the media query styles the expando. */
.more-concepts-summary {
    display: none;
}

.demo-heading + .sample-flow-demo {
    margin-top: 0;
}

.demo-heading + .sample-flow {
    margin-top: 0;
}

.demo-box + .demo-heading {
    margin-top: 3.5rem;
}

#demo-screencast.demo-heading {
    margin-top: 3rem;
}

.workflow-svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.wf-box {
    fill: var(--card);
    stroke: var(--accent-soft);
    stroke-width: 1.5;
}

.wf-box-accent {
    fill: var(--accent-soft);
    stroke: var(--accent);
}

.wf-box-finish {
    fill: var(--accent-soft);
    stroke: var(--accent);
}

.wf-group {
    fill: none;
    stroke: hsl(0, 0%, 55%);
    stroke-width: 1.5;
    stroke-dasharray: 6 5;
    opacity: 0.7;
}

.wf-group-note {
    fill: var(--text);
    font-size: 15px;
    text-anchor: start;
}

.wf-branch-note {
    fill: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-anchor: middle;
}

.wf-label {
    fill: var(--text);
    font-size: 17px;
    font-weight: 400;
    text-anchor: middle;
}

.wf-sublabel {
    fill: var(--muted);
    font-size: 13px;
    text-anchor: middle;
}

.wf-stepnum {
    fill: var(--accent);
    font-size: 15px;
    font-weight: 700;
    text-anchor: start;
}

.wf-optional-note {
    fill: var(--accent);
    font-style: italic;
}

.workflow-svg {
    --wf-arrow-color: var(--accent);
}

.wf-arrow {
    stroke: var(--wf-arrow-color);
    stroke-width: 2;
    fill: none;
}

.wf-arrowhead {
    fill: var(--wf-arrow-color);
}

.wf-loop-note {
    fill: var(--wf-arrow-color);
    font-size: 12px;
    font-style: italic;
    text-anchor: middle;
}

.wf-done-note {
    fill: var(--muted);
    font-size: 16px;
}

/* Error-mode paths (big changes -> update -> retry) share a warning hue */
.wf-arrow-error {
    stroke: var(--wf-error);
}

.wf-arrowhead-error {
    fill: var(--wf-error);
}

.wf-branch-note.wf-error-note,
.wf-loop-note.wf-error-note {
    fill: var(--wf-error);
}

/* Alternate colour scheme for the second diagram */
.workflow-svg--alt {
    --wf-arrow-color: hsl(0, 0%, 50%);
    --wf-error: hsl(354, 50%, 50%);
}

.install-section {
    grid-area: install;
    align-self: start;
}

.hero-install {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: var(--space-2) var(--space-3) var(--space-3);
    background: var(--tint-install);
    border-radius: var(--radius);
}

.about {
    padding: var(--space-3) var(--space-3) var(--space-3);
}

.about-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
}

.about-brand {
    color: var(--accent);
    font-weight: 600;
}

.about-text {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    line-height: 1.6;
}

.about-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.about-pic {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 1.4rem;
}

.install-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.install-block + .install-block {
    margin-top: 1.5rem;
}

.install-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: hsl(21, 90%, 50%);
}

.install-label {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.install-steps {
    margin: 0;
    padding-inline-start: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1.4rem;
}

.install-steps li {
    padding-inline-start: 0.25rem;
    font-size: 1.4rem;
}


.install-steps .install-code {
    margin-block-start: 0.4rem;
}

.install-steps-done {
    font-size: 1.4rem;
    margin-block-start: 0.25rem;
}

.install-code {
    margin: 0;
    padding: 1rem 1.2rem;
    background: var(--card);
    border-radius: var(--radius);
    font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.install-code code {
    white-space: pre-wrap;
    word-break: break-word;
}

.sample-flow span        { font-weight: normal; }
.sample-flow-demo [data-step] {
    margin-right: 0.6em;
}
.sample-flow span.active {
    color: #fff;
    background: hsl(221, 78%, 47%);
    padding: 0.05em 0.35em;
    border-radius: 4px;
    text-decoration: none;
}

.demo-box {
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 1.25rem 1.5rem;
    border: 1px solid hsl(0, 0%, 85%);
    border-radius: var(--radius);
    background: var(--bg);
}

.demo-box .sample-flow-demo {
    margin-top: 0;
}

.plan-figure {
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 1.5rem;
}

.plan-img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    border: 1px solid hsl(0, 0%, 90%);
    border-radius: 6px;
}

.plan-caption {
    margin-top: 0.6rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.plan-figure-row {
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.plan-figure-row .plan-figure {
    flex: 1 1 0;
    min-width: 260px;
    margin-bottom: 1.5rem;
}

.plan-figure-row .plan-img {
    max-width: 100%;
}

.demo-player {
    width: 100%;
    max-width: 1300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.demo-box .demo-player {
    max-width: none;
    box-shadow: none;
    border: 1px solid hsl(0, 0%, 88%);
}

/* Demo screencast modal */
.demo-dialog {
    width: min(1300px, 94vw);
    max-width: 94vw;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 20px 60px rgba(30, 20, 10, 0.25);
    color: var(--text);
}

.demo-dialog::backdrop {
    background: rgba(20, 14, 8, 0.55);
}

.demo-dialog-head {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--accent-soft);
}

.demo-dialog-title {
    flex: none;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: left;
}

.demo-dialog-subtitle {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.demo-dialog-close {
    flex: none;
    align-self: center;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.demo-dialog-close:hover,
.demo-dialog-close:focus-visible {
    background: var(--accent-soft);
    color: var(--text);
}

.demo-dialog-body {
    padding: 1.1rem;
}

.demo-dialog-mount {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Clickable plan / task images open the full file in a modal */
.plan-img--clickable {
    cursor: pointer;
}

/* File viewer modal (plan markdown / tasks XML) — GitHub-like white surface */
.file-dialog {
    width: min(900px, 94vw);
    max-width: 94vw;
    max-height: 88vh;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 20px 60px rgba(30, 20, 10, 0.25);
    color: #1f2328;
    overflow: hidden;
}

.file-dialog::backdrop {
    background: rgba(20, 14, 8, 0.55);
}

.file-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #d0d7de;
}

.file-dialog-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2328;
}

.file-dialog-orig {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--link);
    text-decoration: none;
}

.file-dialog-orig:hover {
    text-decoration: underline;
}

.file-dialog-close {
    flex: none;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #57606a;
    cursor: pointer;
}

.file-dialog-close:hover,
.file-dialog-close:focus-visible {
    background: #eaeef2;
    color: #1f2328;
}

.file-dialog-body {
    max-height: calc(88vh - 4rem);
    overflow: auto;
    padding: 1.25rem 1.5rem;
}

/* Rendered markdown: wraps normally, GitHub-ish typography */
.file-dialog-content--rendered {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.4rem; /* match the page body (.sample-flow) */
    line-height: 1.6;
    color: #1f2328;
    overflow-wrap: anywhere;
}

.file-dialog-content--rendered h1,
.file-dialog-content--rendered h2,
.file-dialog-content--rendered h3 {
    margin: 1.4em 0 0.5em;
    line-height: 1.25;
}

.file-dialog-content--rendered h1:first-child,
.file-dialog-content--rendered h2:first-child {
    margin-top: 0;
}

.file-dialog-content--rendered h1,
.file-dialog-content--rendered h2 {
    padding-bottom: 0.3em;
    border-bottom: 1px solid #d8dee4;
}

.file-dialog-content--rendered code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: #eff1f3;
    padding: 0.15em 0.4em;
    border-radius: 5px;
}

/* Code blocks (and the XML view) keep their own line breaks and scroll
   horizontally only when content genuinely overflows. */
.file-dialog-content--rendered pre {
    background: #f6f8fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

.file-dialog-content--rendered pre code {
    background: none;
    padding: 0;
}

.file-dialog-content--code pre {
    margin: 0;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 1.4rem; /* match the page body (.sample-flow) */
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
    color: #1f2328;
}

/* Total screencast length, shown left of the kbd / fullscreen icons */
.ap-control-bar .ap-total-duration {
    flex: 0 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    opacity: 0.85;
}

/* Drop the keyboard-shortcuts icon from both players */
.demo-player div.ap-control-bar span.ap-kbd-button,
.demo-dialog-mount div.ap-control-bar span.ap-kbd-button {
    display: none;
}

.ap-player.asciinema-player-theme-shipsmooth-light {
    --term-color-foreground: #21252b;
    --term-color-background: #eceff4;
    --term-color-0: #21252b;
    --term-color-1: #dc2626;
    --term-color-2: #16a34a;
    --term-color-3: #d97706;
    --term-color-4: #3b82f6;
    --term-color-5: #9333ea;
    --term-color-6: #0891b2;
    --term-color-7: #21252b;
    --term-color-8: #6b7280;
    --term-color-9: #ef4444;
    --term-color-10: #22c55e;
    --term-color-11: #f59e0b;
    --term-color-12: #3b82f6;
    --term-color-13: #a855f7;
    --term-color-14: #06b6d4;
    --term-color-15: #21252b;
}

.faq {
    grid-area: faq;
    padding: 0 0 2rem 0;
}

.faq-title {
    margin: 0 0 0.75rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: hsl(230, 68%, 58%);
}

.faq-title-mobile {
    display: none;
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: hsl(230, 68%, 67%);
}

.faq-list {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: var(--tint-faq);
    padding: var(--space-3) 0 var(--space-5);
    border-radius: var(--radius);
}

.faq-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.faq-q {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
}

.faq-a {
    margin: 0;
    font-size: 1.4rem;
    color: var(--muted);
    line-height: 1.6;
    text-align: justify;
}

.faq-a-list {
    margin: var(--space-1) 0 0 var(--space-3);
    padding: 0;
    font-size: 1.4rem;
    color: var(--muted);
    line-height: 1.6;
    text-align: justify;
}

.site-footer {
    text-align: center;
    padding: var(--space-4) 0 var(--space-3);
    font-size: 1.2rem;
}

.site-footer a {
    color: hsl(0, 0%, 10%);
    text-decoration: underline;
    font-size: 1.2rem;
}

.site-footer a:hover {
    color: hsl(0, 0%, 30%);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .demo-player {
        border: 1.5px solid hsl(0, 0%, 67%);
        border-radius: 6px;
    }
    .main-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        overflow: hidden;
    }
    .hero,
    .install-section {
        min-width: 0;
    }
    .hero {
        padding: 0.25rem 1.25rem 1rem;
    }
    .install-section {
        position: static;
        padding: 1.5rem 1.25rem 1rem;
    }
    .about {
        padding: 1.5rem 0 0;
    }
    .about-text,
    .about-links {
        font-size: 1.05rem;
    }
    .about-title {
        font-size: 1.2rem;
        font-weight: 600;
    }
    /* On mobile the concept blocks collapse behind a "Read more" expando.
       (Desktop keeps the <details> open via the `open` attribute + script.) */
    .more-concepts {
        display: block;
        margin-top: 1.5rem;
        border-top: 1px solid var(--accent-soft);
        padding-top: 0.5rem;
    }
    .more-concepts-summary {
        display: list-item;
        list-style: none;
        cursor: pointer;
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--accent);
        padding: 0.5rem 0;
    }
    .more-concepts-summary::-webkit-details-marker {
        display: none;
    }
    .more-concepts-summary::after {
        content: " \25BC";
        font-size: 0.8em;
    }
    .more-concepts[open] .more-concepts-summary::after {
        content: " \25B2";
    }
    /* First heading inside the open expando shouldn't add extra top margin */
    .more-concepts[open] > .demo-heading:first-of-type {
        margin-top: 0.5rem;
    }
    /* Demo popup dialog: stack head, shrink type, fit screen */
    .demo-dialog {
        width: 96vw;
        max-width: 96vw;
    }
    .demo-dialog-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem 0.9rem;
        position: relative;
    }
    .demo-dialog-title {
        font-size: 1.15rem;
        padding-right: 2rem;
    }
    .demo-dialog-subtitle {
        font-size: 0.95rem;
    }
    .demo-dialog-close {
        position: absolute;
        top: 0.5rem;
        right: 0.6rem;
    }
    .demo-dialog-body {
        padding: 0.75rem;
    }
    /* The file viewer renders full markdown/code; its desktop 1.4rem type is
       far too large on a phone. Scale the body and headings down. */
    .file-dialog-body {
        padding: 0.9rem 1rem;
    }
    .file-dialog-content--rendered {
        font-size: 1rem;
    }
    .file-dialog-content--rendered h1 {
        font-size: 1.4rem;
    }
    .file-dialog-content--rendered h2 {
        font-size: 1.25rem;
    }
    .file-dialog-content--rendered h3 {
        font-size: 1.1rem;
    }
    .file-dialog-content--code pre {
        font-size: 0.85rem;
    }
    .hero-demo {
        min-width: 0;
        width: 100%;
        align-items: stretch;
    }
    .hero-demo > * {
        max-width: 100%;
    }
    .demo-player {
        max-width: 100%;
    }
    .workflow-figure {
        padding: 0.75rem;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) hsl(28, 30%, 90%);
    }
    /* Force a persistently visible scrollbar track on the diagram */
    .workflow-figure::-webkit-scrollbar {
        height: 8px;
        -webkit-appearance: none;
    }
    .workflow-figure::-webkit-scrollbar-track {
        background: hsl(28, 30%, 90%);
        border-radius: 4px;
    }
    .workflow-figure::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 4px;
    }
    .workflow-svg {
        width: 720px;
        max-width: none;
    }
    .plan-img {
        max-width: 100%;
        height: auto;
    }
    .plan-figure-row {
        flex-direction: column;
    }
    .demo-heading {
        margin-top: 1.5rem;
        font-size: 1.35rem;
    }
    /* Section headings after a boxed component carry a large desktop margin via
       adjacent-sibling rules; tame on mobile. .demo-box has no bottom margin so
       the heading supplies the gap (1.5rem); .plan-figure(-row) already add a
       1.5rem bottom margin, so their following heading needs none. */
    .demo-box + .demo-heading {
        margin-top: 1.5rem;
    }
    .plan-figure + .demo-heading,
    .plan-figure-row + .demo-heading {
        margin-top: 0;
    }
    /* License (now inside the .more-concepts expando) follows the versioning
       figure-row; the preceding .plan-figure adds its own bottom margin. */
    .more-concepts .demo-heading--minor {
        margin-top: 1.5rem;
    }
    .plan-caption,
    .workflow-caption {
        font-size: 1rem;
        font-weight: 400;
        margin-top: 0.5rem;
    }
    .sample-flow {
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .sample-flow-demo {
        margin-top: 0;
    }
    .intro-assumptions {
        margin-bottom: 0.5rem;
    }
    .intro-assumptions li {
        margin: 0.2rem 0;
    }
    .intro-assumptions-lead {
        margin-bottom: 0.15rem;
    }
    /* asciinema fullscreen is unsupported on most mobile browsers (iOS only
       allows it on <video>); hide the dead button on small screens. */
    .ap-fullscreen-button {
        display: none !important;
    }
    /* (b) "Plans? Tasks??" sits right under the diagram figure — give it air */
    .workflow-figure + .demo-heading {
        margin-top: 2rem;
    }
    .hero-head {
        padding: 0.6rem 1.25rem 0.5rem;
    }
    .tagline {
        font-size: 0.95rem;
    }
    .topnav {
        position: fixed;
        top: 0;
        right: 0;
        padding: 0.5rem;
        z-index: 100;
        background: transparent;
    }
    .nav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        background: var(--accent-soft);
        border: none;
        border-radius: 6px;
        font-size: 1.1rem;
        color: var(--accent);
        cursor: pointer;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg);
        border: 1px solid var(--accent-soft);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 0.5rem 1rem;
        min-width: 7rem;
        z-index: 10;
    }
    .topnav.open .nav-menu {
        display: block;
    }
    .topnav .gh-link {
        font-size: 0.95rem;
    }
    .faq-q {
        font-size: 1.1rem;
    }
    .faq-a,
    .faq-a-list {
        font-size: 1rem;
        text-align: left;
    }
    .faq-list {
        max-width: 100%;
    }
    .hero-install {
        padding: 0;
        gap: 0.5rem;
    }
    .install-title {
        font-size: 1.3rem;
        margin-bottom: 0;
    }
    .install-steps,
    .install-steps li,
    .install-steps-done {
        font-size: 1rem;
    }
    .faq-list {
        padding: 0.25rem 1.25rem 0.75rem;
        gap: var(--space-3);
    }
    .faq {
        padding-bottom: 0;
    }
    .faq-title-mobile {
        display: block;
        margin-bottom: 0;
    }
    .site-footer {
        padding: var(--space-2) 0 var(--space-2);
        font-size: 0.95rem;
    }
    .site-footer a {
        font-size: 0.95rem;
    }
}
