/* pretzelhands apps: one stylesheet for every page. Tokens are documented in ~/.claude/skills/design/SKILL.md. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ground: #f8fbf9;
  --mist: #eef4f0;
  --ink: #1b2a22;
  --muted: #55665c;
  --line: #d3ded7;
  --green: #1f6b47;
  --green-dark: #154a31;
  --leaf: #9fd1b2;
  --marker: #f7e37c;

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 22px;
  --r-pill: 999px;

  /* depth: layered, tinted toward the brand green, light from above */
  --shadow-1: 0 1px 2px rgb(21 74 49 / .06), 0 6px 16px -6px rgb(21 74 49 / .14);
  --shadow-2: 0 2px 4px rgb(21 74 49 / .05), 0 14px 28px -10px rgb(21 74 49 / .18), 0 40px 80px -28px rgb(21 74 49 / .34);
  /* atmosphere: soft washes in brand hues (leaf top right, marker bottom left) */
  --wash-leaf: rgb(159 209 178 / .5);
  --wash-marker: rgb(247 227 124 / .3);
  --ease-out: cubic-bezier(.23, 1, .32, 1);

  --gut: clamp(1rem, 4vw, 2.5rem);
  --wrap: 72rem;
  --measure: 40rem;
  --section: clamp(3rem, 7vw, 5.5rem);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

body::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 60rem; pointer-events: none;
  background:
    radial-gradient(46rem 34rem at 92% -4%, var(--wash-leaf), transparent 70%),
    radial-gradient(38rem 24rem at -6% 48%, var(--wash-marker), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
main { overflow-x: clip; }

img, svg { max-width: 100%; }
img { height: auto; }

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

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.15rem + 4.4vw, 4.4rem); line-height: 1.03; font-weight: 750; font-stretch: 118%; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.35rem); line-height: 1.1; font-weight: 750; font-stretch: 112%; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; font-stretch: 104%; }
p, ul, ol, dl { margin: 0; }
p + p { margin-top: .9em; }
strong { font-weight: 600; }

code {
  font-family: var(--mono); font-size: .9em;
  background: var(--mist); border-radius: var(--r-s); padding: .1em .35em;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.measure { max-width: var(--measure); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: var(--r-s); z-index: 10; }
.skip:focus { top: 1rem; color: #fff; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid rgb(211 222 215 / .7); }
.site-head__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 34px; }
.brand__name { font-size: 1.2rem; font-weight: 750; font-stretch: 114%; letter-spacing: -.01em; }
.brand__name span { font-weight: 400; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: .1rem .25rem; margin: 0 -.6rem; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; border-radius: var(--r-s);
}
.nav a:hover { color: var(--green); background: var(--mist); }
.nav a[aria-current] { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }

/* ---------- page parts ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.hero h1 { max-width: 22ch; }
.lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.5; max-width: 38rem; margin-top: 1.25rem; color: var(--ink); }
.hero .actions { margin-top: 2rem; }
.hero--app { padding-top: clamp(2rem, 4.5vw, 3.5rem); }
.hero--app h1 { max-width: 21ch; }
.hero--app .lede { max-width: 46rem; }
.hero--app .actions { margin-top: 1.6rem; }

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section__head { max-width: var(--measure); margin-bottom: 2rem; }
.section__head p { margin-top: .9rem; color: var(--muted); }

.app-id {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .65rem;
  margin-bottom: 1.4rem; padding: .3rem 1.05rem .3rem .3rem; border: 1px solid var(--line); border-radius: var(--r-l);
  background: rgb(255 255 255 / .8); box-shadow: var(--shadow-1);
  font-weight: 600; font-stretch: 106%; font-size: .95rem; line-height: 1.25; color: var(--ink); text-decoration: none;
}
.app-id img { width: 36px; height: 36px; flex: none; }
a.app-id:hover { color: var(--green-dark); border-color: var(--green); }
/* two app icons, overlapping, for studio-level pills */
.app-id--duo img { border-radius: 9px; box-shadow: 0 0 0 2px #fff; }
.app-id--duo img + img { margin-left: -1.15rem; }

/* two-tone headline: the second clause in the brand green */
.tone { display: block; color: var(--green); }

/* check-marked facts under the actions */
.facts { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; list-style: none; padding: 0; margin-top: 1.6rem; }
.facts li { display: inline-flex; align-items: center; gap: .55rem; }
.facts li::before {
  content: ""; flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.4 7 10.8l4.6-5.2'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* hero with the product beside it: text left, floating Confluence screenshots right */
.hero--split { display: grid; grid-template-columns: minmax(0, 33rem) minmax(0, 1fr); gap: 2.5rem 3rem; align-items: center; }
.hero--split h1 { font-size: clamp(2.3rem, 1rem + 3vw, 3.125rem); max-width: none; }
.hero--split .lede { max-width: 34rem; }
/* on wide screens the stage runs into the right margin, up to 5rem */
.hero--split .stage { width: calc(100% + clamp(0px, (100vw - 72rem) / 2, 5rem)); }

/* the stage: real screenshots as paper sheets, slightly turned, overlapping, with one dark chip */
.stage { position: relative; margin: 0 0 1rem; aspect-ratio: 1 / .8; }
.shot { position: absolute; margin: 0; overflow: hidden; background: var(--paper); border: 1px solid rgb(27 42 34 / .1); border-radius: var(--r-m); box-shadow: var(--shadow-2); }
.shot img { display: block; width: 100%; height: auto; }
.shot picture { display: block; }
.shot--back { top: 5%; right: 2%; width: 62%; transform: rotate(2.25deg); }
.shot--front { left: 0; bottom: 5.5%; width: 84%; transform: rotate(-1.5deg); }
/* home: one sheet per app, each in a stack with a tag naming the app above its top edge */
.stack { position: absolute; }
.stack .shot { position: relative; }
.stage--home { aspect-ratio: 1 / .92; }
.stage--home .shot--back { top: 4%; right: 0; width: 72%; }
.stage--home .shot--front { bottom: 5%; width: 76%; }
.stage--home .shot { padding-top: 1.35rem; }
.shot-tag {
  position: absolute; z-index: 1; top: -1.05rem; left: 1rem; display: inline-flex; align-items: center; gap: .45rem;
  margin: 0; padding: .28rem .8rem .28rem .3rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgb(255 255 255 / .95); box-shadow: var(--shadow-1);
  font-size: .85rem; font-weight: 600; font-stretch: 104%; line-height: 1.2; color: var(--ink); white-space: nowrap;
}
.shot-tag img { width: 22px; height: 22px; flex: none; border-radius: 6px; }
.stage--app { aspect-ratio: 1 / .8; }
.stage--app .shot--front { width: 86%; bottom: 3%; }
.chip-dark {
  position: absolute; right: 3%; bottom: -3%; display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.1rem; border-radius: var(--r-pill); background: #123f2a; color: #fff;
  font-size: .95rem; font-weight: 600; font-stretch: 104%; line-height: 1.2; white-space: nowrap;
  box-shadow: var(--shadow-2);
}
.chip-dark img { width: 26px; height: 26px; flex: none; }
.chip-dark .key { background: rgb(255 255 255 / .14); color: #fff; }
.chip-dark .key--new { background: var(--marker); color: var(--ink); }
.chip-dark svg { width: 2rem; height: .8rem; color: var(--leaf); flex: none; }
.chip-dark .sep { color: var(--leaf); }

@media (prefers-reduced-motion: no-preference) {
  .stage .shot--back { animation: settle-back .9s var(--ease-out) .1s both; }
  .stage .shot--front { animation: settle-front .9s var(--ease-out) .2s both; }
  .stage .chip-dark { animation: chip-in .5s var(--ease-out) .65s both; }
}
@keyframes settle-back { from { opacity: 0; transform: translateY(16px) rotate(4deg); } }
@keyframes settle-front { from { opacity: 0; transform: translateY(24px) rotate(-4deg); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }

/* a framed screenshot inside a section, with an annotation ring that is clearly ours */
.shot-fig { margin: 2.5rem 0 0; }
.shot-fig .shot { position: relative; transform: none; }
.shot-fig figcaption { margin-top: 1rem; max-width: var(--measure); font-size: .95rem; color: var(--muted); }
.ring { position: absolute; border: 2.5px solid var(--green); border-radius: 8px; pointer-events: none; }
.ring--narrow { display: none; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--r-m);
  font: inherit; font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 8px 18px -8px rgb(21 74 49 / .6); }
.btn--primary:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn { transition: transform .16s var(--ease-out), background-color .16s ease, box-shadow .16s ease; }
.btn--primary:active, .btn--quiet:active { transform: scale(.97); }
@media (hover: hover) { .btn--primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 12px 22px -8px rgb(21 74 49 / .6); } }
.btn--quiet { color: var(--green); background: rgb(255 255 255 / .6); box-shadow: inset 0 0 0 2px var(--green); }
.btn--quiet:hover { background: var(--mist); color: var(--green-dark); }
.btn--soon { color: var(--green-dark); background: var(--paper); border: 2px dashed #8fb9a1; cursor: default; }

/* home: app panel */
.app-panel { background: radial-gradient(40rem 26rem at 100% 0%, var(--wash-leaf), transparent 70%), var(--mist); border-radius: var(--r-l); padding: clamp(1.25rem, 4vw, 3rem); }
.app-panel__text { max-width: 46rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.app-panel__text h2 { margin-bottom: 1rem; }
.app-panel__text .actions { margin-top: 1.75rem; }

.later { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); margin-top: 1.75rem; }
.later__item { border: 2px dashed var(--line); border-radius: var(--r-m); padding: 1.25rem 1.4rem; background: rgb(255 255 255 / .55); }
.later__item p { color: var(--muted); margin-top: .35rem; }
.later-note { margin-top: 1rem; color: var(--muted); }

.strip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.strip p { max-width: 40rem; }

/* ---------- the copy diagram (signature element) ---------- */
.dup { margin: 0; }
.dup__grid { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr); align-items: stretch; }
.space { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.2rem 1rem; font-size: .95rem; line-height: 1.35; box-shadow: var(--shadow-1); }
.space--copy { border: 1.5px solid var(--green); box-shadow: 9px -9px 0 var(--leaf), var(--shadow-2); }
.space__head { display: flex; align-items: center; gap: .6rem; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); font-weight: 600; font-stretch: 106%; }
.space--copy .space__head { border-color: #c6dfcf; }
.key { font-size: .85rem; font-weight: 750; letter-spacing: .06em; padding: .2rem .45rem; border-radius: var(--r-s); background: var(--mist); color: var(--green-dark); }
.space--copy .key { background: var(--green); color: #fff; }

.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: .55rem; padding-left: .95rem; border-left: 1.5px solid #c3d4c9; }
.tree li { position: relative; padding-block: .22rem; }
.tree ul > li::before { content: ""; position: absolute; left: -.95rem; top: .95em; width: .7rem; border-top: 1.5px solid #c3d4c9; }
.pg { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pg .i { width: 15px; height: 15px; flex: none; color: var(--green); }
.pg .a { width: 14px; height: 14px; color: var(--muted); }
.ref { display: block; position: relative; margin: .25rem 0 .1rem 1.35rem; padding-left: 1.1rem; font-size: .85rem; color: var(--muted); }
.ref .i { position: absolute; left: 0; top: .2em; width: 13px; height: 13px; }
.ref .k { font-weight: 750; color: var(--ink); padding: 0 .2em; border-radius: var(--r-s); }
.space--copy .ref .k { background: var(--marker); }
.nw { white-space: nowrap; }
.blog { display: flex; align-items: center; gap: .4rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.blog .i { width: 15px; height: 15px; color: var(--green); flex: none; }

.dup__arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; }
.dup__arrow img { width: 40px; height: 40px; }
.dup__arrow svg { width: 3.6rem; height: 1.2rem; color: var(--green); }

.dup figcaption { margin-top: 1rem; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.dup figcaption span { display: inline-flex; align-items: center; gap: .35rem; }
.dup figcaption span:first-child { flex-basis: 100%; }
.dup figcaption .i { width: 14px; height: 14px; }
.swatch { display: inline-block; width: 1.4em; height: .95em; border-radius: var(--r-s); background: var(--marker); }

@media (prefers-reduced-motion: no-preference) {
  .dup--play .space--copy { animation: copy-in .6s cubic-bezier(.2, .7, .2, 1) .25s both; }
  .dup--play .space--copy .ref .k { background-image: linear-gradient(var(--marker), var(--marker)); background-color: transparent; background-repeat: no-repeat; background-size: 0 100%; animation: mark 0.35s ease-out .9s forwards; }
}
@keyframes copy-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes mark { to { background-size: 100% 100%; } }

/* ---------- Test Cycles ---------- */
/* hero stage: coverage report (back) and a test run (front); phones show the coverage sheet only */
.stage--tc { aspect-ratio: 1 / .78; }
.stage--tc .shot--back { width: 64%; top: 4%; }
.stage--tc .shot--front { width: 86%; bottom: 4%; }
.stage--tc .chip-dark { bottom: -4%; }

/* the switch diagram: rows of a Zephyr export landing on the Test issue that already exists (same grid as .dup) */
.switch .space__head .file { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: var(--r-s); background: var(--mist); color: var(--green); }
.switch .space__head .file svg { width: 16px; height: 16px; }
.switch .space--copy .space__head { align-items: flex-start; }
.switch .space--copy .space__head .key { margin-top: .05rem; }
.xls { width: 100%; border-collapse: collapse; font-size: .85rem; line-height: 1.35; }
.xls th { padding: .35rem .5rem; border: 1px solid var(--line); background: var(--mist); text-align: left; font-weight: 600; color: var(--muted); }
.xls td { padding: .45rem .5rem; border: 1px solid var(--line); vertical-align: top; }
.xls td:first-child, .xls th:first-child { width: 1%; white-space: nowrap; }
.switch .key { white-space: nowrap; }
.xls .key { font-size: .75rem; padding: .15rem .35rem; }
.tsteps { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.tsteps li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .65rem; align-items: start; }
.tsteps__n { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: var(--r-s); background: var(--marker); font-size: .85rem; font-weight: 750; color: var(--ink); }
.tsteps__exp { display: block; margin-top: .15rem; font-size: .85rem; color: var(--muted); }
.dup__label { font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--green-dark); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .dup--play .tsteps__n { background-image: linear-gradient(var(--marker), var(--marker)); background-color: var(--mist); background-repeat: no-repeat; background-size: 0 100%; animation: mark .35s ease-out .9s forwards; }
}

/* a feature: heading and copy left, a framed screenshot right */
.two-col--shot { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); align-items: center; }
.two-col--shot .section__head p { color: var(--ink); }
.two-col--shot .shot-fig { margin: 0; }
.shot-fig--fit { max-width: 34rem; }

/* numbered list inside a section (the Zephyr switch), and a small heading above a spec list */
.kinds--num { margin-top: 0; padding-left: 1.4rem; }
.kinds--num li { padding-left: .3rem; }
.kinds--num li + li { margin-top: .6rem; }
.kinds--num li::marker { font-weight: 750; }
.kinds--after { margin-top: 1.75rem; }
.spec-title { margin: 2.25rem 0 .9rem; }
.kinds-intro { margin-top: 1.5rem; }
.section--apps { padding-top: clamp(1.25rem, 3vw, 2rem); }

/* ---------- spec lists (what comes across / what stays behind / options) ---------- */
.spec { border-top: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: minmax(10rem, 17rem) minmax(0, 1fr); gap: .25rem 2rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; font-stretch: 104%; }
.spec dd { margin: 0; color: var(--muted); }
.spec dd p + p { margin-top: .4rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.two-col > .section__head { margin-bottom: 0; }

.kinds { margin-top: 1.25rem; padding-left: 1.2rem; }
.kinds li + li { margin-top: .35rem; }
.kinds li::marker { color: var(--green); }
.kinds a { display: inline-block; padding-block: .3rem; }

/* how it works: a real sequence, so numbered; each number is a small green tile with the leaf back sheet */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li { position: relative; padding-top: 4.25rem; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; top: .4rem; left: 0; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--r-m); background: var(--green); color: #fff;
  font-size: 1.2rem; font-weight: 750; font-stretch: 112%; box-shadow: 6px -6px 0 var(--leaf);
}
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--muted); }
.crumbs { margin-top: .6rem; line-height: 2.4; }
.crumb { display: inline-block; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper); font-size: .95rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.crumb--on { border-color: var(--green); color: var(--green-dark); background: var(--mist); }
.crumbs .sep { margin-inline: .3rem; color: var(--muted); font-weight: 600; }

/* UI path */
.path { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.6rem; list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.path li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); padding: .3rem .65rem; font-weight: 600; font-size: .95rem; }
.path li { position: relative; }
.path li:not(:last-child)::after { content: "\203A"; position: absolute; right: -1.1rem; top: 50%; transform: translateY(-52%); color: var(--muted); font-weight: 600; font-size: 1.2rem; }
.path li:last-child { border-color: var(--green); color: var(--green-dark); background: var(--mist); }

/* dark band */
.band-dark { background: radial-gradient(52rem 30rem at 92% 0%, rgb(159 209 178 / .2), transparent 70%), radial-gradient(40rem 26rem at 0% 100%, rgb(247 227 124 / .08), transparent 70%), var(--green-dark); color: #e7f2eb; }
.band-dark h2 { color: #fff; }
.band-dark .wrap { padding-block: var(--section); }
.band-dark p { max-width: var(--measure); }
.band-dark .band__text p:first-of-type { margin-top: 1.1rem; }
.band-dark .band__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.band-dark .band__grid img { width: 72px; height: 72px; }

.band-mist { background: radial-gradient(44rem 26rem at 96% 0%, var(--wash-leaf), transparent 70%), var(--mist); }
.band-mist > .wrap { padding-block: clamp(1.5rem, 4vw, 3rem); }

/* use cases */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem 2rem; }
.uses > div { border-top: 3px solid var(--green); padding-top: 1rem; }
.uses p { margin-top: .5rem; color: var(--muted); }

/* closing band */
.closing { background: radial-gradient(34rem 22rem at 100% 0%, var(--wash-leaf), transparent 70%), radial-gradient(26rem 18rem at 0% 100%, var(--wash-marker), transparent 70%), var(--mist); border-radius: var(--r-l); padding: clamp(1.5rem, 5vw, 3.25rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.closing h2 { max-width: 22ch; }

/* ---------- docs ---------- */
.doc { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); gap: 3rem; padding-block: 2.5rem var(--section); }
.toc { position: sticky; top: 1.5rem; align-self: start; font-size: .95rem; }
.toc summary { font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.toc ol { list-style: none; padding: 0; margin: .5rem 0 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .32rem 0 .32rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--green); border-left-color: var(--green); }
.prose { max-width: 44rem; }
.prose > h2 { margin-top: 3.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > h3 { margin-top: 2rem; }
.prose > p, .prose > ul, .prose > ol, .prose > dl, .prose > .path, .prose > .callout { margin-top: 1rem; }
.prose > h2 + p, .prose > h3 + p { margin-top: .75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.prose li::marker { color: var(--green); }
.prose .spec { margin-top: 1.25rem; }
.prose .spec__row { grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); }
.prose .path { padding-left: 0; }
.prose .path li { margin-top: 0; }
.prose > pre { margin-top: 1rem; background: var(--mist); border-radius: var(--r-m); padding: 1rem 1.25rem; overflow-x: auto; font-family: var(--mono); font-size: .85rem; line-height: 1.55; }
.prose > pre code { background: none; padding: 0; font-size: inherit; }
.prose > h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.3rem); }
.callout { background: var(--mist); border-left: 4px solid var(--green); border-radius: 0 var(--r-m) var(--r-m) 0; padding: 1rem 1.25rem; }
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding-block: .8rem; font-weight: 600; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+" / ""; flex: none; color: var(--green); font-size: 1.35rem; line-height: 1; }
.qa[open] summary::after { content: "\2212" / ""; }
.qa summary:hover { color: var(--green); }
.qa summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.qa p { margin: 0 0 1.1rem; max-width: var(--measure); }
.faq dt { font-weight: 600; margin-top: 1.4rem; }
.faq dd { margin: .35rem 0 0; }

/* support */
.mailbox { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.75rem; padding: 1rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper); box-shadow: var(--shadow-1); font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); font-weight: 600; font-stretch: 108%; text-decoration: none; overflow-wrap: anywhere; }
.mailbox:hover { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), var(--shadow-1); }
.checklist { list-style: none; padding: 0; margin-top: 1rem; }
.checklist li { position: relative; padding: .7rem 0 .7rem 2rem; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .9rem; height: .9rem; border: 2px solid var(--green); border-radius: 4px; }

/* legal */
.legal { padding-block: 2.5rem var(--section); }
.legal h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); }
.legal .prose > h2 { font-size: 1.4rem; margin-top: 2.5rem; padding-top: 1.5rem; }
.legal .prose > h2:first-of-type { border-top: 1px solid var(--line); }
.legal .prose > h1 + p { margin-top: 1rem; }
.legal address { font-style: normal; }
.draft-note { margin: 0 0 1.75rem; padding: 1rem 1.25rem; border: 2px dashed #d6b93b; background: #fffbe6; border-radius: var(--r-m); font-size: .95rem; }
.review { margin-top: .75rem; padding: .6rem .9rem; background: #fffbe6; border-left: 4px solid #d6b93b; font-size: .85rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 0; font-size: .95rem; }
.site-foot__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand legal" "apps apps" "tm tm"; gap: 1rem 2rem; padding-block: 2rem 2.5rem; align-items: start; }
.site-foot__brand { grid-area: brand; }
.site-foot__legal { grid-area: legal; }
.site-foot__apps { grid-area: apps; }
.site-foot__apps .foot-nav { margin: -.5rem -.6rem -.25rem; }
.site-foot__brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.site-foot__brand img { width: 36px; height: 26px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 .25rem; list-style: none; margin: -.6rem -.6rem 0; padding: 0; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem; color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--green); text-decoration: underline; }
.site-foot__tm { grid-area: tm; color: var(--muted); font-size: .85rem; }

/* ---------- narrow screens ---------- */
@media (max-width: 64rem) {
  .hero--split { grid-template-columns: minmax(0, 1fr); }
  .hero--split .stage { width: 100%; max-width: 38rem; margin-top: .5rem; }
}
@media (max-width: 52rem) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.5rem; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--r-m); padding: .25rem 1rem .9rem; }
  .toc ol { display: flex; flex-wrap: wrap; gap: .4rem; border-left: 0; }
  .toc a { margin-left: 0; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--r-s); font-size: .95rem; background: var(--paper); }
  .toc a:hover { border-color: var(--green); }
  .site-foot__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "apps" "legal" "tm"; }
  .foot-nav { margin-top: 0; }
}
@media (max-width: 44rem) {
  h1 { font-stretch: 108%; letter-spacing: -.02em; }
  h1 .nw { white-space: normal; }
  h2 { font-stretch: 106%; }
  .dup__grid { grid-template-columns: minmax(0, 1fr); }
  .dup__arrow { flex-direction: row; padding-block: .6rem; }
  .dup__arrow svg { transform: rotate(90deg); width: 2.4rem; }
  .spec__row, .prose .spec__row { grid-template-columns: minmax(0, 1fr); }
  .band-dark .band__grid { grid-template-columns: minmax(0, 1fr); }
  .band-dark .band__grid img { width: 56px; height: 56px; }
  .btn { width: 100%; }
  .chip-dark { font-size: .85rem; padding: .45rem .9rem; right: 2%; }
  .stage { aspect-ratio: auto; margin-bottom: 2.5rem; }
  .shot--back { display: none; }
  .stage--tc .shot--back { display: block; position: relative; inset: auto; width: 100%; transform: rotate(-1deg); }
  .stage--tc .shot--front { display: none; }
  .stage--tc { margin-bottom: 3.25rem; }
  .stage--tc .chip-dark { bottom: -2.75rem; }
  .shot--front, .stage--app .shot--front { position: relative; inset: auto; width: 100%; transform: rotate(-1deg); }
  .stage--home .shot--back { display: block; position: relative; inset: auto; width: 100%; margin: 1.25rem 0 2.25rem; transform: rotate(1deg); }
  .stage--home .shot--front { width: 100%; }
  .chip-dark { bottom: -2rem; }
  .btn--soon { text-wrap: balance; font-size: .95rem; }
  .chip-dark img { width: 22px; height: 22px; }
  .shot-fig { margin-top: 1.75rem; }
  .ring--wide { display: none; }
  .ring--narrow { display: block; }
  .facts { gap: .5rem 1.25rem; }
  .actions { gap: .6rem; }
  .site-head__in { padding-block: .5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.closing__sub { margin-top: .6rem; color: var(--muted); font-size: 1.2rem; }
