/* Hallmark · macrostructure: Index-First + Narrative Workflow day strip · tone: direct, warm, modern · anchor hue: 31 (Minoan red)
 * theme: custom · vibe: "Cretan limestone, Aegean night ink, fresco red, soft depth"
 * paper oklch(98.2% 0.008 85) · accent oklch(52% 0.195 31) · display: Fira Sans Extra Condensed 800 · body: Commissioner · hand: Caveat
 * axes: light / display-condensed-bold / warm · nav: glass sticky bar · footer: Ft5 statement · enrichment: notebook to real screen (CSS + SVG)
 * motion: notebook strike-and-reveal once (replay), icon draw on hover, scroll reveals, timeline line · all off under reduced motion
 */

@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/fira-sans-extra-condensed-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/fira-sans-extra-condensed-greek-800-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/commissioner-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/commissioner-greek-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --font-display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-body: "Commissioner", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;

  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-md: 1.25rem;
  --text-lg: 1.625rem;
  --text-xl: 2rem;
  --text-index: clamp(1.875rem, 0.6rem + 4.4vw, 4.5rem);
  --text-h2: clamp(2.375rem, 1rem + 4.6vw, 5rem);
  --text-hero: clamp(3.25rem, 0.8rem + 8.2vw, 7.75rem);
  --text-giant: clamp(3rem, 0.5rem + 8.5vw, 8.5rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --gutter: 1rem;

  --rule-hair: 1px;
  --rule-bold: 2px;
  --rule-focus: 3px;
  --radius-sm: 0.625rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --size-hit: 2.75rem;
  --size-content: 84rem;
  --bar-h: 4rem;
  --z-sticky: 200;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 600ms;
  --dur-strike: 700ms;
  --dur-stage: 4.2s;

  --color-paper: oklch(98.2% 0.008 85);
  --color-paper-2: oklch(95.6% 0.012 85);
  --color-card: oklch(99.4% 0.004 85);
  --color-glass: oklch(98.2% 0.008 85 / 0.82);
  --color-ink: oklch(20% 0.035 262);
  --color-ink-2: oklch(34% 0.03 262);
  --color-muted: oklch(45% 0.025 262);
  --color-rule-2: oklch(88.5% 0.014 85);
  --color-field: oklch(60% 0.02 262);
  --color-accent: oklch(52% 0.195 31);
  --color-accent-soft: oklch(93% 0.035 31);
  --color-accent-ink: oklch(98.5% 0.006 85);
  --color-accent-text: oklch(49% 0.19 31);
  --color-live: oklch(57% 0.16 150);
  --color-build: oklch(72% 0.15 70);
  --color-focus: oklch(16% 0.03 262);
  --color-day: oklch(80% 0.14 75);
  --color-night: oklch(40% 0.13 265);
  --color-sheet: oklch(97.6% 0.03 95);
  --color-ruled: oklch(83% 0.045 235);
  --color-margin: oklch(70% 0.13 20);
  --color-pen: oklch(42% 0.17 262);
  --color-coffee: oklch(62% 0.07 60);
  --shadow-1: 0 1px 2px oklch(20% 0.04 262 / 0.06), 0 6px 16px -8px oklch(20% 0.04 262 / 0.12);
  --shadow-2: 0 2px 6px oklch(20% 0.04 262 / 0.05), 0 28px 56px -24px oklch(20% 0.04 262 / 0.28);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-paper: oklch(16.5% 0.028 262);
  --color-paper-2: oklch(20.5% 0.03 262);
  --color-card: oklch(22.5% 0.032 262);
  --color-glass: oklch(16.5% 0.028 262 / 0.8);
  --color-ink: oklch(95.5% 0.012 85);
  --color-ink-2: oklch(86% 0.015 85);
  --color-muted: oklch(77% 0.02 262);
  --color-rule-2: oklch(31% 0.03 262);
  --color-field: oklch(62% 0.02 262);
  --color-accent: oklch(53% 0.19 31);
  --color-accent-soft: oklch(30% 0.07 31);
  --color-accent-ink: oklch(98.5% 0.006 85);
  --color-accent-text: oklch(73% 0.16 35);
  --color-live: oklch(74% 0.17 150);
  --color-build: oklch(80% 0.14 75);
  --color-focus: oklch(93% 0.03 85);
  --color-day: oklch(80% 0.14 75);
  --color-night: oklch(62% 0.13 265);
  --color-sheet: oklch(92% 0.03 95);
  --color-ruled: oklch(78% 0.045 235);
  --shadow-1: 0 1px 2px oklch(0% 0 0 / 0.3), 0 6px 16px -8px oklch(0% 0 0 / 0.45);
  --shadow-2: 0 2px 6px oklch(0% 0 0 / 0.3), 0 28px 56px -24px oklch(0% 0 0 / 0.7);
}

@media (min-width: 48rem) { :root { --gutter: 2.5rem; --bar-h: 4.5rem; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  overflow-wrap: break-word;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
h2 { font-size: var(--text-h2); margin-bottom: var(--space-xl); }
h3 { font-size: var(--text-lg); }
/* Greek tonos and descenders need more room between display lines. */
:lang(el) :is(h1, h2, .suite-name, .foot-line) { line-height: 1.04; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
:focus-visible { outline: var(--rule-focus) solid var(--color-focus); outline-offset: 3px; }
section[id] { scroll-margin-top: calc(var(--bar-h) + var(--space-md)); }
.wrap { width: min(100% - 2 * var(--gutter), var(--size-content)); margin-inline: auto; }
/* One shrinkable track by default, so a long word wraps instead of widening the page. */
.hero, .live, .ask, .lead-form, .iyo, .addon-grid, .field, .custom-in, .steps { grid-template-columns: minmax(0, 1fr); }
.lead { font-size: var(--text-md); line-height: 1.45; max-width: 44ch; text-wrap: pretty; color: var(--color-ink-2); }
.small { font-size: var(--text-sm); color: var(--color-muted); }

/* Zero-size until focused: keyboard users reach it, pointer tools never hit it. */
.skip {
  position: absolute; left: var(--space-md); top: var(--space-md); z-index: calc(var(--z-sticky) + 1);
  width: 0; height: 0; overflow: hidden; white-space: nowrap;
  background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-sm);
}
.skip:focus { width: auto; height: auto; padding: var(--space-sm) var(--space-md); }

/* Icons: Lucide line icons, drawn with one dash value */
.ico { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico * { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: var(--size-hit); max-width: 100%; padding: var(--space-xs) var(--space-lg);
  border: 0; border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink); box-shadow: var(--shadow-1);
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-md); line-height: 1.05; letter-spacing: 0.01em;
  text-align: center; text-decoration: none; overflow-wrap: anywhere; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out);
}
.btn .arrow { width: 1.1em; height: 1.1em; transition: transform var(--dur-short) var(--ease-out); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover .arrow { transform: translateX(3px); }
}
.btn:active { transform: scale(0.98); }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.btn-big { min-height: 3.5rem; padding-inline: clamp(var(--space-md), 4vw, var(--space-xl)); font-size: clamp(1.125rem, 0.8rem + 1.6vw, 1.5rem); }
.btn-small { min-height: 2.5rem; padding-inline: var(--space-md); font-size: var(--text-base); }
.link { font-weight: 600; min-height: var(--size-hit); display: inline-flex; align-items: center; overflow-wrap: anywhere; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }

/* Status */
.status, .count { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; flex: none; }
[data-status="live"] .dot { background: var(--color-live); box-shadow: 0 0 0 4px color-mix(in oklch, var(--color-live) 22%, transparent); }
[data-status="in build"] .dot { border: var(--rule-bold) solid var(--color-build); }
[data-status="in build"] { color: var(--color-muted); }

/* Header */
.bar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--color-glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.bar-in { min-height: var(--bar-h); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-md); }
.bar a { overflow-wrap: anywhere; min-width: 0; }
.mark { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: var(--size-hit); font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); line-height: 1; text-decoration: none; }
.mark-sq { width: 0.8em; height: 0.8em; border-radius: 0.2em; background: var(--color-accent); transition: transform var(--dur-short) var(--ease-out); }
@media (hover: hover) { .mark:hover .mark-sq { transform: rotate(45deg) scale(0.85); } }
.bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-sm); min-width: 0; }
.lang { font-weight: 600; min-height: var(--size-hit); display: inline-flex; align-items: center; padding-inline: var(--space-xs); }
.theme {
  width: var(--size-hit); height: var(--size-hit); display: grid; place-items: center;
  border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-sm); background: var(--color-card); color: var(--color-ink); cursor: pointer;
}
.i-sun { display: none; }
[data-theme="dark"] .i-moon { display: none; }
[data-theme="dark"] .i-sun { display: block; }
.bar .btn-small { display: none; }
@media (min-width: 34rem) { .bar .btn-small { display: inline-flex; } }

/* Hero */
.hero { display: grid; gap: var(--space-2xl); align-items: center; padding-block: var(--space-2xl) var(--space-3xl); }
.hero h1 { font-size: var(--text-hero); line-height: 0.88; letter-spacing: -0.02em; }
.hero .lead { margin-top: var(--space-lg); }
.hero .actions { margin-top: var(--space-xl); }
.count { margin-top: var(--space-lg); padding: var(--space-2xs) var(--space-md) var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-card); border: var(--rule-hair) solid var(--color-rule-2); }
.strike { position: relative; }
.strike::after {
  content: ""; position: absolute; left: -0.03em; right: -0.03em; top: 0.5em; height: 0.11em;
  border-radius: 0.06em; background: var(--color-accent); transform-origin: left center;
}
@media (min-width: 64rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-top: var(--space-3xl); }
}

/* The stage: a bookings notebook gets crossed out and slides aside to show the real screen. */
.stage { margin: 0; display: grid; gap: var(--space-md); }
.stage-art { position: relative; aspect-ratio: 6 / 5; }
.sys { position: absolute; top: 0; right: 0; width: 82%; border-radius: var(--radius); overflow: hidden; background: var(--color-card); border: var(--rule-hair) solid var(--color-rule-2); box-shadow: var(--shadow-2); }
.notebook {
  position: absolute; left: 1%; bottom: 7%; width: 42%; aspect-ratio: 3 / 4; z-index: 1;
  border-radius: 0.375rem; box-shadow: var(--shadow-2); transform: rotate(-8deg);
  background-color: var(--color-sheet);
  background-image:
    radial-gradient(circle, var(--color-paper) 0 0.2rem, transparent 0.24rem),
    linear-gradient(to right, transparent 10%, var(--color-margin) 10%, var(--color-margin) calc(10% + 1.5px), transparent calc(10% + 1.5px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(11% - 1px), var(--color-ruled) calc(11% - 1px), var(--color-ruled) 11%);
  background-size: 1.1rem 1.1rem, auto, auto;
  background-position: 0.35rem 0.2rem, 0 0, 0 0;
  background-repeat: repeat-x, no-repeat, no-repeat;
}
.note-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hand { font-family: var(--font-hand); font-weight: 600; font-size: 26px; fill: var(--color-pen); }
.hand.small { font-size: 22px; }
.ink { fill: none; stroke: var(--color-pen); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ring { fill: none; stroke: var(--color-coffee); stroke-width: 5; opacity: 0.25; }
.marker { fill: none; stroke: var(--color-accent); stroke-width: 9; stroke-linecap: round; opacity: 0.88; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stage figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.stage figcaption span { margin-left: auto; text-align: right; }
.replay {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: var(--size-hit); padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill);
  background: var(--color-card); color: var(--color-ink); box-shadow: var(--shadow-1); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
}
.replay .ico { width: 1rem; height: 1rem; }

/* Suite index */
.suites { padding-block: var(--space-2xl); }
.index { border-top: var(--rule-hair) solid var(--color-rule-2); }
.suite { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.suite summary {
  cursor: pointer; list-style: none; border-radius: var(--radius);
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) var(--size-hit);
  grid-template-areas: "tile name plus" ". line line" ". status status";
  align-items: center; gap: var(--space-2xs) var(--space-md);
  padding: var(--space-md) var(--space-xs);
  transition: background-color var(--dur-short) var(--ease-out);
}
.suite summary::-webkit-details-marker { display: none; }
.suite summary:focus-visible { outline-offset: 2px; }
.tile {
  width: 3rem; height: 3rem; border-radius: 0.875rem; display: grid; place-items: center;
  background: var(--color-paper-2); color: var(--color-ink);
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.suite .tile { grid-area: tile; }
.suite-name { grid-area: name; font-family: var(--font-display); font-weight: 800; font-size: var(--text-index); line-height: 0.95; letter-spacing: -0.015em; overflow-wrap: anywhere; min-width: 0; transition: transform var(--dur-short) var(--ease-out); }
.suite-line { grid-area: line; font-size: var(--text-base); max-width: 40ch; color: var(--color-muted); }
.suite .status { grid-area: status; }
.plus { grid-area: plus; position: relative; width: var(--size-hit); height: var(--size-hit); transition: transform var(--dur-short) var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.25rem; height: 2.5px; border-radius: 2px; background: currentColor; translate: -50% -50%; }
.plus::after { rotate: 90deg; }
.suite[open] summary { background: var(--color-paper-2); border-radius: var(--radius) var(--radius) 0 0; }
.suite[open] .tile { background: var(--color-accent); color: var(--color-accent-ink); }
.suite[open] .plus { transform: rotate(45deg); }
@media (hover: hover) {
  .suite summary:hover { background: var(--color-paper-2); }
  .suite summary:hover .tile { background: var(--color-accent); color: var(--color-accent-ink); transform: rotate(-6deg) scale(1.06); }
  .suite summary:hover .suite-name { transform: translateX(0.25rem); }
}
@media (min-width: 64rem) {
  .suite summary { grid-template-columns: 3.5rem minmax(0, 1.1fr) minmax(0, 1fr) 9.5rem var(--size-hit); grid-template-areas: "tile name line status plus"; gap: var(--space-xl); padding: var(--space-md) var(--space-sm); }
  .tile { width: 3.5rem; height: 3.5rem; }
}
.panel { padding: var(--space-lg) var(--space-md) var(--space-xl); margin-bottom: var(--space-sm); background: var(--color-paper-2); border-radius: 0 0 var(--radius) var(--radius); }
@media (min-width: 64rem) { .panel { padding-inline: calc(3.5rem + var(--space-xl) + var(--space-sm)) var(--space-xl); } }
.panel .note { margin-top: var(--space-xl); color: var(--color-muted); font-weight: 600; }
.panel .actions { margin-top: var(--space-xl); }

/* In, out, you */
.iyo { display: grid; gap: var(--space-xl); counter-reset: iyo; }
.iyo h3 { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); counter-increment: iyo; }
.iyo h3::before {
  content: counter(iyo); display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--color-accent-soft); color: var(--color-accent-text); font-size: var(--text-md);
}
@media (min-width: 48rem) { .iyo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ticks { list-style: none; padding: 0; display: grid; gap: var(--space-sm); }
.ticks li { position: relative; padding-left: 1.375rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 0.15rem; background: var(--color-accent); }

/* Live proof */
.live { padding-block: var(--space-3xl) var(--space-2xl); display: grid; gap: var(--space-2xl); }
.live h2 { margin-bottom: var(--space-lg); }
.shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.shot-desk { grid-column: 1 / -1; grid-row: 1; }
.shot-phone { grid-column: 3 / 11; grid-row: 2; margin-top: var(--space-xl); }
.shot img { border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius); background: var(--color-paper-2); box-shadow: var(--shadow-2); }
.shot figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
@media (min-width: 40rem) {
  .shot-desk { grid-column: 1 / 11; }
  .shot-phone { grid-column: 10 / 13; grid-row: 1; align-self: end; margin: 0 0 calc(-1 * var(--space-2xl)); position: relative; }
  .shot-phone img { border: 6px solid var(--color-paper); border-radius: 1.5rem; outline: var(--rule-hair) solid var(--color-rule-2); }
  .shot-desk figcaption { max-width: 70%; }
  .shots { padding-bottom: var(--space-2xl); }
}
@media (min-width: 64rem) { .live-head .lead { max-width: 52ch; } }

/* A day on the restaurant suite */
.day { background: var(--color-paper-2); padding-block: var(--space-3xl); }
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-xl); position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0.5rem; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 3px;
  background: linear-gradient(to bottom, var(--color-day), var(--color-night)); transform-origin: top center;
  transition: transform 1.4s var(--ease-out);
}
.steps li { position: relative; padding-left: 2.5rem; display: grid; gap: var(--space-xs); align-content: start; }
.knot { position: absolute; left: 0; top: 0.4rem; width: 1.1875rem; height: 1.1875rem; border-radius: 50%; background: var(--color-paper); border: 3px solid var(--color-day); }
.steps li:nth-child(2) .knot { border-color: color-mix(in oklch, var(--color-day) 75%, var(--color-night)); }
.steps li:nth-child(3) .knot { border-color: color-mix(in oklch, var(--color-day) 50%, var(--color-night)); }
.steps li:nth-child(4) .knot { border-color: color-mix(in oklch, var(--color-day) 25%, var(--color-night)); }
.steps li:nth-child(5) .knot { border-color: var(--color-night); }
.steps time { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--text-md); line-height: 1.15; }
.steps p { color: var(--color-muted); }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-lg); }
  .steps::before { left: 0.5rem; right: 0.5rem; top: 0.5rem; bottom: auto; width: auto; height: 3px; background: linear-gradient(to right, var(--color-day), var(--color-night)); transform-origin: left center; }
  .steps li { padding: 2.5rem 0 0; }
}
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-2xl); }
.chips li { padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-card); border: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); font-weight: 600; }
.day .actions { margin-top: var(--space-xl); }

/* Comparison */
.compare { padding-block: var(--space-3xl); }
.table-card { background: var(--color-card); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table caption { caption-side: bottom; text-align: left; padding: var(--space-md) var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: var(--space-md) var(--space-lg); }
.compare-table thead th { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); line-height: 1; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.compare-table thead th:not(.win) span {
  /* A strike per line fragment, so a wrapped header is struck on every line. */
  background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 0 52% / 100% 0.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 0.5s var(--ease-out);
}
.compare-table thead th:nth-child(3) span { transition-delay: 0.15s; }
.compare-table thead th:nth-child(4) span { transition-delay: 0.3s; }
.compare-table thead th.win { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.compare-table tbody th { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); line-height: 1; }
.compare-table tbody tr + tr { border-top: var(--rule-hair) solid var(--color-rule-2); }
.compare-table td { color: var(--color-muted); }
.compare-table td.win { background: var(--color-ink); color: var(--color-paper); font-weight: 600; }
.cell-label { display: none; }
@media (max-width: 55.99rem) {
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; }
  .compare-table caption { display: block; }
  .compare-table thead { display: none; }
  .compare-table tbody tr { padding: var(--space-md) var(--space-md) var(--space-lg); }
  .compare-table tbody th { padding: 0 0 var(--space-sm); }
  .compare-table td { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-2xs) 0; }
  .compare-table .cell-label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); }
  .compare-table td:not(.win) .cell-label { text-decoration: line-through; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
  .compare-table td.win { margin-top: var(--space-sm); padding: var(--space-sm); border-radius: var(--radius-sm); }
  .compare-table td.win .cell-label { color: var(--color-paper); }
}

/* Add-ons */
.addons { padding-block: var(--space-3xl); }
.addon-grid { list-style: none; padding: 0; display: grid; gap: var(--space-md); }
.addon-grid li {
  display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-lg);
  background: var(--color-card); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius);
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.addon-grid .tile { margin-bottom: var(--space-xs); }
.addon-grid h3 { font-size: var(--text-xl); }
@media (hover: hover) {
  .addon-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  .addon-grid li:hover .tile { background: var(--color-accent); color: var(--color-accent-ink); }
}
@media (min-width: 40rem) { .addon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .addon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Custom software */
.custom { background: var(--color-ink); color: var(--color-paper); padding-block: var(--space-3xl); }
.custom-in { display: grid; gap: var(--space-2xl); align-items: center; }
.custom h2 { font-size: var(--text-giant); margin-bottom: var(--space-lg); }
.custom .lead { color: inherit; margin-bottom: var(--space-2xl); }
.custom .iyo h3::before { background: color-mix(in oklch, var(--color-paper) 14%, transparent); color: var(--color-paper); }
.custom .actions { margin-top: var(--space-2xl); }
.custom :focus-visible { outline-color: var(--color-paper); }
.wall { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-sm); }
.wall li {
  aspect-ratio: 1; display: grid; place-items: center; min-width: 0; overflow-wrap: anywhere; border-radius: var(--radius);
  background: color-mix(in oklch, var(--color-paper) 7%, transparent); border: var(--rule-hair) solid color-mix(in oklch, var(--color-paper) 16%, transparent);
  transition: transform 0.5s var(--ease-out);
}
.wall .ico { width: 42%; height: 42%; }
.wall .q { grid-column: span 2; aspect-ratio: auto; border: 2px dashed var(--color-accent); background: color-mix(in oklch, var(--color-accent) 18%, transparent); font-family: var(--font-display); font-weight: 800; font-size: var(--text-giant); line-height: 1; color: var(--color-paper); }
.wall li:nth-child(3n + 2) { transition-delay: 0.08s; }
.wall li:nth-child(3n) { transition-delay: 0.16s; }
.wall .q { transition-delay: 0.45s; }
@media (min-width: 64rem) { .custom-in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-3xl); } }

/* Ask form */
.ask { padding-block: var(--space-3xl); display: grid; gap: var(--space-2xl); align-items: start; }
.ask h2 { margin-bottom: var(--space-lg); }
.ask .lead { margin-bottom: var(--space-md); }
@media (min-width: 64rem) { .ask { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.form-card { background: var(--color-card); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: clamp(var(--space-md), 3vw, var(--space-xl)); }
.lead-form { display: grid; gap: var(--space-lg); position: relative; }
@media (min-width: 40rem) { .lead-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-wide, .form-foot, .target-msg { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--space-xs); align-content: start; }
.field label { font-weight: 600; }
.opt { font-weight: 400; color: var(--color-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: var(--space-sm) var(--space-md); font: inherit; font-size: max(1rem, var(--text-base));
  color: var(--color-ink); background: var(--color-paper); border: 1.5px solid var(--color-field); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.875rem) 55%; background-size: 0.375rem 0.375rem; background-repeat: no-repeat;
}
.field [aria-invalid="true"] { border-color: var(--color-accent-text); box-shadow: inset 0 0 0 1px var(--color-accent-text); }
.err { color: var(--color-accent-text); font-weight: 600; font-size: var(--text-sm); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.form-status { font-weight: 600; }
.form-status[data-kind="ok"] { color: var(--color-ink); }
.form-status[data-kind="bad"] { color: var(--color-accent-text); }
.target-msg { display: none; }
.target-msg:target { display: block; padding: var(--space-sm) var(--space-md); border-left: 4px solid var(--color-live); font-weight: 600; }
.target-msg[data-kind="bad"]:target { border-left-color: var(--color-accent); }

/* Footer */
.foot { border-top: var(--rule-hair) solid var(--color-rule-2); padding-block: var(--space-2xl) var(--space-xl); }
.foot-line { font-family: var(--font-display); font-weight: 800; font-size: var(--text-h2); line-height: 0.95; max-width: 18ch; margin-bottom: var(--space-xl); text-wrap: balance; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-xl); font-size: var(--text-sm); }
.foot-row a { min-height: var(--size-hit); display: inline-flex; align-items: center; }
.foot .mark { font-size: var(--text-md); }

/* Motion. The default styles above are the final state: without script or
   motion the page is complete. These rules only add the way in. */
@media (prefers-reduced-motion: no-preference) {
  .strike::after { animation: strike var(--dur-strike) var(--ease-out) 300ms both; }
  @keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* With script on, the stage waits for the viewport, then plays once. */
  .js .stage:not(.play) .stage-art { opacity: 0; }
  .stage.play .notebook { animation: note-in var(--dur-stage) var(--ease-in-out) both; }
  .stage.play .sys { animation: sys-in var(--dur-stage) var(--ease-out) both; }
  .stage.play .hand { animation: fade-in 0.3s var(--ease-out) both; }
  .stage.play .ink { animation: draw 0.5s var(--ease-out) both; }
  .stage.play .w0 > * { animation-delay: 0.35s; }
  .stage.play .w1 > * { animation-delay: 0.55s; }
  .stage.play .w2 > * { animation-delay: 0.75s; }
  .stage.play .w3 > * { animation-delay: 0.95s; }
  .stage.play .w4 > * { animation-delay: 1.15s; }
  .stage.play .w5 > * { animation-delay: 1.35s; }
  .stage.play .w6 > * { animation-delay: 1.65s; }
  .stage.play .marker { animation: draw 0.45s var(--ease-in-out) 2.25s both; }
  .stage.play .marker.m2 { animation-delay: 2.55s; }
  @keyframes note-in {
    0% { opacity: 0; transform: translate(88%, -43%) rotate(-2deg) scale(1.02); }
    6% { opacity: 1; }
    74% { transform: translate(88%, -43%) rotate(-2deg) scale(1.02); }
    100% { opacity: 1; transform: rotate(-8deg); }
  }
  @keyframes sys-in {
    0% { opacity: 0; transform: translateY(0.75rem) scale(0.97); }
    12%, 74% { opacity: 0.5; transform: translateY(0.75rem) scale(0.97); }
    100% { opacity: 1; transform: none; }
  }

  @media (hover: hover) {
    .suite summary:hover .tile .ico *, .addon-grid li:hover .tile .ico * { animation: draw 0.6s var(--ease-out) both; }
  }
  .suite[open] .panel { animation: fade-in var(--dur-short) var(--ease-out); }

  /* Reveals move content, they never hide it: text stays readable at every moment. */
  .js [data-reveal] { transition: transform var(--dur-long) var(--ease-out); }
  .js [data-reveal]:not(.in) { transform: translateY(1.5rem); }
  .js [data-reveal]:not(.in) .steps::before { transform: scaleY(0); }
  .js .steps li { transition: transform 0.5s var(--ease-out); }
  .js .steps li:nth-child(2) { transition-delay: 0.15s; }
  .js .steps li:nth-child(3) { transition-delay: 0.3s; }
  .js .steps li:nth-child(4) { transition-delay: 0.45s; }
  .js .steps li:nth-child(5) { transition-delay: 0.6s; }
  .js [data-reveal]:not(.in) .steps li { transform: translateY(1rem); }
  .js [data-reveal]:not(.in) .compare-table thead th:not(.win) span { background-size: 0% 0.12em; }
  .js [data-reveal]:not(.in) .wall li { transform: scale(0.6) rotate(-8deg); }
  .js .addon-grid li { transition: transform var(--dur-long) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
  .js .addon-grid:not(.in) li { transform: translateY(1.25rem); }
  .js .addon-grid li:nth-child(4n + 2) { transition-delay: 0.08s; }
  .js .addon-grid li:nth-child(4n + 3) { transition-delay: 0.16s; }
  .js .addon-grid li:nth-child(4n) { transition-delay: 0.24s; }
  .js .addon-grid.in li:hover { transition-delay: 0s; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 64rem) {
  .js [data-reveal]:not(.in) .steps::before { transform: scaleX(0); }
}
/* Reduced motion: no transition or animation anywhere, including one already running. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
