/* Scout resources — demo.grwscout.com
   Brand tokens carried over from the original demo page (cream / green ink, Bricolage + Schibsted + Geist Mono). */
:root {
  --cream: oklch(98.4% .005 100);
  --paper: oklch(100% 0 0);
  --ink: oklch(23% .018 140);
  --muted: oklch(96.5% .007 105);
  --muted-fg: oklch(52% .016 125);
  --border: oklch(90% .01 115);
  --primary: oklch(52% .12 155);
  --primary-ink: oklch(46% .12 155);
  --on-primary: oklch(99% .01 150);
  --accent: oklch(72% .16 148);
  --soft: oklch(95% .03 150);
  --shadow: oklch(23% .018 140 / 0.08);
  --shadow-lg: oklch(23% .018 140 / 0.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: oklch(19% .016 150);
    --paper: oklch(23% .018 148);
    --ink: oklch(95% .006 100);
    --muted: oklch(26% .02 148);
    --muted-fg: oklch(72% .012 120);
    --border: oklch(34% .02 145);
    --primary: oklch(74% .15 148);
    --primary-ink: oklch(82% .13 148);
    --on-primary: oklch(19% .016 150);
    --accent: oklch(80% .17 145);
    --soft: oklch(28% .04 150);
    --shadow: oklch(0% 0 0 / 0.35);
    --shadow-lg: oklch(0% 0 0 / 0.5);
  }
}
:root[data-theme="dark"] {
  --cream: oklch(19% .016 150);
  --paper: oklch(23% .018 148);
  --ink: oklch(95% .006 100);
  --muted: oklch(26% .02 148);
  --muted-fg: oklch(72% .012 120);
  --border: oklch(34% .02 145);
  --primary: oklch(74% .15 148);
  --primary-ink: oklch(82% .13 148);
  --on-primary: oklch(19% .016 150);
  --accent: oklch(80% .17 145);
  --soft: oklch(28% .04 150);
  --shadow: oklch(0% 0 0 / 0.35);
  --shadow-lg: oklch(0% 0 0 / 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.wrap.reading { width: min(760px, calc(100% - 32px)); }

/* ---- top navigation */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklab, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 14px; height: 14px; background: var(--primary); border-radius: 3px; transform: rotate(45deg); flex-shrink: 0; }
.word { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted-fg); padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-pill {
  color: var(--on-primary); background: var(--primary);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.nav-links .nav-pill:hover { color: var(--on-primary); background: var(--primary-ink); }

/* ---- shared type */
.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary-ink); margin: 0 0 14px;
}
h1, h2, h3 { font-family: "Bricolage Grotesque", Georgia, serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
.lede { margin: 16px 0 0; color: var(--muted-fg); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.sub { margin: 12px 0 0; color: var(--muted-fg); font-size: 16px; max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-ink); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn-sm { font-size: 14px; padding: 8px 15px; }

/* ---- hero */
.hero { padding-block: 64px 40px; text-align: center; }
.hero .inner { max-width: 680px; margin: 0 auto; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

section.band { padding-block: 40px 56px; }
section.band-soft { background: var(--muted); border-block: 1px solid var(--border); padding-block: 56px 64px; }
.section-head { margin-bottom: 28px; }

/* ---- player */
.video-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 18px;
  padding: 10px; box-shadow: 0 20px 48px var(--shadow);
}
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111; }
video::cue { font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 0.95em; line-height: 1.35; background: rgba(12, 20, 14, 0.82); color: #fff; }
.player-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 12px 6px 4px; }
.player-tools .info { font-size: 13px; color: var(--muted-fg); margin: 0; }
.player-tools .info b { color: var(--ink); font-weight: 600; }
.cc-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px 8px 9px; cursor: pointer;
}
.cc-toggle:hover { border-color: var(--primary); }
.cc-badge {
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  border: 1.5px solid currentColor; border-radius: 5px; padding: 2px 5px; line-height: 1;
}
.cc-toggle[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cc-state { font-weight: 500; opacity: 0.85; }

/* ---- chapters */
.chapters { margin-top: 32px; }
.chapters h3 { margin-bottom: 14px; }
.chapter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.chapter {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  font: inherit; text-align: left; color: var(--ink); cursor: pointer;
  background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px;
}
.chapter:hover { border-color: var(--primary); }
.chapter-num { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600; color: var(--muted-fg); }
.chapter-title { font-weight: 600; font-size: 15px; }
.chapter-time { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.chapter.is-active { background: var(--soft); border-color: var(--primary); }
.chapter.is-active .chapter-num { color: var(--primary-ink); }

/* ---- guide grid */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px var(--shadow); }
.guide-cover-link { display: block; border-bottom: 1px solid var(--border); }
.guide-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.guide-body h3 a { text-decoration: none; }
.guide-body h3 a:hover { color: var(--primary-ink); }
.guide-body p { margin: 0; color: var(--muted-fg); font-size: 15px; }
.guide-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

/* ---- guide page */
.guide-page { padding-block: 36px 72px; }
.back-link { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary-ink); text-decoration: none; margin-bottom: 28px; }
.back-link:hover { text-decoration: underline; }
.guide-header h1 { font-size: clamp(32px, 4.6vw, 46px); }
.guide-header-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.shot { margin: 32px 0 0; }
.shot img { width: 100%; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px var(--shadow); }
.shot figcaption { font-size: 13px; color: var(--muted-fg); margin-top: 10px; }
.guide-steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.guide-steps li {
  counter-increment: step; position: relative;
  background: var(--paper); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px 16px 58px; font-size: 16px;
}
.guide-steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 15px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; font-weight: 600;
  background: var(--soft); color: var(--primary-ink);
}
.guide-note { margin: 16px 0 0; padding: 14px 18px; border-left: 3px solid var(--primary); background: var(--muted); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--muted-fg); }
.guide-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
strong { font-weight: 650; }

/* ---- footer */
footer.site { border-top: 1px solid var(--border); padding-block: 24px; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-fg); }
footer.site a { text-decoration: none; color: var(--muted-fg); }
footer.site a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { padding-block: 40px 24px; }
  .lede { font-size: 16px; }
  .chapter-list { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 4px 16px; font-size: 13px; }
  .nav-links .nav-pill { padding: 7px 13px; }
  section.band { padding-block: 28px 40px; }
  section.band-soft { padding-block: 40px 48px; }
  .guide-steps li { padding-left: 52px; }
}

/* ---- guide page: purpose first, then how it works */
.guide-header .lede { color: var(--ink); }
.guide-section { margin-top: 36px; }
.guide-section h2 {
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary-ink); margin: 0 0 14px;
}
.guide-uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide-uses li { position: relative; padding-left: 26px; font-size: 16px; }
.guide-uses li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 9px; height: 9px; background: var(--primary); border-radius: 2px; transform: rotate(45deg);
}
.guide-section .guide-steps { margin-top: 0; }

/* ---- guide page: explainer sections */
.guide-section p { margin: 0 0 12px; font-size: 16px; max-width: 68ch; }
.guide-section p:last-child { margin-bottom: 0; }
.guide-know { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-know li { position: relative; padding-left: 26px; font-size: 15px; color: var(--muted-fg); }
.guide-know li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 8px; height: 8px; border: 1.5px solid var(--primary); border-radius: 2px; transform: rotate(45deg);
}
.guide-page .shot { margin-top: 36px; }

/* ---- guide page: what's inside list + plans table */
.guide-inside { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.guide-inside li { padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.plans-wrap { overflow-x: auto; }
table.plans { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; border-spacing: 0; font-size: 15px; }
table.plans th, table.plans td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--border); }
table.plans tbody tr:last-child th, table.plans tbody tr:last-child td { border-bottom: 0; }
table.plans thead th { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-fg); background: var(--muted); }
table.plans tbody th { font-weight: 650; white-space: nowrap; }
table.plans td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
table.plans td.num span { font-weight: 400; color: var(--muted-fg); font-size: 13px; }
.guide-section .plans-note { margin: 12px 0 0; font-size: 15px; color: var(--muted-fg); }
@media (max-width: 640px) {
  /* stack each plan as a card so the description keeps a readable width */
  table.plans, table.plans tbody, table.plans tr, table.plans th, table.plans td { display: block; }
  table.plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.plans tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  table.plans tbody tr:last-child { border-bottom: 0; }
  table.plans th, table.plans td { padding: 0; border: 0; white-space: normal; }
  table.plans tbody th { font-size: 17px; margin-bottom: 4px; }
  table.plans td.num { display: inline-block; margin: 0 14px 6px 0; }
  table.plans td.num:nth-of-type(2)::after { content: " credits a month"; font-weight: 400; color: var(--muted-fg); font-size: 13px; }
  table.plans tr:first-child td.num:nth-of-type(2)::after { content: " credit a month"; }
  table.plans td:last-child { color: var(--muted-fg); font-size: 15px; }
}

/* ---- overview-only guide layout (Getting started) */
.guide-overview p { font-size: 17px; line-height: 1.6; max-width: 66ch; margin: 0 0 16px; }
.guide-overview p:last-child { margin-bottom: 0; }

.guide-header-actions .header-note { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; color: var(--muted-fg); }

.guide-section .plans-intro { margin: 0 0 14px; font-size: 16px; max-width: 68ch; }
.guide-overview .guide-uses { margin-top: 4px; }
