/* Deep Dive Reports — prototype stylesheet
   Palette and type sampled from the published report: black, white,
   #20BF61 bright green, #156848 deep green, humanist sans throughout.
   Evidence labels follow the report's monochrome treatment, not coloured pills. */

:root {
  --page:       #FFFFFF;
  --surface:    #FFFFFF;
  --surface-2:  #F6F6F4;
  --ink:        #1A1A1A;
  --ink-strong: #000000;
  --ink-soft:   #3D3D3D;
  --slate:      #6B6B6B;
  --green:      #20BF61;
  --green-deep: #156848;
  --green-text: #12784A;
  --on-green:   #FFFFFF;
  --panel:      #000000;
  --panel-ink:  #FFFFFF;
  --rule:       rgba(0, 0, 0, .14);
  --rule-soft:  rgba(0, 0, 0, .07);

  --sans: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --prose: 700px;
  --radius: 4px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page:       #0C0C0C;
    --surface:    #151515;
    --surface-2:  #1D1D1D;
    --ink:        #F2F2F2;
    --ink-strong: #FFFFFF;
    --ink-soft:   #D2D2D2;
    --slate:      #9A9A9A;
    --green:      #2FD673;
    --green-deep: #2FD673;
    --green-text: #4FE08C;
    --on-green:   #06210F;
    --panel:      #1D1D1D;
    --panel-ink:  #FFFFFF;
    --rule:       rgba(255, 255, 255, .16);
    --rule-soft:  rgba(255, 255, 255, .08);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --page:       #0C0C0C;
  --surface:    #151515;
  --surface-2:  #1D1D1D;
  --ink:        #F2F2F2;
  --ink-strong: #FFFFFF;
  --ink-soft:   #D2D2D2;
  --slate:      #9A9A9A;
  --green:      #2FD673;
  --green-deep: #2FD673;
  --green-text: #4FE08C;
  --on-green:   #06210F;
  --panel:      #1D1D1D;
  --panel-ink:  #FFFFFF;
  --rule:       rgba(255, 255, 255, .16);
  --rule-soft:  rgba(255, 255, 255, .08);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--ink-strong);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }

.wrap  { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-text);
  margin: 0 0 12px;
}
.eyebrow-quiet { color: var(--slate); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.meta { font-size: 13px; color: var(--slate); }
.small { font-size: 15px; color: var(--ink-soft); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.masthead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-strong);
}

/* The mark is a CSS background on an empty span, like .page-banner: decorative,
   so it needs no alt text and degrades to nothing rather than a broken-image
   icon. Two files rather than one because the ink half of the mark has to flip
   on a near-black header; the green rule is the same in both. */
.masthead-mark {
  flex: none;
  width: 24px;
  height: 24px;
  background: url("img/mark-light.png") center / contain no-repeat;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .masthead-mark {
    background-image: url("img/mark-dark.png");
  }
}
:root[data-theme="dark"] .masthead-mark {
  background-image: url("img/mark-dark.png");
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink-strong); border-bottom-color: var(--green); }
.nav a[aria-current="page"] { color: var(--ink-strong); font-weight: 700; border-bottom-color: var(--green); }

.icon-btn {
  font-family: inherit;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink-soft);
  padding: 7px 11px;
  cursor: pointer;
  line-height: 1;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink-strong); }

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .icon-btn { padding: 12px 13px; }
  .masthead { padding: 8px 0; font-size: 13px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--page);
    border-bottom: 1px solid var(--rule);
    padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 16px; width: 100%; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--green-deep); color: var(--on-green); border-color: var(--green-deep); }
.btn-primary:hover { background: var(--ink-strong); border-color: var(--ink-strong); }
.btn-secondary { background: transparent; color: var(--ink-strong); border-color: var(--ink-strong); }
.btn-secondary:hover { background: var(--ink-strong); color: var(--page); }
.btn-quiet { background: transparent; color: var(--ink-soft); border-color: var(--rule); border-width: 1px; padding: 15px 24px; }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink-strong); }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- page banner ----------
   A slim full-bleed photograph directly below the nav. Decorative only: it is a
   CSS background rather than an <img> so that it carries no alt text, needs no
   markup on every page, and degrades to a plain band if the file is ever missing.
   Photograph by Allen Chen — own work, no third-party licence. Never put an
   environmental or sustainability claim beside it (see the note in README).
   The crop lives in tools/make-banner.py, not here: BAND_CENTRE and BAND_RATIO
   decide what the visitor sees, and this rule is set to display that band
   whole. Change the framing there. */

.page-banner {
  /* aspect-ratio matches the 4.9:1 band make-banner.py produces, so cover has
     nothing to crop and the whole photograph is visible at every width — the
     stadium at the left edge included. A fixed height instead of this crops
     whichever axis overflows: on a phone that took the sides off and lost the
     stadium entirely. max-height stops the band dominating a very wide screen;
     past that point it crops vertically, which is the harmless direction.
     If BAND_RATIO changes, change this ratio to match. */
  aspect-ratio: 4.9 / 1;
  max-height: 300px;
  background-color: var(--surface-2);
  background-image: url("img/banner.webp");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--rule);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-banner { filter: brightness(.78) saturate(.9); }
}
:root[data-theme="dark"] .page-banner { filter: brightness(.78) saturate(.9); }

/* The hero already carries the top of the page, so it needs less air under a banner. */
.page-banner + main .hero { padding-top: 56px; }

/* ---------- sections ---------- */

.section { padding: 76px 0; border-top: 1px solid var(--rule); }
.section-tight { padding: 48px 0; }
.section-head { max-width: var(--prose); margin-bottom: 36px; }

.hero { padding: 84px 0 68px; }
.hero h1 { max-width: 17ch; }
.hero .lede { max-width: 48ch; margin-bottom: 32px; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
}
.card-flat { background: var(--surface-2); border-color: transparent; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.split { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.report-card { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
@media (max-width: 620px) { .report-card { grid-template-columns: 1fr; } }

/* ---------- the report itself, as the image ---------- */

.cover-shot {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: transform .18s ease, box-shadow .18s ease;
}
a:hover > .cover-shot,
.cover-shot-hover:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .16); }

.spreads { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; align-items: start; }
.spread { border: 1px solid var(--rule); border-radius: 3px; }
.spread-cap { margin-top: 10px; }

.status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--slate);
}
.status-live { background: var(--green-deep); color: var(--on-green); }

/* ---------- licence tiers ---------- */

.licences { align-items: stretch; }
.licence { display: flex; flex-direction: column; }
.licence-price { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink-strong); margin: 6px 0 2px; line-height: 1; }
.licence-who { margin-bottom: 18px; }
.licence-list { list-style: none; margin: 0 0 24px; padding: 0; font-size: 15px; }
.licence-list li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink-soft); line-height: 1.5; }
.licence-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-deep);
}
.licence-cta { margin-top: auto; text-align: center; }

/* ---------- black emphasis panel, from the report ---------- */

.panel {
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 4px;
  padding: 28px 32px;
  border: 1px solid var(--rule);
}
.panel h2, .panel h3 { color: var(--panel-ink); }
.panel p { color: rgba(255, 255, 255, .82); }
.panel p:last-child { margin-bottom: 0; }
.panel .accent { color: var(--green); }

/* ---------- evidence labels, monochrome as in the report ---------- */

.evidence { border-top: 2px solid var(--ink-strong); padding-top: 20px; }
.evidence dl { margin: 0; display: grid; gap: 14px; }
.evidence dt { font-weight: 700; color: var(--ink-strong); }
.evidence dd { margin: 4px 0 0; color: var(--ink-soft); }
.evidence .vendor-flag { color: var(--green-text); font-weight: 700; }
@media (min-width: 640px) {
  .evidence dl { grid-template-columns: 130px 1fr; gap: 16px 20px; }
  .evidence dt { grid-column: 1; }
  .evidence dd { grid-column: 2; margin: 0; }
}

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- stats, as in the report ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; border-top: 2px solid var(--ink-strong); border-bottom: 1px solid var(--rule); padding: 28px 0; }
.stat .fig { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--green-deep); }
.stat .cap { font-size: 14px; color: var(--ink-soft); margin-top: 10px; line-height: 1.45; }
.stat .src { font-size: 12px; color: var(--slate); margin-top: 8px; }

/* ---------- contents ---------- */

.contents { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.contents li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.contents .num { font-size: 12px; font-weight: 700; color: var(--green-text); min-width: 24px; letter-spacing: .06em; }
.contents .dots { flex: 1; border-bottom: 1px dotted var(--rule); transform: translateY(-4px); }
.contents .pg { font-size: 13px; color: var(--slate); }
.contents .sub { padding-left: 34px; color: var(--slate); font-size: 15px; }

/* ---------- AI literacy ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink-strong); color: var(--page); border-color: var(--ink-strong); }

.lit-card { display: flex; flex-direction: column; gap: 10px; }
.lit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lit-kind { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); }
.lit-medium { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); white-space: nowrap; }
.lit-title { font-size: 1.1rem; font-weight: 700; line-height: 1.28; margin: 0; }
.lit-take { color: var(--ink-soft); font-size: 15px; margin: 0; }
.lit-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--rule-soft); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 4px;
  overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-load {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
  color: #FFFFFF;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  padding: 16px;
  text-align: center;
}
.video-load:hover .play { background: var(--green); border-color: var(--green); }
.play {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  display: grid; place-items: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.play::after { content: ""; border-left: 14px solid #FFFFFF; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.video-load:hover .play::after { border-left-color: #06210F; }
.video-note { opacity: .72; max-width: 30ch; line-height: 1.5; }

/* ---------- notice ---------- */

.notice {
  font-size: 14px;
  line-height: 1.6;
  background: var(--surface-2);
  color: var(--ink-soft);
  border-left: 3px solid var(--green-deep);
  border-radius: 0;
  padding: 13px 18px;
  margin: 0 0 24px;
}
.notice strong { color: var(--ink-strong); }
.notice code { font-family: var(--mono); font-size: 13px; }

/* ---------- footer ---------- */

.site-footer { border-top: 2px solid var(--ink-strong); padding: 52px 0 40px; margin-top: 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 4px; font-size: 14px; }
.footer-grid li a,
.footer-grid li .pending { display: inline-block; padding: 6px 0; min-height: 26px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--ink-strong); text-decoration: underline; text-decoration-color: var(--green); }
.footer-grid .pending { color: var(--slate); opacity: .7; }
.colophon { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule-soft); font-size: 13px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.colophon a { display: inline-block; padding: 5px 0; color: var(--ink-soft); }

@media (max-width: 560px) {
  .hero { padding: 56px 0 44px; }
  .section { padding: 56px 0; }
  .card { padding: 22px; }
  .wrap { padding: 0 18px; }
  .btn { display: block; width: 100%; text-align: center; }
  .btn-row { gap: 10px; }
  .lit-head { flex-wrap: wrap; gap: 4px 12px; }
  .stats { gap: 22px; }
}

/* ---------- enquiry form ---------- */

.enquiry { margin: 24px 0 0; max-width: 560px; }
.enquiry label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-strong);
  margin: 18px 0 6px;
}
.enquiry input[type="text"],
.enquiry input[type="email"],
.enquiry textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 13px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.enquiry textarea { resize: vertical; min-height: 110px; }
.enquiry input:focus, .enquiry textarea:focus { outline: 2px solid var(--green-deep); outline-offset: 1px; }
.enquiry input::placeholder, .enquiry textarea::placeholder { color: var(--slate); }
.enquiry .btn { margin-top: 24px; }

/* ---------- legal pages ---------- */

.legal { font-size: 16.5px; }
.legal h2 {
  font-size: 1.3rem;
  margin: 2.4em 0 .6em;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule);
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 1.9em 0 .5em; }
.legal ul { margin: 0 0 1.2em; padding-left: 22px; }
.legal li { margin-bottom: .5em; }
.legal p > strong { color: var(--ink-strong); }

.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.legal-table th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-weight: 700; }

/* ---------- utilities ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-strong);
  color: var(--page);
  padding: 10px 16px;
  font-size: 14px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.stack > * + * { margin-top: 16px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
