/*
 * TryOSINT — site styles.
 * Direction from the ten-site benchmark (SANS, HTB Academy, Trace Labs, Maltego, …):
 * one message and one visual per screen, sections separated by background shifts rather
 * than borders, one action colour (the logo green), teal and blue only as graph data,
 * one glow on the whole page, and a four-step type scale.
 */

@font-face {
  font-family: "Cairo";
  src: url("assets/Cairo-Variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Ground and one raised step. */
  --ink-0: #040B15;
  --ink-1: #091729;
  --ink-2: #0F2137;
  --node: #0B1626;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  /* Logo colours: green is the only action colour; teal and blue are graph data. */
  --green: #1DC286;
  --green-hi: #5DE3AF;
  --teal: #0CA8A8;
  --blue: #0090CC;
  --text: #EEF4F9;
  --text-2: #A9BCCD;
  --text-3: #7B91A6;
  /* Type: 64/40/18/13 on desktop, 36/26/16/13 on phones. */
  --fs-1: clamp(2.25rem, 1.2rem + 3.4vw, 4rem);
  --fs-2: clamp(1.625rem, 1.15rem + 1.5vw, 2.5rem);
  --fs-3: 1.15rem;
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-small: 0.8125rem;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", "Geeza Pro", Tahoma, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 72px;
  --logo-h: 40px;
  --section: clamp(80px, 9vw, 136px);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink-0);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text);
  background: var(--ink-0);
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--green-hi);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -200px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--text);
  color: var(--ink-0);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: currentColor;
}

/* ---------- buttons: green is the only action colour ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-lg {
  min-height: 52px;
  padding: 12px 28px;
}

.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--green);
  color: var(--ink-0);
}

.btn-primary:hover {
  background: var(--green-hi);
}

.btn-ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-hi);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 11, 21, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
  text-decoration: none;
}

/* The logo PNG has transparent padding; crop to the visible mark (57..1011 x 0..235 of 1164 x 271). */
.brand-logo {
  display: block;
  direction: ltr;
  overflow: hidden;
  width: calc(var(--logo-h) * 954 / 271);
  height: calc(var(--logo-h) * 235 / 271);
}

.brand-logo img {
  width: auto;
  max-width: none;
  height: var(--logo-h);
  margin-left: calc(var(--logo-h) * -57 / 271);
}

.brand-logo.small {
  --logo-h: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.site-nav ul a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
  }

  .nav-toggle-bars::before {
    top: -6px;
  }

  .nav-toggle-bars::after {
    top: 6px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header .header-inner {
    flex-wrap: wrap;
  }

  .js .site-nav {
    display: none;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    padding-block: 4px 16px;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav ul a {
    width: 100%;
    font-size: 1.05rem;
  }

  .nav-cta {
    align-self: flex-start;
  }
}

/* ---------- sections: separated by background, not decoration ---------- */
.section {
  padding-block: var(--section);
}

.band {
  background: var(--ink-1);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 700;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.section h2 {
  font-size: var(--fs-2);
}

.section-lead {
  color: var(--text-2);
  max-width: 38em;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  /* 24px dot grid at low opacity: the only texture on the page. */
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.4px) 0 0 / 24px 24px,
    var(--ink-0);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 104px);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 700;
}

.hero h1 {
  font-size: var(--fs-1);
  line-height: 1.3;
}

.accent-line {
  display: block;
  color: var(--green-hi);
}

.hero-lead {
  max-width: 30em;
  margin-top: 24px;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-visual {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

/* On desktop the hero fills the first screen, so the next band does not peek in. */
@media (min-width: 901px) {
  .hero {
    display: grid;
    align-items: center;
    min-height: calc(100svh - var(--header-h));
  }
}

.globe {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

/* ---------- our message and goals ---------- */
.message {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.message-main {
  display: grid;
  gap: 18px;
}

.message-statement {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.4;
}

.message-text {
  max-width: 34em;
  color: var(--text-2);
}

.goals-title {
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: var(--fs-small);
}

.goal-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.goal-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.goal-no {
  color: var(--green-hi);
  font-family: var(--mono);
  font-size: var(--fs-small);
  line-height: 2.1;
}

@media (max-width: 900px) {
  .message {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- how OSINT helps: tabs on the start side, one clean panel ---------- */
.benefits {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.benefit-tabs {
  display: grid;
  gap: 4px;
}

.benefit-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 18px;
  border: 0;
  border-inline-start: 2px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.benefit-tab .icon {
  width: 22px;
  height: 22px;
  fill: var(--text-3);
}

.benefit-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.benefit-tab[aria-selected="true"] {
  border-inline-start-color: var(--green);
  background: rgba(29, 194, 134, 0.08);
  color: var(--text);
}

.benefit-tab[aria-selected="true"] .icon {
  fill: var(--green-hi);
}

.benefit-panel {
  display: grid;
  gap: 24px;
}

.benefit-panel + .benefit-panel {
  margin-top: 48px;
}

.js .benefit-panel + .benefit-panel {
  margin-top: 0;
}

.benefit-lead {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.45;
}

.benefit-uses {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-uses li {
  position: relative;
  padding-block: 16px;
  padding-inline-start: 32px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.benefit-uses strong {
  color: var(--text);
  font-weight: 700;
}

.benefit-uses li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--green-hi);
  font-weight: 900;
}

@media (max-width: 900px) {
  .benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .benefit-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
  }

  .benefit-tab {
    gap: 10px;
    padding: 10px 12px;
    border-inline-start: 0;
    border-bottom: 2px solid var(--line-2);
    font-size: 0.92rem;
  }

  .benefit-tab[aria-selected="true"] {
    border-bottom-color: var(--green);
  }
}

/* ---------- FAQ: one panel with hairline dividers ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.faq-list {
  border-radius: var(--radius-lg);
  background: var(--ink-1);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--text-3);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
  color: var(--green-hi);
}

.faq-item summary:focus-visible {
  border-radius: var(--radius);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.92rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 32px;
  padding-block: 32px 12px;
}

.footer-inner .copyright {
  justify-self: end;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner .copyright {
    justify-self: start;
  }
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
}

.site-footer a:hover {
  color: var(--green-hi);
}

/* ---------- line icons, status notes and facts ---------- */
/* Line icons (chapter cards and their topics). */
.ic {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.status-note::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-1px);
}

.status-note.status-soon::before {
  border: 1.5px solid var(--green);
  background: transparent;
}

.status-note.status-full::before {
  background: var(--text-3);
}

/* Facts panel: short facts on hairlines, where SANS puts its media; a strip on smaller screens. */
.facts {
  display: grid;
  margin: 12px 0 0;
  padding: 8px 24px;
  border-radius: var(--radius-lg);
  background: var(--ink-1);
}

.facts div {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-block: 16px;
}

.facts div + div {
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--text-3);
  font-size: var(--fs-small);
}

.facts dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.facts .zone {
  display: block;
  color: var(--text-3);
  font-size: var(--fs-small);
  font-weight: 500;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .facts div + div {
    border-top: 0;
  }

  .facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- course: option-B layout (intro, outcomes, chapters, comparison, next cohort) ---------- */

/* course intro: centred, like a page hero */
.lp-hero {
  position: relative;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(29, 194, 134, 0.1), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.4px) 0 0 / 24px 24px,
    var(--ink-0);
}

.lp-hero-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 900px;
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 120px) clamp(48px, 6vw, 88px);
  text-align: center;
}

.lp-hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 3.8vw, 4.25rem);
  line-height: 1.25;
}

.lp-hero .hero-lead {
  max-width: 36em;
  margin-top: 0;
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.95rem;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chips li::before {
  content: "✓";
  color: var(--green-hi);
  font-weight: 900;
}

.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 700;
}

.badge-line::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* centred section heads */
.section-head.center {
  justify-items: center;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

/* outcomes checklist (two columns) */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-block: 16px;
  padding-inline-start: 32px;
  border-top: 1px solid var(--line);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--green-hi);
  font-weight: 900;
}

@media (max-width: 760px) {
  .checklist {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* chapter cards */
.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1024px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .modules {
    grid-template-columns: minmax(0, 1fr);
  }
}

.module {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--ink-1);
}

.band .module {
  background: var(--ink-0);
}

.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(29, 194, 134, 0.12);
}

.module-icon .ic {
  width: 22px;
  height: 22px;
  color: var(--green-hi);
}

.module-no {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: var(--fs-small);
}

.module h3 {
  font-size: var(--fs-3);
  line-height: 1.55;
}

.module p {
  color: var(--text-2);
  font-size: 0.96rem;
}

/* method comparison */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--ink-0);
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.compare thead th {
  color: var(--text-3);
  font-size: var(--fs-small);
  font-weight: 600;
}

.compare thead th:nth-child(2) {
  color: var(--green-hi);
}

.compare tbody th {
  font-weight: 700;
}

.compare td {
  color: var(--text-2);
}

.compare td.yes::before,
.compare td.no::before {
  margin-inline-end: 8px;
  font-weight: 900;
}

.compare td.yes::before {
  content: "✓";
  color: var(--green-hi);
}

.compare td.no::before {
  content: "–";
  color: var(--text-3);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .compare-wrap {
    overflow: visible;
    background: none;
  }

  .compare {
    min-width: 0;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
  }

  .compare tr {
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: var(--ink-1);
  }

  /* As stacked cards, the last row keeps its hairlines like the others. */
  .compare tbody tr:last-child th,
  .compare tbody tr:last-child td {
    border-bottom: 1px solid var(--line);
  }

  .compare td {
    display: grid;
    grid-template-columns: 6.5em minmax(0, 1fr);
    gap: 10px;
    padding: 10px 20px;
  }

  .compare td::after {
    content: none;
  }

  .compare td[data-label]::before {
    content: attr(data-label);
    color: var(--text-3);
    font-size: var(--fs-small);
    font-weight: 500;
  }

  /* The label replaces the desktop marker, so it carries the ✓ or – itself. */
  .compare td.yes[data-label]::before {
    content: "✓ " attr(data-label);
    color: var(--green-hi);
  }

  .compare td.no[data-label]::before {
    content: "– " attr(data-label);
  }
}

/* next cohort: facts and price */
.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--ink-1);
}

.band .price-card {
  background: var(--ink-0);
}

.price-card .facts {
  margin: 0;
  padding: 0;
  background: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
}

.price-card .facts div + div {
  border-top: 0;
}

.price-tag {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.price-tag .amount {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
}

.price-tag .note {
  color: var(--text-3);
  font-size: var(--fs-small);
}

@media (max-width: 900px) {
  .price-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-card .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-card .facts div + div {
    border-top: 1px solid var(--line);
  }
}

/* The course's own intro inside the page: glow without the hero's dot grid, so it reads
   as the opening of the chosen course, not a second hero. */
.course-intro {
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 60% at 50% 0%, rgba(29, 194, 134, 0.1), transparent 70%), var(--ink-0);
}

.course-intro + .section:not(.band) {
  padding-top: 0;
}

.course-intro {
  scroll-margin-top: var(--header-h);
}

.course-intro .lp-hero-inner {
  padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 72px);
}

.intro-title {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  line-height: 1.3;
}

/* Fact strip under the hero chips. */
.hero-facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  width: 100%;
  max-width: 720px;
  margin: 14px 0 0;
  border-block: 1px solid var(--line-2);
}

.hero-facts-strip div {
  display: grid;
  gap: 2px;
  padding: 14px 12px;
}

.hero-facts-strip div + div {
  border-inline-start: 1px solid var(--line);
}

.hero-facts-strip dt {
  color: var(--text-3);
  font-size: var(--fs-small);
}

.hero-facts-strip dd {
  margin: 0;
  font-weight: 800;
}

/* The strip holds three short facts, which stay on one row down to 360 px. */
@media (max-width: 560px) {
  .hero-facts-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-facts-strip div {
    padding-inline: 8px;
  }
}

/* Centred section heads carry a larger title. */
.section-head.center h2 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
}

/* Module cards carry their own details; a lone last card spans the row. */
.modules > .module {
  display: flex;
  flex-direction: column;
}

.module-more {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.module-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-top: 8px;
  color: var(--green-hi);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.module-more summary::-webkit-details-marker {
  display: none;
}

.module-more summary::after {
  content: "+";
  font-size: 1.2rem;
}

.module-more[open] summary::after {
  content: "–";
}

.module-topics {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.95rem;
}

.module-topics li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.module-topics .ic {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--green-hi);
}

@media (min-width: 1025px) {
  .modules > li:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .modules > li:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 10px);
  }
}

/* ---------- standalone message page (404) ---------- */
.notice-page {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-block: clamp(4rem, 3rem + 8vw, 8rem);
  text-align: center;
}

.notice-code {
  color: var(--green-hi);
  font-family: var(--mono);
  font-size: clamp(3rem, 2rem + 6vw, 6rem);
  font-weight: 800;
  line-height: 1;
}

.notice-page h1 {
  font-size: var(--fs-2);
}

.notice-page p {
  max-width: 34em;
  color: var(--text-2);
}

/* ---------- user preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .module,
  .price-card,
  .faq-list {
    border: 1px solid CanvasText;
  }
}
