/* Release Readiness Board — "departure board": petrol-black boards, mist sections, one amber accent. */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Radio Canada"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/radio-canada-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Radio Canada"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/radio-canada-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Radio Canada"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/radio-canada-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cousine"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cousine-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cousine"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/cousine-latin-700-normal.woff2") format("woff2"); }

:root {
  --board: #0f1b24;
  --board-2: #1b2b37;
  --board-text: #f3f6f8;
  --board-soft: #a9b8c3;
  --mist: #ecf0f2;
  --card: #ffffff;
  --ink: #0f1b24;
  --soft: #4a5863;
  --line: #cbd4da;
  --amber: #f5b700;
  --amber-tint: #fff1c2;
  --go: #1d7a4c;
  --stop: #b42318;
  --display: "Chakra Petch", "Arial Narrow", sans-serif;
  --text: "Radio Canada", system-ui, sans-serif;
  --mono: "Cousine", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; overflow-wrap: anywhere; hyphens: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 0.6em; letter-spacing: -0.005em; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--ink); padding: 10px 14px; z-index: 10; font-weight: 600; }
.skip:focus { left: 8px; }

.kicker { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.9rem; color: var(--amber); margin-bottom: 0.8rem; }
.kicker.dark { color: #7a5a00; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; }
.small { font-size: 0.95rem; color: var(--soft); }
.amber { color: var(--amber); }

/* ---------- Header ---------- */
.top { background: var(--board); color: var(--board-text); border-bottom: 1px solid var(--board-2); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; min-height: 44px; }
.brand img { border-radius: 6px; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; border-radius: 6px; color: var(--board-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--board-text); background: var(--board-2); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); }

/* ---------- Hero ---------- */
.hero { background: var(--board); color: var(--board-text); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 18px); opacity: 0.9; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.hero h1 span { display: block; }
.hero .lead { color: #cfd9e0; max-width: 36rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin: 28px 0 24px; }
.text-link { color: var(--board-text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.facts li { font-family: var(--mono); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 10px; border: 1.5px solid var(--board-2); border-radius: 4px; color: var(--board-soft); }
.facts li::before { content: "■ "; color: #2ebd75; }

.hero-board { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 20px; align-items: end; }
.departures { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 0.95rem; align-self: center; }
.departures caption { text-align: left; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--board-soft); font-size: 0.8rem; padding-bottom: 6px; }
.departures thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.departures td { background: var(--board-2); padding: 9px 10px; vertical-align: top; }
.departures td:first-child { border-radius: 4px 0 0 4px; }
.departures td:last-child { border-radius: 0 4px 4px 0; }
.departures .code { font-family: var(--mono); font-weight: 700; color: var(--amber); width: 4.2em; letter-spacing: 0.08em; }
.departures .part { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.departures .st { color: var(--board-soft); font-size: 0.86rem; hyphens: manual; }
.hero-shot { margin: 0; }

/* ---------- Screenshots ---------- */
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 6px solid var(--board); background: var(--board); box-shadow: 0 1px 0 var(--line); max-width: 360px; justify-self: center; width: 100%; }
.shot img { width: 100%; }
.dark-shot { border-color: var(--board-2); }

/* ---------- Parts ---------- */
.parts { padding: 80px 0 40px; }
.part-row { padding: 36px 0; border-top: 1.5px solid var(--line); }
.part-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.part-row.flip .part-copy { order: 2; }
.part-no { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--soft); font-size: 0.95rem; }
.part-no span { display: inline-block; background: var(--amber); color: var(--ink); font-family: var(--mono); font-weight: 700; padding: 2px 8px; border-radius: 3px; margin-right: 6px; letter-spacing: 0.04em; }
.part-copy h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 3px; background: var(--go); box-shadow: inset 0 0 0 4px #dcefe4; }

/* ---------- Rules ---------- */
.rules { background: var(--board); color: var(--board-text); padding: 80px 0; }
.rules-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.rules .lead { color: #cfd9e0; }
.rule-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.rule-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--board-2); border-radius: 6px; font-weight: 500; flex-wrap: wrap; }
.rule-list em { font-style: normal; font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; color: var(--amber); }
.lamp { width: 18px; height: 18px; border-radius: 3px; border: 2px solid var(--board-soft); flex: 0 0 auto; }
.lamp.on { background: var(--amber); border-color: var(--amber); }
.note { color: var(--board-soft); font-size: 0.95rem; }

/* ---------- Templates ---------- */
.templates { padding: 80px 0; }
.tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 16px; }
.tpl { background: var(--card); border: 1.5px solid var(--line); border-top: 5px solid var(--board); border-radius: 8px; padding: 20px; }
.tpl h3 { font-size: 1.3rem; }
.tpl ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.97rem; }
.tpl li { padding-left: 22px; position: relative; }
.tpl li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 12px; height: 12px; border: 2px solid var(--soft); border-radius: 2px; }

/* ---------- Privacy strip ---------- */
.private { background: var(--amber-tint); border-top: 1.5px solid var(--amber); border-bottom: 1.5px solid var(--amber); padding: 64px 0; }
.private-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 12px; }
.private-item h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.private-item p { margin: 0; color: #3b4852; }

/* ---------- Download ---------- */
.download { padding: 64px 0; }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; background: var(--card); border: 1.5px solid var(--line); border-left: 8px solid var(--go); border-radius: 8px; padding: 32px; }
.download-inner > div { flex: 1 1 320px; min-width: 0; }
.download h2 { margin-bottom: 0.3em; }
.download p { margin: 0; color: var(--soft); }

/* ---------- Google Play CTA ---------- */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 14px; border-radius: 8px; background: var(--amber); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); }
.play:hover { background: #ffc61f; }
.play-soon { background: transparent; color: inherit; border: 2px dashed currentColor; cursor: default; }
.download .play-soon { color: var(--ink); }
.play-lamp { width: 14px; height: 14px; border-radius: 3px; background: #2ebd75; }
.play-soon .play-lamp { background: var(--amber); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.play-big { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }

/* ---------- Text pages ---------- */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2em; }
.steps { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 18px; }
.steps h2 { font-size: 1.3rem; margin: 0 0 0.3em; }
.steps p { margin: 0; color: var(--soft); }
.step-no { font-family: var(--mono); font-weight: 700; background: var(--board); color: var(--amber); padding: 4px 8px; border-radius: 4px; flex: 0 0 auto; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 52px; display: flex; align-items: center; padding: 10px 0; list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.guide-cta { margin-top: 24px; color: var(--ink); }

/* ---------- Footer ---------- */
.foot { background: var(--board); color: var(--board-soft); padding: 36px 0 24px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 6px; }
.foot-name { font-family: var(--display); font-weight: 700; color: var(--board-text); margin: 0; font-size: 1.1rem; }
.foot-small { margin: 0; font-size: 0.9rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--board-text); }
.lights { display: flex; gap: 6px; margin-top: 18px; }
.lights span { width: 10px; height: 10px; border-radius: 2px; background: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .part-grid, .rules-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .part-row.flip .part-copy { order: 0; }
  .hero-board { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { max-width: 320px; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .private-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .tpl-grid { grid-template-columns: minmax(0, 1fr); }
  .departures .part { white-space: normal; }
  .download-inner { padding: 22px; }
  .top-inner { justify-content: flex-start; }
  .nav a { padding: 0 10px; }
}
