/* Framecast website. Clean and quiet: near-black surfaces, one typeface (Geist), aqua for focus, coral for anything
   that records. The footage carries the page; the chrome stays out of its way. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0b;
  --bg-1: #101212;
  --bg-2: #151818;
  --bg-3: #1b1f1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f5f4;
  --text-2: #9aa29f;
  --text-3: #6d7573;
  --aqua: #33d6bd;
  --aqua-2: #5fe3cf;
  --aqua-ink: #04231f;
  --aqua-dim: rgba(51, 214, 189, 0.12);
  --coral: #ff5c4f;
  --amber: #f5ba4d;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 16px;
  --max: 1096px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
b, strong { font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
::selection { background: rgba(51, 214, 189, 0.35); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 em, h2 em, .h2 em, .page-title em { font-style: normal; color: var(--text-3); }
h2 em, .h2 em, .page-title em { display: inline-block; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.label { font: 500 13px/1.45 var(--sans); color: var(--text-3); }
.label.aqua { color: var(--aqua); }
.muted { color: var(--text-2); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Tally light */
.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px rgba(255, 92, 79, 0.8); animation: tally 1.6s ease-in-out infinite; vertical-align: middle; flex: none; }
@keyframes tally { 50% { opacity: 0.35; } }

/* Viewfinder brackets: <span class="corners"><i></i><i></i><i></i><i></i></span> inside a .vf */
.vf { position: relative; }
.corners { position: absolute; inset: var(--vf-inset, -10px); pointer-events: none; }
.corners i { position: absolute; width: var(--arm, 20px); height: var(--arm, 20px); border: 0 solid var(--vf-color, rgba(51, 214, 189, 0.75)); }
.corners i:nth-child(1) { top: 0; left: 0; border-top-width: var(--w, 2px); border-left-width: var(--w, 2px); --sx: -1; --sy: -1; }
.corners i:nth-child(2) { top: 0; right: 0; border-top-width: var(--w, 2px); border-right-width: var(--w, 2px); --sx: 1; --sy: -1; }
.corners i:nth-child(3) { bottom: 0; right: 0; border-bottom-width: var(--w, 2px); border-right-width: var(--w, 2px); --sx: 1; --sy: 1; }
.corners i:nth-child(4) { bottom: 0; left: 0; border-bottom-width: var(--w, 2px); border-left-width: var(--w, 2px); --sx: -1; --sy: 1; }
/* "Focus lock": the brackets close in once. */
.lock .corners i { animation: lock 1.2s var(--ease) both; animation-delay: var(--lock-delay, 0.35s); }
@keyframes lock { from { opacity: 0; transform: translate(calc(var(--sx) * 20px), calc(var(--sy) * 20px)); } }

/* ── Buttons ── */
.btn {
  --h: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px;
  border-radius: 999px; border: 0;
  font: 500 14px/1 var(--sans); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-aqua { background: var(--aqua); color: var(--aqua-ink); }
.btn-aqua:hover { background: var(--aqua-2); }
.btn-line { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover { background: rgba(255, 255, 255, 0.1); }
.btn-coral { background: rgba(255, 92, 79, 0.12); color: #ff8a80; box-shadow: inset 0 0 0 1px rgba(255, 92, 79, 0.3); }
.btn-coral:hover { background: rgba(255, 92, 79, 0.2); }
.btn-lg { --h: 46px; padding: 0 22px; font-size: 15.5px; }
.btn-sm { --h: 32px; padding: 0 14px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.apple { width: 13px !important; height: 16px !important; margin-top: -2px; }
.play-ico { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.link { color: var(--aqua); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.price-tag s, .amount s, .big s { color: var(--text-3); font-weight: 400; margin-right: 2px; }

/* ── Launch banner: shown by site.js only while the launch price runs ── */
.promo { position: relative; z-index: 51; background: linear-gradient(90deg, rgba(51, 214, 189, 0.16), rgba(51, 214, 189, 0.08) 50%, rgba(255, 92, 79, 0.12)); border-bottom: 1px solid rgba(51, 214, 189, 0.22); font-size: 13.5px; line-height: 1.4; color: var(--text); }
.promo .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding-top: 7px; padding-bottom: 7px; }
.promo p { margin: 0; text-align: center; }
.promo b { font-weight: 600; }
.promo s { color: var(--text-2); }
.promo-lead { color: var(--aqua-2); }
.promo-left { color: var(--text-2); white-space: nowrap; }
.promo-left b { color: var(--text); font-variant-numeric: tabular-nums; }
.promo-cta { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--aqua); color: var(--aqua-ink); font-weight: 600; font-size: 13px; text-decoration: none; transition: background 0.2s; }
.promo-cta:hover { background: var(--aqua-2); }
.promo-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-right: -6px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--text-3); cursor: pointer; }
.promo-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.promo-x svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .promo .wrap { gap: 10px; justify-content: space-between; }
  .promo p { text-align: left; font-size: 13px; }
  .promo .rec { display: none; }
}
@media (max-width: 520px) { .promo-lead, .promo-tail { display: none; } }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 11, 0.72);
  backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10, 11, 11, 0.85); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 16px/1 var(--sans); letter-spacing: -0.02em; color: var(--text); }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 14px; padding: 6px 12px; border-radius: 999px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ── Media frames ── */
.frame > video, .frame > img { width: 100%; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.caption { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--text-3); }
.caption b { color: var(--text-2); }

/* ── Landing: hero ── */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 0; }
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 320px; height: 760px; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(51, 214, 189, 0.11), transparent 70%);
}
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, 0.04); font: 500 13px/1 var(--sans); color: var(--text-2); }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -0.04em; line-height: 1.04; max-width: 11em; }
.hero h1 em { color: var(--aqua); }
.lede { margin-top: 20px; max-width: 590px; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.5; color: var(--text-2); }
.lede b { color: var(--text); }
.hero .cta { justify-content: center; margin-top: 30px; }
.hero .fine { margin-top: 14px; }
.fine { font-size: 13px; color: var(--text-3); }
.monitor { max-width: 980px; margin: 56px auto 0; }
.monitor .vf { --vf-inset: 0; --arm: 30px; padding: 14px; }
.monitor .vf > video { width: 100%; border-radius: 10px; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(0, 0, 0, 0.9); }

.apps { padding: 72px 0 8px; text-align: center; }
.apps p { font-size: 13.5px; color: var(--text-3); }
.app-strip { list-style: none; margin: 18px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; max-width: 900px; }
.app-strip li { font: 600 17px/1.2 var(--sans); letter-spacing: -0.02em; color: var(--text-2); opacity: 0.75; }

/* ── Sections ── */
section { position: relative; }
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section.alt { background: var(--bg-1); }
/* Back-to-back sections on the same background share one gap. */
#explain, #mac { padding-top: 0; }
.eyebrow { font: 500 15px/1 var(--sans); color: var(--aqua); margin: 0 0 14px; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.sec-head h2, .h2 { font-size: clamp(32px, 4.2vw, 52px); }
.sec-head > p:not(.eyebrow) { margin: 16px auto 0; max-width: 620px; color: var(--text-2); font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.55; }
.sec-head b { color: var(--text); }
.h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.section-intro { margin: 16px 0 0; max-width: 36em; color: var(--text-2); font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.55; }

/* Before / after slider */
.ba { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(0, 0, 0, 0.9); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-top: -5px; }
.ba-handle span::before { left: 10px; border-right: 6px solid #111; }
.ba-handle span::after { right: 10px; border-left: 6px solid #111; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 14px; font: 500 12.5px/1 var(--sans); padding: 7px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; }
.ba-tag-l { left: 14px; color: var(--text-2); }
.ba-tag-r { right: 14px; color: var(--aqua); }

/* Tabbed players */
.tabs, .seg { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin: 0 auto 20px; padding: 3px; width: fit-content; max-width: 100%; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { border: 0; background: transparent; color: var(--text-2); font: 500 14px/1 var(--sans); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: color 0.2s, background 0.2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.player .frame > video, .player .frame > img { transition: opacity 0.3s; }
.player .frame.swapping > video, .player .frame.swapping > img { opacity: 0.2; }
.notes { list-style: none; padding: 26px 0 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); }
.notes li { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.notes b { color: var(--text); }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.split-rev .split-copy { order: 2; }
.split-media { margin: 0; min-width: 0; }
.split h2 { font-size: clamp(30px, 3.4vw, 42px); }
.split-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); font-size: 15.5px; }
.checks li::before, .plan li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 5px; height: 10px; border: solid var(--aqua); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); }

/* Outputs bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 2; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow 0.3s; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.tile-wide { grid-column: span 4; }
.tile-tall { grid-row: span 2; }
.tile-media { position: relative; flex: 1; min-height: 210px; overflow: hidden; background: #070808; }
.tile-media > img, .tile-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tile-center > video, .tile-center > img { object-position: center; }
.tile-vertical { display: grid; place-items: center; padding: 24px; }
.tile-vertical > video { position: relative; inset: auto; width: auto; height: 100%; max-height: 540px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; box-shadow: 0 0 0 5px #1a1d1d, 0 0 0 6px var(--line-2), 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.tile-copy { padding: 18px 22px 22px; }
.tile-copy h3 { font-size: 17px; letter-spacing: -0.015em; }
.tile-copy p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }

/* Recording */
.rec-console { display: block; width: min(500px, 92%); margin: -8px auto 48px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6)); }
.console-row { display: grid; grid-template-columns: 1.3fr 0.8fr 1.1fr 0.9fr; gap: 24px; margin-top: 56px; align-items: end; }
.console { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.console img { max-height: 240px; width: auto; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.55)); }
.console figcaption { font-size: 14px; color: var(--text-2); text-align: center; line-height: 1.5; }
.console figcaption b { color: var(--text); }

/* Everything else */
.more-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.more-grid li { display: flex; align-items: center; gap: 12px; padding: 15px 0; font-size: 15px; color: var(--text); border-top: 1px solid var(--line); }
.more-grid svg { width: 18px; height: 18px; color: var(--aqua); flex: none; }

/* Built for Mac */
.mac-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-1); }
.mac-icon { width: clamp(96px, 13vw, 144px); filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.6)); }
.mac h2 { font-size: clamp(30px, 3.4vw, 42px); }
.mac-inner > div > p:not(.eyebrow) { margin-top: 14px; color: var(--text-2); font-size: 16.5px; max-width: 600px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 44px; margin: 28px 0 0; justify-content: start; }
.stats dt { font: 600 28px/1 var(--sans); letter-spacing: -0.03em; color: var(--text); }
.stats dd { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text-3); max-width: 170px; }

/* ── Pricing ── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.page .plans { margin-top: clamp(36px, 5vw, 56px); }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.plan.hero-plan { background: linear-gradient(180deg, rgba(51, 214, 189, 0.07), transparent 45%), var(--bg-2); box-shadow: inset 0 0 0 1px rgba(51, 214, 189, 0.45); }
.plan .corners { display: none; }
.plan h3 { margin: 10px 0 0; font-size: 17px; letter-spacing: -0.01em; }
.amount { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.amount .num { font-size: 40px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.amount .per { color: var(--text-3); font-size: 14px; }
.amount s { font-size: 22px; }
.plan .sub { color: var(--text-2); font-size: 14.5px; margin: 6px 0 20px; min-height: 2.9em; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { position: relative; padding-left: 24px; color: var(--text-2); }
.plan li b { color: var(--text); }
/* Something the plan doesn't include: a grey dash instead of the check. */
.plan li.no::before { left: 3px; top: 10.5px; width: 9px; height: 0; border-color: var(--text-3); border-width: 1.75px 0 0; transform: none; }
.plan .btn { margin-top: auto; width: 100%; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 92, 79, 0.12); color: #ff8f86; font: 500 12px/1 var(--sans); }
.plan-note { margin: 22px 0 0; text-align: center; color: var(--text-3); font-size: 13.5px; }
.vs { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.vs > div { padding: 26px; }
.vs > div + div { border-left: 1px solid var(--line); }
.vs .big { display: block; margin: 10px 0 6px; font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.035em; }
.vs p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ── FAQ ── */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-layout h2 { font-size: clamp(30px, 3.4vw, 42px); }
.faq-layout .section-intro { font-size: 16px; }
.faq { border-top: 1px solid var(--line); }
.page .faq { margin-top: clamp(48px, 6vw, 72px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 22px/1 var(--sans); color: var(--text-3); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; max-width: 620px; color: var(--text-2); font-size: 15.5px; }
.faq .answer p + p { margin-top: 10px; }

/* ── Closing call ── */
.final { position: relative; padding: clamp(96px, 12vw, 160px) 0; text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 300px at 50% 62%, rgba(255, 92, 79, 0.06), transparent 70%); }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.04em; }
.final h2 em { color: var(--coral); }
.final-inner > p:not(.fine) { margin-top: 14px; font-size: 18px; color: var(--text-2); }
.rec-button { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin: 40px 0 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.85); text-decoration: none; cursor: pointer; transition: transform 0.25s; }
.rec-button::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(255, 92, 79, 0.45); animation: ring 2.2s ease-out infinite; }
.rec-core { width: 60px; height: 60px; border-radius: 50%; background: var(--coral); transition: border-radius 0.3s, width 0.3s, height 0.3s; }
.rec-button:hover { transform: scale(1.04); }
.rec-button:hover .rec-core { width: 34px; height: 34px; border-radius: 9px; }
@keyframes ring { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
/* The 404 page */
.closing { text-align: center; }
.closing .h2 { margin: 18px auto 0; max-width: 11em; }
.closing .vf { display: inline-block; padding: 0 0.08em; --vf-inset: -0.04em -0.1em; --arm: 18px; }
.closing .section-intro { margin-left: auto; margin-right: auto; }
.closing .cta { justify-content: center; margin-top: 32px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; color: var(--text-3); font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer .footer-h { margin: 0 0 12px; font: 500 13px/1 var(--sans); color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--text-3); transition: color 0.2s; }
.footer .brand { color: var(--text); }
.footer a:hover { color: var(--text); }
.footer .featured { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.footer .featured img { display: block; height: 32px; width: auto; opacity: 0.85; transition: opacity 0.2s; }
.footer .featured a:hover img { opacity: 1; }
.footer .fine { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ── Simple pages (pricing, download, thanks, account, changelog, legal) ── */
.page { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); min-height: 62vh; }
.page-head { max-width: 720px; }
.page-title { margin: 12px 0 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; }
.panel { margin-top: 32px; padding: clamp(22px, 3.5vw, 32px); border-radius: 18px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.panel + .panel { margin-top: 14px; }
.narrow { max-width: 720px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--text-2); }
.steps li::before { content: counter(s); font: 500 13px/30px var(--mono); text-align: center; height: 30px; border-radius: 999px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); color: var(--aqua); }
.steps li > span { padding-top: 3px; }
.steps b { color: var(--text); }

.field { display: grid; gap: 8px; margin-top: 18px; }
.field label { font-size: 14px; color: var(--text-2); }
.input { height: 46px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: 400 15.5px/1 var(--sans); outline: none; transition: box-shadow 0.2s; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--aqua), 0 0 0 4px var(--aqua-dim); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.form-row .input { flex: 1 1 260px; }
.notice { margin-top: 18px; padding: 13px 15px; border-radius: 12px; font-size: 14.5px; background: var(--aqua-dim); color: #bff3ea; box-shadow: inset 0 0 0 1px rgba(51, 214, 189, 0.25); }
.notice.warn { background: rgba(245, 186, 77, 0.08); color: #f8d595; box-shadow: inset 0 0 0 1px rgba(245, 186, 77, 0.25); }
.notice.error { background: rgba(255, 92, 79, 0.08); color: #ffaaa3; box-shadow: inset 0 0 0 1px rgba(255, 92, 79, 0.25); }

.keybox { position: relative; margin: 22px 0 8px; padding: 22px 18px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-align: center; font: 500 clamp(15px, 2.6vw, 22px)/1.3 var(--mono); letter-spacing: 0.04em; color: var(--aqua); word-break: break-all; }
.keybox .corners { --vf-inset: 0; --arm: 16px; }

.license { padding: 22px 0; border-top: 1px solid var(--line); }
.license:first-child { border-top: 0; padding-top: 0; }
.license-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; }
.license-head h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.status { font: 500 12px/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--aqua-dim); color: var(--aqua); }
.status.bad { background: rgba(255, 92, 79, 0.12); color: #ff8f86; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 18px 0; }
.facts div span { display: block; }
.facts div span:last-child { margin-top: 4px; color: var(--text); font-size: 15px; }
.macs { list-style: none; margin: 0; padding: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.macs li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; }
.macs li + li { border-top: 1px solid var(--line); }
.macs .name { flex: 1; min-width: 0; }
.macs .name small { display: block; color: var(--text-3); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* Account › Your links: a storage meter per license, then the links (a .macs list). */
.meter { margin-top: 16px; }
.meter-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14px; color: var(--text-2); }
.meter-head span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.meter-bar { height: 6px; margin-top: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: inherit; background: var(--aqua); }
.meter-bar.full i { background: var(--coral); }
.links { margin-top: 20px; }
.links li { flex-wrap: wrap; }
.links .name { flex-basis: 100%; }
.links .title { color: var(--text); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; margin-right: 8px; }
.links .title:hover { color: var(--aqua); }
.links .status { display: inline-block; vertical-align: 1px; }
.links .name .why { color: #ffaaa3; margin-top: 4px; }
.links .controls, .links .switches, .links .buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.links .controls { width: 100%; }
.links .buttons { gap: 8px; margin-left: auto; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 30px; height: 18px; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.16); cursor: pointer; transition: background 0.2s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform 0.2s var(--ease); }
.switch input:checked { background: var(--aqua); }
.switch input:checked::after { transform: translateX(12px); background: var(--aqua-ink); }
.switch input:disabled { opacity: 0.5; }

.releases { margin-top: 32px; display: grid; }
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.release-meta .h3 { margin: 8px 0 4px; }
.release-notes { color: var(--text-2); }
.release-notes h2, .release-notes h3, .release-notes h4 { color: var(--text); font-size: 17px; letter-spacing: -0.015em; margin: 0 0 10px; }
.release-notes ul { padding-left: 20px; margin: 0 0 14px; }
.release-notes p { margin: 0 0 12px; }
@media (max-width: 680px) { .release { grid-template-columns: 1fr; } }

.doc { max-width: 720px; color: var(--text-2); }
.doc .page-title { color: var(--text); }
.doc h2 { color: var(--text); font-size: 21px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.doc h3 { color: var(--text); font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { line-height: 1.7; }
.doc strong { color: var(--text); }
.doc .updated { margin-top: 12px; }

/* ── Motion ── */
/* Everything is visible at rest; site.js sets back only what starts below the fold, and it slides in on arrival. */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.pre { opacity: 0; transform: translateY(16px); }
.rise { animation: rise 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .console-row { grid-template-columns: 1fr 1fr; }
  .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-column: span 1; }
  .tile-wide { grid-column: span 2; }
}
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 460px; } .plan .sub { min-height: 0; } }
@media (max-width: 860px) {
  .split, .split-rev, .faq-layout, .mac-inner { grid-template-columns: minmax(0, 1fr); }
  .split-rev .split-copy { order: 0; }
  .notes { grid-template-columns: 1fr; gap: 14px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .more-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .vs { grid-template-columns: 1fr; }
  .vs > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 38px; }
  h2 em, .h2 em, .page-title em { display: block; }
  .monitor { margin-top: 40px; }
  .monitor .vf { --arm: 20px; padding: 8px; }
  .monitor .vf > video { border-radius: 8px; }
  .ba-tag { font-size: 11px; padding: 6px 8px; top: 10px; }
  .ba-tag-l { left: 10px; } .ba-tag-r { right: 10px; }
  .hero .btn-lg { width: 100%; }
  .hero .cta { width: 100%; }
  .tabs button { padding: 8px 12px; font-size: 13px; }
  .apps { padding-top: 56px; }
  .app-strip { gap: 8px 22px; }
  .app-strip li { font-size: 15px; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-wide { grid-column: span 1; }
  .tile-tall { grid-row: auto; }
  .tile-vertical > video { height: 420px; }
  .console-row { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .ba-handle span { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .ba-handle span::before { left: 8px; } .ba-handle span::after { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.pre { opacity: 1; transform: none; }
}

/* ── Guide (/guide/): topics on the left, one article at a time ── */
.guide { padding: clamp(36px, 5vw, 56px) 0 clamp(72px, 9vw, 112px); }
.guide-wrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.guide-nav { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 24px 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.guide-search { position: relative; display: block; margin-bottom: 18px; }
.guide-search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; color: var(--text-3); pointer-events: none; }
.guide-search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 0; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 400 14px/1 var(--sans); outline: none; transition: box-shadow 0.2s; }
.guide-search input::placeholder { color: var(--text-3); }
.guide-search input:focus { box-shadow: inset 0 0 0 1.5px var(--aqua), 0 0 0 4px var(--aqua-dim); }
.guide-search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); }
.guide-toggle { display: none; }
.guide-home-link { display: block; margin: 0 0 6px; padding: 6px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--text-2); }
.guide-sections section { margin-top: 18px; }
.guide-sections .guide-sections-h { margin: 0 0 6px; padding: 0 10px; font: 500 12.5px/1.4 var(--sans); color: var(--text-3); letter-spacing: 0.01em; }
.guide-sections ul { list-style: none; margin: 0; padding: 0; }
.guide-sections li a { position: relative; display: block; padding: 5px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; line-height: 1.35; color: var(--text-2); transition: color 0.15s, background 0.15s; }
.guide-sections a:hover, .guide-home-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.guide-sections a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.guide-sections li a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--aqua); }
.guide-none { padding: 6px 10px; font-size: 13.5px; color: var(--text-3); }

.guide-article { min-width: 0; max-width: 760px; }
.guide-crumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-3); }
.guide-crumb a { color: var(--aqua); text-decoration: none; }
.guide-crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.guide-article h1 { margin: 12px 0 0; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.035em; line-height: 1.08; }
.guide-article h1 em { color: var(--text-3); font-style: normal; }
.guide-summary { margin-top: 14px; font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.55; color: var(--text-2); max-width: 40em; }
.guide-media { margin: 30px 0 0; }
.guide-media video, .guide-media > img { width: 100%; border-radius: 12px; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.guide-media.shot > img { width: auto; max-width: 100%; margin: 0 auto; background: var(--bg-1); }
.guide-media figcaption, .guide-body figcaption { margin-top: 12px; font-size: 13.5px; color: var(--text-3); text-align: center; }
.guide-media figcaption b, .guide-body figcaption b { color: var(--text-2); font-weight: 500; }
.guide-media .sound { color: var(--text-3); }

.guide-body { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.guide-body h2 { margin: 40px 0 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; color: var(--text); }
.guide-body h3 { margin: 26px 0 0; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.guide-body p, .guide-body ul, .guide-body ol, .guide-body table { margin: 14px 0 0; }
.guide-body b, .guide-body strong { color: var(--text); font-weight: 500; }
.guide-body em { color: var(--text); font-style: normal; }
.guide-body ul { padding-left: 20px; }
.guide-body ul li + li { margin-top: 6px; }
.guide-body ul li::marker { color: var(--text-3); }
.guide-body a:not(.link) { color: var(--aqua); text-decoration: none; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 6px; background: var(--bg-3); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--line-2); font: 500 13px/1.5 var(--mono); color: var(--text); text-align: center; white-space: nowrap; }
.guide-steps { counter-reset: g; list-style: none; padding: 0; display: grid; gap: 12px; }
.guide-steps li { counter-increment: g; position: relative; padding-left: 42px; min-height: 28px; padding-top: 2px; }
.guide-steps li::before { content: counter(g); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--mono); color: var(--aqua); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.guide-body .shot { margin: 22px 0 0; }
.guide-body .shot img, .guide-body .shot video { display: block; max-width: 100%; margin: 0 auto; border-radius: 12px; background: var(--bg-1); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -40px rgba(0, 0, 0, 0.9); }
.guide-body .shot.narrow img { max-width: min(100%, 400px); }
.guide-body .tip, .guide-body .note { margin-top: 26px; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.55; background: var(--aqua-dim); color: #bff3ea; box-shadow: inset 0 0 0 1px rgba(51, 214, 189, 0.22); }
.guide-body .tip b, .guide-body .note b { color: #e2fbf6; }
.guide-body .note { background: rgba(245, 186, 77, 0.07); color: #f3d9a6; box-shadow: inset 0 0 0 1px rgba(245, 186, 77, 0.22); }
.guide-body .note b { color: #fbe8c2; }
.guide-body table.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-body table.keys td { padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.guide-body table.keys tr:last-child td { border-bottom: 1px solid var(--line); }
.guide-body table.keys td:first-child { width: 38%; padding-right: 16px; white-space: nowrap; }
.guide-body table.keys td:first-child kbd + kbd { margin-left: 4px; }
.demo-embed { margin-top: 22px; aspect-ratio: 16 / 12; border-radius: 14px; overflow: hidden; background: #0f0f12; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.demo-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo-caption { margin-top: 12px !important; font-size: 13.5px; color: var(--text-3); text-align: center; }

.guide-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.guide-pager a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, background 0.2s; }
.guide-pager a:hover { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-2); }
.guide-pager a span { font-size: 13px; color: var(--text-3); }
.guide-pager a b { font-weight: 500; color: var(--text); }
.guide-pager a[rel="next"] { text-align: right; grid-column: 2; }

/* The guide's home */
.guide-index { max-width: none; }
.guide-index h1 { max-width: 15em; }
.guide-quick { counter-reset: q; list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-quick li { counter-increment: q; padding: 18px 18px 16px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.guide-quick li::before { content: counter(q); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 12px; border-radius: 50%; background: var(--aqua-dim); color: var(--aqua); font: 500 13px/1 var(--mono); }
.guide-quick b { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; font-size: 15.5px; }
.guide-quick .link { display: inline-block; margin-top: 8px; font-size: 14px; }
.guide-group { margin-top: 56px; }
.guide-group h2 { font-size: 22px; letter-spacing: -0.02em; }
.guide-cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-cards a { display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; text-decoration: none; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, transform 0.2s; }
.guide-cards a:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.guide-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #070808; overflow: hidden; border-bottom: 1px solid var(--line); }
.guide-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-card-media img.ui { object-fit: contain; object-position: center; padding: 14px; }
.guide-card-blank { position: absolute; inset: 0; background: radial-gradient(120px 80px at 50% 55%, rgba(51, 214, 189, 0.12), transparent 70%); }
.guide-card-blank::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid rgba(51, 214, 189, 0.5); border-radius: 9px; }
.guide-cards b { display: block; padding: 14px 16px 0; color: var(--text); font-weight: 500; font-size: 15.5px; letter-spacing: -0.01em; }
.guide-cards a > span:last-child { display: block; padding: 4px 16px 16px; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
.guide-help { margin-top: 56px !important; color: var(--text-3); font-size: 14.5px; }

@media (max-width: 900px) {
  .guide-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .guide-nav { position: static; max-height: none; overflow: visible; padding: 0; }
  .guide-search { margin-bottom: 10px; }
  .guide-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 500 14px/1 var(--sans); cursor: pointer; }
  .guide-toggle::after { content: ""; width: 7px; height: 7px; border: solid var(--text-3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s; }
  .guide-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .guide-sections { display: none; padding: 6px 0 10px; }
  .guide-nav.open .guide-sections, .guide-nav.searching .guide-sections { display: block; }
  .guide-quick, .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .guide-quick, .guide-cards { grid-template-columns: minmax(0, 1fr); }
  .guide-pager { grid-template-columns: minmax(0, 1fr); }
  .guide-pager a[rel="next"] { grid-column: 1; }
  .guide-body table.keys td:first-child { width: auto; white-space: normal; }
  .demo-embed { aspect-ratio: 3 / 4; }
}
