/*
  Zirma's landing page. Colours come only from tokens.css (the app's file). Type, radii, lines and motion follow the
  app's style guide (Zirma repo, docs/design/style.md): system fonts, three weights, few lines, one easing curve,
  at most one solid colour per region, shadows only on things that float.
*/
/* The wordmark uses Geist Serif 1.9.2 by Vercel with Andrés Briganti and Mark Davis,
   github.com/vercel/geist-font, SIL Open Font License 1.1 (fonts/GeistSerif-OFL.txt). */
@font-face {
  font-family: "Geist Serif";
  src: url("fonts/GeistSerif-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --serif: Georgia, "Songti SC", STSong, serif;
  --display: "Geist Serif", Georgia, serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --w: 1120px;
  --safe-inline: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --gut: max(clamp(20px, 4vw, 40px), var(--safe-inline));
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, ol, dl, dd, figure, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
:focus-visible { outline: 2px solid var(--alf); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(var(--w), 100% - 2 * var(--gut)); margin-inline: auto; }
kbd { font: .6875rem var(--mono); color: var(--muted); }
@media (min-width: 541px) and (prefers-reduced-motion: no-preference) { html:not([data-still]) { scroll-behavior: smooth; } }

/* ── Controls ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); font-size: .9375rem; font-weight: 550; white-space: nowrap; transition: border-color 160ms var(--ease), filter 160ms var(--ease), transform 160ms var(--ease); }
.btn:hover { border-color: var(--muted); }
.btn.solid { border-color: transparent; background: var(--alf-solid); color: var(--on-alf); }
.btn.solid:hover { filter: brightness(1.08); }
.btn.sm { height: 30px; padding: 0 12px; border-radius: 8px; font-size: .8125rem; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-still]) :is(.btn, .nav-toggle, .scheme button, .minis, .brief-chrome button, .brief-replay) {
    transition: transform 200ms var(--ease), background-color 160ms ease, border-color 160ms ease, filter 160ms ease, box-shadow 160ms ease;
  }
  html:not([data-still]) :is(.btn, .nav-toggle, .scheme button, .minis, .brief-chrome button, .brief-replay):active {
    transform: translateY(1px) scale(.96); transition-duration: 75ms;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not([data-still]) .btn:hover:not(:active) { transform: translateY(-2px); }
}

/* ── Top bar: the app's, 52px ── */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-soft); }
.header-panel { display: contents; }
.nav-toggle span, .menu-cross, .nav-toggle[aria-expanded="true"] .menu-bars { display: none; }
.nav-toggle[aria-expanded="true"] .menu-cross { display: inline; }
.top-in { position: relative; display: flex; align-items: center; gap: 28px; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand svg { display: block; overflow: visible; }
.wordmark { font: 1.375rem/1 var(--display); letter-spacing: .01em; }
/* The blue square sits where Geist Serif dots the i, as in the app’s Wordmark.tsx. */
.wm-i { position: relative; display: inline-block; }
.wm-dot { position: absolute; left: .147em; top: .193em; width: .13em; height: .13em; transform: translate(-50%, -50%) rotate(25deg); background: var(--alf); }
.top-nav { display: flex; gap: 22px; margin-left: 8px; font-size: .875rem; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
.top-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.tool { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.tool:hover { background: var(--wash); color: var(--ink); }
.tool.icon { width: 30px; padding: 0; justify-content: center; }
.mac-nav { display: flex; align-items: center; gap: 4px; min-height: 40px; margin-left: 6px; padding: 2px 7px 2px 3px; border-radius: 9px; white-space: nowrap; }
.mac-nav:hover { background: var(--wash); }
.mac-nav img, .mac-release img { display: block; flex: none; filter: drop-shadow(0 1px 2px oklch(0 0 0 / .2)); }
.mac-nav span { display: grid; gap: 1px; line-height: 1.1; }
.mac-nav strong { font-size: .8125rem; font-weight: 600; }
.mac-nav small { color: var(--muted); font-size: .75rem; }
.scheme { display: flex; gap: 2px; padding: 2px; margin-inline: 4px; border-radius: 9px; background: var(--wash); }
.scheme button { display: grid; place-items: center; width: 28px; height: 24px; border-radius: 7px; color: var(--muted); transition: color 160ms var(--ease); }
.scheme button:hover { color: var(--ink); }
.scheme button[aria-pressed="true"] { background: var(--raise); color: var(--ink); box-shadow: 0 1px 2px oklch(0 0 0 / .08); }
.scheme svg { width: 14px; height: 14px; }

/* Hero and the animated figure. */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(22px, 4vw, 56px); padding-block: clamp(32px, 4.5vw, 60px) clamp(20px, 2.5vw, 34px); }
.hero h1 { font-size: clamp(2.45rem, 1.2rem + 3.5vw, 4.15rem); line-height: 1.02; font-weight: 650; letter-spacing: -.043em; text-wrap: balance; }
.hero h1:lang(en) { font-family: var(--display); font-weight: 400; font-synthesis: none; letter-spacing: -.022em; line-height: 1.04; }
.hero-lede { margin-top: 22px; max-width: 34ch; color: var(--copy); font-size: 1.1875rem; line-height: 1.55; text-wrap: pretty; }
.hero-cta { margin-top: 32px; }
.hero-meta { color: var(--muted); font-size: .8125rem; }
.hero-stage { display: grid; place-items: center; min-width: 0; }
.hero-fig { display: block; width: min(100%, clamp(225px, 26vw, 340px)); height: auto; aspect-ratio: 1; overflow: visible; }
@media (max-width: 660px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 32px 12px; }
  .hero h1:lang(en) { font-size: clamp(2.1rem, 8.9vw, 2.8rem); }
  .hero-fig { width: clamp(160px, 46vw, 215px); }
  .hero-intro { max-width: 650px; }
  .hero-lede { max-width: 55ch; margin-top: 15px; }
  .hero-cta { margin-top: 14px; }
}
@media (max-width: 540px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) min(34vw, 152px);
    grid-template-areas: "title title" "lede art" "action art";
    gap: 12px 8px;
    padding-block: 28px 26px;
  }
  .hero-intro { display: contents; }
  .hero h1 { grid-area: title; }
  .hero-lede { grid-area: lede; margin: 0; font-size: 1.0625rem; line-height: 1.5; }
  .hero-cta { grid-area: action; margin: 0; min-height: 44px; justify-self: start; }
  .hero-stage { grid-area: art; }
  .hero-fig { width: 100%; }
}
/* A sample workspace, with the desktop companion in its usual corner. */
.desk { position: relative; margin-top: 16px; padding: 0 clamp(10px, 4vw, 56px); border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; }
.menubar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 30px; margin-inline: calc(-1 * clamp(10px, 4vw, 56px)); padding-inline: 16px; border-bottom: 1px solid var(--line-soft); color: var(--copy); font-size: .75rem; white-space: nowrap; }
.mb-left, .mb-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.mb-left b { color: var(--ink); font-weight: 650; }
.mb-right { gap: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mb-right svg { flex: none; }
.desk .win { max-width: 960px; margin: clamp(14px, 2.5vw, 28px) auto 0; }

.desk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 960px; margin-inline: auto; padding: 8px 0; color: var(--muted); font-size: .75rem; }
.desk-foot svg { flex: none; padding: 3px; border-radius: 9px; background: var(--raise); box-shadow: 0 0 0 1px var(--line-soft); }

/* Select a sample workspace. */
.dayline { --tab-gap: clamp(16px, 3vw, 40px); position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--tab-gap); margin-top: clamp(18px, 2vw, 28px); scroll-margin-top: -10px; }
.dayline button { position: relative; display: grid; align-content: start; gap: 2px; padding-top: 14px; border-top: 2px solid var(--line-soft); color: var(--muted); transition: color 200ms var(--ease); }
.dayline::after { content: ""; position: absolute; grid-column: 1 / 2; inset: 0 0 auto; height: 2px; background: var(--alf); pointer-events: none; transform: translateX(calc(var(--selected-tab, 0) * (100% + var(--tab-gap)))); }
.dayline[data-slide]::after { transition: transform 280ms var(--ease); }
.dayline time { font: .75rem var(--mono); }
.dayline b { font-size: 1rem; font-weight: 600; }
.dayline button:hover { color: var(--copy); }
.dayline button[aria-selected="true"] b { color: var(--ink); }
.dayline button[aria-selected="true"] time { color: var(--alf); }

/* ── Sections ── */
.sec { padding-block-start: clamp(48px, 6vw, 80px); }
.hero + .sec { padding-block-start: clamp(16px, 2vw, 28px); }
main > .sec:last-child { padding-block-end: clamp(44px, 6vw, 72px); }
/* A mark on the line, as on the app's Today page: a few quiet words, then the line runs on. */
.mark { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.mark::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(16px, 2vw, 26px); }
.sec-head h2 { max-width: 28ch; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.14; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
.sec-head p { color: var(--copy); text-wrap: pretty; }
.workspace-intro { max-width: 54ch; margin-top: 10px; }
.sec-head .try { color: var(--muted); font-size: .9375rem; }
.sec-head .try::before { content: "→ "; color: var(--alf); }
.sec-head .try:has([data-in="renewal"]:not([hidden]))::before { content: "✓ "; color: var(--ok); }
/* Chinese headings break after punctuation, not in the middle of a phrase. */
:lang(zh) h2 { letter-spacing: 0; line-height: 1.2; word-break: keep-all; overflow-wrap: anywhere; }
.hero h1:lang(zh) { font-size: clamp(1.85rem, 4vw, 3.2rem); line-height: 1.2; letter-spacing: 0; text-wrap: wrap; }
.hero h1:lang(zh) span { display: block; line-break: strict; }

.win { --side: 184px; min-width: 0; border-radius: 14px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; font-size: .875rem; }
.win-top { display: flex; height: 44px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.win-lead { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; border-right: 1px solid var(--line-soft); color: var(--muted); }
.win-lead { width: var(--side); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.switch { display: flex; gap: 2px; padding: 2px; margin-left: auto; border-radius: 9px; background: var(--wash); }
.switch b { display: grid; place-items: center; width: 28px; height: 22px; border-radius: 7px; }
.switch svg { width: 14px; height: 14px; }
.win:not([data-view="code"]) [data-sw="daily"], .win[data-view="code"] [data-sw="code"] { background: var(--raise); color: var(--ink); box-shadow: 0 1px 2px oklch(0 0 0 / .08); }
.win-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; }
.win-title { min-width: 0; display: flex; align-items: center; gap: 8px; }
.win-title svg { color: var(--k-solid); }
.win-title b { font-weight: 650; white-space: nowrap; }
.win-title span { min-width: 0; color: var(--muted); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-main .gear { margin-left: auto; color: var(--muted); }

.win-body { position: relative; display: flex; min-height: 374px; }
.win-side { flex: none; width: var(--side); padding: 10px 8px; background: var(--paper); border-right: 1px solid var(--line-soft); overflow: hidden; }
.side-k { padding: 6px 10px 4px; color: var(--muted); font-size: .6875rem; }
.win-side ul + .side-k { margin-top: 10px; }
.win-side li { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: .8125rem; white-space: nowrap; }
.win-side li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.win-side li svg { color: var(--k-solid, var(--muted)); }
.win-side li i { margin-left: auto; color: var(--muted); font: normal .6875rem var(--mono); }
.win-side .convs li { padding-left: 35px; color: var(--copy); }
.win-side li.cur { background: var(--wash); color: var(--ink); font-weight: 600; }
.win-page { flex: 1; min-width: 0; overflow: hidden; container: page / inline-size; }
.view { padding: 22px 24px 26px; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

/* Today: the next action, the day's timeline and the remaining counts. */
.v-today { max-width: 600px; margin-inline: auto; }
.t-hello { color: var(--muted); font-size: .8125rem; }
.renew-title { margin: 2px 0; font-size: 1.25rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.renew-detail { color: var(--copy); font-size: .875rem; font-variant-numeric: tabular-nums; }
.renew-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.meeting-source { color: var(--muted); font-size: .8125rem; }
.t-line { margin-top: 14px; }
.t-line .line-mark:first-child { margin-top: 0; }
.t-rest { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .8125rem; }
.t-rest b { color: var(--ink); font-weight: 600; }
.t-rest [data-k] b { color: var(--k-text); }
.side-today { color: var(--ink); }
.win-side li.side-today svg { width: 16px; height: 16px; flex: none; color: var(--alf); }
.line-mark { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.line-mark::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.line-mark.now { color: var(--now); font-weight: 600; }
.line-mark.now::after { background: color-mix(in oklch, var(--now) 45%, transparent); }
.row { display: grid; grid-template-columns: 46px 16px minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px; padding: 6px 0; }
.row .when { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .when.guess { text-decoration: underline dashed var(--line); text-underline-offset: 4px; }
.t-line [data-renew] { position: relative; z-index: 1; background: var(--bg); border-radius: 5px; }
.t-line [data-renew].scheduled .when { color: var(--alf); }
.row.wait .when { color: var(--k-text); font-weight: 600; }
.row .kind { align-self: start; margin-top: 3px; color: var(--k-solid); }
.tick { display: block; align-self: start; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 1.6px solid var(--k-solid); }
.what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.what b { font-weight: 500; }
.what span { margin-left: 8px; color: var(--muted); font-size: .8125rem; }
.row.scheduled .what { white-space: normal; }
.row.scheduled .what span { display: block; margin-left: 0; }
.row .go { color: var(--alf); font-size: .8125rem; white-space: nowrap; }
.row button.go:hover { text-decoration: underline; text-underline-offset: 3px; }
.row.wait .go { font-weight: 550; }
@media (max-width: 700px), (pointer: coarse) {
  .row button.go { min-width: 44px; min-height: 44px; }
  .renew-actions .btn { min-height: 44px; }
}

/* Links: places as tiles (a folder previews what is in it), the shelf of videos, then a topic */
.v-links { padding-top: 18px; }
.lk-k { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; color: var(--muted); font-size: .75rem; }
.lk-k:first-child { margin-top: 0; }
.lk-k i { font: normal .6875rem var(--mono); }
.lk-edit { margin-left: auto; color: var(--alf); }
.topic { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.topic::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--k-solid); }
.places { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.places li { width: 64px; display: grid; justify-items: center; gap: 5px; color: var(--copy); font-size: .6875rem; text-align: center; }
.places li > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--k-fill, var(--wash)); color: var(--k-text, var(--muted)); font-size: .9375rem; font-weight: 650; box-shadow: inset 0 0 0 1px var(--line-soft); }
.places .add .tile { background: none; box-shadow: inset 0 0 0 1px var(--line); font-weight: 400; }
.minis { grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); gap: 2px; padding: 6px; background: var(--wash); transition: box-shadow 160ms var(--ease); }
.minis:hover, .minis[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--alf); }
.minis i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 3px; background: var(--k-fill); color: var(--k-text); font: normal 600 .5rem var(--sans); }
.lk-folder { margin-top: 8px; padding: 10px 10px 8px; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-soft); animation: view-in 260ms var(--ease); }
.lk-folder p { display: flex; gap: 8px; align-items: baseline; padding: 0 4px 8px; font-size: .8125rem; }
.lk-folder p span { color: var(--muted); font-size: .75rem; }
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shelf li { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; gap: 2px 10px; min-width: 0; font-size: .8125rem; }
.shelf li > .cover { grid-row: span 2; aspect-ratio: 16 / 9; }
.shelf li > b { font-weight: 550; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.shelf li > span { color: var(--muted); font-size: .75rem; }
/* A cover drawn for the sample: the app shows the site's own, cached on the home node. */
.cover { position: relative; aspect-ratio: 16 / 7; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 18% 20%, var(--k-fill), transparent 60%), linear-gradient(135deg, var(--k-solid), color-mix(in oklch, var(--k-solid) 40%, var(--ink))); }
.cover::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%); border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent oklch(1 0 0 / .9); }
.cover i { position: absolute; right: 6px; bottom: 6px; padding: 0 5px; border-radius: 4px; background: oklch(0 0 0 / .55); color: oklch(1 0 0); font: normal .625rem/1.6 var(--mono); }
.lk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lk-cards li { display: grid; gap: 2px; min-width: 0; padding: 9px 11px; border-radius: 10px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-soft); font-size: .8125rem; }
.lk-cards b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-cards span { color: var(--muted); font-size: .75rem; }

/* A proposal: a dashed shadow where the change would land, and one card to answer it */
.cal-day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.cal-day > b { display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--now); color: var(--raise); font-size: .8125rem; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: .75rem; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--k-solid); margin-left: 8px; }
.cal { display: grid; grid-template-columns: 44px minmax(0, 1fr); margin-top: 14px; }
.hours { display: grid; grid-auto-rows: 34px; color: var(--muted); font: .6875rem var(--mono); }
.hours span { transform: translateY(-.6em); }
.lane { position: relative; height: 192px; background: repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 34px); }
.ev { position: absolute; left: 6px; right: 6px; display: flex; flex-wrap: wrap; align-content: start; gap: 0 10px; padding: 5px 10px; border-radius: 8px; background: var(--k-fill); color: var(--k-text); font-size: .75rem; overflow: hidden; box-shadow: inset 3px 0 0 var(--k-solid); }
.ev b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev span { font-family: var(--mono); font-size: .6875rem; opacity: .8; }
.cal-morning { display: contents; }
.cal-morning .lane { height: auto; }
.ev-renew { top: 1px; min-height: 17px; padding: 2px 8px; align-items: center; line-height: 1.1; }
.ev-renew:focus { outline: 2px solid var(--k-solid); outline-offset: 2px; }
.ev-lunch { top: 2px; height: 31px; }
.ev-write { top: 69px; height: 66px; }
.ev-gym { top: 138px; height: 31px; }
/* Zirma's: the area's colour stays, a dashed edge and a dot of Zirma's colour say who put it there. */
.ev.shadow { background: color-mix(in oklch, var(--k-fill) 45%, transparent); box-shadow: none; border: 1.5px dashed var(--k-line); transition: background-color 400ms var(--ease), border-color 400ms var(--ease); }
.ev .by { position: absolute; right: 9px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--k-solid); }
.v-prop[data-prop="yes"] .ev.shadow { background: var(--k-fill); border-style: solid; border-color: transparent; box-shadow: inset 3px 0 0 var(--k-solid); }
.prop { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-soft); }
.prop-text { color: var(--copy); font-size: .8125rem; line-height: 1.5; }
.prop-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.slot-editor, .demo-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.slot-editor { margin-top: 10px; }
.slot-editor label { font-size: .8125rem; font-weight: 600; }
.slot-editor select { max-width: 100%; min-height: 30px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font: .8125rem var(--mono); }
.demo-result p { flex-basis: 100%; color: var(--copy); font-size: .8125rem; }
.v-prop[data-prop="yes"] .demo-result p, .v-code[data-perm="yes"] .demo-result p { color: var(--ok); }
.desk .btn.sm { height: auto; min-height: 32px; padding-block: 5px; white-space: normal; }

/* A coding session: what you asked, what it read, and the edit waiting for your yes */
.you { justify-self: end; max-width: 88%; margin-left: auto; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--wash); width: fit-content; }
.step { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: .8125rem; }
.step + .step { margin-top: 6px; }
.step code { font: .75rem var(--mono); color: var(--copy); }
.step .k { font: .6875rem var(--mono); }
.step svg { color: var(--ok); }
.perm { margin-top: 12px; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; }
.perm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; }
.perm-head b { font-weight: 600; }
.mode { margin-left: auto; padding: 1px 9px; border-radius: 999px; background: var(--wash); color: var(--copy); font-size: .6875rem; white-space: nowrap; }
.diff { padding: 8px 0; border-block: 1px solid var(--line-soft); font: .75rem/1.7 var(--mono); overflow-x: auto; }
.diff span { display: block; width: max-content; min-width: 100%; padding: 0 14px; }
.diff .del { background: color-mix(in oklch, var(--now) 11%, transparent); color: var(--copy); }
.diff .add { background: color-mix(in oklch, var(--ok) 14%, transparent); color: var(--ink); }
.perm-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.v-code[data-perm="yes"] .del, .v-code[data-perm="no"] .add { display: none; }
.v-code[data-perm="no"] .del { background: none; }
.perm .demo-result { padding: 12px 14px; }
.v-code[data-perm="yes"] .mode { visibility: hidden; }

@container page (max-width: 420px) {
  .view { padding-inline: 16px; }
  .row { grid-template-columns: 40px 16px minmax(0, 1fr); }
  .meeting-source { display: none; }
  .row button.go { grid-column: 3; justify-self: start; }
  .what span { display: none; }
  .shelf, .lk-cards { grid-template-columns: minmax(0, 1fr); }
  .lk-cards li + li { display: none; }
}

/* One host and two views of its workspace. */
#setup { margin-block-start: clamp(48px, 6vw, 80px); padding-block-start: 0; }
.setup-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-top: clamp(16px, 2vw, 26px); }
.setup-heading p { max-width: 44ch; color: var(--copy); text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ── How it's built: the diagram, and what it holds to ── */
.built { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(28px, 5vw, 72px); margin-top: clamp(24px, 4vh, 40px); align-items: center; }
.built-head p { margin-top: 14px; max-width: 38ch; color: var(--copy); text-wrap: pretty; }
.arch { display: grid; font-size: .875rem; }
.tier { padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); }
.tier.node { border: 0; background: var(--raise); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.tier-k { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.tier-k svg { flex: none; overflow: visible; }
.tier-k span { font-weight: 650; }
.tier-k em { margin-left: auto; color: var(--muted); font-size: .75rem; font-style: normal; }
.tier ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tier li { padding: 3px 10px; border-radius: 999px; background: var(--wash); color: var(--copy); font-size: .8125rem; white-space: nowrap; }
.tier dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 12px; border-radius: 10px; overflow: hidden; background: var(--line-soft); box-shadow: 0 0 0 1px var(--line-soft); }
.tier dl div { padding: 9px 12px; background: var(--raise); }
.tier dt { color: var(--alf); font-size: .8125rem; font-weight: 600; }
.tier dd { color: var(--muted); font-size: .75rem; line-height: 1.45; }
.wire { position: relative; padding: 9px 0 9px 34px; color: var(--muted); font: .6875rem var(--mono); }
.wire::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background: var(--line); }


/* ── Questions ── */
.faq { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 40rem); gap: 24px clamp(28px, 4vw, 48px); margin-top: clamp(24px, 4vh, 40px); align-items: start; }
.qa details { border-top: 1px solid var(--line-soft); }
.qa details:last-child { border-bottom: 1px solid var(--line-soft); }
.qa details[data-faq-motion] { overflow: clip; }
.qa summary { position: relative; display: block; padding: 16px 36px 16px 0; font-weight: 550; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 220ms var(--ease), border-color 160ms var(--ease); }
.qa details[open]:not([data-faq-motion="closing"]) summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa summary:is(:hover, :active, :focus-visible)::after { border-color: var(--ink); }
.qa summary:focus-visible { outline: none; }
.qa summary:focus-visible::before { content: ""; position: absolute; right: 0; top: 50%; width: 25px; height: 25px; transform: translateY(-50%); border: 2px solid var(--alf); border-radius: 50%; pointer-events: none; }
.qa details p { max-width: 58ch; padding: 0 0 18px; color: var(--copy); line-height: 1.6; text-wrap: pretty; }

/* ── Install: the app's icon, its name, and when. A closing note, centred. ── */
.release { display: grid; justify-items: center; gap: 6px; margin-top: clamp(32px, 6vh, 56px); text-align: center; }
.release img { display: block; margin-bottom: 12px; filter: drop-shadow(0 2px 6px oklch(0 0 0 / .18)); }
.release p { color: var(--copy); font-size: 1.0625rem; }
.release .release-meta { margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.release .source-link { color: var(--alf); font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }

/* ── Foot ── */
.foot { border-top: 1px solid var(--line-soft); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-block: 26px max(34px, env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .8125rem; }
.foot .wordmark { color: var(--ink); font-size: 1.125rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.foot nav a:hover { color: var(--ink); }

/* ── Narrower ── */
@media (max-width: 940px) {
  .top-nav { display: none; }
  .nav-toggle { display: grid; flex: none; place-items: center; width: 40px; height: 44px; color: var(--copy); border-radius: 8px; }
  .nav-toggle:is(:hover, [aria-expanded="true"]) { color: var(--ink); background: var(--wash); }
  .nav-toggle[aria-expanded="true"] + .header-panel .top-nav { display: grid; gap: 0; margin: 0; }
  .top-nav a { padding: 10px 14px; border-radius: 8px; }
  .top-nav a:is(:hover, :focus-visible) { background: var(--wash); }
  .built { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 40rem); }
}
@media (min-width: 541px) and (max-width: 940px) {
  .top-nav { position: absolute; top: calc(100% + 4px); left: 0; min-width: 12rem; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); color: var(--ink); box-shadow: var(--shadow); }
}
@media (max-width: 700px) {
  .win { --side: 0px; }
  .win-body { min-height: 0; }
  .win-side { display: none; }
  .win-lead { width: auto; }
  .side-btn, .mb-left span { display: none; }
  .dayline { --tab-gap: 8px; }
  .dayline button { padding: 10px 2px 6px; }
  .desk .btn.sm, .slot-editor select { min-height: 40px; }
}
/* On phones the four examples share one app frame and a single clock. */
@media (max-width: 540px) {
  .dayline { --tab-gap: 0px; border: 1px solid var(--line); border-radius: 14px 14px 0 0; background: var(--paper); overflow: clip; }
  .dayline button { min-height: 46px; justify-items: center; align-content: center; padding: 6px 2px; border: 0; }
  .dayline button:focus-visible { outline-offset: -4px; }
  .dayline button[aria-selected="true"] { background: var(--bg); }
  .dayline::after { inset: auto 0 0; }
  .dayline time { display: none; }
  .desk { margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  .desk .win { margin: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: none; }
  .desk .menubar { display: none; position: absolute; z-index: 1; top: 0; right: 16px; height: 43px; margin: 0; padding: 0; border: 0; pointer-events: none; }
  .desk:has(.win[data-view="today"]) .menubar { display: flex; top: 22px; height: 1.3rem; }
  .desk:has(.win[data-view="code"]) .menubar { display: flex; }
  .desk .mb-right { color: var(--muted); font: .75rem var(--mono); }
  .desk :is(.mb-left, .mb-right svg, .win-lead, .gear, .win-title span) { display: none; }
  .win-top { display: none; }
  .win[data-view="code"] .win-top { display: flex; background: var(--bg); }
  .t-hello { padding-inline-end: 6rem; }
  .renew-actions .solid { flex: 1; }
  .row { grid-template-columns: 46px 16px minmax(0, 1fr) auto; column-gap: 6px; }
  .row .what { white-space: normal; }
  .row button.go { grid-column: 4; align-self: center; }
  .row.wait { align-items: center; padding-block: 0; }
  .row.wait .kind { align-self: center; margin: 0; }
  .desk .btn.sm, .slot-editor select { min-height: 44px; }
  .slot-editor select { font-size: 1rem; }
  /* The same events read as a day's agenda on a phone. Keep their times together. */
  .cal-day { justify-content: space-between; }
  .cal-day > b { height: auto; padding: 0; background: none; color: var(--ink); font-size: 1rem; }
  .legend { gap: 4px; }
  .legend i { width: 6px; height: 6px; margin-left: 4px; }
  .legend i:first-child { margin-left: 0; }
  .cal { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cal .hours { display: none; }
  .cal .lane { display: contents; }
  .cal .ev {
    position: static;
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    align-items: center;
    align-content: center;
    gap: 8px;
    height: auto;
    min-height: 44px;
    padding: 7px 10px;
  }
  .cal .ev b { grid-area: 1 / 2; font-size: .875rem; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
  .cal .ev span { grid-area: 1 / 1; font-size: .75rem; line-height: 1.3; white-space: nowrap; opacity: 1; }
  .cal .ev-write { grid-template-columns: 5.25rem minmax(0, 1fr) auto; }
  .cal .ev .by { position: static; grid-area: 1 / 3; }
  .cal :is(.ev-lunch, .ev-gym) { border-radius: 0; border-bottom: 1px solid var(--line-soft); background: none; color: var(--ink); box-shadow: none; }
  .cal :is(.ev-lunch, .ev-gym) span { color: var(--muted); }
  .cal :is(.ev-lunch, .ev-gym) b { display: flex; gap: 7px; }
  .cal :is(.ev-lunch, .ev-gym) b::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .48em; border-radius: 50%; background: var(--k-solid); }
  .prop-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prop-acts .solid { grid-column: 1 / -1; }
  .places { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .places li { width: auto; min-width: 0; }
  .lk-folder .places { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf, .lk-cards { grid-template-columns: minmax(0, 1fr); }
  .shelf li { grid-template-columns: clamp(76px, 23vw, 112px) minmax(0, 1fr); }
  .lk-cards li + li { display: grid; }
  .diff span { width: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
}
@media (max-width: 540px) {
  .top-in .brand { gap: 6px; min-height: 44px; }
  .nav-toggle { margin-inline: auto -8px; display: inline-flex; justify-content: center; gap: 8px; width: auto; min-width: 64px; padding-inline: 8px; font-size: .875rem; }
  .nav-toggle span { display: inline; }
  .nav-toggle .i { width: 18px; height: 18px; }
  .header-panel { display: none; position: absolute; top: calc(100% + 4px); inset-inline: 0; max-height: calc(100dvh - 68px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); box-shadow: var(--shadow); }
  .nav-toggle[aria-expanded="true"] + .header-panel { display: block; }
  .top-nav a { min-height: 44px; }
  .top-tools { justify-content: space-between; margin: 4px 8px 0; padding: 5px 2px 0; border-top: 1px solid var(--line-soft); }
  .top-tools .tool { padding-inline: 5px; }
  .mac-nav { min-height: 44px; gap: 2px; margin-left: 2px; padding-inline: 0; }
  .mac-nav img { width: 28px; height: 28px; }
  .scheme { position: relative; isolation: isolate; gap: 0; margin: 0; padding: 0; background: transparent; }
  .scheme::before { content: ""; position: absolute; z-index: -1; inset: 7px 0; border-radius: 9px; background: var(--wash); }
  .scheme button { position: relative; isolation: isolate; width: 44px; height: 44px; }
  .scheme button[aria-pressed="true"] { background: transparent; box-shadow: none; }
  .scheme button[aria-pressed="true"]::before { content: ""; position: absolute; z-index: -1; inset: 9px 2px; border-radius: 7px; background: var(--raise); }
}
@media (max-width: 420px) {
  .win-title span { display: none; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 360px) {
  .dayline b { font-size: .875rem; }
  .win-main .gear { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html[data-still] *, html[data-still] *::before, html[data-still] *::after { animation: none !important; transition: none !important; }
