/* Debunked — site styles.
   The rules of the house: system type at confident sizes, one idea per band,
   whitespace does the layout, colour is reserved for verdicts. Motion is
   used to demonstrate the product and to welcome the reader — never to
   decorate for its own sake, and never against prefers-reduced-motion. */

:root {
  --ink: #1c1a17;
  --ink-soft: #56524b;
  /* Warm paper, not gallery white. The whole site should feel like a page
     someone works at, not a product surface. */
  --paper: #faf7f2;
  --paper-alt: #f1ece3;
  --line: rgba(40, 30, 15, 0.1);
  --accent: #0b66c3;
  --pencil: #d64545;      /* the editor's red pencil */
  --false: #ff453a;
  --caution: #ffb340;
  --ok: #30d158;
  --radius: 18px;
  font-size: 17px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* The nav is sticky, so an anchor jump would otherwise land its target
   underneath it -- "How it works" and every privacy-policy contents link
   arrived with the heading hidden behind the bar. */
section[id], [id^="who"], .legal h2[id] { scroll-margin-top: 92px; }

body {
  font-family: -apple-system, "SF Pro Text", "Segoe UI Variable Text",
               "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A whisper of grain over everything, like paper stock. SVG turbulence in a
   data URI: no request, no library, and it costs nothing to render. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* The handwriting used for margin notes and the signature. Segoe Print ships
   with Windows — where every customer is -- with graceful fallbacks. */
.margin-note, .signature {
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}

h1, h2, h3 {
  font-family: -apple-system, "SF Pro Display", "Segoe UI Variable Display",
               "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
p a, .dark-fine a { color: var(--accent); }
p a:hover { text-decoration: underline; }

/* ------------------------------- nav ---------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 48px);
  /* Nearly opaque rather than lightly tinted: over the dark band a 78% paper
     bar mixed down to a muddy grey slab, and on any engine that skips
     backdrop-filter there was no blur to rescue it. */
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-mark { width: 22px; height: 22px; color: var(--ink); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1.4); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }

.nav nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }

.nav nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav nav a:hover { color: var(--ink); }

.nav-cta {
  color: #fff !important;
  background: var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 550;
  transition: transform 0.15s ease, background 0.15s;
}
.nav-cta:hover { background: #000; transform: scale(1.04); }

/* ------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) 24px 40px;
  text-align: center;
}

.hero h1 {
  position: relative;
  /* Pure viewport scaling under the cap, with no floor. A clamp() floor let
     "Now you know." wrap on a phone, and since the pencil stroke is drawn
     across the whole span's box, a wrapped span dragged the underline far
     past the words. Sized so the longest line always fits on one line. */
  font-size: min(10.5vw, 112px);
  letter-spacing: -0.035em;
}

/* The red pencil under "Now you know." — one confident, imperfect stroke,
   drawn on just after the headline settles. */
/* One line, always: the underline is positioned against this box. */
.underlined { position: relative; display: inline-block; white-space: nowrap; }
.pencil-line {
  position: absolute;
  left: 2%;
  bottom: -0.08em;
  width: 96%;
  height: 0.14em;
  color: var(--pencil);
  transform: rotate(-0.6deg);
}
.pencil-line path {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: draw 0.7s 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ------------------------- drifting background ------------------------- */

/* Brand marks adrift behind the content: claims floating around until
   something catches them. Faint, slow, and absolutely never in the way. */
.floaties {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.floaty {
  position: absolute;
  color: var(--ink);
  opacity: 0.045;
  animation: drift 40s ease-in-out infinite alternate;
}
.dark .floaty { color: #fff; opacity: 0.035; }

.floaty.f1 { width: 90px;  height: 90px;  top: 12%; left: 6%;  animation-duration: 46s; }
.floaty.f2 { width: 46px;  height: 46px;  top: 24%; right: 9%; animation-duration: 38s; animation-delay: -12s; }
.floaty.f3 { width: 150px; height: 150px; bottom: 8%; right: 4%; animation-duration: 55s; animation-delay: -25s; }
.floaty.f4 { width: 34px;  height: 34px;  bottom: 22%; left: 12%; animation-duration: 33s; animation-delay: -6s; }
.floaty.f5 { width: 64px;  height: 64px;  top: 55%; left: 45%;  animation-duration: 60s; animation-delay: -30s; }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(-7deg); }
  50%  { transform: translate(26px, -34px) rotate(5deg); }
  100% { transform: translate(-18px, 22px) rotate(-3deg); }
}

.hero-sub {
  max-width: 700px;
  margin: 28px auto 0;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  /* Stops a lone word stranded on the last line. Ignored where unsupported,
     which costs nothing -- the width above already does most of the work. */
  text-wrap: pretty;
}

.hero-fine {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  opacity: 0.85;
}

/* ----------------------------- waitlist -------------------------------- */

.waitlist {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* The form carries hidden inputs (form-name, source) for Netlify. The rule
   below styles inputs generously, so say plainly that hidden means hidden --
   a stray text box in the hero is the kind of thing that ships unnoticed. */
.waitlist input[type="hidden"] { display: none !important; }

.waitlist input {
  font: inherit;
  font-size: 16px;
  padding: 13px 20px;
  width: min(320px, 72vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink);
  outline-offset: 2px;
  transition: border-color 0.15s, background 0.15s;
}
.waitlist input:focus { border-color: var(--accent); background: #fff; }

/* Ink, not SaaS blue: the button should feel like a stamp, not a funnel. */
.waitlist button {
  font: inherit;
  font-size: 16px;
  font-weight: 550;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s, box-shadow 0.2s;
}
.waitlist button:hover { background: #000; transform: translateY(-1px) rotate(-0.5deg); box-shadow: 0 6px 18px rgba(28, 26, 23, 0.3); }
.waitlist button:active { transform: scale(0.97); }
.waitlist button:disabled { opacity: 0.75; cursor: default; transform: none; box-shadow: none; }

/* Off-screen rather than display:none — a bot reading the DOM should find a
   field that looks fillable, and a screen reader should never reach it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Full-width so a message does not squeeze the input mid-sentence. */
.form-status {
  flex: 0 0 100%;
  min-height: 1.3em;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.form-status.error { color: var(--pencil); }
.form-status.ok { color: #1a7f37; }

.form-done {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

/* --------------------------- the living demo ---------------------------- */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* The section below sets its own generous top padding; matching it here
     stacked into a gap big enough to read as a missing section. */
  padding: clamp(40px, 6vh, 72px) 24px clamp(32px, 5vh, 56px);
  background:
    radial-gradient(1100px 480px at 50% 8%, #f3ecdf 0%, transparent 70%),
    var(--paper);
}

/* The handwritten aside beside the panel, like a note on a printout. */
.margin-note {
  position: absolute;
  /* Aimed at the source chips, which is what it is talking about. */
  top: 48.5%;
  left: calc(50% + 285px);
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--pencil);
  transform: rotate(3deg);
}
/* 48x32 keeps the 60x40 viewBox's aspect ratio, so the stroke is not squashed. */
.note-arrow {
  width: 48px;
  height: 32px;
  margin-top: 6px;
  flex: 0 0 auto;
}
@media (max-width: 1020px) { .margin-note { display: none; } }

.panel {
  display: flex;
  flex-direction: column;
  width: min(520px, 92vw);
  height: 470px;
  background: #16161a;
  border-radius: 22px;
  padding: 14px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.10),
    0 32px 80px -12px rgba(15, 30, 60, 0.35);
  color: #f2f2f4;
  font-size: 14.5px;
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 12px;
  flex: 0 0 auto;
}

.panel-mark { width: 17px; height: 17px; color: #cfd2d8; }
.panel-title { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }

.panel-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #9a9aa2;
}

/* Three little bars that dance while "audio" arrives. */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i {
  width: 3px;
  border-radius: 2px;
  background: var(--ok);
  animation: eq 1.1s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: 0.25s; }
.eq i:nth-child(3) { height: 45%; animation-delay: 0.5s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* Bottom-anchored: cards stack up from just above the line being heard, so
   the panel fills from the bottom like a live log. Top-anchored, the empty
   half sat *below* the content as a black void -- which read as a broken
   screenshot rather than an app waiting for the next claim. */
.panel-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  transition: opacity 0.5s;
  /* Older cards leave through a soft edge instead of being guillotined
     mid-sentence at the top of the frame -- a hard cut reads as a broken
     screenshot, a fade reads as a feed that has been running a while. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 54px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 54px);
}
.panel-cards.fade { opacity: 0; }

.pcard {
  background: #1e1e24;
  border-radius: 14px;
  padding: 15px 16px 13px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pcard.in { opacity: 1; transform: none; }
.pcard.settle { animation: settle 0.4s cubic-bezier(0.2, 0.7, 0.2, 1.3); }

@keyframes settle {
  0% { transform: scale(0.985); }
  60% { transform: scale(1.008); }
  100% { transform: none; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge.v-false   { background: rgba(255, 69, 58, 0.16);  color: #ff6b61; }
.badge.v-context { background: rgba(255, 179, 64, 0.14); color: #ffc25e; }
.badge.v-true    { background: rgba(48, 209, 88, 0.14);  color: #4ade6f; }
.badge.checking  { background: rgba(255, 255, 255, 0.07); color: #b9b9c1; }

.dots { display: inline-flex; gap: 3px; }
.dots i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: dots 1.2s infinite;
}
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

.pcard .claim {
  margin-top: 9px;
  font-weight: 550;
  line-height: 1.4;
  color: #fafafa;
}

.pcard .why {
  margin-top: 7px;
  line-height: 1.5;
  font-size: 13.5px;
  color: #b9b9c1;
}

.pcard .sources {
  display: flex;
  gap: 6px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.pcard .sources span {
  font-size: 11.5px;
  color: #8f93a3;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 9px;
  border-radius: 999px;
}

/* The line being "heard" right now, typing at the foot of the panel. */
.panel-heard {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  min-height: 58px;
}
.heard-label {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
}
.heard-text {
  font-size: 13px;
  line-height: 1.45;
  color: #c9c9cf;
  font-style: italic;
}
.heard-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: #8f93a3;
  vertical-align: text-bottom;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.stage-caption {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 420px;
}

/* ------------------------------ strips ---------------------------------- */

.strip {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 150px) 24px;
  text-align: center;
}

/* A faint dot grid behind the how-it-works columns: graph paper, someone's
   working surface. Sized so it never moirés against the grain. */
#how {
  background-image: radial-gradient(rgba(40, 30, 15, 0.07) 1px, transparent 1.5px);
  background-size: 26px 26px;
  max-width: none;
}
#how .cols, #how h2 { max-width: 1080px; margin-left: auto; margin-right: auto; }
#how .cols { margin-top: clamp(48px, 7vh, 84px); }
#how .col:hover { background: var(--paper); }

.strip h2, .dark h2, .closer h2 {
  font-size: clamp(34px, 5.5vw, 60px);
  letter-spacing: -0.03em;
}

.strip-lead {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
  margin-top: clamp(48px, 7vh, 84px);
  text-align: left;
}

.col {
  padding: 26px 26px 30px;
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, background 0.3s;
}
.col:hover {
  transform: translateY(-4px);
  background: var(--paper-alt);
  box-shadow: 0 12px 32px -12px rgba(15, 30, 60, 0.18);
}

.col h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.col p {
  margin-top: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ----------------------------- dark band -------------------------------- */

.dark {
  position: relative;
  background: #12100d;
  color: #f5f5f7;
  padding: clamp(110px, 15vh, 190px) 24px;
  /* A slight slant on both edges: pasted into the page at a human angle,
     not machined into it. */
  clip-path: polygon(0 2.2vw, 100% 0, 100% calc(100% - 2.2vw), 0 100%);
}

.dark h2, .dark-lead, .dark-fine { text-align: center; }

.dark-lead {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: clamp(17px, 2vw, 20px);
  color: #a1a1a8;
  line-height: 1.5;
}

.facts {
  list-style: none;
  max-width: 720px;
  margin: clamp(44px, 6vh, 72px) auto 0;
  display: grid;
  gap: 18px;
}

.facts li {
  background: #1a1a1f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 22px 26px;
  line-height: 1.55;
  font-size: 15.5px;
  color: #c9c9cf;
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.facts li:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}

.facts strong { color: #fff; font-weight: 650; display: block; margin-bottom: 4px; }

.dark-fine { margin-top: 40px; font-size: 14.5px; color: #a1a1a8; }

/* The ink-blue link colour is close to unreadable on the dark band. */
.dark a { color: #8ac6ff; }

/* -------------------------- a note from the maker ----------------------- */

.note-strip {
  padding: clamp(70px, 10vh, 120px) 24px;
  display: flex;
  justify-content: center;
}

.maker-note {
  max-width: 560px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 44px);
  transform: rotate(-0.6deg);
  box-shadow: 0 1px 3px rgba(40, 30, 15, 0.08), 0 14px 40px -18px rgba(40, 30, 15, 0.25);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.maker-note:hover { transform: rotate(0deg); }

.maker-note h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: -0.02em;
}

.maker-note p {
  margin-top: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-size: 16px;
}

.maker-note .signature {
  margin-top: 22px;
  font-size: 20px;
  color: var(--ink);
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* ------------------------------ closer ---------------------------------- */

.closer {
  position: relative;
  text-align: center;
  padding: clamp(90px, 14vh, 170px) 24px;
  background: var(--paper-alt);
}

.closer-mark { width: 44px; height: 44px; color: var(--ink); }

.closer h2 { margin-top: 18px; }

.closer p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
}

.closer-fine { min-height: 1.2em; font-size: 14px; }

/* ------------------------------ footer ---------------------------------- */

.foot {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 34px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.foot > div { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.foot-mark { width: 17px; height: 17px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin-left: auto; font-style: italic; opacity: 0.8; }

/* ------------------------------ motion ---------------------------------- */

/* Scroll reveals: elements carry .reveal and receive .in from the observer.
   Gated on html.js -- set by an inline script in the head -- so that hiding
   only ever happens when something is running that will un-hide. Without
   script the page is simply visible, rather than a blank sheet of paper. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Stagger siblings so grids cascade instead of arriving as one slab. */
.cols .reveal:nth-child(2) { transition-delay: 0.1s; }
.cols .reveal:nth-child(3) { transition-delay: 0.2s; }
.facts .reveal:nth-child(2) { transition-delay: 0.08s; }
.facts .reveal:nth-child(3) { transition-delay: 0.16s; }
.facts .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sub, .hero .waitlist, .hero-fine {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-sub { animation-delay: 0.08s; }
  .hero .waitlist { animation-delay: 0.16s; }
  .hero-fine { animation-delay: 0.22s; }
  .panel { animation: rise 0.8s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eq i, .heard-text::after, .dots i, .floaty { animation: none; }
  .col:hover, .facts li:hover, .nav-cta:hover, .maker-note:hover { transform: rotate(0); }
  .pencil-line path { animation: none; stroke-dashoffset: 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .foot p { margin-left: 0; }
  .panel { height: 440px; }
}
