/* TrackEdge website. Dark, product-page style; accent matches the app icon (#14B8A6). Colours are tokens here; the
   home page overrides them with a light set in light.css. */
:root {
  --bg: #000;
  --bg-raised: #0d0f10;
  --card: #141617;
  --card-hi: #1b1e20;
  --line: rgba(255, 255, 255, 0.09);
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --accent: #14b8a6;
  --accent-hi: #5eead4;      /* accent as text and icons */
  --accent-hover: #5eead4;   /* accent buttons on hover */
  --accent-ink: #00110f;
  --glow: linear-gradient(100deg, #99f6e4 0%, #14b8a6 45%, #38bdf8 100%);
  --nav-bg: rgba(0, 0, 0, 0.72);
  /* macOS-style mock windows (Settings, the menu) and their fills */
  --panel: #1e1f22;
  --panel-menu: rgba(36, 38, 41, 0.86);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-shadow: rgba(0, 0, 0, 0.6);
  --fill-1: rgba(255, 255, 255, 0.05);
  --fill-2: rgba(255, 255, 255, 0.1);
  --fill-3: rgba(255, 255, 255, 0.16);
  --hairline: rgba(255, 255, 255, 0.07);
  --knob: #e5e5ea;
  --pad: linear-gradient(170deg, #2f3337, #222528);
  --kbd: linear-gradient(#2d3135, #1f2225);
  --kbd-border: #3a3e42;
  --kbd-shadow: #0b0c0d;
  --offer-fg: #fed7aa;
  --offer-strong: #fb923c;
  --tint: rgba(20, 184, 166, 0.12);         /* soft accent wash on cards */
  --tint-glow: rgba(20, 184, 166, 0.16);    /* glows behind sections and mocks */
  --tint-border: rgba(45, 212, 191, 0.35);
  --tint-border-strong: rgba(45, 212, 191, 0.55);
  --tint-dot: rgba(45, 212, 191, 0.7);      /* glow around small accent dots */
  --card-shadow: none;
  --film-disc: linear-gradient(135deg, #5eead4 0%, #14b8a6 50%, #0ea5e9 100%);
  --film-disc-ink: #00110f;
  --film-ring: rgba(45, 212, 191, 0.22);
  --radius: 28px;
  --max: 1080px;
  color-scheme: dark;
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.025em;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fine { font-size: 13px; color: var(--dim); line-height: 1.6; }

.glow {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 5px; }

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 13px; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }

.pill {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
.pill:hover { text-decoration: none; background: var(--accent-hover); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  background: var(--card-hi);
  color: var(--fg);
  transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-hover); }

.link-arrow { font-size: 17px; }
.link-arrow::after { content: " ›"; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 16px 40px;
  text-align: center;
}

.eyebrow {
  color: var(--accent-hi);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 104px);
  line-height: 1.02;
  font-weight: 700;
}

.hero-sub {
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.35;
  color: var(--muted);
  max-width: 700px;
  margin: 22px auto 32px;
  font-weight: 500;
}

.hero .fine { margin-top: 18px; }
.button .apple { margin: 0 9px 0 -2px; vertical-align: -2px; }

/* The film under the hero (same pattern as Findy's site): a rounded 16:9 picture. Before it starts it shows its
   poster with a big play button in the accent gradient and three faint rings pulsing out of it like a radar (still
   under prefers-reduced-motion). It plays with sound; the corner button mutes it, and Replay comes up at the end.
   A click on the picture pauses it, and the play button comes back (site.js keeps data-state and data-sound). */
.film { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; margin: 44px auto 0; overflow: hidden;
  border-radius: 18px; background: #000; cursor: pointer; border: 1px solid var(--line);
  box-shadow: 0 30px 90px var(--tint-glow), 0 8px 24px rgba(0, 0, 0, 0.25); }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 0.4s;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)) center / 40% 60% no-repeat; }
.film:not([data-state="idle"])::after { opacity: 0; }
.film__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--film-disc-ink); cursor: pointer; transition: opacity 0.3s, transform 0.3s; }
.film__disc { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--film-disc);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); transition: transform 0.25s; }
.film__play:hover .film__disc { transform: scale(1.06); }
.film__play:focus-visible { outline: none; }
.film__play:focus-visible .film__disc { outline: 3px solid #fff; outline-offset: 3px; }
.film__disc svg { width: 38px; height: 38px; fill: currentColor; }
.film__disc .i-play { transform: translateX(1.5px); }
.film__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--film-ring); animation: film-radar 3.6s cubic-bezier(0.25, 0.6, 0.4, 1) infinite; }
.film__ring:nth-child(2) { animation-delay: 1.2s; }
.film__ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes film-radar { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.9); opacity: 0; } }
/* playing: the button goes (a keyboard can still reach it, as a pause button); ended: the end card stays clear */
.film__play .i-pause, .film[data-state="playing"] .film__play .i-play { display: none; }
.film[data-state="playing"] .film__play .i-pause { display: inline; }
.film[data-state="playing"] .film__play:not(:focus-visible), .film[data-state="ended"] .film__play { opacity: 0; transform: scale(0.85); pointer-events: none; }
.film[data-state="playing"] .film__ring, .film[data-state="paused"] .film__ring { display: none; }
.film__controls { position: absolute; z-index: 1; right: 14px; bottom: 14px; display: flex; gap: 8px; transition: opacity 0.3s; }
.film[data-state="idle"] .film__controls { opacity: 0; pointer-events: none; }
.film__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px;
  border: 0; border-radius: 999px; background: rgba(20, 22, 24, 0.66); color: #fff; font: inherit; font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color 0.2s; }
.film__btn--replay { padding: 0 16px 0 13px; }
.film:not([data-state="ended"]) .film__btn--replay { display: none; }
.film__btn:hover { background: rgba(20, 22, 24, 0.86); }
.film__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.film__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.film__btn .i-speaker { fill: currentColor; }
.film:not([data-sound="on"]) .i-on, .film[data-sound="on"] .i-off { display: none; }
@media (max-width: 640px) { .film { margin-top: 32px; border-radius: 12px; } .film__controls { right: 8px; bottom: 8px; gap: 6px; }
  .film__btn { height: 36px; min-width: 36px; font-size: 13px; }
  .film__play { width: 66px; height: 66px; margin: -33px 0 0 -33px; } .film__disc svg { width: 28px; height: 28px; } }


/* Black Friday card under the film (same layout as on Findy's site), lit by the accent gradient: the price, a countdown
   to the end of the weekend and the way to checkout. site.js counts down and hides it at the end. */
.deal { max-width: var(--max); margin: 0 auto; padding: 8px 16px 0; }
.deal[hidden] { display: none; }
.deal__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 48px; align-items: center;
  padding: 36px 44px; overflow: hidden; border-radius: var(--radius); color: var(--fg);
  background: radial-gradient(60% 120% at 0% 0%, rgba(20, 184, 166, 0.34), transparent 70%),
    radial-gradient(50% 120% at 100% 100%, rgba(56, 189, 248, 0.26), transparent 70%), var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -24px rgba(20, 184, 166, 0.35); }
.deal__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-size: 14px; font-weight: 500; color: #c9c9d1; }
.deal__tag { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: linear-gradient(135deg, #5eead4 0%, #14b8a6 50%, #38bdf8 100%); }
.deal h2 { margin-top: 16px; font-size: clamp(24px, 1.1vw + 17px, 34px); line-height: 1.1; font-weight: 700; }
.deal__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 0; color: #c9c9d1; }
.deal__price b { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.035em; color: #fff; }
.deal__price s { font-size: 22px; color: var(--dim); text-decoration-thickness: 1.5px; }
.deal__price span { flex-basis: 100%; }
.deal__side { display: grid; gap: 12px; }
.deal__clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.deal__clock > span { display: grid; justify-items: center; gap: 6px; padding: 12px 0 10px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.deal__clock b { font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.deal__clock small { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.deal .deal__buy { display: block; text-align: center; padding: 13px 20px; font-size: 17px; }
.deal__fine { margin: 0; font-size: 13px; text-align: center; color: var(--muted); }
@media (max-width: 860px) { .deal__card { grid-template-columns: minmax(0, 1fr); padding: 32px; } }
@media (max-width: 640px) {
  .deal__card { padding: 24px 20px; gap: 22px; }
  .deal__price b { font-size: 40px; }
  .deal__clock b { font-size: 28px; }
}

/* Heading over the live demo */
/* .section-head comes later in this file, so the selector needs the extra class to win */
.section-head.try-head { margin: 120px auto 40px; }
@media (max-width: 640px) { .section-head.try-head { margin-top: 80px; } }

/* MacBase and Product Hunt, at the top of the hero. */
.press-badges {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
}
.press-badges a { display: inline-block; }
.press-badges img { display: block; max-width: 100%; }

/* ---------- Automated gesture showcase ---------- */
.stage-section {
  padding: 24px 16px 96px;
  position: relative;
}

.stage-section::before {
  content: "";
  position: absolute;
  inset: 10% 0 auto;
  height: 70%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--tint-glow), transparent 70%);
  pointer-events: none;
}

.stage {
  position: relative;
  max-width: min(760px, 118vh);
  margin: 0 auto;
}

.display {
  --wall:
    radial-gradient(60% 80% at 20% 90%, #0f766e 0%, transparent 60%),
    radial-gradient(50% 70% at 85% 20%, #1d4ed8 0%, transparent 60%),
    radial-gradient(60% 60% at 60% 70%, #6d28d9 0%, transparent 65%),
    linear-gradient(160deg, #061016, #0b1020);
  --wall-light:
    radial-gradient(60% 80% at 20% 90%, #99f6e4 0%, transparent 60%),
    radial-gradient(50% 70% at 85% 20%, #bfdbfe 0%, transparent 60%),
    radial-gradient(60% 60% at 60% 70%, #ddd6fe 0%, transparent 65%),
    linear-gradient(160deg, #f1f5f9, #e2e8f0);
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px 22px 6px 6px;
  border: 12px solid #0a0a0b;
  outline: 1px solid #2c2f31;
  overflow: hidden;
  background: #05080a;
  box-shadow: 0 40px 120px rgba(20, 184, 166, 0.12);
}

.wallpaper {
  position: absolute;
  inset: 0;
  background: var(--wall);
}
/* Light appearance: what the "Toggle Appearance" Shortcut switches to in the demo. */
.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wall-light);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.display.light .wallpaper::after { opacity: 1; }

.menubar {
  position: absolute;
  inset: 0 0 auto;
  height: 26px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.5s ease, background 0.5s ease;
}
.display.light .menubar { color: rgba(0, 0, 0, 0.85); background: rgba(255, 255, 255, 0.4); }
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 14px; }
.menubar-left span { opacity: 0.85; }
.menubar-right img { border-radius: 3px; }

.veil {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s linear;
  z-index: 3;
}

.hud {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%) scale(0.96);
  width: min(240px, 46%);
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: rgba(30, 32, 34, 0.62);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 4;
}
.hud.show { opacity: 1; transform: translateX(-50%) scale(1); }
.hud-icon { color: #fff; }
.hud-bar { display: flex; gap: 3px; width: 100%; }
.hud-bar i {
  flex: 1;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.08s linear;
}
.hud-bar i.on { background: #fff; }
.hud.muted .hud-bar i.on { background: rgba(255, 255, 255, 0.35); }

.now-playing {
  position: absolute;
  top: 40px;
  right: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 14px 9px 9px;
  border-radius: 16px;
  background: rgba(30, 32, 34, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 4;
}
.now-playing.show { opacity: 1; transform: none; }
.art {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #14b8a6, #6366f1);
  transition: background 0.4s ease;
}
.np-text { display: flex; flex-direction: column; line-height: 1.3; }
.np-text span { color: rgba(255, 255, 255, 0.65); }

/* Windows the top-right corner opens. They grow from their top-right, toward where the finger tapped. */
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  transform-origin: 100% 0;
  opacity: 0;
  transform: scale(0.6);
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.2, 0.9, 0.25, 1.1), visibility 0s linear 0.38s;
  z-index: 1;
}
.win.show { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.win.front { z-index: 2; }
.win.bounce { animation: bounce 0.35s ease; }
@keyframes bounce { 50% { transform: scale(1.025); } }
.editor-win { left: 6%; top: 11%; width: 56%; height: 62%; }
.claude-win { left: 9%; top: 11%; width: 60%; height: 66%; background: #262624; }
.browser-win { left: 20%; top: 15%; width: 58%; height: 64%; background: #f5f5f7; }
.win-bar {
  flex: none;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}
.lights { display: flex; gap: 5px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win-title { flex: 1; text-align: center; margin-right: 37px; }
.browser-win .win-bar { background: #e8e8ed; border-bottom-color: rgba(0, 0, 0, 0.08); }
.url {
  flex: 1;
  max-width: 52%;
  margin: 0 auto;
  transform: translateX(-20px);
  padding: 2px 0;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
}
.win-body { flex: 1; min-height: 0; }
.editor { display: flex; }
.editor-side {
  width: 24%;
  padding: 8px 6px;
  display: grid;
  align-content: start;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.editor-side i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); width: 80%; }
.editor-side i:nth-child(2n) { width: 62%; }
.editor-side i.sel { background: rgba(20, 184, 166, 0.65); }
.editor-code { flex: 1; padding: 10px 12px; display: grid; align-content: start; gap: 6px; }
.editor-code p { margin: 0; height: 6px; display: flex; gap: 5px; }
.editor-code p.in { padding-left: 8%; }
.editor-code p.in2 { padding-left: 16%; }
.editor-code i { height: 100%; border-radius: 3px; }
.editor-code .k { background: #ff7ab2; }
.editor-code .t { background: #5dd8ff; }
.editor-code .s { background: #fc6a5d; }
.editor-code .p { background: rgba(255, 255, 255, 0.45); }
.editor-code .c { background: rgba(255, 255, 255, 0.18); }
/* A chat app window, in Claude's warm dark palette (no logo). */
.chat { display: flex; }
.chat-side {
  width: 20%;
  padding: 8px 6px;
  display: grid;
  align-content: start;
  gap: 6px;
  background: #1f1e1d;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-side i { height: 6px; width: 78%; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.chat-side i.new { width: 60%; height: 8px; margin-bottom: 4px; background: rgba(217, 119, 87, 0.75); }
.chat-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px 8%; }
.chat-hello {
  margin: 0;
  font: 400 clamp(11px, 2.3vw, 19px)/1.2 "Iowan Old Style", Georgia, "Times New Roman", serif;
  color: #ece9df;
  text-align: center;
}
.chat-input {
  width: 100%;
  height: 26%;
  max-height: 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px;
  border-radius: 10px;
  background: #30302e;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-input i { align-self: flex-start; height: 5px; width: 42%; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.chat-send { width: 14px; height: 14px; border-radius: 4px; background: #d97757; }
.site-mini {
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
}
.site-mini img { border-radius: 5px; }
.site-mini b { font-size: clamp(11px, 2.4vw, 20px); letter-spacing: -0.02em; color: #f5f5f7; }
.site-mini i { height: 5px; width: 54%; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.site-mini i.short { width: 38%; }
.mini-button {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #14b8a6;
  color: #00110f;
}

/* Screenshot: a white flash, then the thumbnail slides in at the bottom right. */
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; }
.flash.go { animation: flash 0.45s ease-out; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }
.shot {
  position: absolute;
  right: 3%;
  bottom: 5%;
  width: 22%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  border: 2px solid #fff;
  background: var(--wall);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(130%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  z-index: 2;
}
.display.light .shot { background: var(--wall-light); }
.shot.show { opacity: 1; transform: none; }

.hinge {
  height: 10px;
  margin: 0 3%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(#2a2d30, #15171a);
}

.deck {
  margin: 0 -6%;
  padding: 26px 0 30px;
  border-radius: 6px 6px 30px 30px;
  background: linear-gradient(180deg, #2b2e31 0%, #1d1f22 40%, #17191b 100%);
  border: 1px solid #34383b;
  border-top-color: #45494d;
  display: flex;
  justify-content: center;
}

.trackpad {
  --edge: 10%;
  position: relative;
  width: 50%;
  aspect-ratio: 1.6;
  border-radius: 14px;
  background: linear-gradient(170deg, #34383c 0%, #25282b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.6);
  touch-action: auto;
  cursor: default;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.zone {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(var(--zone-dir, 90deg), rgba(20, 184, 166, 0.28), rgba(20, 184, 166, 0.06));
  opacity: 0.55;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.zone em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(204, 251, 241, 0.7);
  white-space: nowrap;
}
.zone-left { --zone-dir: 90deg; left: 0; top: 0; bottom: 0; width: var(--edge); }
.zone-right { --zone-dir: 270deg; right: 0; top: 0; bottom: 0; width: var(--edge); }
.zone-left em { transform: rotate(-90deg); }
.zone-right em { transform: rotate(90deg); }
.zone-bottom { --zone-dir: 0deg; left: var(--edge); right: var(--edge); bottom: 0; height: 13%; }
.zone-corner {
  top: 0;
  width: var(--edge);
  height: 17%;
  background: rgba(20, 184, 166, 0.45);
  z-index: 1;
}
.corner-icon { color: rgba(204, 251, 241, 0.85); }
.zone-corner-left { left: 0; }
.zone-corner-right { right: 0; }
.zone.hint { animation: hint 0.6s ease 3; }
@keyframes hint { 50% { opacity: 1; box-shadow: 0 0 26px rgba(45, 212, 191, 0.8), inset 0 0 12px rgba(94, 234, 212, 0.5); } }
.zone.active {
  opacity: 1;
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.55), inset 0 0 12px rgba(94, 234, 212, 0.4);
}

.finger {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.95), rgba(204, 251, 241, 0.75) 45%, rgba(20, 184, 166, 0.35) 70%);
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.7);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 3;
}
.finger.show { opacity: 1; }
.finger.tick::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(94, 234, 212, 0.9);
  animation: tick 0.35s ease-out forwards;
}
@keyframes tick {
  from { transform: scale(0.8); opacity: 1; }
  to { transform: scale(1.7); opacity: 0; }
}

.stage-caption {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: 16px 0 0;
  min-height: 1.5em;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 16px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head h2, .split-text h2, .faq h2, .closing h2 {
  font-size: clamp(34px, calc(5.6vw - 2px), 62px);
  line-height: 1.05;
  font-weight: 700;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  margin: 20px auto 0;
}

/* Zone cards */
.zones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.zone-card {
  box-shadow: var(--card-shadow);
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.zone-card h3 { font-size: 21px; margin-top: 22px; }
.zone-card p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

.mini {
  position: relative;
  aspect-ratio: 1.6;
  border-radius: 10px;
  background: var(--pad);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mini i { position: absolute; background: var(--fill-1); }
.mini .m-left { left: 0; top: 0; bottom: 0; width: 11%; }
.mini .m-right { right: 0; top: 0; bottom: 0; width: 11%; }
.mini .m-bottom { left: 11%; right: 11%; bottom: 0; height: 15%; }
.mini .m-corner-l, .mini .m-corner-r { top: 0; width: 11%; height: 20%; background: var(--fill-2); }
.mini .m-corner-l { left: 0; }
.mini .m-corner-r { right: 0; }
.mini[data-highlight="left"] .m-left,
.mini[data-highlight="right"] .m-right,
.mini[data-highlight="bottom"] .m-bottom,
.mini[data-highlight="corners"] .m-corner-l,
.mini[data-highlight="corners"] .m-corner-r {
  background: var(--accent);
  box-shadow: 0 0 18px var(--tint-dot);
}

/* Corners section: the Settings pane next to the four kinds of action. */
.corners .eyebrow { margin-bottom: 14px; }
.corners-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.settings-mock {
  max-width: 440px;
  width: 100%;
  justify-self: center;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px var(--panel-shadow), 0 0 90px var(--tint-glow);
  padding: 0 0 18px;
  font-size: 13px;
}
.sm-head {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
.sm-head b { flex: 1; text-align: center; margin-right: 37px; font-size: 13px; }
.sm-intro, .sm-note { color: var(--muted); font-size: 12px; margin: 14px 18px 10px; }
.sm-note { margin: 12px 18px 0; color: var(--dim); }
.sm-group { margin: 0 14px; border-radius: 10px; background: var(--fill-1); border: 1px solid var(--hairline); }
.sm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
}
.sm-row[hidden] { display: none; }
.sm-row + .sm-row { border-top: 1px solid var(--hairline); }
.sm-row.sub { padding-left: 40px; color: var(--muted); min-height: 40px; animation: detail 0.35s ease; }
@keyframes detail { from { opacity: 0; transform: translateY(-4px); } }
.sm-corner { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.sm-pad {
  position: relative;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--dim);
}
.sm-pad::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 5px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent-hi);
}
.sm-pad.left::after { left: 1px; }
.sm-pad.right::after { right: 1px; }
.sm-popup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px 3px 10px;
  border-radius: 6px;
  background: var(--fill-2);
  color: var(--fg);
  white-space: nowrap;
}
.sm-popup::after { content: "⌃⌄"; font-size: 8px; letter-spacing: -1px; writing-mode: vertical-lr; color: var(--muted); }
.sm-popup.flip { animation: flip 0.35s ease; }
@keyframes flip { 40% { background: var(--tint-border); } }
.sm-value { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.sm-app-icon { width: 18px; height: 18px; border-radius: 5px; background: #d97757; }
.sm-button { margin-left: 4px; padding: 2px 9px; border-radius: 6px; background: var(--fill-2); }
.sm-field { padding: 3px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--panel-border); }
.sm-field.keys { display: flex; gap: 4px; padding: 3px 6px; }
.sm-field kbd { width: 20px; height: 20px; font-size: 11px; border-radius: 5px; box-shadow: none; }

.action-list { display: grid; gap: 12px; }
.action {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--card);
  box-shadow: var(--card-shadow);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.action:hover { background: var(--card-hi); }
.action[aria-pressed="true"] { border-color: var(--tint-border-strong); background: linear-gradient(90deg, var(--tint), var(--card) 70%); }
.action:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.action-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--card-hi);
  color: var(--accent-hi);
}
.action-text { display: grid; gap: 4px; }
.action-text b { font-size: 18px; letter-spacing: -0.01em; }
.action-text span { color: var(--muted); font-size: 15px; }
.corners-foot { text-align: center; color: var(--muted); margin: 40px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  box-shadow: var(--card-shadow);
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tile.wide { grid-column: span 2; }
.tile h3 { font-size: 24px; line-height: 1.15; }
.tile p { color: var(--muted); font-size: 16px; margin: 10px 0 0; max-width: 520px; }

.tile-glyph {
  color: var(--accent-hi);
  margin-bottom: auto;
  padding-bottom: 28px;
}
.tile-glyph.keys { display: flex; gap: 8px; }
kbd {
  font: 600 20px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--kbd);
  border: 1px solid var(--kbd-border);
  box-shadow: 0 2px 0 var(--kbd-shadow);
  color: var(--fg);
}

.tile-art { margin-bottom: auto; padding-bottom: 28px; }
.tile-art.haptics { display: flex; align-items: center; gap: 10px; height: 60px; }
.tile-art.haptics span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-hi);
  animation: pulse 1.6s ease-out infinite;
}
.tile-art.haptics span:nth-child(2) { animation-delay: 0.2s; }
.tile-art.haptics span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.2; }
  30% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 16px var(--tint-dot); }
  100% { transform: scale(1); opacity: 0.3; }
}
.tile-art.options { display: flex; flex-wrap: wrap; gap: 8px; }
.tile-art.steps-art { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.tile-art.steps-art span {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.tile-art.steps-art span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--tint-dot);
  margin-right: 8px;
}
.tile-art.steps-art span + span::before { margin-left: 0; }
.tile-art.steps-art span:not(:last-child)::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line);
  margin: 0 10px;
}
.tile-art.options span {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card-hi);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Split: menu */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-text p { color: var(--muted); font-size: 19px; margin: 22px 0 0; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%2300110f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.menu-mock {
  width: 100%;
  max-width: 360px;
  justify-self: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel-menu);
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px var(--panel-shadow), 0 0 80px var(--tint-glow);
  font-size: 13px;
  display: grid;
  gap: 11px;
}
.mm-head { display: flex; align-items: center; gap: 8px; }
.mm-head img { border-radius: 4px; }
.mm-status { margin-left: auto; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 6px; }
.mm-status i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; }
.mm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-tile {
  background: var(--fill-1);
  border-radius: 8px;
  padding: 9px;
  display: grid;
  gap: 3px;
}
.mm-tile small { color: var(--muted); font-size: 11px; }
.mm-tile b { font-size: 20px; }
.mm-device { font-size: 10px !important; }
.mm-meter { height: 4px; border-radius: 2px; background: var(--fill-3); overflow: hidden; }
.mm-meter i { display: block; height: 100%; background: var(--accent); }
.mm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mm-row span:first-child { display: flex; flex-direction: column; }
.mm-row small { color: var(--muted); font-size: 11px; }
.mm-row.strong { font-weight: 600; font-size: 14px; }
.switch {
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: var(--fill-3);
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--knob);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.switch.on { background: var(--accent); }
.switch.on::after { left: 14px; background: #fff; }
.mm-select { background: var(--fill-2); border-radius: 6px; padding: 2px 10px; }
.mm-slider { display: grid; gap: 6px; }
.mm-slider > span:first-child { display: flex; justify-content: space-between; }
.mm-slider em { font-style: normal; color: var(--muted); }
.track { height: 4px; border-radius: 2px; background: var(--fill-3); position: relative; }
.track i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.mm-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.mm-button { background: var(--fill-2); border-radius: 6px; padding: 3px 10px; }
.mm-icons { color: var(--muted); letter-spacing: 6px; }

/* Pricing */
.plan {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 32px 28px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--tint-border);
  background: linear-gradient(180deg, var(--tint), var(--card) 50%);
  box-shadow: var(--card-shadow);
}
.plan-icon { display: block; margin: 0 auto 14px; border-radius: 19px; }
.plan h3 { font-size: 26px; font-weight: 600; }
.price { font-size: 104px; font-weight: 700; letter-spacing: -0.04em; margin: 2px 0 0; line-height: 1; }
.price span { font-size: 48px; vertical-align: 40px; margin-right: 2px; }
.plan-note { color: var(--muted); margin: 10px 0 22px; font-size: 21px; }
/* 1 Mac / 2 Macs switch (site.js swaps the prices and the checkout link) */
.macs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 18px 0 14px; padding: 4px; border-radius: 999px;
  background: var(--card-hi); border: 1px solid var(--line); }
.macs button { min-width: 96px; padding: 7px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; }
.macs button:hover { color: var(--fg); }
.macs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.macs button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
/* Black Friday line in the card, only while the deal runs (site.js sets .is-deal on <html>) */
.deal-only { display: none !important; }
.is-deal .deal-only { display: flex !important; }
.plan-deal { justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.plan-deal b { color: var(--fg); }
.offer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 18px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: rgba(249, 115, 22, 0.12);
  color: var(--offer-fg);
}
.offer b { color: var(--offer-strong); }
.offer i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
  animation: offer-pulse 2s ease-in-out infinite;
}
@keyframes offer-pulse { 50% { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); } }
.sold { color: var(--dim); font-size: 15px; margin: 12px 0 0; }
.plan-list {
  list-style: none;
  margin: 28px 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: space-around;
  gap: 14px 24px;
  text-align: left;
}
.plan-list li { display: flex; align-items: center; gap: 10px; }
.plan-list li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
}
.plan .button { display: block; padding: 15px 26px; font-size: 19px; }
.pricing .fine { text-align: center; margin-top: 28px; }
.plan .fine { margin: 16px 0 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-hi); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Closing */
.closing {
  text-align: center;
  padding: 80px 16px 120px;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, var(--tint-glow), transparent 70%);
}
.closing-icon { border-radius: 22px; margin-bottom: 24px; }
.closing h2 { margin-bottom: 36px; }

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 48px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Thanks and 404 pages */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 16px 80px;
  text-align: center;
}
.page h1 { font-size: clamp(40px, 7vw, 64px); }
.page .app-icon { border-radius: 22px; margin-bottom: 18px; }
.page .tagline { color: var(--muted); font-size: 21px; margin: 14px 0 36px; }
.steps { text-align: left; max-width: 520px; margin: 0 auto 36px; padding-left: 1.2em; color: var(--muted); }
.steps li { margin-bottom: 12px; }
.steps strong { color: var(--fg); }
.page .fine { margin-top: 28px; }

/* Free-for-a-post page (/free): post on Reddit or X, get the purchase refunded */
.free-hero { padding-bottom: 8px; }
.free-hero h1 { font-size: clamp(44px, 8vw, 92px); }
.free-hero .hero-sub { margin-bottom: 28px; }
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chips li {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 15px;
}
.chips b { color: var(--fg); font-weight: 600; }

.free-how { padding-top: 72px; padding-bottom: 0; }
.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-card {
  box-shadow: var(--card-shadow);
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
}
.how-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint-border);
  color: var(--accent-hi);
  font-weight: 700;
}
.how-card h3 { font-size: 22px; margin-top: 20px; }
.how-card p { color: var(--muted); font-size: 16px; margin: 8px 0 0; }

.free-reward { padding-top: 72px; padding-bottom: 0; }
.reward {
  max-width: 520px;
  margin: 0 auto 36px;
  padding: 36px 32px 28px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--tint-border);
  background: linear-gradient(180deg, var(--tint), var(--card) 50%);
  box-shadow: var(--card-shadow);
}
.reward-goal { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.reward-sub { max-width: 380px; margin: 8px auto 24px; color: var(--muted); font-size: 16px; }
/* The views meter borrows the look of the macOS volume indicator the app shows. */
.views-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(280px, 100%);
  margin: 0 auto;
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: rgba(30, 32, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
/* Views from several posts fill the bar together: one colour per post, matching the tally below. */
.views-bar .a, .tally .a { --c: #14b8a6; }
.views-bar .b, .tally .b { --c: #38bdf8; }
.views-bar .c, .tally .c { --c: #99f6e4; }
.views-bar { display: flex; gap: 3px; width: 100%; }
.views-bar i { flex: 1; height: 7px; border-radius: 2px; background: var(--c, #fff); }
.views-bar .a + .b, .views-bar .b + .c { margin-left: 4px; }
.js .views-bar i { background: rgba(255, 255, 255, 0.18); }
.js .reward.in .views-bar i { animation: views-fill 0.1s linear forwards; animation-delay: calc(0.5s + var(--i) * 70ms); }
@keyframes views-fill { to { background: var(--c, #fff); } }
.tally-label {
  margin: 22px 0 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tally {
  list-style: none;
  width: min(280px, 100%);
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 15px;
  color: var(--muted);
}
.tally li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tally li:not(.tally-total) > span:first-child::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 3px;
  background: var(--c);
}
.tally b { color: var(--fg); font-weight: 600; }
.tally-num { color: var(--fg); font-variant-numeric: tabular-nums; }
.tally .tally-total { margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--fg); font-weight: 600; }
.tally-total > span:first-child { padding-left: 18px; }
/* Each row lights up as its part of the bar fills (delays follow the 8 + 5 + 3 steps above). */
.js .tally li { opacity: 0.3; }
.js .reward.in .tally li { animation: tally-in 0.3s ease forwards; }
.js .reward.in .tally .a { animation-delay: 0.5s; }
.js .reward.in .tally .b { animation-delay: 1.06s; }
.js .reward.in .tally .c { animation-delay: 1.41s; }
.js .reward.in .tally .tally-total { animation-delay: 1.7s; }
@keyframes tally-in { to { opacity: 1; } }
.reward-amount { margin: 26px 0 0; font-size: 56px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.reward-note { color: var(--muted); margin: 10px 0 0; font-size: 19px; }
.reward-details {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
  display: grid;
  gap: 10px;
}
.reward-details p { margin: 0; color: var(--muted); font-size: 15px; }
.reward-details b { color: var(--fg); }
.reward-fine { max-width: 560px; margin: 24px auto 0; text-align: center; }

.free-rules { max-width: 820px; }
.free-rules h2 { font-size: clamp(30px, calc(4.6vw - 2px), 46px); line-height: 1.05; font-weight: 700; margin-bottom: 24px; }
.rules { margin: 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 12px; }
.rules li::marker { color: var(--accent); }

/* Privacy and Terms pages */
.legal { max-width: 720px; margin: 0 auto; padding: 80px 16px 72px; color: var(--muted); }
.legal h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.05; font-weight: 700; color: var(--fg); }
.legal-date { margin: 10px 0 32px; color: var(--dim); font-size: 15px; }
.legal h2 { margin: 40px 0 12px; font-size: 24px; color: var(--fg); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.legal li::marker { color: var(--accent); }
.legal b { color: var(--fg); }

/* Link to /free under the pricing card */
.pricing .free-link { margin-top: 10px; }

/* Scroll reveal (site.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .zones { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .corners-grid { grid-template-columns: 1fr; }
  .action-list { max-width: 560px; width: 100%; justify-self: center; }
  .split-text { text-align: center; }
  .checks { justify-content: center; text-align: left; }
  .how-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .pill { margin-left: auto; }
  .hero { padding-top: 64px; }
  .section { padding: 48px 16px; }
  .display { border-width: 7px; border-radius: 14px 14px 4px 4px; }
  .menubar { height: 18px; font-size: 9px; padding: 0 8px; }
  .menubar-left span { display: none; }
  .now-playing { top: 26px; right: 8px; padding: 5px 8px 5px 5px; font-size: 9px; gap: 6px; }
  .art { width: 24px; height: 24px; border-radius: 5px; }
  .hud { padding: 10px 12px 12px; border-radius: 14px; gap: 8px; }
  .hud-icon { width: 20px; height: 20px; }
  .hud-bar i { height: 5px; }
  .deck { margin: 0 -2%; padding: 16px 0 18px; }
  .trackpad { width: 70%; }
  .zone em { display: none; }
  .corner-icon { width: 10px; height: 10px; }
  .win-bar { height: 14px; gap: 6px; padding: 0 5px; font-size: 7px; }
  .lights { gap: 3px; }
  .lights i { width: 5px; height: 5px; }
  .win-title { margin-right: 21px; }
  .editor-code, .editor-side { gap: 4px; padding: 6px; }
  .editor-code p, .editor-side i { height: 4px; }
  .site-mini { gap: 4px; }
  .site-mini img { width: 14px; height: 14px; }
  .mini-button { font-size: 6px; padding: 2px 6px; }
  .chat-main { gap: 5px; }
  .chat-input { padding: 3px; border-radius: 6px; }
  .chat-send { width: 8px; height: 8px; border-radius: 2px; }
  .sm-row.sub { padding-left: 12px; }
  .zones, .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile { min-height: 0; }
  .plan { padding: 32px 20px 24px; }
  .price { font-size: 88px; }
  .price span { vertical-align: 32px; }
  .free-how, .free-reward { padding-top: 56px; padding-bottom: 0; }
  .reward { padding: 32px 20px 24px; }
  .reward-amount { font-size: 48px; }
}

@media (max-width: 440px) {
  .plan-list { grid-template-columns: auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile-art.haptics span { animation: none; }
  .win, .shot, .wallpaper::after { transition: none; }
  .flash.go, .zone.hint, .win.bounce, .sm-row.sub, .sm-popup.flip, .offer i { animation: none; }
  .film__ring { animation: none; opacity: 0; }
  .film__ring:first-child { opacity: 0.5; transform: scale(1.35); }
  .js .views-bar i, .js .reward.in .views-bar i { background: var(--c, #fff); animation: none; }
  .js .tally li, .js .reward.in .tally li { opacity: 1; animation: none; }
}

/* Checkout page (/checkout, same layout as on Findy's site): the license on the left, the email and code on the right */
.co { max-width: 1040px; margin: 0 auto; padding: 72px 16px 96px; }
.co-head { margin: 0 0 40px; }
.co-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.co-head h1 { margin-top: 10px; font-size: clamp(44px, 7vw, 72px); line-height: 1.02; font-weight: 700; }
.co-lead { max-width: 52ch; margin: 14px 0 0; font-size: 19px; color: var(--muted); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.co-card { display: grid; gap: 22px; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.co-card h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.co:has(input[name="macs"][value="2"]:checked) .for-one,
.co:not(:has(input[name="macs"][value="2"]:checked)) .for-two { display: none; }
.co-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.co-item img { width: 56px; height: 56px; border-radius: 13px; }
.co-item p { margin: 0; }
.co-item__name { font-weight: 600; font-size: 17px; }
.co-item__sub { margin-top: 2px !important; color: var(--muted); }
.co-item__price { font-weight: 600; font-size: 17px; text-align: right; }
.co-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 0; margin: 0; padding: 4px; border: 0; border-radius: 14px; background: var(--bg); }
.co-seg label { position: relative; display: grid; place-items: center; height: 42px; border-radius: 10px; color: var(--muted); font-weight: 500; cursor: pointer;
  transition: background 0.2s, color 0.2s; }
.co-seg label:hover { color: var(--fg); }
.co-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.co-seg label:has(:checked) { background: var(--card-hi); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.co-seg label:has(:focus-visible) { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.co-checks { display: grid; gap: 12px; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.co-checks li { display: flex; gap: 12px; align-items: flex-start; }
.co-checks svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--accent-hi); }
/* Black Friday: while the field holds BF50 the script sets .is-deal, which shows the struck price, the discount line and
   the note under the field, and halves the prices */
.co:not(.is-deal) .co-deal-only { display: none; }
.co-was { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 400; color: var(--muted); text-decoration-thickness: 1.5px; }
.co-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 -8px; color: var(--muted); }
.co-line > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.co-hint.co-deal { display: flex; gap: 8px; align-items: flex-start; color: var(--accent-hi); font-weight: 500; }
.co-deal svg { flex: none; width: 14px; height: 14px; margin-top: 3px; }
.co-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; }
.co-total > span { font-size: 19px; }
.co-total b { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.co-field { display: grid; gap: 8px; }
.co-field label { font-weight: 500; }
.co-field label span { font-weight: 400; color: var(--muted); }
.co-field input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: var(--bg);
  color: var(--fg); font: inherit; font-size: 17px; transition: border-color 0.2s, box-shadow 0.2s; }
.co-field input::placeholder { color: var(--dim); }
.co-field input:hover { border-color: rgba(255, 255, 255, 0.28); }
.co-field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25); }
.co-field input[aria-invalid="true"] { border-color: #ff6b6b; }
.co-field #code { text-transform: uppercase; letter-spacing: 0.06em; }
.co-field #code::placeholder { text-transform: none; letter-spacing: 0; }
.co-hint, .co-error, .co-fine { margin: 0; font-size: 14px; color: var(--muted); }
.co-error { font-weight: 500; color: #ff6b6b; }
.co-pay { width: 100%; border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 600; padding: 15px 26px; }
.co-pay[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.co-fine a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .co-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .co { padding-top: 48px; }
  .co-card { padding: 22px 18px; }
  .co-checks { display: none; }
}
