/* Permitico: one stylesheet. Colours are variables built from the brand palette (spruce
   #0F1F1A, brass #D9A441, plaster #EEE9DF, stone #CFC9BC, graphite #4A4740); dark mode follows
   the OS setting, or data-theme on <html> to force one. Brass is never used for text on light
   backgrounds. All text pairs meet WCAG AA contrast. */

:root {
  --bg: #EEE9DF; --surface: #F7F4EE; --surface-2: #E6E0D4; --text: #0F1F1A; --muted: #4A4740;
  --border: #CFC9BC; --accent: #0F1F1A; --accent-text: #EEE9DF; --accent-soft: #DCE2D8;
  --brass: #D9A441; --on-brass: #0F1F1A; --logo-mark: #0F1F1A; --logo-word: #0F1F1A;
  --high: #A3271C; --high-bg: #F3DDD6; --medium: #7A4E00; --medium-bg: #F2E3C2;
  --low: #4A4740; --low-bg: #E2DCD0; --ok: #2F6B4A; --ok-bg: #DCE7DC; --focus: #0F1F1A;
  --radius: 4px; --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1F1A; --surface: #152821; --surface-2: #1C3029; --text: #EEE9DF; --muted: #CFC9BC;
    --border: #2D4139; --accent: #D9A441; --accent-text: #0F1F1A; --accent-soft: #2D3320;
    --brass: #D9A441; --on-brass: #0F1F1A; --logo-mark: #D9A441; --logo-word: #EEE9DF;
    --high: #F4A198; --high-bg: #3B1E1B; --medium: #F2BD6B; --medium-bg: #3A2B14;
    --low: #CFC9BC; --low-bg: #23352E; --ok: #86D6A8; --ok-bg: #16301F; --focus: #D9A441;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1F1A; --surface: #152821; --surface-2: #1C3029; --text: #EEE9DF; --muted: #CFC9BC;
  --border: #2D4139; --accent: #D9A441; --accent-text: #0F1F1A; --accent-soft: #2D3320;
  --brass: #D9A441; --on-brass: #0F1F1A; --logo-mark: #D9A441; --logo-word: #EEE9DF;
  --high: #F4A198; --high-bg: #3B1E1B; --medium: #F2BD6B; --medium-bg: #3A2B14;
  --low: #CFC9BC; --low-bg: #23352E; --ok: #86D6A8; --ok-bg: #16301F; --focus: #D9A441;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 15px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5;
       font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: .5rem; background: var(--surface); padding: .4rem; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .5rem; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 2rem 0 .75rem; font-weight: 650; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; font-weight: 650; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.mono { font-family: var(--mono); font-size: .87rem; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 56px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand .logo { display: block; height: 24px; width: auto; aspect-ratio: 530 / 100; }
.top nav { display: flex; gap: 1.1rem; flex: 1; }
.top nav a { color: var(--muted); text-decoration: none; padding: .3rem 0; }
.top nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }
.who { color: var(--muted); font-size: .87rem; display: flex; gap: .75rem; align-items: center; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
main.wrap { padding-top: 2rem; padding-bottom: 4rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .87rem; padding: 1.5rem 0 2.5rem; }

/* Buttons and forms */
.btn { display: inline-block; font: inherit; font-weight: 600; padding: .5rem 1rem; border-radius: var(--radius);
       border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.small { padding: .25rem .6rem; font-size: .87rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .3rem; }
input[type=text], input[type=email], input[type=number], select, textarea {
  font: inherit; width: 100%; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); }
textarea { min-height: 6rem; }
.field { margin-bottom: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.25rem; }
.notice { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface);
          padding: .75rem 1rem; border-radius: var(--radius); margin: 1rem 0; }
.notice.error { border-left-color: var(--high); }
.notice.ok { border-left-color: var(--ok); }
progress { width: 100%; height: .6rem; accent-color: var(--accent); }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600;
     background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tr.link-row:hover td { background: var(--accent-soft); }

/* Chips */
.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px;
        background: var(--low-bg); color: var(--low); white-space: nowrap; }
.chip.high { background: var(--high-bg); color: var(--high); }
.chip.medium { background: var(--medium-bg); color: var(--medium); }
.chip.low { background: var(--low-bg); color: var(--low); }
.chip.s-running, .chip.s-queued, .chip.s-in_review { background: var(--accent-soft); color: var(--accent); }
.chip.s-draft_ready { background: var(--medium-bg); color: var(--medium); }
.chip.s-released, .chip.keep { background: var(--ok-bg); color: var(--ok); }
.chip.s-failed, .chip.delete { background: var(--high-bg); color: var(--high); }
.chip.edit { background: var(--accent-soft); color: var(--accent); }

/* Landing */
.hero { padding: 2.5rem 0 1rem; max-width: 760px; }
.hero h1 { font-size: 2.1rem; }
.lead-text { font-size: 1.12rem; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { border-top: 2px solid var(--accent); padding-top: .75rem; }
.steps li::before { counter-increment: s; content: "Step " counter(s); display: block; font-size: .8rem;
                    color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* Landing: big tight Geist headlines, forest-green pills, a topographic two-paths diagram.
   Tokens are overridden on body.landing-page so the shared header and form pick them up. */
body.landing-page {
  --paper: #F6F2EA; --soft: #858073; --rust: #A8432A; --topo: #DAD3C5; --redline: #B02A1E;
  --sheet: #FBF9F5; --sheet-line: #CFC9BC; --banner-bg: #0F1F1A; --banner-text: #EEE9DF;
  font-family: Geist, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.landing-page {
  --paper: #152821; --soft: #A39E92; --rust: #F0916F; --topo: #1F332B; --redline: #FF8A7E;
  --sheet: #182B24; --sheet-line: #34483F; --banner-bg: #08130F; --banner-text: #EEE9DF; } }
:root[data-theme="dark"] body.landing-page {
  --paper: #152821; --soft: #A39E92; --rust: #F0916F; --topo: #1F332B; --redline: #FF8A7E;
  --sheet: #182B24; --sheet-line: #34483F; --banner-bg: #08130F; --banner-text: #EEE9DF; }
.landing-page .top .wrap { height: 68px; }
.landing-page .brand .logo { height: 28px; }
.landing-page .who .btn.primary { border-radius: 999px; padding: .4rem 1rem; }
.landing .wrap { max-width: 1240px; }
.banner { background: var(--banner-bg); color: var(--banner-text); text-align: center; padding: .7rem 0; font-size: 1.02rem; }
.banner a { color: inherit; text-decoration: none; font-weight: 500; }
.banner a:hover { text-decoration: underline; }
.banner .tag { display: inline-block; background: var(--brass); color: var(--on-brass); border-radius: 999px;
               font-size: .75rem; font-weight: 600; padding: .1rem .6rem; margin-right: .75rem; vertical-align: 1px; }
.landing h1, .landing h2 { font-weight: 500; letter-spacing: -.045em; }
.landing h3 { font-weight: 500; letter-spacing: -.02em; }
.soft { color: var(--soft); }
.soft-p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.hero-c { text-align: center; padding-top: 4.5rem; }
.hero-c h1 { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1.06; margin: 0 auto 1.75rem; }
.hl { background: linear-gradient(var(--brass), var(--brass)) no-repeat; background-size: 100% 100%; color: var(--on-brass); border-radius: .14em; padding: 0 .14em;
      -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead-c { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0 auto 2rem; }
.cta-row { display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 1rem; background: var(--accent); color: var(--accent-text);
        border: 0; border-radius: 999px; padding: .45rem .45rem .45rem 1.5rem; font: inherit; font-size: 1.08rem;
        font-weight: 500; text-decoration: none; cursor: pointer; }
.pill .arrow { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
               background: var(--accent-text); color: var(--accent); }
.pill .arrow { transition: transform .2s ease; }
.pill:hover .arrow { transform: translateX(3px); }
.pill.small { font-size: .85rem; padding: .35rem .9rem; }
.text-link { color: var(--text); text-underline-offset: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: left; margin: 4.5rem auto 0; max-width: 1080px; }
.stats div { border-left: 2px solid var(--text); padding-left: 1.1rem; }
.stats dt { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.stats dd { margin: .2rem 0 0; color: var(--muted); }
.months h2, .closing h2 { font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1.05; margin-top: 7rem; }
.landing h2.mid { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.08; margin: 6.5rem 0 .75rem; }
.paths-wrap { overflow-x: auto; margin: 2rem -1.5rem 1.5rem; }
.paths { display: block; width: 100%; min-width: 860px; height: auto; font-family: Geist, sans-serif; }
.paths .topo path { fill: none; stroke: var(--topo); stroke-width: 1; }
.paths .green { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.paths .red { fill: none; stroke: var(--rust); stroke-width: 2.2; stroke-dasharray: 6 5; stroke-linecap: round; }
.paths .start { fill: var(--text); }
.paths .tick { stroke: var(--soft); stroke-dasharray: 2 3; }
.paths .node { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.paths { --logo-mark: var(--accent); }
.paths .end-l { fill: var(--accent); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.paths .pill-l rect { fill: var(--bg); stroke: var(--border); }
.paths .pill-l text { fill: var(--text); font-size: 14px; }
.paths .mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; letter-spacing: .06em; fill: var(--text); }
.paths .red-l { fill: var(--rust); }
.paths .x-l { fill: var(--soft); font-size: 19px; font-weight: 600; }
.paths .x { stroke: var(--rust); stroke-width: 2.4; fill: none; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.25rem; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: 6px; padding: 2rem 2rem 2.25rem; }
.card h3 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 1.5rem; max-width: 24ch; }
.sheet { margin: 0; background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 4px; padding: 1rem 1rem 1.1rem; }
.sheet-title { display: flex; justify-content: space-between; font-weight: 600; border-bottom: 2px solid var(--text);
               padding-bottom: .4rem; margin-bottom: .4rem; }
.sheet table { border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.sheet th { background: transparent; border-bottom: 1px solid var(--sheet-line); text-transform: none; letter-spacing: 0; font-size: .82rem; }
.sheet td { border-bottom: 1px solid var(--sheet-line); padding: .45rem .75rem; }
.sheet tr.gap td { height: 2.3rem; padding: .3rem .5rem; }
.cloud { display: block; width: 100%; height: 1.8rem; overflow: visible; }
.cloud path { fill: none; stroke: var(--redline); stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.redline { font-family: "Architects Daughter", cursive; color: var(--redline); font-size: 1.1rem; transform: rotate(-2deg); margin: .6rem 0 .7rem 1rem; }
.sheet figcaption { font-size: .87rem; color: var(--muted); border-top: 1px solid var(--sheet-line); padding-top: .6rem; }
.mock { background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 4px; font-size: .92rem; }
.mock-head, .mock-foot { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; color: var(--muted); }
.mock-head strong { color: var(--text); font-weight: 600; }
.mock ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sheet-line); }
.mock li { display: grid; grid-template-columns: 5rem 1fr auto; gap: .75rem; align-items: start; padding: .8rem 1rem;
           border-bottom: 1px solid var(--sheet-line); }
.steps-r { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps-r li { border-left: 2px solid var(--text); padding-left: 1.1rem; }
.steps-r li::before { counter-increment: s; content: counter(s); display: block; font-size: 2.6rem; font-weight: 500;
                      letter-spacing: -.04em; line-height: 1.1; margin-bottom: .5rem; }
.steps-r strong { display: block; font-weight: 600; font-size: 1.1rem; margin-bottom: .3rem; }
.steps-r span { color: var(--muted); }
.faq { margin-top: 1.5rem; }
.faq details { border-bottom: 1px dashed color-mix(in srgb, var(--text) 30%, transparent); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
               font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; padding: 1.35rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
                      transform: rotate(45deg); margin: 0 .4rem .3rem 1rem; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-bottom: -.2rem; }
.faq details p { color: var(--muted); font-size: 1.08rem; max-width: 68ch; margin: -.4rem 0 1.5rem; }
.closing { background: var(--paper); margin-top: 7rem; padding: 1px 0 5.5rem; text-align: center; }
.closing h2 { margin-top: 5.5rem; margin-bottom: 1rem; }
.closing .soft-p { margin: 0 auto 2.5rem; }
.closing form { max-width: 760px; margin: 0 auto; text-align: left; }
.closing input, .closing select, .closing textarea { background: var(--bg); }
.landing-page footer { background: var(--paper); border-top: 1px solid var(--border); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.timeline li { padding: 0 0 .6rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px;
                       border-radius: 50%; background: var(--accent); }

/* Engineer review: two panes */
.review { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; height: calc(100vh - 57px); }
.review .list { border-right: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.review .list-head { padding: 1rem; border-bottom: 1px solid var(--border); }
.review .filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.review .filters select { width: auto; padding: .25rem .4rem; font-size: .87rem; }
.review .filters label { display: inline-flex; gap: .3rem; align-items: center; font-weight: 500; font-size: .87rem; margin: 0; }
.review .items { overflow-y: auto; flex: 1; margin: 0; padding: 0; list-style: none; }
.review .items button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: .6rem 1rem;
                        border-bottom: 1px solid var(--border); cursor: pointer; }
.review .items button[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.review .items button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.review .item-meta { display: flex; gap: .4rem; align-items: center; font-size: .82rem; color: var(--muted); }
.review .item-text { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review .manual { border-top: 1px solid var(--border); max-height: 30%; overflow-y: auto; padding: .75rem 1rem; font-size: .85rem; }
.review .manual h2 { font-size: .9rem; margin: 0 0 .4rem; }
.review .manual ul { margin: 0; padding-left: 1.1rem; }
.review .detail { overflow-y: auto; padding: 1.5rem 2rem 4rem; }
.review .tally { padding: .75rem 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column;
                 align-items: stretch; gap: .5rem; font-size: .87rem; }
.review .tally .btn { text-align: center; white-space: nowrap; }
.decide { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.decide .btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.decide .btn[aria-pressed="true"] kbd { background: transparent; color: inherit; border-color: currentColor; }
kbd { font-family: var(--mono); font-size: .75rem; border: 1px solid var(--border); border-bottom-width: 2px;
      border-radius: 3px; padding: 0 .3rem; background: var(--surface-2); }
.sheet-img { max-width: 100%; border: 1px solid var(--border); background: #fff; }
.rule { background: var(--surface-2); padding: .6rem .8rem; border-radius: var(--radius); }

@media (max-width: 800px) {
  .grid-2, .grid-3, .steps, .cards, .steps-r { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-c { padding-top: 2.5rem; }
  .card { padding: 1.25rem; }
  .mock li { grid-template-columns: 1fr auto; } .mock li > .chip:first-child { grid-column: 1 / -1; justify-self: start; }
  .landing-page .top .wrap { height: auto; }
  .review { grid-template-columns: 1fr; height: auto; }
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: .6rem; padding-bottom: .6rem; gap: .5rem 1.25rem; }
  .top nav { flex-wrap: wrap; gap: .25rem 1rem; order: 3; flex-basis: 100%; } .top nav a { white-space: nowrap; }
  .top .who { margin-left: auto; }
}

/* Landing reveals. Only active when app.js sets html.anim (JS on, no reduced-motion preference);
   each [data-reveal] element gets .in once it scrolls into view. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { background-size: 0% 100%; color: var(--text); } to { background-size: 100% 100%; color: var(--on-brass); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes unclip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes stamp { from { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } to { opacity: 1; transform: none; } }
.anim .hero-c > * { opacity: 0; }
.anim .hero-c.in > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.anim .hero-c.in > :nth-child(2) { animation-delay: .15s; }
.anim .hero-c.in > :nth-child(3) { animation-delay: .3s; }
.anim .hero-c.in > :nth-child(4) { animation-delay: .45s; }
.anim .hero-c .hl { background-size: 0% 100%; color: var(--text); }
.anim .hero-c.in .hl { animation: wipe .7s .55s cubic-bezier(.6, 0, .2, 1) both; }
.anim .paths .green { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim .paths-wrap.in .green { animation: draw 2.2s .2s ease-in-out forwards; }
.anim .paths .red { clip-path: inset(0 100% 0 0); }
.anim .paths-wrap.in .red { animation: unclip 3.2s .2s linear forwards; }
.anim .paths :is(.pill-l, .tick, .node, .end, .end-l, .red-l, .x, .x-l) { opacity: 0; }
.anim .paths-wrap.in :is(.pill-l, .tick, .node, .end, .end-l, .red-l, .x, .x-l) { animation: fade .45s var(--d, 0s) forwards; }
.anim .sheet .cloud path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim .sheet.in .cloud path { animation: draw 1.1s .3s ease-out forwards; }
.anim .sheet .redline { opacity: 0; }
.anim .sheet.in .redline { animation: fade .6s 1.3s forwards; }
.anim .mock li > .chip:last-child, .anim .mock-head span { opacity: 0; }
.anim .mock.in li > .chip:last-child { animation: stamp .4s cubic-bezier(.2, .7, .2, 1) forwards; }
.anim .mock.in li:nth-child(1) > .chip:last-child { animation-delay: .4s; }
.anim .mock.in li:nth-child(2) > .chip:last-child { animation-delay: .9s; }
.anim .mock.in li:nth-child(3) > .chip:last-child { animation-delay: 1.4s; }
.anim .mock.in .mock-head span { animation: fade .4s 1.9s forwards; }

/* Landing footer: deep green band with a full-width wordmark over a rust dot-grid glow. */
.landing-page footer.big-foot { --foot-bg: #0F1F1A; --foot-text: #EEE9DF; --foot-muted: #CFC9BC; --foot-line: #2D4139;
  --foot-dot: #D9A441; --logo-mark: #D9A441; --logo-word: #EEE9DF; background: var(--foot-bg); color: var(--foot-muted); border-top: 0; padding: 0; margin-top: 0; }
:root[data-theme="dark"] .landing-page footer.big-foot { --foot-bg: #08130F; --foot-line: #1F332B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .landing-page footer.big-foot { --foot-bg: #08130F; --foot-line: #1F332B; } }
.big-foot .wrap { max-width: 1240px; }
.wordmark-band { container-type: inline-size; position: relative; overflow: hidden; padding: 4.5rem 0 1rem; border-bottom: 1px solid var(--foot-line); }
.wordmark-band::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--foot-dot) 1.4px, transparent 1.8px); background-size: 6px 6px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 60%, #000 10%, rgba(0,0,0,.5) 50%, transparent 78%);
          mask-image: radial-gradient(ellipse 60% 50% at 50% 60%, #000 10%, rgba(0,0,0,.5) 50%, transparent 78%);
  opacity: .85; }
.wordmark { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 530 / 100; margin-bottom: 2.5rem; }
.foot-row { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 1.75rem 0 2.25rem; font-size: .9rem; }
.foot-row p { margin: 0; max-width: 62ch; }
.foot-row nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-row a { color: var(--foot-text); text-decoration: none; }
.foot-row a:hover { text-decoration: underline; }
.big-foot :focus-visible { outline-color: var(--foot-text); }
.anim .wordmark-band .wordmark { transform: translateY(45%); opacity: 0; }
.anim .wordmark-band.in .wordmark { animation: rise-big 1.1s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes rise-big { to { transform: none; opacity: 1; } }
@media (max-width: 800px) { .foot-row { flex-direction: column; align-items: flex-start; } .wordmark-band { padding-top: 3rem; } }

/* Sample review: one conflict per row, the problem in plain words beside the drawing. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sample-hero { padding-top: 4.5rem; }
.sample-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; max-width: 17ch; margin-bottom: 1.5rem; }
.lead-l { color: var(--muted); font-size: 1.15rem; max-width: 64ch; }
.stats.left { grid-template-columns: repeat(3, minmax(0, 15rem)); margin: 3rem 0 0; }
.problems { list-style: none; margin: 4rem 0 0; padding: 0; }
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start;
           border-top: 1px solid var(--border); padding: 3.5rem 0; }
.p-meta { display: flex; align-items: center; gap: .75rem; margin: 0; }
.p-num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent);
         color: var(--accent-text); font-weight: 600; font-size: .95rem; }
.p-tag { font-size: .85rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .1rem .7rem; }
.p-tag.real { color: var(--rust); border-color: color-mix(in srgb, var(--rust) 45%, transparent); }
.problem h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; margin: 1rem 0 1.5rem; }
.says { border: 0; background: transparent; margin-bottom: 1.5rem; }
.says th, .says td { border-bottom: 1px solid var(--border); padding: .8rem 0; vertical-align: middle; background: transparent; }
.says th { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); font-weight: 600; width: 45%; padding-right: 1rem; }
.says th span, .risers th span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.says td { text-align: right; }
.val { display: inline-block; white-space: nowrap; }
.odd .val { color: var(--rust); font-weight: 600; border: 1.5px dashed var(--rust); border-radius: 999px; padding: .1rem .7rem; }
.chips { display: inline-flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; align-items: center; }
.chips > span:not(.val) { font-size: .82rem; border: 1px solid var(--border); border-radius: 4px; padding: 0 .35rem; color: var(--muted); }
.fix { background: var(--accent-soft); border-radius: 6px; padding: .9rem 1.1rem; margin: 0; }
.fix strong { font-weight: 600; }
.p-crop, .p-compare { margin: 0; }
.p-crop img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.p-crop figcaption, .p-compare figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.p-crop figcaption a, .p-compare figcaption a { color: var(--text); }
.p-compare { background: var(--paper); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; }
.risers { border: 0; background: transparent; }
.risers th, .risers td { background: transparent; border-bottom: 1px solid var(--border); padding: .7rem .5rem; }
.risers thead th { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); font-weight: 600; }
.risers tbody th { font-weight: 600; }
.risers td { font-size: 1.6rem; letter-spacing: -.02em; text-align: center; }
.anim .problem { opacity: 0; transform: translateY(18px); }
.anim .problem.in { animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
@media (max-width: 800px) {
  .problem { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 0; }
  .stats.left { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .says th { width: auto; }
}
