/* =========================================================================
   Mactomator — marketing site
   Design tokens mirror the app: native restraint, flat surfaces, hairline
   borders, system fonts, steel-blue accent. Light theme is primary.
   ========================================================================= */

:root {
  /* Color roles */
  --sky: #3574B5;          /* THE accent: buttons, links, focus, selection */
  --sky-hover: #2f66a0;    /* accent, darkened for hover */
  --sky-active: #29597f;
  --ink: #202C39;          /* structure / primary text / dark bands */
  --ink2: #283845;         /* secondary dark */
  --tangerine: #E07A3F;    /* attention / highlight, sparingly */
  --mint: #F6FFF8;         /* near-white text ON dark bands only */
  --canvas: #F4F5F6;       /* page background — neutral, no blue wash */
  --card: #FFFFFF;         /* card surface */

  --hairline: rgba(32, 44, 57, 0.12);   /* ink @ 12% */
  --hairline-strong: rgba(32, 44, 57, 0.18);
  --text: #202C39;
  --text-muted: #55636f;
  --text-faint: #7b8794;

  /* Brand gradient (from the app icon) */
  --brand-grad: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);

  /* Radii */
  --r-control: 6px;
  --r-panel: 8px;
  --r-card: 10px;
  --r-tile: 14px;

  /* Window elevation — windows DO float (distinct from flat cards) */
  --win-shadow:
    0 1px 1px rgba(32, 44, 57, 0.10),
    0 12px 28px rgba(32, 44, 57, 0.20),
    0 2px 6px rgba(32, 44, 57, 0.12);

  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(53, 116, 181, 0.22); }

img, svg { max-width: 100%; }

a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--sky-hover); text-decoration: underline; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--mint);
  padding: 10px 16px;
  border-radius: var(--r-control);
  z-index: 100;
}
.skip-link:focus { left: 12px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(24px, 3.5vw, 44px); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}

.section-head { max-width: 42ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(28px, 4.2vw, 40px); }
.section-head p { color: var(--text-muted); font-size: 18px; margin: 14px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 11px 20px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
}
.btn-primary:hover { background: var(--sky-hover); border-color: var(--sky-hover); color: #fff; text-decoration: none; }
.btn-primary:active { background: var(--sky-active); }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover { background: #fbfcfd; border-color: rgba(32,44,57,0.28); color: var(--ink); text-decoration: none; }

/* Filled ink — the dark side of the theme. Used for the featured pricing tier
   so it reads as a strong CTA WITHOUT borrowing the sky accent, which stays
   reserved for the one trial-download button. */
.btn-dark {
  background: var(--ink);
  color: var(--mint);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink2); border-color: var(--ink2); color: var(--mint); text-decoration: none; }

/* Ink tint — subtle gray, subordinate to .btn-dark (used for the secondary
   pricing tier). Themed, clearly a button, never white-on-white. */
.btn-tonal {
  background: rgba(32, 44, 57, 0.05);
  color: var(--ink);
  border-color: rgba(32, 44, 57, 0.22);
}
.btn-tonal:hover { background: rgba(32, 44, 57, 0.09); border-color: rgba(32, 44, 57, 0.36); color: var(--ink); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--mint);
  border-color: rgba(246, 255, 248, 0.35);
}
.btn-ghost:hover { background: rgba(246,255,248,0.10); color: var(--mint); text-decoration: none; }

.btn-sm { padding: 8px 15px; font-size: 15px; }

/* Non-interactive placeholder button ("Coming soon" before Paddle go-live). */
.btn.is-disabled { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 246, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a.nav-link {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-control);
}
.nav a.nav-link:hover { color: var(--ink); background: rgba(32,44,57,0.05); text-decoration: none; }

.nav-cta { margin-left: 6px; }

/* Hamburger toggle — hidden on desktop, shown ≤640px */
.nav-toggle {
  display: none;
  margin-left: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-control);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle:hover { background: rgba(32,44,57,0.05); }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars i {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 5px; }
.nav-toggle-bars i:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* On small screens: collapse the inline nav into a dropdown panel */
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    /* hidden until opened */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .nav a.nav-link {
    display: block;
    padding: 10px 12px;
    font-size: 16px;
  }
  /* Download stays in the header bar (outside the hamburger), pushed right */
  .nav-cta { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1.15fr; }
}

.hero-copy h1 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.03em;
}
.hero-copy .lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-muted);
  margin: 20px 0 0;
  max-width: 40ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { flex: none; }

/* =========================================================================
   Mac window component + animated demos
   ========================================================================= */

.mac-window {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--hairline);
  box-shadow: var(--win-shadow);
  overflow: hidden;
}
.mac-titlebar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(180deg, #fbfbfc 0%, #f0f1f3 100%);
  border-bottom: 1px solid var(--hairline);
}
.traffic { display: inline-flex; gap: 8px; }
.traffic i {
  width: 12px; height: 12px; border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.10);
}
.traffic .r { background: #FF5F57; }
.traffic .y { background: #FEBC2E; }
.traffic .g { background: #28C840; }
.mac-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  margin: 0 auto;
  padding-right: 44px; /* balance the traffic lights */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mac-content { padding: 16px; }

/* ---------- Demo stage (faux desktop) ---------- */
.demo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-tile);
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 20% 0%, #6ea0d8 0%, #3d6fb0 42%, #2a4f83 100%);
  border: 1px solid rgba(32,44,57,0.18);
  box-shadow: var(--win-shadow);
}
/* subtle menubar on the faux desktop */
.demo-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 22px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  z-index: 3;
}

/* Demo 1: maximize on 3-finger swipe up */
.demo-window {
  position: absolute;
  inset: 30% 30% 30% 30%;
  animation: maximize 6s cubic-bezier(.4,0,.2,1) infinite;
}
.demo-window .mac-content { padding: 12px; }
.doc-line {
  height: 9px;
  border-radius: 3px;
  background: rgba(32,44,57,0.10);
  margin-bottom: 9px;
}
.doc-line.short { width: 45%; }
.doc-line.mid { width: 72%; }
.doc-line.accent { background: rgba(53,116,181,0.30); width: 58%; }

@keyframes maximize {
  0%, 14%   { inset: 30% 30% 30% 30%; }
  40%, 78%  { inset: 30px 12px 12px 12px; }
  94%, 100% { inset: 30% 30% 30% 30%; }
}

/* Gesture hint: cursor + trackpad glyph with 3 finger dots swiping up */
.gesture-hint {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: hintFade 6s ease infinite;
}
@keyframes hintFade {
  0%, 8%    { opacity: 0; }
  14%, 44%  { opacity: 1; }
  56%, 100% { opacity: 0; }
}
.pad {
  position: relative;
  width: 72px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #e6eaf0);
  border: 1px solid rgba(32,44,57,0.22);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.pad .finger {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--sky);
  bottom: 10px;
  box-shadow: 0 2px 5px rgba(53,116,181,0.5);
  animation: fingerUp 6s ease infinite;
}
.pad .finger.f1 { left: 16px; }
.pad .finger.f2 { left: 30px; }
.pad .finger.f3 { left: 44px; }
@keyframes fingerUp {
  0%, 12%   { transform: translateY(0); opacity: 0; }
  16%       { opacity: 1; }
  40%       { transform: translateY(-22px); opacity: 1; }
  50%, 100% { transform: translateY(-22px); opacity: 0; }
}
.hint-label {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(32,44,57,0.72);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* click ripple pulse near the pad */
.ripple {
  position: absolute;
  left: 50%; bottom: 8%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  z-index: 4;
  animation: ripple 6s ease infinite;
  opacity: 0;
}
@keyframes ripple {
  0%, 12%  { opacity: 0; transform: scale(0.4); }
  14%      { opacity: 0.9; transform: scale(0.4); }
  26%      { opacity: 0; transform: scale(2.6); }
  100%     { opacity: 0; transform: scale(2.6); }
}

/* keycap */
.kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #edeff2);
  border: 1px solid rgba(32,44,57,0.28);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 8px;
  min-width: 26px;
  text-align: center;
  display: inline-block;
  line-height: 1.3;
}
.key-hint .kbd { box-shadow: 0 2px 5px rgba(0,0,0,0.25); }

/* =========================================================================
   Features
   ========================================================================= */
.features { background: var(--canvas); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 620px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .feature-grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 12px 28px rgba(0,0,0,0.08);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--hairline-strong); background: #fdfdfe; box-shadow: 0 2px 6px rgba(0,0,0,0.07), 0 20px 42px rgba(0,0,0,0.13); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(53,116,181,0.10);
  color: var(--sky);
}
.card-icon svg { width: 24px; height: 24px; display: block; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.55; }

/* =========================================================================
   Scene gallery — bespoke window-management animations (the star)
   ========================================================================= */
.scene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 780px) { .scene-grid { grid-template-columns: 1fr 1fr; } }

.scene {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 12px 28px rgba(0,0,0,0.08);
  transition: border-color .15s ease, box-shadow .2s ease;
}
.scene:hover { border-color: var(--hairline-strong); box-shadow: 0 2px 6px rgba(0,0,0,0.07), 0 20px 42px rgba(0,0,0,0.13); }

/* ---- Highlighted, animated feature tiles (mouse, per-device, per-app, profiles) ---- */
.feat2-grid { display: grid; gap: 22px; max-width: 560px; margin-inline: auto; }
@media (min-width: 820px) { .feat2-grid { grid-template-columns: 1fr 1fr; max-width: none; } }
.feat2-tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 12px 28px rgba(0,0,0,0.08);
  transition: box-shadow .2s ease, border-color .15s ease;
}
.feat2-tile:hover { border-color: var(--hairline-strong); box-shadow: 0 2px 6px rgba(0,0,0,0.07), 0 20px 42px rgba(0,0,0,0.13); }
.feat2-stage {
  position: relative;
  height: 272px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #eef1f5 0%, #dde3ea 100%);
  border-bottom: 1px solid var(--hairline);
}
.feat2-caption { padding: 18px 20px 20px; }
.feat2-caption h3 { font-size: 18px; margin-bottom: 6px; }
.feat2-caption p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* the current action, a pill at the bottom of the stage that crossfades */
.feat2-callout { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; pointer-events: none; }
.feat2-action {
  display: inline-block;
  background: #1f2634; color: #fff;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  transition: opacity .3s ease;
}
.feat2-action.is-fading { opacity: 0; }

/* the mouse illustration */
.mouse-svg { width: 132px; height: auto; display: block; }
.mouse-body { fill: #fff; stroke: #9aa4b2; stroke-width: 2.5; }
.mouse-seam { stroke: #c3cbd7; stroke-width: 2; }
.mzone {
  fill: #fff; stroke: #c3cbd7; stroke-width: 2;
  transition: fill .25s ease, stroke .25s ease, filter .25s ease;
}
/* thumb buttons: slightly recessed grey so they read as buttons on the flank */
.mzone.side1, .mzone.side2 { fill: #e7ebf1; stroke: #aab4c2; }
.mzone.left { fill: transparent; stroke: none; }          /* invisible until active */
.mzone.is-active { fill: var(--sky); stroke: var(--sky); filter: drop-shadow(0 0 7px rgba(53,116,181,0.6)); }
.mzone.left.is-active { fill: rgba(53,116,181,0.9); filter: drop-shadow(0 0 8px rgba(53,116,181,0.5)); }
.mouse-cmd { fill: #fff; font: 700 18px system-ui, -apple-system, sans-serif; text-anchor: middle; opacity: 0; transition: opacity .25s ease; }
.mouse-cmd.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mzone, .mouse-cmd, .feat2-action { transition: none; }
}

/* Pause a section's looping animations while it's scrolled off-screen — the
   shared IntersectionObserver in index.html toggles `.anim-off`. Big CPU/GPU
   win: nothing animates when you can't see it. */
.anim-off, .anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }

/* ---- Shared: a visual + a "When you …, Mactomator will …" sentence ---- */
.feat2-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; text-align: center; }
.feat2-sentence { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); max-width: 280px; }
.feat2-sentence b { color: var(--sky); font-weight: 600; }
.feat2-sentence.is-fading b { opacity: 0; }
.feat2-sentence b { transition: opacity .35s ease; }

/* ---- Per-device tile: the same ⌘K on two keyboards, different action each ---- */
.dev-pair { display: flex; gap: 16px; align-items: stretch; }
.dev {
  min-width: 96px; padding: 12px 12px 13px; border-radius: 12px;
  background: #fff; border: 1px solid #ccd4df; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  opacity: .5;
  transition: opacity .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.dev.is-active {
  opacity: 1; border-color: var(--sky); transform: translateY(-3px);
  box-shadow: 0 0 0 2px rgba(53,116,181,0.22), 0 8px 18px rgba(53,116,181,0.16);
}
.dev-cap { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.dev-combo { display: inline-flex; gap: 5px; }
.dev-combo kbd {
  min-width: 22px; padding: 3px 6px; border-radius: 6px;
  background: #eef1f6; border: 1px solid #d3dae4; box-shadow: 0 1px 0 #d3dae4;
  font: 600 12px system-ui, -apple-system, sans-serif; color: var(--text);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.dev.is-active .dev-combo kbd {
  background: var(--sky); color: #fff; border-color: var(--sky);
  box-shadow: 0 0 8px rgba(53,116,181,0.55);
}

/* ---- Per-app tile: the frontmost app pill cycles ---- */
.app-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #ccd4df; border-radius: 999px;
  padding: 9px 18px 9px 11px; box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: opacity .3s ease;
}
.app-pill.is-fading { opacity: 0; }
.app-dot { width: 22px; height: 22px; border-radius: 7px; background: #6b2a75; transition: background .3s ease; }
.app-name { font-size: 15px; font-weight: 600; color: var(--text); }

/* ---- Shareable profiles tile: a profile flies off to a friend (CSS loop) ---- */
.profiles-demo { display: flex; align-items: center; gap: 26px; }
.prof-stack { position: relative; width: 120px; height: 100px; }
.prof {
  position: absolute; left: 6px; width: 104px; padding: 11px 14px;
  border-radius: 10px; background: #fff; border: 1px solid #ccd4df;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.prof-3 { top: 2px;  transform: translate(10px, 0) rotate(-4deg); z-index: 1; }
.prof-2 { top: 16px; transform: translate(3px, 0) rotate(2deg);  z-index: 2; }
.prof-1 { top: 34px; z-index: 3; }
.prof-fly { animation: profFly 4.6s ease-in-out infinite; }
@keyframes profFly {
  0%        { transform: translate(0,0) scale(1); opacity: 0; }
  8%        { opacity: 1; }
  14%       { transform: translate(0,0) scale(1); opacity: 1; }
  56%       { transform: translate(150px,-16px) scale(.72); opacity: 1; }
  72%, 100% { transform: translate(150px,-16px) scale(.72); opacity: 0; }
}
.prof-target { color: var(--sky); flex: none; }
.prof-target svg { width: 42px; height: 42px; }
.scene-caption { padding: 16px 18px 18px; }
.scene-caption h3 { font-size: 17px; margin-bottom: 5px; }
.scene-caption p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.5; }
.scene-caption .trigger {
  display: inline-flex; gap: 6px; align-items: center;
  margin-bottom: 10px;
}

/* A faux desktop that hosts a scene */
.desk {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: radial-gradient(120% 130% at 25% 0%, #6ea0d8 0%, #3d6fb0 44%, #2a4f83 100%);
  border-bottom: 1px solid var(--hairline);
}
.desk.alt { background: radial-gradient(120% 130% at 78% 0%, #7a9bc9 0%, #47689b 46%, #2f4a72 100%); }
.desk::before { /* faux menu bar */
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 18px;
  background: rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  z-index: 5;
}

/* small window used inside scenes */
.win {
  position: absolute;
  border-radius: 8px;
}
.win .mac-titlebar { height: 22px; }
.win .traffic i { width: 8px; height: 8px; }
.win .mac-title { font-size: 10px; padding-right: 30px; }
.win .mac-content { padding: 9px; }
.win .doc-line { height: 6px; border-radius: 2px; margin-bottom: 6px; }

/* ---- Scene A: snap into a grid zone ---- */
.scene-snap .grid-lines {
  position: absolute; inset: 22px 12px 12px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px; z-index: 1;
}
.scene-snap .grid-lines i { border: 1px dashed rgba(255,255,255,0.32); border-radius: 7px; }
.scene-snap .win {
  z-index: 3;
  top: 40%; left: 42%; width: 44%; height: 46%;   /* floating start */
  animation: snapZone 5.5s cubic-bezier(.4,0,.2,1) infinite;
}
/* The top-left grid cell, matching .grid-lines (inset 22/12/12/12, gap 7). */
@keyframes snapZone {
  0%, 20%   { top: 40%; left: 42%; width: 44%; height: 46%; }                                   /* floating */
  38%, 74%  { top: 22px; left: 12px; width: calc((100% - 31px) / 2); height: calc((100% - 41px) / 2); }  /* snapped into the cell */
  92%, 100% { top: 40%; left: 42%; width: 44%; height: 46%; }
}
/* snap glow flashes as it lands — sits exactly on the top-left cell */
.scene-snap .zone-glow {
  position: absolute;
  top: 22px; left: 12px; width: calc((100% - 31px) / 2); height: calc((100% - 41px) / 2);
  border-radius: 8px;
  border: 2px solid var(--tangerine);
  background: rgba(224,122,63,0.14);
  z-index: 2; opacity: 0;
  animation: zoneFlash 5.5s ease infinite;
}
@keyframes zoneFlash {
  0%, 26%  { opacity: 0; }
  32%      { opacity: 1; }
  46%, 100%{ opacity: 0; }
}

/* ---- Scene B: walk across a proportional grid with the keyboard ---- */
.scene-walk .grid-lines {
  position: absolute; inset: 22px 12px 12px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px; z-index: 1;
}
.scene-walk .grid-lines i { border: 1px dashed rgba(255,255,255,0.32); border-radius: 7px; }
.scene-walk .win {
  z-index: 3;
  top: 22px; left: 12px;
  width: calc((100% - 24px - 14px) / 3);
  height: calc((100% - 34px - 7px) / 2);
  animation: gridwalk 7s steps(1, end) infinite;
}
@keyframes gridwalk {
  0%, 16%   { transform: translate(0, 0); }
  20%, 36%  { transform: translate(calc(100% + 7px), 0); }
  40%, 56%  { transform: translate(calc(200% + 14px), 0); }
  60%, 76%  { transform: translate(calc(200% + 14px), calc(100% + 7px)); }
  80%, 96%  { transform: translate(calc(100% + 7px), calc(100% + 7px)); }
  100%      { transform: translate(0, 0); }
}

/* ---- Scene E: center a window in place (no resize) ---- */
.scene-recenter .win {
  z-index: 3;
  width: 40%; height: 46%;
  top: 11%; left: 6%;
  animation: recenter 5.5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes recenter {
  0%, 18%  { top: 11%; left: 6%; }
  40%, 78% { top: 29%; left: 30%; }   /* dead center: (100 - 40) / 2, nudged for the menu bar */
  96%,100% { top: 11%; left: 6%; }
}
/* ghost target the window settles onto */
.scene-recenter .center-guide {
  position: absolute; z-index: 1;
  top: 29%; left: 30%; width: 40%; height: 46%;
  border: 1.5px dashed rgba(255,255,255,0.34);
  border-radius: 8px;
  opacity: 0;
  animation: centerGuide 5.5s ease infinite;
}
@keyframes centerGuide {
  0%, 22%  { opacity: 0; }
  30%      { opacity: 0.6; }
  44%,100% { opacity: 0; }
}

/* trigger row keycaps in captions */
.trigger .kbd { font-size: 12px; padding: 2px 7px; min-width: 22px; }
.trigger .plus { color: var(--text-faint); font-size: 13px; }
.trigger .via { color: var(--text-faint); font-size: 13px; margin-left: 4px; }

/* =========================================================================
   Marquee — featured triggers & actions, animated live (like the hero)
   ========================================================================= */
.marquee { background: var(--canvas); }

.marquee-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 4px 0 16px;
}
.marquee .tile-row + .marquee-label { margin-top: 40px; }

.tile-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 680px) { .tile-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .tile-row { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 940px) { .tile-row--4 { grid-template-columns: repeat(4, 1fr); } }

.tile {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 12px 28px rgba(0,0,0,0.08);
  transition: border-color .15s ease, box-shadow .2s ease;
}
.tile:hover { border-color: var(--hairline-strong); box-shadow: 0 2px 6px rgba(0,0,0,0.07), 0 20px 42px rgba(0,0,0,0.13); }

.tile-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.tile-stage.device { background: linear-gradient(180deg, #eef1f5 0%, #dde3ea 100%); }
.tile-stage.desk {
  background: radial-gradient(120% 130% at 25% 0%, #6ea0d8 0%, #3d6fb0 44%, #2a4f83 100%);
}
.tile-stage.desk::before { /* faux menu bar */
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 14px;
  background: rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  z-index: 5;
}

.tile-cap { padding: 14px 16px 16px; }
.tile-cap .tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 7px;
}
.tile-cap h4 { font-size: 16px; margin-bottom: 5px; }
.tile-cap p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ---- shared touch primitives ---- */
.tp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62%; aspect-ratio: 1.4 / 1;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #e6eaf0);
  border: 1px solid rgba(32,44,57,0.22);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
}
.dot {
  position: absolute;
  width: 13%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6fa3d8, #3574B5 62%, #2a5d93);
  box-shadow: 0 2px 6px rgba(53,116,181,0.45);
}
.ring {
  position: absolute;
  width: 13%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(53,116,181,0.7);
  opacity: 0;
}

/* ---- Trigger: tip-tap on the LEFT (fingers rest on the right; a finger taps on their left) ---- */
.rest1 { left: 50%; top: 43%; }
.rest2 { left: 64%; top: 43%; }
.tt-tap  { left: 24%; top: 43%; animation: ttTap  2.4s ease-in-out infinite; }
.tt-ring { left: 24%; top: 43%; animation: ttRing 2.4s ease-out    infinite; }
@keyframes ttTap {
  0%, 22%  { opacity: 0; transform: scale(0.5); }
  32%, 46% { opacity: 1; transform: scale(1); }
  58%,100% { opacity: 0; transform: scale(0.5); }
}
@keyframes ttRing {
  0%, 26% { opacity: 0; transform: scale(0.7); }
  34%     { opacity: 0.85; transform: scale(1); }
  60%     { opacity: 0; transform: scale(2.4); }
  100%    { opacity: 0; }
}

/* ---- Trigger: force-click ---- */
.fc-dot  { left: 43.5%; top: 40%; animation: fcPress 2.4s ease-in-out infinite; }
.fc-ring { left: 43.5%; top: 40%; animation: fcRing  2.4s ease-out    infinite; }
.fc-ring2 { animation-delay: 0.28s; }
@keyframes fcPress {
  0%, 22%  { transform: scale(1); }
  38%      { transform: scale(1.34); }
  58%      { transform: scale(1.12); }
  74%,100% { transform: scale(1); }
}
@keyframes fcRing {
  0%, 22% { opacity: 0; transform: scale(0.6); }
  32%     { opacity: 0.9; transform: scale(0.9); }
  70%     { opacity: 0; transform: scale(2.6); }
  100%    { opacity: 0; }
}

/* ---- Trigger: Magic Mouse (proper silhouette, animated finger dots on top) ---- */
.mm-wrap {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30%;
}
.mm-svg {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.16));
}
.mm-wrap .dot { width: 20%; }
.mm1 { left: 24%; top: 40%; animation: mmSwipe 2.6s ease-in-out infinite; }
.mm2 { left: 56%; top: 40%; animation: mmSwipe 2.6s ease-in-out infinite; }
@keyframes mmSwipe {
  0%, 14%  { transform: translateY(0);    opacity: 0; }
  24%      { opacity: 1; }
  56%      { transform: translateY(-46%); opacity: 1; }
  70%,100% { transform: translateY(-46%); opacity: 0; }
}

/* ---- Trigger: key sequence (keycaps press in sequence) ---- */
.keys {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 12px;
}
.keycap {
  width: 34px; height: 38px;
  display: grid; place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px; font-weight: 600; color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #eceef2);
  border: 1px solid rgba(32,44,57,0.28);
  border-bottom-width: 3px;
  border-radius: 7px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.14);
  animation: keyPress 3.2s ease infinite;
}
.kc1 { animation-delay: 0s; }
.kc2 { animation-delay: 0.28s; }
.kc3 { animation-delay: 0.56s; }
@keyframes keyPress {
  0%, 6% {
    transform: translateY(0); border-bottom-width: 3px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.14);
    background: linear-gradient(180deg, #ffffff, #eceef2);
  }
  11% {
    transform: translateY(3px); border-bottom-width: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.14);
    background: linear-gradient(180deg, #eef3f9, #dbe6f2);
  }
  20%, 100% {
    transform: translateY(0); border-bottom-width: 3px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.14);
    background: linear-gradient(180deg, #ffffff, #eceef2);
  }
}

/* ---- Action: run a script (terminal) ---- */
.term-win {
  position: absolute; top: 15%; left: 11%; width: 78%; height: 68%;
  z-index: 2;
}
.term-body {
  height: calc(100% - 22px);
  background: #1b2430;
  padding: 12px 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; line-height: 1.7;
}
.term-row { white-space: nowrap; color: #cdd8e3; }
.term-prompt { color: #7fb0e0; margin-right: 6px; }
.term-typed {
  display: inline-block; overflow: hidden; white-space: nowrap;
  vertical-align: bottom; width: 0;
  border-right: 1.5px solid #8fd6a0;
  animation: termType 4s steps(9, end) infinite, termCaret 0.65s step-end infinite;
}
.term-out {
  color: #8fd6a0; opacity: 0;
  animation: termOut 4s ease infinite;
}
@keyframes termType {
  0%       { width: 0; }
  28%      { width: 9ch; }
  86%      { width: 9ch; }
  92%,100% { width: 0; }
}
@keyframes termCaret {
  50% { border-color: transparent; }
}
@keyframes termOut {
  0%, 40%  { opacity: 0; }
  48%, 84% { opacity: 1; }
  90%,100% { opacity: 0; }
}

/* ---- Action: app switcher (⌘-Tab) ---- */
.switcher {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 7%; align-items: center;
  width: 76%; padding: 5%;
  background: rgba(24,32,42,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  z-index: 2;
}
.switcher .sel { display: none; }
.switcher .app {
  flex: 1; aspect-ratio: 1; border-radius: 22%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  animation: swSel 4s ease infinite;
}
.switcher .a1 { background: linear-gradient(135deg, #5b95d0, #3574B5); animation-delay: 0s; }
.switcher .a2 { background: linear-gradient(135deg, #E07A3F, #c85f28); animation-delay: 1s; }
.switcher .a3 { background: linear-gradient(135deg, #5ac27a, #38a35a); animation-delay: 2s; }
.switcher .a4 { background: linear-gradient(135deg, #b07ad0, #8a52b5); animation-delay: 3s; }
@keyframes swSel {
  0%              { box-shadow: 0 0 0 0 rgba(255,255,255,0),   0 2px 6px rgba(0,0,0,0.25); transform: scale(1); }
  1%, 24%         { box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 2px 6px rgba(0,0,0,0.25); transform: scale(1.09); }
  26%, 100%       { box-shadow: 0 0 0 0 rgba(255,255,255,0),   0 2px 6px rgba(0,0,0,0.25); transform: scale(1); }
}

/* ---- Action: fire an app's menu command ---- */
.menu-win {
  position: absolute; top: 15%; left: 12%; width: 76%; height: 70%;
  z-index: 2;
}
.menu-strip {
  display: flex; gap: 10px;
  padding: 4px 9px;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
  font-size: 10px; font-weight: 600; color: var(--text-muted);
}
.menu-strip .mt { padding: 1px 5px; border-radius: 3px; }
.menu-strip .mt.hot { animation: menuHot 3.2s ease infinite; }
.menu-drop {
  position: absolute; top: 42px; left: 8px; width: 52%;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.16);
  padding: 5px; display: grid; gap: 4px; z-index: 3;
  transform-origin: top center;
  animation: menuOpen 3.2s ease infinite;
}
.menu-drop .mi { height: 8px; border-radius: 3px; background: rgba(32,44,57,0.12); }
.menu-drop .mi.sel { animation: miSel 3.2s ease infinite; }
@keyframes menuOpen {
  0%, 12%  { opacity: 0; transform: scaleY(0.55); }
  20%, 80% { opacity: 1; transform: scaleY(1); }
  90%,100% { opacity: 0; transform: scaleY(0.55); }
}
@keyframes menuHot {
  0%, 12%  { background: transparent; color: var(--text-muted); }
  20%, 80% { background: var(--sky); color: #fff; }
  90%,100% { background: transparent; color: var(--text-muted); }
}
@keyframes miSel {
  0%, 40%  { background: rgba(32,44,57,0.12); }
  52%, 74% { background: var(--sky); }
  86%,100% { background: rgba(32,44,57,0.12); }
}

/* ---- "and much more" pills ---- */
.marquee-more {
  margin: 14px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 15px; color: var(--text-muted);
}
.marquee-more .pill {
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 11px;
}

/* =========================================================================
   The editor — screenshot + interactive sentence builder
   ========================================================================= */
.editor-sec { background: var(--canvas); }

.builder { margin-bottom: clamp(28px, 4vw, 44px); }
.chip-group {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.chip-label {
  font-size: 13px; font-weight: 600; color: var(--text-faint);
  margin-right: 4px; min-width: 118px;
}
.chip {
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text); cursor: pointer;
  background: var(--card);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--sky); }
.chip.is-on { background: var(--sky); color: #fff; border-color: var(--sky); }

.builder-sentence {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-muted);
  margin: 20px 0 0;
  line-height: 1.5;
}
/* Each blue label crossfades on its own — the demo alternates: trigger, then
   action, then trigger… only one changes at a time. */
.builder-sentence b { color: var(--sky); font-weight: 600; transition: opacity .4s ease; }
.builder-sentence b.is-fading { opacity: 0; }

.editor-shot { margin: 0; }
.editor-shot img {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  height: auto;
}

/* =========================================================================
   How it works — dark ink band
   ========================================================================= */
.band-dark {
  background: var(--ink);
  color: var(--mint);
}
.band-dark .eyebrow { color: #8fb6dd; }
.band-dark .section-head h2 { color: var(--mint); }
.band-dark .section-head p { color: rgba(246,255,248,0.7); }

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
}
@media (min-width: 860px) { .how-grid { grid-template-columns: 1fr 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.step-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  background: rgba(246,255,248,0.10);
  color: var(--mint);
  border: 1px solid rgba(246,255,248,0.18);
}
.steps h3 { color: var(--mint); font-size: 17px; margin-bottom: 4px; }
.steps p { margin: 0; color: rgba(246,255,248,0.72); font-size: 15.5px; }

/* =========================================================================
   Pricing
   ========================================================================= */
.btn-lg { font-size: 17px; padding: 15px 30px; }

.trial-cta { text-align: center; margin-bottom: 30px; }
.trial-cta .btn-lg { box-shadow: 0 6px 18px rgba(53,116,181,0.28); }
.trial-note { margin: 12px 0 0; font-size: 14px; color: var(--text-faint); }

.buy-label {
  text-align: center;
  margin: 0 0 16px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-faint);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 760px;
  margin-inline: auto;
}
@media (min-width: 720px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }

.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan--featured { border-color: var(--sky); border-width: 1.5px; }
.plan-badge {
  position: absolute;
  top: -11px; left: 28px;
  background: var(--sky);
  color: #fff;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
}
.plan h3 { font-size: 20px; }
.plan .plan-sub { color: var(--text-muted); font-size: 15px; margin: 6px 0 0; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 4px; }
.price .amount { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.price .term { color: var(--text-faint); font-size: 15px; }
.price-note { font-size: 13.5px; color: var(--text-faint); margin: 0 0 20px; }
.plan ul {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; gap: 11px;
  font-size: 15px; color: var(--text-muted);
}
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--sky); }
.plan .btn { margin-top: auto; justify-content: center; }
.pricing-fineprint {
  text-align: center;
  margin-top: 26px;
  font-size: 14px;
  color: var(--text-faint);
}

/* =========================================================================
   Legal pages (privacy, terms)
   ========================================================================= */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4.5vw, 40px); margin-bottom: 8px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--text-muted); font-size: 16px; line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { font-weight: 500; }
.legal .draft-note {
  background: rgba(224,122,63,0.10);
  border: 1px solid rgba(224,122,63,0.35);
  border-radius: var(--r-card);
  padding: 12px 16px; font-size: 14px; color: var(--text);
  margin-bottom: 28px;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(246,255,248,0.7);
  padding-block: 48px;
  border-top: 1px solid rgba(246,255,248,0.08);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer-brand span { color: var(--mint); font-weight: 600; }
.footer-tag { font-size: 14px; margin: 10px 0 0; max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { color: rgba(246,255,248,0.72); font-size: 15px; }
.footer-nav a:hover { color: var(--mint); }
.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(246,255,248,0.10);
  font-size: 13.5px;
  color: rgba(246,255,248,0.55);
}

/* =========================================================================
   Interactive tilt + cursor spotlight on cards
   Opt-in: the .tilt-card class and the .card-spotlight child are added by JS.
   ========================================================================= */
.tilt-card { transform-style: preserve-3d; will-change: transform; }
/* Content sits above the spotlight; the spotlight glows on the card surface
   behind it (same trick as the source site). */
.tilt-card > *:not(.card-spotlight) { position: relative; z-index: 2; }
.card-spotlight {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.3s ease-out;
  background: radial-gradient(
    circle 180px at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(255, 255, 255, 0.15),
    transparent 80%
  );
  mix-blend-mode: difference;
}

/* =========================================================================
   Reduced motion — freeze demos on a sensible static frame
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  /* Freeze hero demo on the maximized frame */
  .demo-window { inset: 30px 12px 12px 12px; }
  .gesture-hint, .ripple { opacity: 0; }
  /* Freeze scenes on a legible resting frame */
  .scene-snap .win { top: 22px; left: 12px; width: calc((100% - 31px) / 2); height: calc((100% - 41px) / 2); }
  .scene-snap .zone-glow { opacity: 0; }
  .scene-walk .win { transform: translate(calc(200% + 14px), 0); }
  .scene-recenter .win { top: 29%; left: 30%; }
  .scene-recenter .center-guide { opacity: 0; }
  /* Marquee tiles freeze on a legible frame */
  .tt-tap, .mm1, .mm2, .menu-drop { opacity: 1 !important; }
  .tt-ring, .fc-ring { opacity: 0 !important; }
  .menu-drop { transform: none !important; }
  .menu-strip .mt.hot { background: var(--sky); color: #fff; }
  .menu-drop .mi.sel { background: var(--sky); }
  .term-typed { width: 9ch !important; border-color: transparent !important; }
  .term-out { opacity: 1 !important; }
  .switcher .a1 { box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 2px 6px rgba(0,0,0,0.25) !important; }
}

/* =========================================================================
   Optional dark pass — tasteful, secondary to the light theme
   ========================================================================= */
/* ============================ FAQ ============================ */
.faq { padding-block: clamp(56px, 8vw, 96px); }
.faq .section-head { max-width: none; }
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--sky); }
/* Chevron marker, rotates when open */
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: -2px;
}
.faq-body {
  padding: 0 22px 20px;
}
.faq-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171e26;
    --card: #202a34;
    --text: #e7ecf1;
    --text-muted: #a7b2bd;
    --text-faint: #7f8b97;
    --hairline: rgba(246, 255, 248, 0.12);
    --hairline-strong: rgba(246, 255, 248, 0.20);
    --sky: #5b95d0;
    --sky-hover: #6ea3d9;
    --sky-active: #7fb0e0;
  }
  body { background: var(--canvas); }
  .site-header { background: rgba(23, 30, 38, 0.82); }
  .brand, .card h3, .price .amount, .faq-item summary { color: var(--text); }
  .faq-item summary:hover { color: var(--sky); }
  .nav a.nav-link:hover { background: rgba(246,255,248,0.06); color: var(--text); }
  .btn-primary { color: #0f1720; }
  .btn-primary:hover { color: #0f1720; }
  .btn-secondary { background: var(--card); color: var(--text); }
  .btn-secondary:hover { background: #263340; }
  /* Filled ink would disappear on dark cards → invert to a light fill. */
  .btn-dark { background: rgba(246, 255, 248, 0.92); color: #0f1720; border-color: rgba(246, 255, 248, 0.92); }
  .btn-dark:hover { background: #fff; color: #0f1720; border-color: #fff; }
  .btn-tonal { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: rgba(255, 255, 255, 0.20); }
  .btn-tonal:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); border-color: rgba(255, 255, 255, 0.34); }
  .mac-titlebar { background: linear-gradient(180deg, #2a3540 0%, #232e38 100%); }
  .doc-line { background: rgba(255,255,255,0.10); }
  .card:hover { background: #243039; }
  .features { background: var(--canvas); }
  .kbd { color: #0f1720; }
}

.cbold {
    color: var(--sky);
}

.cbold-w {
    color: var(--mint);
}