/* TrackEdge website. Dark, product-page style; accent matches the app icon (#14B8A6). */
: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-ink: #00110f;
  --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: linear-gradient(100deg, #99f6e4 0%, #14b8a6 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  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-hi); }

/* ---------- 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-hi); }

.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; }

/* MacBase and Product Hunt, between the demo and the features. */
.press-badges {
  margin-top: 40px;
  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%; }

/* ---------- Interactive stage ---------- */
.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%, rgba(20, 184, 166, 0.18), 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 [data-close] { cursor: pointer; }
.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: var(--accent);
  color: var(--accent-ink);
}

/* 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: none;
  cursor: grab;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.trackpad:active { cursor: grabbing; }
.trackpad:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.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; }
}

/* What the top-left corner does in the demo, like the popup in Settings. */
.corner-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
}
.cp-label { font-size: 13px; color: var(--muted); }
.cp-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.cp-options button {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.cp-options button:hover { color: var(--fg); }
.cp-options button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cp-options button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

.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: 96px 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(36px, 5.6vw, 64px);
  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 {
  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: linear-gradient(170deg, #2f3337, #222528);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mini i { position: absolute; background: rgba(255, 255, 255, 0.05); }
.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: rgba(255, 255, 255, 0.09); }
.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 rgba(45, 212, 191, 0.7);
}

/* 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: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 90px rgba(20, 184, 166, 0.12);
  padding: 0 0 18px;
  font-size: 13px;
}
.sm-head {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.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: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); }
.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 rgba(255, 255, 255, 0.06); }
.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 rgba(255, 255, 255, 0.4);
}
.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: rgba(255, 255, 255, 0.1);
  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: rgba(20, 184, 166, 0.45); } }
.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: rgba(255, 255, 255, 0.1); }
.sm-field { padding: 3px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1); }
.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);
  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: rgba(45, 212, 191, 0.55); background: linear-gradient(90deg, rgba(20, 184, 166, 0.12), 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 {
  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: linear-gradient(#2d3135, #1f2225);
  border: 1px solid #3a3e42;
  box-shadow: 0 2px 0 #0b0c0d;
  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 rgba(94, 234, 212, 0.8); }
  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 rgba(45, 212, 191, 0.7);
  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: rgba(36, 38, 41, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(20, 184, 166, 0.1);
  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: rgba(255, 255, 255, 0.06);
  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: rgba(255, 255, 255, 0.12); 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: rgba(255, 255, 255, 0.16);
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e5e5ea;
}
.switch.on { background: var(--accent); }
.switch.on::after { left: 14px; background: #fff; }
.mm-select { background: rgba(255, 255, 255, 0.1); 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: rgba(255, 255, 255, 0.15); position: relative; }
.track i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #e5e5ea; }
.mm-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.mm-button { background: rgba(255, 255, 255, 0.1); 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 rgba(45, 212, 191, 0.35);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12), var(--card) 50%);
}
.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; }
.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: #fed7aa;
}
.offer b { color: #fb923c; }
.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%, rgba(20, 184, 166, 0.14), 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 {
  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: rgba(20, 184, 166, 0.16);
  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 rgba(45, 212, 191, 0.35);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12), var(--card) 50%);
}
.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(32px, 4.6vw, 48px); 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: 72px 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; }
  .cp-options { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 360px; border-radius: 20px; }
  .cp-options button { padding: 8px 10px; border-radius: 16px; }
  .cp-options button:last-child { grid-column: 1 / -1; }
  .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; }
  .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; }
}
