/* ============================================================
   numio.ai — theme
   Identity lifted from the pitch deck:
   navy #1e2a52 · teal #0e7c86 / #13a89e · amber #e8a33d
   Display: Source Serif 4 · UI/body: Inter
   ============================================================ */

:root {
  --navy: #1e2a52;
  --navy-deep: #16203e;
  --navy-soft: #2a3766;
  --teal: #0e7c86;
  --teal-bright: #13a89e;
  --amber: #e8a33d;
  --surface: #f1f4f9;
  --line: #e2e7f0;
  --muted: #64748b;
}

html {
  scroll-behavior: smooth;
  /* sticky header offset for anchor links */
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #334155;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Display type ---------------------------------- */

.font-serif,
.display {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
}

/* Section headline: the deck's voice — serif, bold, tight */
.h-display {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

.h-hero {
  font-size: clamp(2.35rem, 5.6vw, 4.1rem);
}

.h-section {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
}

.h-sub {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.on-dark .h-display,
.h-display.on-dark {
  color: #ffffff;
}

/* Small caps eyebrow used above every section */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.on-dark .eyebrow {
  color: var(--teal-bright);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: #475569;
  max-width: 62ch;
}

.on-dark .lede {
  color: #b9c2d6;
}

/* ---------- Layout helpers -------------------------------- */

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap-narrow {
  max-width: 56rem;
}

.rule {
  height: 3px;
  width: 3.5rem;
  border-radius: 999px;
  background: var(--amber);
}

/* ---------- Cards ----------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.6rem;
}

.card-quiet {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.6rem;
}

.card-accent {
  background: #fdf6e7;
  border: 2px solid var(--amber);
  border-radius: 0.9rem;
  padding: 1.6rem;
}

.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  padding: 1.6rem;
}

/* The navy statement bar the deck closes its slides with */
.statement {
  background: var(--navy);
  color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem 1.75rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.45;
  text-wrap: balance;
}

.statement em {
  font-style: normal;
  color: var(--amber);
  font-weight: 700;
}

/* ---------- Big numbers (evidence tiles) ------------------- */

.figure-xl {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.figure-xl.amber {
  color: var(--amber-deep, #c07f1c);
}

/* ---------- Survey ---------------------------------------- */

.survey-option {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
  font: inherit;
  color: #1f2937;
}

.survey-option:hover {
  border-color: var(--teal);
  background: #f7fbfb;
}

.survey-option:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.survey-option[aria-pressed="true"] {
  border-color: var(--teal);
  background: #eef7f7;
  box-shadow: inset 0 0 0 1px var(--teal);
}

.survey-dot {
  flex: none;
  margin-top: .22rem;
  height: 1.05rem;
  width: 1.05rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  transition: border-color .16s ease, background-color .16s ease;
}

.survey-option[aria-pressed="true"] .survey-dot {
  border-color: var(--teal);
  background: radial-gradient(circle, var(--teal) 0 45%, transparent 46%);
}

/* ---------- Buttons --------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .6rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .72rem 1.35rem;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep, #0b5f67); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }

.btn-amber { background: var(--amber); color: #3b2a06; }
.btn-amber:hover { background: #d3901f; }

.btn-ghost { background: transparent; color: var(--navy); border: 1px solid #cbd5e1; }
.btn-ghost:hover { border-color: var(--navy); }

.btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Prose (blog + legal pages) --------------------- */

/* :where() keeps this at element-level specificity so any Tailwind colour
   utility on the heading (text-white on a navy panel, for instance) still wins.
   Without it, headings on dark sections turn navy-on-navy and vanish. */
:where(.page-content) :where(h1, h2, h3, h4) {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* Blog + legal prose: beat the typography plugin's own heading colour. */
.prose :is(h1, h2, h3, h4) {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.prose a { color: var(--teal); }

/* ---------- Scroll-to-next-section marker ------------------ */

.scroll-next {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.scroll-next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: var(--teal);
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.scroll-next a:hover {
  transform: translateY(3px);
  border-color: var(--teal);
  background: rgba(14, 124, 134, .06);
}

.on-dark .scroll-next a {
  border-color: rgba(255, 255, 255, .3);
  color: var(--teal-bright);
}

.on-dark .scroll-next a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.scroll-next a .material-symbols-outlined {
  font-size: 1.35rem;
}

/* ---------- Hover tooltip ----------------------------------- */

.has-tooltip {
  position: relative;
}

.has-tooltip .tooltip-box {
  position: absolute;
  bottom: calc(100% + .6rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 16rem;
  max-width: 80vw;
  padding: .65rem .85rem;
  border-radius: .5rem;
  background: var(--navy-deep);
  color: #fff;
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 20;
}

.has-tooltip .tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy-deep);
}

.has-tooltip:hover .tooltip-box,
.has-tooltip:focus-visible .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Motion ---------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
