/* pteronavian.com: Workbench paper for light pages, Formation night for dark bands. */

@font-face {
  font-family: "Geologica";
  src: url("/fonts/Geologica-Sharp.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/SchibstedGrotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  /* Workbench */
  --paper: #F1F4F8;
  --paper-deep: #E4EAF3;
  --sheet: #FFFFFF;
  --ink: #1A3A8F;
  --ink-2: #4A5B85;
  --rule: #CBD5E6;
  --kingfisher: #00B8C2;
  --kingfisher-text: #007C84;
  --wing: #2F58C9;
  /* Formation */
  --night: #070B19;
  --night-2: #0F1833;
  --night-rule: #22305A;
  --sky: #5AA9FF;
  --pale-sky: #CFE6FF;
  --mint: #3FE0B5;
  --moon: #EAF1FF;
  --moon-2: #A3B3D9;
  --rec: #D2302A;

  --display: "Geologica", "Avenir Next", system-ui, sans-serif;
  --text: "Schibsted Grotesk", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ground-dependent roles (paper by default) */
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --line: var(--rule);
  --btn-bg: var(--ink);
  --btn-fg: #FFFFFF;
  --focus: var(--kingfisher-text);
  --link-line: var(--kingfisher);

  color-scheme: light;
}

.night {
  --fg: var(--moon);
  --fg-2: var(--moon-2);
  --line: var(--night-rule);
  --btn-bg: var(--sky);
  --btn-fg: var(--night);
  --focus: var(--sky);
  --link-line: var(--sky);
  color-scheme: dark;
  background: var(--night);
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-2) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--text);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.night-page { background: var(--night); }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--pale-sky); color: var(--ink); }
.night ::selection { background: var(--wing); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); letter-spacing: -0.028em; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--fg-2); max-width: 36em; }
.tnum { font-feature-settings: "tnum"; }

a { color: inherit; }
.prose a, .link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.prose a:hover, .link:hover { text-decoration-color: currentColor; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 3; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; border-radius: 8px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav a {
  font-weight: 500;
  text-decoration: none;
  color: var(--fg);
  padding: 6px 2px;
  background: linear-gradient(var(--link-line), var(--link-line)) left bottom / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font: 600 1rem/1 var(--text);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--spring), box-shadow 0.2s, background-color 0.2s;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -2px 0 rgb(7 11 25 / 0.18), 0 8px 18px -10px rgb(7 11 25 / 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 -2px 0 rgb(7 11 25 / 0.18), 0 12px 22px -10px rgb(7 11 25 / 0.6); }
.btn-primary:active { transform: translateY(1px) scale(0.98); }
.btn-quiet { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
/* The buy button. Every "Download for free" links to the plan cards in #price on the CaptureSnap page. */
.btn-buy { background: var(--mint); color: var(--night); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 -2px 0 rgb(7 11 25 / 0.16), 0 10px 22px -12px rgb(63 224 181 / 0.7); }
.btn-buy[aria-disabled="true"] { cursor: default; }
a.btn-buy[href]:hover { transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

/* Controller button caps, drawn like the badges in CaptureSnap's settings window. */
.cap {
  display: inline-grid;
  place-items: center;
  min-width: 2.6em;
  height: 2em;
  padding: 0 0.6em;
  border-radius: 0.55em;
  font: 700 0.8125rem/1 var(--text);
  letter-spacing: 0.01em;
  color: #FFFFFF;
  background: linear-gradient(#5B6476, #3A4150);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 2px 0 #20252F, 0 3px 6px rgb(7 11 25 / 0.3);
}
.cap svg { width: 1.25em; height: 1.25em; }
.plus { font-weight: 700; opacity: 0.75; margin-inline: 0.3em; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); color: var(--ink); border-top: 1px solid var(--rule); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; padding-block: 48px 40px; }
.site-footer .brand img { height: 26px; }
.footer-note { color: var(--ink-2); margin-top: 14px; max-width: 30em; font-size: 0.9375rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; align-content: start; font-size: 0.9375rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--kingfisher); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.875rem; }
.footer-base a { color: var(--ink); }
.footer-base:has(.footer-contact) { align-items: center; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-follow { display: flex; align-items: center; gap: 6px; margin-inline: -8px; }
.footer-follow a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); transition: color 0.15s, transform 0.15s; }
.footer-follow a:hover { color: var(--wing); transform: translateY(-1px); }
.footer-follow a:focus-visible { outline: 2px solid var(--kingfisher); outline-offset: 2px; }
.footer-follow svg { width: 22px; height: 22px; }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .footer-follow a:hover { transform: none; } }

/* ---------- toasts (same shape as the app's) ---------- */
.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.85em 1.35em 0.85em 1.1em;
  border-radius: 999px;
  background: #121D38;
  border: 1px solid #2A3A60;
  color: #FFFFFF;
  font: 600 1rem/1.1 var(--text);
  white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.6);
}
.toast svg { width: 1.3em; height: 1.3em; color: var(--sky); flex: none; }

/* ---------- shared section rhythm ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- reading pages (support, legal) ---------- */
.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.page-head .lede { margin-top: 18px; }
.updated { color: var(--ink-2); font-size: 0.9375rem; margin-top: 14px; }
.reading { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 42rem); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(72px, 9vw, 120px); }
.toc { position: sticky; top: 24px; align-self: start; font-size: 0.9375rem; }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; border-left: 1.5px solid var(--rule); }
.toc a { display: block; padding: 2px 0 2px 14px; margin-left: -1.5px; border-left: 1.5px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--kingfisher); }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.625rem; letter-spacing: -0.02em; margin: 2.6em 0 0.7em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin: 1.8em 0 0.5em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--kingfisher-text); }
.prose strong { font-weight: 600; }
.callout { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 22px; margin: 0 0 1.4em; }

@media (max-width: 860px) {
  .reading { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: 1fr 1fr; border-left: 0; gap: 4px 16px; }
  .toc a { padding-left: 0; border-left: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand img { height: 24px; }
  .btn { min-height: 50px; padding: 0 22px; }
  .footer-links { gap: 10px 32px; }
}

/* ================= home ================= */
.home-hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(680px, calc(100svh - 76px - 60px));
  padding-block: clamp(24px, 4vw, 48px) clamp(96px, 10vw, 140px);
}
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy h1 { max-width: 11ch; }
.origin-copy .tagline { margin: -6px 0 6px; color: var(--sky) !important; font: 600 clamp(1.15rem, 1.8vw, 1.4rem)/1.3 var(--display); letter-spacing: -0.01em; }
.origin-copy .tagline span { display: block; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 0.875rem; color: var(--fg-2); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
/* "CaptureSnap | Local & private …": a blue bar after the app name instead of a dot. */
.trust .trust-app { font-weight: 600; color: var(--fg); }
.trust .trust-app + span::before { width: 2px; height: 14px; border-radius: 1px; margin-right: 8px; }
/* One line wherever it fits: wide two-column heroes and the single-column tablet layout. */
@media (min-width: 1240px), (min-width: 600px) and (max-width: 900px) { .trust { flex-wrap: nowrap; white-space: nowrap; gap: 6px 14px; } .trust span + span::before { margin-right: 8px; } }
.trust span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--sky); opacity: 0.7; margin-right: 10px; }
.flock { margin: 0; justify-self: stretch; display: grid; gap: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .wing-near { animation: flap-near 1.6s ease-in-out infinite; }
  .wing-far { animation: flap-far 1.6s ease-in-out infinite; }
}
@keyframes flap-near { 50% { transform: rotate(-16deg); } }
@keyframes flap-far { 50% { transform: rotate(-10deg); } }
.hatch { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0; font-size: 0.875rem; color: var(--fg-2); }
/* "Specimen 01" in terminal letters, like a label on a lab sample. */
.hatch .specimen { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8125rem; color: var(--pale-sky); }
.hatch .dev { color: var(--moon-2); }
.hatch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); opacity: 0.7; flex: none; }
.echo360-stage { position: relative; aspect-ratio: 1 / 0.82; border-radius: 28px; background: radial-gradient(55% 55% at 50% 48%, #1B3A86 0%, #102457 45%, transparent 75%); }
.echo360-stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 13%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 0.45), transparent); }
.echo360-stage svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.echo360-stage canvas.echo-canvas { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }
.echo360-stage svg.echo-grid { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; }
/* The floor rows under Echo are moved by /js/echo-grid.js. */
.echo360-toggle { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; padding: 4px; border-radius: 999px; background: rgb(15 24 51 / 0.8); border: 1px solid rgb(207 230 255 / 0.16); }
.echo360-toggle button { border: 0; background: transparent; color: var(--moon-2); font: 600 0.875rem/1 var(--text); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.echo360-toggle button[aria-pressed="true"] { background: var(--sky); color: var(--night); }
.echo360 .hatch { justify-content: center; }
.flock-svg { width: 100%; height: auto; overflow: visible; }
.flock figcaption { font-size: 0.8125rem; color: var(--fg-2); text-align: right; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(56px, 8vw, 120px); }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature-copy { display: grid; gap: 22px; justify-items: start; }
.app-icon { width: 84px; height: 84px; margin: -10px 0 -4px -8px; }
.feature-copy h2 { max-width: 15ch; }
.mappings { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; width: 100%; max-width: 30rem; }
.mappings li { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; }
.mappings li:last-child { border-bottom: 1px solid var(--line); }
.keys { display: inline-flex; align-items: center; gap: 6px; }
.hold { font-size: 0.8125rem; font-weight: 600; color: var(--fg-2); }
.small-note { font-size: 0.9375rem; color: var(--fg-2); }
.feature-shot { position: relative; }
.window-shot { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgb(7 11 25 / 0.12), 0 30px 60px -28px rgb(7 11 25 / 0.55), 0 12px 24px -16px rgb(26 58 143 / 0.35); }
.float-toast { position: absolute; left: clamp(-36px, -3vw, -12px); bottom: 9%; font-size: clamp(0.8125rem, 1.15vw, 1rem); }

.studio { border-top: 1px solid var(--rule); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.studio-grid h2 { margin-bottom: 20px; }
.principles { margin: 0; display: grid; }
.principles > div { display: grid; grid-template-columns: 13rem 1fr; gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--rule); }
.principles > div:last-child { border-bottom: 1px solid var(--rule); }
.principles dt { font: 600 1.1875rem/1.3 var(--display); letter-spacing: -0.015em; }
.principles dd { margin: 0; color: var(--ink-2); }

.origin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.etymology { display: grid; gap: clamp(8px, 2vw, 20px); }
.etymology p { display: grid; gap: 14px; }
.etymology .word { font: 600 clamp(3.5rem, 9vw, 7.5rem)/0.9 var(--display); letter-spacing: -0.045em; color: var(--sky); }
.etymology p + p .word { color: var(--pale-sky); }
.etymology .gloss { font-size: 0.9375rem; color: var(--fg-2); padding-left: 0.3em; }
.origin-copy { display: grid; gap: 18px; max-width: 34rem; }
.origin-copy h2 { margin-bottom: 4px; }
.origin-copy p { color: var(--fg-2); }
.origin-copy em { font-style: normal; color: var(--fg); font-weight: 600; }
.founder { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg) !important; font-weight: 500; }
.founder-bird { width: 40px; height: 40px; flex: none; fill: var(--mint); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; }
  .feature-grid, .studio-grid, .origin-grid { grid-template-columns: 1fr; }
  .feature-shot { max-width: 620px; }
  .float-toast { left: 12px; }
}
@media (max-width: 560px) {
  .mappings li { grid-template-columns: 1fr; gap: 8px; }
  .principles > div { grid-template-columns: 1fr; }
  .float-toast { white-space: normal; bottom: -18px; }
}

/* ================= CaptureSnap ================= */
.cs-hero { padding-block: clamp(12px, 2vw, 28px) clamp(72px, 9vw, 120px); }
.cs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 64px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.cs-title { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 22px; align-items: center; }
.cs-icon { width: 72px; height: 72px; max-width: none; flex: none; margin: -6px; }
.cs-title h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); max-width: 17ch; }
.cs-title .lede { grid-column: 2; }
.cs-buy { display: grid; gap: 12px; justify-items: start; padding-bottom: 6px; }
.cs-buy p { font-size: 0.9375rem; color: var(--fg-2); max-width: 17rem; }

.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); gap: clamp(20px, 3vw, 36px); align-items: center; }
.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #0C1838;
  container-type: inline-size;
  /* A plain dark bezel: no thin outline rings. */
  box-shadow: 0 0 0 9px #0E1530, 0 50px 90px -40px rgb(0 0 0 / 0.9);
  margin: 9px;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.menubar {
  position: absolute; inset: 0 0 auto; z-index: 2;
  height: max(20px, 3.4cqw);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 2cqw;
  background: rgb(9 15 34 / 0.6);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  color: #FFFFFF;
  font-size: max(10px, 1.45cqw);
  font-weight: 600;
}
.mb-right { display: inline-flex; align-items: center; gap: 1.6cqw; }
.mb-wifi svg { width: max(14px, 1.8cqw); height: auto; display: block; overflow: visible; }
.mb-cs svg, .rec-pill svg { width: max(13px, 2cqw); height: max(13px, 2cqw); color: #FFFFFF; }
.rec-pill { display: none; align-items: center; gap: 0.5em; padding: 0.18em 0.7em 0.18em 0.45em; border-radius: 999px; background: var(--rec); }
.screen.is-recording .rec-pill { display: inline-flex; animation: pill-in 0.45s var(--spring); }
.screen.is-recording .mb-cs { display: none; }
@keyframes pill-in { from { transform: scale(0.6); opacity: 0; } }
.shot-thumb { position: absolute; z-index: 4; right: 2cqw; bottom: 2.2cqw; width: 19cqw; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; border: 2px solid rgb(255 255 255 / 0.85); box-shadow: 0 12px 28px -10px rgb(0 0 0 / 0.75); transform: translateX(calc(100% + 4cqw)); transition: transform 0.45s var(--ease-out); pointer-events: none; }
.shot-thumb.in { transform: none; }
.shot-thumb .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.flash { position: absolute; inset: 0; z-index: 3; background: #FFFFFF; opacity: 0; pointer-events: none; }
.flash.go { animation: flash 0.5s var(--ease-out); }
@keyframes flash { from { opacity: 0.85; } to { opacity: 0; } }
.toasts { position: absolute; z-index: 4; top: calc(max(20px, 3.4cqw) + 1.6cqw); right: 1.8cqw; display: grid; gap: 1cqw; justify-items: end; font-size: clamp(9px, 1.55cqw, 16px); pointer-events: none; }
.toasts .toast { font-size: 1em; transform: translateX(calc(100% + 3cqw)); opacity: 0; transition: transform 0.55s var(--spring), opacity 0.3s; }
.toasts .toast.in { transform: none; opacity: 1; }
.toasts .toast.out { transform: translateY(-40%); opacity: 0; transition: transform 0.35s var(--ease-out), opacity 0.3s; }
@keyframes twinkle { 50% { opacity: 0.2; } }

.pad { display: grid; gap: 12px; }
.pad-title { font-size: 0.9375rem; color: var(--fg-2); margin-bottom: 4px; }
.pad-btn {
  display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  background: #142238; border: 0; color: var(--fg);
  font: inherit; text-align: left; cursor: pointer;
  transition: transform 0.18s var(--spring), background-color 0.2s;
}
.pad-btn:hover { background: #1A2B4A; }
.pad-btn:active, .pad-btn.pressed { transform: scale(0.97); }
.pad-btn strong { display: block; font-weight: 600; line-height: 1.25; }
.pad-btn small { display: block; color: var(--fg-2); font-size: 0.8125rem; }
.pad-btn[aria-pressed="true"] { background: #3A1823; }
.pad-note { padding: 4px 2px 0; font-size: 0.875rem; line-height: 1.45; color: var(--fg-2); }
.pad-status { font-size: 0.8125rem; color: var(--fg-2); margin-top: 2px; }

.actions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.actions li { display: grid; align-content: start; gap: 12px; padding: 28px clamp(20px, 3vw, 40px) 8px 0; }
.actions li + li { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--rule); }
.action-icon { width: 34px; height: 34px; color: var(--wing); margin-bottom: 6px; }
.actions h3 { font-size: 1.625rem; }
.actions p { color: var(--ink-2); max-width: 32ch; }

.setup { background: var(--paper-deep); }
.setup-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.setup-head .section-head { margin-bottom: 0; }
.appearance { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); }
.appearance button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ink-2); font: 600 0.9375rem/1 var(--text); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background-color 0.25s var(--ease-out), color 0.25s; }
.appearance button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px); }
.steps li { display: grid; align-content: start; gap: 12px; }
.steps h3 { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #FFFFFF; font: 600 0.9375rem/1 var(--display); flex: none; }
.steps p { color: var(--ink-2); max-width: 46ch; }
.shot { margin: 0; aspect-ratio: 1360 / 1268; overflow: hidden; border-radius: 16px; box-shadow: 0 0 0 1px rgb(26 58 143 / 0.14), 0 24px 50px -30px rgb(7 11 25 / 0.5); background: var(--sheet); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
[data-look-target="light"] .look-dark, [data-look-target="dark"] .look-light { display: none; }
.step-play { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 20px; background: var(--night); color: var(--moon); }
.step-play h3 { grid-column: 2; grid-row: 1; margin-top: 0; }
.step-play p { grid-column: 2; color: var(--moon-2); }
.step-play .step-n { background: var(--sky); color: var(--night); }
.toast-stack { grid-column: 1; grid-row: 1 / span 2; display: grid; gap: 12px; justify-items: start; }
.toast-stack .toast:nth-child(2) { margin-left: clamp(16px, 3vw, 40px); }

.details-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); }
.spec { margin: 0; border-top: 1.5px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 6px 28px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--ink-2); }

/* The price section holds the two plans: no pop-up. Every "Download for free" button scrolls here.
   Flat cards (no outline, no glow), the price as the big coloured line, the plan name under it. */
.price-stack { display: grid; gap: clamp(32px, 4vw, 48px); }
.price-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 64px); align-items: end; }
.price-intro .lede { color: var(--moon-2); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px 26px 22px; border-radius: 16px; background: #142238; }
.plan[hidden] { display: none; }
.plan-big { font: 600 2.75rem/1 var(--display); letter-spacing: -0.03em; }
.plan-license .plan-big { color: var(--mint); }
.plan-trial .plan-big { color: var(--sky); }
.plan h3 { margin-top: 12px; font: 600 1.0625rem/1.3 var(--text); letter-spacing: 0; color: var(--moon); }
.plan-sub { margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--moon-2); }
.plan ul { margin: 18px 0 24px; padding: 18px 0 0 1.1em; border-top: 1px solid var(--night-rule); font-size: 0.9375rem; line-height: 1.45; color: var(--moon); }
.plan li { padding: 3px 0; text-wrap: pretty; }
.plan li::marker { color: var(--moon-2); }
.plan .btn { width: 100%; min-height: 50px; white-space: normal; text-align: center; line-height: 1.2; }
.plan > .btn, .plan-handoff { margin-top: auto; }
.plan .btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-trial { background: var(--pale-sky); color: var(--night); }
.btn-trial:hover { background: #E2F0FF; }
.plan-fine { margin-top: 14px; min-height: calc(3 * 1.45em); text-align: center; font-size: 0.8125rem; line-height: 1.45; color: var(--moon-2); }
.plan-fine .link { color: var(--moon-2); }
/* On a phone or tablet the trial card hands the page to the Mac instead of downloading. */
.plan-handoff { display: none; }
.is-handheld .plan-handoff { display: grid; gap: 12px; }
.is-handheld .plan-handoff p { font-size: 0.9375rem; line-height: 1.45; color: var(--moon); }
.is-handheld .plan-trial > [data-trial] { display: none; }
/* After "Download free trial": the trial card turns into the two install steps. */
.plan-started { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--moon-2); }
.plan-started svg { width: 18px; height: 18px; flex: none; color: var(--sky); }
.plan-steps h3 { margin-top: 14px; font: 600 1.5rem/1.15 var(--display); letter-spacing: -0.02em; }
.plan-steps h3:focus { outline: none; }
.plan-steps ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; font-size: 0.9375rem; line-height: 1.5; color: var(--moon-2); }
.plan-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.plan-steps .step-n { width: 28px; height: 28px; background: var(--sky); color: var(--night); font-size: 0.875rem; }
.plan-steps strong { font-weight: 600; color: var(--moon); }
.plan-steps .plan-fine { margin-top: auto; padding-top: 20px; min-height: 0; text-align: left; }
.plan-steps .plan-fine .link { color: var(--moon); }

@media (max-width: 1020px) {
  .cs-head { grid-template-columns: 1fr; align-items: start; }
  .demo { grid-template-columns: 1fr; }
  .pad { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pad-title, .pad-status, .pad-note { grid-column: 1 / -1; }
  .pad-btn { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 760px) {
  .cs-title { grid-template-columns: 1fr; }
  .cs-title .lede { grid-column: 1; }
  .actions { grid-template-columns: 1fr; }
  .actions li, .actions li + li { padding: 24px 0 20px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; }
  .step-play { grid-template-columns: 1fr; }
  .step-play h3, .step-play p, .toast-stack { grid-column: 1; grid-row: auto; }
  .toast-stack { margin-bottom: 14px; }
  .toast-stack .toast { white-space: normal; }
  .details-grid, .price-intro { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; }
  .pad { grid-template-columns: 1fr; }
  .pad-btn { grid-template-columns: 6.6rem minmax(0, 1fr); }
  .screen { margin: 6px; border-radius: 12px; box-shadow: 0 0 0 1px #2A3A60, 0 0 0 5px #0E1530, 0 0 0 6px #22305A, 0 30px 60px -30px rgb(0 0 0 / 0.9); }
}

/* ================= support ================= */
.support-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px; border-bottom: 1.5px solid var(--ink); }
.mail-card { display: inline-flex; align-items: center; gap: 16px; padding: 20px 26px 20px 22px; border-radius: 18px; background: var(--ink); color: #FFFFFF; text-decoration: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 18px 34px -20px rgb(7 11 25 / 0.7); transition: transform 0.2s var(--spring); }
.mail-card:hover { transform: translateY(-2px); }
.mail-card svg { width: 30px; height: 30px; color: var(--sky); flex: none; }
.mail-card > span { display: grid; gap: 2px; }
.mail-label { font-size: 0.875rem; color: var(--pale-sky); }
.mail-address { font: 600 clamp(1.125rem, 2vw, 1.375rem)/1.2 var(--display); letter-spacing: -0.01em; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); gap: clamp(32px, 6vw, 96px); padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px); }
.faq-title { font-size: 1.5rem; letter-spacing: -0.02em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; cursor: pointer; list-style: none; font: 600 1.1875rem/1.35 var(--display); letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--wing); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq summary:hover { color: var(--wing); }
.answer { padding: 0 2px 20px; color: var(--ink-2); }
.answer strong { color: var(--ink); }
@media (max-width: 860px) {
  .support-head, .faq-wrap { grid-template-columns: 1fr; }
  .mail-card { justify-self: start; }
}
@media (max-width: 420px) {
  .mail-card { padding: 16px 18px; gap: 12px; }
  .mail-address { font-size: 1.0625rem; }
}

/* ================= legal ================= */
.legal-head { border-bottom: 1.5px solid var(--ink); margin-bottom: clamp(36px, 5vw, 64px); }
.legal-head .lede { max-width: 38rem; }

/* ================= 404 ================= */
.lost { display: grid; gap: 22px; justify-items: start; align-content: center; min-height: calc(100svh - 76px); padding-block: 48px 96px; }
.lost-bird { width: 72px; height: 72px; fill: var(--mint); animation: lost 5s ease-in-out infinite; }
@keyframes lost { 50% { transform: translate(14px, -10px) rotate(6deg); } }

@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 22px 20px 20px; }
  .plan-fine { min-height: 0; }
}

/* Reduce Motion: nothing slides, lifts, spins or bounces, but colour and opacity still fade
   quickly, so hovers and the demo toasts still show what changed.
   Echo's own scripts hold it still themselves. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-property: color, background-color, border-color, text-decoration-color, box-shadow, opacity !important;
    transition-duration: 0.15s !important;
    transition-timing-function: ease !important;
  }
  .btn-primary:hover, .btn-primary:active, a.btn-buy[href]:hover, .mail-card:hover,
  .pad-btn:active, .pad-btn.pressed { transform: none; }
  .toasts .toast, .toasts .toast.out { transform: none; }
  .screen.is-recording .rec-pill { animation: fade-in 0.2s ease; }
  .lost-bird { animation: none; }
}
