/* Nunito, the typeface of the app (SIL Open Font License, fonts/OFL.txt). Served from this
   site itself: no request goes to a font service. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/nunito-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;
}

/* Zettelwichtel website. No external resources, no scripts, no cookies. */
/* Two looks, light and dark, each complete: page, hero and the drawn phones change together
   (E-007). The device's setting decides until the visitor picks one with the switch in the header;
   the choice is `data-theme` on the root element. The `--p-…` colours are those of the app. */
:root {
  --green: #1c6b40; --green-strong: #14522f; --green-soft: #e7f2ec; --red: #dc4f3c; --ink: #17251d; --muted: #55655c;
  --paper: #fbfaf6; --card: #ffffff; --line: #dfe5df; --hero: #d9ecdf; --on-green: #ffffff; --outline: #a3c9b3;
  --shadow: 0 1px 2px rgba(23, 37, 29, 0.06), 0 12px 32px rgba(23, 37, 29, 0.08);
  --p-screen: #f2f2f7; --p-cell: #ffffff; --p-sep: #e5e5ea; --p-ink: #17251d; --p-green: #1f7a45; --p-chip: #e2f1e7;
  --p-faint: #9aa39d; --p-on-green: #ffffff;
  --radius: 20px;
  --width: 68rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green: #6fcf97; --green-strong: #8fe0ae; --green-soft: #1b2c23; --red: #f08a7a; --ink: #eef3ef; --muted: #a8b6ad;
    --paper: #111814; --card: #19221d; --line: #2a3830; --hero: #0b110e; --on-green: #0f1a14; --outline: #6fcf97;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --p-screen: #000; --p-cell: #1c1c1e; --p-sep: #2c2c2e; --p-ink: #f1f5f2; --p-green: #4cc27a; --p-chip: rgba(76, 194, 122, 0.16);
    --p-faint: #6b7570; --p-on-green: #0f1a14;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --green: #6fcf97; --green-strong: #8fe0ae; --green-soft: #1b2c23; --red: #f08a7a; --ink: #eef3ef; --muted: #a8b6ad;
    --paper: #111814; --card: #19221d; --line: #2a3830; --hero: #0b110e; --on-green: #0f1a14; --outline: #6fcf97;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --p-screen: #000; --p-cell: #1c1c1e; --p-sep: #2c2c2e; --p-ink: #f1f5f2; --p-green: #4cc27a; --p-chip: rgba(76, 194, 122, 0.16);
    --p-faint: #6b7570; --p-on-green: #0f1a14;
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-strong); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
.feature h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 1.25rem; }
.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--card); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: 10px; box-shadow: var(--shadow); z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero .wrap { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 54rem) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow { color: var(--green); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.8rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 34rem; }
.cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; align-items: center; }
.button {
  display: inline-block; background: var(--green); color: var(--on-green); text-decoration: none; font-weight: 600;
  padding: 0.8rem 1.3rem; border-radius: 999px;
}
.button:hover { background: var(--green-strong); color: var(--on-green); }
/* Filled, with an outline of its own colour (`--outline`): soft in the light look, where the full
   green was too harsh, and the full green in the dark one. */
.button.quiet { background: var(--card); color: var(--green); box-shadow: inset 0 0 0 2px var(--outline); }
.button.quiet:hover { background: var(--green-soft); color: var(--green-strong); }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 1rem; }
.phone {
  width: min(46%, 15rem); border-radius: 2.2rem; overflow: hidden; background: var(--card);
  box-shadow: var(--shadow); border: 6px solid var(--card); outline: 1px solid var(--line);
}
.phone:nth-child(2) { margin-top: 2.5rem; }

/* Sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.tint { background: var(--green-soft); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { display: flex; align-items: center; gap: 0.6rem; }
.card p { color: var(--muted); margin: 0; }
.glyph { width: 2.2rem; height: 2.2rem; border-radius: 0.7rem; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.glyph svg { width: 1.25rem; height: 1.25rem; }

/* Feature rows with a screenshot */
.feature { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; margin-bottom: 3.5rem; }
.feature:last-child { margin-bottom: 0; }
@media (min-width: 50rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature.flip .feature-shot { order: 2; }
}
.feature-shot { display: flex; justify-content: center; }
.feature-shot .phone { width: min(70%, 17rem); margin: 0; }
.feature ul { padding-left: 1.2rem; color: var(--muted); }
.feature li { margin-bottom: 0.4rem; }

/* Steps, FAQ, documents */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green); color: var(--on-green); font-weight: 700; margin-bottom: 0.8rem; }
.steps p { color: var(--muted); margin: 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.2rem 1.2rem; margin-bottom: 0.7rem; }
summary { cursor: pointer; font-weight: 600; padding: 0.9rem 0; }
details p, details ol, details ul { color: var(--muted); }
details[open] { padding-bottom: 0.6rem; }
.doc { max-width: 46rem; padding: clamp(1.5rem, 5vw, 3.5rem) 1.25rem 4rem; margin: 0 auto; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.doc h3 { margin-top: 1.5rem; }
.doc li { margin-bottom: 0.35rem; }
.doc address { font-style: normal; }
.callout { background: var(--green-soft); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.draft { border: 2px dashed var(--red); border-radius: 14px; padding: 0.9rem 1.2rem; margin: 0 0 2rem; color: var(--ink); }
.stand { color: var(--muted); font-size: 0.95rem; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--line); }
th { font-size: 0.95rem; color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* The hero has its own background and a rounded lower edge. */
.hero { background: var(--hero); border-radius: 0 0 2.4rem 2.4rem; }

/* The switch between the light and the dark look; the script shows it (tools/site.ts). */
.theme-toggle { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--card); border: 1.5px solid var(--outline); border-radius: 999px; color: var(--green); font: inherit; font-size: 0.95rem; font-weight: 600; padding: 0.2rem 0.8rem; cursor: pointer; }
.theme-toggle:hover { color: var(--green-strong); background: var(--green-soft); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.site-nav ul { align-items: center; }

/* The demo: a phone drawn in HTML that plays a short story (tools/site.ts). */
.demo { display: grid; justify-items: center; gap: 1rem; }
.demo-phone {
  width: min(100%, 19rem); aspect-ratio: 9 / 16.5; border-radius: 2.6rem; background: #000; padding: 0.55rem;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, 0.3); animation: demo-float 7s ease-in-out infinite;
}
.demo-screen { height: 100%; border-radius: 2.1rem; background: var(--p-screen); color: var(--p-ink); padding: 1.1rem 0.8rem 0; overflow: hidden; display: flex; flex-direction: column; font-size: 0.95rem; }
.demo-bar { display: flex; align-items: center; justify-content: center; position: relative; min-height: 2.2rem; }
.demo-title { font-weight: 700; }
.demo-pill { position: absolute; right: 0; background: var(--p-cell); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.demo-gnome { width: 5.6rem; margin: 0.6rem auto -1.02rem; position: relative; z-index: 1; display: block; }
.demo-field { background: var(--p-cell); border-radius: 1.3rem; padding: 0.75rem 0.8rem; display: flex; align-items: center; gap: 0.6rem; min-height: 3rem; }
.demo-plus { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--p-green); flex: none; position: relative; }
.demo-plus::before, .demo-plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--p-on-green); border-radius: 1px; }
.demo-plus::before { width: 0.7rem; height: 2px; }
.demo-plus::after { width: 2px; height: 0.7rem; }
.demo-input { font-size: 1.05rem; white-space: nowrap; overflow: hidden; }
.demo-input:empty::before { content: attr(data-placeholder); color: var(--p-faint); }
.demo-input.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; background: var(--p-green); vertical-align: -0.18em; animation: demo-caret 1s steps(1) infinite; }
.demo-head { color: var(--p-green); font-weight: 700; font-size: 0.85rem; padding: 1rem 0.5rem 0.45rem; }
.demo-list { list-style: none; margin: 0; padding: 0 0.8rem; background: var(--p-cell); border-radius: 1.3rem; }
.demo-row { display: flex; align-items: center; gap: 0.7rem; min-height: 2.9rem; border-bottom: 1px solid var(--p-sep); max-height: 3rem; overflow: hidden; transition: max-height 0.45s ease, opacity 0.45s ease, min-height 0.45s ease, border-color 0.45s ease; }
.demo-row:last-child { border-bottom: 0; }
.demo-row.is-hidden { max-height: 0; min-height: 0; opacity: 0; border-color: transparent; }
.demo-check { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid var(--p-green); flex: none; position: relative; transition: background 0.25s ease, border-color 0.25s ease; }
.demo-check::after { content: ""; position: absolute; left: 0.37rem; top: 0.16rem; width: 0.3rem; height: 0.6rem; border: solid var(--p-cell); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.25s ease; }
.demo-name { flex: 1; font-weight: 500; transition: color 0.3s ease; }
.demo-chip { background: var(--p-chip); color: var(--p-green); font-weight: 600; font-size: 0.85rem; padding: 0.15rem 0.6rem; border-radius: 999px; transition: opacity 0.3s ease; }
.demo-row.is-checked .demo-check { background: #8e8e93; border-color: #8e8e93; }
.demo-row.is-checked .demo-check::after { transform: rotate(45deg) scale(1); }
.demo-row.is-checked .demo-name { color: #8e8e93; text-decoration: line-through; }
.demo-row.is-checked .demo-chip { opacity: 0.45; }
.demo-caption { color: var(--muted); font-weight: 600; margin: 0; min-height: 1.6em; text-align: center; }
@keyframes demo-caret { 50% { opacity: 0; } }
@keyframes demo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Motion elsewhere: sections fade in, cards and phones answer to the pointer. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.card, .steps li { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover, .steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-shot .phone { transition: transform 0.5s ease; background: #000; border-color: #000; }
.feature:hover .feature-shot .phone { transform: translateY(-6px) rotate(-1.2deg); }
.feature.flip:hover .feature-shot .phone { transform: translateY(-6px) rotate(1.2deg); }
.glyph { transition: transform 0.25s ease; }
.card:hover .glyph { transform: scale(1.12) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) {
  .demo-phone { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .steps li, .feature-shot .phone, .glyph, .demo-row, .demo-check, .demo-check::after { transition: none; }
  .card:hover, .steps li:hover, .feature:hover .feature-shot .phone, .feature.flip:hover .feature-shot .phone, .card:hover .glyph { transform: none; }
}

/* The smaller phones next to the feature texts; each plays one story (tools/site.ts). */
.scene { width: min(100%, 16.5rem); }
.scene .demo-list { padding: 0 0.8rem; color: var(--p-ink); }
.scene .demo-row { margin: 0; }
.scene .demo-phone { width: 100%; animation: none; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.scene .demo-screen { position: relative; font-size: 0.9rem; }
.scene .demo-phone { aspect-ratio: 9 / 15; }
.scene .demo-bar:has(.demo-pill) { justify-content: flex-start; padding-left: 0.5rem; }
.scene .demo-caption { color: var(--muted); }
.demo-grip { width: 1.1rem; height: 0.6rem; flex: none; border-top: 2px solid var(--p-faint); border-bottom: 2px solid var(--p-faint); position: relative; }
.demo-grip::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); border-top: 2px solid var(--p-faint); }
.demo-list { transition: opacity 0.35s ease; }
.demo-list.is-faded { opacity: 0; }
.scene .demo-row { overflow: visible; transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease; }
.demo-row.is-lifted { position: relative; z-index: 2; background: var(--p-sep); border-color: transparent; border-radius: 0.8rem; box-shadow: 0 0 0 0.3rem var(--p-sep), 0 12px 24px rgba(0, 0, 0, 0.3); }
.demo-row.is-tapped, .scene-chip.is-tapped, .scene-button.is-tapped { opacity: 0.55; }
.scene-hint { color: #8e8e93; font-size: 0.8rem; line-height: 1.4; margin: 0.7rem 0.5rem 0; transition: opacity 0.4s ease; }
.scene-hint.is-hidden { opacity: 0; }

.scene-finder { position: relative; flex: 1; margin: 0.6rem 0 0.8rem; border-radius: 1.3rem; overflow: hidden; background: radial-gradient(ellipse at 30% 20%, rgba(255, 244, 220, 0.16), transparent 60%), linear-gradient(#4b524c 0, #3a403b 56%, #2b241c 56%, #8a6f55 57.5%, #6f573f 100%); }
.scene-finder::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 45%, rgba(0, 0, 0, 0.55)); }
.scene-carton { position: absolute; left: 20%; width: 60%; bottom: 35%; font-family: inherit; }
.scene-scan { position: absolute; z-index: 1; left: 8%; right: 8%; top: 10%; height: 3px; border-radius: 3px; background: var(--p-green); box-shadow: 0 0 14px 3px rgba(76, 194, 122, 0.7); opacity: 0; }
.scene-finder.is-scanning .scene-scan { animation: scene-scan 1.1s ease-in-out 2 alternate; }
.scene-sheet { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; background: var(--p-cell); border-radius: 1.5rem; padding: 0.9rem; display: grid; gap: 0.15rem; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3); transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.4s ease; }
.scene-sheet.is-hidden { transform: translateY(115%); opacity: 0; }
.scene-label { color: var(--p-green); font-weight: 700; font-size: 0.8rem; }
.scene-product { font-size: 1.25rem; font-weight: 700; }
.scene-button { margin-top: 0.6rem; background: var(--p-green); color: var(--p-on-green); font-weight: 700; text-align: center; border-radius: 999px; padding: 0.55rem; transition: background 0.3s ease, color 0.3s ease, opacity 0.2s ease; }
.scene-button.is-done { background: var(--p-chip); color: var(--p-green); }
.scene-button.is-done::before { content: "✓ "; }

.scene-chip { align-self: flex-start; display: flex; align-items: center; gap: 0.45rem; background: var(--p-cell); border-radius: 999px; padding: 0.4rem 0.85rem 0.4rem 0.6rem; margin: 0.5rem 0 0; font-weight: 600; font-size: 0.85rem; transition: opacity 0.2s ease; }
.scene-chip-icon { width: 1.2rem; height: 0.85rem; border-radius: 0.2rem; border: 2px solid var(--p-green); position: relative; }
.scene-chip-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 0.12rem; border-top: 2px solid var(--p-green); }
.scene-code { position: absolute; inset: 0; background: #fff; color: #17251d; display: grid; align-content: center; justify-items: center; gap: 1rem; padding: 1.2rem; transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.3, 0.7, 0.3, 1); }
.scene-code.is-hidden { opacity: 0; transform: scale(0.9); }
.scene-code-name { font-weight: 800; font-size: 1.2rem; }
.scene-bars { width: 100%; height: 5.2rem; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 5px, #111 5px 9px, #fff 9px 11px, #111 11px 12px, #fff 12px 16px, #111 16px 19px, #fff 19px 21px); }
.scene-number { font-weight: 600; white-space: nowrap; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
@keyframes scene-scan { 0% { top: 8%; opacity: 1; } 100% { top: 60%; opacity: 1; } }

/* The bar at the edge of the start page: where in the page the visitor is. On small screens
   there is no room for it; the page is short enough to do without. */
.page-nav { display: none; }
@media (min-width: 62rem) {
  .page-nav {
    display: block; position: fixed; right: 0.4rem; top: 50%; transform: translateY(-50%); z-index: 5;
    background: color-mix(in srgb, var(--card) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 1.1rem; padding: 0.35rem;
  }
  .page-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
  .page-nav a { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; min-height: 1.9rem; padding: 0 0.35rem; border-radius: 0.8rem; color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
  .page-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--green-soft) 80%, transparent); }
  .page-nav-dot { order: 2; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; opacity: 0.45; flex: none; transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease; }
  .page-nav-label { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s ease, opacity 0.3s ease; }
  .page-nav:hover .page-nav-label, .page-nav:focus-within .page-nav-label, .page-nav a[aria-current] .page-nav-label { max-width: 9rem; opacity: 1; }
  .page-nav a[aria-current] { color: var(--ink); }
  .page-nav a[aria-current] .page-nav-dot { background: var(--green); opacity: 1; transform: scale(1.5); }
}
/* Wide windows have room beside the content: all names stay visible. */
@media (min-width: 90rem) {
  .page-nav { right: 1rem; }
  .page-nav .page-nav-label { max-width: 9rem; opacity: 1; }
}
section[id] { scroll-margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  .scene .demo-row, .demo-list, .scene-sheet, .scene-code, .scene-hint, .scene-button, .page-nav-dot, .page-nav-label { transition: none; }
  .scene-finder.is-scanning .scene-scan { animation: none; }
}
@media print { .page-nav { display: none; } }

/* The lock screen: screenshots stacked in one phone; the later ones cover only the lower part. */
.scene .phone.lock { position: relative; width: 100%; margin: 0; }
.lock-frame { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(55% 0 0 0); opacity: 0; transition: opacity 0.6s ease; }
.lock-frame.is-shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lock-frame { transition: none; } }

/* All devices side by side, standing on one line. Sizes follow the width of the row (cqw), so
   the picture keeps its proportions from phone to desktop. */
.devices { container-type: inline-size; display: flex; align-items: flex-end; justify-content: center; gap: 2.2%; padding-bottom: 1.4%; }
.dev { flex: none; background: #000; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.dev img { display: block; width: 100%; height: auto; }
.dev-mac { width: 50%; background: none; box-shadow: none; }
.dev-mac .dev-screen { background: #000; padding: 1.1cqw 1.1cqw 1.4cqw; border-radius: 1.6cqw 1.6cqw 0 0; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.dev-mac .dev-screen img { border-radius: 0.4cqw; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.dev-mac::after { content: ""; display: block; height: 1.3cqw; margin: 0 -5%; border-radius: 0 0 1.6cqw 1.6cqw; background: linear-gradient(#c9ced0, #8f9699); }
.dev-ipad { width: 27%; padding: 1cqw; border-radius: 1.8cqw; }
.dev-ipad img { border-radius: 0.8cqw; }
.dev-iphone { width: 9.5%; padding: 0.5cqw; border-radius: 1.9cqw; }
.dev-iphone img { border-radius: 1.4cqw; }
.dev-watch { width: 6%; padding: 0.55cqw; border-radius: 1.9cqw; position: relative; margin-bottom: 2.4cqw; }
.dev-watch img { border-radius: 1.4cqw; }
/* The straps of the watch, behind its case. */
.dev-watch::before, .dev-watch::after { content: ""; position: absolute; left: 14%; right: 14%; height: 2.6cqw; background: #2f3a34; z-index: -1; }
.dev-watch::before { bottom: 96%; border-radius: 0.8cqw 0.8cqw 0 0; }
.dev-watch::after { top: 96%; border-radius: 0 0 0.8cqw 0.8cqw; }
.devices { position: relative; z-index: 0; }

/* Contact form (support page). */
.contact-form { margin-top: 1.2rem; }
.contact-form p { margin: 0 0 0.9rem; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--card);
  border: 2px solid var(--outline); border-radius: 10px; padding: 0.6rem 0.75rem;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.contact-form button { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.contact-note { font-size: 0.92rem; }
/* The trap for robots: out of sight and out of the tab order, but not display:none, which some robots skip. */
.contact-trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
