/* ============================================================
   Granola × Kite — Growth report
   Palette + type lifted from granola.ai's own "oats" tokens.
   ============================================================ */

@font-face {
  font-family: "Melange";
  src: url("fonts/melange-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Melange";
  src: url("fonts/melange-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Melange";
  src: url("fonts/melange-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Melange";
  src: url("fonts/melange-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Melange";
  src: url("fonts/melange-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Quadrant";
  src: url("fonts/quadrant-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* granola.ai oats tokens */
  --hero-green: #434625;   /* oats-green-600 — their homepage hero */
  --cream: #fcfcf8;
  --paper: #ffffff;
  --paper-2: #f7f7f2;
  --paper-3: #f2f2ec;
  --paper-4: #eaebe5;
  --ink: #292929;
  --ink-2: #72726e;
  --ink-3: #9e9e99;
  --hairline: rgba(71, 67, 42, 0.2);
  --hairline-soft: rgba(98, 90, 34, 0.09);
  --olive: #5b6f00;
  --olive-2: #788c15;
  --olive-deep: #434625;
  --chartreuse: #d1e043;
  --chartreuse-soft: #e9f286;
  --green-wash: #f2f6e1;
  --green-100: #e5eacd;
  --green-300: #b2c248;
  --gold-50: #f8f1ca;
  --gold-100: #ede1a1;
  --gold-ink: #40351a;
  --red: #bd4a30;
  --red-2: #e95d3d;
  --red-wash: #ffe7e2;
  --red-100: #f8cec5;
  --blue: #4691e2;

  --font-display: "Quadrant", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Melange", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shell: 1120px;
  --radius: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--chartreuse); color: var(--ink); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

/* ---------- top nav — floating white pill, like granola.ai ---------- */

.topbar {
  position: sticky; top: 14px; z-index: 40;
  padding: 0 20px;
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 10px 10px 10px 26px;
  max-width: 980px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--hairline-soft);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.12);
}
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark .g { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; }
.wordmark .x { color: var(--ink-3); font-size: 13px; transform: translateY(-2px); display: inline-block; }
.wordmark .k { font-weight: 600; font-size: 16px; letter-spacing: 0.01em; color: var(--olive); }
.topnav { display: flex; align-items: center; gap: 26px; }
.topnav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: color 0.15s ease; }
.topnav a:hover { color: var(--ink); }
.topnav .nav-cta {
  background: var(--olive); color: #fdfdf4; padding: 11px 20px;
  border-radius: 999px; font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease;
}
.topnav .nav-cta:hover { background: var(--olive-2); color: #fff; transform: translateY(-1px); }
@media (max-width: 760px) { .topnav a:not(.nav-cta) { display: none; } }

/* ---------- hero — dark olive, like granola.ai ---------- */

.hero {
  background: var(--hero-green);
  color: var(--cream);
  margin-top: -76px;
  padding: 170px 0 96px;
  position: relative; overflow: hidden;
}
.hero .shell { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 54px; align-items: center; }
.note-panel {
  background: var(--cream);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(1.6deg);
}
.hero-art img { width: 100%; height: auto; mix-blend-mode: multiply; display: block; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .hero { padding-top: 140px; }
}
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 22px;
}
.hero .eyebrow { color: var(--chartreuse); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 15ch;
  margin-bottom: 30px;
}
.hero h1 .ghost { color: rgba(252, 252, 248, 0.52); }
.hero .mark { color: var(--ink); background-size: 100% 78%; background-position: 0 62%; }
.ghost { color: var(--ink-3); }
.mark {
  background-image: linear-gradient(100deg, var(--chartreuse-soft) 0%, var(--chartreuse) 55%, var(--chartreuse-soft) 100%);
  background-repeat: no-repeat;
  background-size: 100% 46%;
  background-position: 0 78%;
  padding: 0 0.08em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero .lede {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 300;
  color: rgba(252, 252, 248, 0.74);
  max-width: 62ch;
  line-height: 1.65;
}
.hero .lede strong { font-weight: 500; color: var(--cream); }

.hero-rule {
  margin-top: 64px;
  display: flex; align-items: center; gap: 18px;
  color: rgba(252, 252, 248, 0.5); font-size: 13.5px;
}
.hero-rule::before, .hero-rule::after {
  content: ""; height: 1px; background: rgba(252, 252, 248, 0.2); flex: 1;
}

/* ---------- sections ---------- */

section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 18px 0 18px;
}
.section-head .sub { color: var(--ink-2); font-size: 17.5px; font-weight: 300; max-width: 60ch; }
.section-head .sub strong { font-weight: 500; color: var(--ink); }

.band { background: var(--paper-2); border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }

/* ---------- signal badges ---------- */

.badges {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1000px) { .badges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .badges { grid-template-columns: 1fr; } }

.badge {
  background: #fff;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(71, 67, 42, 0.09);
  border-color: var(--hairline);
}
.badge .art {
  height: 108px; margin: -6px 0 2px;
  display: flex; align-items: center; justify-content: flex-start;
}
.badge .art img { height: 100%; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.badge .label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-3);
}
.badge .value {
  font-family: var(--font-display);
  font-size: 25px; line-height: 1.18; letter-spacing: -0.01em;
}
.badge .detail { font-size: 14px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.badge .source {
  font-size: 12px; color: var(--ink-3);
  border-top: 1px dashed var(--hairline-soft);
  padding-top: 10px; margin-top: 6px;
  display: flex; gap: 6px; align-items: baseline;
}
.badge .source::before { content: "⌕"; font-size: 13px; color: var(--green-300); }

/* ---------- insights ---------- */

.insight { padding: 96px 0; }
.insight + .insight { border-top: 1px solid var(--hairline-soft); }

.insight-head { display: grid; grid-template-columns: 120px 1fr; gap: 28px; margin-bottom: 48px; }
@media (max-width: 760px) { .insight-head { grid-template-columns: 1fr; gap: 8px; } }
.insight-num {
  font-family: var(--font-display);
  font-size: 88px; line-height: 0.9;
  color: var(--green-100);
  user-select: none;
}
.insight.negative .insight-num { color: var(--red-100); }
.insight-head h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.14; letter-spacing: -0.01em;
  max-width: 21ch; margin-bottom: 16px;
}
.insight-head .why { color: var(--ink-2); font-size: 17px; font-weight: 300; max-width: 62ch; }
.insight-head .why strong { font-weight: 500; color: var(--ink); }

.ev-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px;
}
.ev-label::before { content: ""; width: 22px; height: 1.5px; background: var(--green-300); }

.card {
  background: #fff;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 22px;
}
@media (max-width: 640px) { .card { padding: 24px 18px; } }
.card h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card .cap { font-size: 14.5px; color: var(--ink-2); margin-bottom: 24px; max-width: 68ch; }

/* coverage bars */
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 128px 1fr 84px; align-items: center; gap: 16px; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 92px 1fr 74px; gap: 10px; } }
.bar-row .who { font-size: 15px; font-weight: 500; }
.bar-track { height: 30px; background: var(--paper-3); border-radius: 8px; overflow: hidden; position: relative; }
.bar-fill {
  height: 100%; border-radius: 8px;
  background: var(--green-300);
  width: 0;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bar-row.leader .bar-fill { background: var(--olive-2); }
.bar-row.zero .bar-fill { background: var(--red-2); min-width: 4px; }
.bar-row.zero .who { color: var(--red); font-weight: 600; }
.bar-val { font-size: 14.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar-val small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.bar-row.zero .bar-val { color: var(--red); }

/* prompt grid table */
.tablewrap { overflow-x: auto; margin: 0 -34px; padding: 0 34px; }
@media (max-width: 640px) { .tablewrap { margin: 0 -18px; padding: 0 18px; } }
table.grid { border-collapse: collapse; width: 100%; min-width: 780px; font-size: 14px; }
table.grid th, table.grid td { padding: 11px 12px; text-align: center; border-bottom: 1px solid var(--hairline-soft); }
table.grid th {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 14px; vertical-align: bottom;
}
table.grid th.q, table.grid td.q { text-align: left; }
table.grid td.q { color: var(--ink); font-weight: 400; max-width: 380px; }
table.grid td.q .qm { color: var(--ink-3); margin-right: 8px; font-variant-numeric: tabular-nums; font-size: 12.5px; }
table.grid th.gcol { color: var(--red); }
table.grid td.gcol { background: rgba(255, 231, 226, 0.5); }
table.grid tr:last-child td { border-bottom: none; }
.tick, .cross, .none {
  display: inline-flex; width: 24px; height: 24px; border-radius: 50%;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.tick { background: var(--green-wash); color: var(--olive); }
.cross { background: var(--red-wash); color: var(--red); }
.none { color: var(--ink-3); font-weight: 400; }
td.others { font-size: 12.5px; color: var(--ink-2); text-align: left; white-space: nowrap; }
.grid-tally td { font-weight: 600; font-size: 13.5px; background: var(--paper-2); }
.grid-tally td.gcol { color: var(--red); background: var(--red-wash); }

/* next-step panel */
.next {
  background: var(--green-wash);
  border: 1px solid rgba(91, 111, 0, 0.18);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .next { grid-template-columns: 1fr; gap: 26px; } }
.next .nt {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 14px;
}
.next h4 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.2; margin-bottom: 18px; }
.next ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.next li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 15.5px; color: var(--olive-deep); line-height: 1.5; }
.next li .nb {
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 1px solid rgba(91,111,0,0.3); color: var(--olive);
  font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.next-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.next-cta .hint { font-size: 13.5px; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.btn.primary { background: var(--olive); color: #fdfdf4; box-shadow: 0 6px 18px rgba(91, 111, 0, 0.22); }
.btn.primary:hover { background: var(--olive-2); transform: translateY(-2px); }
.btn.primary .arr { transition: transform 0.16s ease; }
.btn.primary:hover .arr { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid rgba(252,252,248,0.4); }
.btn.ghost:hover { border-color: var(--paper); transform: translateY(-2px); }

/* two-col evidence split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split .card { margin-bottom: 0; }

/* keyword panels */
.kwlist { display: flex; flex-direction: column; gap: 10px; }
.kwrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-radius: 12px; font-size: 14.5px;
  background: var(--paper-2);
}
.kwrow .kw { font-weight: 500; }
.kwrow .pos { font-size: 12.5px; font-weight: 600; flex: none; padding: 4px 11px; border-radius: 999px; }
.kwrow.have { background: var(--green-wash); }
.kwrow.have .pos { background: #fff; color: var(--olive); border: 1px solid rgba(91,111,0,0.25); }
.kwrow.miss { background: var(--red-wash); }
.kwrow.miss .pos { background: #fff; color: var(--red); border: 1px solid rgba(189,74,48,0.3); }
.kwrow.rest { color: var(--ink-2); font-weight: 300; background: var(--paper-2); font-style: italic; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: #fff; border: 1px solid var(--hairline-soft); border-radius: var(--radius);
  padding: 24px;
}
.stat .sv { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 6px; }
.stat .sv .up { color: var(--olive-2); }
.stat .sl { font-size: 13.5px; color: var(--ink-2); }

/* review surface table */
table.plain { border-collapse: collapse; width: 100%; font-size: 15px; }
table.plain th, table.plain td { padding: 14px 14px; text-align: left; border-bottom: 1px solid var(--hairline-soft); }
table.plain th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
table.plain td.big { font-family: var(--font-display); font-size: 22px; }
table.plain tr:last-child td { border-bottom: none; }
.pill-yes { color: var(--olive); font-weight: 600; }
.pill-no { color: var(--red); font-weight: 600; }

/* mini gaps */
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .minis { grid-template-columns: 1fr; } }
.mini {
  background: #fff; border: 1px solid var(--hairline-soft); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
}
.mini .mnum { font-family: var(--font-display); font-size: 15px; color: var(--ink-3); }
.mini h4 { font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.mini p { font-size: 14px; color: var(--ink-2); flex: 1; }
.mini .fix { font-size: 13.5px; color: var(--olive); font-weight: 500; border-top: 1px dashed var(--hairline-soft); padding-top: 12px; }

/* ---------- final CTA — full-bleed dark band, like granola.ai ---------- */

.finale { padding: 0; background: #292929; margin-top: 84px; overflow: hidden; }
.finale-panel {
  background: transparent;
  border-radius: 0;
  padding: clamp(72px, 9vw, 120px) 0;
  color: var(--cream);
  position: relative;
  overflow: visible;
}
.finale-panel::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 224, 67, 0.16), transparent 65%);
  pointer-events: none;
}
.finale-art {
  position: absolute; right: clamp(8px, 5vw, 70px); top: 50%;
  transform: translateY(-50%);
  width: clamp(160px, 24vw, 320px);
  pointer-events: none;
}
.finale-art img { width: 100%; height: auto; }
@media (max-width: 1020px) { .finale-art { display: none; } }
.finale-panel .eyebrow { color: var(--chartreuse); }
.finale-panel h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -0.01em;
  max-width: 18ch; margin-bottom: 22px;
}
.finale-panel .mark {
  color: var(--ink);
  background-image: linear-gradient(100deg, var(--chartreuse-soft) 0%, var(--chartreuse) 55%, var(--chartreuse-soft) 100%);
  background-size: 100% 82%;
  background-position: 0 60%;
}
.finale-panel p { color: rgba(252, 252, 248, 0.72); font-weight: 300; max-width: 58ch; font-size: 17.5px; margin-bottom: 34px; }
.finale-panel p strong { color: var(--paper); font-weight: 500; }
.finale-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.finale-panel .btn.primary { background: var(--chartreuse); color: var(--ink); box-shadow: 0 8px 24px rgba(209, 224, 67, 0.25); }
.finale-panel .btn.primary:hover { background: var(--chartreuse-soft); }
.finale-meta { margin-top: 44px; font-size: 13px; color: rgba(252,252,248,0.45); display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (min-width: 1021px) {
  .finale-panel h2, .finale-panel p, .finale-btns { max-width: 52%; }
}

/* ---------- footer ---------- */

footer { padding: 44px 0 60px; }
footer .shell { display: flex; flex-direction: column; gap: 18px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: baseline; }
footer p { font-size: 13.5px; color: var(--ink-3); max-width: 86ch; line-height: 1.65; }
footer .sig { font-size: 14px; color: var(--ink-2); }
footer .sig strong { color: var(--olive); font-weight: 600; }

/* ---------- reveal animation ---------- */

body.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
body.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar-fill { transition: none; }
}
