/* Sottovoce design system: one background, two fonts, one display size, one card,
   one button pair. Every page builds from these primitives. */

:root {
  --bg: #f3f3f3;
  --ink: #111111;
  --body: #5c5c5c;
  --muted: #8b8b8b;
  --line: rgba(17, 17, 17, 0.08);
  --card: #ffffff;
  --accent: #c2410c;
  --ok: #15803d;
  --ok-bg: #e7f4ec;
  --bad: #b91c1c;
  --bad-bg: #fbe9e7;
  --warn: #92400e;
  --warn-bg: #fdf1dc;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(17, 17, 17, 0.07);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .btn and .badge set display, which would beat the attribute */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Type */
.display, h1, h2 {
  font: 400 48px/1.1 var(--display);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h3 { font: 600 20px/1.3 var(--sans); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.lede { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 620px; }
.body { color: var(--body); }
.eyebrow {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.small { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .display, h1, h2 { font-size: 36px; }
  .lede { font-size: 17px; }
}

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-header { display: grid; gap: 14px; margin-bottom: 40px; }
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 243, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav .container { height: 68px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--sans); letter-spacing: -0.02em; text-decoration: none; }
.logo-mark { width: 22px; height: 22px; flex: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2a2a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(17, 17, 17, 0.16); }
.btn-ghost:hover { background: rgba(17, 17, 17, 0.04); }
.btn-small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.link { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.glass {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* The one repeated visual: real product UI on a soft grainy gradient */
.stage {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 10% 10%, #f6d9c6 0%, transparent 55%),
    radial-gradient(90% 80% at 90% 20%, #d9dbe9 0%, transparent 60%),
    radial-gradient(100% 90% at 60% 100%, #e9c7b8 0%, transparent 55%),
    #ece6df;
}
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
.stage > * { position: relative; z-index: 1; }

/* Status chips: one claim, one verdict */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12.5px/1 var(--sans); padding: 6px 10px; border-radius: 999px;
  background: rgba(17, 17, 17, 0.05); color: var(--ink);
}
.chip::before { font-weight: 700; }
.chip.supported { background: var(--ok-bg); }
.chip.supported::before { content: "✓"; color: var(--ok); }
.chip.contradicted { background: var(--bad-bg); }
.chip.contradicted::before { content: "✗"; color: var(--bad); }
.chip.not_visible { background: var(--warn-bg); }
.chip.not_visible::before { content: "?"; color: var(--warn); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans);
  padding: 5px 9px; border-radius: 999px; background: rgba(17, 17, 17, 0.06); color: var(--body); white-space: nowrap;
}
.badge.verified, .badge.done { background: var(--ok-bg); color: var(--ok); }
.badge.approved { background: #e8eefb; color: #1e40af; }
.badge.needs_review, .badge.running, .badge.queued { background: var(--warn-bg); color: var(--warn); }
.badge.failed { background: var(--bad-bg); color: var(--bad); }

/* Motion: a short entrance on load, a fade-up on scroll, nothing that loops but the strip */
.enter { animation: enter 560ms var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.pop { animation: pop 380ms var(--ease) both; animation-delay: calc(var(--i, 0) * 160ms); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter, .pop { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none !important; }
}

/* Footer */
.footer { padding: 40px 0 56px; color: var(--muted); font-size: 13px; }
.footer .container { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
