/* ==========================================================================
   Tokens. The palette comes from the app icon: the night-blue ground, the
   bone white of the bird and the orange of its beak. Sky is the blue the app
   uses for timestamps. Orange means "recording / live" and the main action.
   ========================================================================== */
@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans.woff2?v=5ea3740633") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  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: "Mona Sans";
  src: url("fonts/mona-sans-ext.woff2?v=5658cdeea6") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Monaspace Neon";
  src: url("fonts/monaspace-neon-400.woff2?v=d90b15f2ba") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Monaspace Neon";
  src: url("fonts/monaspace-neon-500.woff2?v=bb628a5c37") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour */
  --ink: #0e1626;
  --ink-deep: #0a101c;
  --ink-2: #141f33;
  --ink-3: #1c2a44;
  --bone: #f2ece2;
  --bone-2: #e7dfd2;
  --beak: #f1692a;
  --beak-soft: #f58a55;
  --sky: #9ebcff;
  --sky-deep: #2c57b8;

  /* On ink */
  --fg: #efe9df;
  --fg-muted: #a9b1c2;
  --fg-faint: #7f899d;
  --line: rgba(190, 205, 235, 0.14);
  --line-strong: rgba(190, 205, 235, 0.28);
  /* On bone */
  --on-bone: #0e1626;
  --on-bone-muted: #4c5568;
  --line-bone: rgba(14, 22, 38, 0.14);
  --line-bone-strong: rgba(14, 22, 38, 0.34);

  /* Speakers (the app's own dot colours) */
  --who-0: #7fa8f8;
  --who-1: #6fd09a;
  --who-2: #ecbd55;

  /* The app window (Ternlo's dark theme) */
  --app-bg: #0f1116;
  --app-pane: #15181f;
  --app-line: rgba(255, 255, 255, 0.08);
  --app-fg: #e7e9ee;
  --app-muted: #8d93a0;
  --app-pill: #262e4d;
  --app-pill-fg: #b3c0ff;
  --app-link: #84a7f4;

  /* Type */
  --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Monaspace Neon", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-hero: clamp(3.1rem, 6.6vw + 0.4rem, 6.9rem);
  --fs-h2: clamp(2.1rem, 3.6vw + 0.6rem, 4.25rem);
  --fs-h3: clamp(1.35rem, 1vw + 1rem, 1.85rem);
  --fs-lede: clamp(1.08rem, 0.45vw + 0.98rem, 1.32rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Layout: one page edge for everything, content at most 1240px wide */
  --pad: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --edge: max(var(--pad), calc(50% - 620px));
  --nav-h: 56px;
  --gap-section: clamp(84px, 10vw, 156px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0, 0.18, 1);

  --radius: 14px;
  --radius-lg: 22px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 40px); scrollbar-color: #34425f var(--ink-deep); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-stretch: 100%;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, kbd { font-family: var(--mono); font-size: 0.92em; }
::selection { background: var(--beak); color: var(--ink); }
:focus-visible { outline: 2px solid var(--beak); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--bone); color: var(--ink); font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Fine film grain over the whole page, so large flat fields do not band. */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.055; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Headings: wide, heavy Mona Sans. The width axis is the display voice. */
.h2 { font-size: var(--fs-h2); line-height: 1.02; font-weight: 700; font-stretch: 112%; letter-spacing: -0.028em; text-wrap: balance; max-width: 16ch; }
.h3 { font-size: var(--fs-h3); line-height: 1.12; font-weight: 650; font-stretch: 108%; letter-spacing: -0.02em; text-wrap: balance; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--fg-muted); max-width: 56ch; text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6em; min-height: 52px; padding: 0 1.5em 0 1.25em; border-radius: 999px; font-weight: 600; font-stretch: 105%; font-size: 1.02rem; letter-spacing: -0.005em; white-space: nowrap; transition: transform 0.5s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.4s var(--ease); }
.btn .ico { transition: transform 0.5s var(--ease); }
.btn:hover .ico { transform: translateY(2px); }
.btn:active { transform: scale(0.98); }
.btn--ink { background: var(--ink); color: var(--bone); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 14px 30px -14px rgba(14, 22, 38, 0.7); }
.btn--ink:hover { background: #17233a; }
.btn--ink .ico { color: var(--beak-soft); }
.btn--bone { background: var(--bone); color: var(--ink); }
.btn--bone:hover { background: #fff; }
.btn--big { min-height: 64px; font-size: 1.15rem; padding: 0 1.8em 0 1.5em; }

/* Copyable command */
.cmd { container-type: inline-size; display: flex; align-items: stretch; max-width: 100%; min-width: 0; border-radius: 12px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.3; background: var(--cmd-bg, rgba(14, 22, 38, 0.07)); box-shadow: inset 0 0 0 1px var(--cmd-line, var(--line-bone)); color: var(--cmd-fg, var(--on-bone)); transition: box-shadow 0.25s, background-color 0.25s; cursor: copy; }
.cmd:hover { box-shadow: inset 0 0 0 1px var(--cmd-line-hover, var(--line-bone-strong)); }
.cmd__text { flex: 1; min-width: 0; padding: 13px 4px 13px 14px; font-size: clamp(9.5px, calc((100cqi - 72px) / 24.6), 14px); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.cmd__p { opacity: 0.5; margin-right: 0.7em; user-select: none; }
.cmd__btn { display: inline-flex; align-items: center; gap: 0.45em; padding: 0 14px 0 10px; min-width: 44px; font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; border-radius: 0 12px 12px 0; color: inherit; }
.cmd__ico { display: grid; }
.cmd__state { display: none; }
@container (min-width: 430px) { .cmd__state { display: inline; } }
.cmd.is-copied .cmd__state { display: inline; }
.cmd__ico--done { display: none; color: var(--cmd-ok, #17794a); }
.cmd.is-copied .cmd__ico--copy { display: none; }
.cmd.is-copied .cmd__ico--done { display: grid; animation: pop 0.5s var(--ease); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--beak); box-shadow: 0 0 0 0 rgba(241, 105, 42, 0.55); animation: rec 1.8s ease-out infinite; }
@keyframes rec { to { box-shadow: 0 0 0 9px rgba(241, 105, 42, 0); } }

/* Timestamps look the same everywhere: the app's bracketed time links. */
.ts { font-family: var(--mono); font-size: 0.84em; color: var(--app-link); white-space: nowrap; }

/* Scroll reveal. Content is visible by default; JS arms the hidden state. */
.js [data-reveal].is-armed { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal].is-armed { opacity: 1; transform: none; }
}

/* ==========================================================================
   Navigation: one floating bar. It is dark glass, so it reads on the bone
   and on the ink half of the hero alike.
   ========================================================================== */
.nav { position: fixed; z-index: 50; top: max(14px, env(safe-area-inset-top, 0px)); left: var(--edge); right: var(--edge); height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 8px 0 18px; border-radius: 999px; background: rgba(13, 20, 35, 0.9); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(190, 205, 235, 0.16), 0 18px 40px -22px rgba(0, 0, 0, 0.7); color: var(--fg); transition: transform 0.6s var(--ease); }
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-width: 44px; font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; font-size: 1.06rem; min-height: 44px; }
.nav__brand img { width: 30px; height: auto; transition: transform 0.7s var(--ease); }
.nav__brand:hover img { transform: translate(3px, -2px) rotate(-6deg); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 10px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; color: var(--fg-muted); transition: color 0.25s, background-color 0.25s; }
.nav__links a:hover { color: var(--fg); background: rgba(190, 205, 235, 0.08); }
.nav__links a[aria-current] { color: var(--fg); }
.nav__links a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--beak); }
.nav__end { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nav__lang { padding: 10px 12px; font-size: var(--fs-sm); font-weight: 500; color: var(--fg-muted); border-radius: 999px; transition: color 0.25s; }
.nav__lang:hover { color: var(--fg); }
.nav__lang-short { display: none; }
.nav__cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--beak); color: var(--ink-deep); font-weight: 650; font-size: var(--fs-sm); transition: background-color 0.25s, transform 0.4s var(--ease); }
.nav__cta:hover { background: var(--beak-soft); }
.nav__cta:active { transform: scale(0.97); }
.nav__toggle { display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; }
.nav__toggle-close { display: none; }

@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; padding-left: 14px; }
  .nav__toggle { display: grid; }
  .nav__links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px; border-radius: 22px; background: rgba(13, 20, 35, 0.97); box-shadow: inset 0 0 0 1px rgba(190, 205, 235, 0.16), 0 30px 60px -20px rgba(0, 0, 0, 0.8); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top; transition: opacity 0.25s, transform 0.45s var(--ease), visibility 0s 0.3s; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; color: var(--fg); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.45s var(--ease), visibility 0s; }
  .nav.is-open .nav__toggle-open { display: none; }
  .nav.is-open .nav__toggle-close { display: block; }
}
@media (max-width: 420px) {
  .nav__brand span { display: none; }
  .nav__lang { padding: 10px 8px; }
}
@media (max-width: 520px) {
  .nav__lang-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav__lang-short { display: inline; }
}

/* Without JavaScript the menu cannot open: the button is not shown, and on
   small screens the bar sits in the page flow with the section links as a
   second row, so it takes the room it needs at any text size. */
html:not(.js) .nav__toggle { display: none; }
@media (max-width: 960px) {
  html:not(.js) { --nav-h: 0px; }
  html:not(.js) .nav { position: relative; top: auto; left: auto; right: auto; margin: max(14px, env(safe-area-inset-top, 0px)) var(--edge) 0; height: auto; grid-template-rows: 56px auto; border-radius: 22px; }
  html:not(.js) .nav__links { position: static; grid-row: 2; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 0 4px 8px; background: none; box-shadow: none; border-radius: 0; opacity: 1; visibility: visible; transform: none; transition: none; }
  html:not(.js) .nav__links a { padding: 8px 10px; font-size: var(--fs-sm); }
  html:not(.js) .hero__a { padding-top: 40px; }
}

/* ==========================================================================
   Hero: two halves. Bone is the human half (your notes), ink is the machine
   half (the whole meeting). The tern flies across the seam, drawn in the
   opposite tone on each side.
   ========================================================================== */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 0; min-height: max(100svh, 700px); padding: calc(var(--nav-h) + clamp(54px, 9vh, 104px)) var(--edge) clamp(30px, 5.5vh, 64px); overflow: clip; background: linear-gradient(180deg, #16233f 0%, var(--ink) 62%); }
.hero__bone { position: absolute; z-index: -1; inset: 0 50% 0 0; background: linear-gradient(180deg, #f8f4ec 0%, var(--bone) 62%); }

.hero__title { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; font-size: var(--fs-hero); line-height: 0.93; font-weight: 780; font-stretch: 118%; letter-spacing: -0.038em; }
.hero__a { color: var(--on-bone); }
.hero__b { color: var(--bone); text-align: right; }
.ln { display: block; overflow: clip; overflow-clip-margin: 0.14em; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.ln__in { display: inline-block; will-change: transform; }

.hero__tern { position: absolute; z-index: 1; left: 50%; top: 51%; width: clamp(240px, 29vw, 480px); transform: translate(-50%, -50%); pointer-events: none; }
.hero__bird { position: relative; aspect-ratio: 900 / 744; --seam: 50%; will-change: transform; }
.tern { position: absolute; inset: 0; width: 100%; height: 100%; }
.tern--ink { clip-path: inset(0 calc(100% - var(--seam)) 0 0); }
.tern--bone { clip-path: inset(0 0 0 var(--seam)); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }

.hero__pitch { grid-column: 1; align-self: end; min-width: 0; width: min(380px, 29vw); color: var(--on-bone); }
.hero__lead { font-size: clamp(1.02rem, 0.4vw + 0.94rem, 1.2rem); line-height: 1.5; color: var(--on-bone); text-wrap: pretty; }
.get { margin-top: clamp(20px, 3.2vh, 34px); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 0; }
.get__or { margin-top: 16px; margin-bottom: 8px; font-size: var(--fs-xs); color: var(--on-bone-muted); }
.get .cmd { width: 100%; }
.get__meta { margin-top: 14px; font-size: var(--fs-xs); color: var(--on-bone-muted); }

.hero__live { grid-column: 2; align-self: end; justify-self: end; position: relative; min-width: 0; width: min(380px, 28vw); }
.live { border-radius: 18px; padding: 16px 18px 18px; background: rgba(190, 205, 235, 0.055); box-shadow: inset 0 0 0 1px var(--line); }
.live__bar { display: flex; align-items: center; justify-content: space-between; padding-right: 44px; font-size: var(--fs-xs); color: var(--fg-muted); }
.live.is-paused .rec-dot { animation: none; }
.live__rec { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--fg); }
.live__time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.live__tracks { margin-top: 14px; display: grid; gap: 8px; }
.live__track { display: grid; grid-template-columns: 6.6em 1fr; align-items: center; gap: 10px; font-size: 0.72rem; color: var(--fg-faint); }
.wave { width: 100%; height: 26px; }
.live__turns { position: relative; margin-top: 14px; min-height: 5.6em; }
/* The old turn leaves first, then the new one comes in: never two at once. */
.live__turn { position: absolute; inset: 0; display: grid; align-content: start; gap: 4px; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s; }
.live__turn[data-on] { opacity: 1; transform: none; transition: opacity 0.45s 0.24s, transform 0.8s var(--ease) 0.24s; }
.live__turn:not([data-on]) + .live__turn:not([data-on]) { transform: translateY(10px); }
.live__who { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 600; }
.live__who i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.live__turn[data-who="0"] .live__who i { background: var(--beak-soft); }
.live__who b { font-family: var(--mono); font-weight: 400; color: var(--fg-faint); }
.live__text { font-size: var(--fs-sm); line-height: 1.45; color: var(--fg-muted); }
.live__toggle { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--fg-faint); transition: color 0.25s; }
.live__toggle:hover { color: var(--fg); }
.live__toggle-play { display: none; }
.live__toggle[aria-pressed="true"] .live__toggle-pause { display: none; }
.live__toggle[aria-pressed="true"] .live__toggle-play { display: block; }
.hero__aside { margin-top: 16px; font-size: var(--fs-sm); line-height: 1.5; color: var(--fg-muted); text-wrap: pretty; }

/* Narrow screens: the halves stack. A short bone band carries the first
   phrase, the ink below carries the second one and everything else, so both
   halves of the idea and the download are on the first screen. */
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-height: 0; padding: 0 var(--pad) 44px; background: var(--ink); }
  .hero__title { display: contents; }
  .hero__bone { position: static; grid-row: 1; grid-column: 1; margin: 0 calc(-1 * var(--pad)); }
  .hero__a { grid-row: 1; grid-column: 1; padding: calc(var(--nav-h) + 54px) 0 clamp(50px, 14vw, 96px); }
  .hero__b { grid-row: 2; grid-column: 1; text-align: left; padding-top: clamp(70px, 20vw, 130px); }
  .hero__pitch { grid-row: 3; grid-column: 1; width: auto; max-width: 30rem; padding-top: 22px; color: var(--fg); --cmd-bg: rgba(190, 205, 235, 0.07); --cmd-line: var(--line-strong); --cmd-line-hover: rgba(190, 205, 235, 0.5); --cmd-fg: var(--fg); --cmd-ok: #6fd09a; }
  .hero__lead { color: var(--fg); }
  .hero__pitch .get__or, .hero__pitch .get__meta { color: var(--fg-muted); }
  .hero__pitch .btn--ink { background: var(--bone); color: var(--ink); box-shadow: none; }
  .hero__pitch .btn--ink .ico { color: #c2470f; }
  .hero__live { grid-row: 4; grid-column: 1; justify-self: stretch; width: auto; max-width: 30rem; margin-top: 44px; }
  .hero__tern { position: relative; grid-row: 2; grid-column: 1; left: auto; top: auto; align-self: start; justify-self: end; width: min(40vw, 240px); transform: translateY(-50%); }
  .tern--ink { clip-path: inset(0 0 calc(100% - var(--seam)) 0); }
  .tern--bone { clip-path: inset(var(--seam) 0 0 0); }
}

/* Without JavaScript the preview stands still and has no pause button. */
html:not(.js) .live__toggle { display: none; }
html:not(.js) .live .rec-dot { animation: none; }

/* ==========================================================================
   Statement: one paragraph that is read in by the scroll position.
   ========================================================================== */
.statement { padding: clamp(96px, 16vh, 190px) var(--edge) clamp(40px, 6vh, 80px); }
.statement__text { max-width: 21em; font-size: clamp(1.75rem, 3.5vw + 0.5rem, 4rem); line-height: 1.12; font-weight: 640; font-stretch: 108%; letter-spacing: -0.028em; text-wrap: pretty; }
.statement__text .w { color: var(--fg); opacity: var(--o, 1); }
/* The two tracks, in the colours of their waveforms, and a time stamp. */
.statement__text .w--mic { color: var(--beak-soft); }
.statement__text .w--sys { color: var(--sky); }
.statement__text .w--ts { font-family: var(--mono); font-size: 0.5em; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--app-link); padding: 0.2em 0.45em; border-radius: 0.4em; box-shadow: inset 0 0 0 1.5px rgba(132, 167, 244, 0.5); vertical-align: 0.35em; white-space: nowrap; }
.js .statement__text.is-split .w { --o: 0.14; }

/* ==========================================================================
   Story: the section stays in place while one meeting plays. On the left a
   chain of dots lists the five steps. Scrolling fills the line from the
   current dot to the next one. The text does not move while you scroll: when
   the line reaches the next dot, that step opens.
   ========================================================================== */
.story { padding-top: var(--gap-section); }
.story__head { padding: 0 var(--edge); display: grid; gap: 22px; }
.story__track { height: calc(100vh + var(--n) * 62vh); }
.story__pin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr); gap: clamp(36px, 5.5vw, 96px); align-items: center; padding: calc(var(--nav-h) + 26px) var(--edge) 22px; }

/* The box has a fixed height, so the list starts at the same place whichever step is open. */
.chain { align-self: center; height: min(33rem, 100%); display: flex; flex-direction: column; }
.step { position: relative; padding: 0 0 clamp(14px, 2.2vh, 24px) 34px; font-size: clamp(1.12rem, 0.55vw + 0.98rem, 1.42rem); }
.step__dot { position: absolute; left: 0; top: 0.32em; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color 0.4s, box-shadow 0.4s, transform 0.6s var(--ease); }
.step__line { position: absolute; left: 6px; top: calc(0.32em + 19px); bottom: calc(-0.32em + 6px); width: 1.5px; background: var(--line); border-radius: 1px; overflow: hidden; }
.step__line i { display: block; width: 100%; height: 100%; background: var(--beak); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.step:last-child .step__line { display: none; }
.step.is-active .step__dot, .step.is-done .step__dot { background: var(--beak); box-shadow: inset 0 0 0 1.5px var(--beak); }
.step.is-active .step__dot { transform: scale(1.25); box-shadow: inset 0 0 0 1.5px var(--beak), 0 0 0 5px rgba(241, 105, 42, 0.18); }
.step__title { font-size: 1em; line-height: 1.16; font-weight: 700; font-stretch: 110%; letter-spacing: -0.02em; text-wrap: balance; color: #8d96aa; transition: color 0.5s var(--ease-soft); }
.step.is-active .step__title { color: var(--fg); }
.step__time { display: inline-block; margin-left: 0.3em; font-family: var(--mono); font-size: 12px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--fg-faint); vertical-align: 0.25em; white-space: nowrap; transition: color 0.5s; }
.step.is-active .step__time { color: var(--beak-soft); }
/* The body opens and closes by its own height (grid rows 0fr to 1fr). */
.step__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.step.is-active .step__more { grid-template-rows: 1fr; }
.step__body { min-height: 0; overflow: hidden; max-width: 40ch; font-size: var(--fs-body); line-height: 1.5; color: var(--fg-muted); text-wrap: pretty; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.7s var(--ease); }
.step__body::before { content: ""; display: block; height: 10px; }
.step.is-active .step__body { opacity: 1; transform: none; transition: opacity 0.5s 0.15s, transform 0.8s var(--ease) 0.1s; }

.story__stage { min-width: 0; }
.stage { position: relative; display: grid; gap: 14px; padding-top: calc(var(--nav-h) * 0.6); }
.stage__note { font-size: var(--fs-xs); color: var(--fg-muted); text-align: right; }

/* ---- The window. Sizes inside are in em, so the whole thing scales. ---- */
.win { position: relative; display: grid; grid-template-rows: 2.6em minmax(0, 1fr); width: 100%; aspect-ratio: 16 / 10.6; max-height: calc(100vh - var(--nav-h) - 110px); margin-inline: auto; border-radius: 1em; overflow: hidden; background: var(--app-bg); color: var(--app-fg); font-size: clamp(10.5px, 0.86vw + 1px, 14.5px); line-height: 1.5; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 60px 110px -40px rgba(0, 0, 0, 0.85), 0 30px 50px -36px rgba(0, 0, 0, 0.7); container-type: inline-size; }
.win__bar { position: relative; display: flex; align-items: center; padding: 0 1em; }
.win__lights { display: inline-flex; gap: 0.55em; }
.win__lights i { width: 0.8em; height: 0.8em; border-radius: 50%; background: #3a3f4b; }
.win__lights i:nth-child(1) { background: #ec6a5e; }
.win__lights i:nth-child(2) { background: #f4bf4f; }
.win__lights i:nth-child(3) { background: #61c554; }
.win__name { position: absolute; left: 50%; transform: translateX(-50%); font-size: 0.9em; font-weight: 600; color: var(--app-muted); }
.win__body { display: grid; grid-template-columns: 1.22fr 1fr; gap: 0.6em; padding: 0 0.6em 0.6em; min-height: 0; }
.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pane--note { padding: 1.2em 1.4em 0 1.6em; }
.pane--side { padding: 0.9em 1.1em 0; border-radius: 0.8em; background: var(--app-pane); box-shadow: inset 0 0 0 1px var(--app-line); overflow: hidden; }
.note__title { font-size: 1.7em; font-weight: 680; font-stretch: 104%; letter-spacing: -0.02em; line-height: 1.15; }
.note__meta { display: flex; flex-wrap: wrap; gap: 1.1em; margin-top: 0.7em; font-size: 0.92em; color: var(--app-muted); }
.note__lang { padding: 0 0.55em; border-radius: 0.4em; background: var(--app-pill); color: var(--app-pill-fg); font-weight: 600; }
.tabs { display: flex; gap: 0.35em; margin-top: 1.3em; }
.pane--side .tabs { margin-top: 0; }
.tab { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.42em 0.8em; border-radius: 0.6em; font-weight: 560; color: var(--app-muted); transition: background-color 0.3s, color 0.3s; }
.tab .ico { width: 1.1em; height: 1.1em; }
.tab.is-on { background: var(--app-pill); color: var(--app-pill-fg); }
.views { position: relative; flex: 1; min-height: 0; margin-top: 1.1em; }
.pane--side .views { --fade: 0em; overflow: hidden; margin-inline: -0.6em; padding-inline: 0.6em; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.1em, #000 calc(100% - var(--fade) - 2.4em), transparent calc(100% - var(--fade))); mask-image: linear-gradient(to bottom, transparent 0, #000 1.1em, #000 calc(100% - var(--fade) - 2.4em), transparent calc(100% - var(--fade))); }
/* While a bar floats over the pane, the text fades out above it. */
.win.has-bar .pane--side .views { --fade: 3.6em; }
.pane--side .view { inset: 0 0.6em; }
.view { position: absolute; inset: 0; }

.typed { position: relative; display: block; }
.typed__ghost { visibility: hidden; }
.typed__live { position: absolute; inset: 0; }
.typed.is-typing .typed__live::after { content: ""; display: inline-block; width: 0.1em; min-width: 1.5px; height: 1.05em; margin-left: 0.08em; vertical-align: -0.16em; background: var(--beak); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
html:not(.js) .typed__ghost, html.no-gsap .story .typed__ghost { visibility: visible; }

.view--notes { font-size: 1.14em; line-height: 2; }
.view--summary { opacity: 0; }
.sum__h { margin: 0 0 0.45em; font-size: 1.14em; font-weight: 680; }
.sum__list + .sum__h { margin-top: 1.25em; }
.sum__item { position: relative; margin: 0.4em 0; padding-left: 1.25em; line-height: 1.5; }
.sum__item::before { content: ""; position: absolute; left: 0.3em; top: 0.62em; width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--app-muted); }
.win .ts { border-radius: 0.35em; padding: 0.05em 0.15em; margin: 0 -0.15em; transition: background-color 0.3s, box-shadow 0.3s; }
.win .ts.is-hot { background: rgba(132, 167, 244, 0.24); box-shadow: 0 0 0 0.16em rgba(132, 167, 244, 0.24); color: #c9d9ff; }

.listen { position: absolute; inset: 0; display: grid; align-content: center; gap: 1em; padding-bottom: 4em; }
.listen__label { display: inline-flex; align-items: center; gap: 0.7em; font-weight: 600; }
.listen__track { display: grid; gap: 0.3em; font-size: 0.86em; color: var(--app-muted); }
.listen .wave { height: 3.2em; }
.turns { position: absolute; inset: 0 0 auto 0; padding-top: 0.5em; will-change: transform; }
.turn { padding: 0.5em 0.6em; margin: 0 -0.6em 0.25em; border-radius: 0.6em; opacity: 0; transition: background-color 0.4s; }
.turn.is-hot { background: rgba(132, 167, 244, 0.14); }
.turn__head { display: flex; align-items: center; gap: 0.6em; }
.turn__dot { width: 0.62em; height: 0.62em; border-radius: 50%; background: #5a606e; transition: background-color 0.5s; }
/* Like the app: colours go by order of first appearance (Leo, Ines, Maya). */
.win.is-labelled .turn[data-who="1"] .turn__dot { background: var(--who-0); }
.win.is-labelled .turn[data-who="2"] .turn__dot { background: var(--who-1); }
.win.is-labelled .turn[data-who="0"] .turn__dot { background: var(--who-2); }
.turn__name { display: grid; font-weight: 650; max-width: 0; margin-right: -0.6em; overflow: hidden; white-space: nowrap; transition: max-width 0.6s var(--ease), margin 0.6s var(--ease); }
.win.is-labelled .turn__name { max-width: 8em; margin-right: 0; }
.turn__anon, .turn__real { grid-area: 1 / 1; opacity: 0; }
.turn__time { font-family: var(--mono); font-size: 0.86em; color: var(--app-muted); }
.turn__sug { display: inline-flex; align-items: center; gap: 0.35em; margin-left: auto; padding: 0.12em 0.55em 0.12em 0.7em; border-radius: 1em; font-size: 0.86em; font-weight: 600; color: #bfe9d0; background: rgba(111, 208, 154, 0.14); box-shadow: inset 0 0 0 1px rgba(111, 208, 154, 0.4); opacity: 0; white-space: nowrap; }
.turn__sug .ico { width: 1em; height: 1em; }
.turn__text { margin-top: 0.15em; color: #c3c7d0; line-height: 1.5; }

.view--chat { opacity: 0; display: flex; flex-direction: column; gap: 1.1em; }
.chat__q { align-self: flex-end; max-width: 88%; padding: 0.6em 0.9em; border-radius: 0.9em 0.9em 0.25em 0.9em; background: var(--app-pill); color: #dfe5ff; }
.chat__a { display: grid; gap: 0.8em; line-height: 1.55; }
.chat__src { display: flex; flex-wrap: wrap; gap: 0.45em; }
.chip { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.65em; border-radius: 0.55em; font-size: 0.88em; color: var(--app-link); box-shadow: inset 0 0 0 1px rgba(132, 167, 244, 0.35); }
.chip .ico { width: 1em; height: 1em; }

.recbar { position: absolute; left: 50%; bottom: 1.1em; display: grid; justify-items: center; transform: translateX(-50%); }
.recbar > * { grid-area: 1 / 1; display: flex; align-items: center; gap: 1em; height: 3em; padding: 0 0.6em 0 1.1em; border-radius: 1.5em; background: #1c2029; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1.2em 2.4em -0.8em rgba(0, 0, 0, 0.8); white-space: nowrap; }
.recbar__meter { display: inline-flex; align-items: flex-end; gap: 0.18em; height: 1.1em; color: var(--app-muted); }
.recbar__meter .ico { width: 1.1em; height: 1.1em; margin-right: 0.2em; }
.recbar__meter i { width: 0.2em; height: var(--h, 30%); border-radius: 0.1em; background: #6fd09a; }
.recbar__time { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.3em 0.8em; border-radius: 1em; box-shadow: inset 0 0 0 1px rgba(241, 105, 42, 0.55); font-family: var(--mono); font-variant-numeric: tabular-nums; color: #ffb894; }
.recbar__time b { font-weight: 500; }
.recbar__stop { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: rgba(241, 105, 42, 0.16); color: var(--beak); }
.recbar__stop .ico { width: 1.2em; height: 1.2em; }
.recbar__pass { opacity: 0; padding-right: 1.1em; font-weight: 560; }
.recbar__track { width: 7em; height: 0.3em; border-radius: 0.15em; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.recbar__track i { display: block; height: 100%; background: var(--who-1); transform-origin: left; transform: scaleX(0); }

/* Without JS the window shows the finished meeting. */
html:not(.js) .turn, html.no-gsap .turn, html:not(.js) .turn__real, html.no-gsap .turn__real, html:not(.js) .view--summary, html.no-gsap .view--summary { opacity: 1; }
html:not(.js) .view--notes, html.no-gsap .view--notes, html:not(.js) .listen, html.no-gsap .listen, html:not(.js) .recbar, html.no-gsap .recbar { display: none; }

/* Small screens: the window on top, a row of dots below it, then the text of
   the current step. Only the dots and the text change. */
@media (max-width: 899px) {
  .story__track { height: calc(100svh + var(--n) * 58svh); }
  .story__pin { height: 100svh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: calc(var(--nav-h) + max(14px, env(safe-area-inset-top, 0px)) + 12px) var(--pad) 14px; }
  .story__stage { order: -1; }
  .stage { padding-top: 0; gap: 0; }
  .stage__note { display: none; }
  .win { aspect-ratio: auto; height: min(44svh, 400px); font-size: clamp(11.5px, 1.55vw, 13.5px); }
  .win__body { grid-template-columns: 100% 100%; gap: 0.6em; transform: translateX(calc(var(--pane, 0) * (-100% + 0.6em))); }
  .pane--note { padding: 0.8em 1em 0 1.1em; }
  .chain { height: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; grid-template-rows: auto auto; row-gap: 16px; align-self: start; }
  .step { display: contents; }
  .step__dot { position: static; grid-row: 1; grid-column: var(--i); align-self: center; }
  .step__line { position: static; grid-row: 1; grid-column: var(--i); align-self: center; width: auto; height: 1.5px; margin: 0 8px 0 23px; }
  .step__line i { transform-origin: left; transform: scaleX(var(--fill, 0)); }
  .step__text { grid-row: 2; grid-column: 1 / -1; opacity: 0; transform: translateY(14px); transition: opacity 0.25s, transform 0.6s var(--ease); pointer-events: none; }
  .step.is-active .step__text { opacity: 1; transform: none; transition: opacity 0.45s 0.12s, transform 0.8s var(--ease) 0.12s; pointer-events: auto; }
  .step__more { grid-template-rows: 1fr; }
  .step__body { opacity: 1; transform: none; }
}

/* Without JS the section is not pinned and every step is open. */
html:not(.js) .story__track, html.no-gsap .story__track { height: auto; }
html:not(.js) .story__pin, html.no-gsap .story__pin { position: static; height: auto; }
html:not(.js) .chain, html.no-gsap .chain { height: auto; }
html:not(.js) .step__more, html.no-gsap .step__more { grid-template-rows: 1fr; }
html:not(.js) .step__body, html.no-gsap .step__body, html:not(.js) .step__text, html.no-gsap .step__text { opacity: 1; transform: none; }
html:not(.js) .step__title, html.no-gsap .step__title { color: var(--fg); }
@media (max-width: 899px) {
  html:not(.js) .chain, html.no-gsap .chain { display: block; }
  html:not(.js) .step, html.no-gsap .step { display: block; }
  html:not(.js) .step__dot, html.no-gsap .step__dot, html:not(.js) .step__line, html.no-gsap .step__line { display: none; }
  html:not(.js) .step, html.no-gsap .step { padding: 0 0 20px; }
}

/* Without JS, also show the names and the tab that matches the finished state. */
html:not(.js) .turn__name, html.no-gsap .turn__name { max-width: 8em; margin-right: 0; }
html:not(.js) .turn[data-who="1"] .turn__dot, html.no-gsap .turn[data-who="1"] .turn__dot { background: var(--who-0); }
html:not(.js) .turn[data-who="2"] .turn__dot, html.no-gsap .turn[data-who="2"] .turn__dot { background: var(--who-1); }
html:not(.js) .turn[data-who="0"] .turn__dot, html.no-gsap .turn[data-who="0"] .turn__dot { background: var(--who-2); }
html:not(.js) .tab[data-tab="notes"], html.no-gsap .tab[data-tab="notes"] { background: none; color: var(--app-muted); }
html:not(.js) .tab[data-tab="summary"], html.no-gsap .tab[data-tab="summary"] { background: var(--app-pill); color: var(--app-pill-fg); }

/* ==========================================================================
   Privacy: a full bone field. The diagram shows what stays on the Mac.
   ========================================================================== */
.privacy { padding: var(--gap-section) var(--edge); background: var(--bone); color: var(--on-bone); }
.privacy ::selection { background: var(--ink); color: var(--bone); }
.privacy__head { display: grid; gap: 26px; }
.privacy .h2 { max-width: 14ch; }
.privacy .lede { color: var(--on-bone-muted); max-width: 60ch; }

/* Two ways to run Ternlo, side by side. In each, the box is the Mac. On the
   right, the steps that use a cloud model reach out of the box. */
.modes { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 40px clamp(28px, 4vw, 64px); align-items: start; }
.mode { display: grid; gap: 18px; }
.mode__title { font-size: var(--fs-h3); line-height: 1.1; font-weight: 700; font-stretch: 110%; letter-spacing: -0.022em; }
.mode__map { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.mode--cloud .mode__map { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) clamp(36px, 5vw, 84px) minmax(0, 1.25fr); }
.mode__map::before { content: ""; grid-column: 1 / 3; grid-row: 1 / 7; margin-bottom: -10px; border-radius: 24px; background: #fbf8f2; box-shadow: 0 0 0 1.5px var(--ink), 0 40px 70px -50px rgba(14, 22, 38, 0.55); }
.mode__label { grid-row: 1; padding: 20px 0 12px; font-size: var(--fs-sm); font-weight: 700; font-stretch: 108%; z-index: 1; }
.mode__label--mac { grid-column: 1 / 3; padding-left: 22px; }
.mode__label--out { grid-column: 4; }
.mode__rows { display: contents; }
.mode__row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 72px; z-index: 1; font-size: var(--fs-sm); }
.mode__row:nth-child(1) { grid-row: 2; }
.mode__row:nth-child(2) { grid-row: 3; }
.mode__row:nth-child(3) { grid-row: 4; }
.mode__row:nth-child(4) { grid-row: 5; }
.mode__row:nth-child(5) { grid-row: 6; }
.mode__step, .mode__cell { align-self: stretch; display: flex; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-bone); }
.mode__step { margin-left: 22px; padding-right: 14px; font-weight: 650; }
.mode__cell { padding-right: 18px; color: var(--on-bone-muted); }
.mode__cell--stays { color: #17633f; font-weight: 600; }
.mode__row--out .mode__cell { color: var(--on-bone); }
.mode__wire { position: relative; align-self: stretch; }
.mode__wire i { position: absolute; top: 50%; left: -8px; right: 12px; height: 1.5px; background: var(--ink); transform-origin: left; }
.mode__wire i::after { content: ""; position: absolute; right: -1px; top: -4px; width: 9px; height: 9px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); }
.mode__remote { font-weight: 650; }
.mode__sum { max-width: 46ch; font-weight: 600; text-wrap: pretty; }
.mode__names { display: block; margin-top: 6px; font-size: var(--fs-sm); font-weight: 400; color: var(--on-bone-muted); }
/* The lines out of the Mac draw themselves when the diagram comes into view. */
.js .mode__map.is-armed { opacity: 1; transform: none; }
.js .mode__map.is-armed .mode__wire i { transform: scaleX(0); }
.js .mode__map.is-armed .mode__remote { opacity: 0; transform: translateX(-10px); }
.js .mode__map.is-in .mode__wire i { transform: none; transition: transform 0.9s var(--ease) var(--wd, 0.2s); }
.js .mode__map.is-in .mode__remote { opacity: 1; transform: none; transition: opacity 0.5s calc(var(--wd, 0.2s) + 0.3s), transform 0.9s var(--ease) calc(var(--wd, 0.2s) + 0.3s); }
.mode__row:nth-child(4) { --wd: 0.38s; }
.mode__row:nth-child(5) { --wd: 0.56s; }

.facts { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.fact { padding: 22px 0 30px; border-top: 1px solid var(--line-bone-strong); }
.fact dt { font-weight: 700; font-stretch: 106%; font-size: 1.1rem; letter-spacing: -0.01em; }
.fact dd { margin-top: 8px; color: var(--on-bone-muted); text-wrap: pretty; }

@media (max-width: 1099px) {
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode--local { max-width: 34rem; }
}
@media (max-width: 760px) {
  .mode--cloud .mode__map { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .mode__label--out, .mode__wire { display: none; }
  .mode__row { min-height: 0; }
  .mode__row--out { grid-template-rows: auto auto; }
  .mode__row--out .mode__step, .mode__row--out .mode__cell { padding-bottom: 6px; }
  .mode__remote { grid-column: 1 / -1; margin: 0 14px 14px 22px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--bone); font-size: var(--fs-sm); }
  .mode__remote::before { content: "→ "; color: var(--beak-soft); }
  .js .mode__map.is-armed .mode__remote { opacity: 1; transform: none; }
}

/* ==========================================================================
   Features: six things that are special about Ternlo. Each tile carries a
   small picture of the feature at work, drawn in the app's own look.
   ========================================================================== */
.features { padding: var(--gap-section) var(--edge); }
.features__head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.tile { display: grid; grid-template-rows: 1fr auto; gap: clamp(20px, 2.4vw, 32px); min-width: 0; padding: clamp(20px, 2.2vw, 30px); border-radius: var(--radius-lg); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tile--screens { grid-column: span 7; }
.tile--agents { grid-column: span 5; }
.tile--chat { grid-column: span 5; }
.tile--clean { grid-column: span 7; }
.tile--outline, .tile--search { grid-column: span 6; }
.tile__visual { display: grid; align-items: center; min-width: 0; font-size: clamp(12px, 0.5vw + 9px, 14px); line-height: 1.5; color: var(--app-fg); }
.tile__text { display: grid; gap: 8px; align-content: start; }
.tile__title { font-size: var(--fs-h3); line-height: 1.12; font-weight: 700; font-stretch: 108%; letter-spacing: -0.022em; text-wrap: balance; }
.tile__body { color: var(--fg-muted); max-width: 52ch; text-wrap: pretty; }
.tile__facts { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.tile__facts li { padding: 5px 11px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 560; box-shadow: inset 0 0 0 1px var(--line-strong); }
.features__note { margin-top: 14px; font-size: var(--fs-xs); color: var(--fg-muted); text-align: right; }

/* The small pictures share one panel look. */
.fx { border-radius: 1em; background: var(--app-bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); padding: 1.3em 1.4em; min-width: 0; }
.fx-label { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: 0.86em; font-weight: 600; color: var(--app-muted); }
.fx-ok { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.1em 0.6em 0.1em 0.45em; border-radius: 1em; color: #bfe9d0; background: rgba(111, 208, 154, 0.14); box-shadow: inset 0 0 0 1px rgba(111, 208, 154, 0.4); }
.fx-ok .ico { width: 1em; height: 1em; }
.fx .ts { color: var(--app-link); }

.fx-screen { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.4em; align-items: center; }
.fx-screen__shot { position: relative; aspect-ratio: 16 / 10; padding: 1.2em 1.3em; border-radius: 0.7em; background: #f4f1ea; color: #1b2230; display: grid; align-content: center; gap: 0.7em; }
.fx-screen__slide { font-size: 1.15em; font-weight: 700; font-stretch: 106%; letter-spacing: -0.015em; }
.fx-screen__shot ul { display: grid; gap: 0.45em; font-size: 0.92em; }
.fx-screen__shot li { display: flex; align-items: center; gap: 0.6em; padding: 0.35em 0.6em; border-radius: 0.45em; }
.fx-screen__shot li i { flex: none; width: 0.85em; height: 0.85em; border-radius: 0.25em; background: #2c8a57; }
.fx-screen__shot li.is-open { box-shadow: inset 0 0 0 1.5px var(--beak); background: rgba(241, 105, 42, 0.1); font-weight: 600; }
.fx-screen__shot li.is-open i { background: none; box-shadow: inset 0 0 0 1.5px #1b2230; }
.fx-screen__tag { position: absolute; left: 0.8em; top: -0.75em; padding: 0.1em 0.6em; border-radius: 0.5em; background: var(--app-pill); color: var(--app-pill-fg); font-family: var(--mono); font-size: 0.82em; }
.fx-screen__note { display: grid; gap: 0.8em; }
.fx-screen__line { font-size: 1.05em; }
.fx-v { display: inline-block; padding: 0 0.45em; border-radius: 0.4em; background: var(--app-pill); color: var(--app-pill-fg); font-family: var(--mono); font-size: 0.82em; }

.tile--screens .tile__visual { font-size: clamp(12px, 0.62vw + 9.5px, 16px); }
.tile--agents .term { font-size: 0.92em; box-shadow: 0 0 0 1px rgba(190, 205, 235, 0.14); }
.fx-chat { display: flex; flex-direction: column; gap: 1em; }

.fx-clean { display: grid; gap: 0; padding-block: 0.6em; }
.fx-clean li { display: grid; grid-template-columns: minmax(0, 1fr) 2.6em minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 0.8em; padding: 0.75em 0; }
.fx-clean li + li { border-top: 1px solid var(--app-line); }
.fx-clean__from { color: var(--app-muted); text-decoration: line-through; text-decoration-color: rgba(141, 147, 160, 0.6); overflow-wrap: anywhere; }
.fx-clean__arrow { position: relative; height: 1px; background: #5a606e; }
.fx-clean__arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid #8d93a0; border-right: 1px solid #8d93a0; transform: rotate(45deg); }
.fx-clean__to { font-weight: 650; }
.fx-clean__tag { justify-self: end; text-align: right; font-size: 0.86em; color: #bfe9d0; }

.fx-outline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.9em; align-items: center; padding: 0; background: none; box-shadow: none; }
.fx-outline__page, .fx-outline__note { display: grid; gap: 0.6em; align-content: start; min-height: 11.5em; padding: 1.1em 1.2em; border-radius: 0.9em; }
.fx-outline__page { background: #f4f1ea; color: #1b2230; }
.fx-outline__page .fx-label { color: #4f5564; }
.fx-outline__page ul { display: grid; gap: 0.35em; padding-left: 1.1em; list-style: disc; font-size: 0.95em; }
.fx-outline__note { background: var(--app-bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.fx-outline__title { font-weight: 700; font-stretch: 104%; letter-spacing: -0.012em; }
.fx-outline__sum { display: grid; gap: 0.5em; font-size: 0.86em; font-weight: 650; color: var(--app-muted); }
.fx-outline__sum i { height: 0.5em; border-radius: 0.25em; background: rgba(255, 255, 255, 0.1); }
.fx-outline__sum i:nth-of-type(2) { width: 82%; }
.fx-outline__sum i:nth-of-type(3) { width: 64%; }
.fx-outline__link { display: grid; gap: 1.2em; justify-items: center; font-size: 0.8em; color: var(--fg-muted); }
.fx-outline__dir { position: relative; display: block; width: 8.5em; padding-bottom: 0.7em; text-align: center; line-height: 1.25; }
.fx-outline__dir::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg-faint); }
.fx-outline__dir::after { content: ""; position: absolute; bottom: -3px; width: 6px; height: 6px; border-top: 1px solid var(--fg-muted); border-right: 1px solid var(--fg-muted); }
.fx-outline__dir--in::after { right: 0; transform: rotate(45deg); }
.fx-outline__dir--out::after { left: 0; transform: rotate(-135deg); }

.fx-search { display: grid; gap: 0.4em; }
.fx-search__field { display: flex; align-items: center; gap: 0.7em; padding: 0.65em 0.9em; border-radius: 0.7em; background: var(--app-pane); box-shadow: inset 0 0 0 1px rgba(132, 167, 244, 0.5); }
.fx-search__field .ico { width: 1.15em; height: 1.15em; color: var(--app-muted); }
.fx-search li { display: grid; grid-template-columns: 1fr auto; gap: 0.15em 1em; padding: 0.8em 0.2em; }
.fx-search li + li { border-top: 1px solid var(--app-line); }
.fx-search__title { grid-column: 1; grid-row: 1; font-weight: 650; }
.fx-search__text { grid-column: 1 / -1; color: #c3c7d0; }
.fx-search__tag { grid-column: 2; grid-row: 1; align-self: center; padding: 0.05em 0.6em; border-radius: 1em; font-size: 0.82em; color: var(--app-pill-fg); background: var(--app-pill); }
.fx-search li:first-child .fx-search__tag { color: #ffd0b5; background: rgba(241, 105, 42, 0.2); }

/* The terminal */
.term { border-radius: var(--radius); background: #080c15; box-shadow: 0 0 0 1px rgba(190, 205, 235, 0.14), 0 50px 90px -50px rgba(0, 0, 0, 0.9); font-family: var(--mono); font-size: clamp(0.78rem, 0.3vw + 0.72rem, 0.92rem); line-height: 1.6; overflow: hidden; }
.term__bar { position: relative; display: flex; align-items: center; height: 38px; padding: 0 14px; font-size: 12px; border-bottom: 1px solid rgba(190, 205, 235, 0.1); }
.term__name { position: absolute; left: 50%; transform: translateX(-50%); color: var(--fg-faint); }
.term__body { display: grid; gap: 14px; padding: clamp(18px, 2.4vw, 28px); align-content: start; }
.term__prompt { display: flex; gap: 0.8em; color: var(--fg); }
.term__caret { color: var(--beak); }
.term .typed { flex: 1; }
.term__call { display: grid; grid-template-columns: auto 1fr; gap: 0 0.8em; color: var(--fg-muted); }
.term__tool { color: var(--who-1); }
.term__tool::before { content: "● "; }
.term__arg { color: var(--fg-faint); overflow-wrap: anywhere; }
.term__res { grid-column: 1 / -1; padding-left: 1.3em; color: var(--fg-faint); }
.term__res::before { content: "⎿ "; }
.term__answer { color: var(--fg); font-family: var(--sans); font-size: 1.08em; line-height: 1.55; }
.term__cite { justify-self: start; padding: 0.15em 0.55em; border-radius: 0.4em; color: var(--app-link); box-shadow: inset 0 0 0 1px rgba(132, 167, 244, 0.45); }
.js .term.is-armed .term__call, .js .term.is-armed .term__answer, .js .term.is-armed .term__cite { opacity: 0; transform: translateY(8px); }
.term.is-play .term__call, .term.is-play .term__answer, .term.is-play .term__cite { opacity: 1 !important; transform: none !important; transition: opacity 0.5s, transform 0.8s var(--ease); }
.term.is-play .term__call:nth-of-type(2) { transition-delay: 0.8s; }
.term.is-play .term__call:nth-of-type(3) { transition-delay: 1.2s; }
.term.is-play .term__answer { transition-delay: 1.7s; }
.term.is-play .term__cite { transition-delay: 2s; }

@media (max-width: 1099px) {
  .tile--screens, .tile--clean { grid-column: 1 / -1; }
  .tile--agents, .tile--chat, .tile--outline, .tile--search { grid-column: span 6; }
}
@media (max-width: 760px) {
  .tile, .tile--agents, .tile--chat, .tile--outline, .tile--search { grid-column: 1 / -1; }
  .fx-screen { grid-template-columns: 1fr; }
  .fx-clean li { grid-template-columns: minmax(0, 1fr) 1.8em minmax(0, 1fr); }
  .fx-clean__tag { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .fx-outline { grid-template-columns: 1fr; }
  .fx-outline__page, .fx-outline__note { min-height: 0; }
  .fx-outline__link { grid-auto-flow: column; justify-content: center; gap: 1.6em; }
  .fx-outline__dir { width: auto; padding-bottom: 0; }
  .fx-outline__dir::before { position: static; display: inline; background: none; height: auto; margin-right: 0.4em; }
  .fx-outline__dir--in::before { content: "↓"; }
  .fx-outline__dir--out::before { content: "↑"; }
  .fx-outline__dir::after { display: none; }
}

/* ==========================================================================
   Real screenshots
   ========================================================================== */
.real { padding: var(--gap-section) var(--edge); background: var(--ink-deep); }
.real__head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); }
.compare { display: grid; gap: 12px; }
.compare__tags { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 600; color: var(--fg-muted); }
.real__note { color: var(--fg-faint); }
.compare__frame { position: relative; --pos: 50%; border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden; background: var(--app-bg); box-shadow: 0 0 0 1px rgba(190, 205, 235, 0.16), 0 70px 120px -60px rgba(0, 0, 0, 0.9); aspect-ratio: 2880 / 1800; }
.compare__img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* The window buttons macOS draws over the top left corner of the app. */
.compare__frame, .shot__frame { container-type: inline-size; }
.lights { position: absolute; left: 1.05cqw; top: 1.05cqw; display: flex; gap: 0.55cqw; pointer-events: none; }
.lights i { width: 0.83cqw; height: 0.83cqw; border-radius: 50%; background: #ec6a5e; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.lights i:nth-child(2) { background: #f4bf4f; }
.lights i:nth-child(3) { background: #61c554; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--beak); pointer-events: none; }
.compare__handle i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--beak); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7); }
.compare__handle i::before, .compare__handle i::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-left: 2px solid var(--ink-deep); border-bottom: 2px solid var(--ink-deep); }
.compare__handle i::before { left: 11px; transform: rotate(45deg); }
.compare__handle i::after { right: 11px; transform: rotate(-135deg); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare__range:focus-visible + .x, .compare__frame:has(.compare__range:focus-visible) .compare__handle i { outline: 2px solid var(--bone); outline-offset: 3px; }
figcaption { font-size: var(--fs-sm); color: var(--fg-muted); max-width: 64ch; }
/* Two details, cropped so the text can be read: each frame shows a part of
   the window at about the size it has in the app. */
.shots { margin-top: clamp(40px, 6vw, 90px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 44px); align-items: start; }
.shot { display: grid; gap: 14px; }
.shot__frame { position: relative; aspect-ratio: 4 / 3; border-radius: clamp(8px, 1vw, 14px); overflow: hidden; box-shadow: 0 0 0 1px rgba(190, 205, 235, 0.16), 0 50px 90px -50px rgba(0, 0, 0, 0.9); background: var(--app-bg); }
.shot__frame img { width: 190%; max-width: none; }
.shot--library img { margin: -7% 0 0 -35%; }
.shot--home img { margin: -1.5% 0 0 -41%; }
/* A whole window is unreadable on a small screen: show the part that matters, larger. */
@media (max-width: 899px) {
  .shots { grid-template-columns: 1fr; }
  .compare__frame { aspect-ratio: 4 / 3; }
  .compare__img { width: 200%; max-width: none; height: auto; margin: 0 0 0 -37%; }
  .lights { display: none; }
}
@media (max-width: 600px) {
  .compare__frame, .shot__frame { aspect-ratio: 1 / 1.08; }
  .compare__img, .shot__frame img { width: 300%; max-width: none; height: auto; margin: 0 0 0 -57%; }
  .shot--home .shot__frame img { margin-left: -100%; }
}

/* ==========================================================================
   Details
   ========================================================================== */
.details { margin-top: clamp(70px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 30px clamp(36px, 6vw, 110px); align-items: start; }
.details__title { font-size: var(--fs-h3); line-height: 1.1; font-weight: 700; font-stretch: 110%; letter-spacing: -0.022em; text-wrap: balance; max-width: 12ch; }
.details__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.detail { padding: 16px 0 20px; border-top: 1px solid var(--line); }
.detail dt { font-weight: 650; }
.detail dd { margin-top: 4px; color: var(--fg-muted); font-size: var(--fs-sm); text-wrap: pretty; }
@media (max-width: 899px) { .details { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .details__list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Questions
   ========================================================================== */
.faq { padding: var(--gap-section) var(--edge); display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 36px clamp(36px, 6vw, 110px); align-items: start; }
.faq .h2 { position: sticky; top: calc(var(--nav-h) + 60px); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 14px 0; cursor: pointer; list-style: none; font-size: var(--fs-lede); font-weight: 620; font-stretch: 104%; letter-spacing: -0.012em; transition: color 0.25s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--beak-soft); }
.qa summary .ico { width: 22px; height: 22px; color: var(--fg-faint); transition: transform 0.5s var(--ease), color 0.25s; }
.qa[open] summary .ico { transform: rotate(45deg); color: var(--beak); }
.qa__a { padding: 0 44px 26px 0; color: var(--fg-muted); max-width: 66ch; text-wrap: pretty; }
.qa[open] .qa__a { animation: qa 0.6s var(--ease); }
@keyframes qa { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 899px) { .faq { grid-template-columns: 1fr; } .faq .h2 { position: static; } }

/* ==========================================================================
   Install: the page ends on a full field of beak orange.
   ========================================================================== */
.install { position: relative; isolation: isolate; overflow: clip; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px clamp(36px, 6vw, 110px); align-items: end; padding: clamp(90px, 12vw, 180px) var(--edge) clamp(70px, 9vw, 130px); background: var(--beak); color: var(--ink-deep); }
.install ::selection { background: var(--ink); color: var(--bone); }
.install :focus-visible { outline-color: var(--ink); }
.install__title { font-size: clamp(3rem, 7.4vw, 7rem); line-height: 0.92; font-weight: 800; font-stretch: 120%; letter-spacing: -0.03em; text-wrap: balance; }
.install__body { margin-top: 22px; font-size: var(--fs-lede); font-weight: 520; max-width: 34ch; }
.install__get { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.install__size { font-size: var(--fs-sm); font-weight: 520; }
.install .btn--ink { background: var(--ink-deep); }
.install .btn--ink:hover { background: #16223a; }
.install__brew { margin-top: 22px; max-width: 30rem; }
.install { --cmd-bg: rgba(10, 16, 28, 0.1); --cmd-line: rgba(10, 16, 28, 0.3); --cmd-line-hover: rgba(10, 16, 28, 0.6); --cmd-fg: var(--ink-deep); --cmd-ok: var(--ink-deep); }
.install__side { display: grid; gap: 26px; z-index: 1; }
.steps { counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2em 1fr; padding: 14px 0; border-top: 1px solid rgba(10, 16, 28, 0.3); font-weight: 560; }
.steps li::before { content: counter(s); font-family: var(--mono); font-weight: 500; }
.install__req { font-size: var(--fs-sm); font-weight: 520; }
.install__req a { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.sha summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 600; }
.sha summary::-webkit-details-marker { display: none; }
.sha summary .ico { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.sha[open] summary .ico { transform: rotate(45deg); }
.sha__label { margin: 4px 0 8px; font-size: var(--fs-xs); font-weight: 600; }
.cmd--sha .cmd__text { font-size: 0.72rem; }
.install__tern { position: absolute; z-index: -1; right: -4%; top: -18%; width: min(46vw, 640px); opacity: 0.13; transform: rotate(-8deg); pointer-events: none; }
@media (max-width: 899px) { .install { grid-template-columns: 1fr; } .install__tern { width: 80vw; right: -24%; top: -6%; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink-deep); padding: clamp(56px, 7vw, 100px) var(--edge) 28px; overflow: clip; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer__line { font-size: var(--fs-lede); font-weight: 560; max-width: 20ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer__links a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--fg-muted); transition: color 0.25s; }
.footer__links a:hover { color: var(--fg); }
.footer__links .ico { width: 15px; height: 15px; opacity: 0.7; }
.footer__mark { display: flex; align-items: flex-end; justify-content: space-between; gap: 2vw; margin-top: clamp(40px, 7vw, 110px); line-height: 0.8; }
.footer__mark span { font-size: clamp(4.4rem, 20.5vw, 19.5rem); font-weight: 800; font-stretch: var(--stretch, 110%); letter-spacing: -0.01em; white-space: nowrap; color: var(--bone); margin-left: -0.04em; }
.footer__mark img { width: clamp(80px, 17vw, 290px); margin-bottom: 0.5vw; }
.footer__rights { margin-top: 28px; font-size: var(--fs-xs); color: var(--fg-faint); }

.js .route.is-armed .route__arrow i { transform: scaleX(0); }
.js .route.is-in .route__arrow i { transform: none; transition: transform 1.3s var(--ease) calc(var(--d, 0s) + 0.25s); }

/* Without JavaScript the slider cannot move, so only the dark screenshot shows. */
html:not(.js) .compare__top, html:not(.js) .compare__handle, html:not(.js) .compare__range, html:not(.js) .compare__tags { display: none; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { max-width: calc(46rem + 2 * var(--pad)); margin: 0 auto; padding: calc(var(--nav-h) + clamp(70px, 10vw, 130px)) var(--pad) var(--gap-section); color: var(--fg-muted); line-height: 1.65; }
.legal h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem); line-height: 1; font-weight: 760; font-stretch: 114%; letter-spacing: -0.032em; color: var(--fg); overflow-wrap: anywhere; hyphens: auto; }
.legal__date { margin-top: 14px; font-size: var(--fs-sm); color: var(--fg-faint); }
.legal h2 { margin-top: 2.6em; margin-bottom: 0.6em; font-size: 1.3rem; font-weight: 680; font-stretch: 106%; letter-spacing: -0.015em; color: var(--fg); }
.legal h3 { margin-top: 1.5em; margin-bottom: 0.3em; font-size: 1.02rem; font-weight: 650; color: var(--fg); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 0.8em; }
.legal ul { padding-left: 1.3em; list-style: disc; display: grid; gap: 0.35em; }
.legal ul::marker, .legal li::marker { color: var(--fg-faint); }
.legal strong { color: var(--fg); font-weight: 620; }
.legal a:not(.btn) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--beak); text-underline-offset: 3px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.legal a:not(.btn):hover { color: var(--beak-soft); }
.legal code { padding: 2px 6px; border-radius: 6px; background: rgba(190, 205, 235, 0.08); color: var(--fg); }
.legal--center { min-height: 78vh; display: grid; align-content: center; justify-items: start; gap: 18px; }
