/* Evidentiary marketing site — palette mirrors AppPalette.swift */
:root {
  --ink: #05070C;          /* page background */
  --panel: #0A0E17;        /* section band */
  --card: #0E131E;         /* raised card */
  --line: rgba(150, 178, 214, 0.13);
  --line-strong: rgba(107, 143, 192, 0.34);
  --navy: #6B8FC0;         /* brandNavy */
  --navy-deep: #587AAB;    /* brandNavyDeep */
  --navy-dim: #3A5C8C;     /* brandNavyDim */
  --text: #ECF1F8;
  --muted: #96A3B8;
  --onair: #FF453A;        /* appDanger */
  --admit: #30D158;        /* appSuccess */
  --warn: #FF9500;         /* appWarning */
  --display: "Iowan Old Style", Palatino, "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r-card: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* clip, not hidden: `hidden` makes html a scroll container and breaks the sticky nav. */
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Blueprint grid + cool wash, fixed behind everything (decorative). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(107, 143, 192, 0.20), transparent 68%),
    radial-gradient(700px 700px at 100% 42%, rgba(58, 92, 140, 0.10), transparent 70%),
    radial-gradient(700px 700px at 0% 78%, rgba(58, 92, 140, 0.08), transparent 70%),
    linear-gradient(rgba(150, 178, 214, 0.045) 1px, transparent 1px) 0 0 / 100% 92px,
    linear-gradient(90deg, rgba(150, 178, 214, 0.045) 1px, transparent 1px) 0 0 / 92px 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 104px; }

/* ---------- type ---------- */
/* House style: a light sans line, answered by an italic serif line. */
h1, h2 {
  font-family: var(--body);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.95rem); }
h1 em, h2 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  display: block;
}
h3 { font-family: var(--body); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--navy);
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  background: rgba(255, 255, 255, 0.025);
}
.lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.ex-lede { color: var(--muted); font-size: 1.02rem; max-width: 46em; margin: 16px auto 0; }
kbd {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--text);
}

/* Centered section header used by every band. */
.sec-head { text-align: center; max-width: 44rem; margin: 0 auto; }
.sec-head h2 { margin-top: 18px; }
.sec-head .ex-lede { margin-top: 18px; }

/* ---------- scroll reveal (JS adds .in; without JS everything stays visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* grid children cascade instead of arriving as one slab */
.js .reveal .stat,
.js .reveal .loop-card,
.js .reveal .more-card {
  opacity: 0;
  transform: translateY(14px);
}
.js .reveal.in .stat,
.js .reveal.in .loop-card,
.js .reveal.in .more-card {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.js .reveal.in :is(.stat, .loop-card, .more-card):nth-child(2) { transition-delay: 0.07s; }
.js .reveal.in :is(.stat, .loop-card, .more-card):nth-child(3) { transition-delay: 0.14s; }
.js .reveal.in :is(.stat, .loop-card, .more-card):nth-child(4) { transition-delay: 0.21s; }
.js .reveal.in :is(.stat, .loop-card, .more-card):nth-child(5) { transition-delay: 0.28s; }
.js .reveal.in :is(.stat, .loop-card, .more-card):nth-child(6) { transition-delay: 0.35s; }
.js .reveal.in :is(.stat, .loop-card, .more-card):nth-child(n + 7) { transition-delay: 0.42s; }

/* switching tabs should read as a change of view, not a jump cut */
.js .tabpanel.on { animation: panel-in 0.45s ease both; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

/* the timestamp lands on the line, which is the whole claim of the sync section */
.js .reveal.in .transcript-mock .stamp { animation: stamp-in 0.5s 0.55s both; }
@keyframes stamp-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* the blanket `animation/transition: none` above kills the motion but not these
     resting states, so every hidden thing has to be handed back explicitly */
  .js .reveal,
  .js .reveal .stat,
  .js .reveal .loop-card,
  .js .reveal .more-card { opacity: 1; transform: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-navy {
  background: linear-gradient(to bottom, var(--navy), var(--navy-deep));
  color: #000; /* brandButtonText */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 30px rgba(107, 143, 192, 0.22);
}
.btn-navy:hover { filter: brightness(1.07); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 14px 38px rgba(107, 143, 192, 0.34); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }

/* ---------- pills ---------- */
.fact-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.fact-pills span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

/* ---------- nav: floating glass pill ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.9), rgba(5, 7, 12, 0));
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1120px;
  padding: 9px 9px 9px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 19, 30, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 40px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.nav img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn { padding: 9px 18px; font-size: 0.85rem; color: #000; }

/* ---------- tabs: the long middle, one act at a time ---------- */
.tabbar {
  position: sticky;
  top: 72px;              /* tucked just under the nav pill */
  z-index: 40;
  padding: 8px 0 34px;
}
.tabbar .wrap { display: flex; justify-content: center; }
/* one glass pill holding the row, like the nav: gaps between loose pills leak scrolling copy */
.tabrow {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 19, 30, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 40px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.tab {
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--navy); }
/* No JS: every panel simply stays open, the page just reads long. */
.js .tabpanel { display: none; }
.js .tabpanel.on { display: block; }
/* the sticky nav + tab bar would otherwise sit on top of whatever an anchor lands on */
main section, .tabpanel { scroll-margin-top: 150px; }

/* ---------- devices: a MacBook, and the courtroom display ---------- */
.mac { position: relative; }
.mac .lid {
  padding: 11px 11px 13px;
  border-radius: 16px 16px 9px 9px;
  background: linear-gradient(175deg, #39435A, #1A2130 55%, #10151F);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
}
.mac .lid::before {                       /* camera */
  content: "";
  display: block;
  width: 5px; height: 5px;
  margin: -6px auto 5px;
  border-radius: 50%;
  background: #2A3243;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.mac .screen {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85) inset;
}
.mac .screen img, .mac .screen video { display: block; width: 100%; height: auto; }
.mac .foot {
  position: relative;
  height: 13px;
  width: 108%;
  margin: 0 -4%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #333C4E, #1A2130 55%, #090C13);
  box-shadow: 0 26px 40px rgba(0, 0, 0, 0.55);
}
.mac .foot::after {                        /* hinge dip */
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 15%; height: 6px;
  border-radius: 0 0 8px 8px;
  background: #05070C;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 0; text-align: center; }
.hero .wrap { position: relative; }
.hero-logo { width: min(440px, 78vw); margin: 0 auto 34px; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 15em; margin: 0 auto; }
.hero .lede { margin: 26px auto 32px; font-size: 1.14rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-pills { margin-top: 26px; justify-content: center; }

/* the MacBook, floating in its own light, with two pulled-out controls */
.hero-stage { position: relative; margin: 62px auto 0; max-width: 980px; }
.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%; top: 6%;
  width: 120%; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(107, 143, 192, 0.30), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-stage .mac { position: relative; }
.float-chip {
  position: absolute;
  z-index: 2;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 28, 43, 0.92), rgba(11, 15, 24, 0.92));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: bob 7s ease-in-out infinite;
}
.float-chip .chip-caption { margin-top: 9px; text-align: left; }
.mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.mini-onair { background: rgba(255, 69, 58, 0.14); border: 1px solid rgba(255, 69, 58, 0.35); color: #FFB4AE; }
.mini-onair .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--onair); animation: pulse 1.6s ease-in-out infinite; }
.mini-qc { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); gap: 18px; }
.mini-qc .qc { color: var(--admit); }
.float-chip.left { left: -3%; bottom: 14%; animation-delay: -3.5s; }
.float-chip.right { right: -3%; top: 12%; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- proof band ---------- */
.stats { padding: 92px 0 84px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
}
.stat { padding: 0 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat p { color: var(--muted); font-size: 0.96rem; min-height: 4.8em; }
.stat b {
  display: block;
  margin-top: 22px;
  font-weight: 300;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat b span { font-size: 0.4em; color: var(--navy); letter-spacing: 0.06em; margin-left: 7px; vertical-align: 0.6em; }

/* ---------- introduction film ---------- */
.film { padding: 24px 0 40px; }
.film .mac { max-width: 1040px; margin: 46px auto 0; }
.film-caption { text-align: center; }
/* stands in for the film until the final cut lands; keeps the screen's 16:9 so
   the MacBook doesn't collapse without a video to size it */
.film-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(closest-side at 50% 44%, rgba(107, 143, 192, 0.12), transparent 76%), #070A11;
}
.film-play {
  position: relative;
  width: 76px; height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(107, 143, 192, 0.08);
}
.film-play::before {
  content: "";
  border-left: 17px solid var(--navy);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 6px;
}
.film-play::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  animation: film-ping 3.4s ease-out infinite;
}
@keyframes film-ping {
  0% { opacity: 0.5; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}
.film-soon {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.1;
  color: var(--text);
}
/* the facade is a link: nothing reaches YouTube until it is clicked */
.film-cta { text-decoration: none; cursor: pointer; gap: 14px; }
.film-cta:hover { text-decoration: none; }
.film-cta .film-play { transition: border-color 0.2s ease, background 0.2s ease; }
.film-cta:hover .film-play {
  border-color: var(--navy);
  background: rgba(107, 143, 192, 0.16);
}
.film-note {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* replaces the facade in place, so it fills the lid's screen */
.film-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* ---------- courtroom demo (signature): your Mac + the jury display ---------- */
.jury { padding: 84px 0 96px; }
/* end, not center: the two columns are different heights and centring them
   left the captions on two different baselines */
.demo-duo { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: end; margin-top: 54px; }
/* flex column + auto margin so both captions sit on one baseline, whatever each column's height */
.demo-col { min-width: 0; display: flex; flex-direction: column; }
.demo-col .chip-caption { text-align: center; margin-top: auto; padding-top: 16px; }
.jury-frame {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  overflow: hidden;
  background: #05070C;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.10) inset;
}
.stand {
  width: 24%;
  height: 12px;
  margin: 0 auto;
  background: linear-gradient(180deg, #2A3243, #121826);
}
.stand::after {
  content: "";
  display: block;
  width: 300%;
  height: 7px;
  margin: 12px 0 0 -100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #232B3A, #0C1119);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.55);
}
.jury-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.onair {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 69, 58, 0.14);
  border-bottom: 1px solid rgba(255, 69, 58, 0.35);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}
.onair .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--onair);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.onair .label { color: #FFB4AE; }
.jury-head button {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}
.jury-head button:hover { background: rgba(255, 255, 255, 0.15); }
.jury-screen { position: relative; background: #000; }
.jury-screen img { width: 100%; height: auto; }
.jury-screen .cover {
  position: absolute; inset: 0;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.15em;
  color: #3a4150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.demo-duo.blackout .cover { opacity: 1; }
.demo-duo.blackout .onair {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: var(--line);
}
.demo-duo.blackout .onair .dot { background: #5a6270; animation: none; }
.demo-duo.blackout .onair .label { color: var(--muted); }
.jury-caption {
  margin: 26px auto 0;
  text-align: center;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 46em;
}

/* ---------- core loop ---------- */
.loop { padding: 0 0 92px; }
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.loop-card, .more-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.loop-card:hover, .more-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(107, 143, 192, 0.14);
}
.loop-card { padding: 28px; }
.loop-card kbd { font-size: 1.05rem; padding: 5px 13px; }
.loop-card h3 { margin: 18px 0 8px; font-size: 1.16rem; }
.loop-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- exhibit sections ---------- */
.exhibit { padding: 96px 0; border-top: 1px solid var(--line); }
.exhibit.band { background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent); }
.ex-head { display: flex; align-items: center; justify-content: center; gap: 14px; }
.sticker {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  border-radius: 11px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(107, 143, 192, 0.28), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
.ex-head .eyebrow { color: var(--muted); }
.ex-cols { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; margin-top: 46px; align-items: start; }
.ex-cols ul { list-style: none; }
.ex-cols li { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.98rem; }
.ex-cols li strong { color: var(--text); font-weight: 600; }
.ex-cols li:first-child { border-top: 1px solid var(--line); }

/* screenshot crop chips — bg is the 1642×987 logical screenshot */
.chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background-image: url("assets/shots/main-window.png");
  background-size: 1642px 987px;
  background-repeat: no-repeat;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.chip-caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 12px;
  text-transform: uppercase;
}
.chip-stack { display: flex; flex-direction: column; gap: 28px; }

/* real screenshots, staged on a MacBook */
.shot-frame { margin: 46px auto 0; max-width: 1000px; }
.shot-frame figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
  text-align: center;
}
.shot-tall, .shot-search, .shot-wide {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.shot-tall { max-width: 360px; }
.shot-search { max-width: 460px; }
.shot-wide { max-width: 520px; width: 100%; height: auto; }

/* HTML-built visuals */
.transcript-mock {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 28px;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 2.1;
}
.transcript-mock .pl { color: var(--muted); margin-right: 16px; }
.transcript-mock .word { border-bottom: 1px dotted rgba(107, 143, 192, 0.5); }
.transcript-mock .hit {
  background: var(--navy);
  color: #000;
  border-radius: 4px;
  padding: 1px 6px;
  border-bottom: none;
}
.transcript-mock .stamp { float: right; color: var(--navy); font-size: 0.78rem; letter-spacing: 0.08em; }
#ex-c .fact-pills { margin-top: 26px; }

.desig {
  font-family: var(--mono);
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.desig-row { display: flex; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
.desig-row:last-child { border-bottom: none; }
.desig-row .range { color: var(--text); min-width: 8.5em; }
.desig-row .who { color: var(--muted); flex: 1; }
.desig-row .qc { color: var(--admit); }
.desig-row .flag { color: var(--warn); }

.quote-card {
  background: #FAFAF7;
  color: #16181D;
  border-radius: var(--r-card);
  padding: 42px 38px 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}
.quote-card blockquote { font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.35; }
.quote-card .cite {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #D8D8D2;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: #5A5E68;
}

/* ---------- the orbit: one Mac, every job ---------- */
.orbit { padding: 96px 0 40px; border-top: 1px solid var(--line); }
.orbit-stage {
  position: relative;
  max-width: 940px;
  margin: 22px auto 0;
  aspect-ratio: 1 / 0.62;   /* 0.78 left a screen of dead air under the nodes */
}
.orbit-stage .ring {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  aspect-ratio: 1;
  border: 1px solid rgba(107, 143, 192, 0.17);
  border-radius: 50%;
  animation: orbit-spin 46s linear infinite;
}
/* one lit point per ring, carried round by the ring's own rotation */
.orbit-stage .ring::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 14px 3px rgba(107, 143, 192, 0.55);
}
@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.orbit-stage .r1 { width: 34%; }
.orbit-stage .r2 { width: 58%; animation-duration: 72s; animation-direction: reverse; }
.orbit-stage .r3 { width: 84%; animation-duration: 98s; }
.orbit-stage::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 62%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(107, 143, 192, 0.22), transparent 70%);
  filter: blur(14px);
}
.orbit-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 42%;
  transform: translate(-50%, -50%);
}
/* decorative at this size — nothing in it is legible, so let it sit back
   behind the rings instead of shouting in the app's Staged orange */
.orbit-core .screen img { filter: saturate(0.5) brightness(0.86); }
.node {
  position: absolute;
  width: 190px;
  margin-left: -95px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--text);
  font-size: 0.96rem;
}
.node:hover { text-decoration: none; }
.node:hover .node-tile { border-color: var(--line-strong); background: rgba(107, 143, 192, 0.16); }
.node-tile {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
}
/* a light travels the ring of jobs, one at a time — the section's whole argument, moving */
.node-tile { position: relative; }
.node-tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--navy);
  opacity: 0;
  animation: node-pulse 9s ease-in-out infinite;
}
@keyframes node-pulse {
  0%, 78%, 100% { opacity: 0; box-shadow: none; }
  86% { opacity: 0.6; box-shadow: 0 0 22px rgba(107, 143, 192, 0.4); }
}
.node.n1 .node-tile::after { animation-delay: 0s; }
.node.n2 .node-tile::after { animation-delay: 1.5s; }
.node.n3 .node-tile::after { animation-delay: 3s; }
.node.n4 .node-tile::after { animation-delay: 4.5s; }
.node.n5 .node-tile::after { animation-delay: 6s; }
.node.n6 .node-tile::after { animation-delay: 7.5s; }

.node.n1 { left: 12%; top: 15%; }
.node.n2 { left: 3%;  top: 50%; }
.node.n3 { left: 12%; top: 85%; }
.node.n4 { left: 88%; top: 15%; }
.node.n5 { left: 97%; top: 50%; }
.node.n6 { left: 88%; top: 85%; }

/* ---------- also-in-the-room feature grid ---------- */
.more { padding: 40px 0 96px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.more-card { padding: 26px 26px 28px; }
.more-card p { color: var(--muted); font-size: 0.93rem; margin-top: 10px; }

/* ---------- full feature list ---------- */
.featlist { padding: 96px 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent); }
.featlist .groups { margin-top: 46px; border-top: 1px solid var(--line); }
.featlist details { border-bottom: 1px solid var(--line); }
.featlist summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 4px;
  font-family: var(--display);
  font-size: 1.28rem;
  transition: color 0.15s ease;
}
.featlist summary::-webkit-details-marker { display: none; }
.featlist summary:hover { color: var(--navy); }
.featlist summary .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.featlist summary::after { content: "+"; font-family: var(--mono); font-size: 1.15rem; color: var(--navy); }
.featlist details[open] summary::after { content: "\2013"; }
.featlist details ul {
  list-style: none;
  columns: 2;
  column-gap: 48px;
  padding: 0 4px 26px;
}
.featlist details li {
  break-inside: avoid;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.94rem;
  border-bottom: 1px dashed rgba(107, 143, 192, 0.14);
}
@media (max-width: 900px) {
  .featlist details ul { columns: 1; }
}

/* ---------- privacy band ---------- */
.privacy-band { padding: 96px 0; border-top: 1px solid var(--line); text-align: center; }
.privacy-band .lede { margin: 20px auto 30px; }
.privacy-band .fact-pills { justify-content: center; margin-bottom: 32px; }

/* ---------- pricing / closing call ---------- */
.pricing {
  position: relative;
  padding: 104px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.pricing::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 900px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(107, 143, 192, 0.20), transparent 70%);
  pointer-events: none;
}
.pricing .wrap { position: relative; }
.pricing .lede { margin: 20px auto 32px; }
.app-icon { width: 92px; margin: 0 auto 26px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55)); }

/* ---------- contact ---------- */
.contact { padding: 104px 0; border-top: 1px solid var(--line); text-align: center; }
.contact .lede { margin: 20px auto 32px; }
.contact-fine {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  user-select: all;
  -webkit-user-select: all;
}

/* ---------- footer, closed by the wordmark ---------- */
.footer { padding: 56px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 32px; width: auto; }
.footer nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.footer a, .footer p { color: var(--muted); font-size: 0.8rem; } /* 0.86rem overflowed the 1132px row by ~20px and wrapped the nav under the © line */
.footer::after {
  content: "EVIDENTIARY";
  display: block;
  margin: 40px 0 -0.2em;
  font-family: var(--display);
  font-weight: 400;
  font-size: 13.6vw;   /* "EVIDENTIARY" measures ~7em wide in this face: fills the width, edge to edge */
  line-height: 0.82;
  text-align: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(236, 241, 248, 0.085);
  user-select: none;
  /* The glyph box overflows its 0.82 line box upward, right over the nav row
     above it; without this it swallows every click on the footer links. */
  pointer-events: none;
}

/* ---------- privacy page ---------- */
.legal { padding: 64px 0 96px; max-width: 760px; }
.legal h1 { margin-bottom: 8px; font-size: clamp(2.1rem, 4vw, 3rem); }
.legal .updated { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; }
.legal h2 { font-size: 1.4rem; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal strong { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .float-chip { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 42px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 900px) {
  .loop-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .ex-cols, .demo-duo { grid-template-columns: 1fr; gap: 34px; }
  .shot-search, .shot-tall { max-width: 100%; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  .exhibit, .featlist, .privacy-band, .pricing, .contact, .jury, .orbit, .stats { padding-top: 68px; padding-bottom: 68px; }
  /* the orbit unrolls into a plain list */
  .orbit-stage { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .orbit-stage .ring, .orbit-stage::before { display: none; }
  .orbit-core { position: static; width: 100%; transform: none; grid-column: 1 / -1; margin-bottom: 14px; }
  .node { position: static; width: auto; margin: 0; transform: none; }
}
/* ---------- phones ----------
   Three things were wrong here, all scale problems rather than layout problems:
   a whole desktop window rendered at ~9% and read as a grey smudge, the mono
   captions sat at 10.9px in all-caps while body copy ran at 17px, and half the
   tap targets were under 40px. */
@media (max-width: 700px) {
  /* show a magnified centre crop of each app window instead of the whole thing:
     legible, still obviously the real app, and the lid keeps its proportions.
     .film-frame is excluded — it holds the placeholder, which sizes itself. */
  /* Every screenshot keeps its true aspect and stays whole. A 240% centre crop
     was tried here to fight illegibility and was a mistake: only some of the
     shots sat in a wrapper the rule could reach, so a magnified crop could end
     up directly above a full-width one in the same section, and a 42%-visible
     window reads as a mis-scaled image rather than a deliberate detail.
     A 100vw full-bleed was tried to win the width back and was worse still: it
     widens the containing block, which pushed the body copy beside it off the
     right edge. Screenshots simply fit their own container now. A desktop window
     is small on a phone; the copy and the CSS mocks carry those sections. */

  /* captions: drop the all-caps mono treatment, which needs width to read */
  .chip-caption, .shot-frame figcaption {
    font-family: var(--body);
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.45;
  }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; }
  /* the film facade has four stacked items in a 16:9 panel only ~190px tall */
  .film-play { width: 62px; height: 62px; }
  .film-play::before { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
  .film-placeholder { gap: 10px; }
  .film-note { font-size: 0.7rem; letter-spacing: 0.08em; }

  /* The stat copy is written as a continuation of its figure — "2 Screens, two
     audiences", "100% Of it runs on your Mac" — which only reads if the two sit
     together. Stacked one per row, each number became an orphan above an
     unrelated-looking sentence. Pair them on a line, numbers right-aligned into
     a column so the labels start flush. */
  .stat-grid { grid-template-columns: 1fr; margin-top: 28px; row-gap: 0; }
  .stat {
    display: grid;
    grid-template-columns: 100px 1fr;
    column-gap: 30px;
    /* centre, not baseline: baseline pinned each figure to its label's FIRST
       line, so against a three-line label the number sat up in the corner */
    align-items: center;
    padding: 17px 0;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
  .stat:first-child { border-top: 1px solid var(--line); }
  .stat b {
    order: 1;
    position: relative;
    margin-top: 0;
    font-size: 2.4rem;
    text-align: right;
  }
  /* hang the % outside the column: in flow it takes the right-edge slot, which
     left "100" 21px short of where 152, 2 and 1 end. Digits align now. */
  .stat b span {
    position: absolute;
    left: 100%;
    bottom: 0.42em;
    margin-left: 3px;
    font-size: 0.34em;
  }
  .stat p { order: 2; min-height: 0; font-size: 0.95rem; line-height: 1.5; }

  /* body copy was oversized next to those captions; bullets ran five lines each */
  body { font-size: 16px; }
  .lede { font-size: 1rem; }
  .ex-cols li { font-size: 0.95rem; padding: 13px 0; }
  .ex-lede, .jury-caption { font-size: 0.97rem; }

  /* every tap target up to 44px */
  .nav-links .btn, .tab { min-height: 44px; display: inline-flex; align-items: center; }
  /* the home link's hit area was only as tall as the logo itself */
  .nav .wrap > a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer nav a { display: inline-block; padding: 11px 0; }
  /* 40 not 44: this one sits inside the jury mock's own title bar and a taller
     control distorts it. Pressing B does the same thing. */
  #blackoutBtn { min-height: 40px; padding: 0 12px; }
  .groups summary { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 600px) {
  .nav .wrap { gap: 12px; padding-left: 16px; }
  .nav img { height: 24px; }
  /* wrapped onto two rows it would cover half the screen: let it scroll away */
  .tabbar { position: static; }
  .tabrow { border-radius: 28px; }
  .tab { font-size: 0.82rem; padding: 9px 14px; }
  main section, .tabpanel { scroll-margin-top: 80px; }
  .nav-links .btn { padding: 8px 14px; font-size: 0.78rem; white-space: nowrap; }
  .transcript-mock { padding: 18px 16px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; padding-left: 0; }
  .orbit-stage { grid-template-columns: 1fr; }
}
