/* RecordOS beta site, third pass.
   Layout: a calm multi-page site. Each screen says one thing; painted scenes carry the mood and
   product UI floats on top of them. Tokens are Alluzo's (docs/design-system/claude-design-export/tokens):
   black, white and grays carry everything; green and red mean money. No blue anywhere but the OS orb itself. */
:root {
  --ground: #F5F5F5; --card: #FFFFFF; --well: #FAFAFA; --sheet: #FFFFFF; --inverse: #212121;
  --ink: #212121; --ink-2: #424242; --ink-3: #6F6F6F; --ink-4: #A3A3A3;
  --line: #E0E0E0; --line-2: #EEEEEE; --line-a: rgba(33, 33, 33, .09);
  --fill: #131313; --on-fill: #FFFFFF; --focus: rgba(19, 19, 19, .16);
  --in: #007C37; --in-fill: #179F51; --in-tint: #D8F4DE;
  --out: #B53535; --out-tint: #FFE1DD;
  --warn: #876500; --warn-tint: #F8EACC;
  --info: #424242; --info-tint: #EEEEEE;
  --orb: #212121; --sky: #9E9E9E;
  --wash: #F5F5F5; --wash-2: #EDEDED;
  --glass: rgba(255, 255, 255, .74); --glass-line: rgba(255, 255, 255, .92);
  --veil: 0;
  --sh: hsla(0, 0%, 20%, .07);
  --sh-low: 0 1px 2px 0 var(--sh);
  --sh-mid: 0 2px 8px -2px hsla(0, 0%, 20%, .10), 0 1px 2px 0 var(--sh);
  --sh-high: 0 18px 40px -16px hsla(0, 0%, 22%, .22), 0 2px 6px 0 var(--sh);
  --font-head: var(--font-sora), var(--font-inter), -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: var(--font-inter), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-display: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem);
  --fs-h2: clamp(1.65rem, 1.15rem + 1.6vw, 2.6rem);
  --fs-lead: clamp(1.02rem, .98rem + .22vw, 1.15rem);
  --ease: cubic-bezier(.3, 0, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* Motion tokens (docs/plans/recordos-site-v4.md, Decided 1), for every animation on every page. Only transform and
     opacity animate; reveals travel 12–16px; swaps scale .98 → 1. A vignette is in its last state within 1.2s of its
     frame being 40% visible, items staggered 40ms (at most 6), and holds it. */
  --dur-ui: 160ms;          /* hover, press */
  --dur-swap: 320ms;        /* a vignette or tab swapping in */
  --dur-swap-out: 180ms;    /* … and out */
  --dur-reveal: 560ms;      /* a section's entry */
  --dur-backdrop: 600ms;    /* a painting cross-fading */
  --stagger: 40ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);   /* entries */
  --ease-std: cubic-bezier(.2, 0, 0, 1);      /* state changes */
  --ease-in: cubic-bezier(.4, 0, 1, 1);       /* exits only */
  --spring: linear(0, 0.0247 1.1%, 0.0932 2.3%, 0.2013 3.7%, 0.3337 5.3%, 0.4757 7.1%, 0.6125 9.1%, 0.7351 11.3%, 0.8364 13.7%, 0.9144 16.3%, 0.9695 19.2%, 1.0039 22.4%, 1.0212 26%, 1.0251 30.2%, 1.0199 35.4%, 1.0096 42.2%, 1.0021 51.4%, 0.9994 66.6%, 1);
  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --space: clamp(104px, 13vw, 180px);
  --r-card: 20px; --r-panel: 28px;
  --reveal-h: 34vw;
  color-scheme: light;
}
/* Light only, by choice: the site has no dark theme. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--wash-2); color: var(--ink); font-family: var(--font-text); font-size: 1rem; line-height: 1.6; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; margin: 0; text-wrap: balance; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.money, .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.in { color: var(--in); } .out { color: var(--out); } .warn { color: var(--warn); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
i[data-lucide] { display: inline-block; width: 1em; height: 1em; flex: none; }
svg.lucide { width: 1em; height: 1em; stroke-width: 1.75; flex: none; }

.kicker { font-size: .8rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; letter-spacing: .01em; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.display { font-size: var(--fs-display); line-height: 1.12; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); line-height: 1.14; letter-spacing: -0.03em; }
.soft { color: var(--ink-3); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.65; max-width: 34em; }
.head { display: grid; gap: 14px; max-width: 660px; }
.head.center { justify-items: center; text-align: center; margin-inline: auto; }

.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--fill); color: var(--on-fill); }
.btn-ink:hover { background: color-mix(in srgb, var(--fill) 86%, var(--ground)); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-glass { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); }
.btn-sm { --h: 36px; padding: 0 15px; font-size: .86rem; }
.btn .lucide { width: 16px; height: 16px; }
.btn .arrow { transition: transform 320ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .92rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 200ms var(--ease); }
.textlink:hover { border-color: var(--ink); }
.textlink .lucide { width: 14px; height: 14px; }

/* ---------- the header: full width at rest, a pill once you scroll ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; justify-content: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0; pointer-events: none; }
.nav-shell { pointer-events: auto; width: 100%; max-width: calc(var(--maxw) - 2 * 8px); height: 60px; display: flex; align-items: center; gap: 22px; padding: 0 6px 0 calc(var(--gutter) - 12px); border-radius: 999px; border: 1px solid transparent; background: transparent;
  transition: max-width 700ms var(--ease-out), height 500ms var(--ease-out), padding 500ms var(--ease-out), background 400ms var(--ease), border-color 400ms var(--ease), box-shadow 400ms var(--ease); }
.nav.pill .nav-shell { max-width: 760px; height: 52px; padding: 0 6px 0 16px; background: var(--glass); border-color: var(--glass-line); box-shadow: 0 0 0 1px var(--line-a), 0 14px 34px -14px hsla(0, 0%, 20%, .28); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.logo svg { width: 19px; height: 19px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .88rem; padding: 7px 12px; border-radius: 999px; transition: background 200ms var(--ease), color 200ms var(--ease); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--line-a); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--line-a); }
.nav.pill .nav-links { margin-left: auto; }
.menu-btn { display: none; margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-a); background: var(--glass); place-items: center; }
.menu-btn .lucide { width: 18px; height: 18px; }
.nav.dark:not(.pill) .logo, .nav.dark:not(.pill) .nav-links a { color: rgba(246, 244, 255, .92); }
.nav.dark:not(.pill) .nav-links a[aria-current="page"], .nav.dark:not(.pill) .nav-links a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav.dark:not(.pill) .btn-ink { background: #fff; color: #111; }
.nav.dark:not(.pill) .menu-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; top: 72px; left: 12px; right: 12px; flex-direction: column; padding: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--sh-high); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; color: var(--ink-2) !important; }
  .menu-btn { display: grid; }
  .nav-shell { gap: 10px; }
  .nav.pill .nav-shell { max-width: 100%; }
}

/* ---------- the sheet the site sits on; the footer word waits underneath ---------- */
.site { position: relative; z-index: 2; background: var(--ground); border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); box-shadow: 0 40px 80px -40px hsla(0, 0%, 20%, .35); overflow: clip; }
.reveal { position: fixed; left: 0; right: 0; bottom: 0; height: var(--reveal-h); z-index: 1; overflow: hidden; background: linear-gradient(180deg, var(--wash) 0%, var(--wash-2) 100%); display: flex; align-items: flex-end; justify-content: center; }
.reveal .word { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.06em; line-height: .78; white-space: nowrap; color: var(--ink); opacity: .9; transform: translateY(16%); display: flex; align-items: flex-end; gap: .06em; }
.reveal .word svg { width: .62em; height: .62em; margin-bottom: .1em; }
.reveal-space { height: var(--reveal-h); }
.page { display: none; }
.page.on { display: block; }

/* ---------- painted scenes ---------- */
.scene { position: relative; isolation: isolate; overflow: hidden; }
.paint { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; }
.paint::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--veil); }
.fade-b { position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--ground)); }
.wash-l::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--ground) 84%, transparent) 0%, color-mix(in srgb, var(--ground) 55%, transparent) 36%, transparent 62%); }

/* ---------- home hero ---------- */
.hero { min-height: max(720px, min(100svh, 920px)); padding-top: calc(74px + clamp(52px, 10vh, 112px)); padding-bottom: 72px; }
.hero .paint { background-image: url("/img/street-morning.webp"); background-position: center 72%; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .8rem; color: var(--ink-2); text-decoration: none; }
.badge .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--in-tint); display: grid; place-items: center; }
.badge .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--in-fill); }
.hero h1 { margin-top: 22px; }
.ticker { display: inline-block; vertical-align: top; height: 1.12em; overflow: hidden; position: relative; transition: width 650ms var(--ease-io); }
.ticker ul { list-style: none; margin: 0; padding: 0; transition: transform 650ms var(--ease-io); }
.ticker li { height: 1.12em; line-height: 1.12; white-space: nowrap; text-align: left; }
.hero-sub { margin-top: 16px; max-width: 30em; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.6; }
.composer { position: relative; width: min(640px, 100%); margin-top: 32px; text-align: left; border-radius: 22px; padding: 12px 10px 10px 18px; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 0 0 1px var(--line-a), 0 24px 50px -24px hsla(0, 0%, 28%, .35); transition: box-shadow 320ms var(--ease); }
.composer:focus-within { box-shadow: 0 0 0 1px var(--line-a), 0 0 42px -12px color-mix(in srgb, var(--sky) 60%, transparent), 0 24px 50px -24px hsla(0, 0%, 28%, .35); }
.composer textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; font-size: 1.02rem; line-height: 1.55; min-height: 52px; max-height: 150px; padding: 4px 48px 0 0; color: var(--ink); }
.composer textarea::placeholder { color: var(--ink-4); }
.composer .row { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.composer .hint { font-size: .78rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.composer .hint .pearl { width: 14px; height: 14px; }
.send { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fill); color: var(--on-fill); display: grid; place-items: center; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.send:disabled { opacity: .18; cursor: default; }
.send .lucide { width: 17px; height: 17px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; max-width: 700px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink-2); font-size: .85rem; text-decoration: none; transition: background 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.chip .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-a); }
.chip .ic .lucide { width: 14px; height: 14px; }
.chip:hover { color: var(--ink); background: var(--card); box-shadow: var(--sh-mid); }
.chip:active { transform: scale(.97); }
.chip.plain { padding: 0 14px; }

/* small icon tiles used everywhere a record or list is named */
.itile { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--well); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.itile .lucide { width: 16px; height: 16px; }
.itile.k-in { background: var(--in-tint); color: var(--in); box-shadow: none; }
.itile.k-out { background: var(--out-tint); color: var(--out); box-shadow: none; }
.itile.k-both { background: var(--warn-tint); color: var(--warn); box-shadow: none; }
.itile.k-count { background: var(--info-tint); color: var(--info); box-shadow: none; }
.itile.k-none { background: var(--well); color: var(--ink-2); }
.pearl { display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; background: radial-gradient(circle at 34% 30%, #fff 0 16%, #E5E5E5 38%, var(--sky) 70%, var(--orb)); box-shadow: 0 0 14px -2px color-mix(in srgb, var(--sky) 70%, transparent); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; font-size: .72rem; padding: 0 8px; border-radius: 999px; background: var(--line-a); color: var(--ink-2); white-space: nowrap; }
.tag.in { background: var(--in-tint); color: var(--in); } .tag.out { background: var(--out-tint); color: var(--out); } .tag.warn { background: var(--warn-tint); color: var(--warn); } .tag.info { background: var(--info-tint); color: var(--info); }
.tag .lucide { width: 12px; height: 12px; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 600; color: #fff; background: #686868; flex: none; }
.av.a2 { background: #7a6a58; } .av.a3 { background: #4f7a63; } .av.a4 { background: #6b5c7d; } .av.a5 { background: #8a5d5d; }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--space); position: relative; }
.section.tight { padding-block: clamp(72px, 9vw, 120px); }
.section.wash { background: var(--wash); }
.section.white { background: var(--card); }

/* ---------- home: the story (pinned) ---------- */
.story { position: relative; }
.stage { position: relative; width: min(1080px, 100%); margin-inline: auto; height: 100%; max-height: 640px; container-type: size; }
.clock { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-family: var(--font-head); font-size: clamp(.8rem, 1.6cqw, 1rem); display: inline-flex; gap: 8px; align-items: center; box-shadow: var(--sh-high); white-space: nowrap; }
.clock .lucide { width: 15px; height: 15px; }
/* the RecordOS window */
.side { border-right: 1px solid var(--line-2); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--well); min-height: 0; }
.main { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.view { position: absolute; inset: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.filters { display: flex; gap: 6px; }
.filters span { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.filters span.on { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.tile { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; display: grid; gap: 6px; min-width: 0; box-shadow: var(--sh-low); }
.tile .tl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.tile .tl .itile { width: 24px; height: 24px; border-radius: 7px; }
.tile .tl .itile .lucide { width: 13px; height: 13px; }
.tile .tv { font-family: var(--font-head); font-weight: 500; font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
.tile.wide { grid-column: span 2; }
@container (max-width: 760px) {
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-2); padding: 8px; scrollbar-width: none; }
  .view { padding: 14px; }
  .tile.wide { grid-column: span 2; }
}

/* ---------- home: three things that change (statement + painted container) ---------- */
.benes { display: grid; gap: clamp(96px, 12vw, 160px); }
.bene { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.bene:nth-child(even) > :first-child { order: 2; }
.bene h3 { font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; }
.bene p { margin-top: 14px; color: var(--ink-2); max-width: 26em; }
.bene .textlink { margin-top: 22px; }
.ui-card { background: var(--card); border-radius: 18px; box-shadow: 0 24px 50px -20px hsla(0, 0%, 18%, .35), 0 0 0 1px hsla(0, 0%, 20%, .06); padding: 14px; display: grid; gap: 10px; }
.ui-card .hd { display: flex; align-items: center; gap: 10px; }
.ui-card .hd b { font-weight: 500; font-size: .92rem; display: block; line-height: 1.25; }
.ui-card .hd small { color: var(--ink-3); font-size: .76rem; }
.ui-card .hd .tag { margin-left: auto; }
.frow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: .84rem; }
.frow > span:first-child { color: var(--ink-3); }
@keyframes blink { 50% { opacity: 0; } }
.q { justify-self: end; background: var(--fill); color: var(--on-fill); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: .9rem; box-shadow: 0 14px 30px -14px hsla(0, 0%, 18%, .4); }
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 92px 1fr 64px; gap: 10px; align-items: center; font-size: .78rem; }
.bar .v { text-align: right; color: var(--ink-2); }
/* everyone sees their part */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--sh-mid); position: relative; }
.seg button { position: relative; z-index: 1; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: .82rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: color 300ms var(--ease); }
.seg button .lucide { width: 14px; height: 14px; }
.seg button[aria-pressed="true"] { color: var(--on-fill); }
.seg .pillbg { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--fill); transition: left 500ms var(--spring), width 500ms var(--spring); }
.phone { width: min(300px, 100%); border-radius: 34px; background: var(--card); padding: 10px; box-shadow: 0 30px 60px -24px hsla(0, 0%, 18%, .45), 0 0 0 1px hsla(0, 0%, 20%, .08); }
.phone .who { display: flex; align-items: center; gap: 8px; padding: 0 4px 6px; }
.phone .who b { font-size: .86rem; font-weight: 500; display: block; line-height: 1.2; }
.phone .who small { font-size: .72rem; color: var(--ink-3); }
@media (max-width: 860px) { .bene { grid-template-columns: 1fr; } .bene:nth-child(even) > :first-child { order: 0; } }

/* ---------- use-case carousel ---------- */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rail-nav { display: flex; gap: 8px; }
.round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink); transition: background 200ms var(--ease), opacity 200ms var(--ease); }
.round:hover { background: var(--well); }
.round:disabled { opacity: .35; cursor: default; }
.round .lucide { width: 18px; height: 18px; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 36px var(--gutter) 24px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.ucard { flex: none; width: clamp(260px, 30vw, 340px); scroll-snap-align: start; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease); }
.ucard:hover { transform: translateY(-4px); box-shadow: var(--sh-high); }
.ucard .im { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; overflow: hidden; }
.ucard .im::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--veil); }
.ucard .im .itile { position: absolute; left: 14px; bottom: -16px; width: 40px; height: 40px; border-radius: 12px; background: var(--card); box-shadow: var(--sh-mid); z-index: 1; }
.ucard .im .itile .lucide { width: 19px; height: 19px; }
.ucard .tx { padding: 28px 18px 18px; display: grid; gap: 4px; flex: 1; }
/* the card's own name and line, not the words of a vignette drawn in its picture */
.ucard > b, .ucard .tx > b { font-family: var(--font-head); font-weight: 500; font-size: 1.08rem; letter-spacing: -0.02em; }
.ucard > p, .ucard .tx > p { font-size: .88rem; color: var(--ink-2); }
.ucard .go { margin-top: auto; padding-top: 12px; font-size: .84rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.ucard .go .lucide { width: 14px; height: 14px; transition: transform 300ms var(--ease-out); }
.ucard:hover .go .lucide { transform: translateX(3px); }
.ucard.all { background: var(--fill); color: var(--on-fill); border-color: var(--fill); justify-content: center; padding: 28px; gap: 10px; }
.ucard.all b, .ucard.all .go { color: var(--on-fill); }
.ucard.all p { color: color-mix(in srgb, var(--on-fill) 70%, transparent); }

/* ---------- closing band ---------- */
.close { min-height: 600px; display: grid; align-content: start; padding-top: clamp(96px, 13vw, 160px); color: #F4F2FF; text-align: center; }
.close .paint { background-position: center 70%; }
.close .fade-t { position: absolute; inset: 0 0 auto 0; height: 140px; z-index: -1; background: linear-gradient(var(--ground), transparent); }
.close h2 { color: #fff; }
.close .soft { color: rgba(229, 229, 229, .66); }
.close p { color: rgba(240, 238, 255, .84); }
.close .btn-ink { background: #fff; color: #111; }

/* ---------- inner page heroes ---------- */
.phero { min-height: 600px; padding-top: calc(74px + clamp(64px, 11vh, 128px)); padding-bottom: 80px; }
.phero .wrap { display: grid; gap: 16px; justify-items: start; }
.phero .lead { max-width: 30em; }
.phero.dark { color: #F4F2FF; }
.phero.dark .display { color: #fff; }
.phero.dark .display .soft { color: rgba(227, 227, 227, .62); }
.phero.dark .lead, .phero.dark .kicker { color: rgba(240, 238, 255, .84); }
.phero.dark .wash-l::before, .phero.dark.wash-l::before { background: linear-gradient(90deg, rgba(12, 12, 12, .62), rgba(12, 12, 12, .3) 40%, transparent 66%); }

/* ---------- product ---------- */
.parts { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); }
.part { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-block: 8vh; opacity: .3; transition: opacity 500ms var(--ease); }
.part.on { opacity: 1; }
.part .n { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--ink-2); }
.part h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); letter-spacing: -0.03em; line-height: 1.18; }
.part p { color: var(--ink-2); max-width: 26em; }
.pscene { position: absolute; inset: 0; display: grid; place-items: center; padding: 7%; }
.ros .pscene { opacity: 0; visibility: hidden; }
.ros .pscene.on { opacity: 1; visibility: visible; }
@media (max-width: 900px) { .parts { grid-template-columns: 1fr; } .part { min-height: 0; opacity: 1; padding-block: 36px; } }
.meet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.steps { display: grid; gap: 9px; }
.st { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--ink-3); }
.st .b { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; position: relative; }
.st.busy { color: var(--ink); } .st.busy .b { border-color: var(--orb); border-right-color: transparent; animation: spin .8s linear infinite; }
.st.done { color: var(--ink-2); } .st.done .b { background: var(--ink); border-color: var(--ink); }
.st.done .b::after { content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 3px; border-left: 1.5px solid var(--on-fill); border-bottom: 1.5px solid var(--on-fill); transform: rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } }

/* business map, higher fidelity */
.map { position: relative; aspect-ratio: 16 / 8.6; border-radius: 20px; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -28px hsla(0, 0%, 18%, .4), 0 0 0 1px hsla(0, 0%, 20%, .06); overflow: hidden; container-type: inline-size; }
.map .grid { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--line) 1px, transparent 1.3px); background-size: 22px 22px; opacity: .8; }
.map svg.edges { position: absolute; inset: 48px 0 0 0; width: 100%; height: calc(100% - 48px); z-index: 1; pointer-events: none; }
.map svg.edges path { fill: none; stroke: var(--ink-4); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; opacity: .7; transition: opacity 300ms var(--ease), stroke 300ms var(--ease); }
.map svg.edges path.hot { stroke: var(--orb); opacity: 1; stroke-dasharray: none; }
.map canvas { position: absolute; inset: 48px 0 0 0; width: 100%; height: calc(100% - 48px); z-index: 2; pointer-events: none; }
@media (max-width: 760px) { .map { aspect-ratio: 3 / 4; } }
.dev { background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; padding: 24px; display: grid; gap: 8px; }
.dev .itile { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 10px; }
.dev .itile .lucide { width: 22px; height: 22px; }
.dev b { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
.dev p { color: var(--ink-2); font-size: .92rem; }

/* ---------- features: one thing at a time, on a painting ---------- */
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; letter-spacing: .28em; text-align: center; padding: 12px; border-radius: 12px; background: var(--well); }
.files { display: flex; gap: 8px; }
.file { width: 44px; height: 54px; border-radius: 8px; display: grid; place-items: end center; padding-bottom: 6px; font-size: .55rem; font-weight: 700; color: #fff; box-shadow: var(--sh-mid); }

/* ---------- use cases: index and pages ---------- */
.ucgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.ucgrid .ucard { width: auto; }
@media (max-width: 960px) { .ucgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ucgrid { grid-template-columns: 1fr; } }
.marquee { margin-top: 72px; display: grid; gap: 10px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mrow { display: flex; gap: 10px; width: max-content; animation: slide 140s linear infinite; }
.mrow.rev { animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }
.mrow span { padding: 9px 15px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
.mrow span em { font-style: normal; color: var(--ink-4); margin-left: 6px; font-size: .8rem; }
.uch .ic-lg { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--sh-mid); }
.uch .ic-lg .lucide { width: 24px; height: 24px; }
.uch .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.owner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.owner .card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.owner .who { display: flex; align-items: center; gap: 12px; }
.owner .who .av { width: 46px; height: 46px; font-size: .86rem; background: var(--fill); color: var(--on-fill); }
.owner .who b { font-family: var(--font-head); font-weight: 500; display: block; letter-spacing: -0.02em; }
.owner .who small { color: var(--ink-3); font-size: .84rem; }
.owner blockquote { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); line-height: 1.3; letter-spacing: -0.02em; }
@media (max-width: 820px) { .owner { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.dl .tm { font-size: .78rem; color: rgba(255, 255, 255, .95); font-weight: 500; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); text-align: right; }
.dl .ui-card { padding: 12px 14px; }
.dl .ui-card .hd b { font-size: .88rem; }
.roles-t { border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--card); }
.roles-t .rr { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line-2); align-items: center; font-size: .92rem; }
.roles-t .rr:first-child { border-top: 0; }
.roles-t .rr b { font-weight: 500; display: flex; align-items: center; gap: 10px; }
@media (max-width: 600px) { .roles-t .rr { grid-template-columns: 1fr; gap: 4px; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-2); text-decoration: none; transition: box-shadow 300ms var(--ease); }
.pager a:hover { box-shadow: var(--sh-high); }
.pager a.next { justify-content: flex-end; text-align: right; }
.pager small { display: block; color: var(--ink-3); font-size: .78rem; }
.pager b { font-family: var(--font-head); font-weight: 500; }

/* ---------- sketch: the drafting canvas ---------- */
.sk { min-height: 100svh; padding: 86px var(--gutter) 40px; background: var(--ground); }
.sk-top { max-width: 1400px; margin: 0 auto 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sk-top .t b { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; display: block; }
.sk-top .t small { color: var(--ink-3); font-size: .84rem; }
.sk-top .act { margin-left: auto; display: flex; gap: 8px; }
.sk-body { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; min-height: calc(100svh - 190px); }
.sk-chat { background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; min-height: 560px; }
.sk-chat .hdr { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.sk-chat .hdr .host { width: 44px; height: 44px; position: relative; flex: none; }
.sk-chat .hdr .host canvas { position: absolute; inset: -10px; width: 64px !important; height: 64px !important; }
.sk-chat .hdr b { display: block; font-weight: 500; }
.sk-chat .hdr small { color: var(--ink-3); font-size: .78rem; }
.sk-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.msg-me { align-self: flex-end; background: var(--fill); color: var(--on-fill); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: .9rem; max-width: 88%; }
.msg-os { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .9rem; line-height: 1.55; }
.msg-os .pearl { margin-top: 3px; }
.msg-os b { font-weight: 500; }
.msg-os .exp { margin-top: 6px; display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: .8rem; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); animation: ty 1.2s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ty { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.sk-input { padding: 10px; border-top: 1px solid var(--line-2); }
.sk-input form { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.sk-input textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; font-size: .9rem; padding: 7px 0; min-height: 22px; max-height: 120px; }
.sk-input .note { font-size: .7rem; color: var(--ink-3); text-align: center; margin-top: 6px; }
.sk-canvas { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); background: var(--well); min-height: 560px; }
.sk-canvas .grid { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--line) 1px, transparent 1.3px); background-size: 22px 22px; }
.sk-canvas .cbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; z-index: 4; }
.sk-canvas .cbar .tag { background: var(--card); box-shadow: var(--sh-low); height: 28px; padding: 0 10px; }
.sk-canvas .cbar .zoom { margin-left: auto; display: flex; gap: 4px; }
.sk-canvas .cbar .zoom button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--card); box-shadow: var(--sh-low); display: grid; place-items: center; }
.sk-canvas .cbar .zoom .lucide { width: 15px; height: 15px; }
.sk-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.sk-world svg.edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.sk-world svg.edges path { fill: none; stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 4 6; }
.sk-world svg.edges path.link { stroke: var(--orb); stroke-dasharray: none; opacity: .75; }
.sk-col-lab { position: absolute; font-size: 12px; color: var(--ink-3); letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.sk-col-lab .lucide { width: 13px; height: 13px; }
.skn { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-mid); font-size: 13px; }
.skn.rec { width: 250px; padding: 12px 12px 10px; display: grid; gap: 10px; }
.skn.rec .t { display: flex; align-items: center; gap: 10px; }
.skn.rec .t b { font-weight: 500; display: block; line-height: 1.2; }
.skn.rec .t small { font-size: 11px; color: var(--ink-3); }
.skn.rec .t .sw { margin-left: auto; width: 30px; height: 18px; border-radius: 999px; background: var(--in-fill); position: relative; flex: none; }
.skn.rec .t .sw::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.skn.rec .flds { display: flex; flex-wrap: wrap; gap: 5px; }
.skn.rec .flds span { font-size: 11px; padding: 3px 8px; border-radius: 7px; background: var(--well); border: 1px solid var(--line-2); color: var(--ink-2); }
.skn.lst { height: 40px; padding: 0 14px 0 6px; border-radius: 999px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.skn.lst .itile { width: 28px; height: 28px; border-radius: 50%; }
.skn.lst small { color: var(--ink-3); font-size: 11px; }
.skn.card { position: absolute; width: 190px; padding: 12px; display: grid; gap: 4px; border-radius: 16px; border-color: var(--line); box-shadow: var(--sh-mid); } /* not the Dashboard .card further down, which would put it back in the flow */
.skn.card .tl { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); }
.skn.card .tl .itile { width: 22px; height: 22px; border-radius: 7px; }
.skn.card .tl .itile .lucide { width: 12px; height: 12px; }
.skn.card .tv { font-family: var(--font-head); font-weight: 500; font-size: 20px; letter-spacing: -0.03em; }
.skn.role { width: 250px; padding: 12px; display: grid; gap: 4px; background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.skn.role small { opacity: .75; font-size: 12px; line-height: 1.4; }
.skn.role b { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.skn.role .lucide { width: 14px; height: 14px; }
.sk-canvas canvas.rib { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.sk-legend { position: absolute; left: 12px; bottom: 12px; z-index: 4; display: flex; gap: 6px; flex-wrap: wrap; }
.sk-legend span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-low); font-size: 11.5px; color: var(--ink-2); }
.sk-legend .lucide { width: 13px; height: 13px; }
.sk-explain { max-width: 1400px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sk-explain .e { background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.sk-explain .e b { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.02em; }
.sk-explain .e p { font-size: .86rem; color: var(--ink-2); }
@media (max-width: 1100px) { .sk-explain { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .sk-body { grid-template-columns: 1fr; } .sk-chat { min-height: 0; max-height: 520px; } .sk-canvas { min-height: 640px; } }
@media (max-width: 600px) { .sk-explain { grid-template-columns: 1fr; } }

/* ---------- beta ---------- */
.beta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.form-card { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: clamp(20px, 3vw, 30px); box-shadow: var(--sh-high); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lab { font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--well); padding: 0 14px; font-size: .98rem; outline: 0; width: 100%; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.field textarea { height: auto; min-height: 80px; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus); background: var(--card); }
.field .err { font-size: .78rem; color: var(--out); }
.field.bad input { border-color: var(--out); }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--well); font-size: .84rem; color: var(--ink-2); transition: all 200ms var(--ease); }
.pick button .lucide { width: 15px; height: 15px; }
.pick button.plain { padding: 0 13px; }
.pick button[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.small { font-size: .78rem; color: var(--ink-3); margin-top: 12px; }
.perks { display: grid; gap: 12px; margin-top: 24px; }
.perks div { display: flex; gap: 10px; font-size: .95rem; }
.perks .lucide { width: 18px; height: 18px; flex: none; margin-top: 3px; }
@media (max-width: 900px) { .beta-grid { grid-template-columns: 1fr; } }
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.road .prog { position: absolute; left: 0; top: 7px; height: 1px; width: 48%; background: var(--ink); transform-origin: left; }
.rs { position: relative; padding-top: 34px; }
.rs::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--line); }
.rs.done::before { background: var(--ink); border-color: var(--ink); }
.rs.now::before { border-color: var(--ink); box-shadow: 0 0 0 6px var(--line-a); }
.rs .when { font-size: .78rem; color: var(--ink-3); }
.rs b { display: block; font-family: var(--font-head); font-weight: 500; margin-top: 4px; letter-spacing: -0.02em; }
.rs p { color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
@media (max-width: 760px) { .road { grid-template-columns: 1fr; padding-left: 28px; } .road::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; } .road .prog { left: 7px; top: 0; width: 1px; height: 48%; } .rs { padding-top: 0; } .rs::before { left: -28px; } }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; background: none; border: 0; text-align: left; font-size: 1rem; font-weight: 500; }
.qa .pm { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex: none; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.qa .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 320ms var(--ease); }
.qa button[aria-expanded="true"] .pm::after { transform: translate(-50%, -50%); }
.qa .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.qa .a > div { overflow: hidden; }
.qa .a p { padding-bottom: 18px; color: var(--ink-2); max-width: 44em; }
.qa button[aria-expanded="true"] + .a { grid-template-rows: 1fr; }

/* ---------- footer (on the sheet, above the word) ---------- */
.foot { padding-block: 72px 40px; border-top: 1px solid var(--line-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h2 { font-family: var(--font-text); font-weight: 500; font-size: .8rem; color: var(--ink-3); margin-bottom: 10px; }
.foot-grid a, .foot-grid button.link { display: block; text-decoration: none; color: var(--ink-2); font-size: .9rem; padding: 3px 0; background: none; border: 0; text-align: left; }
.foot-grid a:hover { color: var(--ink); }
.foot-end { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--ink-3); }
.theme-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--line-a); }
.theme-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.theme-seg button .lucide { width: 14px; height: 14px; }
.theme-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-low); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: span 2; } }

/* ---------- OS: the floating orb and its sheet ---------- */
.os-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 58; display: flex; align-items: center; border: 0; padding: 0; background: transparent; transition: transform 520ms var(--ease-out), opacity 320ms var(--ease); }
.os-fab.away { transform: translateY(160%); opacity: 0; pointer-events: none; }
.os-fab .host { width: 60px; height: 60px; position: relative; flex: none; }
.os-fab .host canvas { position: absolute; inset: -14px; width: 88px !important; height: 88px !important; pointer-events: none; }
.os-fab .tip { margin-right: 6px; padding: 8px 0; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--sh-mid); font-size: .84rem; color: var(--ink-2); white-space: nowrap; max-width: 0; opacity: 0; overflow: hidden; transition: max-width 520ms var(--ease-out), opacity 320ms var(--ease), padding 520ms var(--ease-out); }
.os-fab:hover .tip { max-width: 320px; opacity: 1; padding-inline: 14px; }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(15, 20, 30, .22); opacity: 0; pointer-events: none; transition: opacity 320ms var(--ease); }
.scrim.show { opacity: 1; pointer-events: auto; }
.osheet { position: fixed; z-index: 71; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100vh - 96px)); background: var(--sheet); border-radius: 28px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(27, 27, 27, .35); display: flex; flex-direction: column; overflow: hidden; transform: translateY(16px) scale(.96); transform-origin: bottom right; opacity: 0; pointer-events: none; transition: transform 520ms var(--spring), opacity 200ms var(--ease); }
.osheet.show { transform: none; opacity: 1; pointer-events: auto; }
.osheet .hdr { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line-2); }
.osheet .hdr .host { width: 40px; height: 40px; position: relative; flex: none; }
.osheet .hdr .host canvas { position: absolute; inset: -8px; width: 56px !important; height: 56px !important; }
.osheet .hdr b { display: block; font-weight: 500; }
.osheet .hdr small { color: var(--ink-3); font-size: .78rem; }
.icon-btn { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--line-a); }
.icon-btn .lucide { width: 18px; height: 18px; }
.osheet .body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.sugs { display: flex; flex-wrap: wrap; gap: 6px; }
.sugs button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--well); font-size: .8rem; color: var(--ink-2); }
.osheet form { padding: 10px; border-top: 1px solid var(--line-2); }
.osheet form .box { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 18px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.osheet textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; min-height: 22px; font-size: .92rem; padding: 7px 0; }
.osheet .note { font-size: .7rem; color: var(--ink-3); text-align: center; margin-top: 6px; }
@media (max-width: 560px) { .osheet { left: 8px; right: 8px; bottom: 8px; width: auto; height: calc(100vh - 76px); } }

#ribbons { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 59; }
.veil { position: fixed; inset: 0; z-index: 80; pointer-events: none; background: var(--ground); opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* story states, switched by scroll */
.ros .view { opacity: 0; transition: opacity 450ms var(--ease); }
.ros .view.on { opacity: 1; }

/* pass two */
.bene:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
@media (max-width: 860px) { .bene:nth-child(even) { grid-template-columns: 1fr; } }
.ucard .im { overflow: visible; }
.ucard .im::after { border-radius: inherit; }
.rail { padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.close .fade-t { background: linear-gradient(var(--wash), transparent); }
.reveal .word { transform: translateY(22%); }
.logo { gap: 9px; }

.phero .display { max-width: 17ch; }
.uch .display { max-width: 15ch; }
.phero:not(.dark)::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1; background: linear-gradient(color-mix(in srgb, var(--ground) 72%, transparent), transparent); pointer-events: none; }

.clock { z-index: 2; }
@media (max-width: 600px) {
  .composer .hint .long { display: none; }
  .composer textarea { padding-right: 0; }
  .clock { font-size: .72rem; padding: 7px 12px; }
}

/* ---------- steadiness pass ---------- */
.paint { will-change: auto; }
.reveal { position: relative; left: auto; right: auto; bottom: auto; z-index: 1; margin-top: calc(-1 * clamp(24px, 4vw, 48px)); padding-top: clamp(24px, 4vw, 48px); height: calc(var(--reveal-h) + clamp(24px, 4vw, 48px)); }
.reveal .word { transform: none; will-change: transform; }
.badge, .chip, .composer, .btn-glass, .seg, .os-fab .tip, .uch .ic-lg, .map { backdrop-filter: none; -webkit-backdrop-filter: none; }
.badge, .chip, .os-fab .tip, .uch .ic-lg { background: color-mix(in srgb, var(--card) 90%, transparent); }
.btn-glass { background: color-mix(in srgb, var(--card) 92%, transparent); }
.composer { background: var(--card); }
.seg { background: color-mix(in srgb, var(--card) 94%, transparent); }
.map { background: var(--card); }
.ticker, .ticker ul { will-change: auto; }

/* ---------- fewer, cheaper layers ---------- */
.site { border-radius: 0; box-shadow: none; overflow: visible; }
.foot { position: relative; z-index: 2; background: var(--ground); border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); box-shadow: 0 24px 48px -28px hsla(0, 0%, 20%, .35); }
.page { overflow-x: clip; }
.veil { display: none; }
#ribbons { width: 100vw; height: 100vh; }
.ros .pscene { display: none; }
.ros .pscene.on { display: grid; }

/* =================================================================== the tale */

/* the dashboard */
.avs { display: flex; }
.avs .av { width: 26px; height: 26px; font-size: 9px; border: 2px solid var(--card); margin-left: -7px; }
.dt { background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; transition: box-shadow 400ms var(--ease), border-color 400ms var(--ease), transform 500ms var(--ease-out); }
.dt.focus { border-color: color-mix(in srgb, var(--sky) 55%, var(--line-2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 14%, transparent), 0 10px 24px -14px hsla(0, 0%, 30%, .3); transform: translateY(-2px); }
@container (max-width: 760px) {
  .avs { display: none; }
  .dt { padding: 10px; gap: 6px; }
}
@container (max-width: 760px) { }

/* ============ the real RecordOS web dashboard (apps/web: app-shell, sidebar, dashboard-page, insight cards) ============ */
/* main box */
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6F6F6F; }
.fresh .lucide { width: 14px; height: 14px; }
.card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; border-radius: 12px; border: 1px solid #E0E0E0; background: #fff; padding: 16px; box-shadow: 0 2px 4px 0 hsla(0, 0%,18%,.06); transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease); }
.card.s { grid-column: span 3; } .card.w { grid-column: span 6; } .card.l { grid-column: span 6; grid-row: span 2; }
.card.focus { border-color: #179F51; box-shadow: 0 0 0 4px color-mix(in srgb, #179F51 16%, transparent), 0 2px 4px 0 hsla(0, 0%,18%,.06); }
.kv { font-family: var(--font-head); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0; }
.kv.h1 { font-size: 32px; line-height: 42px; } .kv.h2 { font-size: 24px; line-height: 32px; } .kv.h3 { font-size: 20px; line-height: 28px; }
.kv.in { color: #007C37; } .kv.out { color: #B53535; }
.dl { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 17px; color: #6F6F6F; margin-top: -6px; }

/* =================================================================== hero fixes */
.composer { border: 1px solid #CFCFCF; box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), 0 24px 50px -24px hsla(0, 0%, 28%, .35); }
.composer:focus-within { border-color: #BCBCBC; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(700px, 100%); max-width: none; margin-top: 18px; }
.gchip { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 8px; border-radius: 14px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(33,33,33,.06), 0 6px 16px -10px hsla(0, 0%, 20%, .35); text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 500; text-align: left; transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease), background 200ms var(--ease); }
.gchip .ic { width: 34px; height: 34px; border-radius: 10px; background: #F2F4F6; display: grid; place-items: center; flex: none; color: var(--ink); }
.gchip .ic .lucide { width: 17px; height: 17px; }
.gchip .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gchip .go { color: var(--ink-4); transition: color 200ms var(--ease), transform 300ms var(--ease-out); }
.gchip .go .lucide { width: 15px; height: 15px; }
.gchip:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 0 0 1px rgba(33,33,33,.08), 0 14px 26px -14px hsla(0, 0%, 20%, .45); }
.gchip:hover .go { color: var(--ink); transform: translate(2px, -2px); }
@media (max-width: 640px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .gchip { height: 48px; font-size: .84rem; } }
/* the headline word, with its icon */
.ticker li > span { display: inline-flex; align-items: center; gap: .22em; }
.tk-ic { width: .82em; height: .82em; border-radius: .22em; display: inline-grid; place-items: center; background: #F2F4F6; color: var(--ink); transform: scale(.4) rotate(-12deg); opacity: 0; transition: transform 520ms var(--spring), opacity 260ms var(--ease); }
.tk-ic .lucide { width: .5em; height: .5em; stroke-width: 2.2; }
.tk-ic.k-in { background: var(--in-tint); color: var(--in); } .tk-ic.k-out { background: var(--out-tint); color: var(--out); }
.tk-ic.k-both { background: var(--warn-tint); color: var(--warn); } .tk-ic.k-count { background: var(--info-tint); color: var(--info); }
.ticker li.is-now .tk-ic { transform: none; opacity: 1; transition-delay: 260ms; }

/* =================================================================== footer: the whole word */
.reveal { height: auto; padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 56px); margin-top: 0; align-items: center; }
.reveal .word { transform: none !important; line-height: .9; }

/* =================================================================== act 1: the log */
.logx { position: relative; background: var(--ground); }
.logx-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; padding-top: 64px; }
.logx-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; height: 100%; }
.logx-left { display: flex; flex-direction: column; justify-content: center; gap: 28px; min-width: 0; position: relative; z-index: 3; }
.lhead { display: grid; gap: 12px; transform-origin: 0 50%; will-change: transform; }
.lhead .h2 { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.9rem); line-height: 1.1; }
.lhead .lead { font-size: 1rem; }
.lrail { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: grid; gap: 10px; opacity: 0; }
.lrail::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 10px); }
.lslot { position: relative; min-height: 64px; }
.ldot { position: absolute; left: -22px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 2px var(--line); transition: background 300ms var(--ease), box-shadow 300ms var(--ease); z-index: 1; }
.lslot.placed .ldot { background: var(--ink); box-shadow: 0 0 0 4px var(--ground); }
.lghost { position: absolute; left: 4px; top: 18px; font-size: .82rem; color: var(--ink-4); font-variant-numeric: tabular-nums; transition: opacity 200ms var(--ease); }
.lslot.placed .lghost { opacity: 0; }
.lentry { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; box-shadow: 0 10px 24px -16px hsla(0, 0%, 25%, .3); opacity: 0; will-change: transform, opacity; }
.lentry .lt { display: flex; align-items: center; gap: 8px; }
.lentry .tm { font-family: var(--font-head); font-weight: 500; font-size: .95rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lentry p { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.lthings { display: flex; flex-wrap: wrap; gap: 6px; }
.lthing { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 4px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .74rem; color: var(--ink-2); }
.lthing .itile { width: 20px; height: 20px; border-radius: 6px; }
.lthing .itile .lucide { width: 11px; height: 11px; }
.lentry.night { background: #212121; border-color: #212121; }
.lentry.night .tm { color: #FAFAFA; } .lentry.night p { color: #D6D6D6; }
.lentry.night .tag { background: rgba(255,255,255,.12); color: #E0E0E0; }
.lentry.night .lthing { background: rgba(255,255,255,.08); box-shadow: none; color: #E0E0E0; }
.lend { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); opacity: 0; max-width: 24em; }
.logx-right { height: 100%; display: grid; align-items: center; min-width: 0; }
.lstage { position: relative; width: 100%; aspect-ratio: 7 / 6; max-height: 76svh; border-radius: 28px; overflow: hidden; opacity: 0; box-shadow: 0 30px 60px -36px hsla(0, 0%, 25%, .45); }
.gscene { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--ease); }
.gscene.on { opacity: 1; }
/* a before-painting cross-fades in (600ms, Decided 1) and is shown whole, with no zoom (Decided 5) */
.gpaint { position: absolute; inset: 0; background-size: cover; background-position: center; }
.gscene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(255,255,255,.5), rgba(255,255,255,.12) 70%); pointer-events: none; }
.gscene.night::after { background: radial-gradient(ellipse at 50% 55%, rgba(13, 13, 13,.15), rgba(13, 13, 13,.45) 80%); }
@media (max-width: 900px) {
  .logx-pin { padding-top: 70px; align-items: start; }
  .logx-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 14px; align-content: start; }
  .logx-left { display: contents; }
  .lhead { order: 0; gap: 6px; }
  .lhead .h2 { font-size: 1.6rem; }
  .lhead .lead { display: none; }
  .logx-right { order: 1; height: auto; }
  .lstage { aspect-ratio: 4 / 3; max-height: 34svh; border-radius: 20px; }
  .lrail { order: 2; gap: 6px; }
  .lslot { min-height: 44px; }
  .lentry { padding: 8px 10px; gap: 3px; border-radius: 12px; }
  .lentry .lthings { display: none; }
  .lentry p { font-size: .78rem; line-height: 1.35; }
  .lentry .tm { font-size: .82rem; }
  .ldot { top: 14px; }
  .lghost { top: 12px; }
  .lend { order: 3; font-size: .9rem; }
}

/* =================================================================== act 2: inside RecordOS */
.inx { position: relative; background: var(--wash); }
.inx-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; container-type: size; }
.inhead { position: absolute; left: 50%; top: 50%; width: min(900px, 92%); transform: translate(-50%, 0); text-align: center; display: grid; justify-items: center; gap: 12px; margin-top: -2.2em; transform-origin: 50% 50%; z-index: 4; }
.inhead .h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1.1; }
.view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 260ms var(--ease), visibility 0s linear 260ms; }
.view.on { opacity: 1; visibility: visible; transition: opacity 360ms var(--ease) 80ms, visibility 0s; }
@keyframes grow { from { width: 0; } }
@container (max-width: 760px) { }
@container (max-width: 760px) { }
/* hero tiles: room for the whole name; the arrow only on hover */
.chips { width: min(780px, 100%); }
.gchip { position: relative; padding-right: 10px; }
.gchip .go { position: absolute; right: 8px; top: 8px; opacity: 0; }
.gchip:hover .go { opacity: 1; }
.gchip .nm { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.2; }
/* the word's icon is always there; as its word arrives it expands, pops, and settles */
.tk-ic { opacity: 1; transform: none; transition: none; }
.ticker li.is-now .tk-ic { animation: tkpop 760ms var(--spring) both; }
@keyframes tkpop { 0% { transform: scale(.3) rotate(-18deg); } 55% { transform: scale(1.18) rotate(4deg); } 100% { transform: none; } }
.logx-pin { padding-top: 76px; }
.logx-left { gap: 22px; }
.ticker ul { width: max-content; } .ticker li > span { white-space: nowrap; }

.nw { white-space: nowrap; display: inline-block; }
.lrail { z-index: 5; } .lentry { z-index: 6; } .logx-right { position: relative; z-index: 1; }
.foot-grid a.logo { display: inline-flex; gap: 9px; }

/* ticker: the box resizes on its own beat, never while a word is moving */
.ticker { transition: width 300ms var(--ease-out); }
.ticker ul { transition: transform 620ms var(--ease-io); }
/* the industry grid: a quiet second choice under the box */
.chips-lab { margin-top: 26px; font-size: .8rem; color: var(--ink-3); }
.chips { margin-top: 10px; gap: 8px; width: min(720px, 100%); }
.gchip { height: 42px; padding: 0 10px 0 6px; gap: 8px; border-radius: 12px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .6); box-shadow: none; color: var(--ink-2); font-weight: 400; font-size: .84rem; backdrop-filter: none; }
.gchip .ic { width: 28px; height: 28px; border-radius: 8px; background: transparent; color: var(--ink-3); }
.gchip .ic .lucide { width: 15px; height: 15px; }
.gchip:hover { transform: none; background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: 0 0 0 1px rgba(33,33,33,.06); }
.gchip:hover .ic { color: var(--ink); }
@media (max-width: 640px) { .gchip { height: 40px; } .chips-lab { margin-top: 20px; } }

.chips { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(600px, 100%); }
@media (max-width: 640px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ticker { overflow: visible; clip-path: inset(0 -100vw 0 -100vw); transition: width 640ms var(--ease-io); }
.ticker ul { transition: transform 640ms var(--ease-io); }

/* 9:40 pm is the same shop after closing: dimmed, cool, one lamp still warm */
.gscene.night .gpaint { filter: brightness(.42) saturate(.75) hue-rotate(-12deg); }
.gscene.night::after { background: radial-gradient(ellipse at 55% 35%, rgba(255, 196, 120, .22), transparent 45%), linear-gradient(180deg, rgba(24, 24, 24, .55), rgba(13, 13, 13, .35)); }

/* act 2, inside RecordOS: the screen on the left, the day's log on the right */
.inx-pin { display: grid; align-items: center; padding-top: 72px; }
.wrap.inx-grid { max-width: 1440px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); gap: clamp(28px, 3.4vw, 56px); align-items: center; height: 100%; }
.inx-left { min-width: 0; position: relative; z-index: 1; }
.inx-right { min-width: 0; height: min(660px, calc(100svh - 128px)); display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 3; }
.inx .inhead { position: relative; left: auto; top: auto; width: auto; margin: 0; transform: none; text-align: left; justify-items: start; gap: 10px; transform-origin: 50% 50%; will-change: transform; }
.inx .inhead .h2 { font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.1; }
.ilog { position: relative; flex: 1; min-height: 0; overflow: hidden; opacity: 0; }
.ilog.scrolled { -webkit-mask-image: linear-gradient(transparent, #000 40px); mask-image: linear-gradient(transparent, #000 40px); }
.ilog-in { list-style: none; margin: 0; padding: 2px 0 0 22px; display: grid; gap: 6px; position: relative; transition: transform 600ms var(--ease-io); }
.ilog-in::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 10px); }
.ient { position: relative; opacity: 0; will-change: transform, opacity; }
.idot { position: absolute; left: -22px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--wash); z-index: 1; transition: transform 300ms var(--ease); }
.ibox { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 14px 12px; display: grid; gap: 4px; box-shadow: 0 10px 24px -16px hsla(0, 0%, 25%, .3); transition: background 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease), padding 400ms var(--ease-io); }
.ient .lt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ient .tm { font-family: var(--font-head); font-weight: 500; font-size: .95rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ient .tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ient .ix { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 420ms var(--ease-io), opacity 300ms var(--ease); }
.ient .ix > p { min-height: 0; overflow: hidden; font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.ient.done .ibox { background: var(--card); border-color: var(--ink); }
.ient.done .tm { color: var(--ink); }
.ient.done .idot { background: var(--in-fill); }
/* below 1100px the screen is too small beside the log, so the two stack: heading, screen, log */
@media (max-width: 1099px) {
  .inx-pin { padding-top: 70px; align-items: start; }
  .wrap.inx-grid { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; gap: 12px; align-content: start; height: calc(100svh - 70px); padding-bottom: 12px; }
  .inx-right { display: contents; }
  .inx .inhead { order: 0; gap: 4px; }
  .inx .inhead .h2 { font-size: 1.55rem; }
  .inx-left { order: 1; }
  .wrap.inx-grid { grid-template-rows: auto auto minmax(0, 1fr); align-items: start; }
  .ilog { order: 2; align-self: stretch; height: auto; }
  .ibox { padding: 8px 12px 10px; border-radius: 12px; }
  .ient .ix > p { font-size: .82rem; line-height: 1.38; }
  .ient .tm { font-size: .85rem; }
  .idot { top: 12px; }
}
/* the grid stays quiet, but its label and names read over the painting */
.chips-lab { color: var(--ink-2); text-shadow: 0 0 10px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .9); }
.gchip { background: rgba(255, 255, 255, .66); border-color: rgba(255, 255, 255, .75); }

/* ---------------------------------------------------------------- comment pass, 14 Oct */
/* labels carry no leading rule */
.kicker::before { content: none; display: none; }
/* the second half of a headline stays readable: darker, never faded */
.soft { color: var(--ink-2); }
.close .soft, .phero.dark .display .soft { color: rgba(255, 255, 255, .92); }
/* one footer on every page: the same gray ground, the same edge */
.foot { background: var(--ground) !important; }
.reveal { background: var(--wash-2); }
/* the ticker's rows are taller than the headline's line, with the extra split above and below,
   so a word's g and y never show under the next one and are never cut; the margins keep the baseline */
.ticker { height: 1.52em; margin-block: -0.2em; vertical-align: top; }
.ticker li { height: 1.52em; line-height: 1.52; }
/* night is dark, not navy */
.gscene.night::after { background: radial-gradient(ellipse at 55% 35%, rgba(255, 196, 120, .18), transparent 45%), linear-gradient(180deg, rgba(20, 20, 20, .55), rgba(12, 12, 12, .35)); }
.gscene.night .gpaint { filter: brightness(.42) saturate(.6); }
.lentry.night { background: #212121; border-color: #212121; }
.lentry.night .tm { color: #FAFAFA; } .lentry.night p { color: #D6D6D6; } .lentry.night .tag { color: #E0E0E0; } .lentry.night .lthing { color: #E0E0E0; }
/* the last part stays beside the stage until its words reach the stage's middle */
@media (min-width: 901px) { .parts > div:first-child { padding-bottom: 22vh; } }
/* every business in the strip carries its own icon */
.mrow span { display: inline-flex; align-items: center; gap: 9px; padding: 6px 15px 6px 6px; }
.mrow .mic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); flex: none; padding: 0; border: 0; }
.mrow .mic .lucide { width: 14px; height: 14px; }
.mrow span em { color: var(--ink-3); }
/* use-case cards: the same three lines of room for every line of text, so names, words and links line up across the row */
.ucard { display: flex; flex-direction: column; }
.ucard .tx { gap: 6px; }
.ucard:not(.all) p { line-height: 1.5; min-height: 4.5em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* the beta form, in three steps */
.steps-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.steps-n { font-size: .78rem; color: var(--ink-2); font-weight: 500; }
.steps-bar { display: flex; gap: 4px; flex: 1; max-width: 180px; }
.steps-bar i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background 300ms var(--ease); }
.steps-bar i.on { background: var(--ink); }
.fstep { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.fstep.on { display: block; }
.fq { padding: 0; font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--ink); }
.fhint { font-size: .86rem; color: var(--ink-2); margin: -6px 0 12px; }
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kind { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px 0 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--well); font-size: .88rem; color: var(--ink); text-align: left; transition: background 200ms var(--ease), border-color 200ms var(--ease); }
.kind:hover { border-color: var(--ink-4); background: var(--card); }
.kind .kic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.kind .kic .lucide { width: 16px; height: 16px; }
.kind[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.kind[aria-pressed="true"] .kic { background: rgba(255, 255, 255, .14); box-shadow: none; color: #fff; }
#fOther { margin-top: 12px; }
#joinForm .err { display: block; font-size: .78rem; color: var(--out); margin-top: 8px; }
#joinForm .err[hidden] { display: none; }
.tracks button .lucide { width: 14px; height: 14px; }
.fnav { display: flex; gap: 10px; margin-top: 22px; }
.fnav .btn { --h: 48px; }
.fnav .btn-ink { flex: 1; justify-content: center; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 0 16px; }
.btn-ghost .lucide { width: 16px; height: 16px; }
.fnav [hidden] { display: none !important; }
@media (max-width: 520px) { .kinds { grid-template-columns: 1fr 1fr; } .kind { font-size: .8rem; height: 46px; gap: 8px; } .kind .kic { width: 28px; height: 28px; } }
/* ---------------------------------------------------------------- one use case, as a story */
.ucback { display: inline-flex; align-items: center; gap: 6px; align-self: start; justify-self: start; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--glass-line); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 500; margin-bottom: 10px; box-shadow: var(--sh-low); }
.ucback .lucide { width: 15px; height: 15px; transition: transform 250ms var(--ease-out); }
.ucback:hover .lucide { transform: translateX(-3px); }
.uch .wrap { display: grid; gap: 14px; justify-items: start; }
.chap { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.chap b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--on-fill); font-size: .78rem; font-weight: 600; }
.ucs .h2 { margin-top: 14px; }
.ucs .lead { margin-top: 14px; color: var(--ink-2); }
.pains { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.pains li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); line-height: 1.45; }
.pains .px { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--out-tint); color: var(--out); flex: none; margin-top: -1px; }
.pains .px .lucide { width: 13px; height: 13px; stroke-width: 2.4; }
.lens { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: #fff; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5); opacity: 0; z-index: 3; }
.lens .lucide { width: 18px; height: 18px; }
.uchead { max-width: 760px; }
.merge { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 4fr) auto minmax(0, 6fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.mc { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #FFFDF7; border: 1px dashed var(--ink-4); font-size: .9rem; will-change: transform, opacity; }
.mc .itile { width: 30px; height: 30px; border-radius: 9px; }
.mwrows { display: grid; padding: 8px; gap: 4px; min-height: 240px; align-content: start; }
.mr { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.mr:nth-child(odd) { background: var(--well); }
.mr .itile { width: 34px; height: 34px; border-radius: 10px; }
.mr b { display: block; font-weight: 500; font-size: .95rem; } .mr small { color: var(--ink-2); font-size: .8rem; }
.now { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.now:nth-child(odd) .nowtx { order: 2; }
.nowtx { display: grid; gap: 10px; align-content: center; }
.nn { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink-3); letter-spacing: .02em; }
.nowtx h3 { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.18; }
.nowtx p { color: var(--ink-2); max-width: 28em; }
.rs-end { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--ink-2); }
.rs-end .lucide { width: 12px; height: 12px; }
.ucta { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(96px, 12vw, 160px); text-align: center; color: #fff; }
.ucta .paint { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; filter: brightness(.42) saturate(.7); }
.ucta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 20, .25), rgba(20, 20, 20, .55)); z-index: -1; }
.ucta .wrap { display: grid; justify-items: center; gap: 16px; }
.ucta .display { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); max-width: 20ch; }
.ucta p { color: rgba(255, 255, 255, .9); max-width: 34em; }
.ucta .ic-lg { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; }
.ucta .ic-lg .lucide { width: 24px; height: 24px; }
.ucta .ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn-white { background: #fff; color: #111; }
@media (max-width: 860px) {
  .now { grid-template-columns: 1fr; }
  .now:nth-child(odd) .nowtx { order: 0; }
  .merge { grid-template-columns: 1fr; }
}
@media (min-width: 861px) { .now:nth-child(odd) { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); } }
[hidden] { display: none !important; }
/* the night paintings lean navy; pull them toward gray */
.phero.dark .paint, .close .paint { filter: saturate(.45); }
/* Act 1: each moment grows out of its dot on the rail */
.lslot.lit .ldot { background: var(--ink); box-shadow: 0 0 0 4px var(--ground); transform: scale(1.15); transition: background 200ms var(--ease), transform 300ms var(--spring); }
.lslot.lit .lghost { opacity: 0; }
.lentry { will-change: clip-path; }
/* Act 2 log: the newest moment carries its detail; the rail stops at the newest dot */
.ilog-in::before { bottom: auto; height: max(0px, var(--lh, 0px)); transition: height 400ms var(--ease-io); }
.ient .ix > div { min-height: 0; overflow: hidden; display: grid; gap: 10px; }
.ient .ix > div > p { overflow: visible; min-height: 0; }
.ifacts { list-style: none; margin: 0; padding: 10px 0 2px; display: grid; gap: 7px; border-top: 1px solid var(--line-2); }
.ifacts li { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.fi2 { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); flex: none; }
.fi2 .lucide { width: 13px; height: 13px; }
.ient { will-change: clip-path; }
@media (max-width: 759px) { .ifacts { padding-top: 8px; gap: 5px; } .ifacts li { font-size: .76rem; } .fi2 { width: 20px; height: 20px; } }
/* under the footer is one flat gray, from the rounded corners down to the very bottom: no shadow band, no second shade */
html, body { background: var(--wash-2); }
.foot { box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.reveal, .reveal-space { background: var(--wash-2) !important; background-image: none !important; }
/* the closing band: a clean edge instead of a muddy gray fade, one even darkening for the words, and the words in the middle */
.close { min-height: clamp(520px, 72vh, 680px); align-content: center; justify-items: center; padding-block: clamp(80px, 10vw, 120px); }
.close .fade-t { display: none; }
.close::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(18, 18, 18, .5), rgba(18, 18, 18, .18) 70%, rgba(18, 18, 18, .08)); pointer-events: none; }
.close p { color: rgba(255, 255, 255, .9); }
/* behind the footer: one clear gray that runs up under the footer's rounded corners and down to the end of the page */
.reveal { background: #E4E4E4 !important; }
/* the page sheet is light gray, except the strip behind the footer's rounded corners, which takes the darker gray from below */
.site { background: linear-gradient(var(--ground), var(--ground)) top left / 100% calc(100% - clamp(24px, 4vw, 48px)) no-repeat, #E4E4E4; }
.foot { position: relative; z-index: 2; }
html, body { background: #E4E4E4; }
/* the wordmark's mark stands as tall as the letters: its foot on the baseline, its top at the capitals */
.reveal .word { align-items: baseline; gap: .08em; }
.reveal .word svg { width: .73em; height: .73em; margin-bottom: 0; flex: none; }
/* the feature list's progress line is a plain bar, not the insight-card bar grid that shares its class name */
@media (min-width: 760px) and (max-width: 1099px) { .inx .inhead .h2 { font-size: 1.9rem; } .ilog { max-width: 720px; } }
/* Act 2 on wide screens: the screen and its log form one block, centred on the page like the sections around it,
   and the log column runs exactly from the screen's top edge to its bottom edge */
@media (min-width: 1100px) {
  .wrap.inx-grid { max-width: calc(var(--maxw) + 180px); height: auto; align-self: center; }
  .inx-right { height: auto; align-self: stretch; }
  .ilog { flex: 1 1 0; height: 0; }
}
/* the "seventy more" strip: square cards, the business's icon top left, its city top right, its name below */
.mrow { gap: 12px; }
.marquee { gap: 12px; }
.mrow .mcard { display: flex; flex-direction: column; justify-content: space-between; width: 168px; height: 168px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); white-space: normal; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.mrow .mcard .mtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 0; border: 0; background: none; }
.mrow .mcard .mic { width: 44px; height: 44px; border-radius: 14px; }
.mrow .mcard .mic .lucide { width: 21px; height: 21px; }
.mrow .mcard em { display: inline-flex; align-items: center; gap: 3px; margin: 2px 0 0; font-size: .72rem; color: var(--ink-3); text-align: right; line-height: 1.3; padding: 0; border: 0; background: none; }
.mrow .mcard em .lucide { width: 11px; height: 11px; flex: none; }
.mrow .mcard b { font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
@media (max-width: 640px) { .mrow .mcard { width: 140px; height: 140px; padding: 12px; } .mrow .mcard .mic { width: 38px; height: 38px; } .mrow .mcard b { font-size: .9rem; } }
.mrow .mcard { align-items: stretch; text-align: left; gap: 0; }
.mrow .mcard .mtop { width: 100%; }
.mrow .mcard b { text-align: left; }
/* the footer reveal: the wordmark is fixed under the page and uncovered by the last scroll */
.reveal { position: fixed !important; left: 0; right: 0; bottom: 0; top: auto; z-index: 1; margin: 0 !important; visibility: hidden; }
.site { position: relative; z-index: 2; background: linear-gradient(var(--ground), var(--ground)) top left / 100% calc(100% - clamp(24px, 4vw, 48px)) no-repeat; }
.reveal .word { will-change: translate; }
/* ---------------------------------------------------------------- phones: the day as a scrolling story */
.mstory { display: none; }
@media (max-width: 759px) {
  #logx, #inx { display: none; }
  .mstory { display: block; position: relative; background: var(--ground); padding: 8px 0 72px; }
  .mstory.after { background: var(--wash); padding-top: 24px; }
  .mhd { position: sticky; top: 66px; z-index: 5; padding: 14px 0 16px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); background: linear-gradient(var(--ground) 82%, rgba(245, 245, 245, 0)); display: grid; gap: 4px; }
  .mstory.after .mhd { background: linear-gradient(var(--wash) 82%, rgba(245, 245, 245, 0)); }
  .mhd .h2 { font-size: 1.6rem; line-height: 1.12; }
  .mlist { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: grid; }
  .mlist::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 30%; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 10px); }
  .mitem { position: relative; min-height: 58svh; display: grid; align-content: center; gap: 10px; padding: 12px 0; opacity: .12; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 700ms var(--ease-out); }
  .mitem.shown { opacity: 1; transform: none; }
  .mdot { position: absolute; left: -22px; top: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 2px var(--line); transition: background 300ms var(--ease), box-shadow 300ms var(--ease); }
  .mitem { --dot-top: 0; }
  .mitem .mdot { top: 22px; }
  .mitem.shown .mdot { background: var(--ink); box-shadow: 0 0 0 4px var(--ground); }
  .mstory.after .mitem.shown .mdot { box-shadow: 0 0 0 4px var(--wash); }
  .mitem.done.shown .mdot { background: var(--in-fill); }
  .mt { display: flex; align-items: center; gap: 8px; }
  .mt .tm { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
  .mitem > p { font-size: 1rem; line-height: 1.45; color: var(--ink); max-width: 30em; }
  .mfig { border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-height: 36svh; }
  .mfig figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
  .mfig figure img { height: 17svh; max-height: 140px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .18)); }
  .mfig figcaption { font-size: .76rem; color: var(--ink-2); text-align: center; }
  .mitem.shown .mfig figure img { animation: mpop 700ms var(--spring) both; }
  .mitem.shown .mfig figure + figure img { animation-delay: 120ms; }
  @keyframes mpop { from { transform: scale(.8) translateY(8px); opacity: 0; } }
  .mfig.night { background: #212121; border-color: #212121; grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .mitem.night .tag { background: #212121; color: #FAFAFA; }
  .mend { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; padding: 8px 0 0 22px; opacity: .12; transition: opacity 600ms var(--ease); }
  .mend.shown { opacity: 1; }
}
@media (max-width: 759px) {
  .mitem { align-content: start; padding-top: 7svh; }
  .mitem .mdot { top: calc(7svh + 5px); }
}
/* phones: moments sit close together; each still arrives as it reaches the reading line */
@media (max-width: 759px) {
  .mitem { min-height: 0; padding: 18px 0 30px; }
  .mitem .mdot { top: 23px; }
  .mlist::before { bottom: 40px; }
}
@media (max-width: 759px) { .mstory { padding-bottom: 28px; } .mstory.after { padding-top: 12px; } .mend { padding-bottom: 8px; } }
/* the use-case back link: plain text, tucked above the hero's content so it pushes nothing down */
.uch .wrap { position: relative; }
.ucback { position: absolute; left: var(--gutter); top: -40px; height: auto; padding: 4px 0; margin: 0; background: none !important; border: 0; box-shadow: none; border-radius: 0; color: var(--ink-2); font-size: .86rem; }
.ucback:hover { color: var(--ink); }
@media (max-width: 640px) { .ucback { top: -32px; } }
/* at the top of a page the header floats on the painting; a soft frosted band behind it keeps its links readable */
.nav::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 118px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(245, 245, 245, .9) 0%, rgba(245, 245, 245, .62) 55%, rgba(245, 245, 245, 0) 100%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 52%, transparent); mask-image: linear-gradient(#000 52%, transparent); opacity: 1; transition: opacity 300ms var(--ease); }
.nav.pill::before { opacity: 0; }
.nav.dark:not(.pill)::before { background: linear-gradient(180deg, rgba(18, 18, 18, .62) 0%, rgba(18, 18, 18, .3) 55%, rgba(18, 18, 18, 0) 100%); }
/* the current page's link reads at a glance */
.nav-links a[aria-current="page"] { font-weight: 600; color: var(--ink); }
/* backdrops fade in once they have arrived */
[data-bg]:not(.bg-on) { opacity: 0; }
[data-bg].bg-on { animation: bgfade 700ms var(--ease) both; }
@keyframes bgfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { [data-bg].bg-on { animation: none; } }
/* scrolling back up: words zoom and fade in to their own size */
.zin { animation: zin var(--dur-reveal) var(--ease-out) both; }
@keyframes zin { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .zin { animation: none; } }
/* ---------------------------------------------------------------- the two home acts as a sticky story (wide screens)
   Nothing is pinned. The moments sit in the left column and scroll as usual, each landing when it reaches the
   middle of the window (tour.ts). The picture stays in view in the right column and changes with that moment, and
   a line fills down the rail as you scroll. Phones keep .mstory. */
@media (min-width: 760px) {
  .logx-pin, .inx-pin { height: auto; overflow: visible; display: block; padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); container-type: normal; }
  .logx-grid, .wrap.inx-grid { max-width: var(--maxw); height: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

  /* the rail: four moments, each given most of a window of scroll, and a filled line on the dashed one */
  .logx-left { display: block; }
  .lhead, .inx .inhead { transform: none !important; margin-bottom: clamp(28px, 5vh, 48px); }
  .lrail, .ilog-in { opacity: 1; gap: 0; transform: none !important; }
  .lrail::after, .ilog-in::after { content: ""; position: absolute; left: 6px; width: 2px; border-radius: 2px; background: var(--ink); height: var(--fill, 0px); z-index: 0; }
  .lrail::after { top: 12px; }
  .ilog-in::after { top: 14px; }
  .ilog-in::before { bottom: 14px; height: auto; }
  .lslot, .ient { min-height: 52vh; min-height: 52svh; padding-bottom: 28px; }
  .lslot:last-child, .ient:last-child { min-height: 0; }
  /* room under the last moment, so the picture stays while it is read */
  .logx-left, .inx-right { padding-bottom: 32vh; padding-bottom: 32svh; }
  .lentry, .ient { opacity: 0; transform: translateY(16px); clip-path: none !important; transition: opacity 500ms var(--ease), transform 650ms var(--ease-out); }
  .lslot.placed .lentry, .ient.shown { opacity: 1; transform: none; }
  .lend { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease), transform 650ms var(--ease-out); margin-top: 8px; }
  .lend.shown { opacity: 1; transform: none; }

  /* the picture: held in the middle of the window for as long as its moments are on screen */
  .logx-right, .inx-left { position: sticky; top: 0; height: 100vh; height: 100svh; align-self: start; display: grid; align-items: center; padding-top: 56px; }
  .lstage { opacity: 1; transform: none; max-height: calc(100svh - 150px); }

  /* act 2 reads the same way round as act 1: the moments on the left, the app on the right */
  .inx-right { order: -1; height: auto; display: block; }
  .inx .inhead { position: static; width: auto; margin-top: 0; text-align: left; justify-items: start; }
  .ilog { opacity: 1; overflow: visible; height: auto; flex: none; -webkit-mask-image: none; mask-image: none; }
}
/* ---------------------------------------------------------------- the use cases in three groups (spec D.4)
   /use-cases: jump chips under the hero, then For your business, For teams and For yourself, each a head and a grid.
   A card for a team or personal use case carries its honest line (.ucnot). */
.ucjump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ucjump .chip { color: var(--ink); }
.ucjump .chip:hover { background: var(--card); }

.ucgrp { padding-block: clamp(40px, 6vw, 72px); scroll-margin-top: 72px; }
.ucgrp.first { padding-top: 8px; }
.ucgrp + .ucgrp { border-top: 1px solid var(--line-2); }
.ucgrp .head { max-width: 720px; gap: 10px; }
.ucgrp .ucgrid { margin-top: 32px; }
.ucgn { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: .74rem; font-weight: 500; font-variant-numeric: tabular-nums; }
/* a group of one: its words beside its card, not a lone card under a wide head */
@media (min-width: 961px) {
  .ucgrp.solo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
  .ucgrp.solo .ucgrid { margin-top: 0; grid-template-columns: minmax(0, 1fr); justify-self: end; width: 100%; max-width: 420px; }
}
@media (min-width: 601px) and (max-width: 960px) { .ucgrp.solo .ucgrid { grid-template-columns: minmax(0, 1fr); max-width: calc(50% - 8px); } }
.ucmore { padding-top: clamp(24px, 4vw, 48px); }
.ucmore .marquee { margin-top: 40px; }

.ucard .ucnot { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: .78rem; line-height: 1.45; color: var(--ink-3); }
.ucard .ucnot .lucide { flex: none; width: 13px; height: 13px; margin-top: 2px; }

/* the team and personal heroes: their paintings are busy behind the words on a phone, so the wash reaches further */
@media (max-width: 760px) {
  .uch.wash-l:has(> .paint[data-bg^="uc-"])::before, .uch.wash-l:has(> .paint[data-bg="courtyard"])::before { background: linear-gradient(90deg, color-mix(in srgb, var(--ground) 88%, transparent) 0%, color-mix(in srgb, var(--ground) 74%, transparent) 64%, color-mix(in srgb, var(--ground) 46%, transparent) 100%); }
}

@media (max-width: 600px) {
  .ucjump { gap: 6px; }
  .ucjump .chip { height: 34px; font-size: .82rem; }
  .ucgrp .ucgrid { margin-top: 24px; }
}
/* Spec D.3 (stories, lane a): a phone moment of act 1 that names one place shows its one picture across the whole card, not in the left half. */
.mfig > figure:only-child { grid-column: 1 / -1; }
/* ---------------------------------------------------------------- home, version 2 (spec Phase C)
   Who it is for (C.4): three columns, each a painting, a line and its use cases.
   The voice band (C.5): the voice benefit, then two cards for offline and languages.
   Built from the site's own pieces: .ucard's painted top and floating tile, .dev's card, .gchip's row. */
.hw-head { margin-bottom: clamp(40px, 6vw, 72px); }
.hw-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hw-col { background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.hw-im { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.hw-im .itile { position: absolute; left: 18px; bottom: -18px; width: 44px; height: 44px; border-radius: 14px; background: var(--card); box-shadow: var(--sh-mid); z-index: 1; }
.hw-im .itile .lucide { width: 21px; height: 21px; }
.hw-tx { padding: 32px 20px 6px; display: grid; gap: 6px; }
.hw-tx h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.hw-tx p { font-size: .9rem; color: var(--ink-2); }
.hw-list { list-style: none; margin: 0; padding: 8px 10px 0; display: grid; gap: 2px; }
.hw-list a { display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background 200ms var(--ease); }
.hw-list a:hover { background: var(--well); }
.hw-nm { display: grid; gap: 1px; min-width: 0; }
.hw-nm b { font-weight: 500; font-size: .94rem; letter-spacing: -0.01em; }
.hw-nm small { font-size: .8rem; color: var(--ink-3); line-height: 1.4; }
.hw-go { width: 15px; height: 15px; color: var(--ink-4); transition: transform 300ms var(--ease-out), color 200ms var(--ease); }
.hw-list a:hover .hw-go { color: var(--ink); transform: translateX(3px); }
.hw-more { align-self: flex-start; margin: 10px 20px 22px; }
.hw-build { margin: clamp(40px, 5vw, 56px) auto 0; max-width: 40em; text-align: center; font-family: var(--font-head); font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); letter-spacing: -0.02em; line-height: 1.45; text-wrap: balance; }
@media (max-width: 1020px) {
  .hw-cols { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
  .hw-im { aspect-ratio: 21 / 8; }
}

.hw-edge .benes { gap: 0; }
.hw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 7vw, 96px); }
.hw-two .dev { align-content: start; }
.hw-two .textlink { justify-self: start; margin-top: 8px; }
.hw-langs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hw-langs li { height: 30px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .86rem; color: var(--ink-2); }
@media (max-width: 860px) { .hw-two { grid-template-columns: minmax(0, 1fr); } }
/* The day story's old app screens (View as, Setup) are gone: the after-moments are vignettes now, styled in
   v3-vignettes.css. Nothing is left here. */
/* Version 2, phones (docs/plans/recordos-site-v2.md, Phase A, and step B.2's product sections): what is left of them.
   Nothing a phone shows may crop, overlap or scroll sideways. */

/* Sketch on a phone: zooming a canvas that already fits the screen does nothing, so its buttons step aside */
.sk-canvas[data-narrow="1"] .cbar .zoom { display: none; }

/* ---------------------------------------------------------------- B.2: the new product sections */
/* Languages: the eleven OS speaks, each in its own script */
.lang-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lang-grid li { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px 18px; display: grid; gap: 2px; align-content: start; }
.lang-grid b { font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }
.lang-grid small { color: var(--ink-3); font-size: .8rem; line-height: 1.35; }
/* Version 2's site-wide pages (docs/plans/recordos-site-v2.md, steps B.3 to B.5): the five-column footer,
   pricing, about, contact, the beta's thanks page, the legal pages, and the beta form's consent lines.
   Built from site.css's tokens and parts (.phero, .head, .itile, .tag, .qa, .road); nothing here is a new look. */

/* ---------- the footer: the brand, then Features · Use cases · Resources · Company · Legal ---------- */
.foot-grid.v2 { grid-template-columns: minmax(0, 1.7fr) repeat(5, minmax(0, 1fr)); gap: 24px 20px; }
.foot-brand p { margin-top: 10px; font-size: .9rem; max-width: 22em; }
.foot-brand button.link { margin-top: 12px; }
.foot-end .textlink { color: var(--ink-2); font-size: .86rem; }
@media (max-width: 1040px) { .foot-grid.v2 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .foot-grid.v2 > .foot-brand { grid-column: 1 / -1; margin-bottom: 8px; } }
@media (max-width: 760px) { .foot-grid.v2 { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .foot-grid.v2 > .foot-brand { grid-column: 1 / -1; } }

/* ---------- shared: a plain hero, a tighter first section, a row of buttons ---------- */
.v2-hero { min-height: 0; padding-bottom: clamp(40px, 6vw, 72px); }
.v2-tight { padding-top: clamp(24px, 4vw, 48px); }
.v2-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.v2-acts.center { justify-content: center; }

/* a list of short lines, each with its icon tile */
.v2-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.v2-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }

/* ---------- pricing ---------- */
.v2-plans { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.v2-plan { display: grid; gap: 24px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: clamp(22px, 3vw, 34px); box-shadow: var(--sh-high); }
.v2-plan.quiet { background: var(--well); box-shadow: none; }
.v2-plan .btn { justify-self: start; }
.v2-plan-top { display: grid; gap: 10px; justify-items: start; }
.v2-plan-h { font-size: 1.35rem; letter-spacing: -0.02em; }
.v2-price { display: grid; gap: 2px; }
.v2-price > :first-child { font-family: var(--font-head); font-weight: 500; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); letter-spacing: -0.04em; line-height: 1.1; }
.v2-plan.quiet .v2-price > :first-child { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); color: var(--ink-2); }
.v2-price .muted { font-size: .86rem; }
.v2-plan-p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 820px) { .v2-plans { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.v2-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.v2-body { display: grid; gap: 18px; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.65; padding-top: 30px; }
.v2-pull { display: grid; gap: 10px; color: var(--ink); font-family: var(--font-head); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.45; letter-spacing: -0.02em; padding: 22px 0 0; border-top: 1px solid var(--line); }
.v2-pull .kicker { font-family: var(--font-text); letter-spacing: .01em; }
@media (max-width: 860px) { .v2-split { grid-template-columns: 1fr; gap: 8px; } .v2-body { padding-top: 16px; } }
.v2-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.v2-col { display: grid; gap: 12px; align-content: start; justify-items: start; text-decoration: none; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-low); transition: box-shadow 300ms var(--ease), transform 300ms var(--ease); }
.v2-col:hover { box-shadow: var(--sh-mid); transform: translateY(-2px); }
.v2-col h3 { font-size: 1.15rem; margin-top: 4px; }
.v2-col p { color: var(--ink-2); font-size: .95rem; }
.v2-col .textlink { margin-top: 4px; }
@media (max-width: 860px) { .v2-cols { grid-template-columns: 1fr; } }
.v2-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 40px; }
.v2-ways > div { display: grid; gap: 10px; align-content: start; }
.v2-ways h3 { font-size: 1.05rem; margin-top: 6px; }
.v2-ways p { color: var(--ink-2); font-size: .93rem; }
@media (max-width: 960px) { .v2-ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .v2-ways { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.v2-mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 14px; max-width: 100%; text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); letter-spacing: -0.03em; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; overflow-wrap: anywhere; transition: border-color 200ms var(--ease); }
.v2-mail:hover { border-color: var(--ink); }
.v2-mail .itile { width: 44px; height: 44px; border-radius: 14px; }
.v2-mail .itile .lucide { width: 20px; height: 20px; }
.v2-asks { margin: 18px 0 8px; }

/* ---------- the beta's thanks page ---------- */
.v2-done { width: 52px; height: 52px; border-radius: 50%; }
.v2-done .lucide { width: 22px; height: 22px; }
.v2-local { margin-top: 0; max-width: 34em; }
.road.v2-road { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs.v2-next::before { border-color: var(--ink); box-shadow: 0 0 0 6px var(--line-a); }
@media (max-width: 760px) { .road.v2-road { grid-template-columns: 1fr; } }

/* ---------- the legal pages ---------- */
.v2-legal-hero .lead a, .v2-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.v2-legal-hero .lead a:hover, .v2-prose a:hover { text-decoration-color: var(--ink); }
.v2-stamp { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--ink-3); }
.v2-prose { max-width: 700px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: clamp(22px, 4vw, 48px); box-shadow: var(--sh-low); }
.v2-prose h2 { font-size: 1.2rem; letter-spacing: -0.02em; margin-top: 36px; }
.v2-prose h2:first-child { margin-top: 0; }
.v2-prose p, .v2-prose ul { color: var(--ink-2); margin-top: 12px; }
.v2-prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.v2-prose li::marker { color: var(--ink-4); }

/* ---------- the beta form: the consent and the news opt-in ---------- */
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fill); cursor: pointer; }
.consent label { cursor: pointer; }
.consent a { color: var(--ink); text-underline-offset: 2px; }
.consent.bad input { outline: 2px solid var(--out); outline-offset: 2px; border-radius: 4px; }
.consent-err { display: block; font-size: .78rem; color: var(--out); margin: 6px 0 0 28px; }
.form-card .small a { color: inherit; text-underline-offset: 2px; }
/* The content library (Phase E of docs/plans/recordos-site-v2.md): templates, guides, comparisons, the
   glossary and the changelog. Built from site.css's tokens and pieces (.phero, .uch, .ucard, .roles-t,
   .ui-card, .pains, .ucta); only what those do not already draw is here. Light only, no blue. */

/* ---------- heroes: the use-case hero, shorter, since the words below are the point ---------- */
.cx-hero { min-height: 0; padding-bottom: clamp(48px, 7vw, 88px); }
.cx-hero.cx-index { min-height: 520px; }
.cx-hero .lead { max-width: 36em; }
/* mid widths: the painting shows through on the right, so the words keep to the washed left */
@media (min-width: 700px) and (max-width: 1100px) { .cx-hero .lead, .cx-hero .cx-for { max-width: 62%; } }
.cx-by { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: .86rem; color: var(--ink-2); }
.cx-mark { width: 14px; height: 14px; flex: none; }
.cx-for { display: inline-flex; align-items: flex-start; gap: 8px; font-size: .92rem; color: var(--ink-2); max-width: 40em; }
.cx-for .lucide { width: 16px; height: 16px; margin-top: 3px; flex: none; }

/* ---------- cards: the use-case card, words only ---------- */
.cx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.cx-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease); }
.cx-card:hover { transform: translateY(-4px); box-shadow: var(--sh-high); }
.cx-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cx-when { font-size: .78rem; color: var(--ink-3); }
.cx-card b { font-family: var(--font-head); font-weight: 500; font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.3; }
.cx-card p { font-size: .9rem; color: var(--ink-2); }
.cx-card .go { margin-top: auto; padding-top: 12px; font-size: .84rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.cx-card .go .lucide { width: 14px; height: 14px; transition: transform 300ms var(--ease-out); }
.cx-card:hover .go .lucide { transform: translateX(3px); }
.cx-libs { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 40px; }
@media (max-width: 960px) { .cx-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cx-grid { grid-template-columns: 1fr; } }

/* ---------- the reading column, and its list of sections on wide screens ---------- */
.cx-body { padding-block: clamp(64px, 8vw, 112px); }
.cx-article { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cx-main { min-width: 0; max-width: 720px; }
.cx-toc { position: sticky; top: 96px; display: grid; gap: 12px; justify-self: end; width: min(260px, 100%); }
.cx-toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); display: grid; gap: 8px; }
.cx-toc a { color: var(--ink-2); text-decoration: none; font-size: .88rem; line-height: 1.4; display: block; }
.cx-toc a:hover { color: var(--ink); }
@media (max-width: 1099px) { .cx-article { grid-template-columns: minmax(0, 1fr); } .cx-toc { display: none; } .cx-main { margin-inline: auto; width: 100%; } }

.cx-prose { font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); overflow-wrap: break-word; }
.cx-prose > * + * { margin-top: 1em; }
.cx-prose h2 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem); line-height: 1.2; letter-spacing: -0.028em; color: var(--ink); margin-top: 2.2em; scroll-margin-top: 96px; }
.cx-prose h2:first-child { margin-top: 0; }
.cx-prose h3 { font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); margin-top: 1.8em; }
.cx-prose h2 + *, .cx-prose h3 + * { margin-top: .7em; }
.cx-prose strong { color: var(--ink); font-weight: 600; }
.cx-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; transition: text-decoration-color 200ms var(--ease); }
.cx-prose a:hover { text-decoration-color: var(--ink); }
.cx-prose ul, .cx-prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.cx-prose li::marker { color: var(--ink-4); }
.cx-prose ol li::marker { color: var(--ink-3); font-weight: 500; }
.cx-prose table, .cx-prose table + * { margin-top: 1.4em; }
.cx-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; line-height: 1.5; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--card); }
.cx-prose th, .cx-prose td { text-align: left; padding: 11px 16px; border-top: 1px solid var(--line-2); vertical-align: top; }
.cx-prose thead th { border-top: 0; font-weight: 500; color: var(--ink-3); font-size: .8rem; background: var(--well); }
.cx-prose td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
@media (max-width: 520px) { .cx-prose td:first-child { white-space: normal; } .cx-prose th, .cx-prose td { padding: 10px 12px; } }

/* the glossary: each term a heading, set closer, with a rule between */
.cx-gloss > * + * { margin-top: 1em; }
.cx-gloss h2 { font-size: 1.25rem; margin-top: 1.5em; padding-top: 1.5em; border-top: 1px solid var(--line-2); }
.cx-gloss h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cx-gloss h2 + p { margin-top: .5em; }

/* "In short" */
.cx-short { margin-bottom: clamp(36px, 5vw, 56px); padding: 22px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-2); display: grid; gap: 12px; }
.white .cx-short { background: var(--well); }
.cx-short ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cx-short li { position: relative; padding-left: 22px; color: var(--ink); line-height: 1.5; }
.cx-short li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* a heading the Markdown did not write: "What it does not do", "What X does well" */
.cx-h { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem); line-height: 1.2; letter-spacing: -0.028em; }
.cx-limits { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(36px, 5vw, 48px); border-top: 1px solid var(--line-2); }
.cx-limits .pains { margin-top: 18px; }

/* ---------- a template: what it sets up ---------- */
.cx-sets { padding-top: clamp(48px, 6vw, 80px); }
.cx-setgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.cx-panel { background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.cx-panel.cx-wide { grid-column: 1 / -1; }
.cx-panel h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; letter-spacing: -0.02em; }
.cx-panel h3 .lucide { width: 18px; height: 18px; color: var(--ink-3); }
.cx-hint { font-size: .88rem; color: var(--ink-3); margin-top: -6px; }
.cx-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.cx-rows li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); min-width: 0; }
.cx-rows li > span:last-child { display: grid; gap: 3px; min-width: 0; }
.cx-rows b { font-weight: 500; font-size: .95rem; }
.cx-rows small { font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.cx-rows em { font-style: normal; font-size: .78rem; color: var(--ink-3); line-height: 1.45; }
.cx-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cx-links li { display: grid; gap: 8px; justify-items: start; padding: 12px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.cx-flow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .95rem; }
.cx-flow b { font-weight: 500; }
.cx-flow .lucide { width: 15px; height: 15px; color: var(--ink-3); }
.cx-links small { font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.cx-panel .roles-t { border-radius: 16px; }
.cx-panel .roles-t .rr { grid-template-columns: 180px 1fr; color: var(--ink-2); }
.cx-panel .roles-t .rr b { color: var(--ink); }
.cx-panel .roles-t .rr b .lucide { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
@media (max-width: 600px) { .cx-panel .roles-t .rr { grid-template-columns: 1fr; } }
.cx-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.cx-tiles li { display: grid; gap: 6px; justify-items: start; align-content: start; padding: 14px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.cx-tiles b { font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: -0.02em; line-height: 1.3; }
.cx-tiles small { font-size: .78rem; color: var(--ink-3); }
@media (max-width: 760px) { .cx-setgrid { grid-template-columns: 1fr; } }

/* ---------- a template: say it to OS ---------- */
.cx-saygrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cx-chat { display: grid; gap: 10px; justify-items: end; min-width: 0; }
.cx-step { font-size: .78rem; color: var(--ink-3); justify-self: start; margin-top: 8px; }
.cx-step:first-child { margin-top: 0; }
.cx-said { max-width: min(460px, 100%); background: var(--fill); color: var(--on-fill); padding: 12px 16px; border-radius: 18px 18px 4px 18px; font-size: .95rem; line-height: 1.5; box-shadow: 0 14px 30px -14px hsla(0, 0%, 18%, .4); }
.cx-draft { width: min(420px, 100%); justify-self: start; margin-top: 6px; }
.cx-draft dl { margin: 0; display: grid; border-top: 1px solid var(--line-2); }
.cx-draft dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line-2); font-size: .88rem; }
.cx-draft dt { color: var(--ink-3); }
.cx-draft dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.cx-save { justify-self: end; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-size: .86rem; font-weight: 500; }
@media (max-width: 860px) { .cx-saygrid { grid-template-columns: 1fr; } .cx-chat { justify-items: stretch; } .cx-said { justify-self: end; } }

/* ---------- a comparison: what the other does well, and the dated table ---------- */
.cx-vs { padding-top: clamp(48px, 6vw, 80px); }
.cx-vs-top { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cx-vs-top .cx-short { margin-bottom: 0; }
@media (max-width: 900px) { .cx-vs-top { grid-template-columns: 1fr; } }
.cx-well { padding: 22px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-2); display: grid; gap: 16px; }
.cx-well .cx-h { font-size: 1.2rem; }
.cx-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cx-ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.cx-ticks .ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--in-tint); color: var(--in); flex: none; margin-top: -1px; }
.cx-ticks .ok .lucide { width: 13px; height: 13px; stroke-width: 2.4; }
.cx-vs-head { margin-top: clamp(56px, 7vw, 96px); }
.cx-table { margin-top: 32px; }
.cx-table:focus-visible { outline-offset: 6px; }
.cx-table table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; font-size: .93rem; line-height: 1.5; }
.cx-table caption { caption-side: bottom; text-align: left; padding: 14px 4px 0; font-size: .82rem; color: var(--ink-3); }
.cx-table th, .cx-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-top: 1px solid var(--line-2); }
.cx-table thead th { border-top: 0; background: var(--well); font-family: var(--font-head); font-weight: 500; font-size: .98rem; letter-spacing: -0.02em; color: var(--ink); }
.cx-table tbody th { width: 18%; font-weight: 500; color: var(--ink); }
.cx-table td { width: 41%; color: var(--ink-2); }
.cx-table td + td { color: var(--ink); background: color-mix(in srgb, var(--well) 60%, transparent); }
/* phones: each row becomes a small card, the column names written above each cell */
@media (max-width: 700px) {
  .cx-table table, .cx-table tbody, .cx-table tr, .cx-table th, .cx-table td { display: block; width: auto; }
  .cx-table table { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .cx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cx-table caption { display: block; padding: 0 0 14px; }
  .cx-table tbody { display: grid; gap: 12px; }
  .cx-table tr { background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; }
  .cx-table tbody th, .cx-table td { width: auto; }
  .cx-table tbody th { border-top: 0; padding: 14px 16px 6px; font-family: var(--font-head); font-size: 1rem; letter-spacing: -0.02em; }
  .cx-table td { border-top: 0; padding: 6px 16px 12px; background: transparent !important; }
  .cx-table td + td { border-top: 1px solid var(--line-2); padding-top: 12px; }
  .cx-table td::before { content: attr(data-h); display: block; font-size: .76rem; color: var(--ink-3); margin-bottom: 2px; }
}

/* ---------- the changelog ---------- */
.cx-log { padding-top: clamp(48px, 6vw, 80px); }
.cx-loglist { list-style: none; margin: 0; padding: 0; max-width: 900px; display: grid; gap: 0; }
.cx-loglist > li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding-block: 32px; border-top: 1px solid var(--line-2); scroll-margin-top: 96px; }
.cx-loglist > li:first-child { border-top: 0; padding-top: 0; }
.cx-logday { font-size: .86rem; color: var(--ink-3); padding-top: 6px; }
.cx-loglist article { display: grid; gap: 16px; min-width: 0; }
.cx-loglist h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); letter-spacing: -0.028em; line-height: 1.2; }
@media (max-width: 640px) { .cx-loglist > li { grid-template-columns: 1fr; gap: 8px; } .cx-logday { padding-top: 0; } }
/* The vignettes (src/components/vignettes; version 3's Decided 4, simplified by Decided 2 of recordos-site-v4.md),
   and the day story drawn with them (<DayStory>). A vignette is the site's own card UI (.ui-card, .itile, .tag, .tile,
   .frow, .seg, .av) showing one idea in three or four rows of large type, sized to sit in a <PaintedFrame> (about
   300–380px wide). It sizes by its own width (a container), takes its natural height, and is drawn at its last frame;
   src/scripts/vignettes.ts plays it once, in 1.2s, with the motion tokens of site.css (Decided 1). */

/* ---------------------------------------------------------------- what every vignette shares */
.vg { container-type: inline-size; width: 100%; max-width: 380px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: 1rem; line-height: 1.45; color: var(--ink); text-align: left; }
.vg .vg-card { padding: 16px; gap: 10px; border-radius: 20px; box-shadow: 0 26px 50px -24px hsla(0, 0%, 10%, .42), 0 2px 6px -2px hsla(0, 0%, 10%, .10), 0 0 0 1px hsla(0, 0%, 20%, .06); }
.vg .hd { min-width: 0; gap: 12px; }
.vg .hd > div { min-width: 0; }
.vg .hd b { font-size: 1.02rem; line-height: 1.3; }
.vg .hd small { display: block; font-size: .84rem; line-height: 1.35; }
.vg .itile { width: 36px; height: 36px; border-radius: 11px; }
.vg .itile .lucide { width: 18px; height: 18px; }
.vg .tag { height: 26px; padding: 0 10px; font-size: .8rem; flex: none; }
.vg .tag .lucide { width: 13px; height: 13px; }
.vg .tag.in { background: var(--in-tint); color: var(--in); }
.vg .tag.out { background: var(--out-tint); color: var(--out); }
.vg .tag.warn { background: var(--warn-tint); color: var(--warn); }
.vg .frow { font-size: .98rem; padding: 10px 0; }
.vg .frow > span:last-child { color: var(--ink); text-align: right; font-weight: 500; }
.vg .frow > span.in { color: var(--in); } .vg .frow > span.out { color: var(--out); }
.vg .av { width: 28px; height: 28px; font-size: .7rem; }
.vg .av.a6 { background: #7a6458; }
.vg-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.vg-who > span:last-child { min-width: 0; }
.vg-who b { font-weight: 500; display: block; line-height: 1.25; }
.vg-who small { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.25; }
.vg-auto { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--info-tint); color: var(--ink-2); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.vg-auto .lucide { width: 13px; height: 13px; }
.vg-cap { font-size: .84rem; color: var(--ink-3); letter-spacing: .01em; }
.vg-oshd { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vg-oslab { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }
.vg-orb { width: 28px; height: 28px; flex: none; }
.vg-rtx { display: grid; min-width: 0; }
.vg-rtx b { font-weight: 500; font-size: .98rem; line-height: 1.3; }
.vg-rtx small { font-size: .84rem; color: var(--ink-3); line-height: 1.35; }
/* a bubble of words: what a person says or types */
.vg-said, .vg-q { justify-self: end; max-width: 92%; display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: var(--fill); color: var(--on-fill); font-size: 1rem; line-height: 1.42; box-shadow: 0 18px 36px -18px hsla(0, 0%, 10%, .5); }
.vg-said .lucide { width: 16px; height: 16px; margin-top: 3px; opacity: .72; }

/* frames: what is not shown yet waits faded out in place (12px lower, at .98); a swapped state is out of the flow.
   Each change takes --dur-swap with --ease-out, items 40ms apart (--i, at most 5 steps of the stagger). */
.vg [data-until]:not(.vg-now) { display: none !important; }
.vg-run .vg-pre { opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none; }
.vg-run .vg-pre[data-swap] { display: none !important; }
.vg-run [data-s] { transition: opacity var(--dur-swap) var(--ease-out), transform var(--dur-swap) var(--ease-out); transition-delay: calc(min(var(--i, 0), 5) * var(--stagger)); }
@starting-style { .vg-run [data-swap]:not(.vg-pre) { opacity: 0; transform: translateY(6px); } }
.vg-instant, .vg-instant * { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .vg-run [data-s] { transition: opacity 150ms linear; transform: none !important; } }

/* ---------------------------------------------------------------- EntryCard */
.vg-entry .frow:first-of-type { border-top-color: var(--line-2); }

/* ---------------------------------------------------------------- MiniRecord, and the record of AccessGrid */
.vg-t { width: 100%; border-collapse: collapse; font-size: .94rem; table-layout: auto; }
.vg-t th { text-align: left; font-weight: 500; font-size: .8rem; color: var(--ink-3); padding: 8px 8px; background: var(--well); white-space: nowrap; }
.vg-t th:first-child { border-radius: 8px 0 0 8px; } .vg-t th:last-child { border-radius: 0 8px 8px 0; }
.vg-t td { padding: 11px 8px; border-top: 1px solid var(--line-2); vertical-align: middle; color: var(--ink-2); }
.vg-t tbody tr:first-child td { border-top: 0; }
.vg-t td:first-child { color: var(--ink); }
.vg-t .num { text-align: right; }
.vg-t .money { font-weight: 500; color: var(--ink); } .vg-t .money.in { color: var(--in); } .vg-t .money.out { color: var(--out); }
.vg-t .tag { height: auto; min-height: 24px; padding: 3px 8px; white-space: normal; line-height: 1.2; }
.vg-record tr.vg-new td { background: color-mix(in srgb, var(--in-tint) 60%, transparent); }
.vg-record tr.vg-new td:first-child { border-radius: 10px 0 0 10px; } .vg-record tr.vg-new td:last-child { border-radius: 0 10px 10px 0; }
.vg-fresh { display: block; margin-top: 2px; font-size: .76rem; font-weight: 600; color: var(--in); white-space: nowrap; }

/* ---------------------------------------------------------------- ListPick */
.vg-field { display: grid; gap: 6px; }
.vg-flabel { font-size: .84rem; color: var(--ink-3); }
.vg-fbox { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 6px 10px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 1rem; }
.vg-fbox > .lucide { margin-left: auto; width: 16px; height: 16px; color: var(--ink-3); }
.vg-ph { color: var(--ink-4); padding-left: 4px; }
.vg-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.vg-items { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.vg-items li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: .98rem; }
.vg-items li > * { position: relative; z-index: 1; }
.vg-items .vg-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-items .vg-ltitle { display: flex; gap: 6px; padding: 4px 10px 2px; font-size: .8rem; color: var(--ink-3); }
.vg-items .vg-ltitle .lucide { width: 14px; height: 14px; }
.vg-hl { position: absolute !important; inset: 0; z-index: 0 !important; border-radius: 10px; background: var(--card); box-shadow: 0 6px 16px -10px hsla(0, 0%, 10%, .4), inset 0 0 0 1.5px var(--ink); }
.vg-tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fill); color: var(--on-fill); }
.vg-tick .lucide { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- LinkFlow */
.vg-link { gap: 0; }
.vg-val { margin-left: auto; font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.vg-val.in { color: var(--in); } .vg-val.out { color: var(--out); }
.vg-wire { position: relative; display: grid; place-items: center; height: 46px; }
.vg-wire::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.vg-wire .vg-auto { position: relative; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), 0 6px 14px -8px hsla(0, 0%, 10%, .35); }
.vg-to { list-style: none; margin: 0; padding: 4px 16px; gap: 0; }
.vg-to > li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.vg-to > li:first-child { border-top: 0; }
.vg-big { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
.vg-big.in { color: var(--in); } .vg-big.out { color: var(--out); }

/* ---------------------------------------------------------------- AccessGrid: View as */
.vg-asbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.vg-aslab { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink-2); font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--glass); }
.vg-aslab .lucide { width: 15px; height: 15px; }
.vg-seg { background: var(--card); border-color: var(--line-2); flex-wrap: wrap; justify-content: center; }
.vg-seg button { height: 36px; padding: 0 12px 0 5px; gap: 7px; font-size: .9rem; transition: background var(--dur-swap) var(--ease-std), color var(--dur-swap) var(--ease-std); }
.vg-seg button .av { width: 26px; height: 26px; font-size: .66rem; }
.vg-seg button[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); }
.vg-asview { display: grid; grid-template-columns: minmax(0, 1fr); }
.vg-aspanel { grid-area: 1 / 1; display: grid; gap: 10px; align-content: start; opacity: 0; visibility: hidden; transition: opacity var(--dur-swap-out) var(--ease-in), visibility 0s var(--dur-swap-out); }
.vg-aspanel.on { opacity: 1; visibility: visible; transition: opacity var(--dur-swap) var(--ease-out) 80ms, visibility 0s; }
.vg-asview th.hid { color: var(--ink-4); }
.vg-asview th.hid .lucide { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
.vg-hid { display: inline-block; width: 70%; max-width: 80px; height: 12px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--line) 0 6px, var(--well) 6px 12px); vertical-align: middle; }
.vg-hid.wide { width: 100%; max-width: none; }
.vg-asview tr.vg-gone td { padding-block: 15px; }
.vg-asview .vg-t td { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- OSChat */
.vg-ans { gap: 8px; }
.vg-ans p { font-size: 1rem; color: var(--ink); }
.vg-bigfig { font-family: var(--font-head); font-weight: 500; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.1; }
.vg-bigfig.in { color: var(--in); } .vg-bigfig.out { color: var(--out); }
.vg-note { display: flex; align-items: center; gap: 7px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line-2); font-size: .86rem; color: var(--ink-2); font-weight: 500; }
.vg-note .lucide { width: 14px; height: 14px; flex: none; }

/* ---------------------------------------------------------------- SetupChat */
.vg-recs { gap: 8px; }
.vg-recs .vg-oshd { align-items: flex-start; padding-bottom: 4px; }
.vg-reply { font-size: .96rem; color: var(--ink-2); line-height: 1.42; }
.vg-rec { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------------------------------------------------------------- InsightTiles */
.vg-ins { gap: 10px; }
.vg-ins > .vg-cap { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--glass); color: var(--ink-2); font-weight: 500; }
.vg-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vg-tile { container-type: inline-size; align-content: start; gap: 4px; padding: 16px; border-radius: 18px; border: 0; box-shadow: 0 22px 44px -24px hsla(0, 0%, 10%, .42), 0 0 0 1px hsla(0, 0%, 20%, .05); }
.vg-tile .tl { display: grid; gap: 0; font-size: .88rem; color: var(--ink-2); font-weight: 500; line-height: 1.3; }
.vg-tile .tl small { font-size: .8rem; color: var(--ink-3); font-weight: 400; }
/* the value as large as its tile allows: a long amount ('Rp 4,350,000') shrinks rather than running out (--len: its length) */
.vg-tile .tv { font-size: clamp(1.05rem, calc(158cqi / var(--len, 8)), 1.9rem); white-space: nowrap; font-variant-numeric: tabular-nums; margin-top: 2px; }
.vg-tile .tv.in { color: var(--in); } .vg-tile .tv.out { color: var(--out); }
.vg-chg { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-3); flex-wrap: wrap; }
.vg-dt { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--info-tint); color: var(--ink-2); font-weight: 500; }
.vg-dt.good { background: var(--in-tint); color: var(--in); } .vg-dt.bad { background: var(--out-tint); color: var(--out); }
.vg-spark { width: 100%; height: 56px; margin-top: 4px; clip-path: inset(0 0 0 0); }
.vg-spark .ln { fill: none; stroke: var(--in-fill); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.vg-spark .area { fill: color-mix(in srgb, var(--in-fill) 12%, transparent); stroke: none; }
.vg-run .vg-pre .vg-spark { clip-path: inset(0 100% 0 0); }
.vg-run .vg-spark { transition: clip-path var(--dur-swap) var(--ease-std) 80ms; }
.vg-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-top: 4px; }
.vg-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--line); transform-origin: bottom; }
.vg-bars i.hi { background: var(--ink); }
.vg-run .vg-pre .vg-bars i { transform: scaleY(0); }
.vg-run .vg-bars i { transition: transform var(--dur-swap) var(--ease-out); transition-delay: calc(min(var(--k), 5) * var(--stagger)); }
.vg-meter { display: block; height: 8px; border-radius: 6px; background: var(--line-2); overflow: hidden; margin-top: 6px; }
.vg-meter i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--ink); transform-origin: left; }
.vg-run .vg-pre .vg-meter i { transform: scaleX(0); }
.vg-run .vg-meter i { transition: transform var(--dur-swap) var(--ease-std) 80ms; }

/* ---------------------------------------------------------------- PhoneEntry */
.vg-phone { max-width: 320px; }
.vg-handset { border-radius: 32px; background: var(--card); padding: 12px 12px 14px; box-shadow: 0 30px 60px -28px hsla(0, 0%, 10%, .5), 0 0 0 1px hsla(0, 0%, 20%, .08), inset 0 0 0 5px var(--well); display: grid; gap: 10px; }
.vg-notch { justify-self: center; width: 64px; height: 6px; border-radius: 3px; background: var(--line); margin-top: 2px; }
.vg-phd { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.vg-phd b { display: block; font-weight: 500; line-height: 1.3; font-size: 1.02rem; }
.vg-phd small { display: block; color: var(--ink-3); font-size: .84rem; }
.vg-prows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vg-prows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.vg-pv { font-size: .96rem; font-weight: 500; }
.vg-synced { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--in-tint); color: var(--in); font-size: .9rem; font-weight: 500; line-height: 1.35; }
.vg-synced .lucide { width: 16px; height: 16px; flex: none; }

/* narrow (a phone's frame): a little less air and one line for each grey detail, the same type */
@container (max-width: 320px) {
  .vg { gap: 8px; }
  .vg .vg-card { padding: 14px; gap: 8px; }
  .vg .frow { padding: 8px 0; }
  .vg-t td { padding: 9px 6px; } .vg-t th { padding-inline: 6px; }
  .vg-to { padding-inline: 14px; } .vg-to > li { padding: 10px 0; }
  .vg-wire { height: 38px; }
  .vg-rec .vg-rtx small, .vg-prows .vg-rtx small, .vg .hd small, .vg-tile .tl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vg-said, .vg-q { font-size: .96rem; padding: 11px 14px; }
  .vg-asbar { flex-wrap: nowrap; gap: 6px; }
  .vg-aslab { padding: 4px 8px; }
  .vg-aslab { font-size: 0; gap: 0; } .vg-aslab .lucide { width: 16px; height: 16px; }
  .vg-asview .vg-t { table-layout: fixed; }
  .vg-asview .vg-t td, .vg-asview .vg-t th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vg-tile { padding: 12px; }
  .vg-spark, .vg-bars { height: 44px; }
  .vg-prows li { padding: 8px 12px; }
  .vg-handset { gap: 8px; }
}

/* ---------------------------------------------------------------- the day story, version 3 (<DayStory>, tour.ts)
   Before: one painting a moment, or one painting at different crops, with a caption. After: one vignette a moment,
   in a plain stage that stays in view while the moments land beside it (the sticky story of 01574f48c). */
.gcap { position: absolute; left: 18px; bottom: 18px; max-width: calc(100% - 36px); z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 16px; background: rgba(255, 255, 255, .86); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .86rem; line-height: 1.35; color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35); }
.gscene .gcap { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-swap) var(--ease-out) 200ms, transform var(--dur-swap) var(--ease-out) 200ms; }
.gscene.on .gcap { opacity: 1; transform: none; }
.night .gcap { background: rgba(20, 20, 20, .72); border-color: rgba(255, 255, 255, .14); color: #FAFAFA; }
.gcap .lucide { width: 15px; height: 15px; flex: none; }

.vstage { position: relative; width: 100%; height: min(620px, calc(100svh - 150px)); border-radius: 28px; background: radial-gradient(ellipse 80% 70% at 50% 45%, #FAFAFA, #EDEDED); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
/* a slot swaps as a painted frame's slides do (Decided 1): out in 180ms, in 320ms from 12px below at .98, 80ms later */
.vslot { position: absolute; inset: 0; display: grid; place-items: safe center; padding: clamp(20px, 3vw, 40px); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transition: opacity var(--dur-swap-out) var(--ease-in), transform var(--dur-swap-out) var(--ease-in), visibility 0s var(--dur-swap-out); overflow-y: auto; scrollbar-width: none; }
.vslot.on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-swap) var(--ease-out) 80ms, transform var(--dur-swap) var(--ease-out) 80ms, visibility 0s; }
.inx .inx-left .vstage { max-height: none; }
/* a painting on its own needs no white veil: it is shown in its full colour (the veil was for cut-outs laid over it) */
.lstage .gscene:not(.night)::after { background: linear-gradient(180deg, transparent 62%, rgba(20, 20, 20, .18)); }

/* phones: the painting at its crop, and the same vignette at its natural height */
.mfig.mpaint { position: relative; display: block; padding: 0; overflow: hidden; aspect-ratio: 4 / 3; max-height: none; border: 0; background: var(--wash-2); }
.mfig.mpaint .mbg { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; }
.mfig.mpaint.night .mbg { filter: brightness(.45) saturate(.75); }
.mfig.mpaint .gcap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); opacity: 1; transform: none; font-size: .78rem; padding: 7px 11px; }
.mfig.mvg { display: block; padding: 18px 12px; max-height: none; background: radial-gradient(ellipse 80% 70% at 50% 45%, #FAFAFA, #EDEDED); border: 1px solid var(--line-2); }
.mitem .mfig.mvg { animation: none; }
/* ---------------------------------------------------------------- use case pages, version 3 (spec V4, docs/plans/recordos-site-v3.md)
   3 Now: each idea beside a vignette on the same soft stage the day story's vignettes use (.vstage, .mfig.mvg),
   never a UI card over a painting. 1 Before (a use case still without a version 3 story): the painting by itself
   with a caption, and the places as chips beside it. /use-cases: each jump chip says how many. */
.nowv { display: grid; place-items: center; min-width: 0; padding: clamp(22px, 4vw, 44px) clamp(14px, 3vw, 36px); border-radius: var(--r-panel); background: radial-gradient(ellipse 80% 70% at 50% 45%, #FAFAFA, #EDEDED); box-shadow: inset 0 0 0 1px var(--line-2); }
.nowv > .vg { max-width: 520px; }
.nowv .ucrec { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.nowv .ucrec .itile { width: 24px; height: 24px; flex: none; }
.nowv .frow .rs-end { display: inline-flex; align-items: center; gap: 6px; }
.nowv .frow .rs-end .lucide { width: 13px; height: 13px; }
.nowv .frow.locked .ucrec { color: var(--ink-3); }

.ucplaces { margin-top: 18px; }
.canvas-card.ucg.ucpaint { padding: 0; }
@media (max-width: 860px) { .canvas-card.ucg.ucpaint { aspect-ratio: 4 / 3; } }

.ucjump .chip .ucgn { margin-left: 4px; height: 20px; min-width: 20px; font-size: .7rem; }

@media (max-width: 600px) {
  .nowv { padding: 18px 10px; }
}
/* Version 3's /features (a chapter index, chips, a painting per chapter and a stage of steps) was replaced in version 4
   by one pinned group per chapter: its styles are in v4-features.css (Decided 4 of docs/plans/recordos-site-v4.md).
   Nothing is left here. */
/* Version 3: the legal pages and the library (spec V5, Decided 11 and 12 of docs/plans/recordos-site-v3.md).
   Built from site.css's tokens and pieces (.phero, .uch, .itile, .tag, .ui-card, .cx-card, .ucard, .roles-t) and the
   vignettes; only what those do not already draw is here. Light only, no blue. */

/* ================================================================ the legal pages */
.lg-hero { min-height: 520px; }
.lg-hero .lead a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.lg-stamp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink-2); }
.lg-stamp > span:last-child { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--card) 88%, transparent); box-shadow: inset 0 0 0 1px var(--line-a); }
.lg-stamp .lucide { width: 15px; height: 15px; color: var(--ink-3); }
@media (min-width: 700px) and (max-width: 1100px) { .lg-hero .lead { max-width: 62%; } }

.lg-plain { padding-top: clamp(40px, 6vw, 72px); }
.lg-cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lg-cards li { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh-low); }
.lg-cards .itile { width: 40px; height: 40px; border-radius: 12px; }
.lg-cards .itile .lucide { width: 19px; height: 19px; }
.lg-cards h3 { font-size: 1.08rem; letter-spacing: -0.02em; margin-top: 6px; }
.lg-cards p { font-size: .93rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 960px) { .lg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lg-cards { grid-template-columns: 1fr; gap: 12px; } .lg-cards li { grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; } .lg-cards .itile { grid-row: span 2; } .lg-cards h3 { margin-top: 0; align-self: center; } }

.lg-body { padding-block: clamp(64px, 8vw, 112px); }
.lg-grid { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(40px, 6vw, 96px); align-items: start; justify-content: center; }
.lg-toc { position: sticky; top: 96px; display: grid; gap: 14px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.lg-toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-3); text-decoration: none; font-size: .9rem; line-height: 1.4; transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.lg-toc a:hover { color: var(--ink); }
.lg-toc a.on { color: var(--ink); border-left-color: var(--ink); }
.lg-n { font-variant-numeric: tabular-nums; font-size: .76rem; color: var(--ink-4); letter-spacing: .02em; }
.lg-main { min-width: 0; display: grid; gap: 12px; }
.lg-mtoc { display: none; }
@media (max-width: 1099px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
  .lg-toc { display: none; }
  .lg-mtoc { display: block; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--well); }
  .lg-mtoc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 500; font-size: .92rem; }
  .lg-mtoc summary::-webkit-details-marker { display: none; }
  .lg-mtoc summary .lucide { width: 16px; height: 16px; color: var(--ink-3); }
  .lg-mtoc summary .lucide:last-child { margin-left: auto; transition: transform 250ms var(--ease-out); }
  .lg-mtoc[open] summary .lucide:last-child { transform: rotate(180deg); }
  .lg-mtoc ol { margin: 0; padding: 0 18px 16px 38px; display: grid; gap: 8px; font-size: .9rem; }
  .lg-mtoc a { color: var(--ink-2); text-decoration: none; }
}

.lg-sec { padding: clamp(24px, 3vw, 32px) 0; border-top: 1px solid var(--line-2); scroll-margin-top: 90px; }
.lg-sec:first-of-type { border-top: 0; padding-top: 0; }
.lg-sec header { display: flex; align-items: center; gap: 12px; }
.lg-sec header .lg-n { order: -1; min-width: 1.6em; }
.lg-sec h2 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); letter-spacing: -0.025em; }
.lg-prose { padding-left: calc(1.6em + 12px + 32px + 12px); color: var(--ink-2); line-height: 1.7; font-size: 1rem; }
.lg-prose > * + * { margin-top: .8em; }
.lg-prose p:first-child, .lg-prose ul:first-child { margin-top: 12px; }
.lg-prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.lg-prose li::marker { color: var(--ink-4); }
.lg-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.lg-prose a:hover { text-decoration-color: var(--ink); }
@media (max-width: 600px) { .lg-prose { padding-left: 0; } .lg-sec header .lg-n { display: none; } }

.lg-contact { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-panel); background: var(--fill); color: var(--on-fill); box-shadow: var(--sh-high); }
.lg-contact h2 { font-size: 1.25rem; letter-spacing: -0.02em; color: var(--on-fill); }
.lg-contact p { margin-top: 6px; font-size: .92rem; color: color-mix(in srgb, var(--on-fill) 72%, transparent); }
.lg-orb { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--on-fill) 12%, transparent); }
.lg-orb .lucide { width: 21px; height: 21px; }
@media (max-width: 760px) { .lg-contact { grid-template-columns: auto minmax(0, 1fr); } .lg-contact .btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 380px) { .lg-contact .btn { font-size: .86rem; padding: 0 16px; } }

.lg-more { padding-top: clamp(56px, 7vw, 96px); }
.lg-others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; max-width: 820px; }
@media (max-width: 600px) { .lg-others { grid-template-columns: 1fr; } }

/* ================================================================ a template's vignettes */
/* the stage a vignette sits on: a soft panel, the way the day story's slot holds one */
.lib-stage { display: grid; align-items: center; padding: clamp(18px, 3vw, 32px); border-radius: var(--r-panel); background: radial-gradient(120% 90% at 20% 0%, var(--card) 0%, var(--wash) 70%); box-shadow: inset 0 0 0 1px var(--line-2); min-width: 0; }
.white .lib-stage, .cx-panel .lib-stage { background: radial-gradient(120% 90% at 20% 0%, var(--well) 0%, var(--wash) 80%); }
.wash .lib-stage { background: radial-gradient(120% 90% at 20% 0%, var(--card) 0%, var(--well) 80%); }

.lib-none { font-size: .9rem; color: var(--ink-2); padding: 12px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.lib-lists { grid-template-columns: 1fr; }
.lib-dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 24px; }
@media (max-width: 860px) { .lib-dash { grid-template-columns: 1fr; } }

/* a day with it */
.lib-dsec .lead .textlink { margin-left: 4px; }
.lib-mos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.lib-dgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 900px) { .lib-mos, .lib-dgrid { grid-template-columns: 1fr; } }
.lib-dash > div:first-child { display: grid; gap: 12px; }
.lib-mo { margin: 0; display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.lib-mo figcaption { display: grid; gap: 4px; }
.lib-mo figcaption p { color: var(--ink-2); font-size: .95rem; max-width: 34em; }
.lib-tm { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* one day of entries (DayCard) */
.lib-dayc { max-width: 520px; }
.lib-dl { list-style: none; margin: 0; padding: 0; display: grid; }
.lib-dl li { display: grid; grid-template-columns: 62px 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.lib-dl li:first-child { border-top: 0; }
.lib-dl time { font-size: .76rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lib-dtx { display: grid; min-width: 0; }
.lib-dtx b { font-weight: 500; font-size: .88rem; line-height: 1.35; }
.lib-dtx small { font-size: .76rem; color: var(--ink-3); line-height: 1.3; }
.lib-dl .money { font-size: .86rem; font-weight: 500; }
.lib-dl .money.in { color: var(--in); } .lib-dl .money.out { color: var(--out); }
@container (max-width: 400px) { .lib-dl li { grid-template-columns: 32px minmax(0, 1fr) auto; row-gap: 0; } .lib-dl time { grid-column: 2 / -1; grid-row: 1; } .lib-dl .itile { grid-row: 1 / 3; } .lib-dtx { grid-column: 2; grid-row: 2; } .lib-dl li > :last-child { grid-column: 3; grid-row: 2; } }

/* say it to OS */
.lib-saygrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lib-saycol { display: grid; gap: 28px; }
.lib-says { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lib-says li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.lib-says li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.lib-says small { font-size: .76rem; color: var(--ink-3); }
.lib-says q { font-size: .95rem; color: var(--ink); line-height: 1.45; quotes: "“" "”"; }
@media (max-width: 900px) { .lib-saygrid { grid-template-columns: 1fr; } }

/* what it does not do, beside the way to the use case */
.lib-notgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lib-limits { margin-top: 0; padding-top: 0; border-top: 0; }
.lib-story { position: relative; display: grid; align-content: end; min-height: 280px; border-radius: var(--r-panel); overflow: hidden; isolation: isolate; text-decoration: none; color: #fff; box-shadow: var(--sh-mid); }
.lib-story .paint { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 700ms var(--ease-out); }
.lib-story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(20, 20, 20, .66)); }
.lib-story:hover .paint { transform: scale(1.04); }
.lib-story-tx { display: grid; gap: 6px; padding: 22px; }
.lib-story-tx .kicker { color: rgba(255, 255, 255, .85); }
.lib-story-tx b { font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }
.lib-story-tx .go { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; }
.lib-story-tx .go .lucide { width: 14px; height: 14px; }
@media (max-width: 860px) { .lib-notgrid { grid-template-columns: 1fr; } }

/* ================================================================ the library's cards */
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.lib-grid .ucard { width: auto; }
.lib-for { font-size: .74rem; color: var(--ink-3); letter-spacing: .01em; }
@media (max-width: 960px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lib-grid { grid-template-columns: 1fr; } }

/* the index: the count under the lead, the filters, and a card with a vignette on top */
.lib-hero .lead { max-width: 31em; }
.lib-count { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-2); margin-top: 4px; }
.lib-count .itile { width: 30px; height: 30px; background: color-mix(in srgb, var(--card) 90%, transparent); }
.lib-ix { padding-top: 8px; }
.lib-filter { display: flex; flex-wrap: wrap; gap: 8px; }
html:not(.js) .lib-filter { display: none; }
.lib-filter button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: .88rem; font-weight: 500; transition: background 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease); }
.lib-filter button span { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--well); color: var(--ink-3); font-size: .76rem; font-variant-numeric: tabular-nums; }
.lib-filter button:hover { border-color: var(--ink-4); color: var(--ink); }
.lib-filter button[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.lib-filter button[aria-pressed="true"] span { background: color-mix(in srgb, var(--on-fill) 16%, transparent); color: var(--on-fill); }
.lib-filter + .lib-grid { margin-top: 28px; }
.lib-card[hidden] { display: none; }
.lib-card .tx { gap: 4px; }

.lib-vthumb { display: block; background: radial-gradient(120% 100% at 15% 0%, var(--card) 0%, var(--wash) 75%); border-bottom: 1px solid var(--line-2); }
.lib-vin { position: absolute; left: 50%; top: 18px; width: calc(100% / .78 - 40px); transform: translateX(-50%) scale(.78); transform-origin: 50% 0; pointer-events: none; }
.lib-vin .vg { max-width: none; }
.lib-vthumb::before { content: ""; position: absolute; inset: auto 0 0 0; height: 36%; z-index: 1; background: linear-gradient(transparent, var(--wash)); pointer-events: none; }
.lib-vthumb .itile { z-index: 2; }
.lib-vcard .im { overflow: hidden; border-radius: 24px 24px 0 0; }

/* a guide's "See it" */
.lib-see .lib-mos { margin-top: 36px; }
.lib-mos.lib-one { grid-template-columns: minmax(0, 720px); justify-content: center; }

/* phones: the words sit over the painting, so the wash covers the whole width */
@media (max-width: 700px) { .lib-hero.wash-l::before, .lg-hero.wash-l::before, .cx-hero.wash-l::before { background: linear-gradient(90deg, color-mix(in srgb, var(--ground) 76%, transparent), color-mix(in srgb, var(--ground) 52%, transparent)); } }
/* ---------------------------------------------------------------- home, version 3 (spec V2, Decided 5 and 10 of
   docs/plans/recordos-site-v3.md)
   Today | With RecordOS: a board of the six places work lives in, drawn in the site's own card UI, and the same six
   settled into one workspace. home.ts sets .tw-js (the two panels share one place), .tw-anim (with motion),
   .tw-play (Today has arrived) and moves .on between the panels; .tw-go sends each place into its record.
   What changes: four .bene rows, each with its vignettes on the story's plain stage.
   Languages and the phone band: the languages OS speaks, and the phone keeping on without signal. */

/* ---------------------------------------------------------------- Today | With RecordOS */
.tw-head { margin-bottom: 28px; }
.tw-bar { display: flex; justify-content: center; margin-bottom: clamp(24px, 3vw, 36px); }
.tw-seg { background: var(--card); border-color: var(--line-2); padding: 5px; gap: 4px; }
.tw-seg button { height: 40px; padding: 0 18px; font-size: .9rem; font-weight: 500; transition: background 300ms var(--ease), color 300ms var(--ease); }
.tw-seg button[aria-selected="true"] { background: var(--fill); color: var(--on-fill); }
.tw-seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tw-seg .pearl { width: 15px; height: 15px; }

.tw-stage { display: grid; gap: 72px; }
.tw-panel { min-width: 0; outline: none; }
.tw-panel:focus-visible { outline: 2px solid var(--line); outline-offset: 8px; border-radius: 28px; }
.tw-cap { max-width: 40em; margin: 0 auto 26px; text-align: center; color: var(--ink-2); font-size: .98rem; line-height: 1.55; text-wrap: balance; }
.tw-cap b { color: var(--ink); font-weight: 500; }
/* the two panels share one place; the stage is as tall as the one shown (the other is laid over it, out of the flow) */
.tw-js .tw-stage { gap: 0; position: relative; }
.tw-js .tw-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 400ms var(--ease), visibility 0s 400ms; }
.tw-js .tw-panel:not(.on) { position: absolute; inset: 0 0 auto 0; }
.tw-js .tw-panel.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 400ms var(--ease), visibility 0s; }
.tw-js .tw-today.tw-go { pointer-events: none; position: relative; z-index: 2; }
.tw-cap { transition: opacity 300ms var(--ease); }
.tw-go .tw-cap { opacity: 0; }

/* Today: the board */
.tw-board { list-style: none; margin: 0; padding: clamp(18px, 3vw, 36px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 30px); align-items: start; border-radius: 28px; background: radial-gradient(ellipse 80% 70% at 50% 45%, #FAFAFA, #EDEDED); box-shadow: inset 0 0 0 1px var(--line-2); }
.tw-piece { --r: 0deg; display: grid; gap: 10px; min-width: 0; }
.tw-piece:nth-child(1) { --r: -1.2deg; }
.tw-piece:nth-child(2) { --r: .8deg; margin-top: 18px; }
.tw-piece:nth-child(3) { --r: -.6deg; }
.tw-piece:nth-child(4) { --r: 1deg; }
.tw-piece:nth-child(5) { --r: -1.4deg; margin-top: 10px; }
.tw-piece:nth-child(6) { --r: .6deg; }
.tw-ui { position: relative; display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--card); font-size: .84rem; line-height: 1.4; color: var(--ink); transform: rotate(var(--r)); box-shadow: 0 18px 40px -22px hsla(0, 0%, 18%, .32), 0 0 0 1px hsla(0, 0%, 20%, .07); }
.tw-pain { display: flex; align-items: flex-start; gap: 8px; padding: 0 4px; font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.tw-pain .lucide { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--ink-3); }
.tw-uhd { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tw-uhd b { font-weight: 500; font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the chat group */
.tw-unread { gap: .3em; margin-left: auto; flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tw-msgs { display: grid; gap: 6px; }
.tw-msg { justify-self: start; max-width: 100%; padding: 7px 11px; border-radius: 4px 14px 14px 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .82rem; color: var(--ink-2); }
.tw-msg b { display: block; font-size: .7rem; font-weight: 600; color: var(--ink-3); }

/* two copies of a sheet */
.tw-two { padding: 0; background: none; box-shadow: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; transform: none; }
.tw-sheet { min-width: 0; border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: 0 18px 40px -22px hsla(0, 0%, 18%, .32), 0 0 0 1px hsla(0, 0%, 20%, .07); transform: rotate(-1deg); }
.tw-copy { transform: translateY(12px) rotate(1.6deg); }
.tw-shd { display: flex; align-items: center; gap: 6px; padding: 7px 9px; background: var(--well); border-bottom: 1px solid var(--line-2); font-size: .72rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-shd .lucide { width: 13px; height: 13px; flex: none; color: var(--ink-3); }
.tw-sheet table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.tw-sheet td { padding: 5px 8px; border-top: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tw-sheet tr:first-child td { border-top: 0; }
.tw-sheet td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); border-left: 1px solid var(--line-2); }
.tw-sheet td.tw-bad { background: var(--warn-tint); color: var(--warn); font-weight: 600; }

/* paper: the notebook and the form */
.tw-paper { background: #FCFAF4; background-image: repeating-linear-gradient(180deg, transparent 0 29px, var(--line-2) 29px 30px); }
.tw-phd { font-size: .78rem; font-weight: 600; color: var(--ink-2); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.tw-line { display: grid; grid-template-columns: 50px minmax(0, 1fr) 14px; gap: 8px; font-style: italic; font-size: .82rem; color: var(--ink-2); }
.tw-line span:last-child { color: var(--ink-3); font-style: normal; text-align: center; }
.tw-cut { text-decoration: line-through; color: var(--ink-3); }
.tw-fld { display: flex; align-items: flex-end; gap: 10px; font-size: .8rem; color: var(--ink-3); }
.tw-fld i { flex: 1; height: 1px; margin-bottom: 4px; border-bottom: 1px dashed var(--ink-4); }
.tw-chk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); }
.tw-box { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--ink-3); font-size: .7rem; font-style: italic; color: var(--ink); }
.tw-box + .tw-box, .tw-chk .tw-box:nth-of-type(2) { margin-left: 10px; }

/* the email thread */
.tw-to { font-size: .76rem; color: var(--ink-3); }
.tw-body { font-size: .84rem; color: var(--ink-2); }
.tw-att { justify-self: start; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .76rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-att .lucide { width: 13px; height: 13px; flex: none; }

/* sticky notes */
.tw-stickies { padding: 4px 0 0; background: none; box-shadow: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; transform: none; }
.tw-note { min-height: 92px; padding: 12px; border-radius: 3px; background: var(--warn-tint); color: var(--ink); font-size: .84rem; font-style: italic; line-height: 1.35; transform: rotate(-3deg); box-shadow: 0 14px 24px -16px hsla(30, 30%, 20%, .45); }
.tw-note2 { transform: translateY(8px) rotate(3.5deg); background: #F3E3BD; }

/* Today's motion: arriving once, then each place flying into its record */
.tw-anim .tw-piece { transition: opacity 600ms var(--ease) calc(var(--i) * 110ms), transform 820ms var(--ease-out) calc(var(--i) * 110ms); }
.tw-anim:not(.tw-play) .tw-piece { opacity: 0; transform: translateY(26px) scale(.97); }
.tw-anim .tw-msg { transition: opacity 400ms var(--ease) calc(var(--m) * 650ms + 900ms), transform 500ms var(--ease-out) calc(var(--m) * 650ms + 900ms); }
.tw-anim:not(.tw-play) .tw-msg { opacity: 0; transform: translateY(6px); }
.tw-play .tw-today.on:not(.tw-go) .tw-unread { animation: twping 1.8s var(--ease) 3s infinite; }
.tw-play .tw-today.on:not(.tw-go) .tw-bad { animation: twflash 1.1s var(--ease) 1.6s 2; }
.tw-anim .tw-today.tw-go .tw-piece { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.16); transition: transform 760ms var(--ease-io) calc(var(--i) * 55ms), opacity 420ms var(--ease) calc(var(--i) * 55ms + 340ms); }
@keyframes twping { 0%, 100% { transform: none; } 12% { transform: scale(1.14); } 24% { transform: none; } }
@keyframes twflash { 0%, 100% { box-shadow: none; } 40% { box-shadow: inset 0 0 0 2px var(--warn); } }

/* With RecordOS: one workspace */
.tw-ws { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1000px; margin-inline: auto; padding: clamp(18px, 3vw, 36px); border-radius: 28px; background: radial-gradient(ellipse 80% 70% at 50% 45%, #FAFAFA, #EDEDED); box-shadow: inset 0 0 0 1px var(--line-2); }
.tw-recs { gap: 8px; }
.tw-recs .hd .pearl { width: 22px; height: 22px; margin-inline: 5px; }
.tw-recs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tw-rec { display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 12px; }
.tw-rtx { display: grid; min-width: 0; }
.tw-rtx b { font-weight: 500; font-size: .9rem; line-height: 1.3; }
.tw-rtx small { font-size: .76rem; color: var(--ink-3); line-height: 1.35; }
.tw-ok { width: 15px; height: 15px; color: var(--in); }
.tw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.tw-card { gap: 9px; padding: 16px; align-content: start; min-width: 0; }
.tw-lab { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.tw-lab .lucide { width: 13px; height: 13px; }
.tw-lab img { width: 16px; height: 16px; border-radius: 50%; }
.tw-entry { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tw-autos { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.tw-auto { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-2); flex-wrap: wrap; }
.tw-auto s { color: var(--ink-4); }
.tw-acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: .84rem; }
.tw-acc .vg-who small { font-size: .74rem; }
.tw-q { justify-self: end; max-width: 92%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--fill); color: var(--on-fill); font-size: .84rem; line-height: 1.4; }
.tw-a { font-size: .9rem; color: var(--ink); }
.tw-a b { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; }
.tw-stat { display: flex; align-items: baseline; gap: 8px; font-size: .8rem; color: var(--ink-3); }
.tw-stat b { font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tw-stat .vg-dt { margin-left: auto; align-self: center; }

/* With's motion: each record arrives where its place lands, then the workspace fills in */
.tw-anim .tw-rec { transition: opacity 450ms var(--ease) calc(var(--i) * 55ms + 330ms), transform 600ms var(--spring) calc(var(--i) * 55ms + 330ms); }
.tw-anim .tw-with:not(.on) .tw-rec { opacity: 0; transform: scale(.92); transition-delay: 0s; }
.tw-anim .tw-with.on .tw-rec { animation: twland 1.6s var(--ease) calc(var(--i) * 55ms + 330ms) both; }
@keyframes twland { 0% { background: var(--wash-2); } 100% { background: transparent; } }
.tw-anim .tw-card, .tw-anim .tw-recs { transition: opacity 500ms var(--ease) calc(var(--i, 0) * 140ms + 900ms), transform 700ms var(--ease-out) calc(var(--i, 0) * 140ms + 900ms); }
.tw-anim .tw-recs { --i: -6; }
.tw-anim .tw-with:not(.on) .tw-card { opacity: 0; transform: translateY(14px); transition-delay: 0s; }
.tw-anim .tw-with:not(.on) .tw-recs { opacity: .4; transition-delay: 0s; }
.tw-anim .tw-with .vg-meter i { transition: transform 900ms var(--ease-io) 1.9s; }
.tw-anim .tw-with:not(.on) .vg-meter i { transform: scaleX(0); transition-delay: 0s; }

@media (max-width: 1020px) {
  .tw-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-piece:nth-child(n) { margin-top: 0; }
}
@media (max-width: 860px) {
  .tw-js .tw-bar { position: sticky; top: 78px; z-index: 6; }
  .tw-ws { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
}
@media (max-width: 600px) {
  .tw-board { grid-template-columns: minmax(0, 1fr); padding: 18px 14px; gap: 26px; }
  .tw-ws { padding: 14px; gap: 14px; }
  .tw-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tw-seg button { padding: 0 14px; }
}

/* ---------------------------------------------------------------- what changes */
.hc-stage { display: grid; place-items: center; gap: 18px; min-width: 0; min-height: 440px; padding: clamp(20px, 3.5vw, 44px); border-radius: 28px; background: radial-gradient(ellipse 80% 70% at 50% 45%, #FAFAFA, #EDEDED); box-shadow: inset 0 0 0 1px var(--line-2); }
.hc-stage.hc-two { align-content: center; }
.hc-tx { min-width: 0; }
@media (max-width: 860px) {
  .hc-rows { gap: 72px; }
  .hc-stage { min-height: 0; }
}
@media (max-width: 600px) {
  .hc-stage { padding: 18px 12px; border-radius: 22px; }
}

/* ---------------------------------------------------------------- languages and the phone */
.hx-grid { display: grid; gap: 16px; }
.hx-lang, .hx-off { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 36px); }
.hx-tx { display: grid; gap: 8px; align-content: start; min-width: 0; }
.hx-tx > b { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
.hx-tx > p { color: var(--ink-2); font-size: .95rem; max-width: 32em; }
.hx-tx .textlink { justify-self: start; margin-top: 10px; }
.hx-langs { display: grid; gap: 8px; min-width: 0; }
.hx-langs .hw-langs { margin: 0 0 6px; }
.hx-lab { font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.hx-soon li { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.hx-soon .hx-more { box-shadow: none; padding-left: 4px; color: var(--ink-3); }
.hx-stage { display: grid; place-items: center; padding: 26px 16px; border-radius: 20px; background: radial-gradient(ellipse 80% 70% at 50% 45%, #FAFAFA, #EDEDED); box-shadow: inset 0 0 0 1px var(--line-2); min-width: 0; }
.hx-facts { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.hx-facts li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .hx-lang, .hx-off { grid-template-columns: minmax(0, 1fr); }
  .hx-facts { flex-direction: column; align-items: flex-start; max-width: 340px; margin-inline: auto; }
}
/* Version 4, the foundation (docs/plans/recordos-site-v4.md, phase F): the painted frame every animation sits in
   (<PaintedFrame>, Decided 2) and the call to action every page ends on (<EndCta>, Decided 7). Motion uses the tokens
   on :root in site.css (Decided 1). Light only; no blue. */

/* ---------------------------------------------------------------- PaintedFrame */
.pf { position: relative; isolation: isolate; overflow: hidden; margin: 0; width: 100%; aspect-ratio: 5 / 4; border-radius: 24px; background: var(--wash-2); container-type: inline-size; box-shadow: inset 0 0 0 1px var(--line-a); }
.pf.pf-16-10 { aspect-ratio: 16 / 10; }
.pf.pf-4-5 { aspect-ratio: 4 / 5; }
.pf-paint { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
/* the card's place: centred, about 60% of the frame (at least 300px or all the room there is, at most 380px) */
.pf-stage { position: absolute; inset: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: clamp(20px, 8cqi, 48px); }
.pf-stage > * { grid-area: 1 / 1; width: clamp(min(100%, 300px), 60cqi, 380px); max-width: 100%; }
.pf-stage .vg { max-width: none; }
.pf-stage .vg.vg-phone { max-width: 320px; }
/* stacked slides: one shown (.on), the others waiting below it; the one going out (.was) rises as it fades */
.pf-slide { opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transition: opacity var(--dur-swap-out) var(--ease-in), transform var(--dur-swap-out) var(--ease-in), visibility 0s var(--dur-swap-out); }
.pf-slide.was { transform: translateY(-8px); }
.pf-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-swap) var(--ease-out) 80ms, transform var(--dur-swap) var(--ease-out) 80ms, visibility 0s; }
.pf-slide > .vg { margin-inline: auto; }
/* phones: an upright frame (4:5), a little less painting round the card, so the card keeps its type */
@media (max-width: 640px) {
  .pf.pf-5-4, .pf.pf-16-10 { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-slide, .pf-slide.on { transform: none; transition: opacity 150ms linear, visibility 0s; }
}

/* ---------------------------------------------------------------- EndCta: the page-end call to action */
.ecta { --ecta-top: var(--ground); position: relative; isolation: isolate; overflow: hidden; min-height: clamp(600px, 82vh, 780px); background: var(--ecta-top); color: var(--ink); text-align: center; }
.ecta.ecta-white { --ecta-top: var(--card); }
.ecta.ecta-page { --ecta-top: var(--wash-2); }
.ecta-paint { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center bottom; }
.ecta-fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--ecta-top) 0%, color-mix(in srgb, var(--ecta-top) 85%, transparent) 28%, transparent 58%); pointer-events: none; }
/* behind the words the light holds a little longer than the section's fade, so every word stays 4.5:1 or more */
.ecta-in { display: grid; justify-items: center; padding-top: clamp(64px, 8.5vw, 112px); padding-bottom: clamp(88px, 11vw, 150px); background: linear-gradient(to bottom, color-mix(in srgb, var(--ecta-top) 90%, transparent) 0%, color-mix(in srgb, var(--ecta-top) 78%, transparent) 62%, transparent 100%); max-width: none; }
.ecta-words { display: grid; justify-items: center; gap: 14px; max-width: 680px; }
.ecta .display { color: var(--ink); font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); max-width: 20ch; }
.ecta .display .soft { display: block; color: var(--ink-2); }
.ecta p { color: var(--ink-2); max-width: 32em; font-size: var(--fs-lead); }
.ecta-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.ecta .btn-ghost { background: var(--card); border-color: var(--line); }
.ecta .btn-ghost:hover { background: var(--card); }
.ecta-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: var(--sh-mid); }
.ecta-ic .lucide { width: 24px; height: 24px; }
/* a busy painting: a frosted panel behind the words only */
.ecta-panel { padding: clamp(22px, 3vw, 32px) clamp(20px, 3.4vw, 40px); border-radius: 24px; background: color-mix(in srgb, var(--card) 68%, transparent); border: 1px solid var(--glass-line); backdrop-filter: blur(16px) saturate(1.05); -webkit-backdrop-filter: blur(16px) saturate(1.05); box-shadow: 0 18px 40px -26px hsla(0, 0%, 10%, .35); }
@media (max-width: 640px) {
  .ecta { min-height: 640px; }
  .ecta-in { padding-top: 56px; }
}
/* Version 4, use case pages (docs/plans/recordos-site-v4.md, Decided 5): the after-moments and 3 Now's four ideas sit in
   <PaintedFrame> on the use case's painting, one size within each section. The before-moments' own paintings and the
   night drawn like the other moments need no rules here: DayStory no longer marks the night. Light only; no blue. */

/* after, wide screens: one frame in the sticky column, its slides swapping as the moments land (RO.tourIn) */
.inx .inx-left .vstage.vpf { height: auto; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.vstage.vpf .vframe { width: min(100%, calc((100svh - 150px) * 1.25)); margin-inline: auto; box-shadow: inset 0 0 0 1px var(--line-a), 0 30px 60px -36px hsla(0, 0%, 25%, .45); }
/* a narrow sticky column (a tablet held upright) takes the upright frame, as a phone does, so the cards keep their type */
.inx .inx-left .vstage.vpf { container-type: inline-size; }
@container (max-width: 560px) {
  .vstage.vpf .vframe { aspect-ratio: 4 / 5; width: min(100%, calc((100svh - 150px) * .8)); }
}

/* after, phones: one frame per moment, every one the same size (4:5 on a phone) */
.mpf { margin-top: 6px; }

/* 3 Now: the frame takes the place of the soft stage, the four of one size */
.pf.nowv { display: block; padding: 0; border-radius: 24px; background: var(--wash-2); box-shadow: inset 0 0 0 1px var(--line-a); }
@media (max-width: 600px) { .pf.nowv { padding: 0; } }

/* /use-cases: the "seventy more" rows meet the closing call to action without a second gap */
.section.ucmore { padding-bottom: clamp(16px, 3vw, 40px); }

/* View as: the switch is one row of names; in a narrow frame its buttons tighten, and the eye's label keeps only its icon */
.pf .vg-seg { flex-wrap: nowrap; }
.pf .vg-seg button { white-space: nowrap; }
@container (max-width: 340px) {
  .pf .vg-asbar { gap: 6px; }
  .pf .vg-seg button { padding: 0 10px 0 4px; gap: 5px; font-size: .84rem; }
  .pf .vg-aslab { font-size: 0; gap: 0; padding: 6px; }
}
/* in a narrow frame View as's values wrap onto a second line rather than lose their ends (plates, names) */
@container (max-width: 340px) {
  .pf .vg-asview .vg-t td { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
}
/* Version 4: /features one chapter at a time (Decided 4 of docs/plans/recordos-site-v4.md; Chapter.astro, pages.ts).
   Wide (960px and more), at least 600px tall, with motion: each chapter is a pinned group, its words and steps on the
   left and one painted frame on the right, held still for about 1.1 windows of scroll a step. Otherwise nothing is
   pinned: each step's words, then its frame. Motion uses the tokens on :root (Decided 1). Light only; no blue. */

.fxs { position: relative; }
.fx { --fx-top: calc(76px + env(safe-area-inset-top, 0px)); position: relative; scroll-margin-top: calc(var(--fx-top) - 8px); padding-block: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
.fx:first-child { border-top: 0; padding-top: clamp(32px, 4vw, 56px); }
.fx-head { display: grid; gap: 14px; justify-items: start; max-width: 720px; }
.fx-k { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.fx-head .lead { max-width: 38em; }
.fx-steps { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: clamp(44px, 6vw, 72px); }
.fx-step { display: grid; gap: 18px; }
.fx-tx { position: relative; display: grid; gap: 4px; }
.fx-tx h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); transition: color var(--dur-ui) var(--ease-std); }
.fx-tx p { font-size: .95rem; line-height: 1.55; color: var(--ink-2); max-width: 34em; transition: color var(--dur-ui) var(--ease-std); }
.fx-rail, .fx-go { display: none; }
.fx-pf { max-width: 640px; }

/* the languages' card: the eleven as quiet chips, and the two coming dashed */
.fx-langs .vg-card { gap: 12px; }
.fx-lg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fx-lg li { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .9rem; color: var(--ink); white-space: nowrap; }
.fx-soon li { background: transparent; box-shadow: none; border: 1px dashed var(--line); color: var(--ink-2); }

/* not pinned: every step's frame shows its own card */
@media not all and (min-width: 960px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  .fx .pf-slide { opacity: 1; visibility: visible; transform: none; transition: none; }
}
@media (min-width: 960px) {
  .fx-step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 88px); align-items: center; }
  .fx-pf { max-width: none; }
}

/* ---------------------------------------------------------------- pinned */
@media (min-width: 960px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  .fx, .fx:first-child { height: calc(100vh - var(--fx-top) + var(--n) * 110vh); padding: 0; border-top: 0; }
  .fx-pin { position: sticky; top: var(--fx-top); height: calc(100vh - var(--fx-top)); }
  .fx-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(16px, 1fr) auto auto auto auto auto minmax(16px, 1fr); column-gap: clamp(40px, 5vw, 88px); }
  .fx-head { grid-column: 1; grid-row: 2; gap: 12px; margin-bottom: clamp(18px, 3.4vh, 36px); }
  .fx-head .h2 { font-size: clamp(1.6rem, 1rem + 1.5vw, 2.4rem); }
  .fx-head .lead { font-size: 1rem; line-height: 1.6; }
  .fx-steps, .fx-step { display: contents; }
  .fx-tx { grid-column: 1; padding: 12px 0 12px 24px; }
  .fx-step:nth-child(1) .fx-tx { grid-row: 3; }
  .fx-step:nth-child(2) .fx-tx { grid-row: 4; }
  .fx-step:nth-child(3) .fx-tx { grid-row: 5; }
  .fx-step:nth-child(4) .fx-tx { grid-row: 6; }
  .fx-tx p { font-size: .93rem; }
  /* the rail: a hairline down the steps; the step that is on fills it, dark, as you scroll */
  .fx-rail { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); overflow: hidden; }
  .fx-step:first-child .fx-rail { border-radius: 2px 2px 0 0; }
  .fx-step:last-child .fx-rail { border-radius: 0 0 2px 2px; }
  .fx-rail i { display: block; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(0); }
  .fx-step.on .fx-rail i { transform: scaleY(var(--f, 0)); }
  .fx-step:not(.on) h3 { color: var(--ink-3); }
  .fx-step:not(.on) p { color: var(--ink-4); }
  .fx-step:not(.on) .fx-tx:hover h3 { color: var(--ink); }
  .fx-step:not(.on) .fx-tx:hover p { color: var(--ink-3); }
  .fx-go { display: block; position: absolute; inset: 0; z-index: 1; border: 0; padding: 0; background: transparent; border-radius: 4px; cursor: pointer; }
  .fx-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .fx-step.on .fx-go { cursor: default; }
  /* one frame of one size: every step's frame in the same place, only the first drawing the painting */
  .fx-pf { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: end; width: min(100%, calc((100vh - var(--fx-top) - 48px) * 1.25)); pointer-events: none; }
  .fx-step + .fx-step .fx-pf { background: transparent; box-shadow: none; }
  .fx-step + .fx-step .fx-pf .pf-paint { display: none; }
  .fx-pf .pf-slide.on { pointer-events: auto; }
}

/* the hero's courtyard is busy behind the lead once the words reach past the left third (tablet and phone):
   the wash reaches further, as on the team and personal use-case heroes */
@media (max-width: 1000px) {
  #features .phero.wash-l::before { background: linear-gradient(90deg, color-mix(in srgb, var(--ground) 90%, transparent) 0%, color-mix(in srgb, var(--ground) 78%, transparent) 64%, color-mix(in srgb, var(--ground) 50%, transparent) 100%); }
}
/* Home, version 4 (Decided 3 of docs/plans/recordos-site-v4.md). Motion uses the tokens on :root (Decided 1).
   Today | With RecordOS: one canvas that reorganises. home.ts sets data-state on the section ("today" or "with") and,
   while it moves, .tc-moving and Web Animations on each fragment and row; the static states below are what each
   animation ends on. What changes: four rows, each frame the same size. Who it is for: a segmented control and one
   panel of a fixed height. Light only; no blue but the OS orb. */

/* ---------------------------------------------------------------- the segmented control (both sections) */
.hseg { height: 44px; padding: 4px; gap: 0; border-radius: 22px; background: var(--card); border-color: var(--line-2); box-sizing: border-box; }
.hseg button { height: 34px; padding: 0 18px; border-radius: 17px; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: color var(--dur-ui) var(--ease-std); }
.hseg button[aria-pressed="true"], .hseg button[aria-selected="true"] { color: var(--on-fill); }
.hseg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hseg .pearl { width: 15px; height: 15px; }
/* the thumb: home.ts puts it under the pressed button (--tx, --tw) */
.hseg .pillbg { left: 0; width: var(--tw, 0px); transform: translateX(var(--tx, 4px)); opacity: 0; transition: transform 200ms var(--ease-std), width 200ms var(--ease-std); }
.hseg.ready .pillbg { opacity: 1; }
.hw4-seg .pillbg { transition-duration: 220ms; }
html:not(.js) .hseg button[aria-pressed="true"], html:not(.js) .hseg button[aria-selected="true"] { background: var(--fill); }

/* ---------------------------------------------------------------- Today | With RecordOS */
.tc-head { margin-bottom: 26px; }
.tc-bar { display: flex; justify-content: center; margin-bottom: clamp(18px, 2.4vw, 28px); }
.tc-canvas { position: relative; isolation: isolate; overflow: hidden; margin: 0 auto; max-width: 1040px; aspect-ratio: 16 / 10; border-radius: 24px; container-type: size; background: var(--wash-2); box-shadow: inset 0 0 0 1px var(--line-a); }
.tc-paint { position: absolute; inset: 0; z-index: -1; transition: opacity var(--dur-backdrop) var(--ease-std); }
.tc-paint > div { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tc[data-state="today"] .tc-paint-a, .tc[data-state="with"] .tc-paint-b { opacity: 0; }

/* the fragments: the site's cards, tilted and scattered */
.tc-frags { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tc-frag { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: clamp(172px, 22cqi, 236px); display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--card); color: var(--ink); font-size: .84rem; line-height: 1.35; transform: translate(-50%, -50%) rotate(var(--r)); box-shadow: 0 18px 36px -20px hsla(0, 0%, 12%, .42), 0 0 0 1px hsla(0, 0%, 20%, .07); will-change: transform, opacity; }
.tc-src { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .74rem; font-weight: 500; color: var(--ink-3); }
.tc-src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-src .lucide { width: 13px; height: 13px; flex: none; }
.tc-body { min-width: 0; }
.tc-body b { font-weight: 600; }
.tc-n { color: var(--out); font-weight: 600; }
.tc-bubble { padding: 6px 10px; border-radius: 4px 12px 12px 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.tc-bubble b { display: block; font-size: .72rem; color: var(--ink-3); }
.tc-cells { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); font-variant-numeric: tabular-nums; }
.tc-cells span { padding: 4px 7px; white-space: nowrap; }
.tc-cells span:first-child { overflow: hidden; text-overflow: clip; }
.tc-cells span + span { border-left: 1px solid var(--line-2); }
.tc-bad { background: var(--warn-tint); color: var(--warn); font-weight: 600; }
.tc-hand { font-style: italic; color: var(--ink-2); }
.tc-ticks { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.tc-box { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.tc-box + * { margin-right: 6px; }
.tc-pain { padding-top: 6px; border-top: 1px solid var(--line-2); font-size: .78rem; color: var(--ink-2); }
.tc-note { background: #FCFAF4; background-image: repeating-linear-gradient(180deg, transparent 0 21px, var(--line-2) 21px 22px); }
.tc-sticky { background: #F7EBC6; box-shadow: 0 16px 28px -18px hsla(30, 30%, 20%, .5); }
.tc-sticky .tc-pain { border-top-color: hsla(35, 30%, 40%, .18); }

/* the one entry they become */
.tc-card { position: absolute; left: 50%; top: 50%; width: clamp(280px, 44cqi, 440px); transform: translate(-50%, -50%); padding: 16px 18px; gap: 4px; border-radius: 20px; box-shadow: 0 26px 50px -24px hsla(0, 0%, 10%, .42), 0 2px 6px -2px hsla(0, 0%, 10%, .10), 0 0 0 1px hsla(0, 0%, 20%, .06); }
.tc-card .hd { padding-bottom: 6px; }
.tc-card .hd b { font-size: 1rem; }
.tc-rows { list-style: none; margin: 0; padding: 0; }
.tc-row { font-size: .92rem; padding: 7px 0; }
.tc-row > span:first-child { color: var(--ink-3); }
.tc-val { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; text-align: right; }
.tc-val .in { color: var(--in); }
.tc-val .vg-auto { height: 22px; padding: 0 8px; font-size: .74rem; }

/* the two still states */
.tc[data-state="with"] .tc-frag, .tc[data-state="today"] .tc-card { opacity: 0; visibility: hidden; }
.tc.tc-moving .tc-frag, .tc.tc-moving .tc-card { visibility: visible; }

.tc-caps { display: grid; max-width: 40em; margin: 22px auto 0; text-align: center; }
.tc-cap { grid-area: 1 / 1; color: var(--ink-2); font-size: .98rem; line-height: 1.55; text-wrap: balance; transition: opacity var(--dur-swap) var(--ease-std); }
.tc-cap b { color: var(--ink); font-weight: 500; }
.tc[data-state="today"] .tc-cap-a, .tc[data-state="with"] .tc-cap-b { opacity: 0; }
/* without scripts: Today on the canvas, and both lines under it */
html:not(.js) .tc-seg { display: none; }
html:not(.js) .tc-cap { grid-area: auto; opacity: 1; }

/* phones: the same canvas, upright, the fragments in two loose columns */
@media (max-width: 640px) {
  .tc-canvas { aspect-ratio: 2 / 3; border-radius: 22px; }
  .tc-frag { left: calc(var(--px) * 1%); top: calc(var(--py) * 1%); width: 43cqi; padding: 8px 10px; gap: 4px; border-radius: 12px; font-size: .74rem; }
  .tc-src { font-size: .68rem; }
  .tc-pain { padding-top: 4px; font-size: .7rem; }
  .tc-bubble { padding: 4px 8px; }
  .tc-cells span { padding: 3px 6px; }
  .tc-card { width: calc(100cqi - 32px); padding: 12px 14px; }
  .tc-row { font-size: .84rem; padding: 6px 0; }
  .tc-card .hd small { font-size: .72rem; }
  .hseg button { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-paint { transition: opacity 150ms linear; }
  .tc-frag, .tc-card { transition: opacity 150ms linear, visibility 0s linear 150ms; }
  .tc[data-state="today"] .tc-frag, .tc[data-state="with"] .tc-card { transition: opacity 150ms linear, visibility 0s; }
}

/* ---------------------------------------------------------------- what changes */
.hc4-rows { display: grid; gap: clamp(64px, 8vw, 112px); }
.hc4-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "tx pf"; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hc4-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "pf tx"; }
.hc4-tx { grid-area: tx; min-width: 0; display: grid; gap: 12px; justify-items: start; }
.hc4-tx h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.hc4-tx p { color: var(--ink-2); max-width: 30em; }
.hc4-tx .textlink { margin-top: 6px; }
.hc4-pf { grid-area: pf; max-width: 640px; justify-self: center; }
@media (max-width: 860px) {
  .hc4-row, .hc4-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tx" "pf"; gap: 24px; }
  .hc4-pf { max-width: 620px; }
}

/* ---------------------------------------------------------------- who it is for */
.hw4-head { margin-bottom: 26px; }
.hw4-bar { display: flex; justify-content: center; margin-bottom: clamp(20px, 3vw, 32px); }
.hw4-panels { display: grid; }
.hw4-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.6vw, 56px); height: min(560px, 70vh); min-height: 480px; opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-std), visibility 0s 200ms; }
.hw4-panel.on { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-std), visibility 0s; }
.hw4-pf.pf { aspect-ratio: auto; height: 100%; }
.hw4-side { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding-top: clamp(8px, 4vh, 40px); min-width: 0; }
.hw4-line { color: var(--ink-2); font-size: 1.05rem; max-width: 34em; margin-bottom: 18px; text-wrap: pretty; }
.hw4-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.hw4-list li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity 200ms var(--ease-out), transform var(--dur-swap) var(--ease-out); }
.hw4-panel.on .hw4-list li { opacity: 1; transform: none; transition-delay: calc(var(--k) * 25ms); }
.hw4-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 12px; align-items: center; height: 48px; text-decoration: none; color: var(--ink); }
.hw4-list .itile { width: 28px; height: 28px; border-radius: 8px; }
.hw4-list .itile .lucide { width: 14px; height: 14px; }
.hw4-nm { font-size: .95rem; font-weight: 500; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw4-go { width: 15px; height: 15px; color: var(--ink-4); transition: transform var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-std); }
.hw4-list a:hover .hw4-go { color: var(--ink); transform: translateX(3px); }
.hw4-more { margin-top: 22px; }
/* without scripts: the three groups one under another */
html:not(.js) .hw4-seg { display: none; }
html:not(.js) .hw4-panels { gap: 56px; }
html:not(.js) .hw4-panel, html:not(.js) .hw4-list li { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
@media (max-width: 960px) {
  .hw4-panel { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; align-content: start; }
  .hw4-pf.pf { aspect-ratio: 16 / 10; height: auto; }
  .hw4-side { padding-top: 0; }
}
@media (max-width: 640px) {
  .hw4-pf.pf { aspect-ratio: 4 / 5; }
  .hw4-list { grid-template-columns: minmax(0, 1fr); }
  .hw4-seg button { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw4-panel, .hw4-panel.on { transition: opacity 150ms linear, visibility 0s; }
  .hw4-list li, .hw4-panel.on .hw4-list li { transform: none; transition: opacity 150ms linear; transition-delay: 0s; }
}
/* Version 4, Pricing and Contact (docs/plans/recordos-site-v4.md, phase P: Decided 8 and 9). Pricing: the
   pricing-view painting as a band, one centred plan card on it, a quieter launch strip, the questions with the heading
   on the left. Contact: a 5/7 split, the email large with a copy button, the contact-view painting at 4:5 in a
   <PaintedFrame> with a small reply. Built from the site's own pieces (.tag, .itile, .btn, .qa, .ui-card, the
   vignettes' card) and the motion tokens on :root in site.css. Light only; no blue. */

/* ---------------------------------------------------------------- Pricing: the painting band */
.pr-band { --pr-lap: clamp(150px, 24vh, 260px); position: relative; isolation: isolate; overflow: hidden; min-height: clamp(560px, 80vh, 780px); padding-top: calc(74px + clamp(40px, 8vh, 96px)); padding-bottom: var(--pr-lap); background: var(--ground); text-align: center; }
.pr-paint { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 64%; }
/* the words sit in the pale sky: the page's ground holds over the top, then lets the painting through; the bottom
   fades back to the ground, where the plan card rests */
.pr-band-fade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(to bottom, var(--ground) 0%, color-mix(in srgb, var(--ground) 82%, transparent) 26%, color-mix(in srgb, var(--ground) 40%, transparent) 46%, transparent 62%),
  linear-gradient(to top, var(--ground) 0%, color-mix(in srgb, var(--ground) 60%, transparent) 12%, transparent 30%); }
.pr-band-in { display: grid; justify-items: center; gap: 16px; }
.pr-band-in .display { max-width: 16ch; }
.pr-band-in .lead { max-width: 32em; text-align: center; }

/* ---------------------------------------------------------------- Pricing: the plan card and the launch strip */
.pr-plans { --pr-lap: clamp(150px, 24vh, 260px); position: relative; z-index: 1; margin-top: calc(-1 * var(--pr-lap)); padding-bottom: clamp(72px, 9vw, 120px); background: linear-gradient(to bottom, transparent 0, transparent var(--pr-lap), var(--ground) var(--pr-lap)); }
.pr-plans-in { display: grid; justify-items: center; gap: 16px; }
.pr-plan { width: 100%; max-width: 720px; display: grid; gap: clamp(22px, 3vw, 30px); padding: clamp(26px, 4.4vw, 48px); background: var(--card); border-radius: 24px; box-shadow: 0 30px 60px -30px hsla(0, 0%, 14%, .34), 0 2px 6px 0 var(--sh), 0 0 0 1px var(--line-a); text-align: center; }
.pr-plan-top { display: grid; justify-items: center; gap: 12px; }
.pr-plan-h { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); letter-spacing: -0.025em; }
.pr-fig { display: grid; justify-items: center; gap: 6px; margin-top: 4px; }
.pr-zero { font-family: var(--font-head); font-weight: 500; font-size: clamp(5.5rem, 4rem + 6vw, 8.5rem); line-height: .9; letter-spacing: -0.06em; color: var(--ink); }
.pr-cap { color: var(--ink-3); font-size: .95rem; }
.pr-inc { list-style: none; margin: 0; padding: clamp(22px, 3vw, 30px) 0 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(20px, 3vw, 36px); text-align: left; }
.pr-inc li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
.pr-tick { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--fill); color: var(--on-fill); }
.pr-tick .lucide { width: 13px; height: 13px; stroke-width: 2.4; }
.pr-plan-act { display: grid; justify-items: center; gap: 10px; }
.pr-note { font-size: .86rem; color: var(--ink-3); }
.pr-launch { width: 100%; max-width: 720px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px clamp(18px, 2.6vw, 26px); border-radius: 20px; background: var(--well); border: 1px solid var(--line-2); text-align: left; }
.pr-launch-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pr-launch-ic .lucide { width: 18px; height: 18px; }
.pr-launch-tx { display: grid; gap: 2px; min-width: 0; }
.pr-launch-tx b { font-weight: 500; color: var(--ink); }
.pr-launch-tx p { color: var(--ink-2); font-size: .92rem; line-height: 1.5; }

/* ---------------------------------------------------------------- Pricing: questions, heading left */
.pr-faq-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pr-faq-head { position: sticky; top: 120px; }
.pr-faq-head .h2 { max-width: 14ch; }
.pr-faq { padding-block: clamp(72px, 9vw, 128px) clamp(24px, 4vw, 56px); }
.pr-faq-list .qa button { font-size: 1.04rem; padding: 20px 0; }

/* ---------------------------------------------------------------- Contact: the split */
.ct { background: var(--ground); padding-top: calc(74px + clamp(36px, 7vh, 88px)); padding-bottom: clamp(56px, 7vw, 104px); }
.ct-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ct-words { display: grid; justify-items: start; gap: 16px; }
.ct-words .lead { max-width: 26em; }
.ct-mail { display: flex; align-items: center; gap: 12px; margin-top: 10px; max-width: 100%; }
.ct-mail-a { min-width: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.45rem, 1rem + 1.6vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 7px; transition: text-decoration-color var(--dur-ui) var(--ease-std); overflow-wrap: anywhere; }
.ct-mail-a:hover { text-decoration-color: var(--ink); }
.ct-copy-w { position: relative; display: inline-flex; align-items: center; flex: none; }
.ct-copy { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: border-color var(--dur-ui) var(--ease-std), transform var(--dur-ui) var(--ease-std); }
.ct-copy:hover { border-color: var(--ink); }
.ct-copy:active { transform: scale(.94); }
.ct-copy .lucide { grid-area: 1 / 1; width: 17px; height: 17px; transition: opacity var(--dur-ui) var(--ease-std), transform var(--dur-ui) var(--ease-out); }
.ct-copy .ct-i-done { opacity: 0; transform: scale(.7); }
.ct-copy.done { border-color: var(--ink); }
.ct-copy.done .ct-i-copy { opacity: 0; transform: scale(.7); }
.ct-copy.done .ct-i-done { opacity: 1; transform: none; }
.ct-copied { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-size: .8rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--dur-ui) var(--ease-std), transform var(--dur-ui) var(--ease-out); }
.ct-copied:not(:empty) { opacity: 1; transform: translate(-50%, 0); }
.ct-links { display: grid; width: 100%; max-width: 420px; margin-top: 18px; }
.ct-links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; color: var(--ink); }
.ct-links a:last-child { border-bottom: 1px solid var(--line); }
.ct-links .arrow { margin-left: auto; width: 16px; height: 16px; color: var(--ink-3); transition: transform var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-std); }
.ct-links a:hover .arrow { transform: translateX(3px); color: var(--ink); }
/* the frame: 4:5, as tall as the window allows, at the right of its column */
.ct-frame { justify-self: end; width: min(100%, 560px, calc((100svh - 150px) * .8)); min-width: min(100%, 360px); }

/* ---------------------------------------------------------------- the reply vignette (ReplyBubble) */
.vg-rp { gap: 10px; }
.vg-rp-hd { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vg-rp-mark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--fill); color: var(--on-fill); }
.vg-rp-mark svg { width: 13px; height: 13px; }
.vg-rp p { font-size: 1rem; color: var(--ink); }
.vg-rp-sign { padding-top: 10px; border-top: 1px solid var(--line-2); font-size: .86rem; color: var(--ink-2); font-weight: 500; }

@media (max-width: 900px) {
  .pr-faq-in, .ct-in { grid-template-columns: minmax(0, 1fr); }
  .pr-faq-head { position: static; }
  .ct-frame { justify-self: stretch; width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .pr-band { --pr-lap: 140px; min-height: 520px; }
  /* an upright band: the painting starts lower, so its pale sky (not the town) is behind the words */
  .pr-paint { inset: 34% 0 0 0; background-position: center 70%; }
  .pr-band-fade { background:
    linear-gradient(to bottom, var(--ground) 0%, var(--ground) 34%, color-mix(in srgb, var(--ground) 70%, transparent) 46%, color-mix(in srgb, var(--ground) 30%, transparent) 60%, transparent 72%),
    linear-gradient(to top, var(--ground) 0%, color-mix(in srgb, var(--ground) 60%, transparent) 10%, transparent 24%); }
  .pr-plans { --pr-lap: 140px; }
  .pr-inc { grid-template-columns: minmax(0, 1fr); }
  .pr-launch { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .pr-launch .tag { grid-column: 2; justify-self: start; }
}
/* Version 4 review fixes that belong to the shared vignettes (docs/plans/recordos-site-v4.progress.md, Review).
   Light only; no blue. */

/* a card's grey lines (who and when, which record a number is from) wrap in balanced lines rather than losing their
   end to an ellipsis on a phone, or leaving one word alone on a second line on a wide screen */
.vg .hd small, .vg-rec .vg-rtx small, .vg-prows .vg-rtx small, .vg-tile .tl small { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: balance; }
@container (max-width: 340px) {
  .pf .vg-asview .vg-t th { white-space: normal; text-overflow: clip; line-height: 1.25; }
}

/* LinkFlow in a narrow card (the .vg is the container; about 250–300px in a phone frame): a record's value sits under its words, so a long line ('Kuningan office, October')
   never runs under a long value ('Rp 7,350,000') */
@container (max-width: 340px) {
  .vg-to > li { grid-template-columns: 36px minmax(0, 1fr); row-gap: 2px; }
  .vg-to > li > .vg-big { grid-column: 2; justify-self: start; }
  .vg-to > li > .itile { grid-row: span 2; align-self: start; }
}
@container (max-width: 340px) {
  /* the entry's own value goes under its title too, so the title keeps the card's width */
  .vg-from .hd { flex-wrap: wrap; }
  .vg-from .hd > div { flex: 1 1 0; min-width: 0; }
  .vg-from .hd > .vg-val { flex-basis: 100%; margin-left: 0; padding-left: 46px; }
}

/* a link to a heading (/beta#faqTitle from Contact) lands with the heading, and the label above it, below the fixed header pill */
:where(h1, h2, h3)[id] { scroll-margin-top: 124px; }

/* guides and templates (v4 Decided 6): their vignettes sit in PaintedFrames; a guide card's vignette sits on the
   guide's painting too */
.lib-mo > .pf, .lib-dash > .pf, .lib-saygrid > .pf { box-shadow: inset 0 0 0 1px var(--line-a); }
.lib-saygrid > .pf { max-width: 460px; justify-self: center; }
.lib-vthumb { background: var(--wash-2) center / cover no-repeat; }
.lib-vthumb::before { background: linear-gradient(transparent, color-mix(in srgb, var(--card) 70%, transparent)); }
/* frames side by side line up: a longer caption pushes its own frame down no further than its neighbour's */
.lib-mo > .pf { align-self: end; }

/* InsightTiles: an odd last tile takes the whole row, so a Dashboard of three never leaves one tile alone */
.vg-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Who it is for, Individuals: the things one person keeps share one use case, so they are plain rows, not six links
   to the same page; "See the household use case" under them is the link */
.hw4-list .hw4-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; height: 48px; color: var(--ink); }
/* Version 4 visual walk fixes (docs/plans/recordos-site-v4.progress.md, Visual walk). Light only; no blue. */

/* a table in a narrow card (a 360px phone's frame): headers and Auto chips may wrap, so the table needs less width;
   a card still wider than its frame is shrunk whole by fit() in vignettes.ts */
@container (max-width: 300px) {
  .vg-t th { white-space: normal; }
  .vg-t .vg-auto { white-space: normal; height: auto; min-height: 24px; padding: 3px 8px; line-height: 1.2; }
}
/* View as's values never break mid-word ('Store-keeper', '$3-00'): the table sizes its columns to their longest word
   (auto layout, words break only where a column truly has no room), with a little less air in a narrow card; a
   table still wider than its card shrinks the card whole (fit() in vignettes.ts) */
.pf .vg-asview .vg-t { table-layout: auto; }
.pf .vg-asview .vg-t td { overflow-wrap: break-word; }
@container (max-width: 340px) {
  .pf .vg-asview .vg-t td, .pf .vg-asview .vg-t th { padding-inline: 4px; }
  .pf .vg-asview .vg-t td { font-size: .88rem; }
}

/* Features' pinned chapters on a short window (a 1280x720 laptop): the steps and their words sit closer, so the
   fourth step of Languages ends above the window's bottom; under 680px tall the chapters are not pinned */
@media (min-width: 960px) and (min-height: 680px) and (max-height: 820px) and (prefers-reduced-motion: no-preference) {
  .fx-tx { padding-block: 7px; }
  .fx-tx p { font-size: .88rem; line-height: 1.45; }
  .fx-head { gap: 8px; margin-bottom: 12px; }
  .fx-head .lead { font-size: .94rem; line-height: 1.5; }
}

/* a use-case card in a row with a taller one keeps its title and line together at the top, as its neighbours do,
   with 'Read the story' at the bottom (the grid used to share the extra height out between title and line) */
.ucard .tx { display: flex; flex-direction: column; }

/* a use case's sticky day heading on a phone: solid behind its words, with the fade below them, so the time and
   frame scrolling up pass under a clean edge instead of touching the heading's last line */
@media (max-width: 759px) {
  .mhd { background: var(--ground); }
  .mstory.after .mhd { background: var(--wash); }
  .mhd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: linear-gradient(var(--ground), color-mix(in srgb, var(--ground) 0%, transparent)); pointer-events: none; }
  .mstory.after .mhd::after { background: linear-gradient(var(--wash), color-mix(in srgb, var(--wash) 0%, transparent)); }
}
/* Version 5, the before-moments (docs/plans/recordos-site-v5.md, Decided 1): each before-moment's painting is a
   <PaintedFrame>'s background with a small vignette of the old way centred on it, the caption under the frame; and
   the six before kinds themselves (src/components/vignettes: ChatPile, PaperRegister, TwoSheets, MailThread,
   StickyPile, HandTally), in the site's card style, one idea in 3–4 rows of large type, played once by vignettes.ts.
   Only transform and opacity animate (a note's tilt is the static `rotate`). Light only; no blue. */

/* ---------------------------------------------------------------- the before frames in a day story */
/* wide screens: the four frames stacked in the sticky column, one shown; each the after frame's size and ratio */
.lstage.bpf { aspect-ratio: auto; max-height: none; border-radius: 0; overflow: visible; box-shadow: none; opacity: 1; display: grid; grid-template: auto / minmax(0, 1fr); container-type: inline-size; }
.lstage.bpf .gscene { position: relative; inset: auto; grid-area: 1 / 1; display: grid; gap: 12px; justify-items: center; }
.lstage.bpf .gscene::after { content: none; }
/* the painting cross-fades (--dur-backdrop); the vignette in it plays when its slide is on (vignettes.ts) */
.lstage.bpf .gscene.pf-slide { transform: none; transition: opacity var(--dur-swap-out) var(--ease-in), visibility 0s var(--dur-swap-out); }
.lstage.bpf .gscene.pf-slide.on { transform: none; transition: opacity var(--dur-backdrop) var(--ease-std), visibility 0s; }
.lstage.bpf .bframe { width: min(100%, calc((100svh - 150px) * 1.25)); box-shadow: inset 0 0 0 1px var(--line-a), 0 30px 60px -36px hsla(0, 0%, 25%, .45); }
@container (max-width: 560px) {
  .lstage.bpf .bframe { aspect-ratio: 4 / 5; width: min(100%, calc((100svh - 150px) * .8)); }
}
/* the caption: a quiet line under the frame, never over the card */
.lstage.bpf .gcap, .mbfig .gcap { position: static; max-width: min(100%, 36em); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: .9rem; line-height: 1.4; color: var(--ink-2); text-align: center; text-wrap: balance; }
.lstage.bpf .gscene .gcap { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-swap) var(--ease-out) 200ms, transform var(--dur-swap) var(--ease-out) 200ms; }
.lstage.bpf .gscene.on .gcap { opacity: 1; transform: none; }
/* phones: one frame per moment, the after frames' size (4:5 on a phone) */
.mbfig { display: grid; gap: 10px; margin-top: 6px; }
.mbfig .mpf { margin-top: 0; }
.mbfig .gcap { text-align: left; font-size: .84rem; }
@media (prefers-reduced-motion: reduce) {
  .lstage.bpf .gscene.pf-slide, .lstage.bpf .gscene.pf-slide.on { transition: opacity 150ms linear, visibility 0s; }
  .lstage.bpf .gscene .gcap { transform: none; transition: opacity 150ms linear; }
}

/* ---------------------------------------------------------------- what the before kinds share */
/* handwriting: whichever the device has (none is loaded); the shape of the line matters more than the face */
.vg { --hand: "Bradley Hand", "Segoe Print", "Comic Neue", "Chalkboard SE", cursive; }

/* ---------------------------------------------------------------- ChatPile */
.vg-chat .hd .vg-unread { margin-left: auto; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--in-fill); color: #fff; font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.vg-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vg-msgs li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: end; }
.vg-bub { justify-self: start; max-width: 100%; display: grid; gap: 2px; padding: 9px 13px; border-radius: 16px 16px 16px 6px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.vg-bub small { font-size: .76rem; font-weight: 600; color: var(--ink-3); line-height: 1.2; }
.vg-bub p { margin: 0; font-size: .98rem; line-height: 1.38; color: var(--ink); }
.vg-vn { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vg-vn .lucide { width: 16px; height: 16px; color: var(--in); }
.vg-wave { width: 96px; height: 20px; opacity: .75; background: repeating-linear-gradient(90deg, var(--ink-3) 0 2px, transparent 2px 5px) center / 100% 45% no-repeat, repeating-linear-gradient(90deg, transparent 0 5px, var(--ink-3) 5px 7px, transparent 7px 15px) center / 100% 100% no-repeat; }

/* ---------------------------------------------------------------- PaperRegister */
.vg-paper { position: relative; padding: 16px 18px 14px 34px; border-radius: 6px 6px 14px 14px; background: #FBF8EF; background-image: linear-gradient(90deg, transparent 22px, rgba(181, 53, 53, .35) 22px 23.5px, transparent 23.5px), repeating-linear-gradient(180deg, transparent 0 41px, rgba(66, 66, 66, .13) 41px 42px); box-shadow: 0 26px 50px -24px hsla(0, 0%, 10%, .42), 0 2px 6px -2px hsla(0, 0%, 10%, .10), 0 0 0 1px hsla(30, 20%, 30%, .10); rotate: -1.2deg; color: #2E2A24; }
.vg-phead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1.5px solid rgba(46, 42, 36, .35); }
.vg-phead b { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.vg-phead span { font-size: .8rem; color: #6E665A; white-space: nowrap; }
.vg-rrows { list-style: none; margin: 0; padding: 0; }
/* each written line is one ruled line tall (42px), so a name too long for the page goes on to the next rule whole,
   never cut */
.vg-rrows li { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 42px; font-family: var(--hand); font-size: 1.14rem; line-height: 42px; }
.vg-rn { min-width: 0; overflow-wrap: break-word; }
.vg-rv { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vg-struck .vg-rn, .vg-struck .vg-rv { color: #6E665A; }
.vg-strike { position: absolute; left: -6px; right: -4px; top: 24px; height: 2px; border-radius: 2px; background: #2E2A24; transform-origin: left center; rotate: -1.5deg; }
.vg-run .vg-strike.vg-pre { transform: scaleX(0); opacity: 1; }

/* ---------------------------------------------------------------- TwoSheets */
.vg-sheets { gap: 0; padding-bottom: 4px; }
.vg-sheet { gap: 8px; }
.vg-sheet-1 { rotate: -2deg; margin-right: 22px; }
.vg-sheet-2 { rotate: 1.5deg; margin: -20px 0 0 22px; position: relative; z-index: 1; }
.vg-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); font-size: .96rem; }
.vg-grid > span { padding: 8px 10px; border-top: 1px solid var(--line); }
.vg-grid > span:nth-child(-n+2) { border-top: 0; }
.vg-gl { color: var(--ink-2); min-width: 0; overflow-wrap: break-word; border-right: 1px solid var(--line); }
.vg-gv { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.vg-gt { background: var(--well); font-weight: 600; color: var(--ink); }
.vg-tot { position: relative; display: inline-block; }
.vg-ring { position: absolute; inset: -4px -7px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--out); pointer-events: none; }
.vg-diff { justify-self: center; margin: 12px 0 0; position: relative; z-index: 2; }
.vg-diff .tag { height: 30px; padding: 0 12px; font-size: .86rem; font-weight: 500; box-shadow: 0 10px 22px -12px hsla(0, 0%, 10%, .45); }

/* ---------------------------------------------------------------- MailThread */
.vg-mail .hd b { overflow-wrap: anywhere; }
.vg-mrows { list-style: none; margin: 0; padding: 0; display: grid; }
.vg-mrows li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.vg-mrows li:first-child { border-top: 0; padding-top: 2px; }
.vg-mtx { min-width: 0; display: grid; gap: 1px; }
.vg-mfrom { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.vg-mfrom b { font-weight: 500; font-size: .9rem; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-mfrom small { flex: none; font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vg-mtx p { margin: 0; font-size: .98rem; line-height: 1.38; color: var(--ink); }
.vg-unseen .vg-mfrom b { color: var(--ink); font-weight: 600; }
.vg-unseen .vg-mfrom b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--in-fill); vertical-align: 1px; }

/* ---------------------------------------------------------------- StickyPile */
.vg-pile { list-style: none; margin: 0; padding: 6px 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.vg-sticky { position: relative; min-height: 96px; padding: 16px 14px 14px; display: grid; align-content: start; background: #FBEFA8; box-shadow: 0 18px 30px -18px hsla(40, 30%, 15%, .55), 0 1px 2px hsla(40, 30%, 15%, .15); border-radius: 3px 3px 10px 3px; font-family: var(--hand); font-size: 1.12rem; line-height: 1.28; color: #2E2A24; }
.vg-sticky p { margin: 0; overflow-wrap: anywhere; }
.vg-sticky::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: rgba(0, 0, 0, .04); border-radius: 3px 3px 0 0; }
.vg-st1 { rotate: -4deg; z-index: 1; }
.vg-st2 { rotate: 3deg; margin: 14px 0 0 -10px; z-index: 2; background: #F9D9CF; }
.vg-st3 { rotate: 2deg; margin: -16px 0 0 8px; z-index: 3; background: #DCEFD3; }
.vg-st4 { rotate: -3deg; margin: -4px 4px 0 -14px; z-index: 4; }
/* a paper slip: white, torn at the foot, the words a little smaller */
.vg-sticky.vg-slip { background: #FFFFFF; border-radius: 2px; min-height: 84px; font-size: 1.04rem; padding-bottom: 20px; -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x; mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 7px repeat-x; }
.vg-sticky.vg-slip::before { content: none; }
.vg-pile-3 .vg-st3 { grid-column: 1 / -1; justify-self: center; width: 58%; margin-top: -14px; }

/* ---------------------------------------------------------------- HandTally */
.vg-tlines { list-style: none; margin: 0; padding: 0; display: grid; }
.vg-tlines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .98rem; }
.vg-tlines li:first-child { border-top: 0; }
.vg-tlines li > span:first-child { color: var(--ink-2); min-width: 0; }
.vg-tlines li > span:last-child { flex: none; font-family: var(--hand); font-size: 1.12rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vg-calc { display: flex; justify-content: flex-end; align-items: center; min-height: 58px; padding: 8px 16px; border-radius: 14px; background: #2B2F2A; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45); }
.vg-calc-v { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem, 9cqi, 1.9rem); letter-spacing: -0.02em; color: #DDEBC8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vg-miss { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0; padding-top: 2px; font-size: .92rem; color: var(--ink-2); }
.vg-miss .vg-ag { min-width: 0; }
.vg-miss .tag { height: 28px; padding: 0 11px; font-size: .84rem; font-weight: 500; }

/* ---------------------------------------------------------------- narrow frames (a 360px phone) */
@container (max-width: 320px) {
  .vg-sticky { min-height: 84px; padding: 14px 12px 12px; font-size: 1.02rem; }
  .vg-rrows li { font-size: 1.04rem; }
  .vg-grid { font-size: .9rem; }
  .vg-grid > span { padding: 7px 8px; }
  .vg-wave { width: 64px; }
}
/* Version 5 of the library (lane v5-library; Decided 5 and 6 of docs/plans/recordos-site-v5.md): the guide cards'
   small painted frames, a guide's short answer, steps and worked example, a template's fields with their kinds and
   its five minutes, a comparison's "use both" and sources, and the changelog. Built from the site's tokens and
   pieces (.pf, .ucard, .itile, .tag, .cx-*, .lib-*). */

/* ================================================================ a guide's card: its vignette in a small frame */
.lib-cim { position: relative; display: block; padding: 10px 10px 0; }
.lib-cin { display: block; }
.lib-cpf.pf, .lib-cpf.pf.pf-5-4 { aspect-ratio: 5 / 4; border-radius: 16px; }
.lib-cpf .pf-stage { padding: clamp(14px, 6cqi, 28px); }
.lib-cpf .pf-stage > * { width: min(100%, 360px); }
/* the card's vignette is drawn a little smaller than in its guide, so the painting shows round it */
.lib-cv > * { zoom: .82; }
.lib-cim > .itile { position: absolute; left: 24px; bottom: -16px; width: 40px; height: 40px; border-radius: 12px; background: var(--card); box-shadow: var(--sh-mid); z-index: 1; display: grid; place-items: center; }
.lib-cim > .itile .lucide { width: 19px; height: 19px; }
.lib-vcard .tx { padding-top: 30px; }
/* one card a row on phones: a square frame, so the vignette keeps painting round it at 360px */
@media (max-width: 640px) { .lib-cpf.pf, .lib-cpf.pf.pf-5-4 { aspect-ratio: 1 / 1; } }

/* ================================================================ a guide: the short answer, the steps, the example */
.gd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "answer fig" "steps fig"; column-gap: clamp(32px, 6vw, 88px); row-gap: 40px; align-items: start; }
.gd-answer { grid-area: answer; display: grid; gap: 12px; padding: 24px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-2); }
.gd-answer p { font-size: clamp(1.12rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; max-width: 34em; }
.gd-fig { grid-area: fig; margin: 0; display: grid; gap: 14px; position: sticky; top: 96px; }
.gd-fig figcaption { color: var(--ink-2); font-size: .92rem; line-height: 1.5; max-width: 30em; }
.gd-stepcol { grid-area: steps; display: grid; gap: 24px; min-width: 0; }
.gd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.gd-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.gd-steps li:first-child { border-top: 0; padding-top: 4px; }
.gd-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--on-fill); font-family: var(--font-head); font-weight: 500; font-size: .95rem; font-variant-numeric: tabular-nums; }
.gd-steps h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.3; margin: 6px 0; }
.gd-steps p { color: var(--ink-2); line-height: 1.6; max-width: 36em; }
@media (max-width: 900px) {
  .gd-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "answer" "fig" "steps"; row-gap: 28px; }
  .gd-fig { position: static; max-width: 480px; width: 100%; justify-self: center; }
}
@media (max-width: 640px) { .gd-answer { padding: 20px; } .gd-steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; } .gd-n { width: 32px; height: 32px; } }

.gd-exwrap { display: grid; gap: 28px; }
.gd-exwrap .head { margin: 0; }
.gd-exwrap .lead { max-width: 44em; }
.gd-said { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.gd-said li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); line-height: 1.5; }
.gd-said .itile { flex: none; width: 32px; height: 32px; border-radius: 10px; }
.gd-said .itile .lucide { width: 16px; height: 16px; }
.gd-said q { quotes: "“" "”"; color: var(--ink); }
.gd-table:focus-visible { outline-offset: 6px; }
.gd-table table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; font-size: .93rem; line-height: 1.45; }
.gd-table caption { caption-side: bottom; text-align: left; padding: 12px 4px 0; font-size: .82rem; color: var(--ink-3); }
.gd-table th, .gd-table td { text-align: left; vertical-align: top; padding: 13px 16px; border-top: 1px solid var(--line-2); }
.gd-table thead th { border-top: 0; background: var(--well); font-weight: 500; font-size: .86rem; color: var(--ink-2); }
.gd-table tbody th { font-weight: 500; color: var(--ink); }
.gd-table td { color: var(--ink-2); }
.gd-table .gd-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .gd-table table, .gd-table tbody, .gd-table tr, .gd-table th, .gd-table td { display: block; width: auto; }
  .gd-table table { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .gd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gd-table caption { display: block; padding: 0 0 12px; }
  .gd-table tbody { display: grid; gap: 10px; }
  .gd-table tr { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 4px 0 10px; }
  .gd-table tbody th { border-top: 0; padding: 12px 16px 4px; font-family: var(--font-head); font-size: 1rem; letter-spacing: -0.02em; }
  .gd-table td, .gd-table .gd-num { border-top: 0; padding: 4px 16px; text-align: left; white-space: normal; }
  .gd-table td::before { content: attr(data-h); display: block; color: var(--ink-3); font-size: .78rem; }
}
.gd-result { display: flex; gap: 12px; align-items: flex-start; max-width: 46em; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); line-height: 1.55; color: var(--ink); }
.gd-result .ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--in-tint); color: var(--in); flex: none; }
.gd-result .ok .lucide { width: 14px; height: 14px; stroke-width: 2.4; }
.gd-more { display: block; margin-bottom: 18px; }

/* ================================================================ a template: about, every field and its kind, five minutes */
.tf-aboutgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 88px); align-items: start; }
.tf-aboutgrid .head { margin: 0; }
.tf-abouttx { display: grid; gap: 14px; max-width: 40em; }
.tf-abouttx p { font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }
.tf-abouttx p:first-child { color: var(--ink); font-size: 1.15rem; }
@media (max-width: 900px) { .tf-aboutgrid { grid-template-columns: minmax(0, 1fr); } }
.tf-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.tf-rec { display: grid; gap: 12px; align-content: start; padding: 14px; border-radius: 18px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); min-width: 0; }
.tf-rec header { display: flex; gap: 12px; align-items: center; }
.tf-rec header > span:last-child { display: grid; gap: 2px; }
.tf-rec header b { font-weight: 500; font-size: 1rem; }
.tf-rec header small { font-size: .78rem; color: var(--ink-3); }
.tf-fields { margin: 0; display: grid; gap: 0; background: var(--card); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.tf-fields > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line-2); font-size: .88rem; line-height: 1.4; }
.tf-fields > div:first-child { border-top: 0; }
.tf-fields dt { color: var(--ink); font-weight: 500; min-width: 0; }
.tf-fields dd { margin: 0; color: var(--ink-3); text-align: right; }
.tf-list { color: var(--ink-2); }
.tf-note { font-style: normal; font-size: .8rem; color: var(--ink-3); line-height: 1.45; }
.tf-ins { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tf-ins li { display: grid; gap: 2px; }
.tf-ins b { font-weight: 500; font-size: .95rem; }
.tf-ins small { font-size: .82rem; color: var(--ink-3); }
.tf-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; counter-reset: none; }
.tf-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); }
.tf-steps h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; margin: 6px 0 6px; }
.tf-t { font-family: var(--font-body, inherit); font-size: .74rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); padding: 2px 8px; border-radius: 999px; background: var(--well); }
.tf-steps p { color: var(--ink-2); line-height: 1.55; font-size: .94rem; }

/* ================================================================ the changelog: which part changed */
.cl-when { display: grid; gap: 8px; align-content: start; justify-items: start; }
.cl-area { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--well); color: var(--ink-2); font-size: .76rem; font-weight: 500; }
.cl-area .lucide { width: 13px; height: 13px; }
@media (max-width: 640px) { .cl-when { display: flex; align-items: center; gap: 10px; } }

/* ================================================================ a comparison: its sources, and when to use both */
.cmp-src { margin-top: 14px; font-size: .84rem; line-height: 1.6; color: var(--ink-3); max-width: 70em; }
.cmp-src span:first-child { color: var(--ink-2); }
.cmp-src a { overflow-wrap: anywhere; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cmp-src a:hover { color: var(--ink); text-decoration-color: currentColor; }
.cmp-bothgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.cmp-bothgrid .head { margin: 0; }
.cmp-bothlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cmp-bothlist li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); }
.cmp-bothlist p { line-height: 1.55; color: var(--ink); padding-top: 6px; }
@media (max-width: 900px) { .cmp-bothgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .cmp-bothlist li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 16px; } }
/* Home, version 5 (Decided 2, 3 and 4 of docs/plans/recordos-site-v5.md). Motion uses the tokens on :root.
   Today and with RecordOS: one PaintedFrame split by a handle. home.ts keeps the handle's place in --cut (0 to 100)
   on the frame; the old side is clipped to the left of it and the new side to the right, so only clip-path and the
   handle's transform change. The two lines under it stand side by side, never stacked in one place.
   Who it is for: three folds. Wide and tall enough, with motion and scripts, the section is pinned and each fold gets
   about one window of scroll (home.ts sets .on on the fold and --f on its rail); otherwise the folds stand one under
   another, each its words and then its frame. Light only; no blue but the OS orb. */

/* ---------------------------------------------------------------- the slider */
.ts-head { margin-bottom: clamp(22px, 3vw, 34px); }
.ts-hint { margin-top: 6px; color: var(--ink-3); font-size: .92rem; }
html:not(.js) .ts-hint { display: none; }

.ts-pf.pf { --cut: 48; max-width: 1040px; margin-inline: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; -webkit-tap-highlight-color: transparent; }
.ts-pf .pf-stage { display: block; padding: 0; }
.ts-pf .pf-stage > * { width: auto; max-width: none; }
.ts-side { position: absolute; inset: 0; z-index: 1; }
.ts-old { clip-path: inset(0 calc(100% - var(--cut) * 1%) 0 0); }
.ts-new { clip-path: inset(0 0 0 calc(var(--cut) * 1%)); }
/* the entry sits in the right half, so at rest (the handle just left of the middle) it shows whole beside the old way */
.ts-paint { position: absolute; inset: 0; z-index: 0; background-color: var(--wash-2); background-size: cover; background-position: center; }

/* the two sides' names, in their top corners */
.ts-tag { position: absolute; top: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; background: color-mix(in srgb, var(--card) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line-2), 0 6px 16px -10px hsla(0, 0%, 10%, .35); font-size: .82rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.ts-tag-old { left: 16px; }
.ts-tag-new { right: 16px; }
.ts-tag .pearl { width: 14px; height: 14px; }

/* the handle: a white line the frame's height and a round knob in its middle. The handle is as wide as the frame and
   moves by its own width's percent, so its middle is always on the cut; only the grip (44px round the line) takes
   the pointer, and a finger on it still scrolls the page up and down. */
.ts-handle { position: absolute; inset: 0; z-index: 4; transform: translateX(calc((var(--cut) - 50) * 1%)); pointer-events: none; outline: none; }
.ts-grip { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px; pointer-events: auto; touch-action: pan-y; cursor: ew-resize; }
.ts-line { position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #fff; box-shadow: 0 0 0 1px hsla(0, 0%, 10%, .06), 0 0 14px hsla(0, 0%, 10%, .22); }
.ts-knob { position: absolute; left: 0; top: 50%; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px -10px hsla(0, 0%, 10%, .5); transition: transform var(--dur-ui) var(--ease-out); }
.ts-knob .lucide { width: 15px; height: 15px; margin: 0 -2px; }
.ts-pf:hover .ts-knob, .ts-pf.ts-drag .ts-knob { transform: scale(1.08); }
.ts-handle:focus-visible .ts-knob { outline: 2px solid var(--ink); outline-offset: 3px; }
html:not(.js) .ts-knob { display: none; }
html:not(.js) .ts-pf.pf { cursor: default; }

/* the two lines under it: each under its own half */
.ts-caps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); max-width: 1040px; margin: 20px auto 0; }
.ts-cap { color: var(--ink-2); font-size: .98rem; line-height: 1.55; text-wrap: pretty; max-width: 30em; }
.ts-cap b { color: var(--ink); font-weight: 500; }
.ts-cap-new { justify-self: end; text-align: right; }

/* phones: an upright frame, the fragments in two loose columns below the names, the lines one under the other */
@media (max-width: 640px) {
  .ts-pf.pf { aspect-ratio: 3 / 5; }
  /* the entry in the right column, each field over its value */
  .ts-tag { top: 12px; height: 28px; padding: 0 10px; font-size: .78rem; }
  .ts-tag-old { left: 12px; }
  .ts-tag-new { right: 12px; }
  .ts-caps { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .ts-cap, .ts-cap-new { justify-self: start; text-align: left; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-knob { transition: none; }
  .ts-pf:hover .ts-knob, .ts-pf.ts-drag .ts-knob { transform: none; }
}

/* ---------------------------------------------------------------- who it is for: stacked (the default) */
.hw5-top { margin: 0 auto clamp(36px, 5vw, 56px); justify-items: center; text-align: center; }
.hw5-rail { display: none; }
.hw5-folds { display: grid; gap: clamp(64px, 8vw, 104px); }
/* v4's panel, undone: every fold in its own place, at its own height */
.hw5 .hw4-panel { grid-area: auto; height: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.hw5-body { display: grid; justify-items: start; align-content: start; min-width: 0; }
.hw5-body .hw4-list { width: 100%; }
.hw5-h { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -0.025em; }
.hw5 .hw5-line { margin: 10px 0 14px; }
.hw5 .hw4-list a, .hw5 .hw4-list .hw4-row { height: 46px; }
.hw5-more { margin-top: 20px; }
.hw5-pf.pf { max-width: 640px; }

/* the calls to action, as one card on the group's painting */
.hw5-cta { display: grid; gap: 12px; padding: 18px; border-radius: 20px; box-shadow: 0 26px 50px -24px hsla(0, 0%, 10%, .42), 0 2px 6px -2px hsla(0, 0%, 10%, .10), 0 0 0 1px hsla(0, 0%, 20%, .06); }
.hw5-cta-h { font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.hw5-cta-links { list-style: none; margin: 0; padding: 0; display: grid; }
.hw5-cta-links li + li { border-top: 1px solid var(--line-2); }
.hw5-cta-links a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 10px; align-items: center; height: 44px; color: var(--ink); text-decoration: none; }
.hw5-cta-links .itile { width: 28px; height: 28px; border-radius: 8px; }
.hw5-cta-links .itile .lucide { width: 14px; height: 14px; }
.hw5-cta-nm { font-size: .93rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw5-cta-go { width: 15px; height: 15px; color: var(--ink-4); transition: transform var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-std); }
.hw5-cta-links a:hover .hw5-cta-go { color: var(--ink); transform: translateX(3px); }
.hw5-cta-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.hw5-cta-acts .btn { flex: 1 1 auto; }
.hw5-cta-note { font-size: .82rem; color: var(--ink-3); }

/* phones: eight use cases (See all has the rest), and a card that leaves the painting round it */
@media (max-width: 640px) {
  .hw5 .hw4-list li:nth-child(n+9) { display: none; }
  .hw5-cta { gap: 10px; padding: 16px; }
  .hw5-cta-h { font-size: .98rem; }
  .hw5-cta-links li:nth-child(n+3) { display: none; }
  .hw5-cta-acts .btn { --h: 38px; }
}
@media (min-width: 960px) {
  .hw5 .hw4-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
  .hw5-pf.pf { max-width: none; }
}

/* ---------------------------------------------------------------- who it is for: pinned */
@media (min-width: 960px) and (min-height: 720px) and (prefers-reduced-motion: no-preference) {
  .js .hw5.section { padding-block: 0; }
  .js .hw5-track { --top: calc(76px + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--top) + var(--n) * 100vh); }
  .js .hw5-pin { position: sticky; top: var(--top); height: calc(100vh - var(--top)); display: grid; align-items: center; }
  .js .hw5-grid { height: min(100%, 680px); padding-block: clamp(16px, 3vh, 32px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(40px, 5vw, 88px); }
  /* the heading and rail sit over the folds (each fold spans every row, so the one that is on would take their clicks) */
  .js .hw5-top { position: relative; z-index: 2; grid-column: 1; grid-row: 1; max-width: none; margin: 0; gap: 10px; justify-items: start; text-align: left; }
  .js .hw5-top .h2 { font-size: clamp(1.6rem, 1rem + 1.5vw, 2.3rem); }
  .js .hw5-folds { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; gap: normal; }
  .js .hw5 .hw4-panel { grid-column: 1 / -1; grid-row: 1 / -1; grid-template-columns: subgrid; grid-template-rows: subgrid; gap: normal; align-items: stretch; pointer-events: none; }
  .js .hw5 .hw4-panel { transition: opacity var(--dur-swap-out) var(--ease-in), visibility 0s var(--dur-swap-out); }
  .js .hw5 .hw4-panel.on { pointer-events: auto; transition: opacity var(--dur-swap) var(--ease-out), visibility 0s; }
  .js .hw5-body { grid-column: 1; grid-row: 2; align-self: start; padding-top: clamp(18px, 3.4vh, 32px); }
  .js .hw5 .hw4-list a, .js .hw5 .hw4-list .hw4-row { height: 42px; }
  .js .hw5 .hw4-list li:nth-child(n+9) { display: none; }
  .js .hw5-pf.pf { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: end; width: min(100%, calc((min(100vh - var(--top), 680px) - 48px) * 1.25)); }
  /* the rail: the three names, each over a hairline that fills, dark, as its fold's share of the scroll passes */
  .js .hw5-rail { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 420px; }
  .js .hw5-go { display: grid; gap: 8px; width: 100%; padding: 6px 0; border: 0; background: transparent; text-align: left; font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink-3); cursor: pointer; border-radius: 4px; transition: color var(--dur-ui) var(--ease-std); }
  .js .hw5-go:hover, .js .hw5-step.on .hw5-go { color: var(--ink); }
  .js .hw5-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .js .hw5-bar { display: block; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .js .hw5-bar i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
  .js .hw5-step.done .hw5-bar i { transform: scaleX(1); }
  .js .hw5-step.on .hw5-bar i { transform: scaleX(var(--f, 0)); }
}
/* Version 5, the visual walk (docs/plans/recordos-site-v5.progress.md, "Visual walk"): layout fixes found by looking. */

/* On a phone the lead runs the full width, past the left third the default wash covers, and on the
   business use cases and the use-case index it sat on bare painting (the bougainvillea, the lorry, the dryer).
   The wash reaches across, as it already does on the team and personal heroes. */
@media (max-width: 760px) {
  .uch.wash-l::before, #usecases .phero.wash-l::before { background: linear-gradient(90deg, color-mix(in srgb, var(--ground) 88%, transparent) 0%, color-mix(in srgb, var(--ground) 74%, transparent) 64%, color-mix(in srgb, var(--ground) 46%, transparent) 100%); }
}
/* Home's before / after slider, reworked 16 Oct (src/components/home/TodayWith.astro): one painting behind both
   layers, six slots in the same places on both sides, the old card tilted and dressed as its own tool, the RecordOS
   card straight and alike, dashed links from the order to the records it wrote. Positions are % of the frame (.pf is
   the inline-size container), so cards keep their places at every width. Light only; no blue. */
.sl .sl-layer { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; }
.sl-card { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: clamp(176px, 26cqi, 264px); transform: translate(-50%, -50%); display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--card); color: var(--ink); font-size: .86rem; line-height: 1.35; box-shadow: 0 18px 40px -22px hsla(0, 0%, 15%, .5), 0 0 0 1px hsla(0, 0%, 20%, .07); }
.sl-card b { font-weight: 500; }
.sl-faint { color: var(--ink-3); }
.sl-red { color: var(--out); font-weight: 500; }

/* the old way: each card its own tool, tilted */
.sl-old { transform: translate(-50%, -50%) rotate(var(--r)); }
.sl-src { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--ink-3); }
.sl-src .lucide { width: 13px; height: 13px; flex: none; }
.sl-line { display: flex; justify-content: space-between; gap: 10px; }
.sl-pain { margin-top: 2px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: .76rem; color: var(--out); }
.sl-unread { margin-left: auto; min-width: 22px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--in-fill); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
.sl-bub { justify-self: start; max-width: 92%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--well); font-size: .82rem; }
.sl-bub-r { justify-self: end; border-radius: 12px 12px 4px 12px; background: var(--in-tint); }
.sl-grid { display: grid; grid-template-columns: 1fr auto; gap: 0; font-size: .82rem; font-variant-numeric: tabular-nums; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.sl-grid > span { padding: 4px 8px; border-bottom: 1px solid var(--line-2); }
.sl-grid > span:nth-last-child(-n + 2) { border-bottom: 0; }
.sl-grid > span:nth-child(4n + 3), .sl-grid > span:nth-child(4n + 4) { background: var(--well); }
.sl-hand { font-family: 'Bradley Hand', 'Segoe Print', 'Comic Neue', cursive; font-size: 1.04rem; line-height: 1.25; color: #3d3a33; }
.sl-paper { background: #FBF7EC repeating-linear-gradient(transparent 0 23px, hsla(30, 30%, 50%, .18) 23px 24px); }
.sl-sticky { background: #F9E79F; border-radius: 4px; box-shadow: 0 16px 30px -18px hsla(40, 40%, 25%, .55); }
.sl-sticky .sl-pain { border-top-color: hsla(40, 40%, 30%, .25); }


/* phones: two columns, three rows (the frame is 3:5 here) */
@media (max-width: 760px) {
  .sl-card { left: calc(var(--px) * 1%); top: calc(var(--py) * 1%); width: 45cqi; padding: 9px 10px; gap: 4px; border-radius: 12px; font-size: .74rem; }
  .sl-src { font-size: .66rem; gap: 4px; }
  .sl-src .lucide { width: 11px; height: 11px; }
  .sl-pain { font-size: .68rem; padding-top: 5px; }
  .sl-bub { font-size: .72rem; padding: 5px 8px; }
  .sl-grid { font-size: .72rem; }
  .sl-grid > span { padding: 3px 6px; }
  .sl-hand { font-size: .9rem; }
}

/* the RecordOS side: one window of the web app's records page in grid view (Devendra, 16 Oct: "just show our web
   dashboard with meaningful data, the records page with grid view"), sized from the frame (.pf is the container) */
.sl-app { position: absolute; z-index: 2; left: 4.5%; right: 4.5%; top: 12%; bottom: 6%; display: grid; grid-template-columns: clamp(132px, 17cqi, 178px) minmax(0, 1fr); border-radius: 14px; overflow: hidden; background: #F5F5F5; box-shadow: 0 30px 60px -28px hsla(0, 0%, 12%, .55), 0 0 0 1px hsla(0, 0%, 20%, .08); font-size: clamp(11px, 1.3cqi, 13.5px); line-height: 1.3; color: var(--ink); }
.sl-sb { display: grid; align-content: start; gap: 2px; padding: 12px 10px; }
.sl-ws { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; font-weight: 500; white-space: nowrap; }
.sl-ws-mk { width: 20px; height: 20px; border-radius: 6px; background: var(--ink); flex: none; }
.sl-nav { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; }
.sl-nav .lucide { width: 14px; height: 14px; flex: none; }
.sl-nav .pearl { width: 14px; height: 14px; }
.sl-nav.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line-2), 0 2px 4px hsla(0, 0%, 18%, .06); }
.sl-grp { padding: 10px 8px 4px; font-size: .86em; color: var(--ink-3); }
.sl-main { position: relative; margin: 8px 8px 8px 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line-2); padding: 14px 16px 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-width: 0; overflow: hidden; }
.sl-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sl-top .itile { width: 28px; height: 28px; border-radius: 8px; }
.sl-top .itile .lucide { width: 14px; height: 14px; }
.sl-ttl { display: grid; min-width: 0; }
.sl-ttl b { font-family: var(--font-head); font-size: 1.25em; font-weight: 500; letter-spacing: -0.01em; }
.sl-ttl small { color: var(--ink-3); font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-tabs { display: flex; gap: 18px; margin-top: 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-3); }
.sl-tabs span { padding: 0 0 8px; }
.sl-tabs .on { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--ink); }
.sl-tabs em { font-style: normal; color: var(--ink-3); font-weight: 400; margin-left: 2px; }
.sl-grid2 { width: 100%; border-collapse: collapse; table-layout: fixed; align-self: start; }
.sl-grid2 th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: .92em; padding: 9px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.sl-grid2 td { padding: 0 8px; height: 2.9em; border-bottom: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-grid2 td b { font-weight: 500; }
.sl-grid2 .sl-n { text-align: right; font-variant-numeric: tabular-nums; }
.sl-grid2 th:nth-child(1) { width: 22%; } .sl-grid2 th:nth-child(2) { width: 22%; } .sl-grid2 th:nth-child(3) { width: 11%; }
.sl-grid2 th:nth-child(4) { width: 17%; } .sl-grid2 th:nth-child(5) { width: 15%; } .sl-grid2 th:nth-child(6) { width: 13%; }
.sl-fresh { background: color-mix(in srgb, var(--in-tint) 55%, #fff); }
.sl-pill { display: inline-flex; align-items: center; height: 1.8em; padding: 0 .7em; border-radius: 999px; font-size: .92em; font-weight: 500; }
.sl-pill.paid { background: var(--in-tint); color: var(--in); }
.sl-pill.due { background: var(--warn-tint); color: var(--warn); }
.sl-toast { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 12px; background: #fff; box-shadow: 0 14px 30px -14px hsla(0, 0%, 12%, .45), 0 0 0 1px var(--line-2); white-space: nowrap; }
.sl-toast .vg-auto { height: 1.9em; font-size: .9em; }
.sl-toast b { font-weight: 500; }
/* narrow frames: no sidebar, only the columns that matter, rows that wrap */
@container (max-width: 700px) {
  .sl-app { grid-template-columns: minmax(0, 1fr); left: 5%; right: 5%; top: 10%; bottom: 5%; font-size: 12px; }
  .sl-sb, .sl-grid2 .sl-w, .sl-grid2 .sl-w2 { display: none; }
  .sl-main { margin: 0; border-radius: 14px; padding: 12px 12px 0; }
  .sl-ttl small { display: none; }
  .sl-grid2 th:nth-child(1) { width: 40%; } .sl-grid2 th:nth-child(2) { width: 38%; } .sl-grid2 th:nth-child(3) { width: 22%; }
  .sl-grid2 td { white-space: normal; height: auto; padding: 9px 6px; }
  .sl-toast { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
}

/* ---------------------------------------------------------------- Who it is for, simplified 16 Oct (Audiences.astro):
   three steps on the left (title and one line), one painted frame per group on the right with its use cases as links. */
.hw6-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.hw6-left { display: grid; gap: 12px; align-content: start; }
.hw6-steps { display: none; }
.hw6-right { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 7vw, 88px); }
.hw6-fold { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* v4's .hw4-panel stacks panels in one cell and fades the list in; this section stacks them only when pinned */
.hw6 .hw4-panel { grid-area: auto; height: auto; min-height: 0; opacity: 1; visibility: visible; grid-template-columns: minmax(0, 1fr); }
.hw6 .hw4-list li { opacity: 1; transform: none; }
.hw6-hd { display: grid; gap: 6px; }
.hw6-t { font-family: var(--font-head); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.hw6-l { color: var(--ink-2); font-size: .98rem; line-height: 1.5; max-width: 34em; }
.hw6-pf.pf { --card-w: min(100%, 520px); }
.hw6-pf .pf-stage > .hw6-card { width: min(84cqi, 520px); max-width: none; }
.hw6-card { padding: 14px 16px; gap: 6px; border-radius: 18px; }
.hw6-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.hw6-list li { border-bottom: 1px solid var(--line-2); min-width: 0; }
.hw6-list a, .hw6-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 14px; align-items: center; gap: 10px; height: 42px; color: var(--ink); text-decoration: none; }
.hw6-row { grid-template-columns: 26px minmax(0, 1fr); }
.hw6-list .itile { width: 26px; height: 26px; border-radius: 8px; }
.hw6-list .itile .lucide { width: 13px; height: 13px; }
.hw6-nm { font-size: .9rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw6-arr { width: 14px; height: 14px; color: var(--ink-4); transition: transform var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-std); }
.hw6-list a:hover .hw6-arr { color: var(--ink); transform: translateX(3px); }
.hw6-more { justify-self: start; margin-top: 8px; font-size: .9rem; }
@media (max-width: 760px) {
  .hw6-pf.pf { aspect-ratio: 4 / 5; }
  .hw6-pf .pf-stage > .hw6-card { width: 88cqi; }
  .hw6-list { grid-template-columns: minmax(0, 1fr); }
  .hw6-list li:nth-child(n + 7) { display: none; }
  .hw6-list a, .hw6-row { height: 40px; }
}

/* pinned (the same media as home.ts WHO_PIN): steps on the left change with the scroll; one card at a time on the right */
@media (min-width: 960px) and (min-height: 720px) and (prefers-reduced-motion: no-preference) {
  .js .hw6.section { padding-block: 0; }
  .js .hw6-grid { height: min(100%, 680px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(40px, 5vw, 88px); }
  .js .hw6-left .h2 { font-size: clamp(1.7rem, 1rem + 1.6vw, 2.5rem); }
  .js .hw6-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
  .js .hw6-go { position: relative; display: grid; gap: 4px; width: 100%; padding: 14px 0 14px 22px; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
  .js .hw6-go .hw6-t { font-size: 1.12rem; color: var(--ink-3); transition: color var(--dur-ui) var(--ease-std); }
  .js .hw6-go .hw6-l { font-size: .92rem; color: var(--ink-4); transition: color var(--dur-ui) var(--ease-std); }
  .js .hw6-step.on .hw6-t, .js .hw6-go:hover .hw6-t { color: var(--ink); }
  .js .hw6-step.on .hw6-l { color: var(--ink-2); }
  .js .hw6-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
  .js .hw6-bar { position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .js .hw6-bar i { display: block; width: 100%; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(0); }
  .js .hw6-step.done .hw6-bar i { transform: scaleY(1); }
  .js .hw6-step.on .hw6-bar i { transform: scaleY(var(--f, 0)); }
  .js .hw6-right { display: grid; gap: 0; }
  .js .hw6 .hw6-fold { grid-area: 1 / 1; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transition: opacity var(--dur-swap-out) var(--ease-in), transform var(--dur-swap-out) var(--ease-in), visibility 0s var(--dur-swap-out); }
  .js .hw6 .hw6-fold.on { pointer-events: auto; opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur-swap) var(--ease-out) 80ms, transform var(--dur-swap) var(--ease-out) 80ms, visibility 0s; }
  .js .hw6-fold .hw6-hd { display: none; }
  .js .hw6-pf.pf { width: 100%; max-width: 640px; justify-self: end; }
}
/* Sectioned pages (16 Oct, Devendra's review): guides and templates take the legal pages' layout (DocBody,
   DocSection), and guides, templates, the legal pages and the changelog share one type scale that stays small
   enough on a 360 px phone. */

/* --- one type scale ------------------------------------------------------------------------------------------ */
.doc {
  --fs-display: clamp(1.85rem, 1.35rem + 2vw, 3rem);
  --fs-h2: clamp(1.45rem, 1.2rem + 1.1vw, 2.2rem);
  --fs-lead: clamp(1rem, .96rem + .2vw, 1.1rem);
  --fs-sec: clamp(1.2rem, 1.06rem + .5vw, 1.45rem);
  --fs-h3: 1.0625rem;
  --fs-body: 1rem;
  --fs-small: .9375rem;
  --fs-meta: .8125rem;
}
.doc .lg-sec h2, .doc .cx-loglist h2, .doc .cx-prose h2, .doc .cx-h { font-size: var(--fs-sec); line-height: 1.25; letter-spacing: -0.024em; }
.doc .gd-steps h3, .doc .tf-steps h3, .doc .cx-panel h3, .doc .lg-cards h3, .doc .cx-prose h3, .doc .dc-h3 { font-size: var(--fs-h3); line-height: 1.3; }
.doc .cx-prose, .doc .lg-prose, .doc .gd-steps p, .doc .dc-p, .doc .gd-result, .doc .tf-abouttx p, .doc .pains li, .doc .gd-said q { font-size: var(--fs-body); line-height: 1.65; }
.doc .tf-abouttx p:first-child { font-size: var(--fs-body); }
.doc .lg-cards p, .doc .dc-lead, .doc .dc-fig figcaption, .doc .lib-mo figcaption p, .doc .tf-steps p, .doc .cx-hint, .doc .lib-says q, .doc .cx-said, .doc .lib-none, .doc .tf-ins b, .doc .roles-t .rr { font-size: var(--fs-small); line-height: 1.55; }
.doc .gd-table caption, .doc .tf-ins small, .doc .lib-says small, .doc .cx-rows small, .doc .cx-links small, .doc .lib-tm, .doc .cx-by, .doc .dc-facts li { font-size: var(--fs-meta); }
.doc .cx-prose table { font-size: var(--fs-small); }
.doc .lg-mtoc ol, .doc .lg-toc a, .doc .cx-card p, .doc .cx-for, .doc .lib-card p, .doc .tx p, .doc .lg-contact p { font-size: var(--fs-small); }
.doc .lg-stamp { font-size: var(--fs-meta); }
.doc .lg-contact h2 { font-size: var(--fs-sec); }
.doc .gd-table th, .doc .gd-table td { font-size: var(--fs-small); }
.doc .gd-table thead th { font-size: var(--fs-meta); }

/* --- the short version ---------------------------------------------------------------------------------------- */
.dc-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dc-facts li { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.dc-facts .lucide { width: 14px; height: 14px; color: var(--ink-3); }
.dc-plain .lg-cards { margin-top: 28px; }
.lg-cards.dc-cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lg-cards li.dc-note { gap: 14px; }
.lg-cards li.dc-note p { color: var(--ink); }
.dc-note .itile { background: var(--in-tint); color: var(--in); box-shadow: none; }
@media (max-width: 1100px) { .lg-cards.dc-cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .lg-cards.dc-cards4 { grid-template-columns: 1fr; }
  .lg-cards li.dc-note { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .lg-cards li.dc-note .itile { grid-row: auto; width: 32px; height: 32px; border-radius: 10px; }
}

/* --- sections ------------------------------------------------------------------------------------------------- */
.doc .lg-grid { grid-template-columns: 230px minmax(0, 820px); }
.dc-sec { padding-block: clamp(32px, 4vw, 48px); }
.dc-sec header { gap: 14px; }
.dc-num { font-family: var(--font-head); font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dc-lead { margin-top: 10px; color: var(--ink-2); max-width: 44em; }
.dc-body { margin-top: 22px; display: grid; gap: 22px; min-width: 0; }
.dc-body > .cx-prose { max-width: 42em; }
.dc-body .gd-steps li:first-child { padding-top: 0; }
.dc-h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -0.02em; }
.dc-body .dc-h3 + .dc-p { margin-top: -14px; color: var(--ink-2); max-width: 44em; }
.dc-body .gd-result { max-width: none; }
.dc-fig { margin: 4px 0 0; display: grid; gap: 12px; }
.dc-body .gd-fig { grid-area: auto; position: static; max-width: none; width: auto; justify-self: stretch; }
.dc-fig figcaption { color: var(--ink-2); max-width: 40em; }
.dc-pf.pf { box-shadow: inset 0 0 0 1px var(--line-a); }
.dc-body .cx-setgrid, .dc-body .tf-steps, .dc-body .lib-mos, .dc-body .lib-dgrid { margin-top: 0; }
.dc-body .lib-mos, .dc-body .lib-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.dc-body > .textlink { justify-self: start; }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 44em; }
.dc-list li { position: relative; padding-left: 22px; color: var(--ink); font-size: var(--fs-body); line-height: 1.6; }
.dc-list li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.dc-body .lib-mo > .pf { max-width: 100%; }
.dc-body .lib-saygrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.dc-body .lib-notgrid { grid-template-columns: 1fr; gap: 22px; }
.dc-body .lib-limits .cx-h { display: none; }
.dc-body .cx-limits { margin: 0; padding: 0; border: 0; }
.dc-body .cx-limits .pains { margin-top: 0; }
.dc-body .lib-pf .cx-draft { width: min(340px, 100%); margin: 0; }
.dc-body .cx-saygrid { grid-template-columns: 1fr; }
.dc-body .cx-chat { justify-items: stretch; }
.dc-body .cx-said { justify-self: end; }
@media (max-width: 1100px) { .doc .lg-grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; } }
@media (max-width: 760px) { .dc-body .lib-saygrid, .dc-body .lib-mos, .dc-body .lib-dgrid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .dc-sec header { gap: 12px; }
  .dc-body { margin-top: 18px; gap: 18px; }
  .dc-body .gd-steps li { padding-block: 16px; }
}

/* --- the changelog -------------------------------------------------------------------------------------------- */
.doc .cx-loglist article { gap: 12px; }
@media (max-width: 640px) { .doc .cx-loglist > li { padding-block: 24px; } }
/* Library cards as still pictures, and "Read next" as a rail (16 Oct, Devendra's review: a grid of cards should not
   animate; the next pieces are the index's own cards, in a carousel). */

/* a card's picture is its last frame and holds still: nothing inside it fades, moves, counts or blinks */
[data-still] *, [data-still] *::before, [data-still] *::after { animation: none !important; transition: none !important; }

/* "Read next": the rail of index cards, under the section's heading */
.cx-next .rail { padding-top: 28px; padding-bottom: 8px; }
.cx-next .rail > .ucard { width: clamp(260px, 26vw, 320px); }
.cx-next .rail > .ucard.all { justify-content: center; }
.cx-next .cx-libs { margin-top: 28px; }
@media (max-width: 560px) { .cx-next .rail > .ucard { width: min(82vw, 300px); } }
/* where guides and templates share a rail, a painting card's picture takes the guide card's shape (an inset 5:4
   frame), so every title starts at the same height */
.cx-next:has(.lib-vcard) .lib-card:not(.lib-vcard) .im { aspect-ratio: 5 / 4; margin: 10px 10px 0; border-radius: 16px; }
.cx-next:has(.lib-vcard) .lib-card:not(.lib-vcard) .im .itile { left: 14px; }
.cx-next:has(.lib-vcard) .lib-card:not(.lib-vcard) .tx { padding-top: 30px; }
@media (max-width: 640px) { .cx-next:has(.lib-vcard) .lib-card:not(.lib-vcard) .im { aspect-ratio: 1 / 1; } }
/* Round 7 (8 Nov 2026): the site moves to a US and European audience, photos replace the paintings, RecordOS blue
   becomes the accent, and the logo is Kivi, the stone on its blue tile, who moves where the page has a moment for it
   (src/scripts/kivi.js is the app's own animation, bundled by start.ts; window.rosKivi moves a mark between states).
   The accent is one colour, used for what you press and what is chosen: filled buttons, selected chips and tiles,
   ticks, step numbers, your own chat bubbles, kickers, progress and focus. Status colours (in, out, warn) stay. */
:root {
  --accent: #2B2FB2;
  --accent-light: #4652D6;
  --accent-deep: #1D1F86;
  --accent-tint: #ECEDFB;
  --fill: var(--accent);
  --focus: rgba(43, 47, 178, .22);
}

.kicker { color: var(--accent); }
:focus-visible { outline-color: var(--accent); }
.steps-bar i.on, .road .prog { background: var(--accent); }
.rs.v2-next::before { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-tint); }
.btn-ink:hover { background: var(--accent-deep); }

/* ---------- the logo: Kivi's tile in the header and footer, with a small hop on hover ---------- */
.logo svg { width: 26px; height: 26px; flex: none; transform-origin: 50% 90%; }
.logo:hover svg, .logo:focus-visible svg { animation: logo-hop 640ms var(--ease-out); }
@keyframes logo-hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(0) scale(1.12, .88); }
  45% { transform: translateY(-5px) rotate(-7deg) scale(.96, 1.06); }
  72% { transform: translateY(0) scale(1.08, .93); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* ---------- Kivi, alive (svg[data-kivi]: the svg is 1.3 times its data-size) ---------- */
svg[data-kivi] { display: block; overflow: visible; }
.ecta-kivi { width: 62px; height: 62px; margin: 0 0 14px -6px; }
.ecta-panel .ecta-kivi { margin-left: 0; }
.form-kivi { width: 26px; height: 26px; margin: -4px 0 -4px -2px; flex: none; }
.nf-kivi { width: 73px; height: 73px; margin: 0 0 18px -6px; }
.demo-kivi { width: 42px; height: 42px; margin-left: -4px; }

/* the thank-you hop: Kivi squashes, leaps, tilts and lands while its shadow stays on the ground */
.done-hop { position: relative; width: 78px; height: 78px; margin: 0 0 6px -8px; }
.done-kivi { display: block; width: 78px; height: 78px; transform-origin: 50% 88%; }
.done-kivi ellipse[fill="#131313"] { opacity: 0; }
.done-shadow { position: absolute; left: 50%; bottom: 5.5px; width: 41px; height: 4px; margin-left: -20.5px; border-radius: 50%; background: #131313; opacity: .14; }
.done-hop.go .done-kivi { animation: kivi-jump 1.3s both; }
.done-hop.go .done-shadow { animation: kivi-shade 1.3s both; }
@keyframes kivi-jump {
  0% { transform: translateY(0) rotate(0) scale(1, 1); animation-timing-function: ease-in-out; }
  14% { transform: translateY(0) rotate(0) scale(1.14, .84); animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  24% { transform: translateY(-10px) rotate(-2deg) scale(.9, 1.12); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  46% { transform: translateY(-50px) rotate(-8deg) scale(1, 1); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  70% { transform: translateY(-6px) rotate(0) scale(.94, 1.07); animation-timing-function: linear; }
  76% { transform: translateY(0) rotate(0) scale(1.16, .84); animation-timing-function: cubic-bezier(.3, .6, .4, 1); }
  86% { transform: translateY(-9px) rotate(2deg) scale(.97, 1.04); animation-timing-function: ease-in; }
  93% { transform: translateY(0) rotate(0) scale(1.05, .95); animation-timing-function: ease-out; }
  100% { transform: translateY(0) rotate(0) scale(1, 1); }
}
@keyframes kivi-shade {
  0%, 100% { transform: scale(1); opacity: .14; }
  14% { transform: scale(1.18, 1); opacity: .18; }
  46% { transform: scale(.45, .8); opacity: .05; }
  70% { transform: scale(.9, 1); opacity: .12; }
  76% { transform: scale(1.22, 1.1); opacity: .2; }
  86% { transform: scale(.8, 1); opacity: .1; }
  93% { transform: scale(1.06, 1); opacity: .16; }
}
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

@media (prefers-reduced-motion: reduce) {
  .logo:hover svg, .logo:focus-visible svg, .done-hop.go .done-kivi, .done-hop.go .done-shadow { animation: none; }
}

/* Kivi is drawn by kivi.js: without scripts every mark would be an empty box above its words, so none is shown */
html:not(.js) .done-hop, html:not(.js) svg[data-kivi] { display: none; }

/* ---------- the beta form and the walkthrough card (beta.astro, beta/thanks.astro) ---------- */
.steps-who { display: inline-flex; align-items: center; gap: 8px; }
/* the field only a bot fills (pages.ts isBot), out of sight and out of reach, as on the waitlist page */
.hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.wrap.demo-wrap { max-width: 760px; }
.small.out { color: var(--out); }
.demo-done { margin-top: 20px; }
.demo-done h3 { font-size: 1.25rem; margin: 14px 0 6px; }
.demo-done p { margin: 0; }

/* ---------- the home hero over a photo: a calm light backdrop behind the words, solid chips ---------- */
/* The paintings had a quiet sky behind the words; the photo has a street. A soft wash of the page's own light,
   strongest behind the text column, keeps every word readable and leaves the photo vivid at the sides and the foot. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 56% at 50% 44%, rgb(245 245 245 / .93) 0%, rgb(245 245 245 / .86) 48%, rgb(245 245 245 / .5) 74%, rgb(245 245 245 / 0) 100%);
}
.hero-sub { color: var(--ink); }
.chips-lab { color: var(--ink-2); font-weight: 500; text-shadow: none; }
.hero .gchip { background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-mid); color: var(--ink); font-weight: 500; }
.hero .gchip .ic { background: var(--accent-tint); color: var(--accent); }
.hero .gchip:hover { box-shadow: 0 0 0 1px var(--accent), 0 14px 26px -14px hsla(0, 0%, 20%, .45); }
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(rgb(245 245 245 / .9) 0%, rgb(245 245 245 / .84) 62%, rgb(245 245 245 / .35) 88%, rgb(245 245 245 / 0) 100%); }
}

/* ---------- home hero proportions ----------
   One idea under the headline, the composer as the action, and the chips exactly as wide as the composer and sized
   to tap. The hero is the whole first screen, and its photo starts lower with the street on the screen's bottom edge,
   so the words stand on its sky; its top edge melts into the page and its bottom edge is crisp, on the fold.
   On a phone the column covers the photo, so it fills the hero as before. */
.hero-sub { max-width: 32em; margin-top: 18px; text-wrap: balance; }
.hero .chips-lab { margin-top: 30px; font-size: .85rem; }
.hero .chips { width: min(640px, 100%); gap: 10px; margin-top: 12px; }
.hero .gchip { height: 50px; padding: 0 12px 0 9px; gap: 10px; border-radius: 14px; font-size: .95rem; }
.hero .gchip .ic { width: 32px; height: 32px; border-radius: 9px; }
.hero .gchip .ic .lucide { width: 17px; height: 17px; }
.hero { min-height: max(720px, 100svh); }
.hero .paint { top: 12%; bottom: 0; background-position: center bottom; -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%); }
.hero .fade-b { display: none; }
@media (max-width: 640px) {
  .hero .gchip { height: 48px; font-size: .9rem; }
  .hero .paint { top: 0; bottom: 0; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- the wordmark: "Record", the O as Kivi's outlined stone with its eyes, "S" (as on the demo page) ----------
   The footer word fills the window edge to edge (core.ts fitWord). The O sits in the line like a letter: the ring is
   the height of a capital, and its gaps follow the word's own tight tracking. Kivi glances now and then. */
.reveal .word { display: block; }
.ro { display: inline-block; height: .770em; width: .771em; vertical-align: -.019em; margin: 0 .045em 0 .047em; }
.reveal .word .ro { margin: 0 .012em 0 .016em; }
.ro svg, .reveal .word .ro svg { display: block; width: 100%; height: 100%; margin: 0; overflow: visible; }
.ro-eyes { transform-box: fill-box; transform-origin: center; animation: ro-look 7s ease-in-out infinite; }
@keyframes ro-look {
  0%, 28% { transform: none; }
  30% { transform: scaleY(.12); }
  32%, 50% { transform: none; }
  55%, 68% { transform: translate(4px, -1.5px); }
  70% { transform: translate(4px, -1.5px) scaleY(.12); }
  72%, 84% { transform: translate(4px, -1.5px); }
  89%, 100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ro-eyes { animation: none; } }

/* ---------- the headline ticker: every word gets a coloured tile, light tint and a deeper icon of the same hue ---------- */
.tk-ic.k-violet { background: #EEE8FC; color: #5B3CC4; }
.tk-ic.k-sky { background: #DDF0FB; color: #0A6A94; }
.tk-ic.k-orange { background: #FDE9D8; color: #A84E0E; }
.tk-ic.k-rose { background: #FCE4EC; color: #A82E58; }
.tk-ic.k-blue { background: var(--accent-tint); color: var(--accent); }
.tk-ic.k-teal { background: #D6F1EC; color: #0A7366; }
.tk-ic.k-plum { background: #F4E2F7; color: #873594; }
.tk-ic.k-slate { background: #E4EAF3; color: #3C5A80; }

/* ---------- the hero photo, alive (home.ts heroVideo): the same street as a silent loop, laid exactly where the photo
   is, so the poster and the first frame line up. Phones and reduced motion keep the still. ---------- */
.hero-video { position: absolute; left: 0; top: 12%; width: 100%; height: 88%; z-index: -2; object-fit: cover; object-position: center bottom; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%); }
@media (max-width: 640px), (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ---------- the OS button is Kivi (core.ts sets its face by the section on screen), lifted a little off the page ---------- */
.os-fab .host .fab-kivi { width: 60px; height: 60px; filter: drop-shadow(0 10px 16px rgba(43, 47, 178, .22)); }
