/*
 * Proxframe website, shared design system (loop 3). Plain CSS, no dependencies.
 *
 * COMPONENTS AND CLASS NAMES (other pages: use these, add no inline style soup)
 *
 * Layout
 *   .wrap              page column, max 1120px, 16px gutters (32px from 720px up). Put inside a section.
 *   <section>          vertical rhythm is automatic (96px, 144px on desktop). .section-tight = half rhythm.
 *   .narrow            max-width 64ch block (copy). .lede = larger intro paragraph (max 56ch).
 *   .grid-2 / .grid-3  1 column on mobile, 2 / 3 columns from 800px. Gap 48px.
 *   .stack > *         vertical flow with 16px gaps (.stack-lg 32px).
 *   .band              full-bleed surface band (--surface) for one calm contrast moment.
 * Type
 *   h1 / .display      page title (display size). h2 section title. h3 item title. p body. .quiet = secondary text.
 *   .small             14px. .mono = monospace (use only for commands and versions). .num = tabular figures.
 *   .page-head         top block of a sub page: <header class="page-head wrap"><h1>..</h1><p class="lede">..</p></header>
 * Actions
 *   .btn .btn-primary  amber fill (the one primary per view).  .btn-quiet  surface with a hairline edge (the app's secondary).  .btn-text  plain text link action.
 *   .link              inline link with underline offset.
 * Surfaces
 *   .card              surface + 1px line + radius 16 + hover lift (use sparingly, never a wall of them).
 *   .frame             refined image frame (radius, hairline, soft shadow). Wrap an <img>; use .light-only/.dark-only to swap.
 *   .light-only / .dark-only   show an element in one theme only (works with system and toggle).
 * Terminal / code
 *   .term              calm terminal block: <div class="term"><div class="term-bar"><span class="term-title">Proxmox VE Shell</span>
 *                      <button class="copy" data-copy="TEXT">Copy</button></div><pre class="term-body"><code data-type>..</code></pre></div>
 *                      Spans inside code: .c-prompt, .c-env, .c-key (amber placeholder). data-type types it once on first view.
 *   code.inline        inline code chip.
 * Tags (sentence case, never uppercase)
 *   .tag  .tag-done (shipped)  .tag-now (we are here, amber)  .tag-soon (coming)
 * Forms
 *   .field > label + .input (text/email/select/textarea); .seg > label > input[type=radio] + span (segmented choice);
 *   .switch > span + input[type=checkbox][role=switch] (on/off); .field-error (message); .form-note[role=status] (result region).
 * Motion
 *   .rv                reveal once on view (rise 12px + fade). --d: 80ms style for stagger via data-d="1..4" (adds 80ms per step).
 *   Movement is transform and opacity only; colour, filter and shadow fade on hover and press. prefers-reduced-motion: opacity only, then nothing.
 * Demo embed
 *   .demo > button.demo-poster[data-demo-src="demo/index.html"] (img inside) -> script swaps in an iframe. .demo-full = Open full screen link.
 * Roadmap teaser pieces (home): .rm, .rm-line, .rm-stop (.is-done .is-now .is-next), see index.html.
 * Header/footer: copy the markup from index.html exactly. Nav current page is set by script (aria-current="page").
 * Theme: html[data-theme="light|dark"] set by script; without it the system preference applies.
 */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: #F5F5F6;
  --surface: #FFFFFF;
  --surface-2: #EAEAEC;      /* the app's surface-sunken */
  --text: #18181B;
  --quiet: #5F5F67;
  --line: #DCDCE0;
  --amber: #E8A23A;
  --amber-ink: #8A5400;      /* amber for text on ground, AA */
  --on-amber: #18181B;
  --ok: #2F7D4F;
  --shadow: 0 1px 2px rgb(24 24 27 / .06), 0 12px 32px -8px rgb(24 24 27 / .14), 0 40px 80px -24px rgb(24 24 27 / .16);
  --shadow-sm: 0 1px 2px rgb(24 24 27 / .06), 0 8px 20px -8px rgb(24 24 27 / .12);
  --term-bg: #18181B;
  --term-bar: #222226;
  --term-text: #EDEDEF;
  --term-quiet: #9A9AA3;
  --term-line: #2E2E33;
  --term-amber: #F0B04A;
  --focus: #2F6FD1;
  --danger: #C0392B;
  /* Controls share the app's tokens (packages/tokens), so they look and move the same. */
  --shadow-raised: 0 1px 2px rgb(24 24 27 / .06), 0 2px 8px rgb(24 24 27 / .05);
  --hover-wash: color-mix(in srgb, var(--text) 6%, transparent);
  --press-scale: .97;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-quick: 160ms;
  --duration-base: 240ms;
  --ease-spring-smooth: linear(0, 0.0162, 0.057, 0.1132, 0.1783, 0.2474, 0.317, 0.3849, 0.4497, 0.5102, 0.5662, 0.6172, 0.6635, 0.705, 0.7421, 0.7751, 0.8043, 0.83, 0.8526, 0.8724, 0.8897, 0.9048, 0.9179, 0.9293, 0.9391, 0.9476, 0.955, 0.9614, 0.9669, 0.9716, 0.9756, 0.9791, 0.9821, 0.9847, 0.9869, 0.9888, 0.9904, 0.9918, 0.993, 0.994, 1);
  --duration-spring-smooth: 324ms;
  --ease-spring-gentle: linear(0, 0.0137, 0.0507, 0.1049, 0.1715, 0.2459, 0.3246, 0.4046, 0.4836, 0.5595, 0.6312, 0.6975, 0.7579, 0.8119, 0.8596, 0.9009, 0.9362, 0.9657, 0.99, 1.0094, 1.0244, 1.0357, 1.0436, 1.0487, 1.0515, 1.0523, 1.0515, 1.0496, 1.0467, 1.0433, 1.0394, 1.0352, 1.0311, 1.0269, 1.023, 1.0192, 1.0158, 1.0126, 1.0098, 1.0073, 1);
  --duration-spring-gentle: 315ms;
  --ease-spring-snappy: linear(0, 0.0162, 0.0573, 0.1138, 0.1791, 0.2483, 0.3181, 0.3861, 0.4509, 0.5114, 0.5673, 0.6184, 0.6645, 0.706, 0.7431, 0.776, 0.8051, 0.8307, 0.8532, 0.8729, 0.8901, 0.9051, 0.9182, 0.9295, 0.9393, 0.9478, 0.9552, 0.9615, 0.967, 0.9717, 0.9757, 0.9792, 0.9822, 0.9847, 0.9869, 0.9888, 0.9905, 0.9918, 0.993, 0.994, 1);
  --duration-spring-snappy: 279ms;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --measure: 64ch;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #111113;
    --surface: #1B1B1E;
    --surface-2: #232327;
    --text: #EDEDEF;
    --quiet: #A0A0A8;
    --line: #36363B;
    --amber: #F0B04A;
    --amber-ink: #F0B04A;
    --ok: #5BBB82;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -8px rgb(0 0 0 / .55), 0 48px 96px -24px rgb(0 0 0 / .6);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 8px 20px -8px rgb(0 0 0 / .5);
    --term-bg: #0B0B0D;
    --term-bar: #161619;
    --term-line: #2A2A2F;
    --focus: #7FA8EE;
    --danger: #F07A68;
    --shadow-raised: 0 1px 2px rgb(0 0 0 / .4), 0 0 0 1px rgb(255 255 255 / .08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #111113;
  --surface: #1B1B1E;
  --surface-2: #232327;
  --text: #EDEDEF;
  --quiet: #A0A0A8;
  --line: #36363B;
  --amber: #F0B04A;
  --amber-ink: #F0B04A;
  --ok: #5BBB82;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -8px rgb(0 0 0 / .55), 0 48px 96px -24px rgb(0 0 0 / .6);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4), 0 8px 20px -8px rgb(0 0 0 / .5);
  --term-bg: #0B0B0D;
  --term-bar: #161619;
  --term-line: #2A2A2F;
  --focus: #7FA8EE;
  --danger: #F07A68;
  --shadow-raised: 0 1px 2px rgb(0 0 0 / .4), 0 0 0 1px rgb(255 255 255 / .08);
}

/* theme-specific media */
.dark-only { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .light-only { display: none !important; }
  :root:not([data-theme="light"]) .dark-only { display: revert !important; }
}
:root[data-theme="dark"] .light-only { display: none !important; }
:root[data-theme="dark"] .dark-only { display: revert !important; }
:root[data-theme="light"] .dark-only { display: none !important; }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; max-width: var(--measure); }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1, .display { font-size: clamp(2.5rem, 1.2rem + 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 640; }
h2 { font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3rem); line-height: 1.1; letter-spacing: -0.028em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.012em; }
.lede { font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.4375rem); line-height: 1.5; color: var(--quiet); max-width: 56ch; letter-spacing: -0.008em; }
.quiet { color: var(--quiet); }
.small { font-size: .875rem; line-height: 1.5; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
code.inline { font: .9em var(--mono); background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--text); color: var(--ground); padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top var(--duration-quick) var(--ease-standard); }
.skip:focus { top: 12px; }

/* layout */
.wrap { width: 100%; max-width: calc(1120px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
section { padding-block: 96px; }
@media (min-width: 900px) { section { padding-block: 144px; } }
section.section-tight { padding-block: 48px; }
@media (min-width: 900px) { section.section-tight { padding-block: 72px; } }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.narrow { max-width: var(--measure); }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.grid-2, .grid-3 { display: grid; gap: 48px; }
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.page-head { padding-top: 96px; padding-bottom: 48px; }
.page-head > * + * { margin-top: 24px; }
@media (min-width: 900px) { .page-head { padding-top: 144px; padding-bottom: 72px; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color var(--duration-base) var(--ease-standard); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark { width: 24px; height: 24px; }
.brand .word { width: 104px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.nav a { text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--quiet); padding: 8px 12px; border-radius: 999px; transition: color var(--duration-quick) var(--ease-standard), background var(--duration-quick) var(--ease-standard); }
.nav a:hover { color: var(--text); background: var(--hover-wash); }
.nav a[aria-current="page"] { color: var(--text); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--quiet); cursor: pointer; transition: color var(--duration-quick) var(--ease-standard), background var(--duration-quick) var(--ease-standard), transform var(--duration-spring-snappy) var(--ease-spring-snappy); }
.theme:hover { color: var(--text); background: var(--hover-wash); }
.theme:active { transform: scale(var(--press-scale)); }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
}
@media (max-width: 639px) {
  .site-header .brand .word { display: none !important; }
  .nav { margin-left: 0; gap: 0; }
  .nav a { padding: 8px 10px; }
  .header-end .btn { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 16px; font: 600 1rem/1 var(--font); letter-spacing: -0.005em; text-decoration: none; border: 0; cursor: pointer; position: relative; transition: transform var(--duration-spring-snappy) var(--ease-spring-snappy), background var(--duration-quick) var(--ease-standard), filter var(--duration-quick) var(--ease-standard), box-shadow var(--duration-quick) var(--ease-standard); }
.btn:active { transform: scale(var(--press-scale)); }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-primary:active { filter: brightness(.97); }
.btn-quiet { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: color-mix(in srgb, var(--text) 6%, var(--surface)); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: .9375rem; font-weight: 500; }
/* Busy: the label stays (nothing shifts) and three dots pulse, as in the app. */
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]:active { transform: none; }
.btn[aria-busy="true"] > .lbl { opacity: 0; }
.btn .dots { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 4px; }
.btn[aria-busy="true"] .dots { display: flex; }
.btn .dots i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; animation: busy-dot 1s var(--ease-standard) infinite; }
.btn .dots i:nth-child(2) { animation-delay: 140ms; }
.btn .dots i:nth-child(3) { animation-delay: 280ms; }
@keyframes busy-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.btn-text { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; text-decoration-thickness: 1.5px; transition: text-decoration-color var(--duration-quick) var(--ease-standard); }
.btn-text:hover { text-decoration-color: var(--text); }
.link, .btn-text { border-radius: 8px; }
.link { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color var(--duration-quick) var(--ease-standard); }
.link:hover { text-decoration-color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform var(--duration-spring-smooth) var(--ease-spring-smooth), box-shadow var(--duration-base) var(--ease-standard); }
a.card, .card.is-link { display: block; text-decoration: none; }
a.card:hover, .card.is-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.frame { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.frame img { width: 100%; }

/* terminal */
.term { background: var(--term-bg); color: var(--term-text); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--term-line), var(--shadow); overflow: hidden; }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 20px; background: var(--term-bar); border-bottom: 1px solid var(--term-line); }
.term-title { font-size: .875rem; color: var(--term-quiet); }
.term-body { margin: 0; padding: 28px 24px 32px; font: 400 clamp(.9375rem, .8rem + .6vw, 1.1875rem)/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 720px) { .term-body { padding: 40px 36px 44px; } }
.term-body code { font: inherit; }
.c-prompt { color: var(--term-quiet); user-select: none; }
.c-env { color: var(--term-quiet); }
.c-key { color: var(--term-amber); }
.caret { display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--term-amber); animation: blink 1.1s steps(1) infinite; }
.caret.is-off { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--term-line); background: transparent; color: var(--term-text); font: 500 .875rem/1 var(--font); cursor: pointer; transition: background var(--duration-quick) var(--ease-standard), transform var(--duration-spring-snappy) var(--ease-spring-snappy); }
.copy:hover { background: rgb(255 255 255 / .08); }
.copy:active { transform: scale(var(--press-scale)); }
.copy:focus-visible { outline-color: var(--term-amber); }
.copy .ok { display: none; color: var(--term-amber); }
.copy.is-done .ok { display: block; animation: pop var(--duration-spring-gentle) var(--ease-spring-gentle); }
.copy.is-done .ic { display: none; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; color: var(--quiet); background: var(--surface-2); }
.tag-done { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.tag-now { color: var(--on-amber); background: var(--amber); }
.tag-soon { color: var(--quiet); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

/* forms */
.field { display: grid; gap: 8px; }
.field > label, .field > .label, fieldset.field > legend { font-size: .9375rem; font-weight: 600; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: 1rem; outline: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--duration-quick) var(--ease-standard); }
.input::placeholder { color: var(--quiet); opacity: 1; }
.input:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--quiet) 35%, var(--line)); }
.input:focus, .input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent); }
.field-error { color: var(--danger); font-size: .875rem; min-height: 0; }
/* Segmented choice, as the app's Segmented: one raised pill (the thumb) slides to the
   new choice on the smooth spring and can be redirected mid-flight. Under Reduce Motion
   it crossfades in place instead. */
.seg { --n: 3; --pad: 4px; --gap: 4px; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: var(--gap); padding: var(--pad); border-radius: 12px; background: var(--surface-2); }
@supports not selector(:has(*)) {
  .seg input:checked + span { background: var(--surface); box-shadow: var(--shadow-raised); }
}
@supports selector(:has(*)) { .seg::before { content: ""; } }
.seg::before { position: absolute; top: var(--pad); bottom: var(--pad); left: var(--pad); width: calc((100% - 2 * var(--pad) - (var(--n) - 1) * var(--gap)) / var(--n)); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-raised); pointer-events: none; transform: translateX(calc(var(--at, 0) * (100% + var(--gap)))); transition: transform var(--duration-spring-smooth) var(--ease-spring-smooth); }
.seg:has(label:nth-child(2) input:checked) { --at: 1; }
.seg:has(label:nth-child(3) input:checked) { --at: 2; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 6px; border-radius: 8px; font-size: .9375rem; font-weight: 500; color: var(--quiet); text-align: center; transition: color var(--duration-quick) var(--ease-standard); }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
/* On/off choice, as the app's Switch: label first, the knob moves on the snappy spring,
   the track crossfades to amber. A native checkbox with role="switch". */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; cursor: default; font-size: .9375rem; font-weight: 500; }
.switch input { appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: default; transition: background var(--duration-quick) var(--ease-standard), box-shadow var(--duration-quick) var(--ease-standard); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-raised); transition: transform var(--duration-spring-snappy) var(--ease-spring-snappy); }
.switch input:checked { background: var(--amber); }
.switch input:checked::after { transform: translateX(16px); }
.form-note { font-size: .9375rem; color: var(--quiet); }
.form-note.is-shown { color: var(--text); }
.form-note[hidden] { display: none; }

/* demo embed */
.demo { position: relative; aspect-ratio: 16 / 10; }
.demo-poster { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.demo-poster img { width: 100%; height: 100%; object-fit: cover; }
.demo-poster .say { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; background: var(--text); color: var(--ground); padding: 12px 20px; border-radius: 999px; font: 600 .9375rem/1 var(--font); white-space: nowrap; transition: transform var(--duration-spring-smooth) var(--ease-spring-smooth); }
.demo-poster:hover .say { transform: scale(1.04); }
.demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--surface); }
.demo-full { margin-top: 16px; font-size: .9375rem; }

/* reveal: home hero and roadmap stops only (script adds html.js; without it content is simply visible) */
.js .rv { opacity: 0; transform: translateY(12px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity var(--duration-base) var(--ease-standard) calc(var(--step, 0) * 80ms), transform var(--duration-spring-smooth) var(--ease-spring-smooth) calc(var(--step, 0) * 80ms); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 64px; }
.site-footer .wrap { display: grid; gap: 24px; }
.site-footer .brand .mark { width: 20px; height: 20px; }
.site-footer .brand .word { display: block; width: 88px; }
.site-footer p { font-size: .875rem; color: var(--quiet); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9375rem; }
.footer-nav a { text-decoration: none; color: var(--quiet); }
.footer-nav a:hover { color: var(--text); }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } .site-footer p { grid-column: 1; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Home-specific ---- */
.hero { padding-top: 72px; padding-bottom: 96px; }
@media (min-width: 900px) { .hero { padding-top: 112px; padding-bottom: 144px; } }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 28px; }
.hero .actions { margin-top: 40px; }
.hero-shot { margin-top: 72px; }
@media (min-width: 900px) { .hero-shot { margin-top: 96px; } }

.install .term { margin-top: 48px; }
.facts { display: grid; gap: 24px; margin-top: 48px; }
.facts li { color: var(--quiet); font-size: 1rem; max-width: 36ch; }
.facts strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
.install-note { margin-top: 32px; }

.signup .card { padding: 24px; }
@media (min-width: 720px) { .signup .card { padding: 40px; } }
.signup form { display: grid; gap: 24px; }
.signup .btn { justify-self: start; }

.reasons { display: grid; gap: 0; }
.reason { padding-block: 40px; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.reason p { color: var(--quiet); }
@media (min-width: 800px) { .reasons { grid-template-columns: repeat(3, 1fr); gap: 48px; } .reason { padding-top: 32px; } }

/* roadmap teaser */
.rm { position: relative; margin-top: 64px; display: grid; gap: 32px; padding-left: 32px; }
.rm-line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); transform-origin: top; }
.rm-line::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.rm-stop { position: relative; }
.rm-stop::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 2px var(--line); }
.rm-stop.is-done::before { background: var(--text); box-shadow: none; }
.rm-stop.is-now::before { background: var(--amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 24%, transparent); }
.rm-stop h3 { font-size: 1.0625rem; }
.rm-stop p { color: var(--quiet); font-size: .9375rem; margin-top: 2px; }
.rm-stop .tag { margin-bottom: 8px; }
.rm-cta { margin-top: 48px; }
@media (min-width: 900px) {
  .rm { grid-template-columns: repeat(6, 1fr); gap: 24px; padding: 40px 0 0; }
  .rm-line { left: 8px; right: 8px; top: 8px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
  .rm-line::after { transform-origin: left; transform: scaleX(var(--fill, 0)); }
  .rm-stop { padding-top: 16px; }
  .rm-stop::before { left: 0; top: -40px; }
}
.js .rm-line::after { transition: transform 900ms var(--ease-standard); }
.js .rm.is-in { --fill: .54; }
@media (min-width: 900px) { .js .rm.is-in { --fill: .52; } }
.js .rm-line { background: var(--line); }
@media (min-width: 900px) { .rm-stop::before { top: -40px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .rv { transform: none; }
  .js .rv.is-in { transition: opacity var(--duration-quick) linear; }
  .js .rm-line::after { transition: none; }
  .caret { animation: none; }
  a.card:hover, .card.is-link:hover, .btn:active, .copy:active, .theme:active { transform: none; }
  .btn .dots i { animation: none; opacity: 1; }
  /* The segmented thumb crossfades in place: the old one fades, the chosen option gets its own. */
  .switch input::after { transition: none; }
  .seg::before { display: none; }
  .seg span { transition: color var(--duration-quick) var(--ease-standard), background var(--duration-quick) linear, box-shadow var(--duration-quick) linear; }
  .seg input:checked + span { background: var(--surface); box-shadow: var(--shadow-raised); }
}


/* Waiting-list honeypot: hidden from people and screen readers, bots fill it in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 800px) { .reasons-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .reasons-4 { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
