/* Geist Sans, self-hosted (one variable file, 100–900). */
@font-face {
  font-family: 'Geist Sans';
  src: url('/fonts/Geist-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metrics-matched fallback so the swap costs no layout shift (from SupportWire app.css). */
@font-face {
  font-family: 'Geist Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 109.05%;
  ascent-override: 92.16%;
  descent-override: 27.05%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --type-hero-title: clamp(2.25rem, 3vw + 1rem, 3.25rem);
  --type-section-title: clamp(2rem, 2.5vw + 1rem, 2.5rem);
  --type-hero-subtitle: clamp(1.125rem, 1.0714rem + 0.2679vw, 1.3125rem);
  --type-body: 0.9375rem;
  --type-caption: 0.8125rem;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-signature: cubic-bezier(0.32, 0.72, 0, 1);
  --accent: oklch(.6522 .2135 37.98);

  /* Dark */
  --background: #000;
  --surface: oklch(0.2134 0 0);
  --surface-step: oklch(0.185 0 0);
  --foreground: oklch(0.97 0 0);
  --secondary-foreground: oklch(1 0 0 / 0.5);
  --faint-foreground: oklch(1 0 0 / 0.35);
  --border: oklch(1 0 0 / 0.1);
  --border-strong: oklch(1 0 0 / 0.18);
  --primary: oklch(1 0 0);
  --primary-foreground: oklch(0.145 0 0);
  /* Kosmica app window (mock exhibits) */
  --win-content: #1e1e1e;
  --win-sidebar: #333;
  --win-label: #d6d6d6;
  --win-secondary: #626262;
}
@media (prefers-color-scheme: light) {
  :root {
    --background: #f9f8f7;
    --surface: #fff;
    --surface-step: #f2f2f2;
    --foreground: oklch(0.145 0 0);
    --secondary-foreground: oklch(0 0 0 / 0.55);
    --faint-foreground: oklch(0 0 0 / 0.4);
    --border: oklch(0 0 0 / 0.1);
    --border-strong: oklch(0 0 0 / 0.18);
    --primary: oklch(0.145 0 0);
    --primary-foreground: #fff;
    --win-content: #fff;
    --win-sidebar: #f5f5f5;
    --win-label: #262626;
    --win-secondary: #8e8e8e;
  }
}

/* ponytail: one global colour transition so a system theme switch fades (~300ms).
   Elements with their own `transition` (buttons, stage) override it. */
* { box-sizing: border-box; margin: 0;
  transition: background-color 300ms var(--ease-standard), color 300ms var(--ease-standard), border-color 300ms var(--ease-standard); }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--background); color: var(--foreground);
  font: 400 var(--type-body)/1.5 'Geist Sans', 'Geist Fallback', system-ui, sans-serif;
  font-feature-settings: "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; font-synthesis: none; }
h2 { line-height: 1.1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--foreground); text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 60; }

.container { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.mark { display: block; width: 56px; aspect-ratio: 1; margin: 0 auto 20px; background: currentColor;
  -webkit-mask: url(/assets/k-logo.svg) center/contain no-repeat; mask: url(/assets/k-logo.svg) center/contain no-repeat; }
/* Hero K: three sticks stand parallel (TARS), then fold into the K. Lines are the logo's three strokes. */
.k { display: block; width: 56px; height: 56px; margin: 0 auto 20px; }
.k line { transform-box: fill-box; transform-origin: center; animation: k-form 1100ms var(--ease-signature) both; }
.k line:nth-child(1) { --from-x: 20.6px; --from-y: .18px; --from-r: 0deg; }
.k line:nth-child(2) { --from-x: 19.21px; --from-y: 19.12px; --from-r: -45deg; animation-delay: 120ms; }
.k line:nth-child(3) { --from-x: 14.65px; --from-y: -13.72px; --from-r: 38.97deg; animation-delay: 240ms; }
.k-nav line:nth-child(1) { animation-delay: 1000ms; } /* nav K folds in after ~1s */
.k-nav line:nth-child(2) { animation-delay: 1120ms; }
.k-nav line:nth-child(3) { animation-delay: 1240ms; }
@keyframes k-form { from { transform: translate(var(--from-x), var(--from-y)) rotate(var(--from-r)); } }
.sec.showcase { position: relative; min-height: 70vh; display: grid; place-items: center; border-top: 0; } /* clean canvas for screen recording */
.k-big { width: min(42vh, 60vw); height: min(42vh, 60vw); margin: 0; }
.k-big line { animation: k-form-loop 4s var(--ease-signature) infinite both; }
@keyframes k-form-loop { 0%, 100% { transform: translate(var(--from-x), var(--from-y)) rotate(var(--from-r)); } 35%, 85% { transform: none; } }
.small-mark { width: 28px; margin-bottom: 16px; }
.eyebrow, .sec .eyebrow { font-size: 13px; line-height: 1.5; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint-foreground); margin: 0 0 12px; }

/* Nav */
/* ponytail: cosmos.so-style fade header — sticky, no blur/border/scroll state; fade follows --background. */
.nav { position: sticky; top: 0; z-index: 50; height: 92px; pointer-events: none; }
.nav::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 168px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    var(--background) 0%, var(--background) 15%,
    color-mix(in srgb, var(--background) 92%, transparent) 26%,
    color-mix(in srgb, var(--background) 78%, transparent) 36%,
    color-mix(in srgb, var(--background) 60%, transparent) 46%,
    color-mix(in srgb, var(--background) 42%, transparent) 55%,
    color-mix(in srgb, var(--background) 26%, transparent) 64%,
    color-mix(in srgb, var(--background) 13%, transparent) 73%,
    color-mix(in srgb, var(--background) 5%, transparent) 82%,
    transparent 100%); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav .container > * { pointer-events: auto; }
@media (max-width: 639px) { .nav { height: 68px; } .nav::before { height: 112px; } }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--foreground); }
.brand .k { width: 20px; height: 20px; margin: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { border-radius: 999px; padding: .5rem .875rem; font-size: 12px; font-weight: 500; text-decoration: none;
  color: color-mix(in oklch, var(--foreground) 70%, transparent); }
.nav-link:hover { background: color-mix(in oklch, var(--foreground) 10%, transparent); color: var(--foreground); }
.nav .btn { height: 28px; padding: 0 12px; font-size: 12px; margin-left: 6px; }
@media (max-width: 639px) { .nav-link { display: none; } } /* ponytail: no hamburger, footer has the links */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
  font-size: 14px; font-weight: 500; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  color: var(--foreground); background: transparent; white-space: nowrap;
  transition: color 150ms var(--ease-signature), background-color 150ms var(--ease-signature), border-color 150ms var(--ease-signature), opacity 150ms var(--ease-signature), transform 150ms var(--ease-signature); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; border-radius: 999px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: color-mix(in oklch, var(--foreground) 5%, transparent); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }

/* Hero */
.hero { text-align: center; padding: 1.75rem 1rem 3.5rem; }
.hero h1, .wordmark { font-size: var(--type-hero-title); }
.hero-line { display: block; } /* one sentence per line, like SupportWire PageHero */
.lede { margin: 20px auto 0; max-width: 41rem; font-size: var(--type-hero-subtitle); line-height: 1.45; letter-spacing: -0.01em; color: var(--secondary-foreground); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.ctas.left { justify-content: flex-start; }

/* Word stagger (SupportWire PageHero). ponytail: hidden state only once JS adds
   .hero-stagger-visible, so the headline still shows without JS. */
.hero-stagger-word { display: inline-block; }
.hero-stagger-visible .hero-stagger-word {
  animation: hero-enter 500ms var(--ease-signature) both;
  animation-delay: calc(100ms + 50ms * var(--stagger, 0));
}
@keyframes hero-enter {
  from { opacity: 0; filter: blur(5px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.stage {
  position: relative; margin: 48px auto 0; max-width: 80rem; aspect-ratio: 1300 / 780; text-align: left; container-type: inline-size;
  border-radius: 1.85% / 3.08%; border: 1px solid var(--border); overflow: hidden; /* = the capture's 24pt corner, at any width */
  transition: opacity .2s, -webkit-mask-position .3s var(--ease-signature), mask-position .3s var(--ease-signature);
  /* ponytail: dissolve into the page, border included. Mask is 2x tall; the box shows a half-height window of it.
     Closed (y 50%): window = gradient 25-75% -> solid to 50% of box, fade 50-100%. Open (y 0): window = 0-50% -> fully solid, so the opened tile isn't dimmed. */
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 75%); mask-image: linear-gradient(to bottom, #000 50%, transparent 75%);
  -webkit-mask-size: 100% 200%; mask-size: 100% 200%;
  -webkit-mask-position: 0 50%; mask-position: 0 50%;
}
.stage.is-open { -webkit-mask-position: 0 0; mask-position: 0 0; }
/* the app's grid box in the 2600x1560 capture: x 524, y 164, w 2047 (px); rows 11cqw, gap 1.1cqw, like the app */
.tiles { position: absolute; left: 20.15%; top: 10.51%; width: 78.73%; display: flex; flex-wrap: wrap; gap: 1.1cqw; }
.tiles::after { content: ''; flex-grow: 1e4; } /* ponytail: eats the last row's slack so it stays natural, left-aligned */
.tile {
  height: 11cqw; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative;
  will-change: transform; transition: opacity .3s ease-out;
}
.tile img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; max-width: none;
  transition: transform .3s var(--ease-signature), border-radius .3s var(--ease-signature);
}
.win:not(.is-open) .tile:hover img { transform: scale(1.02); }
.win.is-open .tile:not([aria-pressed="true"]) { opacity: 0; transition: opacity .13s linear; }
.tile[aria-pressed="true"] { z-index: 3; cursor: zoom-out; }
.tile[aria-pressed="true"] img { border-radius: 12px; }
/* ponytail: the button box stays in its slot while the img flies, so the focus ring rides the img instead. */
.tile:focus-visible { outline: none; }
.tiles.is-in:not(.is-settled) .tile { animation: tile-pop .5s var(--ease-signature) var(--pop) both; }
@keyframes tile-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
.tile:focus-visible img { outline: 2px solid var(--foreground); outline-offset: 2px; }
.hint { margin-top: 12px; color: var(--faint-foreground); font-size: var(--type-caption); }

/* Sections */
.sec { padding-block: 3rem; border-top: 1px solid var(--border); }
.sec h2 { font-size: var(--type-section-title); }
.sec p { color: var(--secondary-foreground); }
.sec > p, .split > div > p { margin-top: 16px; max-width: 56ch; font-size: var(--type-hero-subtitle); line-height: 1.45; letter-spacing: -0.01em; }
.sec p .hi { color: var(--foreground); } /* two-tone ledes: the claim reads brighter */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* Exhibit panel: SupportWire-style frame around each mock */
.exhibit { margin-top: 40px; padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-step); }
.split .exhibit { margin-top: 0; }
.exhibit img { border-radius: 12px; }
.devices { display: flex; align-items: flex-end; gap: 12px; }
picture { display: contents; } /* the img stays the flex/abs item */
.devices .mac { flex: 1 1 0; min-width: 0; }
.devices .phone { width: 22%; flex: none; }

/* Speed + privacy: Apple-Safari-style bare composition, no exhibit frame */
.speed { text-align: left; }
.speed .eyebrow { font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--secondary-foreground); margin-bottom: 8px; }
.sec .display { font-size: clamp(2.75rem, 7vw, 6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.0; }
.combo { position: relative; max-width: 900px; margin: 56px auto 0; }
.combo img, .combo video { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px rgb(0 0 0 / .35); }
.combo .phone { position: absolute; width: 22%; right: -2%; bottom: -8%; border: 1px solid var(--border-strong); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.speed > p:last-child { max-width: 41rem; margin: 72px 0 0; }
@media (max-width: 639px) { .combo .phone { position: static; width: 45%; margin: 24px auto 0; } .speed > p:last-child { margin-top: 32px; } }

/* App mocks: the Kosmica window's own visual language */
.win { background: var(--win-content); color: var(--win-label); border-radius: 12px; padding: 24px;
  font: 400 13px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; letter-spacing: 0; }
.win img { border-radius: 6px; }
.win .row { display: flex; gap: 6px; }
.win .row img { flex: 1 1 0; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.glass { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--win-label) 8%, transparent); border: 1px solid color-mix(in srgb, var(--win-label) 10%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.fav { width: 18px; height: 18px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #82bcff, #2483ff); }
.win small { display: block; font-size: 11px; color: var(--win-secondary); }

/* 2. Open stage: always black, so glass is always light-on-dark */
.open-stage { --win-label: #d6d6d6; --win-secondary: #8e8e8e; background: #000; display: grid; justify-items: center; gap: 16px; padding: 32px 24px; }
.open-stage img { width: 78%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.link-cap { padding: 6px 14px 6px 8px; }
.link-cap b { font-weight: 600; }
.cap-open { margin-left: 8px; color: var(--win-secondary); }

/* 3. Search */
.search-field { height: 36px; padding: 0 14px; margin-bottom: 16px; color: var(--win-label); }
.search-field svg { color: var(--win-secondary); }

/* 4. What you can save: now vs coming soon */
.save { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.save li { border: 1px solid var(--border); border-radius: 12px; padding: 8px 8px 14px; }
.save .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.save .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
.save h3 { display: flex; align-items: center; gap: 8px; margin: 12px 4px 2px; font-size: 15px; }
.save p { margin: 0 4px; font-size: var(--type-caption); color: var(--secondary-foreground); }
.save .soon { opacity: .7; border-style: dashed; background: var(--surface-step); }
.save .soon .thumb { border: 1px dashed var(--border); color: var(--faint-foreground); }
.save svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.save .chip { --chip-400: var(--faint-foreground); --chip-300: var(--secondary-foreground); }
.save .link-cap { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px 4px 5px; font-size: 12px; color: #fff; background: rgb(0 0 0 / .45); }
.save .fav, .link-cap .fav { background: #fff url(/assets/link-fav.png) center / 75% no-repeat; border-radius: 4px; }
@media (max-width: 639px) { .save { grid-template-columns: 1fr 1fr; } }

/* 5. Selection bar */
.share-mock { display: grid; justify-items: center; gap: 16px; }
.share-mock .row { width: 100%; }
.share-mock img:not(.sel) { opacity: .4; }
.share-mock img.sel { outline: 2px solid #2483ff; outline-offset: 2px; }
.sel-bar { height: 40px; padding: 0 16px; }
.sel-bar span { color: var(--win-secondary); }

.cards, .grid { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 32px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards li, .grid li { background: var(--surface); border-radius: 12px; padding: 20px; }
.cards h3, .grid h3 { font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; }
.cards p, .grid p { margin-top: 6px; font-size: var(--type-body); }

/* Changelog (SupportWire /changelog, verbatim where it maps) */
.changelog { padding-bottom: 6rem; --type-card-title: 1.125rem; }
.hero .eyebrow { margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 1.25rem; padding-bottom: 0.875rem; margin-bottom: 3rem; border-bottom: 1px solid var(--border); }
.filter { position: relative; padding: 0 0 0.875rem; margin-bottom: -0.875rem; background: none; border: 0;
  font: inherit; font-size: var(--type-caption); font-weight: 500; color: var(--secondary-foreground); cursor: pointer;
  transition: color 150ms var(--ease-standard); }
.filter:hover, .filter.is-active { color: var(--foreground); }
.filter.is-active::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--foreground); }
.year-mark { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.year-num { font-size: var(--type-section-title); font-weight: 500; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--faint-foreground); }
.year-rule { flex: 1; height: 1px; background: var(--border); }
.month { margin-bottom: 4rem; }
.month-label { padding-bottom: 0.875rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); font-size: var(--type-card-title);
  font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--foreground); }
.spine { position: relative; list-style: none; padding: 0; }
.spine .row { position: relative; display: block; padding: 1.25rem 0 1.25rem 1.85rem; }
.rail { position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--border); }
/* Trim the rail so it starts and ends at a node. `of :not([hidden])` keeps it right while filtered. */
.spine-li:nth-child(1 of :not([hidden])) .rail { top: 1.65rem; }
.spine-li:nth-last-child(1 of :not([hidden])) .rail { bottom: auto; height: 1.65rem; }
.node { position: absolute; left: 0; top: 1.65rem; width: 7px; height: 7px; border-radius: 9999px;
  border: 1px solid var(--border-strong); background: var(--background);
  transition: background-color 150ms var(--ease-standard), border-color 150ms var(--ease-standard); }
.row:hover .node { border-color: var(--foreground); }
.row[data-latest] .node { background: var(--accent); border-color: var(--accent); }
.row-body { min-width: 0; }
.row-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; }
.row-date { flex-shrink: 0; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: var(--type-caption); font-variant-numeric: tabular-nums; color: var(--faint-foreground); }
.row-title { font-size: var(--type-card-title); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--foreground); }
.row-desc { margin-top: 0.5rem; max-width: 42rem; font-size: var(--type-body); line-height: 1.6; color: var(--secondary-foreground); }
.row-tags { margin-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.row-type { font-size: var(--type-caption); font-weight: 500; color: var(--faint-foreground); }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 9999px; padding: 0.125rem 0.625rem; font-size: var(--type-caption); font-weight: 500;
  background-color: color-mix(in srgb, var(--chip-400, var(--accent)) 12%, transparent); color: var(--chip-300, var(--accent)); }
.chip[data-hue="mac"] { --chip-400: #0094ff; --chip-300: #5ebdff; }
.chip[data-hue="iphone"] { --chip-400: #00b342; --chip-300: #5fd37f; }
.chip[data-hue="sync"] { --chip-400: #eac503; --chip-300: #f3d350; }
.chip[data-hue="intelligence"] { --chip-400: #9f6fff; --chip-300: #bfa0ff; }
.chip[data-hue="capture"] { --chip-400: #f54e00; --chip-300: #ff9467; }
.chip[data-hue="grid"] { --chip-400: #ea4ca4; --chip-300: #ff89c6; }
@media (prefers-color-scheme: light) { .chip { color: var(--chip-400, var(--accent)); } .chip[data-hue="sync"] { color: #a68a00; } }
.month.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-signature), transform 600ms var(--ease-signature); }
.month.scroll-reveal.scroll-revealed { opacity: 1; transform: none; }
@media (min-width: 768px) { .month { margin-bottom: 5rem; } }

footer { border-top: 1px solid var(--border); padding-block: 48px 64px; text-align: center; color: var(--faint-foreground); font-size: var(--type-caption); }
footer a { color: var(--secondary-foreground); text-decoration: none; }
footer a:hover { color: var(--foreground); }
footer .mark { color: var(--foreground); }

@media (min-width: 1024px) {
  .hero { padding: 3.25rem 1rem 5rem; }
  .sec { padding-block: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .hero-stagger-visible .hero-stagger-word { animation: none; }
  .k line { animation: none; }
}

/* ============================================================================
   GRADIENT TEXT REVEAL — verbatim from SupportWire app.css.
   A 300%-wide gradient slides across the text (background-position 100% → 0)
   and settles back on --foreground. An ::after overlay carries a backdrop
   blur masked to the same 105deg band on the same timing, so the band's
   leading edge stays sharp while the glyphs just behind it go hazy.
   ========================================================================== */
/* Setup: gradient clipped to text, parked at the "foreground" end */
.gradient-sweep {
	display: inline;
	position: relative;
	background-image: linear-gradient(
		in oklch 105deg,
		var(--foreground) 0%,
		var(--foreground) 34.5%,
		#82bcff 41%,
		#2483ff 45%,
		#ff66f4 50%,
		#ff3029 55%,
		#fe7b02 60%,
		var(--foreground) 68%,
		var(--foreground) 100%
	);
	background-size: 300% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Trigger: plays the sweep once */
.gradient-sweep.is-active {
	animation: gradient-sweep-kf 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	will-change: background-position;
}

/* Progressive blur: a frosted band riding the same gradient coordinates.
   --sweep-band is opaque just behind the colour band's leading edge (short
   ramp at 58–62%) and decays over the long tail (54% → 38%); --sweep-soft
   feathers the top and bottom so the overlay never reads as a rectangle. */
.gradient-sweep.is-active::after {
	content: '';
	position: absolute;
	inset: -0.24em -0.1em;
	pointer-events: none;
	-webkit-backdrop-filter: blur(0.09em);
	backdrop-filter: blur(0.09em);
	--sweep-band: linear-gradient(
		105deg,
		transparent 38%,
		rgb(0 0 0 / 0.9) 54%,
		rgb(0 0 0) 58%,
		transparent 62%
	);
	--sweep-soft: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
	-webkit-mask-image: var(--sweep-band), var(--sweep-soft);
	mask-image: var(--sweep-band), var(--sweep-soft);
	-webkit-mask-size: 300% 100%, 100% 100%;
	mask-size: 300% 100%, 100% 100%;
	-webkit-mask-position: 100% 0, 0 0;
	mask-position: 100% 0, 0 0;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
	animation: gradient-sweep-haze-kf 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
	will-change: mask-position;
}

/* A wrapped phrase makes the overlay's containing block the union of its line
   fragments, which desyncs it from the text. JS adds .no-haze in that case. */
.gradient-sweep.no-haze::after {
	content: none;
}

@keyframes gradient-sweep-kf {
	to {
		background-position: 0% 0;
	}
}

@keyframes gradient-sweep-haze-kf {
	to {
		-webkit-mask-position: 0% 0, 0 0;
		mask-position: 0% 0, 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gradient-sweep {
		background: none;
		-webkit-text-fill-color: var(--foreground);
		color: var(--foreground);
	}

	.gradient-sweep.is-active {
		animation: none;
	}

	.gradient-sweep::after,
	.gradient-sweep.is-active::after {
		content: none;
	}
}

/* Hero window mock (Kosmica for Mac) */
.stage.win { padding: 0; background: url(/assets/shell-dark.jpg) center / 100% 100% no-repeat; } /* real Kosmica window, grid blanked; tiles sit on top. ponytail: .win padding is for the small mocks */
@media (prefers-color-scheme: light) { .stage.win { background-image: url(/assets/shell-light.jpg); } }
.win svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Resurf-inspired: marquee, closing */
.marquee-track li { border: 1px solid var(--border); border-radius: 999px; padding: .25rem .75rem; font-size: 12px; font-weight: 500; color: var(--secondary-foreground); white-space: nowrap; }
.fine-print, .sec p.fine-print { margin: 12px auto 0; font-size: var(--type-caption); color: var(--secondary-foreground); text-align: center; }
.sec p.countdown { max-width: none; margin-top: 4px; }
.marquee-sec p.marquee-cap { margin: 0 auto 20px; text-align: center; font-size: var(--type-caption); color: var(--secondary-foreground); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: .5rem; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-25% - .125rem)); } } /* 4 copies: 3 must cover the widest viewport (~800px each) */
.sec.closing { text-align: center; padding-inline: 1rem; }
.sec.marquee-sec { padding-block: 2.5rem; }
.sec.closing h2 { font-size: var(--type-hero-title); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Resurf-inspired: trust strip, card vignettes */
.trust .combo { margin-bottom: 0; }
.sec p.trust-lines { margin-top: 72px; max-width: none; color: var(--foreground); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; }
.trust-lines .hero-line + .hero-line { margin-top: .35em; }
.grid .prop { display: flex; align-items: center; height: 28px; margin-bottom: 12px; color: var(--secondary-foreground); }
.prop kbd { font: 500 13px/1 system-ui, sans-serif; /* SF Pro draws ⌘ full size; SF Mono shrinks it */ padding: 5px 7px; border: 1px solid var(--border-strong); border-radius: 6px; }
.prop .tag { font-size: 12px; font-weight: 500; padding: 3px 9px; border: 1px solid var(--border-strong); border-radius: 999px; }
.prop .toggle { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--foreground); opacity: .85; }
.prop .toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--background); }
@media (max-width: 639px) { .sec p.trust-lines { margin-top: 32px; } }

/* Prose: one type scale for text pages (privacy, terms, ScatterKit) */
.prose { max-width: 42rem; padding-block: 4rem 6rem; }
.prose h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.65; letter-spacing: 0; color: var(--secondary-foreground); }
.prose p, .prose ul, .prose ol { margin: 1rem 0 0; }
.prose .lede { max-width: none; margin-top: 1.25rem; font-size: var(--type-hero-subtitle); line-height: 1.45; letter-spacing: -0.01em; color: var(--foreground); }
.prose strong, .prose em { color: var(--foreground); }
.prose h2 { margin: 2.5rem 0 .75rem; font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.prose h3 { margin: 1.75rem 0 .5rem; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.prose :is(h2, h3) + * { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .5rem; }
.prose a:not(.btn) { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.prose code { font: .9em/1.5 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--foreground); background: var(--surface-step); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.prose pre { margin: 1rem 0 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-step); }
.prose pre code { padding: 0; background: none; font-size: 13px; }
.table-wrap { margin-top: 1rem; overflow-x: auto; }
.prose table { border-collapse: collapse; font-size: .9375rem; color: var(--secondary-foreground); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
.prose th { color: var(--foreground); font-weight: 500; }

/* FAQ: native details, CSS-only chevron */
.faq-list { margin-top: 40px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 8px; height: 8px; border: solid var(--secondary-foreground); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: -4px 0 20px; max-width: 60ch; color: var(--secondary-foreground); line-height: 1.5; }
