/* ATCOnnect — landing page
   Brand: navy #071A3D, signal blue #4C8DFF. Flat surfaces, hairline rules,
   mono type for anything that is operational data (Zulu times, NOTAMs). */

:root {
  --navy: #071a3d;
  --navy-900: #040e24;
  --navy-800: #0b2350;
  --navy-700: #13306a;
  --blue: #4c8dff;
  --blue-ink: #2a6ae8;
  --ink: #0a1428;
  --text: #1c2638;
  --muted: #5a6579;
  --faint: #8a93a5;
  --line: #e2e7f0;
  --line-strong: #cfd6e3;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-tint: #eef3fb;
  --green: #1e9e61;
  --amber: #d98300;
  --red: #d64545;
  --violet: #7a4fd6;
  --teal: #0f8c8c;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(7, 26, 61, 0.06), 0 1px 1px rgba(7, 26, 61, 0.04);
  --shadow-2: 0 12px 32px -12px rgba(7, 26, 61, 0.22), 0 2px 6px rgba(7, 26, 61, 0.06);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ─────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.28rem; line-height: 1.3; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.65; max-width: 62ch; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-tint); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: #fff; }

/* ── Navigation ───────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-clock { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-right: 14px; border-right: 1px solid var(--line); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-clock { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; margin-left: 0; }
  .nav-cta { margin-left: auto; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu .btn { margin: 16px var(--gutter); width: calc(100% - 2 * var(--gutter)); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Radar scope behind the product: range rings, bearings, runway and traffic. */
.hero-radar { position: absolute; inset: 0; pointer-events: none; }
.hero-radar svg {
  position: absolute; top: 50%; left: 72%;
  width: min(1500px, 125vw); height: auto;
  transform: translate(-50%, -50%);
}
@media (max-width: 1000px) {
  .hero-radar svg { left: 50%; top: 78%; width: 160vw; opacity: .7; }
}
.hero::after { /* keep the radar out from under the headline and copy */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--bg-soft) 36%, transparent 58%);
}
@media (max-width: 1000px) {
  .hero::after { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-soft) 48%, transparent 66%); }
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--blue-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { margin-top: 36px; display: flex; align-items: flex-start; gap: 12px; font-size: 0.88rem; color: var(--muted); }
.hero-proof .dot { margin-top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(30,158,97,.14); flex: none; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ── Device frame + product mock (sizes in em, scaled with the frame) ─── */

.device {
  background: #0b1120; border-radius: 26px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(7, 26, 61, 0.45), 0 0 0 1px rgba(7,26,61,.08);
}
.device-screen { container-type: inline-size; border-radius: 16px; overflow: hidden; background: var(--bg-soft); }
.app { font-size: 1.5cqw; font-family: var(--font-body); color: var(--text); line-height: 1.35; }
@supports not (font-size: 1cqw) { .app { font-size: 9px; } }

.app-top { background: var(--navy); padding: 1.1em 1.2em; display: grid; grid-template-columns: auto 1.6fr auto 1.4fr; gap: 0.9em; align-items: stretch; }
.app-card { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); border-radius: 0.9em; padding: 0.9em 1.1em; color: #fff; display: flex; align-items: center; gap: 0.9em; }
.app-card.me { border-color: rgba(76,141,255,.75); background: rgba(76,141,255,.14); }
.app-clock { font-family: var(--font-mono); font-weight: 600; font-size: 1.55em; letter-spacing: 0.02em; white-space: nowrap; }
.app-clock small { font-size: 0.55em; color: var(--blue); margin-left: 0.3em; font-weight: 600; }
.app-pos { font-family: var(--font-display); font-weight: 700; font-size: 1.6em; padding-right: 0.6em; border-right: 1px solid rgba(255,255,255,.2); }
.app-holder b { display: block; font-size: 1.05em; }
.app-holder span { font-size: 0.82em; color: rgba(255,255,255,.7); }
.app-you { font-size: 0.62em; font-weight: 700; background: var(--blue); color: #fff; padding: 0.15em 0.5em; border-radius: 0.4em; margin-left: 0.4em; vertical-align: middle; }
.app-live { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: #4ade80; margin-right: 0.4em; }
.app-swap { align-self: center; background: #fff; color: var(--navy); border-radius: 0.8em; padding: 0.75em 1em; font-weight: 700; font-size: 0.95em; white-space: nowrap; }
.app-body { display: grid; grid-template-columns: 1fr 13em; gap: 1em; padding: 1em; }
.app-panel { background: #fff; border-radius: 1em; padding: 1em 1.1em; border: 1px solid var(--line); }
.app-panel + .app-panel { margin-top: 0.9em; }
.app-panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7em; }
.app-panel-h b { font-family: var(--font-display); font-size: 1.05em; color: var(--ink); }
.app-chip { font-size: 0.78em; font-weight: 600; padding: 0.3em 0.7em; border-radius: 0.5em; background: var(--bg-soft); color: var(--muted); }
.app-banner { background: rgba(30,158,97,.08); border: 1px solid rgba(30,158,97,.3); color: #16784a; border-radius: 0.7em; padding: 0.6em 0.8em; font-weight: 600; font-size: 0.9em; margin-bottom: 0.7em; }
.app-strip { display: flex; gap: 0.6em; overflow: hidden; }
.app-check { flex: none; min-width: 8.2em; border-radius: 0.7em; padding: 0.55em 0.75em; border: 1px solid; }
.app-check .t { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.82em; }
.app-check .t i { font-style: normal; color: var(--faint); }
.app-check .z { font-family: var(--font-mono); font-weight: 700; font-size: 1.05em; color: var(--ink); margin-top: 0.15em; }
.c-insp { color: #3b6fe0; border-color: rgba(59,111,224,.25); background: rgba(59,111,224,.06); }
.c-sec { color: var(--violet); border-color: rgba(122,79,214,.25); background: rgba(122,79,214,.06); }
.c-crash { color: var(--red); border-color: rgba(214,69,69,.25); background: rgba(214,69,69,.06); }
.app-notam { border: 1px solid var(--line); border-radius: 0.8em; padding: 0.7em 0.85em; }
.app-notam + .app-notam { margin-top: 0.55em; }
.app-notam .row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8em; }
.app-status { color: var(--green); font-weight: 700; }
.app-notam .id { font-family: var(--font-mono); font-weight: 700; font-size: 0.95em; color: var(--ink); margin: 0.25em 0 0.1em; }
.app-notam .txt { font-size: 0.8em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-bar { height: 0.35em; background: var(--line); border-radius: 1em; margin-top: 0.5em; overflow: hidden; }
.app-bar i { display: block; height: 100%; background: var(--green); border-radius: 1em; }
.app-qa { background: #fff; border: 1px solid var(--line); border-radius: 1em; padding: 0.8em; }
.app-qa b { display: block; font-family: var(--font-display); font-size: 1.05em; color: var(--ink); margin: 0.1em 0.2em 0.6em; }
.app-qa div { border: 1px solid var(--line); border-radius: 0.7em; padding: 0.55em 0.7em; margin-top: 0.45em; }
.app-qa div strong { display: block; font-size: 0.85em; color: var(--ink); }
.app-qa div span { font-size: 0.7em; color: var(--faint); }

/* ── Sections ─────────────────────────────────────────────────────────── */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.78); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy .eyebrow { color: #8fb6ff; }
.section-navy .lead { color: rgba(255,255,255,.7); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 16px 0 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* ── Stat band ────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.stat { padding: 30px 24px 6px 0; border-right: 1px solid rgba(255,255,255,.12); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 12px; font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 24px 16px 24px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* ── Shift timeline ───────────────────────────────────────────────────── */

.shift { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; }
.shift::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--line-strong); }
.shift-step { position: relative; padding-right: 18px; }
.shift-step .node { width: 35px; height: 35px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--navy); position: relative; }
.shift-step.hot .node { background: var(--navy); color: #fff; border-color: var(--navy); }
.shift-step time { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue-ink); margin-top: 18px; }
.shift-step h4 { margin: 6px 0 6px; font-size: 0.98rem; }
.shift-step p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1000px) {
  .shift { grid-template-columns: 1fr; gap: 26px; }
  .shift::before { left: 17px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .shift-step { display: grid; grid-template-columns: 35px 1fr; column-gap: 18px; }
  .shift-step time { margin-top: 6px; grid-column: 2; }
  .shift-step h4, .shift-step p { grid-column: 2; }
  .shift-step .node { grid-row: 1 / span 3; }
}

/* ── Contents index ───────────────────────────────────────────────────── */

.index { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 6px; padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background-color .15s ease; }
.index a:hover { background: var(--bg-tint); }
.index .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); }
.index b { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.index small { grid-column: 2; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.index .arr { color: var(--faint); font-size: 0.9rem; grid-row: 1; grid-column: 3; }
@media (max-width: 960px) { .index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .index { grid-template-columns: 1fr; } }

/* ── Feature chapters ─────────────────────────────────────────────────── */

.chapter { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.chapter.alt { background: var(--bg-soft); }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.chapter.flip .chapter-copy { order: 2; }
.chapter-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); letter-spacing: 0.08em; display: flex; align-items: center; gap: 12px; }
.chapter-num::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 80px; }
.chapter h2 { margin: 18px 0 16px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.chapter .lead { margin-bottom: 28px; }
.chapter-visual { position: sticky; top: 100px; }
@media (max-width: 1000px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter.flip .chapter-copy { order: 0; }
  .chapter-visual { position: static; }
}

.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.feats li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); line-height: 1.55; }
.feats li::before {
  content: ""; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232a6ae8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.feats li b { color: var(--ink); font-weight: 600; }
.chapter.alt .feats li::before { background-color: #fff; }

.subhead { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 30px 0 4px; }

/* ── Generic mock card ────────────────────────────────────────────────── */

.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.mock + .mock { margin-top: 18px; }
.mock-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-h b { font-family: var(--font-display); font-size: 0.98rem; color: var(--ink); }
.mock-h span { font-size: 0.8rem; color: var(--faint); }
.mock-b { padding: 18px; }
.mock-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.mock-caption { font-size: 0.82rem; color: var(--faint); margin-top: 14px; text-align: center; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-green { background: rgba(30,158,97,.1); color: #16784a; }
.pill-amber { background: rgba(217,131,0,.12); color: #a86500; }
.pill-red { background: rgba(214,69,69,.1); color: #b53434; }
.pill-blue { background: rgba(76,141,255,.12); color: var(--blue-ink); }
.pill-navy { background: var(--navy); color: #fff; }
.pill-grey { background: var(--bg-soft); color: var(--muted); }

.initials { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 50%; background: var(--bg-tint); border: 1px solid #d8e2f3; color: var(--navy); font-size: 0.7rem; font-weight: 700; }
.initials.me { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 01 · Face sign-in */
.face { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.face-cam { background: #0d1628; aspect-ratio: 3 / 4; position: relative; display: grid; place-items: center; overflow: hidden; }
.face-oval { width: 58%; aspect-ratio: 3 / 4; border-radius: 50%; border: 3px solid #4ade80; box-shadow: 0 0 0 999px rgba(4,14,36,.55); }
.face-hint { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); background: rgba(255,255,255,.95); color: var(--ink); font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.face-silhouette { position: absolute; width: 38%; aspect-ratio: 3/4; border-radius: 48% 48% 44% 44%; background: linear-gradient(#2a3a5c, #1c2a47); top: 26%; }
.face-side { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.face-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.face-row span { color: var(--muted); }
.face-row b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.keypad { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.keypad i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--navy); }
.keypad i.f { background: var(--navy); }
@media (max-width: 520px) { .face { grid-template-columns: 1fr; } .face-cam { aspect-ratio: 4 / 3; } }

/* 02 · Position board */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pos { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pos .code { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.pos .st { font-size: 0.78rem; margin-top: 8px; font-weight: 600; }
.pos .who { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.pos.avail { border-color: rgba(30,158,97,.35); background: rgba(30,158,97,.04); }
.pos.avail .st { color: var(--green); }
.pos.occ { border-color: rgba(214,69,69,.3); background: rgba(214,69,69,.03); }
.pos.occ .st { color: var(--red); }
.pos.na { background: var(--bg-soft); }
.pos.na .st { color: var(--faint); }
@media (max-width: 520px) { .board { grid-template-columns: repeat(2, 1fr); } }

.swap-dialog { padding: 22px; text-align: center; }
.swap-dialog .arrows { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.swap-dialog p { font-size: 0.88rem; color: var(--muted); margin: 8px 0 16px; }

/* 03 · Duty-time slider */
.duty { padding: 24px; }
.duty-read { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.duty-read b { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.duty-read span { font-size: 0.85rem; color: rgba(255,255,255,.6); }
.duty-track { position: relative; height: 10px; border-radius: 10px; background: rgba(255,255,255,.1); margin: 26px 0 8px; }
.duty-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: var(--blue); width: 0; transition: width .1s linear, background-color .2s ease; }
.duty-marks { position: relative; height: 34px; font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,.55); }
.duty-marks span { position: absolute; transform: translateX(-50%); top: 0; text-align: center; white-space: nowrap; }
.duty-marks span::before { content: ""; display: block; width: 1px; height: 8px; background: rgba(255,255,255,.35); margin: 0 auto 4px; }
.duty-marks span.hard { color: #ff8a8a; }
.duty input[type="range"] { width: 100%; margin: 6px 0 0; accent-color: var(--blue); }
.duty-notice { margin-top: 18px; border-radius: 14px; background: #fff; color: var(--text); padding: 16px 18px; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; min-height: 104px; }
.duty-notice .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-tint); color: var(--navy); font-family: var(--font-mono); font-weight: 700; }
.duty-notice h4 { color: var(--ink); }
.duty-notice p { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.duty-notice.warn .ic { background: rgba(217,131,0,.14); color: #a86500; }
.duty-notice.stop .ic { background: rgba(214,69,69,.12); color: #b53434; }
.duty-notice.ok .ic { background: rgba(30,158,97,.12); color: #16784a; }

/* 04 · Reading flow */
.reader { display: grid; grid-template-columns: 0.9fr 1.4fr; }
.reader-list { border-right: 1px solid var(--line); }
.reader-list div { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.reader-list div b { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); }
.reader-list div span { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-list .on { background: var(--bg-tint); box-shadow: inset 3px 0 0 var(--navy); }
.reader-doc { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.reader-doc small { font-size: 0.76rem; color: var(--faint); }
.reader-doc pre { margin: 0; font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.6; color: var(--text); background: var(--bg-soft); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-word; }
.readby { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.readby .initials { width: 24px; height: 24px; min-width: 24px; font-size: 0.62rem; }
.read-btn { background: var(--navy); color: #fff; text-align: center; font-weight: 600; font-size: 0.85rem; padding: 12px; }
@media (max-width: 560px) { .reader { grid-template-columns: 1fr; } .reader-list { display: none; } }

.receipt { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.receipt:last-child { border-bottom: 0; }
.receipt .initials { width: 36px; height: 36px; background: var(--navy); color: #fff; border: 0; font-size: 0.72rem; }
.receipt b { color: var(--ink); display: block; }
.receipt span { color: var(--muted); font-size: 0.78rem; }

/* 05 · Alerts */
.alert { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.alert-h { background: #fff4e5; padding: 16px 18px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #f6dfbd; }
.alert-h .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--amber); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); }
.alert-h b { display: block; color: var(--ink); font-family: var(--font-display); }
.alert-h span { font-size: 0.8rem; color: #8a5a10; }
.alert-b { padding: 16px 18px; }
.alert-b pre { margin: 0 0 12px; font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.6; background: var(--bg-soft); padding: 12px; border-radius: 10px; white-space: pre-wrap; }
.alert-times { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.74rem; }
.alert-f { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 0 18px 18px; }
.alert-f div { text-align: center; padding: 11px; border-radius: 10px; font-weight: 600; font-size: 0.86rem; }
.alert-f .silent { border: 1px solid var(--line-strong); color: var(--muted); }
.alert-f .noted { background: var(--navy); color: #fff; }
.alert-foot { font-size: 0.76rem; color: var(--faint); text-align: center; padding: 0 18px 14px; font-family: var(--font-mono); }

.lock { margin-top: 18px; border-radius: 22px; background: #0e1830; padding: 20px 16px; }
.lock-time { text-align: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; letter-spacing: -0.02em; line-height: 1; }
.lock-date { text-align: center; color: rgba(255,255,255,.6); font-size: 0.8rem; margin: 6px 0 16px; }
.push { background: rgba(255,255,255,.93); border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.push + .push { margin-top: 8px; opacity: .92; }
.push img { width: 34px; height: 34px; border-radius: 8px; }
.push .meta { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); }
.push .meta b { color: var(--red); letter-spacing: 0.04em; font-size: 0.64rem; }
.push strong { display: block; font-size: 0.86rem; color: var(--ink); margin-top: 2px; }
.push p { font-size: 0.8rem; color: var(--text); line-height: 1.4; }

.gap-seq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.gap-seq div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.gap-seq b { display: block; font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); }
.gap-seq span { font-size: 0.76rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
@media (max-width: 520px) { .gap-seq { grid-template-columns: repeat(2, 1fr); } }

/* 06 · NOTAM parser */
.parse { display: grid; grid-template-columns: 1fr; }
.parse pre { margin: 0; padding: 18px; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.75; background: var(--navy-900); color: #c9d6ef; white-space: pre-wrap; word-break: break-word; }
.parse pre .k { color: #8fb6ff; }
.parse-arrow { display: flex; align-items: center; gap: 10px; padding: 10px 18px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); border-bottom: 1px solid var(--line); background: var(--bg-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); }
.fields div { padding: 12px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.fields div:nth-child(2n) { border-right: 0; }
.fields small { display: block; font-size: 0.7rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.fields b { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink); font-weight: 600; }
.coord { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.coord small { width: 100%; font-size: 0.7rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }

.nprog { padding: 14px 18px; border-top: 1px solid var(--line); }
.nprog + .nprog { border-top: 1px dashed var(--line); }
.nprog .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.8rem; }
.nprog .id { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.nprog .bar { height: 6px; border-radius: 6px; background: var(--line); margin-top: 10px; overflow: hidden; }
.nprog .bar i { display: block; height: 100%; border-radius: 6px; }
.nprog .lbl { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--faint); margin-top: 6px; font-family: var(--font-mono); }

/* 07 · Map */
.map { position: relative; aspect-ratio: 4 / 3; background: #e8edf4; overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }
.map-layers { position: absolute; top: 12px; right: 12px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-1); padding: 8px 10px; font-size: 0.72rem; display: grid; gap: 4px; }
.map-layers label { display: flex; align-items: center; gap: 6px; color: var(--text); }
.map-layers i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.map-pop { position: absolute; left: 12px; bottom: 12px; right: 12px; max-width: 320px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-2); padding: 12px 14px; font-size: 0.78rem; }
.map-pop b { display: block; font-family: var(--font-mono); color: var(--ink); font-size: 0.82rem; }
.map-pop span { color: var(--muted); display: block; }
.map-pop .go { color: var(--blue-ink); font-weight: 600; margin-top: 6px; display: block; }

.rtl-note { direction: rtl; font-family: "Noto Naskh Arabic", "Inter", sans-serif; font-size: 0.95rem; line-height: 1.8; background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; color: var(--ink); }

/* 09 · Checks */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type { border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.type i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); }
.type.sel { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 20px -10px rgba(214,69,69,.6); }
.type.sel i { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px var(--red); }
.save { margin-top: 12px; background: var(--red); color: #fff; text-align: center; border-radius: 12px; padding: 13px; font-weight: 700; font-size: 0.92rem; }
.countdown { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.countdown .bar { flex: 1; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.countdown .bar i { display: block; height: 100%; width: 60%; background: var(--red); }
.countdown b { color: var(--red); font-family: var(--font-mono); }
@media (max-width: 460px) { .types { grid-template-columns: 1fr; } }

/* 10 · Reports */
.rep { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.rep:last-child { border-bottom: 0; }
.rep b { color: var(--ink); display: block; }
.rep span { color: var(--muted); font-size: 0.78rem; }
.rep .z { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink); }

/* 11 · Archive */
.tabs { display: flex; gap: 6px; padding: 12px 14px; background: var(--navy); overflow: hidden; }
.tabs span { font-size: 0.78rem; font-weight: 600; color: #fff; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.tabs span.on { background: #fff; color: var(--navy); }
.tabs span em { font-style: normal; background: var(--amber); color: #fff; border-radius: 8px; padding: 0 6px; margin-left: 6px; font-size: 0.7rem; }
.doc { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.doc .ft { width: 44px; height: 52px; border-radius: 10px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; }
.doc b { color: var(--ink); font-size: 0.9rem; display: block; }
.doc span { color: var(--muted); font-size: 0.76rem; }
.doc .p { height: 4px; background: var(--line); border-radius: 4px; margin-top: 6px; width: 140px; max-width: 100%; overflow: hidden; }
.doc .p i { display: block; height: 100%; background: var(--navy); }
.sign { padding: 18px; background: var(--bg-soft); text-align: center; }
.sign p { font-size: 0.82rem; color: var(--muted); margin: 6px auto 12px; max-width: 38ch; }
.sign .hash { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); margin-top: 12px; }

/* 12 · Stats */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--navy); color: #fff; }
.kpis div { padding: 18px 14px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.kpis div:last-child { border-right: 0; }
.kpis b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.kpis b small { font-size: 0.9rem; color: rgba(255,255,255,.6); font-weight: 600; }
.kpis span { font-size: 0.72rem; color: rgba(255,255,255,.65); }
.exp { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.exp:last-child { border-bottom: 0; }
.exp b { color: var(--ink); display: block; }
.exp span { color: var(--muted); font-size: 0.78rem; }
@media (max-width: 460px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpis div:nth-child(2) { border-right: 0; } }

/* 13 · Coverage */
.cov { padding: 18px; }
.cov-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.cov-row b { font-family: var(--font-display); font-size: 0.9rem; color: var(--ink); }
.cov-bar { position: relative; height: 26px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; }
.cov-bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 700; color: #fff; font-style: normal; font-family: var(--font-mono); overflow: hidden; }
.cov-bar i.s1 { background: var(--navy); }
.cov-bar i.s2 { background: #2d4f8f; }
.cov-bar i.s3 { background: var(--blue); }
.cov-bar i.gap { background: repeating-linear-gradient(45deg, rgba(214,69,69,.85) 0 6px, rgba(214,69,69,.65) 6px 12px); }
.cov-axis { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.cov-axis div { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); }
.cov-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* 14 · Management */
.pdf { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-2); padding: 22px; max-width: 380px; margin: 0 auto; font-size: 0.62rem; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.pdf-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 8px; }
.pdf-h img { height: 16px; width: auto; }
.pdf-h b { font-family: var(--font-display); font-size: 0.72rem; color: var(--navy); letter-spacing: 0.04em; }
.pdf-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pdf-kpi div { background: var(--bg-soft); border-radius: 4px; padding: 6px; text-align: center; }
.pdf-kpi b { display: block; font-size: 0.9rem; color: var(--ink); font-family: var(--font-display); }
.pdf table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.56rem; }
.pdf th { text-align: left; background: var(--navy); color: #fff; padding: 4px 5px; font-weight: 600; }
.pdf td { padding: 4px 5px; border-bottom: 1px solid var(--line); }
.pdf .sec { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 0.7rem; margin-top: 4px; }
.pdf .red { background: rgba(214,69,69,.14); color: #b53434; font-weight: 700; }

.reports { counter-reset: r; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.reports li { counter-increment: r; padding: 18px 20px 18px 56px; position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.reports li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 20px; top: 19px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue-ink); }
.reports li b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.reports li span { display: block; font-size: 0.86rem; color: var(--muted); margin-top: 4px; line-height: 1.55; }
@media (max-width: 760px) { .reports { grid-template-columns: 1fr; } }

.mgr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mgr-tiles div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 0.84rem; font-weight: 600; color: var(--ink); background: #fff; }
.mgr-tiles div span { display: block; font-weight: 400; color: var(--muted); font-size: 0.74rem; margin-top: 2px; }
@media (max-width: 520px) { .mgr-tiles { grid-template-columns: repeat(2, 1fr); } }

/* 15 · Ops room grid */
.ops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ops > div { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.ops h4 { margin-bottom: 8px; }
.ops p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.ops .viz { height: 86px; margin-bottom: 18px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; position: relative; }
@media (max-width: 960px) { .ops { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ops { grid-template-columns: 1fr; } }

.mini-night { display: grid; grid-template-columns: 1fr 1fr; width: 76%; height: 58px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.mini-night div { padding: 8px; display: grid; gap: 5px; align-content: start; }
.mini-night div:first-child { background: #fff; }
.mini-night div:last-child { background: #0a0f1e; }
.mini-night i { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.mini-night div:last-child i { background: #1c2a47; }
.mini-night i.a { width: 60%; background: var(--navy); }
.mini-night div:last-child i.a { background: var(--blue); }
.mini-layout { display: flex; gap: 14px; }
.mini-layout div { display: grid; gap: 3px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.mini-layout div i { display: block; background: var(--bg-tint); border: 1px solid #d8e2f3; border-radius: 2px; }
.mini-layout .rows i { width: 44px; height: 9px; }
.mini-layout .cols { grid-template-columns: repeat(4, 1fr); }
.mini-layout .cols i { width: 9px; height: 42px; }
.kbd { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; padding: 6px 12px; border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 8px; background: #fff; color: var(--ink); }
.offline { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 0.72rem; text-align: center; box-shadow: var(--shadow-1); }
.offline b { display: block; color: var(--ink); font-size: 0.78rem; }

/* ── Accountability ───────────────────────────────────────────────────── */

.audit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.audit > div { padding: 26px 22px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.audit .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8fb6ff; }
.audit h4 { margin: 10px 0 8px; }
.audit p { font-size: 0.88rem; line-height: 1.6; }
.audit code { font-family: var(--font-mono); font-size: 0.76rem; color: #fff; background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 960px) { .audit { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .audit { grid-template-columns: 1fr; } }

/* ── Platforms ────────────────────────────────────────────────────────── */

.plat { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.plat div { border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; background: #fff; }
.plat b { display: block; font-family: var(--font-display); color: var(--ink); font-size: 0.98rem; }
.plat span { font-size: 0.8rem; color: var(--muted); display: block; margin-top: 4px; line-height: 1.5; }
@media (max-width: 960px) { .plat { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .plat { grid-template-columns: repeat(2, 1fr); } }

.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.stack div { padding: 22px; border-right: 1px solid var(--line); }
.stack div:last-child { border-right: 0; }
.stack small { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.stack p { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.stack p b { color: var(--ink); }
@media (max-width: 760px) { .stack { grid-template-columns: 1fr; } .stack div { border-right: 0; border-bottom: 1px solid var(--line); } .stack div:last-child { border-bottom: 0; } }

/* ── Rollout ──────────────────────────────────────────────────────────── */

.rollout { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.rollout div { counter-increment: s; padding: 0 22px 0 0; }
.rollout div::before { content: "0" counter(s); display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue-ink); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--navy); }
.rollout h4 { margin-bottom: 8px; }
.rollout p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 960px) { .rollout { grid-template-columns: repeat(2, 1fr); gap: 32px 0; } }
@media (max-width: 560px) { .rollout { grid-template-columns: 1fr; } }

/* ── Pricing ──────────────────────────────────────────────────────────── */

.pricing { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 3.4vw, 40px); background: #fff; display: flex; flex-direction: column; }
.plan.main { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.78); }
.plan.main h3, .plan.main .price b { color: #fff; }
.plan-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ink); }
.plan.main .plan-tag { color: #8fb6ff; }
.plan h3 { margin: 12px 0 6px; font-size: 1.4rem; }
.plan > p { font-size: 0.93rem; color: var(--muted); }
.plan.main > p { color: rgba(255,255,255,.7); }
.price { margin: 26px 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan.main .price { border-bottom-color: rgba(255,255,255,.14); }
.price small { font-size: 0.9rem; color: var(--muted); }
.plan.main .price small { color: rgba(255,255,255,.6); }
.price b { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.price span { font-size: 0.95rem; color: var(--muted); }
.plan.main .price span { color: rgba(255,255,255,.65); }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; font-size: 0.93rem; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.5; }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232a6ae8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.plan.main li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: auto; width: 100%; }
.pricing-note { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 1px dashed var(--line-strong); border-radius: 16px; padding: 18px 22px; }
.pricing-note p { font-size: 0.93rem; color: var(--muted); }
.pricing-note b { color: var(--ink); }
.fine { font-size: 0.8rem; color: var(--faint); margin-top: 16px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 0.97rem; max-width: 72ch; }

/* ── Contact / CTA ────────────────────────────────────────────────────── */

.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta h2 { margin: 16px 0 16px; }
.cta-list { margin-top: 28px; display: grid; gap: 14px; }
.cta-list div { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 0.93rem; }
.cta-list b { font-family: var(--font-mono); color: #8fb6ff; font-size: 0.8rem; font-weight: 500; padding-top: 2px; }
.form { background: #fff; border-radius: 22px; padding: clamp(22px, 3vw, 32px); color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 0.95rem; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76,141,255,.18); }
.form .btn { width: 100%; margin-top: 18px; height: 50px; }
.form .fine { text-align: center; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer { background: var(--navy-900); color: rgba(255,255,255,.6); padding: 56px 0 32px; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer img { height: 26px; width: auto; }
.footer p { margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.footer h4 { color: #fff; font-size: 0.85rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ── Reveal on scroll (only when JS runs and motion is allowed) ───────── */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Dark chapter (duty-time rules) ───────────────────────────────────── */

.chapter.navy { background: var(--navy); border-top-color: var(--navy); color: rgba(255,255,255,.78); }
.chapter.navy h2 { color: #fff; }
.chapter.navy .lead { color: rgba(255,255,255,.7); }
.chapter.navy .chapter-num { color: rgba(255,255,255,.5); }
.chapter.navy .chapter-num::after { background: rgba(255,255,255,.18); }
.chapter.navy .feats { border-top-color: rgba(255,255,255,.12); }
.chapter.navy .feats li { border-bottom-color: rgba(255,255,255,.12); color: rgba(255,255,255,.72); }
.chapter.navy .feats li b { color: #fff; }
.chapter.navy .feats li::before {
  background-color: rgba(255,255,255,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%238fb6ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── Notes mock ───────────────────────────────────────────────────────── */
.nprog .rtl-note { margin: 0; }

.qa-mini { display: grid; gap: 5px; width: 70%; }
.qa-mini span { display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 0.72rem; font-weight: 600; color: var(--ink); }
.qa-mini span i { font-style: normal; color: var(--faint); }

/* Hero mock on narrow screens: fewer, larger elements instead of a shrunken tablet. */
@container (max-width: 520px) {
  .app { font-size: 2.6cqw; }
  .app-top { grid-template-columns: auto 1fr; }
  .app-top > .app-card:last-child, .app-swap { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-qa { display: none; }
  .app-check:nth-child(n+3) { display: none; }
}

/* Hero mock — the other positions in the unit */
.app-unit { justify-content: space-around; gap: 0.6em; }
.app-unit div { display: grid; gap: 0.15em; }
.app-unit small { font-size: 0.7em; font-weight: 700; letter-spacing: 0.06em; color: rgba(255,255,255,.55); }
.app-unit b { font-size: 1em; white-space: nowrap; }

/* 14 · Currency */
.cur-opts { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cur-kpi { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.cur-kpi div { padding: 14px 10px; text-align: center; font-size: 0.74rem; color: var(--muted); border-right: 1px solid var(--line); }
.cur-kpi div:last-child { border-right: 0; }
.cur-kpi b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.cur-wrap { overflow-x: auto; }
.cur { width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 420px; }
.cur th { text-align: left; background: var(--navy); color: #fff; font-weight: 600; font-size: 0.72rem; padding: 8px 12px; }
.cur td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--text); font-family: var(--font-mono); font-size: 0.76rem; }
.cur td:nth-child(2) { font-family: var(--font-body); font-size: 0.82rem; color: var(--ink); }
.cur td.low { background: rgba(214,69,69,.12); color: #b53434; font-weight: 700; }
.cur tr:last-child td { border-bottom: 0; }

/* 15 · Licences */
.lic { padding: 13px 18px 13px 15px; border-bottom: 1px solid var(--line); border-left: 3px solid; display: grid; gap: 8px; }
.lic:last-child { border-bottom: 0; }
.lic.red { border-left-color: var(--red); }
.lic.amber { border-left-color: var(--amber); }
.lic.green { border-left-color: var(--green); }
.lic .who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lic .who b { color: var(--ink); font-size: 0.9rem; }
.lic .who span { font-size: 0.72rem; color: var(--faint); font-family: var(--font-mono); }
.lic .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.buckets { display: grid; grid-template-columns: repeat(4, 1fr); }
.buckets div { padding: 18px 10px; text-align: center; font-size: 0.76rem; color: var(--muted); border-right: 1px solid var(--line); border-top: 3px solid; }
.buckets div:last-child { border-right: 0; }
.buckets b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; }
.b-red { border-top-color: var(--red) !important; } .b-red b { color: var(--red); }
.b-amber { border-top-color: var(--amber) !important; } .b-amber b { color: var(--amber); }
.b-blue { border-top-color: var(--blue) !important; } .b-blue b { color: var(--blue-ink); }
.b-green { border-top-color: var(--green) !important; } .b-green b { color: var(--green); }
@media (max-width: 460px) { .cur-kpi, .buckets { grid-template-columns: repeat(2, 1fr); } }

/* ── Built by controllers ─────────────────────────────────────────────── */
.built { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.built h2 { margin: 16px 0 16px; }
.fixes { border-top: 2px solid var(--navy); }
.fixes-h, .fix { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 14px; align-items: center; }
.fixes-h { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.fix { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fix p { color: var(--muted); font-size: 0.95rem; }
.fix i { font-style: normal; color: var(--blue-ink); text-align: center; }
.fix b { color: var(--ink); font-size: 0.95rem; font-weight: 600; }
@media (max-width: 900px) { .built { grid-template-columns: 1fr; } }

/* ── Customise ────────────────────────────────────────────────────────── */
.custom { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.custom > div { padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.custom h4 { margin-bottom: 4px; }
.custom p { font-size: 0.88rem; color: var(--muted); }
.custom .ex { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.custom .ex span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--navy); background: var(--bg-tint); border: 1px solid #d8e2f3; border-radius: 6px; padding: 2px 7px; }
@media (max-width: 1000px) { .custom { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .custom { grid-template-columns: 1fr; } }

/* ── ATC line drawings in the margins of white sections ─────────────── */
.section, .chapter { position: relative; overflow: clip; }
.section > .container, .chapter > .container { position: relative; z-index: 1; }
.deco { position: absolute; z-index: 0; color: #d5dce8; pointer-events: none; overflow: visible; }
@media (max-width: 1180px) { .deco { display: none; } }

/* Contact details under the demo list */
.contact-direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact-direct a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; font-weight: 600; font-size: 1rem; transition: border-color .15s ease; }
.contact-direct a:hover { border-color: #fff; }
.contact-direct small { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8fb6ff; font-weight: 500; }
