/* Moneta landing page. The page is white with Geist Serif and Geist Sans; the
   product shown inside the hero keeps the app's own tokens and system font
   (MONETA-DESIGN.md, Theme.swift), so the screenshots stay true.
   Motion follows Emil Kowalski's rules: strong ease-out curves, transform and
   opacity only, short interface motion, press feedback, hover only on real
   pointers, everything interruptible, and a calm reduced-motion fallback. */

@font-face { font-family: "Geist Serif"; src: url("assets/fonts/GeistSerifVF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/GeistVF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* White and neutral greys, the app's own tokens. Every text colour passes 4.5:1. */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #151515;
  --ink-2: #5C5C59;
  --ink-3: #6E6E6B;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.18);
  --tile: #F3F3F2;
  --soft-2: #ECECEA;
  --knob: #FFFFFF;
  --blue: #2F78F6;
  --live: #34C759;
  --scene-top: #F3F3F2;
  --scene-bottom: #E8E8E5;
  --glide: #FFFFFF;
  --sheen: rgba(255, 255, 255, 0.55);
  --edge: rgba(255, 255, 255, 0.7);
  --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 24px 64px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);

  /* Corners: firm, not bubbly */
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* Moneta's curve, = M.ease */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);  /* iOS-like sheet */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --serif: "Geist Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E0E;
    --surface: #161615;
    --ink: #ECECEA;
    --ink-2: #A4A4A1;
    --ink-3: #92928F;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.22);
    --tile: #1E1E1D;
    --soft-2: #222221;
    --knob: rgba(255, 255, 255, 0.14);
    --scene-top: #1A1A19;
    --scene-bottom: #121211;
    --glide: #343433;
    --sheen: rgba(255, 255, 255, 0.07);
    --edge: rgba(255, 255, 255, 0.12);
    --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.32);
    --shadow-float: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  }
}

/* The product inside the hero, and the menu pieces on the privacy cards, are
   the real app: its own colours and font */
.scene, .appui {
  --bg: #FFFFFF; --surface: #FFFFFF; --ink: #151515; --ink-2: #5C5C59; --ink-3: #6E6E6B;
  --line: rgba(0, 0, 0, 0.08); --line-2: rgba(0, 0, 0, 0.18); --tile: #F3F3F2; --soft-2: #ECECEA; --knob: #FFFFFF;
  --sheen: rgba(255, 255, 255, 0.55); --edge: rgba(255, 255, 255, 0.7); --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.06);
  font-family: var(--system);
}
@media (prefers-color-scheme: dark) {
  .scene, .appui {
    --bg: #0E0E0E; --surface: #161615; --ink: #ECECEA; --ink-2: #A4A4A1; --ink-3: #92928F;
    --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.22); --tile: #1E1E1D; --soft-2: #222221; --knob: rgba(255, 255, 255, 0.14);
    --sheen: rgba(255, 255, 255, 0.07); --edge: rgba(255, 255, 255, 0.12); --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.32);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding: 0 var(--gutter); }
.mark { width: 16px; height: 16px; flex: none; }

/* ---------- Type ---------- */

/* Geist Serif carries the voice: headlines, ledes and prose. Geist Sans does
   the interface: buttons, nav, labels, chips. */
.two-tone { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.two-tone span:first-child { color: var(--ink); }
.two-tone span:last-child { color: var(--ink-2); }
h1.two-tone { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.04; }
.two-tone--section { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.018em; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 20px; }
.lede { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.fine { font-size: 13px; color: var(--ink-3); }
.fact strong, .fact span, .step > span:last-child, .agentcard__note, .tpl__desc, .tpl__text, .fcard__body p, .pcard > p, .cta__lede { font-family: var(--serif); }

/* Every section opens the same way: a hairline, a small label, the headline */
.section-head { padding-top: 22px; border-top: 0.5px solid var(--line-2); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lede { margin-top: 20px; }
.art-credit { margin-top: 12px; text-align: right; font-size: 12px; color: var(--ink-3); }

/* ---------- Buttons ---------- */

/* Real buttons: a firm 10px corner, a hairline edge, a lit top edge, an icon
   that says what happens, a press that gives. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-md);
  font: 500 15px/1 var(--sans); white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 200ms var(--ease-out); }
.btn--small { height: 36px; padding: 0 14px; gap: 7px; font-size: 13.5px; border-radius: var(--radius-sm); }
.btn--small svg { width: 15px; height: 15px; }
.btn--primary {
  background: var(--ink); color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.2), 0 6px 16px -4px rgba(0, 0, 0, 0.28);
}
.btn--ghost {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  .btn--primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -4px rgba(0, 0, 0, 0.5); }
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--bg)); }
  .btn--ghost:hover { background: var(--tile); }
  .btn:hover .btn__go { transform: translateX(2px); }
  .btn:hover .btn__down { transform: translateY(2px); }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 0.5px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.nav__links { display: flex; gap: 24px; margin-right: auto; font-size: 14px; color: var(--ink-2); }
.nav__links a { transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(64px, 10vw, 120px); padding-bottom: 48px; }
.hero .lede { margin-top: 24px; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.hero .fine { margin-top: 18px; }

/* ---------- Scene ---------- */

/* A full-width band: a Mac desktop whose wallpaper is Monet's Water Lilies
   (c. 1915). The pond's own green is the ground; #2A5541 shows only while the
   image loads. The menu bar spans the band like a real screen; the windows sit
   on the page's column (.scene__stage), so they line up with the text above.
   Composition follows stageshow: one hero window off the bottom, one
   satellite straddling its edge, Moneta's menu anchored where macOS puts it. */
.band { margin-top: 8px; }
.scene { position: relative; height: 700px; overflow: hidden; background: #2A5541; }
.scene__wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.scene__stage { position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc((100% - 1072px) / 2)); right: max(var(--gutter), calc((100% - 1072px) / 2)); }
.menubar {
  position: absolute; inset: 0 0 auto 0; z-index: 2; height: 30px; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; font-weight: 500; color: #FFF;
  background: rgba(16, 34, 25, 0.32);
  backdrop-filter: saturate(1.6) blur(30px); -webkit-backdrop-filter: saturate(1.6) blur(30px);
  box-shadow: inset 0 -0.5px 0 rgba(255, 255, 255, 0.08);
}
.menubar__app { font-weight: 700; }
.menubar__menus { display: flex; gap: 16px; color: rgba(255, 255, 255, 0.92); }
.menubar__spacer { flex: 1; }
.menubar__item { display: grid; place-items: center; width: 30px; height: 22px; margin: 0 -6px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); transition: background-color 160ms ease; }
.menubar__icon { width: 18px; height: 18px; }
.menubar__clock { font-variant-numeric: tabular-nums; }

/* Hero: the agent at work. Its right edge sits under the satellite's centre. */
.terminal {
  position: absolute; left: 0; top: 90px; width: calc(100% - 212px); height: 660px;
  border-radius: 12px; overflow: hidden;
  background: #141414; color: #ECECEA;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -12px rgba(0, 0, 0, 0.6);
  font: 13px/21px var(--mono);
}
.terminal__bar {
  position: relative; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: #1C1C1B; border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}
.terminal__bar i { width: 12px; height: 12px; border-radius: 50%; background: #3B3B3A; }
.terminal__bar i:first-child { background: #FF5F57; }
.terminal__bar i:nth-child(2) { background: #FEBC2E; }
.terminal__bar i:nth-child(3) { background: #28C840; }
.terminal__bar span { position: absolute; left: 0; right: 0; text-align: center; color: #92928F; font: 500 12px var(--sans); pointer-events: none; }
.terminal__body { padding: 16px 18px 22px; }
.terminal__cmd { white-space: pre-wrap; word-break: break-word; }
.prompt { color: #92928F; }
.caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: #ECECEA; animation: blink 1s steps(1) infinite; }
.terminal.is-done .caret { opacity: 0; animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.terminal__log { margin-top: 10px; color: #A4A4A1; }
.terminal__log li::before { content: "●"; color: var(--live); margin-right: 10px; font-size: 9px; vertical-align: 2px; }
.terminal__log b { color: #ECECEA; font-weight: 500; }
.terminal__more { margin-top: 14px; }
.terminal__more p { display: grid; grid-template-columns: 14ch 1fr auto; column-gap: 2ch; max-width: 56ch; }
.terminal__more .dim { color: #92928F; }
.terminal__more p.dim { display: block; }
.terminal__more p.dim:last-child { margin-top: 14px; }
.terminal__more .tname { color: #7FB2FF; }
/* The pick being drafted, chosen by the tabs under the band */
.pick { margin: 0 -8px; padding: 0 8px; border-radius: 4px; transition: background-color 240ms ease; }
.pick.is-on { background: rgba(127, 178, 255, 0.14); }

/* Satellite: the payoff, straddling the terminal's right edge over empty space */
.draft {
  position: absolute; right: 0; top: 319px; width: 424px;
  padding: 18px 20px 20px; border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 14px 32px -8px rgba(0, 0, 0, 0.45), 0 4px 10px -4px rgba(0, 0, 0, 0.2);
  font-size: 15px; line-height: 22px;
}
.draft p + p { margin-top: 10px; }
.draft__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--ink-3); }
.draft__shots { display: flex; gap: 10px; margin-top: 14px; }
.draft__shots .shot { width: auto; flex: 1; height: auto; aspect-ratio: 16 / 9; }
.draft__body { transition: opacity 160ms ease, transform 240ms var(--ease-out), filter 160ms ease; }

/* Under the band: three example posts, a glide, a progress line, a pause */
.band__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 16px; }
.band__controls { grid-column: 2; display: flex; align-items: center; gap: 8px; }
.band__credit { grid-column: 3; margin: 0; justify-self: end; }
.scenarios {
  --n: 0;
  position: relative; display: grid; grid-template-columns: repeat(3, auto); gap: 4px; padding: 4px;
  border-radius: var(--radius-md); background: var(--tile); box-shadow: inset 0 0 0 0.5px var(--line);
}
.scenarios__glide {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); overflow: hidden;
  border-radius: var(--radius-sm); background: var(--glide);
  box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px -4px rgba(0, 0, 0, 0.12);
  transition: transform 420ms var(--ease-drawer), width 420ms var(--ease-drawer);
}
.scenarios__glide i { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; opacity: 0.8; }
.scenarios.is-running .scenarios__glide i { animation: progress var(--scenario-ms, 7000ms) linear both; }
.scenario {
  position: relative; height: 34px; padding: 0 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}
.scenario:active { transform: scale(0.97); }
.scenario.is-on { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .scenario:not(.is-on):hover { color: var(--ink); } }
.pause {
  position: relative; flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--radius-md); color: var(--ink);
  background: var(--tile); box-shadow: inset 0 0 0 0.5px var(--line);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.pause:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .pause:hover { background: var(--soft-2); } }
.pause svg { position: absolute; width: 14px; height: 14px; transition: opacity 160ms ease, transform 240ms var(--ease-out), filter 160ms ease; }
.pause__play, .pause.is-paused .pause__pause { opacity: 0; transform: scale(0.6); filter: blur(2px); }
.pause.is-paused .pause__play { opacity: 1; transform: none; filter: none; }

/* Anchored menu, not a satellite: it hangs from its menu bar icon */
.panel {
  position: absolute; right: 14px; top: 36px; z-index: 1; width: 320px;
  display: flex; flex-direction: column; gap: 12px; padding: 14px;
  border-radius: 16px; background: var(--bg); box-shadow: var(--shadow-float);
  font-size: 13px; transform-origin: 94% 0;
}
.panel__head { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.panel__head strong { font-weight: 600; flex: 1; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--soft-2); box-shadow: inset 0 0 0 0.5px var(--line); color: var(--ink-2); font-size: 11px; font-weight: 500; }
.status i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.status i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--live); opacity: 0.4; animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(0.4); opacity: 0.4; } to { transform: scale(1.4); opacity: 0; } }
.panel__headline { display: flex; flex-direction: column; font-size: 19px; line-height: 23px; font-weight: 500; letter-spacing: -0.022em; padding: 2px 0; }
.panel__headline > span:last-child { color: var(--ink-2); }
.count { display: inline-block; font-variant-numeric: tabular-nums; }
.count.is-ticking { animation: tick 420ms var(--ease-out); }
@keyframes tick { from { transform: translateY(40%); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }

.card {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 22px;
  background: linear-gradient(180deg, var(--sheen), transparent 60%), var(--tile);
  box-shadow: inset 0 1px 0 var(--edge), 0 0 0 0.5px var(--line), var(--shadow-card);
}
.card hr { margin: 0; border: 0; height: 0.5px; background: var(--line); }
.row { display: flex; align-items: center; gap: 10px; }
.row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row b { font-weight: 500; }
.row small { font-size: 11px; color: var(--ink-3); line-height: 13px; }
.switch { position: relative; flex: none; width: 38px; height: 20px; border-radius: 999px; background: var(--soft-2); box-shadow: inset 0 0 0 0.5px var(--line); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 16px; border-radius: 999px; background: #FFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28); transition: transform 300ms var(--ease-out); }
.switch.is-on { background: var(--blue); }
.switch.is-on::after { transform: translateX(13px); }
.seg { flex: none; display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--soft-2); box-shadow: inset 0 0 0 0.5px var(--line); font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.seg > * { padding: 3px 9px; border-radius: 999px; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.seg .is-on { background: var(--knob); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22); }

/* Scene choreography. Only applied when JS runs, so no-JS shows the end state. */
.js .scene .panel { opacity: 0; transform: translateY(-8px) scale(0.96); transition: opacity 260ms ease, transform 520ms var(--ease-drawer); }
.js .scene .panel.is-open { opacity: 1; transform: none; }
.js .scene .terminal__log li, .js .scene .terminal__more > * { opacity: 0; transform: translateY(4px); filter: blur(3px); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out), filter 360ms var(--ease-out); transition-delay: calc(var(--i) * 140ms); }
.js .scene .terminal.is-done .terminal__log li, .js .scene .terminal.is-done .terminal__more > * { opacity: 1; transform: none; filter: none; }
.js .scene .menubar__item { background-color: transparent; }
.js .scene.is-live .menubar__item { background-color: rgba(255, 255, 255, 0.2); }
.js .scene .draft { opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 400ms ease, transform 640ms var(--ease-drawer); }
.js .scene .draft.is-in { opacity: 1; transform: none; }
.js .menubar__dot { opacity: 0; transform-origin: 9px 9px; transform: scale(0.4); transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.js .scene.is-live .menubar__dot { opacity: 1; transform: none; }

/* ---------- Screenshots ---------- */

/* Real captures of Moneta from its own build: Paper boards, the menu before and
   after a fix, the code that fixed it. Never grey placeholder bars. */
.shot {
  position: relative; flex: none; width: 176px; height: 110px; overflow: hidden;
  border-radius: 6px; background: #ECECEA;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.1);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.shot span {
  position: absolute; left: 6px; bottom: 6px; padding: 1px 5px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.9); color: #151515; font: 500 10px/14px var(--mono);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

/* ---------- Facts ---------- */

/* Three numbers between vertical hairlines */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; }
.fact { display: flex; flex-direction: column; gap: 10px; padding: 4px 32px 8px; border-left: 0.5px solid var(--line-2); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact strong { font-size: clamp(44px, 5.4vw, 64px); line-height: 1; font-weight: 400; letter-spacing: -0.025em; }
.fact strong em { font-style: normal; font-size: 0.4em; letter-spacing: -0.01em; color: var(--ink-2); margin-left: 4px; }
.fact span { color: var(--ink-2); max-width: 280px; }

/* ---------- How it works ---------- */

section + section { margin-top: clamp(96px, 12vw, 160px); }
.how .stage { margin-top: 44px; }
/* The stage is Monet's Haystack (1886): soft enough that the white cards and
   real screenshots on it stay the subject. #C8B9A4 shows while it loads. */
.stage {
  position: relative; height: 460px; overflow: hidden; border-radius: var(--radius-lg);
  background: #C8B9A4;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 30px 80px -40px rgba(70, 60, 40, 0.5);
}
.stage__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.stage .shot { box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 10px 28px -6px rgba(40, 30, 10, 0.4); }
.stage .log, .stage .draft--still { box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 18px 44px -12px rgba(40, 30, 10, 0.45); }
.stage__view {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 40px;
  opacity: 0; transform: translateY(10px); filter: blur(4px); visibility: hidden;
  transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), filter 320ms var(--ease-out), visibility 0s linear 420ms;
}
.stage__view.is-active { opacity: 1; transform: none; filter: none; visibility: visible; transition-delay: 0s; }
.stage__view[data-view="0"] { flex-direction: column; }
.filmstrip { display: flex; gap: 14px; }
.opened { display: flex; flex-direction: column; gap: 12px; }
.log {
  padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--line), var(--shadow-card);
  font: 12.5px/20px var(--mono); color: var(--ink); white-space: pre; overflow: hidden; max-width: 100%;
}
.log__h { font-weight: 600; }
.log__dim { color: var(--ink-3); }
.log__e.is-hit { background: var(--soft-2); border-radius: 4px; box-shadow: -6px 0 0 var(--soft-2), 6px 0 0 var(--soft-2); }
.draft--still { position: static; width: min(460px, 100%); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; opacity: 0.62; transition: opacity 240ms ease; }
.step.is-active { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .step:hover { opacity: 1; } }
.step__bar { position: relative; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; margin-bottom: 8px; }
.step__bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.step.is-active .step__bar i { transform: scaleX(1); }
.js .step.is-active.is-running .step__bar i { animation: progress var(--step-ms, 6000ms) linear both; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step b { display: flex; align-items: baseline; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.step__num { font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: 0; }
.step > span:last-child { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* ---------- Templates ---------- */

/* A file browser for templates/: the list on a tile, a glide behind the open
   file, and the file itself on a white card. The card has a fixed height, so
   switching templates never moves the page; a long example fades out. */
.tpl {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 8px; height: 680px; margin-top: 48px;
  padding: 8px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--sheen), transparent 40%), var(--tile);
  box-shadow: inset 0 1px 0 var(--edge), 0 0 0 0.5px var(--line), var(--shadow-card);
}
.tpl__list { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 8px 16px 14px; overflow: auto; }
.tpl__group { display: grid; grid-template-columns: 88px 1fr; align-items: start; }
.tpl__label { padding-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tpl__names { display: flex; flex-direction: column; align-items: stretch; }
.tpl__item {
  position: relative; z-index: 1; height: 30px; padding: 0 10px; border-radius: var(--radius-sm);
  text-align: left; white-space: nowrap; font: 13px var(--mono); color: var(--ink-2);
  transition: color 160ms ease, transform 160ms var(--ease-out);
}
.tpl__item:active { transform: scale(0.98); }
.tpl__item.is-on { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tpl__item:not(.is-on):hover { color: var(--ink); } }
.tpl__glide {
  position: absolute; top: 0; left: 0; width: 0; height: 30px; border-radius: var(--radius-sm);
  background: var(--glide); box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px -4px rgba(0, 0, 0, 0.12);
  transition: transform 380ms var(--ease-drawer), width 380ms var(--ease-drawer);
}
.js .tpl__glide:not(.is-placed) { transition: none; }

.tpl__card {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  padding: 28px 32px 32px; border-radius: var(--radius-md); background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -14px rgba(0, 0, 0, 0.14);
}
.tpl__swap { flex: 1; display: flex; flex-direction: column; min-height: 0; transition: opacity 140ms ease, transform 220ms var(--ease-out), filter 140ms ease; }
.tpl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 13px var(--mono); color: var(--ink-3); }
.tpl__path b { font-weight: 500; color: var(--ink); }
.tpl__desc { margin-top: 18px; max-width: 34ch; font-size: 26px; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); }
.tpl__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 24px 0 0; padding-top: 20px; border-top: 0.5px solid var(--line); }
.tpl__meta dt, .tpl__post figcaption { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tpl__meta dd { margin: 5px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.tpl__when { grid-column: 1 / -1; }
.tpl__when dd { font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.tpl__post {
  position: relative; flex: 1; min-height: 0; overflow: hidden; margin-top: 24px; padding: 18px 22px;
  border-radius: var(--radius-md); background: var(--tile); box-shadow: inset 0 0 0 0.5px var(--line);
}
.tpl__post::after { content: ""; position: absolute; inset: auto 0 0 0; height: 44px; background: linear-gradient(transparent, var(--tile)); pointer-events: none; }
.tpl__text { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.tpl__text p + p { margin-top: 10px; }

.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: var(--radius-sm);
  background: var(--tile); box-shadow: inset 0 0 0 0.5px var(--line);
  font: 13px var(--mono); color: var(--ink);
}
.chip--quiet { flex: none; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 11.5px; color: var(--ink-2); background: var(--soft-2); }

/* ---------- The folder ---------- */

/* Six files, each with a peek at what's really in it, cropped like a window
   at the edge of a stage */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.fcard, .pcard {
  display: flex; flex-direction: column; padding: 8px; border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.fcard__peek { position: relative; height: 196px; overflow: hidden; border-radius: var(--radius-md); background: var(--tile); box-shadow: inset 0 0 0 0.5px var(--line); }
.fcard__peek pre, .fsheet {
  position: absolute; left: 20px; right: 20px; top: 20px; bottom: -14px; overflow: hidden;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--line), 0 10px 26px -12px rgba(0, 0, 0, 0.22);
}
.fcard__peek pre { right: -24px; font: 11.5px/18px var(--mono); color: var(--ink); white-space: pre; }
.fsheet { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.fsheet p + p { margin-top: 6px; }
.fsheet b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.fdoc__h { font-size: 14px; font-weight: 600; color: var(--ink); }
.fdoc__k { color: var(--ink-3); }
.fsheet--files { padding: 6px 14px; }
.fsheet--files p { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 36px; margin: 0 !important; font: 11.5px var(--mono); color: var(--ink); }
.fsheet--files p + p { border-top: 0.5px solid var(--line); }
.fcard__peek--shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 20px 20px 0; }
.fcard__peek--shots .shot { width: auto; height: auto; aspect-ratio: 16 / 10; }
.fcard__body { padding: 18px 14px 16px; }
.fcard h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fcard__name { font: 500 15px var(--mono); color: var(--ink); }
.fcard__who { font-size: 12px; font-weight: 500; color: var(--ink-3); text-align: right; }
.fcard__body p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Agents ---------- */

/* The picker on Monet's Poppies at Argenteuil (1873), laid out like the How it
   works stage. The card floats over the field; the poppies and the figures
   stay in view around it. */
.agents__side { margin-top: 44px; }
.agents__stage {
  position: relative; overflow: hidden; display: flex; justify-content: center;
  padding: 64px 40px 120px; border-radius: var(--radius-lg); background: #B8BBB0;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 30px 80px -40px rgba(60, 60, 40, 0.5);
}
.agents__stage .agentcard { width: min(100%, 520px); }
.agents__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }

/* Agent picker: one tile, three choices on a track, a glide that moves to
   the chosen one, and the command and note that follow it. */
.agentcard {
  --n: 0;
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px;
  background: linear-gradient(180deg, var(--sheen), transparent 60%), var(--tile);
  box-shadow: inset 0 1px 0 var(--edge), 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 24px 56px -16px rgba(30, 30, 20, 0.5), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.agentcard__tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.agentcard__glide {
  position: absolute; top: 0; left: 0; width: calc((100% - 12px) / 3); height: 100%;
  border-radius: var(--radius-sm); background: var(--glide);
  box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 16px -6px rgba(0, 0, 0, 0.14);
  transform: translateX(calc(var(--n) * (100% + 6px)));
  transition: transform 420ms var(--ease-drawer);
}
.agent {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 8px 14px; border-radius: var(--radius-sm); text-align: center;
  transition: transform 160ms var(--ease-out);
}
.agent:active { transform: scale(0.97); }
.agent__mark {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 10px;
  background: #FFFFFF; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.agent__mark svg { width: 24px; height: 24px; }
.agent__name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); transition: color 200ms ease; }
.agent__by { font-size: 12px; color: var(--ink-3); }
.agent.is-on .agent__name { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .agent:not(.is-on):hover .agent__name { color: var(--ink); } }

.copyline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 18px 18px 18px 20px; border-radius: var(--radius-sm); text-align: left;
  background: var(--surface); box-shadow: 0 0 0 0.5px var(--line);
  transition: transform 160ms var(--ease-out);
}
.copyline:active { transform: scale(0.98); }
.copyline code { font: 14px/22px var(--mono); color: var(--ink); padding-bottom: 3px; border-bottom: 1px dashed var(--line-2); overflow-wrap: anywhere; }
.copyline__action { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); transition: color 160ms ease; }
.copyline.is-copied .copyline__action { color: var(--ink); }
.copyline__icons { position: relative; width: 15px; height: 15px; }
.copyline__icons svg { position: absolute; inset: 0; width: 15px; height: 15px; transition: opacity 180ms ease, transform 260ms var(--ease-out), filter 180ms ease; }
.ico-check { opacity: 0; transform: scale(0.5); filter: blur(2px); }
.copyline.is-copied .ico-copy { opacity: 0; transform: scale(0.5); filter: blur(2px); }
.copyline.is-copied .ico-check { opacity: 1; transform: none; filter: none; }
.agentcard__note { padding: 6px 12px 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); min-height: 3em; }

/* The command, note, draft and template move when they change, they don't just swap */
[data-cmd], [data-agent-note] { display: inline-block; transition: opacity 140ms ease, transform 220ms var(--ease-out), filter 140ms ease; }
[data-agent-note] { display: block; }
.is-swap-out { opacity: 0; transform: translateY(-4px); filter: blur(2px); }
.is-swap-in { opacity: 0; transform: translateY(4px); filter: blur(2px); transition: none !important; }

/* ---------- Privacy ---------- */

/* Four promises, each shown with a working piece of Moneta's own menu */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.pcard { padding-bottom: 26px; }
.pcard__ui {
  display: grid; place-items: center; height: 220px; padding: 24px; border-radius: var(--radius-md);
  background: radial-gradient(120% 90% at 50% 0%, var(--surface), transparent 70%), var(--tile);
  box-shadow: inset 0 0 0 0.5px var(--line);
}
.pcard__ui .card { width: min(100%, 360px); font-size: 13px; }
.pcard h3 { margin: 22px 16px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pcard > p { margin: 8px 16px 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pcard__zero, .pcard__hidden { flex: none; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.pcard__hidden { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.pcard__hidden::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background: linear-gradient(135deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%); }
.appui .switch, .appui .seg > * { cursor: pointer; }
.appui .switch:active::after { width: 25px; }
.appui .switch.is-on:active::after { transform: translateX(9px); }

/* ---------- Pricing ---------- */

/* One plan. The price on a tile in the serif, the reasons beside it as plain
   rows between hairlines. */
.price { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; margin-top: 48px; }
.price__main {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--sheen), transparent 60%), var(--tile);
  box-shadow: inset 0 1px 0 var(--edge), 0 0 0 0.5px var(--line), var(--shadow-card);
}
.price__amount { display: flex; align-items: baseline; font-family: var(--serif); font-size: 104px; line-height: 0.9; letter-spacing: -0.04em; }
.price__cur { font-size: 0.46em; letter-spacing: 0; color: var(--ink-2); align-self: flex-start; margin-top: 0.12em; margin-right: 2px; }
.price__once { margin-left: 14px; font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.price__note { max-width: 32ch; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.price__fine { font-size: 13px; color: var(--ink-3); }
.price__again { margin-top: -6px; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .price__again:hover { color: var(--ink); } }
.price__list { display: flex; flex-direction: column; justify-content: center; padding: 8px 8px 8px 24px; }
.price__list li { padding: 18px 0; border-top: 0.5px solid var(--line-2); font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.price__list li:first-child { border-top: 0; }
.price__list b { font: 600 16px var(--sans); color: var(--ink); margin-right: 4px; }

/* ---------- Legal pages ---------- */

/* Privacy, terms, refunds: one readable column in the serif, headings in sans */
.doc { max-width: 760px; padding-top: clamp(56px, 8vw, 96px); padding-bottom: 96px; }
.doc .two-tone { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
.doc__updated { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.doc__body { margin-top: 40px; padding-top: 8px; border-top: 0.5px solid var(--line-2); }
.doc__body h2 { margin-top: 36px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.doc__body p, .doc__body li { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.doc__body p { margin-top: 12px; }
.doc__body ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.doc__body li + li { margin-top: 8px; }
.doc__body a, .footer a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.doc__body code { font: 14px var(--mono); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }

/* ---------- CTA + footer ---------- */

/* Closing panel: Impression, Sunrise across the full width, like the band at
   the top. The words sit at the bottom on the page's column, over a scrim that
   rises from the bottom edge, so the sun and its reflection stay clear above. */
.cta__panel {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: min(860px, 100svh); padding: 160px max(var(--gutter), calc((100% - 1072px) / 2)) 80px;
  background: #5C6A66; color: #FFF;
}
.cta__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 32%; }
.cta__panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(14, 20, 24, 0.7) 0%, rgba(14, 20, 24, 0.42) 30%, rgba(14, 20, 24, 0) 62%);
}
.cta__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; max-width: 560px; }
.cta__lede { max-width: 440px; }
.cta__icon { width: 72px; height: 72px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35)); }
.cta .two-tone { margin-top: 28px; font-size: clamp(36px, 5vw, 56px); line-height: 1.06; }
.cta .two-tone span:first-child { color: #FFF; }
.cta .two-tone span:last-child { color: rgba(255, 255, 255, 0.74); }
.cta__lede { margin-top: 18px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.cta .btn { margin-top: 28px; }
.btn--light {
  background: #FFFFFF; color: #151515;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 22px -6px rgba(0, 0, 0, 0.45);
}
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: #F3F3F2; } }
.cta__fine { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.cta__credit { position: absolute; right: max(var(--gutter), calc((100% - 1072px) / 2)); bottom: 80px; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, 0.8); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 0; padding-top: 28px; padding-bottom: 48px; font-size: 13px; color: var(--ink-3); }
.footer a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out), filter 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Thanks page ---------- */

/* Where checkout lands. The About window's band, then the key in the site's
   copy line, the download and three steps. */
.thanks { display: flex; justify-content: center; padding-top: clamp(28px, 6vw, 72px); padding-bottom: 72px; }
.thanks__card {
  width: min(560px, 100%); overflow: hidden; border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--line-2), 0 30px 80px -30px rgba(0, 0, 0, 0.3);
}
.thanks__band {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; height: 208px; padding: 0 32px 24px;
  background: linear-gradient(0deg, rgba(14, 20, 24, 0.66), rgba(14, 20, 24, 0.18) 60%, rgba(14, 20, 24, 0.1)),
    #2A5541 url("assets/art/water-lilies-1200.jpg") 50% 40% / cover;
}
.thanks__band img { width: 56px; height: 56px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35)); }
.thanks__band .two-tone { font-size: 34px; line-height: 1.08; }
.thanks__band .two-tone span:first-child { color: #FFF; }
.thanks__band .two-tone span:last-child { color: rgba(255, 255, 255, 0.74); }
.thanks__body { display: flex; flex-direction: column; gap: 22px; padding: 26px 32px 32px; }
.thanks__body [hidden] { display: none; }
.thanks__keyblock, .thanks__failed, .thanks__get { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.thanks__label { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.thanks__key { background: var(--tile); }
.thanks__key code { font-size: 15px; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.thanks__note { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.thanks__steps { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 6px; padding-top: 18px; border-top: 0.5px solid var(--line); counter-reset: step; }
.thanks__steps li { display: grid; grid-template-columns: 32px 1fr; font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.thanks__steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 500 12px/24px var(--mono); color: var(--ink-3); }

/* ---------- Small screens ---------- */

@media (max-width: 1000px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Compact: a second composition, not a squeeze. The terminal stays the hero,
     cropped off the right and bottom; the draft sits over its empty lower half;
     the menu stays closed, and the menu bar icon carries Moneta. */
  .scene { height: 620px; }
  .menubar__menus, .panel, .terminal__more { display: none; }
  .terminal { left: 0; top: 46px; width: calc(100% + 40px); height: 640px; font-size: 12px; line-height: 19px; }
  .draft { left: 0; right: 0; width: auto; top: 288px; font-size: 14px; line-height: 20px; }
  .band__bar { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .band__controls, .band__credit { grid-column: 1; }
  .band__credit { justify-self: center; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .price__list { padding: 8px 4px; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .fact, .fact:first-child { padding: 18px 0 0; border-left: 0; border-top: 0.5px solid var(--line-2); }
  .agents__side { margin-top: 32px; }
  .agents__stage { padding: 28px 20px 140px; }
  .stage { height: 460px; }
  .stage__view { padding: 24px 16px; }
  .filmstrip .shot:nth-child(n+3) { display: none; }
  .opened { display: none; }

  /* Templates: the list becomes one scrolling row above the card */
  .tpl { grid-template-columns: minmax(0, 1fr); height: auto; }
  .tpl__list { flex-direction: row; gap: 0; padding: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .tpl__list::-webkit-scrollbar { display: none; }
  .tpl__group { display: flex; }
  .tpl__label { display: none; }
  .tpl__names { flex-direction: row; }
  .tpl__item { flex: none; }
  .tpl__card { padding: 22px 20px 24px; overflow: visible; }
  .tpl__desc { font-size: 22px; }
  .tpl__post { flex: none; overflow: visible; }
  .tpl__post::after { display: none; }
}
@media (max-width: 760px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .menubar__app { display: none; }
  .log { font-size: 11px; line-height: 18px; }
  .scenario { padding: 0 10px; font-size: 13px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .tpl__meta { grid-template-columns: minmax(0, 1fr); }
  .cta__panel { min-height: 640px; padding: 120px var(--gutter) 48px; }
  .cta__art { object-position: 66% 30%; }
  .cta__panel::after { background: linear-gradient(0deg, rgba(14, 20, 24, 0.74) 0%, rgba(14, 20, 24, 0.4) 50%, rgba(14, 20, 24, 0) 78%); }
  .cta__credit { top: 16px; bottom: auto; right: var(--gutter); }
  .copyline code { font-size: 12.5px; }
  .copyline__hint { display: none; }
  .agent { padding: 14px 4px 12px; }
  .agent__name { font-size: 13px; }
}

/* ---------- Reduced motion: keep it still, keep it readable ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .scene .panel, .js .scene .draft, .js .scene .terminal__log li, .js .scene .terminal__more > *, .stage__view, .draft__body, .tpl__swap {
    transform: none !important; filter: none !important; transition: opacity 160ms linear !important; transition-delay: 0s !important;
  }
  .caret, .status i::after, .count.is-ticking { animation: none !important; }
  .agentcard__glide, .scenarios__glide, .tpl__glide { transition: none !important; }
  [data-cmd], [data-agent-note], .is-swap-out, .is-swap-in, .copyline__icons svg, .pause svg { transform: none !important; filter: none !important; }
  .js .step.is-active .step__bar i { animation: none; transform: scaleX(1); }
}
