/* =========================================================
   Datahooks design system v2 (Notion-inspired)
   Rules: see "datahooks.net Design Framework" in Notion.
   Used by the redesigned homepage. Other pages still use styles.css
   until the rollout reaches them.
   ========================================================= */

:root {
  --ink: #191918;
  --ink-2: #5f5e5b;
  --ink-3: #8f8d89;
  --paper: #ffffff;
  --paper-2: #f7f6f3;
  --line: #e9e8e4;
  --navy: #1a1a2e;
  --coral: #d6456b;          /* brand coral: logo, accents, large numbers */
  --coral-btn: #c93d62;      /* coral deepened just enough for white button text (4.8:1) */
  --coral-btn-hover: #b83a5a;
  --coral-ink: #a8334f;      /* coral text on light tints */
  --coral-tint: #fdeef2;     /* secondary button, coral panels */

  /* Panel backgrounds (Notion-style colored sections) */
  --panel-gray: #f6f5f4;
  --panel-coral: #fdf0f3;
  --panel-navy: #eef0f7;
  --panel-sand: #fbf3e4;
  --panel-sage: #edf5ef;

  --tag-blue: #e7f0fb;   --tag-blue-ink: #1f5fa8;
  --tag-yellow: #fbf3db; --tag-yellow-ink: #8a6100;
  --tag-green: #e8f3ec;  --tag-green-ink: #2f7a4b;
  --tag-pink: #fbe9ee;   --tag-pink-ink: #b83a5a;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;

  --r-sm: 8px;
  --r: 12px;
  --shadow-window: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);

  --w-prose: 720px;
  --w-row: 1080px;
  --w-max: 1200px;
  --section: 120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--w-max); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--w-prose); margin: 0 auto; }

h1, h2, h3 { color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.caption { font-size: 13px; color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  font: 500 16px/1 var(--font); cursor: pointer; border: 0;
  transition: background-color .15s ease;
}
.btn-primary { background: var(--coral-btn); color: #fff; }
.btn-primary:hover { background: var(--coral-btn-hover); }
.btn-soft { background: var(--coral-tint); color: var(--coral-ink); }
.btn-soft:hover { background: #fbe1e8; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33322f; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f1f1f5; }
.btn-plain { background: transparent; color: var(--ink); }
.btn-plain:hover { background: var(--paper-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 15px; }
.link { color: var(--coral); font-weight: 500; }
.link:hover { color: var(--coral-ink); }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; font-size: 14px; font-weight: 500; line-height: 1;
  padding: 5px 8px; border-radius: 6px;
}
.tag-pink { background: var(--tag-pink); color: var(--tag-pink-ink); }
.tag-blue { background: var(--tag-blue); color: var(--tag-blue-ink); }
.tag-green { background: var(--tag-green); color: var(--tag-green-ink); }
.tag-yellow { background: var(--tag-yellow); color: var(--tag-yellow-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--navy); display: grid; place-items: center; }
.brand-mark img { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin-right: auto; }
.nav-links a { display: block; padding: 6px 10px; border-radius: 6px; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-cta { display: flex; gap: 4px; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; border-radius: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.center { text-align: center; }

/* Hero */
.hero { padding: 104px 0 0; text-align: center; }
.hero h1 { max-width: 820px; margin: 0 auto; }
.hero .lead { max-width: 620px; margin: 24px auto 0; }
.hero-actions { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; }
.hero-art { max-width: var(--w-row); margin: 72px auto 0; }

/* Logo strip */
.logos { padding: 80px 0 var(--section); text-align: center; }
.logos p { font-size: 15px; color: var(--ink-3); margin-bottom: 28px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; }
.logo-row span { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: -0.01em; }
.logo-row img { height: 22px; width: 22px; object-fit: contain; filter: grayscale(1); opacity: .6; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; max-width: var(--w-row); margin: 0 auto; }
.feature + .feature { margin-top: var(--section); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature-text h2 { margin: 16px 0 16px; }
.feature-text p { color: var(--ink-2); }
.feature-text .link { display: inline-block; margin-top: 20px; }

/* ---------- Color panels ---------- */
.panel { border-radius: 20px; overflow: hidden; position: relative; }
.panel-gray { background: var(--panel-gray); }
.panel-coral { background: var(--panel-coral); }
.panel-navy { background: var(--panel-navy); }
.panel-sand { background: var(--panel-sand); }
.panel-sage { background: var(--panel-sage); }
.panel-dark { background: var(--navy); color: #fff; }

/* Hero stage: the merge window sits on a navy-tinted panel and bleeds off the bottom */
.hero-stage { max-width: var(--w-row); margin: 72px auto 0; padding: 56px 56px 0; }
.hero-stage .window { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

/* Feature panels: text on top, artifact cropped at the bottom edge */
.fpanel { max-width: var(--w-row); margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding: 56px 0 0 56px; align-items: start; }
.fpanel + .fpanel { margin-top: 24px; }
.fpanel .feature-text { padding-bottom: 56px; }
.fpanel .feature-text h2 { margin: 16px 0 16px; }
.fpanel .feature-text p { color: var(--ink-2); }
.fpanel .feature-text .link { display: inline-block; margin-top: 20px; }
.fpanel .window { border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 40px rgba(26,26,46,.08); align-self: end; }
.panel-coral .tag { background: #fff; color: var(--coral-ink); }
.panel-navy .tag { background: #fff; color: #33407a; }
.panel-sand .tag { background: #fff; color: var(--tag-yellow-ink); }

/* Band: full-width colored section */
.band { padding: var(--section) 0; }
.band-gray { background: var(--panel-gray); }
.band-coral { background: var(--panel-coral); }

/* ---------- Artifact window ---------- */
.window {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-window); overflow: hidden; text-align: left;
}
.window-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #dddcd7; display: block; }
.window-crumb { margin-left: 6px; }
.window-crumb b { color: var(--ink); font-weight: 500; }
.window-body { padding: 28px 32px 32px; }
.window-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.window-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }

/* Tables inside artifacts */
.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t .strike { color: var(--ink-3); text-decoration: line-through; }
.t .keep { background: #fbfaf7; }
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }

/* Merge record (hero artifact) */
.merge { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0; align-items: center; }
.merge-arrow { text-align: center; color: var(--ink-3); font-size: 20px; }
.rec { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.rec + .rec { margin-top: 10px; }
.rec-name { font-weight: 600; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.rec dl { display: grid; grid-template-columns: 96px 1fr; gap: 3px 10px; color: var(--ink-2); }
.rec dt { color: var(--ink-3); }
.rec .blank { color: var(--ink-3); font-style: italic; }
.rec.canonical { border-color: var(--ink); }
.rec.canonical dd { color: var(--ink); }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ba > div { padding: 18px 20px; }
.ba > div + div { border-left: 1px solid var(--line); }
.ba-head { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.ba-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-top: 1px solid var(--line); }
.ba-row:first-of-type { border-top: 0; }
.ba-row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.ba .after span:last-child { color: var(--ink); }
.ba .before span:last-child { color: var(--ink-2); }

/* Log */
.log { list-style: none; font-size: 14px; }
.log li { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Steps ---------- */
.steps { list-style: none; max-width: var(--w-row); margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps .n { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; display: block; }
.steps p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }

/* ---------- Calculator ---------- */
.calc-panel { max-width: var(--w-row); margin: 0 auto; padding: 64px 56px; display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.calc-panel h2 { color: #fff; }
.calc-panel .lead { color: rgba(255,255,255,.72); margin-top: 16px; font-size: 18px; }
.calc { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 32px; text-align: left; }
.calc .calc-ctrl label { color: rgba(255,255,255,.72); }
.calc .calc-ctrl label output { color: #fff; }
.calc input[type=range] { accent-color: var(--coral); }
.calc .calc-out { border-top-color: rgba(255,255,255,.14); }
.calc .calc-out div span { color: rgba(255,255,255,.72); }
.calc .calc-out strong { color: #fff; }
.calc .calc-out .accent { color: #f07a98; }
.calc-ctrl + .calc-ctrl { margin-top: 24px; }
.calc-ctrl label { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.calc-ctrl label output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.calc-out div span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.calc-out strong { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-out .accent { color: var(--coral); }

/* ---------- Definition ---------- */
.definition { text-align: center; max-width: 760px; margin: 0 auto; }
.definition .word { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 6vw, 64px); font-weight: 400; letter-spacing: -0.02em; }
.definition .pron { color: var(--ink-3); font-size: 16px; margin: 4px 0 20px; }
.definition p { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; padding: var(--section) 0; background: var(--panel-coral); }
.closing-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.closing .btn-soft { background: #fff; }
.closing p { margin: 16px auto 32px; max-width: 520px; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 48px; font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--ink); }
.footer-brand p { margin-top: 12px; max-width: 280px; font-family: var(--serif); font-size: 16px; color: var(--ink-2); }
.footer-bottom { margin-top: 48px; color: var(--ink-3); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --section: 72px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-text { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .fpanel { grid-template-columns: 1fr; gap: 0; padding: 40px 0 0 28px; }
  .fpanel .feature-text { padding: 0 28px 32px 0; }
  .calc-panel { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .hero-stage { padding: 32px 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .lead { font-size: 18px; }
  .hero { padding-top: 64px; }
  .hero-art { margin-top: 48px; }
  .nav-links, .nav-cta .btn-plain { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { order: 3; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .window-body { padding: 20px 18px 22px; }
  .merge { grid-template-columns: 1fr; }
  .merge-arrow { transform: rotate(90deg); padding: 6px 0; }
  .ba { grid-template-columns: 1fr; }
  .ba > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .calc { padding: 24px 20px; }
  .hero-stage { padding: 20px 12px 0; border-radius: 16px; }
  .fpanel { padding: 32px 0 0 20px; border-radius: 16px; }
  .fpanel .feature-text { padding: 0 20px 28px 0; }
  .calc-panel { padding: 32px 20px; border-radius: 16px; }
  .calc-out { grid-template-columns: 1fr; }
  .calc-out strong { font-size: 32px; }
  .log li { grid-template-columns: 64px 1fr; }
  .log li .pill { grid-column: 2; justify-self: start; }
  .t { font-size: 13px; }
  .table-scroll { overflow-x: auto; }
}

/* Links inside tinted panels use the deeper coral for contrast */
.link { color: var(--coral-btn); }
.panel .link { color: var(--coral-ink); }

/* On phones the feature window stops bleeding off the right edge so tables stay readable */
@media (max-width: 760px) {
  .fpanel { padding: 32px 16px 0; }
  .fpanel .feature-text { padding: 0 4px 28px; }
  .fpanel .window { border-right: 1px solid var(--line); border-radius: 12px 12px 0 0; }
}

/* Team proof strip (under the hero CTAs, like Notion's logo row) */
.proof { margin: 56px auto 0; max-width: 920px; }
.proof > p:first-child { font-size: 15px; color: var(--ink-3); margin-bottom: 20px; }
.wordmarks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.wordmarks li { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #9c9a96; white-space: nowrap; }
.proof .caption { margin-top: 18px; }
.logos-tools { padding: 0 0 var(--section); }
@media (max-width: 760px) {
  .proof { margin-top: 40px; }
  .wordmarks { gap: 10px 24px; }
  .wordmarks li { font-size: 17px; }
}
.btn { white-space: nowrap; }
@media (max-width: 760px) { .nav .wrap { gap: 12px; } .nav-toggle { order: 4; margin-left: 0; } .nav-cta { margin-left: auto; } }

/* Scrolling logo strip (Notion-style marquee) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; display: flex; align-items: center; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track li { flex: none; padding: 0 32px; display: flex; align-items: center; height: 48px; }
.marquee-track img { width: auto; max-width: none; display: block; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 760px) { .marquee-track li { padding: 0 20px; } .marquee-track img { transform: scale(.85); } }

/* Where bad data costs you deals: one annotated deal record, off-center layout */
.leak-layout { max-width: var(--w-row); margin: 0 auto; display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
.leak-intro { position: sticky; top: 104px; }
.leak-intro h2 { margin-bottom: 16px; }
.leak-intro .lead { font-size: 18px; }
.leak-rows { border-top: 1px solid var(--line); }
.leak-row { display: grid; grid-template-columns: 104px 168px 1fr; gap: 16px; padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.leak-row:last-child { border-bottom: 0; }
.leak-row .lf { color: var(--ink-3); }
.leak-row .lv { display: flex; flex-direction: column; gap: 2px; }
.leak-row .ln { color: var(--ink-2); line-height: 1.5; }
.leak-row .ln .tag { font-size: 12px; padding: 3px 6px; margin-right: 6px; }
.leak-row.flag { background: var(--panel-coral); border-radius: 8px; border-bottom-color: transparent; margin: 4px 0; }
.leak-row .bad { color: var(--coral-ink); font-weight: 600; text-decoration: underline wavy rgba(201,61,98,.55); text-underline-offset: 3px; }
.leak-row .was { color: var(--ink-3); font-size: 13px; }
@media (max-width: 900px) {
  .leak-layout { grid-template-columns: 1fr; gap: 32px; }
  .leak-intro { position: static; }
}
@media (max-width: 760px) {
  .leak-row { grid-template-columns: 96px 1fr; }
  .leak-row .ln { grid-column: 1 / -1; }
  .leak-row .ln:empty { display: none; }
}

/* Systems strip, right under the hero */
.systems { padding: 72px 0 0; }
.systems h3 { font-size: 20px; }
.systems .muted { font-size: 16px; margin-top: 6px; }
.systems-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 56px; margin-top: 32px; }
.systems-row img { width: auto; max-width: none; display: block; }
.leaks-section { padding-top: 96px; }
@media (max-width: 760px) { .systems { padding-top: 56px; } .systems-row { gap: 20px 32px; } .systems-row img { transform: scale(.85); } }
.leak-row.flag .tag { background: #fff; }

/* =========================================================
   Inner pages
   ========================================================= */
.nav-links a.active { color: var(--ink); background: var(--paper-2); }

/* Page header: left-aligned title block, not a centered banner */
.page-head { padding: 88px 0 64px; }
.page-head .inner { max-width: var(--w-row); margin: 0 auto; }
.page-head h1 { max-width: 760px; margin-top: 16px; }
.page-head .lead { max-width: 640px; margin-top: 20px; }
.page-head .hero-actions { justify-content: flex-start; margin-top: 32px; }
.page-head.compact { padding: 72px 0 40px; }
.page-head.compact h1 { font-size: clamp(34px, 5vw, 48px); }

/* Two-column row used on inner pages: text left, artifact or notes right */
.split { max-width: var(--w-row); margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split > * { min-width: 0; }
.split + .split { margin-top: 96px; }
.split .text h2 { margin: 14px 0 16px; }
.split .text p { color: var(--ink-2); }
.split .text p + p { margin-top: 12px; }

/* Plain checklist (no emoji checks) */
.checks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--coral-btn); border-bottom: 2px solid var(--coral-btn); transform: rotate(-45deg); }

/* Numbered steps inside an artifact (real sequence only) */
.seq { list-style: none; counter-reset: seq; }
.seq li { counter-increment: seq; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.seq li:last-child { border-bottom: 0; }
.seq li::before { content: counter(seq); width: 24px; height: 24px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.seq b { display: block; font-weight: 600; margin-bottom: 2px; }
.seq span { color: var(--ink-2); }

/* Pull quote */
.pull { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.45; color: var(--ink); }
.pull-who { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* Long-form text (legal, whitepaper body) */
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 12px 0 0 22px; display: grid; gap: 6px; }
.prose a { color: var(--coral-btn); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.doc-meta { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

/* Side table of contents for long pages */
.doc { max-width: var(--w-row); margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; padding-bottom: var(--section); }
.doc > * { min-width: 0; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc p { color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
.doc .prose { max-width: var(--w-prose); }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--paper);
  border: 1px solid #dcdad5; border-radius: var(--r-sm); padding: 11px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral-btn); box-shadow: 0 0 0 3px var(--coral-tint); }
.form .btn { justify-self: start; height: 46px; padding: 0 22px; }
.form-note { font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) {
  .split, .doc { grid-template-columns: 1fr; gap: 32px; }
  .split + .split { margin-top: 64px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
}
@media (max-width: 760px) {
  .page-head { padding: 56px 0 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Datahooks section: same off-center layout as the problem section */
.hooks-section { padding-top: 0; }
.hooks-layout .link { display: inline-block; margin-top: 20px; }
.ba-row span:last-child { text-align: right; }

/* Qualitative before/after comparison table */
.t.cmp td:first-child { color: var(--ink-3); width: 34%; }
.t.cmp .was-cell { color: var(--ink-2); }
.t.cmp .now-cell { color: var(--ink); font-weight: 600; }
.t.cmp th:last-child { color: var(--tag-green-ink); }
.window-title { line-height: 1.2; }
@media (max-width: 760px) {
  .t.cmp thead th:first-child { display: none; }
  .t.cmp tr { display: grid; grid-template-columns: 1fr 1fr; }
  .t.cmp th { white-space: normal; }
  .t.cmp td:first-child { grid-column: 1 / -1; width: auto; padding-bottom: 0; border-bottom: 0; font-size: 12px; }
}

/* Homepage hero: broken records get fixed, signals gather into named clusters,
   and the headline word is spelled out of the data (script in index.html) */
.sig-hero { position: relative; min-height: max(620px, calc(100svh - 64px)); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--paper); }
.sig-hero .signal { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sig-body { position: relative; z-index: 1; padding-bottom: clamp(40px, 8vh, 88px); }
.sig-hero h1 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.sig-hero h1 .hw { display: inline-block; font-size: clamp(72px, 10vw, 144px); line-height: .9; letter-spacing: -0.045em; }
.js .sig-hero h1 .hw { opacity: 0; }
.sig-hero h1 .h-rest { display: block; margin-top: 6px; }
.sig-hero .lead { margin-top: 20px; max-width: 34ch; }
.sig-hero .hero-actions { justify-content: flex-start; margin-top: 28px; }
.tags { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
html:not(.js) .tags { display: none; }
.tag { position: absolute; width: 15.5rem; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.tag.on { opacity: 1; transform: none; }
.tag b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--coral-btn); font-variant-numeric: tabular-nums; }
.tag .t-name { display: block; margin-top: 4px; font-size: 15px; color: var(--ink); }
.tag .t-was { display: block; font-size: 14px; color: var(--ink-2); }
.tag.left { text-align: right; }
.proof-band .proof { margin-top: 24px; }
@media (max-width: 760px) {
  .sig-hero h1 .hw { font-size: 16vw; }
  .sig-hero h1 { font-size: 7.6vw; }
  .sig-hero .hero-actions .btn { flex: 1; }
  .tag { width: 11.5rem; }
  .tag b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .tag { transition: none; } }

/* CRM screens: a before and an after stacked, switched with .ba-switch */
.screen { position: relative; margin: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 40px rgba(26,26,46,.08); }
.screen img { display: block; width: 100%; height: auto; }
.screen .s-after { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .5s ease; }
.screen.after .s-after { opacity: 1; }
.stage { padding: 40px 40px 0; overflow: hidden; }
.stage .screen { border-bottom: 0; border-radius: 12px 12px 0 0; }
.fpanel .screen { border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; align-self: end; max-height: 460px; }
.ba-switch { display: inline-flex; gap: 2px; padding: 3px; margin-top: 24px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); }
.panel .ba-switch { background: rgba(255,255,255,.7); }
.ba-switch button { font: inherit; font-size: 14px; font-weight: 500; padding: 6px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s ease, color .2s ease; }
.ba-switch button:hover { color: var(--ink); }
.ba-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.fpanel .feature-text .ba-switch + .link, .leak-intro .ba-switch + .link { display: block; width: max-content; }
@media (max-width: 760px) { .stage { padding: 24px 20px 0; } }
@media (prefers-reduced-motion: reduce) { .screen .s-after { transition: none; } }

/* Inner-page headers on the shared dot grid (signals.js draws the motion).
   The headline keeps the left; the motion sits to its right, or in a band above it on phones. */
.sig-head { position: relative; overflow: hidden; }
.sig-head .signal { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sig-head .wrap { position: relative; z-index: 1; }
.sig-head:not([data-signal="still"]) { min-height: 460px; display: flex; align-items: center; }
.sig-head:not([data-signal="still"]) .wrap { width: 100%; }
.sig-head:not([data-signal="still"]) h1 { max-width: 600px; }
.sig-head:not([data-signal="still"]) .lead { max-width: 520px; }
.sig-head .wp-meta { max-width: 600px; }
.sig-head h1.def { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }
.sig-head .def-term { font-family: 'Fraunces', Georgia, serif; font-size: 24px; color: var(--ink-3); }
.sig-head .def-term i { color: var(--coral-btn); }
.sig-head .def-term + h1 { margin-top: 8px; }
@media (max-width: 1099px) {
  .sig-head:not([data-signal="still"]) { min-height: 0; display: block; padding-top: 250px; }
}

/* Datahooks page: the search that finds a datahook (drawn by signals.js) */
.finder { padding: 0; overflow: hidden; align-self: stretch; min-height: 340px; }
.finder-canvas { display: block; width: 100%; height: 100%; min-height: 340px; }

/* Free audit wizard (/audit/): one question per screen, then contact details, then the calendar */
.wiz { padding: 40px; min-height: 460px; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.wiz-count { font-size: 14px; color: var(--ink-3); margin-left: auto; }
.wiz-back { font: inherit; font-size: 14px; background: none; border: 0; padding: 4px 0; color: var(--ink-2); cursor: pointer; }
.wiz-back:hover { color: var(--ink); }
.wiz-bar { height: 4px; border-radius: 4px; background: rgba(26,26,46,.08); margin: 12px 0 32px; overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 0; background: var(--coral-btn); border-radius: 4px; transition: width .3s ease; }
.wiz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wiz-step legend { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); margin-bottom: 24px; padding: 0; outline: none; }
.wiz-hint { color: var(--ink-2); margin: -12px 0 20px; }
.wiz-opts { display: grid; gap: 10px; }
.wiz-opt { font: inherit; font-size: 16px; text-align: left; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wiz-opt:hover { border-color: var(--coral-btn); }
.wiz-opt:focus-visible { outline: 3px solid var(--coral-tint); border-color: var(--coral-btn); }
.wiz-opt[aria-pressed="true"] { border-color: var(--coral-btn); background: var(--coral-tint); color: var(--coral-ink); }
.wiz-result h2 { font-size: clamp(26px, 3vw, 32px); margin: 14px 0 8px; outline: none; }
.wiz-result .muted { color: var(--ink-2); }
.wiz-cal { margin-top: 24px; }
.wiz-cal iframe { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.wiz-cal p { padding: 20px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 760px) { .wiz { padding: 28px 20px; } .wiz-opt { padding: 14px 16px; } }
