/* The app replica: Velma's Mac window rebuilt in HTML for the homepage demo. Tokens from app/Velma/Brand.swift.
   Not interactive: the figure carries a narrative aria-label and everything inside is aria-hidden. demo.js shows and
   hides parts with the hidden attribute; without it, everything shows and the scene reads in its final state. */
:root {
  --app-paper: #F3F2EE;
  --app-card: #FBFAF8;
  --app-well: #F5F4F0;
  --app-line: #E4E2DB;
  --app-ink: #1A1A17;
  --app-muted: #55534B;
  --app-faint: #A3A199;
  --app-seal: #7A1F2B;
  --app-select: #E6E4DE;
  --app-orange: #C2620F;
  --app-green: #2F7A3E;
  --app-shadow: 0 12px 28px -18px rgba(26, 26, 23, 0.22), 0 1px 3px rgba(26, 26, 23, 0.05);
  --app-ui: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --app-paper: #141412; --app-card: #1C1C19; --app-well: #222220; --app-line: #2E2D29; --app-ink: #ECEBE6; --app-muted: #9C9A90; --app-faint: #6E6C64; --app-seal: #C04A5D; --app-select: #2A2A26; --app-orange: #E08A3C; --app-green: #5DB06D; --app-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.25); }
}
:root[data-theme="dark"] { --app-paper: #141412; --app-card: #1C1C19; --app-well: #222220; --app-line: #2E2D29; --app-ink: #ECEBE6; --app-muted: #9C9A90; --app-faint: #6E6C64; --app-seal: #C04A5D; --app-select: #2A2A26; --app-orange: #E08A3C; --app-green: #5DB06D; --app-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.25); }

/* Window */
.app { margin: 0; font-family: var(--app-ui); font-size: 13.5px; line-height: 1.45; color: var(--app-ink); -webkit-user-select: none; user-select: none; }
.app-win { display: grid; grid-template-columns: 164px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 600px; background: var(--app-paper); border: 1px solid var(--app-line); border-radius: 14px; box-shadow: var(--app-shadow); overflow: hidden; }
.app svg.i { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Sidebar */
.app-side { display: flex; flex-direction: column; padding: 14px 10px 12px; }
.app-lights { display: flex; gap: 7px; padding: 0 6px 18px; }
.app-lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--app-line); }
.app-logo { display: flex; align-items: center; gap: 7px; padding: 0 6px 14px; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.app-logo svg { width: 22px; height: 22px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.app-nav span.on { background: var(--app-select); }
.app-nav em { margin-left: auto; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--app-seal); color: #FBFAF8; font-style: normal; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.app-nav small { margin-left: auto; color: var(--app-muted); font-size: 11.5px; }
.app-who { margin-top: auto; padding: 0 8px; font-size: 12.5px; font-weight: 600; }
.app-who small { display: block; font-weight: 400; color: var(--app-muted); font-size: 11px; }

/* Toolbar and the card the content sits on */
.app-main { display: grid; grid-template-rows: 48px minmax(0, 1fr); min-width: 0; min-height: 0; }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 4px; font-weight: 600; font-size: 14px; }
.app-bar .app-round { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--app-card); color: var(--app-muted); }
.app-bar .app-round:last-child { margin-left: auto; }
.app-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); margin: 0 10px 10px 0; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 14px; overflow: hidden; }
.app.live .app-panel:has(> .app-insp:not([hidden])), .app:not(.live) .app-panel:has(> .app-insp:not([data-until])) { grid-template-columns: minmax(0, 1fr) minmax(300px, 42%); }

/* Conversation: stays scrolled to the newest message, like the app. */
.app-chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.app-log { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 20px 22px 8px; overflow: hidden; }
.app-log > * { flex: none; }
.app-you { align-self: flex-end; max-width: calc(100% - 80px); padding: 8px 12px; background: var(--app-well); border: 1px solid var(--app-line); border-radius: 14px; }
.app-reply { line-height: 1.6; }
.app-reply p + p { margin-top: 8px; }
.app-reply strong { font-weight: 600; }
.app-steps { display: flex; align-items: center; gap: 7px; color: var(--app-muted); font-size: 12.5px; }
.app-steps .esc { color: var(--app-faint); margin-left: 4px; }
.app-steps .i-chev { width: 11px; height: 11px; }
.app-spin { width: 12px; height: 12px; flex: none; border: 1.5px solid var(--app-line); border-top-color: var(--app-muted); border-radius: 50%; animation: app-spin 0.8s linear infinite; }
@keyframes app-spin { to { transform: rotate(360deg); } }
.app-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-muted); }
.app-refs { display: flex; flex-direction: column; gap: 6px; }
.app-refs div { display: flex; flex-wrap: wrap; gap: 6px; }
.app-ref { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--app-line); border-radius: 6px; font-size: 12px; }
.app-ref .i { width: 12px; height: 12px; color: var(--app-muted); }

/* Composer */
.app-composer { display: flex; align-items: center; gap: 10px; padding: 8px 22px 14px; color: var(--app-muted); }
.app-field { flex: 1 1 0; width: 0; min-width: 0; height: 34px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--app-line); border-radius: 999px; background: var(--app-card); color: var(--app-faint); overflow: hidden; white-space: nowrap; }
/* Typing: ink text with a caret, the end of a long line kept in view; send turns oxblood while there's text. */
.app-field.typing { color: var(--app-ink); }
.app-field.typing::after { content: ""; flex: none; width: 1px; height: 1.15em; margin-left: 1px; background: var(--app-ink); animation: app-caret 1s steps(1) infinite; }
.app-field.long { justify-content: flex-end; }
@keyframes app-caret { 50% { opacity: 0; } }
.app-composer:has(.app-field.typing) .app-send { background: var(--app-seal); }
.app-send { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--app-faint); color: var(--app-card); transition: background 0.2s, transform 0.15s; }
.app-x { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; transition: transform 0.15s, background 0.15s; }
.app-send .i { width: 12px; height: 12px; stroke-width: 2.2; }

/* Draft card (ConversationView DraftCard) */
.app-draft { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 10px; padding: 12px 14px; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 12px; transition: border-color 0.25s, box-shadow 0.25s; }
.app-draft > .i { width: 17px; height: 17px; color: var(--app-seal); margin-top: 1px; }
.app-draft.sel { border-color: var(--app-seal); box-shadow: 0 0 0 1px var(--app-seal); }
.app-type { font-size: 11.5px; font-weight: 500; color: var(--app-muted); }
.app-draft b { display: block; margin-top: 3px; font-weight: 500; }
.app-draft p { margin-top: 2px; font-size: 12.5px; color: var(--app-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-badge { align-self: start; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; line-height: 18px; white-space: nowrap; color: var(--app-muted); background: color-mix(in srgb, var(--app-muted) 12%, transparent); }
.app-badge.review { color: var(--app-orange); background: color-mix(in srgb, var(--app-orange) 12%, transparent); }
.app-badge.done { color: var(--app-green); background: color-mix(in srgb, var(--app-green) 12%, transparent); }

/* Inspector: the draft review beside the chat (DraftReviewView) */
.app-insp { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; border-left: 1px solid var(--app-line); }
.app-insp-top { display: flex; justify-content: flex-end; padding: 10px 12px 0; color: var(--app-muted); }
.app-insp-body { padding: 8px 22px; overflow: hidden; }
.app-insp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; color: var(--app-muted); font-size: 12.5px; }
.app-insp-head .app-badge { margin-left: auto; align-self: center; }
.app-insp h4 { margin: 10px 0 16px; font-family: var(--app-ui); font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.app-why { padding: 10px 12px; background: var(--app-well); border: 1px solid var(--app-line); border-radius: 10px; }
.app-why .app-type { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.app-why .i { width: 12px; height: 12px; }
.app-fact { margin-top: 14px; }
.app-fact .app-type { margin-bottom: 3px; }
.app-fact del { color: var(--app-muted); }
.app-fact ins { text-decoration: none; background: color-mix(in srgb, var(--app-seal) 12%, transparent); border-radius: 3px; padding: 0 2px; }
.app-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--app-line); }
.app-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 7px; background: var(--app-select); font-size: 12.5px; white-space: nowrap; }
.app-btn.primary { background: var(--app-seal); color: #FBFAF8; font-weight: 500; }
.app-btn .i { width: 13px; height: 13px; }
.app-btn.done { background: none; color: var(--app-green); padding-inline: 4px; }

/* Email draft (EmailDraftCard): Velma writes it, the owner saves it to their own drafts. Nothing is sent. */
.app-mail { padding: 12px 14px; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 10px; }
.app-mail-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--app-muted); }
/* The status (Not saved, or In your drafts) sits on the right; only one of them shows at a time. */
.app-mail-head > span + span { margin-left: auto; font-weight: 400; }
.app-mail dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; margin: 10px 0 0; font-size: 12.5px; }
.app-mail dt { color: var(--app-muted); text-align: right; }
.app-mail dd { margin: 0; }
.app-mail .body { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--app-line); font-size: 12.5px; line-height: 1.55; }
.app-mail .body p + p { margin-top: 6px; }
.app-mail .app-actions { padding: 10px 0 0; border: 0; }

/* Open question (QuestionCard) */
.app-ask { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 10px; }
.app-ask > .i { color: var(--app-orange); width: 16px; height: 16px; }
.app-ask .app-type { font-weight: 600; }
.app-ask .answer { color: var(--app-seal); font-size: 12.5px; font-weight: 500; }
.app-ask p { grid-column: 2 / -1; }


/* What just appeared slides in; site.css drops all of this for reduced motion. */
.app .is-new { animation: app-in 0.45s cubic-bezier(.2, .9, .3, 1); }
@keyframes app-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .app .is-new, .app-spin { animation: none; } }

/* Narrow: the sidebar goes, as it does in a narrow app window, and the draft review covers the chat. */
@media (max-width: 860px) {
  .app-win { height: min(58vh, 520px); }
}
/* The sidebar folds away, as it can in the app: in a narrow window always, and while a draft is open beside the chat
   when there isn't room for both. */
@container (max-width: 560px) {
  .app-win { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .app-bar { padding-left: 10px; }
  .app-panel { margin-left: 10px; }
}
@container (max-width: 900px) {
  .app.live .app-win:has(.app-insp:not([hidden])), .app:not(.live) .app-win:has(.app-insp:not([data-until])) { grid-template-columns: minmax(0, 1fr); }
  .app.live .app-win:has(.app-insp:not([hidden])) .app-side, .app:not(.live) .app-win:has(.app-insp:not([data-until])) .app-side { display: none; }
  .app.live .app-win:has(.app-insp:not([hidden])) .app-bar, .app:not(.live) .app-win:has(.app-insp:not([data-until])) .app-bar { padding-left: 10px; }
  .app.live .app-win:has(.app-insp:not([hidden])) .app-panel, .app:not(.live) .app-win:has(.app-insp:not([data-until])) .app-panel { margin-left: 10px; }
}
@media (max-width: 600px) {
  .app { font-size: 12.5px; }
  .app-main { grid-template-rows: 40px minmax(0, 1fr); }
  .app.live .app-panel:has(> .app-insp:not([hidden])), .app:not(.live) .app-panel:has(> .app-insp:not([data-until])) { grid-template-columns: minmax(0, 1fr); }
  .app-insp { position: absolute; inset: 0; background: var(--app-card); border-left: 0; }
  .app-log { padding: 14px 14px 6px; gap: 10px; }
  .app-composer { padding: 6px 14px 10px; }
  .app-you { max-width: calc(100% - 40px); }
}

/* Homepage scenes: captions scroll past a window that stays put; only what's inside it changes. */
/* The window reaches past the page's column to the right, so it has room for the chat and the draft review side by
   side; the captions keep the column's left edge. */
.scene { width: min(100% + 240px, 100% + (100vw - 100%) / 2 - clamp(20px, 5vw, 40px)); display: grid; grid-template-columns: clamp(220px, 20vw, 300px) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); margin-top: clamp(32px, 4vw, 56px); }
.scene > .app { grid-column: 2; grid-row: 1; position: sticky; top: max(88px, calc(50vh - 300px)); align-self: start; container-type: inline-size; }
.beats { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.beats li { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.beats li:first-child { min-height: 90vh; justify-content: flex-start; padding-top: 56vh; }
/* Room after the last caption for its step to play out (demo.js) while the window stays in place. */
.beats li:last-child { padding-bottom: 70vh; }
.beats h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; line-height: 1.2; }
.beats p { margin-top: 12px; font-size: 18.5px; color: var(--muted); }
.scene.live .beats li { opacity: 0.3; transition: opacity 0.35s; }
.scene.live .beats li.on { opacity: 1; }
.app:not(.live) [data-until] { display: none; }
/* Flipped on desktop: the window on the left, reaching past the column to the left instead, captions on the right. */
@media (min-width: 861px) {
  .scene.flip { margin-left: calc(-1 * min(240px, (100vw - 100%) / 2 - clamp(20px, 5vw, 40px))); grid-template-columns: minmax(0, 1fr) clamp(220px, 20vw, 300px); }
  .scene.flip > .app { grid-column: 1; }
  .scene.flip .beats { grid-column: 2; }
}
.demo-end { margin-top: clamp(48px, 6vw, 80px); text-align: center; }
.demo-end .ex-big { font-family: var(--display); font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.demo-end .ex-why { margin: 14px auto 0; max-width: 560px; color: var(--muted); }
.demo-end .ex-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.demo-end .note { font-family: var(--display); font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  /* Phones: the window waits at the bottom of the screen and the captions scroll up past it. A step starts once its
     caption has come out from behind the window and can be read (demo.js), so the text leads and the app follows. */
  .scene { width: auto; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .beats { grid-row: 1; }
  /* Docked flush with the bottom on the section's own colour, so captions stay hidden until they're above the window
     (no text in the gap underneath or behind its rounded corners). */
  .scene > .app { grid-column: 1; grid-row: 2; top: auto; bottom: 0; z-index: 2; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--paper); }
  .tint-stone .scene > .app { background: var(--stone); }
  .scene > .app .app-win { height: clamp(260px, 60svh, 500px); }
  .beats li, .beats li:first-child { min-height: 0; justify-content: flex-start; padding: 0 0 38svh; }
  .beats li:first-child { padding-top: 8px; }
  /* Room for the last caption to clear the window while it's still waiting at the bottom. */
  .beats li:last-child { padding-bottom: 60svh; }
  .scene.live .beats li { opacity: 1; }
  .beats h3 { font-size: 22px; }
  .beats p { margin-top: 8px; font-size: 17px; }
}

/* How it works: one idea per row, text and a small piece of the app taking turns on each side. */
/* Far enough apart that only one row plays at a time. */
.how-rows { display: flex; flex-direction: column; gap: clamp(120px, 24vh, 240px); margin-top: clamp(48px, 6vw, 72px); }
.how-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.how-row.flip .how-text { order: 2; }
.how-text h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; line-height: 1.2; }
.how-text p { margin-top: 14px; font-size: 18.5px; color: var(--muted); }
.how-vis { width: 100%; max-width: 460px; justify-self: center; display: flex; flex-direction: column; gap: 10px; }
.how-vis .app-composer { padding: 4px 0 0; }
.app-conn .app-btn { color: var(--app-ink); font-weight: 400; }
@media (max-width: 860px) {
  .how-rows { gap: 96px; }
  .how-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .how-row.flip .how-text { order: 0; }
}
.app-draft.dim { opacity: 0.55; }
.app-meta { font-size: 11.5px; color: var(--app-muted); padding-left: 2px; }
.app-tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 10px 12px; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 10px; }
.app-tool small { grid-row: 2; color: var(--app-muted); font-size: 12px; }
.app-conn { grid-row: 1 / 3; grid-column: 2; display: flex; align-items: center; color: var(--app-green); font-size: 12px; font-weight: 500; }
.app-conn > span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.app-conn .i { width: 14px; height: 14px; }
/* An invitation, so a dashed edge instead of a card (docs/DESIGN.md). */
.app-tool.more { background: none; border-style: dashed; border-color: color-mix(in srgb, var(--app-line) 55%, var(--app-muted)); color: var(--app-muted); }
.app-tool.more b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--app-ink); }
.app-tool.more .i { width: 14px; height: 14px; color: var(--app-muted); }
.app-private { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--app-muted); }
.app-private .i { width: 12px; height: 12px; }
.app-quote { margin: 6px 0; padding-left: 10px; border-left: 2px solid var(--app-line); color: var(--app-muted); }
.app-under { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 26px; }
.app-under .app-private:first-child { margin-right: auto; }

/* Small plays: once a piece scrolls into view, demo.js steps it along. data-show="N" fades in at step N and keeps
   its place, so nothing below moves; data-at/-until swap in place; data-press="N" is a button being pressed. */
[data-play].live [data-show] { transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.2, .9, .3, 1); }
[data-play].live [data-show]:not(.on) { opacity: 0; transform: translateY(8px); }
[data-play].live .app-tool[data-show]:not(.on) { transform: translateX(16px); }
[data-play]:not(.live) [data-until] { display: none; }
/* A press: the button (or card) dips and a soft ring goes out from it, like a tap, before what it does happens. */
.app-btn { transition: transform 0.15s, filter 0.15s; }
.app-btn.pressed, .app-send.pressed, .app-x.pressed { transform: scale(0.9); filter: brightness(0.85); animation: app-press 0.6s ease-out; }
.app-x.pressed { background: var(--app-select); }
.app-draft.pressed { transform: scale(0.985); animation: app-press 0.6s ease-out; }
.app-draft { transition: border-color 0.25s, box-shadow 0.25s, transform 0.15s; }
@keyframes app-press { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--app-seal) 45%, transparent); } to { box-shadow: 0 0 0 10px transparent; } }
.app-start { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0 12%; }
.app-start svg { width: 44px; height: 44px; }
.app-start b { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.app-start p { color: var(--app-muted); font-size: 12.5px; }
.app-steps.open .i-chev { transform: rotate(90deg); }
.app-steps-list { display: flex; flex-direction: column; gap: 4px; margin-top: -8px; padding-left: 22px; color: var(--app-muted); font-size: 12.5px; }

/* Reading text in the security band: lighter than --vault-muted, which was too dim on the dark background. */
.vault-band { --vault-soft: color-mix(in srgb, var(--vault-fg) 75%, var(--vault-muted)); }
.vault-band .intro { color: var(--vault-soft); }

/* Security questions as an accordion: one open at a time (details name), on the heading's left edge. */
.vault-band .promises.acc { display: block; max-width: 860px; margin: 56px 0 0; border-top: 1px solid var(--vault-line); }
.vault-band .acc .promise { display: block; padding: 0; border-top: 0; border-bottom: 1px solid var(--vault-line); }
.vault-band .acc summary { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; align-items: start; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.vault-band .acc summary::-webkit-details-marker { display: none; }
/* Icon and chevron sit on the title's first line; site.css's mobile cards span the icon over two rows, undone here. */
.vault-band .acc .promise-icon, .vault-band .acc .acc-chev { grid-row: auto; margin: 0; height: 1.35em; display: flex; align-items: center; font-size: 18px; }
.vault-band .acc .promise-icon svg { width: 20px; height: 20px; }
.vault-band .acc h3 { font-size: 18px; line-height: 1.35; color: var(--vault-fg); }
.vault-band .acc .acc-chev { color: var(--vault-muted); transition: transform 0.2s; }
.vault-band .acc .promise[open] .acc-chev { transform: rotate(180deg); }
.vault-band .acc summary:hover .acc-chev { color: var(--vault-fg); }
.vault-band .acc p { padding: 0 32px 22px 38px; font-size: 16.5px; line-height: 1.6; color: var(--vault-soft); max-width: 720px; }
.vault-band .acc .promise[open] p { animation: app-in 0.3s cubic-bezier(.2, .9, .3, 1); }
@media (prefers-reduced-motion: reduce) { .vault-band .acc .promise[open] p { animation: none; } }
@media (max-width: 600px) {
  .vault-band .promises.acc { margin-top: 40px; }
  .vault-band .acc summary { gap: 12px; padding: 16px 0; }
  .vault-band .acc h3, .vault-band .acc .promise-icon, .vault-band .acc .acc-chev { font-size: 16.5px; }
  .vault-band .acc p { padding: 0 0 18px 34px; font-size: 15.5px; }
  /* The accordion's last line already closes the list; no second rule right under it. */
  .vault-band .promises.acc + .fact-line { border-top: 0; padding-top: 0; }
}

/* Everyone asks Sam: the person who knows, before the example. Questions stack up beside the text. */
.sam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sam .intro + .intro { margin-top: 14px; }
.sam-asks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-family: var(--display); font-size: 17px; }
.sam-asks li { max-width: 34ch; padding: 10px 16px; border-radius: 18px 18px 18px 6px; background: var(--card); border: 1px solid var(--line); }
.sam-asks li:nth-child(even) { margin-left: clamp(16px, 4vw, 56px); }
.sam-asks li:last-child { color: var(--muted); }
@media (max-width: 860px) { .sam { grid-template-columns: minmax(0, 1fr); } }

/* The demo ends on the two answers from the same numbers (site.css .ex-answers), then the line it proves. */
.demo-end .ex-lead { margin-top: 0; }
.demo-end .ex-answers { margin-inline: auto; }
.demo-end .ex-big { margin-top: clamp(56px, 7vw, 88px); }

/* What Velma does: the product in six plain lines, out of the example. */
.what-grid { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px); }
.what-grid h3 { margin-top: 14px; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.what-grid p { margin-top: 8px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.what-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--seal); background: color-mix(in srgb, var(--seal) 9%, transparent); }
.what-icon .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .what-grid { grid-template-columns: minmax(0, 1fr); } }

/* Today: the app's home page, as it looks on a Thursday morning (app/Velma/TodayView.swift). Static. */
.today-app { margin-top: clamp(40px, 5vw, 64px); container-type: inline-size; }
.today-app .app-win { height: auto; }
.td { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.td-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-muted); }
.td-hello b { display: block; margin-top: 4px; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.td-hello > span:last-child { display: block; margin-top: 2px; font-size: 15px; color: var(--app-muted); }
.td-dir { padding-left: 16px; border-left: 3px solid var(--app-seal); }
.td-dir p { margin-top: 6px; font-family: var(--display); font-size: 19px; line-height: 1.35; }
.td-mission { display: block; margin-top: 4px; color: var(--app-muted); }
.td-next { padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--app-seal) 4.5%, transparent); border: 1px solid color-mix(in srgb, var(--app-seal) 18%, transparent); }
.td-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-seal); }
.td-next b { display: block; margin-top: 8px; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.td-next p { margin-top: 4px; color: var(--app-muted); }
.td-act { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.td-act .app-btn { padding: 6px 14px; }
.td-link { color: var(--app-seal); font-size: 12.5px; }
.td-sec { display: flex; flex-direction: column; gap: 8px; }
.td-card { padding: 10px 14px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--app-card); display: flex; flex-direction: column; gap: 8px; }
.td-from { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.td-from .i { color: var(--app-muted); }
.td-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
.td-row > .i { color: var(--app-muted); }
.td-row b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-row div span { display: block; font-size: 12.5px; color: var(--app-muted); }
.td-chev { color: var(--app-faint); }
.td-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.td-metric { padding: 10px 14px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--app-card); display: flex; flex-direction: column; }
.td-metric span, .td-metric small { font-size: 12px; color: var(--app-muted); }
.td-metric b { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.td-note { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; }
.td-note > .i { margin-top: 2px; color: var(--app-muted); }
.td-note b { font-weight: 600; font-size: 12.5px; }
.td-note span { display: block; color: var(--app-muted); }
@container (max-width: 560px) { .td { padding: 18px 16px 20px; gap: 20px; } .td-hello b { font-size: 22px; } .td-dir p { font-size: 17px; } }

/* You decide: text and a still piece of the app, side by side. */
.decide-row .kicker { display: block; }
.decide-row h2 + .intro { margin-top: 18px; }
.decide-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.decide-points li { font-size: 17px; line-height: 1.5; color: var(--muted); }
.decide-points b { color: var(--ink); font-weight: 600; font-family: var(--display); }
.how-vis del { color: var(--app-muted); }
.how-vis ins { text-decoration: none; font-weight: 600; color: var(--app-ink); }

/* Not just bakeries: the same kind of question in other trades. */
.trades { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trades li { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.trades b { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.trades p { font-size: 16.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 860px) { .trades { grid-template-columns: minmax(0, 1fr); } }

/* Getting started: help from people, then the questions owners ask. */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-cta { margin-top: 28px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* The hero's changing words (hero.js): "Velma knows" stays put on its own line, the words below take turns. */
.rotor { display: inline-block; transition: width 0.42s cubic-bezier(0.4, 0, 0.2, 1); }
.rotor-word { display: inline-block; transition: opacity 0.26s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.rotor-word.out { opacity: 0; transform: translateY(-0.3em); }
.rotor-word.in { opacity: 0; transform: translateY(0.3em); transition: none; }
.rotor .h1-underline { clip-path: inset(0 -4% 0 0); transition: clip-path 0.6s cubic-bezier(0.6, 0, 0.2, 1); }
.rotor.swap .h1-underline { clip-path: inset(0 100% 0 0); transition-duration: 0.24s; }
/* The longest words ("konkurrentene dine.") need a touch less size to stay on one line on the narrowest phones. */
@media (max-width: 380px) { .hero-solo h1:has(.rotor) { font-size: 33px; } }
