@font-face { font-family: "RC"; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "RC"; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --navy: #0c2643;
  --navy-deep: #08203a;
  --paper-ink: #f2f6fa;
  --orange: #ff9d3d;
  --orange-hover: #ffb066;
  --red: #d93a40;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #e8eef5;
  --ink: #0f1f33;
  --muted: #3b4d62;
  --line: #c3cfdc;
  --field: #ffffff;
  --field-line: #6b7d92;
  --accent-text: #9a4a00;
  --link: #0b4f8a;
  --warn: #b3261e;
  --warn-bg: #fdecea;
  --shadow: 0 12px 32px rgba(12, 38, 67, .14);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "RC", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1f37;
    --surface: #10304f;
    --surface-2: #0d2845;
    --ink: #eef3f8;
    --muted: #c2cfdd;
    --line: #2b5480;
    --field: #0a1f37;
    --field-line: #8aa3bd;
    --accent-text: #ffb468;
    --link: #9fd0ff;
    --warn: #ff9a90;
    --warn-bg: #3a1518;
    --shadow: 0 12px 32px rgba(0, 0, 0, .38);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
@media (max-width: 480px) { body { font-size: 1.1875rem; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
strong { font-weight: 700; }
:focus-visible { outline: 4px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: .005em; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.6rem; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 20px; } }

.skip { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--orange); color: var(--navy); padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- The blueprint: navy paper with the engineer's grid ---------- */
.blueprint {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(120, 170, 220, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 220, .13) 1px, transparent 1px),
    radial-gradient(ellipse at 72% 38%, #1d4f86 0%, #133b68 45%, #0b2647 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  color: var(--paper-ink);
}
.blueprint a { color: var(--paper-ink); }

/* ---------- Header ---------- */
/* Desktop: wordmark left, links and the Free plan button right. Phone: wordmark and button on the
   first row, the three links on the second. */
.site-head { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-block: 14px; }
.site-head .wordmark { margin-right: auto; }
.site-head nav { order: 2; }
.site-head .nav-cta { order: 3; }
.wordmark {
  display: inline-block; line-height: 48px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.65rem; letter-spacing: .05em;
  color: var(--paper-ink); text-decoration: none; white-space: nowrap; margin: 0;
}
.wordmark span { color: var(--orange); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; text-decoration: none;
}
.nav a:hover { background: rgba(255, 255, 255, .09); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.blueprint a.nav-cta, .nav-cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 10px;
  background: var(--orange); color: var(--navy); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em;
}
.blueprint a.nav-cta:hover { background: var(--orange-hover); }
/* Tablets and phones: the wordmark and Free plan on the first row, the links below. */
@media (max-width: 900px) {
  .site-head { padding-block: 10px 4px; }
  .site-head .nav-cta { order: 2; }
  .site-head nav { order: 3; width: 100%; }
  .nav a { padding: 0 10px; }
}
/* Phones: five links in a tidy grid of three columns (two rows); every link stays visible. */
@media (max-width: 560px) {
  .nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 6px; }
  .nav a { display: flex; justify-content: center; width: 100%; padding: 0 4px; font-size: 1.1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 30px; border-radius: 12px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; line-height: 1.15;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 6px 18px rgba(255, 157, 61, .28); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { border-color: rgba(242, 246, 250, .75); color: var(--paper-ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-outline { border-color: var(--link); color: var(--link); background: transparent; }
.btn-outline:hover { background: var(--surface-2); }
.btn-block { width: 100%; }
.btn small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 1rem; letter-spacing: 0; opacity: .9; }
.btn-stack { flex-direction: column; gap: 2px; padding-block: 12px; }

.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px; }
.eyebrow-dark { color: var(--accent-text); }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 40px; align-items: center; padding-block: 28px 96px; }
.hero h1 { font-size: clamp(2.75rem, 5.6vw, 4.6rem); line-height: 1.02; margin: 0 0 22px; max-width: 12em; }
.hero .lead { font-size: 1.4rem; line-height: 1.55; color: rgba(242, 246, 250, .94); margin: 0 0 14px; max-width: 34em; }
.hero .lead2 { color: rgba(242, 246, 250, .86); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { margin: 0; justify-self: center; max-width: 470px; }
.hero-figure img {
  width: 100%;
  /* Fade the still's own edges into the paper: the cut-off torso at the top, the chair post, the margins. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 86%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 86%, transparent 100%), linear-gradient(to right, transparent 0, #000 8%, #000 94%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 0 36px rgba(255, 170, 80, .22));
}
.hero-figure figcaption { font-size: 1rem; color: rgba(242, 246, 250, .8); text-align: center; margin-top: -6px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 12px 84px; }
  .hero-figure { max-width: 330px; order: 2; }
  .hero .lead { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.6rem; }
  .hero .lead { font-size: 1.22rem; }
  .actions .btn { width: 100%; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: 22px 54px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin: 0 0 14px; max-width: 18em; }
.page-hero .lead { font-size: 1.35rem; line-height: 1.55; color: rgba(242, 246, 250, .93); margin: 0; max-width: 36em; }
@media (max-width: 480px) { .page-hero .lead { font-size: 1.22rem; } }

/* ---------- The plan sign-up ---------- */
.plan { position: relative; margin-top: -60px; }
.plan-card {
  display: grid; grid-template-columns: .82fr 1.18fr; gap: 40px; align-items: start;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow);
  border-top: 8px solid var(--orange); padding: 44px;
}
.plan-preview img {
  border-radius: 6px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 18px 40px rgba(12, 38, 67, .22); transform: rotate(-1.6deg); margin-top: 8px;
}
.plan-preview p { font-size: 1rem; color: var(--muted); margin: 18px 0 0; text-align: center; }
.plan-body h2 { margin-bottom: 10px; }
.plan-body > p { margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 38px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .38em; width: 20px; height: 11px;
  border-left: 4px solid var(--accent-text); border-bottom: 4px solid var(--accent-text); transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .plan-card { grid-template-columns: 1fr; padding: 30px 26px; gap: 26px; }
  .plan-preview { order: 2; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .plan { margin-top: -54px; }
  .wrap.plan { padding-inline: 12px; }
  .plan-card { padding: 26px 20px; border-radius: 18px; }
}

/* ---------- Forms ---------- */
.signup { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.field input[type="email"] {
  width: 100%; min-height: 62px; padding: 0 18px; font: inherit; font-size: 1.3rem; color: var(--ink);
  background: var(--field); border: 2px solid var(--field-line); border-radius: 12px;
}
.field input[type="email"]:focus { outline: 4px solid var(--orange); outline-offset: 2px; border-color: var(--navy); }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.25rem; color: var(--ink);
  background: var(--field); border: 2px solid var(--field-line); border-radius: 12px;
}
.field input[type="text"], .field select { min-height: 62px; padding: 0 18px; }
.field textarea { min-height: 220px; padding: 14px 18px; line-height: 1.5; resize: vertical; }
.field input[type="text"]:focus, .field select:focus, .field textarea:focus { outline: 4px solid var(--orange); outline-offset: 2px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--warn); }
.counter { margin: 8px 0 0; font-size: 1.05rem; color: var(--muted); }
.counter.near { color: var(--warn); font-weight: 700; }
.contact { margin-bottom: 8px; }
.contact .btn { justify-self: start; }
@media (max-width: 480px) { .contact .btn { justify-self: stretch; } }
.plan-downloads { display: grid; gap: 14px; margin: 4px 0 18px; }
.plan-downloads .btn { min-height: 76px; }
.your-size { font-weight: 700; }
.check { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--surface-2); border-radius: 12px; padding: 16px; }
.check input { width: 32px; height: 32px; margin: 2px 0 0 2px; accent-color: #e8811a; cursor: pointer; }
.check label { font-size: 1.1rem; line-height: 1.5; cursor: pointer; }
.field-error { color: var(--warn); font-weight: 700; margin: 8px 0 0; font-size: 1.1rem; }
.field-error::before { content: "! "; }
.form-status:empty { display: none; }
.form-status { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 700; }
.fine { font-size: 1.05rem; color: var(--muted); margin: 0; }
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: 72px 8px; }
.section > p.intro, .section-head p { color: var(--muted); max-width: 40em; margin: 10px 0 0; }
.research { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; align-items: start; }
.research p { margin: 14px 0 0; }
@media (max-width: 860px) { .research { grid-template-columns: 1fr; } }

.badges { margin: 0; display: grid; gap: 12px; }
.badges div { display: grid; grid-template-columns: 15.5rem 1fr; gap: 16px; align-items: center; padding: 12px 16px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); }
.badges dt, .badges dd { margin: 0; }
.badges dd { font-size: 1.1rem; }
@media (max-width: 560px) { .badges div { grid-template-columns: 1fr; gap: 6px; } }
.badge {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-text); border: 2px solid currentColor; border-radius: 999px; padding: 3px 14px; white-space: nowrap;
}
.badge-myth { color: #fff; background: var(--red); border-color: var(--red); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body p { margin: 0; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.tag { font-family: var(--font-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 1rem; color: var(--accent-text); }

.safety-note { margin-top: 64px; }
.safety-note p { margin: 0; padding: 22px 26px; background: var(--surface-2); border-left: 6px solid var(--orange); border-radius: 10px; }

/* ---------- Long text pages ---------- */
main.prose { padding-block: 44px 24px; }
.prose > * { max-width: 48rem; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); margin: 52px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 8px; font-size: 1.45rem; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.updated { font-size: 1.05rem; color: var(--muted); }

.steps { list-style: none; padding: 0 !important; margin: 0 0 18px; counter-reset: step; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding: 22px 24px 22px 86px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 4px 0 8px; font-size: 1.45rem; }
.steps p:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .steps > li { padding: 76px 20px 20px; } .steps > li::before { top: 18px; left: 20px; } }

.box { border-radius: 14px; padding: 20px 24px; margin: 0 0 18px; }
.box p:last-child { margin-bottom: 0; }
.box-ask { background: var(--surface-2); }
.box-stop { border: 3px solid var(--warn); background: var(--surface); }
.box-stop .stop-word { color: var(--warn); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.box-plain { border: 2px solid var(--line); background: var(--surface); }
.note-box { background: var(--surface-2); border-left: 6px solid var(--orange); border-radius: 10px; padding: 18px 22px; margin: 26px 0; }
.note-box p { margin: 0; }

.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 24px; }
.figure-pair figure { margin: 0; }
.figure-pair img { border-radius: 12px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figure-pair figcaption { font-size: 1rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) { .figure-pair { grid-template-columns: 1fr; } }

.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 10px; }
.downloads .btn { min-height: 84px; }
@media (max-width: 640px) { .downloads { grid-template-columns: 1fr; } }

.unsub { margin: 0 0 22px; }

/* ---------- Film pages ---------- */
.film-hero { padding-block: 18px 56px; }
.film-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 0 0 22px; max-width: 22em; }
.player { position: relative; max-width: 960px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.player-link { display: block; position: relative; width: 100%; height: 100%; color: #fff; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.play-button {
  position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%;
  background: rgba(12, 38, 67, .88); border: 4px solid #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.play-button::before {
  content: ""; position: absolute; left: 38px; top: 26px; border-style: solid;
  border-width: 22px 0 22px 34px; border-color: transparent transparent transparent var(--orange);
}
.player-link:hover .play-button, .player-link:focus-visible .play-button { background: var(--navy); transform: scale(1.06); }
.player-label {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 10px;
  background: rgba(8, 32, 58, .92); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
}
/* The play button and the label sit where each thumbnail has no words (player in films/*.json). */
.player.play-left .play-button { left: 30%; }
.player.play-right .play-button { left: 70%; }
.player.label-bottom-right .player-label { left: auto; right: 16px; }
.player.label-top-right .player-label { left: auto; right: 16px; bottom: auto; top: 16px; }
.player.label-top-left .player-label { bottom: auto; top: 16px; }
.player.soon .play-button { display: none; }
.player.soon .player-label { white-space: nowrap; font-size: 1.3rem; padding: 10px 18px; border: 2px solid var(--orange); }
.player iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-note { margin: 14px 0 0; color: rgba(242, 246, 250, .86); font-size: 1.05rem; }
@media (max-width: 480px) {
  .play-button { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .play-button::before { left: 27px; top: 18px; border-width: 16px 0 16px 25px; }
  /* Keep the thumbnail's own words visible on a phone; the label stays as the link's name. */
  .player:not(.soon) .player-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .player.soon .player-label { font-size: 1rem; padding: 6px 12px; }
  .player.soon .label-more { display: none; }
  .player.label-bottom-right .player-label, .player.label-top-right .player-label { right: 10px; }
  .player.label-bottom-left .player-label, .player.label-top-left .player-label { left: 10px; }
}
.film-main .prose { padding-block: 44px 8px; }
.chapters { list-style: none; padding: 0 !important; margin: 0 0 18px; display: grid; gap: 2px; }
.chapters li { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.chapters a { display: block; padding: 4px 0; text-decoration: none; }
.chapters a:hover { text-decoration: underline; }
.chapters .time { display: inline-block; min-width: 3.4em; font-family: var(--font-head); font-weight: 700; color: var(--accent-text); }
.safety-notes p { margin: 0 0 12px; }
.safety-notes .safety-head { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .1em; margin: 20px 0 6px; }
.safety-notes .safety-head:first-child { margin-top: 0; }
.sources { font-size: 1.05rem; padding-left: 1.6em !important; }
.sources li { margin: 0 0 10px; }
.sources a { overflow-wrap: anywhere; }
.cards.next { grid-template-columns: 1fr; max-width: 560px; margin-top: 12px; }
.plan.plan-inline { margin-top: 64px; }
.films-index .series { padding-block: 44px 0; }
.films-index .series h2 { margin-bottom: 4px; }
.card-media { display: block; }
.card-title { color: inherit; text-decoration: none; }
.card-title:hover { text-decoration: underline; }

/* Placeholders Kwabena must fill before launch: impossible to miss. */
mark.todo { background: #fff1a8; color: #3a2e00; border: 2px dashed #a88400; border-radius: 6px; padding: 0 .3em; font-weight: 700; }

/* ---------- Footer ---------- */
.site-foot { margin-top: 88px; padding-block: 44px 28px; font-size: 1.1rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 48px; }
.foot-grid p { margin: 0 0 10px; color: rgba(242, 246, 250, .9); }
.foot-grid .wordmark { font-size: 1.5rem; line-height: 1.3; }
.foot-safety { max-width: 30em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-base { border-top: 1px solid rgba(242, 246, 250, .18); margin-top: 22px; padding-top: 18px; }
.foot-base p { margin: 0; color: rgba(242, 246, 250, .82); font-size: 1rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media print {
  .site-head nav, .actions, .signup, .skip { display: none; }
  .blueprint { background: none; color: #000; }
  body { background: #fff; color: #000; }
}
