/* ==========================================================================
   Vela — website design system
   One stylesheet for every page. Mobile first; the site wears the same
   themes as the app (palettes from Vela/Models/BrowserTheme.swift), switched
   with the swatch button in the navigation.
   ========================================================================== */

:root {
  /* Deep Space — the default */
  --bg: #060a14;
  --bg-2: #0a1120;
  --bg-3: #0f182b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: rgba(255, 255, 255, 0.92);
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.5);
  --accent: #72ddf7;
  --accent-hi: #c4f2fd;
  --accent-ink: #06101c;
  --accent-rgb: 114, 221, 247;
  --glow: rgba(114, 221, 247, 0.3);
  --good: #4cd97f;
  --warn: #ffb340;
  --bad: #ff5a6a;
  --danger: #ff5a6a;

  /* The app's own colors for the device mockups */
  --app-bg: #080e1c;
  --app-surface: #101b2f;
  --app-surface-2: #172b42;
  --app-text: #edf4ff;
  --app-text-2: rgba(237, 244, 255, 0.6);

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --gutter: clamp(18px, 4.5vw, 48px);
  --max: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  color-scheme: dark;
}

/* ---- Themes (from the app) ---------------------------------------------- */
:root[data-theme="ocean"] {
  --bg: #050d19; --bg-2: #08142a; --bg-3: #0c1c34;
  --accent: #64d2ff; --accent-hi: #bfeaff; --accent-ink: #04121f; --accent-rgb: 100, 210, 255; --glow: rgba(100, 210, 255, 0.3);
  --app-bg: #06101e; --app-surface: #0a1628; --app-surface-2: #0f2035; --app-text: #e0f0ff;
}
:root[data-theme="forest"] {
  --bg: #040c06; --bg-2: #07130a; --bg-3: #0c1d10;
  --accent: #30d158; --accent-hi: #a8f0bb; --accent-ink: #03140a; --accent-rgb: 48, 209, 88; --glow: rgba(48, 209, 88, 0.26);
  --app-bg: #061208; --app-surface: #0a1a0d; --app-surface-2: #102515; --app-text: #d0ffd8;
}
:root[data-theme="midnight"] {
  --bg: #05050f; --bg-2: #0a0a1a; --bg-3: #111126;
  --accent: #bf5af2; --accent-hi: #e2b8fa; --accent-ink: #fff; --accent-rgb: 191, 90, 242; --glow: rgba(191, 90, 242, 0.28);
  --app-bg: #050510; --app-surface: #0d0d1a; --app-surface-2: #1a1a2e; --app-text: #e5e5ea;
}
:root[data-theme="sunset"] {
  --bg: #0e0606; --bg-2: #160a09; --bg-3: #1f0f0d;
  --accent: #ff6b35; --accent-hi: #ffc2a6; --accent-ink: #1a0802; --accent-rgb: 255, 107, 53; --glow: rgba(255, 107, 53, 0.28);
  --app-bg: #120808; --app-surface: #1a0a0a; --app-surface-2: #2a1010; --app-text: #ffe0d0;
}
:root[data-theme="graphite"] {
  --bg: #0b0f19; --bg-2: #0f1524; --bg-3: #151d30;
  --accent: #94a3b8; --accent-hi: #dbe3ee; --accent-ink: #0b0f19; --accent-rgb: 148, 163, 184; --glow: rgba(148, 163, 184, 0.24);
  --app-bg: #0f172a; --app-surface: #1e293b; --app-surface-2: #334155; --app-text: #f1f5f9;
}
:root[data-theme="light"],
:root[data-theme="sand"] {
  color-scheme: light;
  --bg: #fbfbfd; --bg-2: #f3f4f7; --bg-3: #e9ebf0;
  --surface: rgba(10, 20, 40, 0.035); --surface-2: rgba(10, 20, 40, 0.06);
  --line: rgba(10, 20, 40, 0.09); --line-2: rgba(10, 20, 40, 0.16);
  --text: rgba(10, 14, 22, 0.9); --text-2: rgba(10, 14, 22, 0.66); --text-3: rgba(10, 14, 22, 0.56);
  --accent: #007aff; --accent-hi: #0a5fc2; --accent-ink: #fff; --accent-rgb: 0, 122, 255; --glow: rgba(0, 122, 255, 0.16);
  --app-bg: #ffffff; --app-surface: #f5f5f7; --app-surface-2: #e8e8ed; --app-text: #1d1d1f; --app-text-2: rgba(29, 29, 31, 0.56);
  --good: #1f9d55; --warn: #b26b00; --bad: #d1243a; --danger: #c42a3c;
}
:root[data-theme="sand"] {
  --bg: #faf6ee; --bg-2: #f4eee2; --bg-3: #ebe2d0;
  --text: rgba(43, 34, 20, 0.92); --text-2: rgba(43, 34, 20, 0.68); --text-3: rgba(43, 34, 20, 0.58);
  --accent: #946a22; --accent-hi: #6f4e15; --accent-rgb: 148, 106, 34; --glow: rgba(200, 160, 80, 0.2);
  --app-bg: #faf5ed; --app-surface: #f5f0e8; --app-surface-2: #e8e0d0; --app-text: #3a3020; --app-text-2: rgba(58, 48, 32, 0.58);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* Keep `hidden` hidden even on elements the stylesheet gives a display. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
@media (min-width: 720px) { body { font-size: 17px; } }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(var(--accent-rgb), 0.5); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), 0.35); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.022em; line-height: 1.06; font-weight: 650; }
p { margin: 0; }
em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em, .display em { color: var(--accent); }
code, kbd, pre, .mono { font-family: var(--font-mono); }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.8em; height: 1.8em; padding: 0 0.5em;
  border-radius: 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface-2);
  color: var(--text); font-size: 0.8em; font-weight: 600; line-height: 1; vertical-align: 0.08em;
}
mark { background: rgba(var(--accent-rgb), 0.24); color: inherit; border-radius: 4px; padding: 0 0.1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-library { display: none; }

/* ---- Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding: clamp(72px, 12vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 90px) 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }

/* ---- Type ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11.5px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.center .eyebrow::before { display: none; }
.display { font-size: clamp(46px, 11vw, 120px); letter-spacing: -0.045em; line-height: 0.96; font-weight: 680; }
.h-section { font-size: clamp(36px, 6.4vw, 76px); letter-spacing: -0.035em; line-height: 1; }
.h-sub { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.025em; line-height: 1.1; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 36em; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-2); }
.fine { font-size: 13px; color: var(--text-3); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head.center { justify-items: center; }

/* ---- Buttons & chips ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--font-text); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--spring), background-color 0.2s, border-color 0.2s, box-shadow 0.3s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover { color: var(--accent-ink); background: var(--accent-hi); box-shadow: 0 14px 40px -10px var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: rgba(var(--accent-rgb), 0.55); background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); }
.btn-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 70%, transparent);
  font: 600 11px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--text-2); white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.chip .dot, .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); flex: none; }
.chip-accent { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); }
button.chip, a.chip { cursor: pointer; text-decoration: none; }
@media (pointer: coarse) { button.chip, a.chip { min-height: 40px; padding: 0 14px; } }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link:hover { color: var(--accent-hi); }
.text-link .icon { transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---- Navigation ---------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color 0.3s, border-color 0.3s, -webkit-backdrop-filter 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-solid {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 650 19px/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.6); }
.nav-links { display: none; margin-left: auto; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
/* Nine links: keep each on one line, and close ranks on narrower desktops. */
.nav-links a { white-space: nowrap; }
@media (min-width: 980px) and (max-width: 1119px) { .nav-links { gap: 0; } .nav-links a { padding: 8px 8px; font-size: 13.5px; } }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--spring);
}
.icon-btn:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon { width: 19px; height: 19px; }
.theme-dot { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 200deg, var(--accent), #ff6b9d, #ffb340, #30d158, var(--accent)); box-shadow: inset 0 0 0 2px var(--bg); }
.nav-download { display: none; }
.menu-btn .bars { width: 18px; height: 12px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.8px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn .bars::before { top: 2px; }
.menu-btn .bars::after { top: 9px; }
.menu-open .menu-btn .bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 5px; transform: rotate(-45deg); }
@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 8px; }
  .menu-btn { display: none; }
  .nav-download { display: inline-flex; }
}

/* Mobile menu sheet */
.sheet {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 12px) var(--gutter) 28px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.menu-open .sheet { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.sheet a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; border-bottom: 1px solid var(--line); font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.sheet a:not(.btn)::after { content: "→"; color: var(--text-3); font-size: 18px; }
.sheet a[aria-current="page"] { color: var(--accent); }
.sheet .btn { margin-top: 18px; }
.sheet .fine { margin-top: 10px; text-align: center; }
@media (min-width: 980px) { .sheet { display: none; } }

/* Theme picker */
.theme-pop {
  position: fixed; z-index: 60; top: calc(var(--nav-h) - 4px); right: var(--gutter); width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 16px; border-radius: 20px; border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.theme-pop.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.theme-pop h4 { font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch {
  display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: 14px; border: 1px solid transparent;
  background: none; cursor: pointer; font-size: 11.5px; color: var(--text-2); -webkit-tap-highlight-color: transparent;
}
.swatch:hover { background: var(--surface-2); }
.swatch[aria-pressed="true"] { border-color: rgba(var(--accent-rgb), 0.6); color: var(--text); background: var(--surface); }
.swatch i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 12px -4px rgba(0, 0, 0, 0.5); }
.sw-deepspace i { background: radial-gradient(circle at 70% 30%, #72ddf7 0 18%, #172b42 19% 55%, #080e1c 56%); }
.sw-ocean i { background: radial-gradient(circle at 70% 30%, #64d2ff 0 18%, #0f2035 19% 55%, #06101e 56%); }
.sw-forest i { background: radial-gradient(circle at 70% 30%, #30d158 0 18%, #102515 19% 55%, #061208 56%); }
.sw-midnight i { background: radial-gradient(circle at 70% 30%, #bf5af2 0 18%, #1a1a2e 19% 55%, #050510 56%); }
.sw-sunset i { background: radial-gradient(circle at 70% 30%, #ff6b35 0 18%, #2a1010 19% 55%, #120808 56%); }
.sw-graphite i { background: radial-gradient(circle at 70% 30%, #94a3b8 0 18%, #334155 19% 55%, #0f172a 56%); }
.sw-light i { background: radial-gradient(circle at 70% 30%, #007aff 0 18%, #e8e8ed 19% 55%, #ffffff 56%); }
.sw-sand i { background: radial-gradient(circle at 70% 30%, #c8a050 0 18%, #e8e0d0 19% 55%, #faf5ed 56%); }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--text-2); max-width: 22em; }
.footer h5 { margin: 0 0 12px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.footer-bottom a { color: var(--text-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .footer-brand { grid-column: auto; } }

/* The footer wears a glow of the theme's accent rising from below, and ends with the
   name set large across the page (added by vela.js). Where the whole footer fits on
   screen it waits fixed underneath, and the page above ends in a rounded sheet that
   lifts away to uncover it. */
.footer {
  position: relative; overflow: hidden; padding-bottom: 0;
  background:
    radial-gradient(120% 85% at 50% 122%, rgba(var(--accent-rgb), 0.2), transparent 62%),
    var(--bg-2);
  transition: background-color 0.5s var(--ease);
}
.footer-wordmark {
  margin: 54px 0 -0.1em; text-align: center; white-space: nowrap; user-select: none; -webkit-user-select: none; pointer-events: none;
  font: 700 17.2vw/0.84 var(--font-display); letter-spacing: -0.055em; color: var(--text);
}
.footer-wordmark em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.035em;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-hi) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
/* the footer reaches 48px up behind the sheet, so its rounded corners always show the footer */
html.has-footer-reveal .footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; padding-top: 104px; border-top: 0; visibility: hidden; }
/* vela.js switches it on near the end of the page only, so it can never show through
   a part of the page above that the browser has not drawn yet */
html.has-footer-reveal.footer-near .footer { visibility: visible; }
html.has-footer-reveal body > main {
  position: relative; z-index: 1; display: flow-root; overflow: clip;
  margin-bottom: calc(var(--footer-h, 48px) - 48px);
  background: var(--bg); border-radius: 0 0 44px 44px;
  box-shadow: 0 1px 0 var(--line), 0 36px 64px -28px rgba(0, 0, 0, 0.7);
  transition: background-color 0.5s var(--ease);
}
:root[data-theme="light"].has-footer-reveal body > main,
:root[data-theme="sand"].has-footer-reveal body > main { box-shadow: 0 1px 0 var(--line), 0 32px 60px -30px rgba(10, 20, 40, 0.3); }
@media (max-width: 720px) {
  .footer-wordmark { margin-top: 40px; }
  html.has-footer-reveal .footer { padding-top: 92px; }
  html.has-footer-reveal body > main { border-radius: 0 0 30px 30px; }
}

/* ---- Back to top: the nav's glass, bottom right, with a ring in the theme's accent
   that fills as you read down the page --------------------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  width: 56px; height: 56px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--text);
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 34px -14px rgba(0, 0, 0, 0.65), 0 0 28px rgba(var(--accent-rgb), 0.16);
  opacity: 0; transform: translateY(16px) scale(0.86); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.1), background-color 0.3s, color 0.3s, bottom 0.3s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
:root[data-theme="light"] .to-top,
:root[data-theme="sand"] .to-top { box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px -14px rgba(10, 20, 40, 0.32), 0 0 24px rgba(var(--accent-rgb), 0.12); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
/* a touch target well beyond the circle, reaching into the corner */
.to-top::after { content: ""; position: absolute; inset: -18px -22px -22px -18px; border-radius: 24px; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 1.8; }
.to-top-track { stroke: var(--line-2); }
.to-top-progress {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 163.4; stroke-dashoffset: calc(163.4px * (1 - var(--read, 0)));
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.7));
}
.to-top-arrow { position: relative; display: block; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2); }
.to-top:hover { color: var(--accent); background: color-mix(in srgb, var(--bg) 86%, transparent); }
.to-top:hover .to-top-arrow { transform: translateY(-3px); }
.to-top:active { transform: scale(0.94); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 50%; }
@media (max-width: 720px) {
  .to-top { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .to-top, .to-top-arrow { transition: none; } }

/* ---- Sample notifications (home page, assets/notes.js) ----------------------
   Shown the way macOS and iOS show them: a banner slides in under the navigation,
   stays a few seconds and leaves. Light glass on the light themes, dark on the
   others, with a breath of the theme's accent. Sized in points, like the real thing. */
.vnotes { position: fixed; top: calc(var(--nav-h) + 14px); right: 20px; width: 344px; z-index: 44; pointer-events: none; }
.vnote {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 22px; align-items: center; gap: 10px;
  padding: 10px 10px 11px 12px; border-radius: 22px; cursor: pointer;
  background: rgba(38, 38, 45, 0.9); color: #fff;
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.7), 0 0 30px -6px rgba(var(--accent-rgb), 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.24; text-align: left;
  transform: translateX(calc(100% + 40px)); opacity: 0; pointer-events: none;
  transition: transform 0.62s cubic-bezier(0.2, 0.9, 0.24, 1.06), opacity 0.32s ease;
  will-change: transform;
}
:root[data-theme="light"] .vnote,
:root[data-theme="sand"] .vnote {
  background: rgba(247, 247, 250, 0.93); color: #0b0b0f;
  box-shadow: 0 18px 36px -16px rgba(10, 20, 40, 0.34), 0 0 26px -8px rgba(var(--accent-rgb), 0.3), inset 0 0 0 0.5px rgba(10, 20, 40, 0.1);
}
.vnote.is-in { transform: none; opacity: 1; pointer-events: auto; }
.vnote-icon { width: 36px; height: 36px; border-radius: 8.5px; display: block; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.vnote-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vnote-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vnote-time { flex: none; font-size: 12px; opacity: 0.5; }
.vnote-body { margin-top: 1px; font-size: 13px; line-height: 1.25; opacity: 0.86; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vnote-close {
  appearance: none; -webkit-appearance: none; align-self: start; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: inherit; font: 400 15px/22px -apple-system, "Helvetica Neue", Arial, sans-serif;
  text-align: center; cursor: pointer; opacity: 0.75;
}
.vnote-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.26); }
:root[data-theme="light"] .vnote-close, :root[data-theme="sand"] .vnote-close { background: rgba(10, 20, 40, 0.08); }
:root[data-theme="light"] .vnote-close:hover, :root[data-theme="sand"] .vnote-close:hover { background: rgba(10, 20, 40, 0.16); }
@media (max-width: 720px) {
  .vnotes { top: calc(var(--nav-h) + 8px); right: 10px; width: min(352px, calc(100vw - 20px)); }
  .vnote { grid-template-columns: 36px minmax(0, 1fr) 26px; transform: translateY(-190%) scale(0.94); }
  .vnote-close { width: 26px; height: 26px; line-height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .vnotes { display: none; } }

/* ---- Reveal on scroll ---------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: 0.08s; }
  .js .reveal-d2 { transition-delay: 0.16s; }
  .js .reveal-d3 { transition-delay: 0.24s; }
}

/* ---- Glow & backdrop ----------------------------------------------------- */
.glow {
  position: absolute; pointer-events: none; border-radius: 50%; filter: blur(10px);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.32), rgba(var(--accent-rgb), 0.08) 55%, transparent 72%);
}
/* A soft light in the theme's accent that follows the pointer, behind everything. */
.cursor-light {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.08) 50%, transparent 74%);
  opacity: 0; transition: opacity 0.6s var(--ease); will-change: transform;
}
.cursor-light.is-on { opacity: 1; }
:root[data-theme="light"] .cursor-light,
:root[data-theme="sand"] .cursor-light { background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.05) 50%, transparent 74%); }
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 55% 35%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 75% 15%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 88% 60%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 45% 88%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 65% 55%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 20% 45%, rgba(255,255,255,0.4), transparent 60%);
  background-size: 340px 340px;
}
:root[data-theme="light"] .stars, :root[data-theme="sand"] .stars { opacity: 0; }

/* ---- Cards ---------------------------------------------------------------- */
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  padding: clamp(22px, 3vw, 32px); overflow: hidden;
}
.card h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { color: var(--text-2); }
.card .card-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; color: var(--accent); background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.22); }
.card .card-icon .icon { width: 22px; height: 22px; }
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 639px) {
  .grid-4 .card { padding: 18px 16px; }
  .grid-4 .card h3 { font-size: 16.5px; }
  .grid-4 .card p { font-size: 13.5px; line-height: 1.5; }
  .grid-4 .card .card-icon { width: 38px; height: 38px; margin-bottom: 14px; }
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { gap: 14px; } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Device mockups — drawn, not screenshots, so they stay sharp and follow
   the theme. Proportions follow the real devices.
   ========================================================================== */
.iphone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 9 / 19.5; flex: none;
  /* Corners relative to the phone itself (17% of its width), so they're right
     whether --w is in pixels or a share of the layout. */
  padding: calc(var(--w) * 0.035); border-radius: 17% / 7.85%;
  background: linear-gradient(145deg, #2c2d31, #0d0d10 30%, #19191c 70%, #2a2b2f);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 90px -30px rgba(0,0,0,0.75), 0 0 70px -10px var(--glow);
}
.iphone::before { /* side button */ content: ""; position: absolute; right: -2px; top: 26%; width: 3px; height: 13%; border-radius: 2px; background: #2c2d31; }
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 15% / 6.65%;
  background: var(--app-bg); color: var(--app-text); font-family: var(--font-text);
  container-type: inline-size;
}
.island-cut { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 31%; height: 3.9%; border-radius: 99px; background: #000; z-index: 5; }
.status { position: absolute; inset: 0 0 auto 0; height: 9%; display: flex; align-items: center; justify-content: space-between; padding: 0 8.5% 0 10%; font: 650 4.6cqw/1 var(--font-text); z-index: 4; }
.status i { display: inline-flex; gap: 1.4cqw; align-items: center; }
.status b { width: 7cqw; height: 3.4cqw; border-radius: 1.2cqw; border: 0.45cqw solid currentColor; opacity: 0.9; position: relative; }
.status b::after { content: ""; position: absolute; inset: 0.5cqw 1.6cqw 0.5cqw 0.5cqw; border-radius: 0.5cqw; background: currentColor; }

.watch {
  --w: 150px;
  position: relative; width: var(--w); aspect-ratio: 416 / 496; flex: none;
  padding: calc(var(--w) * 0.055); border-radius: 30% / 25.2%;
  background: linear-gradient(150deg, #3a3b40, #111114 35%, #1d1d21 70%, #3a3b40);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 30px 70px -24px rgba(0,0,0,0.8), 0 0 50px -12px var(--glow);
}
.watch::before { content: ""; position: absolute; right: -4.5%; top: 24%; width: 6%; height: 16%; border-radius: 4px; background: linear-gradient(90deg, #2a2b2f, #4a4b50); }
.watch::after { content: ""; position: absolute; right: -3%; top: 50%; width: 3.5%; height: 18%; border-radius: 3px; background: #2a2b2f; }
.watch .screen { border-radius: 27% / 22.2%; background: #000; color: #fff; }

.mac {
  position: relative; width: 100%; border-radius: 14px; overflow: hidden;
  background: var(--app-bg); color: var(--app-text);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 50px 120px -40px rgba(0,0,0,0.85), 0 0 120px -30px var(--glow);
  container-type: inline-size;
}
.mac-bar { display: flex; align-items: center; gap: 1.6cqw; height: 5.2cqw; min-height: 34px; padding: 0 1.8cqw; background: var(--app-surface); border-bottom: 1px solid rgba(127,127,127,0.18); }
.lights { display: inline-flex; gap: 0.8cqw; }
.lights i { width: 1.15cqw; height: 1.15cqw; min-width: 9px; min-height: 9px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.mac-tabs { display: flex; gap: 0.6cqw; margin-left: 1cqw; min-width: 0; }
.mac-tab { display: inline-flex; align-items: center; gap: 0.6cqw; height: 3cqw; min-height: 22px; padding: 0 1.2cqw; border-radius: 99px; font-size: max(10px, 1.15cqw); color: var(--app-text-2); white-space: nowrap; }
.mac-tab.is-on { background: var(--app-surface-2); color: var(--app-text); }
.mac-tab img, .mac-tab .fav { width: max(11px, 1.3cqw); height: max(11px, 1.3cqw); border-radius: 3px; }
.mac-url { flex: 1; display: flex; align-items: center; gap: 0.8cqw; justify-content: center; height: 3.2cqw; min-height: 24px; margin: 0 1cqw; border-radius: 99px; background: var(--app-bg); color: var(--app-text-2); font-size: max(10px, 1.2cqw); }
.mac-url .icon { width: max(10px, 1.2cqw); height: max(10px, 1.2cqw); color: var(--accent); }
.mac-spark { color: var(--accent); font-size: max(12px, 1.5cqw); }
.mac-body { position: relative; display: flex; }
.mac-page { flex: 1; min-width: 0; }

/* ---- App UI pieces (used inside the devices; scoped to the frames so
   their short class names never style other pages' content) ----------------------------- */
:where(.iphone, .mac, .watch) .art { position: absolute; inset: 0; }
:where(.iphone, .mac, .watch) .art-nebula { background:
  radial-gradient(60% 50% at 75% 30%, rgba(255, 120, 190, 0.55), transparent 60%),
  radial-gradient(55% 60% at 25% 65%, rgba(var(--accent-rgb), 0.55), transparent 62%),
  radial-gradient(40% 35% at 60% 75%, rgba(255, 190, 110, 0.35), transparent 60%),
  linear-gradient(160deg, #0b1230, #05060f 70%); }
:where(.iphone, .mac, .watch) .art-dusk { background:
  radial-gradient(70% 45% at 50% 100%, rgba(255, 150, 90, 0.75), transparent 70%),
  linear-gradient(180deg, #1b2450 0%, #6b3c74 52%, #f08a5d 82%, #ffd38a 100%); }
:where(.iphone, .mac, .watch) .art-dusk::after { content: ""; position: absolute; inset: 58% -10% 0; background:
  linear-gradient(170deg, transparent 49.5%, #1b1530 50%), linear-gradient(195deg, transparent 49.5%, #241b3d 50%); opacity: 0.95; }
:where(.iphone, .mac, .watch) .art-aurora { background:
  radial-gradient(80% 40% at 30% 30%, rgba(94, 224, 160, 0.6), transparent 60%),
  radial-gradient(60% 40% at 75% 25%, rgba(120, 140, 255, 0.5), transparent 62%),
  linear-gradient(180deg, #071425, #030810 75%); }
:where(.iphone, .mac, .watch) .art-ocean { background:
  radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
  linear-gradient(180deg, #8fd3f4 0%, #3d8fd1 45%, #0c4a7a 75%, #062a46 100%); }
:where(.iphone, .mac, .watch) .art-ocean::after { content: ""; position: absolute; inset: 55% 0 0; background: repeating-linear-gradient(175deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 9px); opacity: 0.6; }
:where(.iphone, .mac, .watch) .art-forest { background:
  radial-gradient(60% 50% at 70% 20%, rgba(255, 236, 170, 0.5), transparent 60%),
  linear-gradient(180deg, #9cc7a4 0%, #3f7a52 45%, #14331f 100%); }
:where(.iphone, .mac, .watch) .art-city { background:
  linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.5)),
  repeating-linear-gradient(90deg, #1a2238 0 10%, #121a2c 10% 17%, #202a44 17% 24%, #141b2e 24% 33%),
  linear-gradient(180deg, #2d3e7a, #f2a65a); background-size: 100% 100%, 100% 46%, 100% 100%; background-position: 0 0, 0 100%, 0 0; background-repeat: no-repeat; }

/* The bottom Island toolbar (iPhone) */
:where(.iphone, .mac, .watch) .isle {
  position: absolute; left: 4.5%; right: 4.5%; bottom: 3.2%; height: 6.8%; z-index: 6;
  display: flex; align-items: center; gap: 2.6cqw; padding: 0 3.6cqw;
  border-radius: 99px; background: color-mix(in srgb, var(--app-surface) 70%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 8px 24px -8px rgba(0,0,0,0.5);
  color: var(--app-text); font-size: 4.3cqw;
}
:where(.iphone, .mac, .watch) .isle .field { flex: 1; display: flex; align-items: center; gap: 1.6cqw; height: 66%; padding: 0 3cqw; border-radius: 99px; background: rgba(127,127,127,0.16); color: var(--app-text-2); font-size: 3.7cqw; white-space: nowrap; overflow: hidden; }
:where(.iphone, .mac, .watch) .isle .count { width: 5.4cqw; height: 5.4cqw; border: 0.45cqw solid currentColor; border-radius: 1.3cqw; display: grid; place-items: center; font: 700 3cqw/1 var(--font-text); }
:where(.iphone, .mac, .watch) .isle .dim { opacity: 0.45; }
:where(.iphone, .mac, .watch) .pill-mini {
  position: absolute; left: 50%; bottom: 3.6%; transform: translateX(-50%); z-index: 6;
  display: inline-flex; align-items: center; gap: 1.8cqw; height: 5.4%; padding: 0 4.4cqw 0 3.6cqw; border-radius: 99px;
  background: rgba(20, 22, 30, 0.38); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); color: #fff; font: 650 3.8cqw/1 var(--font-text); white-space: nowrap;
}
:where(.iphone, .mac, .watch) .pill-mini .fav { width: 4cqw; height: 4cqw; border-radius: 1cqw; background: linear-gradient(135deg, #ffb340, #ff6b35); }
:where(.iphone, .mac, .watch) .pill-mini::after { content: ""; position: absolute; left: 14%; bottom: 10%; height: 2px; width: 46%; border-radius: 2px; background: var(--accent); animation: load 3.6s var(--ease) infinite; }
@keyframes load { from { width: 6%; } 70% { width: 72%; opacity: 1; } to { width: 72%; opacity: 0; } }

/* Start page (Bento) */
:where(.iphone, .mac, .watch) .bento { position: absolute; inset: 9.5% 4.2% 0; display: flex; flex-direction: column; gap: 2.6cqw; }
:where(.iphone, .mac, .watch) .seg { display: grid; grid-template-columns: repeat(3, 1fr); height: 9.6cqw; padding: 1cqw; border-radius: 99px; background: var(--app-surface); box-shadow: inset 0 0 0 1px rgba(127,127,127,0.12); }
:where(.iphone, .mac, .watch) .seg span { display: grid; place-items: center; border-radius: 99px; font-size: 4.2cqw; color: var(--app-text-2); }
:where(.iphone, .mac, .watch) .seg span.is-on { background: var(--accent); color: var(--accent-ink); }
:where(.iphone, .mac, .watch) .cover {
  position: relative; height: 47cqw; border-radius: 6.4cqw; overflow: hidden; color: #fff;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.6);
}
:where(.iphone, .mac, .watch) .cover .art { transition: transform 9s linear; }
:where(.iphone, .mac, .watch) .cover.is-playing .art { transform: scale(1.08); }
:where(.iphone, .mac, .watch) .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.78) 92%); }
:where(.iphone, .mac, .watch) .cover-top { position: absolute; z-index: 2; top: 5cqw; left: 5.5cqw; right: 4.5cqw; display: flex; align-items: center; justify-content: space-between; }
:where(.iphone, .mac, .watch) .wordmark { font: 700 4.4cqw/1 var(--font-display); letter-spacing: 0.42em; }
:where(.iphone, .mac, .watch) .cover-next { width: 7.2cqw; height: 7.2cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.18); font-size: 3.6cqw; }
:where(.iphone, .mac, .watch) .cover-body { position: absolute; z-index: 2; left: 5.5cqw; right: 5.5cqw; bottom: 5.4cqw; display: grid; gap: 1.6cqw; }
:where(.iphone, .mac, .watch) .badge-ai { display: inline-flex; align-items: center; gap: 1.2cqw; width: max-content; height: 5.6cqw; padding: 0 2.6cqw; border-radius: 99px; font: 750 2.7cqw/1 var(--font-text); letter-spacing: 0.12em; color: #fff; background: linear-gradient(90deg, #6d5dfc, #8a6bff); }
:where(.iphone, .mac, .watch) .badge-ai .meta { font-weight: 600; letter-spacing: 0.08em; opacity: 0.8; margin-left: 1.4cqw; }
:where(.iphone, .mac, .watch) .cover h4 { font: 700 5cqw/1.12 var(--font-serif); font-style: normal; letter-spacing: -0.01em; }
:where(.iphone, .mac, .watch) .cover p { font-size: 3.3cqw; line-height: 1.35; color: rgba(255,255,255,0.86); }
:where(.iphone, .mac, .watch) .cover h4,
:where(.iphone, .mac, .watch) .cover p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
:where(.iphone, .mac, .watch) .cover-progress { position: absolute; z-index: 3; left: 0; bottom: 0; height: 0.8cqw; background: var(--accent); width: 0; }
:where(.iphone, .mac, .watch) .cover.is-playing .cover-progress { animation: progress var(--dwell, 9s) linear forwards; }
@keyframes progress { to { width: 100%; } }
:where(.iphone, .mac, .watch) .word { opacity: 1; transition: opacity 0.35s var(--ease); }
:where(.iphone, .mac, .watch) .is-revealing .word { opacity: 0; }
:where(.iphone, .mac, .watch) .is-revealing .word.on { opacity: 1; }
:where(.iphone, .mac, .watch) .search-row { display: flex; gap: 2cqw; }
:where(.iphone, .mac, .watch) .search-field { flex: 1; display: flex; align-items: center; gap: 2cqw; height: 11cqw; padding: 0 4cqw; border-radius: 99px; background: var(--app-surface); box-shadow: inset 0 0 0 1px rgba(127,127,127,0.14); color: var(--app-text-2); font-size: 3.7cqw; }
:where(.iphone, .mac, .watch) .round { width: 11cqw; height: 11cqw; border-radius: 50%; display: grid; place-items: center; background: var(--app-surface); box-shadow: inset 0 0 0 1px rgba(127,127,127,0.14); font-size: 4.4cqw; flex: none; }
:where(.iphone, .mac, .watch) .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; }
:where(.iphone, .mac, .watch) .tile { border-radius: 5.4cqw; background: var(--app-surface); box-shadow: inset 0 0 0 1px rgba(127,127,127,0.12); padding: 4cqw; min-height: 30cqw; display: flex; flex-direction: column; gap: 1cqw; }
:where(.iphone, .mac, .watch) .tile small { font-size: 3cqw; color: var(--app-text-2); }
:where(.iphone, .mac, .watch) .tile strong { font: 650 9cqw/1 var(--font-display); letter-spacing: -0.03em; }
:where(.iphone, .mac, .watch) .tile strong sup { font-size: 3.4cqw; letter-spacing: 0; vertical-align: 0.4em; margin-left: 0.6cqw; }
:where(.iphone, .mac, .watch) .tile .blocked { margin-top: auto; display: inline-flex; align-items: center; gap: 1cqw; width: max-content; padding: 1.2cqw 2.4cqw; border-radius: 99px; background: rgba(var(--accent-rgb), 0.14); color: var(--accent); font: 650 2.8cqw/1 var(--font-text); }
:where(.iphone, .mac, .watch) .tile .wx { display: flex; justify-content: space-between; align-items: flex-start; }
:where(.iphone, .mac, .watch) .tile .wx span { font-size: 6cqw; color: var(--accent); }
:where(.iphone, .mac, .watch) .tile-wide { grid-column: 1 / -1; min-height: auto; }
:where(.iphone, .mac, .watch) .tile-label { font: 700 2.8cqw/1 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--app-text-2); display: flex; align-items: center; gap: 1.4cqw; }
:where(.iphone, .mac, .watch) .tile-label b { color: var(--accent); }
:where(.iphone, .mac, .watch) .sites { display: flex; gap: 4cqw; margin-top: 2cqw; }
:where(.iphone, .mac, .watch) .sites span { display: grid; justify-items: center; gap: 1.2cqw; font-size: 2.6cqw; color: var(--app-text-2); }
:where(.iphone, .mac, .watch) .sites i { width: 11cqw; height: 11cqw; border-radius: 50%; display: grid; place-items: center; font: 700 4cqw/1 var(--font-display); font-style: normal; color: #fff; }

/* Tab manager */
:where(.iphone, .mac, .watch) .tabs-ui { position: absolute; inset: 9.5% 0 0; display: flex; flex-direction: column; }
:where(.iphone, .mac, .watch) .tabs-head { display: flex; align-items: center; gap: 2cqw; padding: 0 4.4cqw; height: 12cqw; }
:where(.iphone, .mac, .watch) .tabs-seg { display: flex; padding: 1cqw; border-radius: 99px; background: var(--app-surface); }
:where(.iphone, .mac, .watch) .tabs-seg span { padding: 1.8cqw 3.4cqw; border-radius: 99px; font: 650 3.4cqw/1 var(--font-text); color: var(--app-text-2); }
:where(.iphone, .mac, .watch) .tabs-seg span.is-on { background: var(--app-bg); color: var(--app-text); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
:where(.iphone, .mac, .watch) .tabs-seg span b { color: var(--accent); margin-left: 1cqw; }
:where(.iphone, .mac, .watch) .tabs-head .round { width: 9cqw; height: 9cqw; margin-left: auto; font-size: 3.8cqw; }
:where(.iphone, .mac, .watch) .tabs-head .round + .round { margin-left: 0; }
:where(.iphone, .mac, .watch) .tab-grid {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3.4cqw; padding: 3cqw 4.4cqw 20cqw; align-content: start;
  transition: gap 0.5s var(--ease);
}
:where(.iphone, .mac, .watch) .tab-card { border-radius: 4.6cqw; overflow: hidden; background: var(--app-surface); box-shadow: 0 6px 16px -8px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(127,127,127,0.14); aspect-ratio: 0.76; display: flex; flex-direction: column; transition: transform 0.6s var(--ease), margin 0.6s var(--ease); }
:where(.iphone, .mac, .watch) .tab-card.is-current { box-shadow: 0 0 0 0.8cqw var(--accent), 0 6px 16px -8px rgba(0,0,0,0.5); }
:where(.iphone, .mac, .watch) .tab-card header { display: flex; align-items: center; gap: 1.6cqw; padding: 2cqw 2.4cqw; font: 650 2.9cqw/1 var(--font-text); white-space: nowrap; overflow: hidden; }
:where(.iphone, .mac, .watch) .tab-card header i { width: 4.2cqw; height: 4.2cqw; border-radius: 1.2cqw; flex: none; }
:where(.iphone, .mac, .watch) .tab-card header em { font: inherit; font-style: normal; overflow: hidden; text-overflow: ellipsis; flex: 1; }
:where(.iphone, .mac, .watch) .tab-card header b { width: 5cqw; height: 5cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(127,127,127,0.18); font-size: 2.6cqw; color: var(--app-text-2); flex: none; }
:where(.iphone, .mac, .watch) .tab-card .page { position: relative; flex: 1; overflow: hidden; }
:where(.iphone, .mac, .watch) .tab-card .page .art { inset: 0; }
:where(.iphone, .mac, .watch) .tab-card .page::after { content: attr(data-title); position: absolute; left: 3cqw; right: 3cqw; bottom: 3cqw; color: #fff; font: 700 3.6cqw/1.1 var(--font-display); text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
:where(.iphone, .mac, .watch) .tabs-foot { position: absolute; left: 4.4cqw; right: 4.4cqw; bottom: 4.4cqw; display: flex; gap: 2.4cqw; z-index: 3; }
:where(.iphone, .mac, .watch) .tabs-foot span { height: 11cqw; border-radius: 99px; display: grid; place-items: center; font: 650 3.8cqw/1 var(--font-text); }
:where(.iphone, .mac, .watch) .tabs-foot .done { width: 26%; background: var(--app-surface); box-shadow: inset 0 0 0 1px rgba(127,127,127,0.18); }
:where(.iphone, .mac, .watch) .tabs-foot .new { flex: 1; background: var(--accent); color: var(--accent-ink); }
/* One column: the overlapping stack, leaning back */
:where(.iphone, .mac, .watch) .tab-grid.is-stack { grid-template-columns: 1fr; gap: 0; perspective: 600px; }
:where(.iphone, .mac, .watch) .tab-grid.is-stack .tab-card { aspect-ratio: 1.15; margin-bottom: -46cqw; transform: rotateX(-9deg); transform-origin: top center; }
:where(.iphone, .mac, .watch) .tab-grid.is-stack .tab-card:nth-child(n+5) { display: none; }

/* Watch brief */
:where(.iphone, .mac, .watch) .wbrief { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 9cqw 8cqw 8cqw; gap: 3.2cqw; }
:where(.iphone, .mac, .watch) .wbrief::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 15%, rgba(0,0,0,0.88) 68%); z-index: 1; }
:where(.iphone, .mac, .watch) .wbrief > * { position: relative; z-index: 2; }
:where(.iphone, .mac, .watch) .wtime { position: absolute; top: 7cqw; right: 9cqw; z-index: 2; font: 600 8cqw/1 var(--font-text); }
:where(.iphone, .mac, .watch) .wbadge { display: inline-flex; align-items: center; gap: 1.8cqw; width: max-content; height: 9cqw; padding: 0 3.6cqw; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 800 4.4cqw/1 var(--font-text); letter-spacing: 0.1em; }
:where(.iphone, .mac, .watch) .wbrief h5 { margin: 0; font: 650 7.8cqw/1.18 var(--font-text); letter-spacing: -0.01em; }
:where(.iphone, .mac, .watch) .wbrief small { font-size: 5.6cqw; color: rgba(255,255,255,0.72); }
:where(.iphone, .mac, .watch) .wsegs { display: flex; gap: 1.8cqw; }
:where(.iphone, .mac, .watch) .wsegs i { flex: 1; height: 1.4cqw; border-radius: 1cqw; background: rgba(255,255,255,0.26); }
:where(.iphone, .mac, .watch) .wsegs i.on { background: #fff; }

/* Page mock (an article in the browser) */
:where(.iphone, .mac, .watch) .article { position: absolute; inset: 0; overflow: hidden; background: #f6f2ea; color: #1f1a14; }
:where(.iphone, .mac, .watch) .article .art { position: relative; height: 46%; inset: auto; }
:where(.iphone, .mac, .watch) .article .body { padding: 6cqw; display: grid; gap: 3cqw; }
:where(.iphone, .mac, .watch) .article .kicker { font: 700 2.8cqw/1 var(--font-mono); letter-spacing: 0.14em; color: #b0532c; }
:where(.iphone, .mac, .watch) .article h4 { font: 700 7.6cqw/1.05 var(--font-serif); letter-spacing: -0.02em; }
:where(.iphone, .mac, .watch) .article p { font: 3.6cqw/1.55 var(--font-serif); color: #4a4036; }
:where(.iphone, .mac, .watch) .article .lines i { display: block; height: 2.2cqw; border-radius: 2px; background: rgba(31,26,20,0.12); margin-top: 2.6cqw; }
:where(.iphone, .mac, .watch) .article .lines i:nth-child(2) { width: 88%; } :where(.iphone, .mac, .watch) .article .lines i:nth-child(3) { width: 94%; } :where(.iphone, .mac, .watch) .article .lines i:nth-child(4) { width: 62%; }

/* AI sidebar (Mac) */
:where(.iphone, .mac, .watch) .ai-side { width: 34%; flex: none; border-left: 1px solid rgba(127,127,127,0.18); background: var(--app-surface); display: flex; flex-direction: column; padding: 1.8cqw; gap: 1.4cqw; font-size: max(10px, 1.2cqw); }
:where(.iphone, .mac, .watch) .ai-side header { display: flex; align-items: center; justify-content: space-between; font-weight: 650; }
:where(.iphone, .mac, .watch) .ai-side header span { color: var(--accent); }
:where(.iphone, .mac, .watch) .bubble { padding: 1.2cqw 1.5cqw; border-radius: 1.4cqw; line-height: 1.45; }
:where(.iphone, .mac, .watch) .bubble.me { align-self: flex-end; max-width: 85%; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 0.4cqw; }
:where(.iphone, .mac, .watch) .bubble.ai { max-width: 92%; background: var(--app-surface-2); border-bottom-left-radius: 0.4cqw; }
:where(.iphone, .mac, .watch) .bubble ul { margin: 0.6cqw 0 0; padding-left: 1.6cqw; }
:where(.iphone, .mac, .watch) .ai-state { display: inline-flex; align-items: center; gap: 0.8cqw; color: var(--good); font-weight: 600; }
:where(.iphone, .mac, .watch) .composer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; height: 3.6cqw; min-height: 26px; padding: 0 1.4cqw; border-radius: 99px; background: var(--app-bg); color: var(--app-text-2); }
:where(.iphone, .mac, .watch) .composer b { width: 2.4cqw; height: 2.4cqw; min-width: 18px; min-height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }

/* Desktop start page inside the Mac window */
:where(.iphone, .mac, .watch) .desk { padding: 2.6cqw 3.2cqw 3.4cqw; display: grid; gap: 1.8cqw; }
:where(.iphone, .mac, .watch) .desk .cover { height: 25cqw; border-radius: 2.2cqw; }
:where(.iphone, .mac, .watch) .desk .cover-top { top: 2.2cqw; left: 2.6cqw; right: 2.2cqw; }
:where(.iphone, .mac, .watch) .desk .wordmark { font-size: 1.7cqw; }
:where(.iphone, .mac, .watch) .desk .cover-next { width: 3cqw; height: 3cqw; font-size: 1.4cqw; }
:where(.iphone, .mac, .watch) .desk .cover-body { left: 2.6cqw; right: 40%; bottom: 2.4cqw; gap: 0.8cqw; }
:where(.iphone, .mac, .watch) .desk .badge-ai { height: 2.2cqw; padding: 0 1cqw; font-size: 1.05cqw; gap: 0.5cqw; }
:where(.iphone, .mac, .watch) .desk .badge-ai .meta { margin-left: 0.6cqw; }
:where(.iphone, .mac, .watch) .desk .cover h4 { font-size: 2.3cqw; }
:where(.iphone, .mac, .watch) .desk .cover p { font-size: 1.25cqw; }
:where(.iphone, .mac, .watch) .desk .cover-progress { height: 0.3cqw; }
:where(.iphone, .mac, .watch) .desk .search-field { height: 4cqw; font-size: 1.35cqw; padding: 0 1.6cqw; gap: 0.8cqw; }
:where(.iphone, .mac, .watch) .desk .round { width: 4cqw; height: 4cqw; font-size: 1.6cqw; }
:where(.iphone, .mac, .watch) .desk .search-row { gap: 0.8cqw; }
:where(.iphone, .mac, .watch) .desk .tiles { grid-template-columns: 1fr 1fr 1.3fr 1.3fr; gap: 1.2cqw; }
:where(.iphone, .mac, .watch) .desk .tile { border-radius: 1.8cqw; padding: 1.5cqw; min-height: 11cqw; gap: 0.4cqw; }
:where(.iphone, .mac, .watch) .desk .tile small { font-size: 1.1cqw; }
:where(.iphone, .mac, .watch) .desk .tile strong { font-size: 3.2cqw; }
:where(.iphone, .mac, .watch) .desk .tile strong sup { font-size: 1.2cqw; }
:where(.iphone, .mac, .watch) .desk .tile .blocked { font-size: 1.05cqw; padding: 0.5cqw 0.9cqw; gap: 0.4cqw; }
:where(.iphone, .mac, .watch) .desk .tile .wx span { font-size: 2.2cqw; }
:where(.iphone, .mac, .watch) .desk .tile-label { font-size: 1.05cqw; gap: 0.5cqw; }
:where(.iphone, .mac, .watch) .desk .sites { gap: 1.4cqw; margin-top: 0.8cqw; }
:where(.iphone, .mac, .watch) .desk .sites i { width: 4cqw; height: 4cqw; font-size: 1.5cqw; }
:where(.iphone, .mac, .watch) .desk .sites span { font-size: 1cqw; gap: 0.4cqw; }
:where(.iphone, .mac, .watch) .desk .news { display: grid; gap: 0.8cqw; margin-top: 0.6cqw; }
:where(.iphone, .mac, .watch) .desk .news span { display: flex; gap: 0.9cqw; align-items: center; font-size: 1.15cqw; line-height: 1.3; }
:where(.iphone, .mac, .watch) .desk .news i { width: 3.2cqw; height: 2.4cqw; border-radius: 0.6cqw; flex: none; position: relative; overflow: hidden; }

/* ---- Tables and inline code outside prose ----------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
:not(pre) > code { font-size: 0.88em; padding: 0.15em 0.4em; border-radius: 6px; background: var(--surface-2); color: var(--text); }

/* ---- Prose (legal pages, long text) --------------------------------------- */
.prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.prose > * + *, .prose :where(section, article, div) > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(24px, 3vw, 30px); color: var(--text); }
.prose h3 { margin-top: 1.8em; font-size: 20px; color: var(--text); }
.prose h4 { margin-top: 1.4em; font-size: 17px; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose code { font-size: 0.88em; padding: 0.15em 0.4em; border-radius: 6px; background: var(--surface-2); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---- Page hero (inner pages) ---------------------------------------------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(48px, 9vw, 110px)) 0 clamp(36px, 6vw, 70px); overflow: hidden; }
.page-hero .glow { width: 760px; height: 520px; top: -200px; right: -160px; opacity: 0.8; }
.page-hero h1 { font-size: clamp(42px, 8vw, 88px); letter-spacing: -0.04em; line-height: 0.98; margin: 16px 0 18px; }
.page-hero .lead { max-width: 34em; }
.page-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Docs layout (manual, API) -------------------------------------------- */
.docs { display: grid; gap: 32px; padding-bottom: clamp(64px, 10vw, 120px); }
.docs-nav { position: relative; }
.docs-nav details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.docs-nav summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.docs-nav summary::-webkit-details-marker { display: none; }
.docs-nav summary::after { content: "+"; color: var(--text-3); font-size: 20px; line-height: 1; transition: transform 0.25s; }
.docs-nav details[open] summary::after { transform: rotate(45deg); }
.docs-nav ul { list-style: none; margin: 0; padding: 0 8px 12px; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.docs-nav a:hover, .docs-nav a.is-active { color: var(--text); background: var(--surface-2); }
.docs-nav .group { padding: 12px 10px 4px; font: 600 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.docs-main { min-width: 0; }
@media (min-width: 1000px) {
  .docs { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .docs-nav > div { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; }
  .docs-nav details { border: 0; background: none; }
  .docs-nav details[open] > summary { display: none; }
  .docs-nav ul { padding: 0; }
}

/* ---- Code ------------------------------------------------------------------ */
.code {
  border-radius: 18px; border: 1px solid var(--line-2); background: #070b14; overflow: hidden; color: #dbe7ff;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8);
}
:root[data-theme="light"] .code, :root[data-theme="sand"] .code { background: #0d1220; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); font: 600 12px/1 var(--font-mono); color: rgba(219,231,255,0.6); }
.code-head .lights i { width: 10px; height: 10px; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.7 var(--font-mono); -webkit-overflow-scrolling: touch; }
.code .c { color: #6b7d99; } .code .s { color: #8ee6b4; } .code .k { color: #7cc4ff; } .code .n { color: #ffb86b; }
.copy-btn { border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: #dbe7ff; border-radius: 99px; padding: 6px 12px; font: 600 12px/1 var(--font-text); cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,0.12); }

/* ---- Forms ----------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field > .label { font-size: 14px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 13px; color: var(--text-3); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"], .field input[type="search"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font: 16px/1.4 var(--font-text); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); background: var(--surface-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field select:invalid { color: var(--text-3); }
.field select option { color: var(--text); background: var(--bg-2); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.drop {
  display: grid; place-items: center; gap: 6px; padding: 26px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--surface);
  text-align: center; color: var(--text-2); cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; color: var(--text-2); }
.notice > .icon { width: 18px; height: 18px; margin-top: 2px; }
.notice.ok { border-color: rgba(76, 217, 127, 0.4); background: rgba(76, 217, 127, 0.08); color: var(--text); }
.notice.err { border-color: rgba(255, 90, 106, 0.45); background: rgba(255, 90, 106, 0.08); color: var(--text); }
.notice.info { border-color: rgba(var(--accent-rgb), 0.4); background: rgba(var(--accent-rgb), 0.08); color: var(--text); }
.panel { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3.4vw, 36px); }

/* ---- FAQ -------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s, background-color 0.2s; }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 600 17px/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 18px; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div, .faq details > p { padding: 0 22px 20px; color: var(--text-2); }

/* ---- Utilities -------------------------------------------------------------- */
@media (max-width: 719px) { .hide-sm { display: none !important; } }
@media (min-width: 720px) { .hide-lg { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
