/* aerolist.app. Tokens come from the app's own themes.ts (Cockpit teal). */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #061e24;
  --ink-deep: #04161b;
  --panel: #0b2d33;
  --panel-2: #082832;
  --line: #1f5561;
  --teal: #3cd6bf;
  --teal-soft: #93f5e6;
  --foam: #e6eef0;
  --mist: #a1b5ba;
  --check: #22c55e;

  --paper: #f5f8fa;
  --paper-2: #e8f1f4;
  --text: #0f172a;
  --text-2: #4a5a6e;
  --teal-dark: #0e7490;
  --rule: #d0dae5;

  --display: "Archivo", "Arial Narrow", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --head: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible { outline-color: var(--teal-dark); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--text-2); }
.ink .muted { color: var(--mist); }

/* Surfaces */
.ink { background: var(--ink); color: var(--foam); }
.ink--deep { background: var(--ink-deep); }
.paper { background: var(--paper); color: var(--text); }
.paper--alt { background: var(--paper-2); }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 65%;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
  font-size: clamp(3.6rem, 11.5vw, 9.5rem);
  text-wrap: balance;
}
.display--md { font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: 0.88; margin-bottom: 0.32em; }
.ink .display { color: #f2f7f8; }


/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(60, 214, 191, 0.14);
  color: var(--foam);
}
.top__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--head); display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 21px; letter-spacing: 0.01em; text-transform: uppercase; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top__nav { display: none; gap: 22px; margin-left: 8px; }
.top__nav a { text-decoration: none; font-size: 14px; color: var(--mist); transition: color 0.2s var(--ease); }
.top__nav a:hover { color: var(--foam); }
.zclock {
  margin: 0 0 0 auto;
  font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--teal); font-variant-numeric: tabular-nums;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--teal); color: var(--ink);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn:hover { background: var(--teal-soft); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (min-width: 1000px) { .top__nav { display: flex; } }
@media (max-width: 860px) { .top .btn { display: none; } }

/* App Store badge, drawn in the style of Apple's */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 22px 8px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.appstore svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.appstore span { display: flex; flex-direction: column; font-size: 22px; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.appstore small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.appstore:hover { border-color: var(--teal); }
.appstore:active { transform: scale(0.97); }
.appstore.is-ready { border-color: var(--teal); animation: nudge 0.9s var(--ease) 1; }
@keyframes nudge { 0% { transform: scale(1); } 30% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* Hero */
.hero { padding: clamp(36px, 7vw, 96px) 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #c8d6da; max-width: 36ch; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.hero__note { margin: 0; font-size: 14px; color: var(--mist); }
.hero__demo { position: relative; }
.hero__ipad { width: min(100%, 420px); justify-self: center; margin: 32px auto 24px; }

/* Devices: the raw screenshots get a plain black bezel */
.device { margin: 0; background: #010a0c; padding: 9px; border-radius: 46px; box-shadow: 0 0 0 1px rgba(60, 214, 191, 0.22), 0 40px 80px -30px rgba(0, 0, 0, 0.55); }
.device img { border-radius: 37px; width: 100%; }
.device--ipad { border-radius: 34px; padding: 12px; }
.device--ipad img { border-radius: 23px; }
.paper .device { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 40px 70px -40px rgba(6, 30, 36, 0.45); }

/* The hero scene: the real app slides over a taxi chart, then ticks Pre Flight */
.scene__screen { position: relative; aspect-ratio: 3 / 4; border-radius: 23px; overflow: hidden; background: #fff; isolation: isolate; }
.device--ipad .scene__chart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transform-origin: 40% 38%; }
.scene__panel { position: absolute; top: 0; right: 0; width: 36.43%; border-radius: 7% / 2.1%; overflow: hidden; background: #061e24; box-shadow: -10px 0 28px rgba(6, 30, 36, 0.28); }
.scene__panel video, .scene__panel img { display: block; width: 100%; height: auto; border-radius: 0; }
.scene__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; min-height: 44px; }
.scene__bar p { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--mist); }
.scene__replay { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--foam); font: 600 14px/1 var(--mono); letter-spacing: 0.06em; cursor: pointer; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.scene__replay:hover { border-color: var(--teal); color: var(--teal); }
.scene.is-armed:not(.is-playing) .scene__panel { transform: translateX(104%); }
.scene.is-playing .scene__chart { animation: chartzoom 3.4s cubic-bezier(0.45, 0, 0.2, 1) 0.5s both; }
.scene.is-playing .scene__panel { animation: slideover 0.7s cubic-bezier(0.32, 0.72, 0, 1) 2.7s both; }
@keyframes chartzoom { from { transform: scale(1); } to { transform: scale(1.28); } }
@keyframes slideover { from { transform: translateX(104%); } to { transform: none; } }

/* Phase pills, as in the app */
.phases {
  list-style: none; display: flex; gap: 10px;
  margin: clamp(40px, 6vw, 72px) auto 0; padding-top: 22px; padding-bottom: 22px;
  border-top: 1px solid rgba(60, 214, 191, 0.14);
  overflow-x: auto; scrollbar-width: none;
}
.phases::-webkit-scrollbar { display: none; }
.phases li {
  flex: none; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist);
}
.phases li.is-on { background: #2b3b4c; border-color: #3f5468; color: var(--foam); }

/* Split sections */
section.zulu, section.slide, section.tools, section.build, section.themes, section.pro, section.faq, section.close { padding: clamp(64px, 9vw, 128px) 0; }
.split { display: grid; gap: 44px; align-items: center; }
.split__copy p { max-width: 46ch; }
.split__copy p a { text-underline-offset: 3px; }
.ink .split__copy p { color: #c8d6da; }
.paper .split__copy p { color: var(--text-2); }
.split__media { width: min(100%, 440px); justify-self: center; }
.themes__grid { display: grid; gap: 44px; align-items: center; }
.themes__media { display: none; }

/* Block time box */
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 30px 0 10px; max-width: 460px; }
.blocks label, .blocks__out { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); }
.blocks span { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; text-transform: uppercase; color: var(--mist); }
.blocks input, .blocks output {
  width: 100%; border: 0; background: transparent; padding: 0;
  font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: 0.06em; color: #f2f7f8; font-variant-numeric: tabular-nums;
}
.blocks input:focus { outline: none; }
.blocks label:focus-within { border-color: var(--teal); }
.blocks__out { background: rgba(60, 214, 191, 0.1); border-color: rgba(60, 214, 191, 0.45); }
.blocks output { color: var(--teal); }
.blocks label.is-bad { border-color: #e0605c; }

/* Slide Over */
.slide .wrap { display: grid; gap: 44px; align-items: center; }
.slide__copy p { color: var(--text-2); max-width: 46ch; }
.slide__media { width: min(100%, 520px); justify-self: center; }

/* Dot leaders: challenge on the left, response on the right */
.leaders { list-style: none; margin: 28px 0 0; padding: 0; max-width: 520px; }
.leaders li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.leaders li span { flex: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; color: var(--text); }
.leaders li span::after { content: ""; flex: 1; min-width: 14px; border-bottom: 2px dotted rgba(15, 23, 42, 0.25); transform: translateY(-4px); }
.leaders li b { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-dark); white-space: nowrap; }
.leaders--tight li { padding: 9px 0; font-size: 16px; }

.note {
  margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--teal-dark);
  background: rgba(14, 116, 144, 0.07); border-radius: 0 12px 12px 0;
  font-size: 15px;
}
.paper .split__copy .note { color: var(--text); }

/* Themes */
.themes__lede { color: #c8d6da; max-width: 52ch; }
.icons { list-style: none; margin: 40px 0 0; padding: 0 0 6px; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.icons::-webkit-scrollbar { display: none; }
.icons li { flex: none; width: 104px; text-align: center; }
.icons img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.icons span { display: block; margin-top: 12px; font-size: 14px; color: var(--mist); }

/* Free and Pro */
.pro__lede { color: var(--text-2); max-width: 46ch; }
.plans { display: grid; gap: 20px; margin: 36px 0 22px; }
.plan { background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 26px 26px 18px; }
.plan--pro { border-top: 4px solid var(--teal-dark); }
.plan h3 { font-family: var(--display); font-weight: 900; font-stretch: 65%; text-transform: uppercase; font-size: 36px; line-height: 1; }
.plan__price { margin: 8px 0 0; line-height: 1.5; font-family: var(--mono); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--teal-dark); }
.plan__price small { font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--text-2); }
.plan__price .or { font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--text-2); margin: 0 4px; }
.plan .leaders { margin-top: 18px; }
.plan .leaders li:last-child { border-bottom: 0; }

/* FAQ */
.faq__grid { display: grid; gap: 24px; }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border: solid var(--teal-dark); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { color: var(--text-2); max-width: 60ch; padding-bottom: 8px; }
.faq details a { color: var(--teal-dark); }

/* Close */
.close__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.close__icon { width: 88px; height: 88px; border-radius: 21px; margin-bottom: 28px; box-shadow: 0 0 0 1px rgba(60, 214, 191, 0.3); }
.close p { color: #c8d6da; margin: 22px 0 28px; }

/* Footer */
.foot { border-top: 1px solid rgba(60, 214, 191, 0.14); padding: 36px 0 40px; font-size: 15px; }
.foot__in { display: grid; gap: 14px; }
.foot p { margin: 0; color: var(--mist); }
.foot a { color: var(--foam); text-decoration-color: rgba(230, 238, 240, 0.35); text-underline-offset: 3px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot nav a:hover { color: var(--teal); }

/* Phone: one floating bar, the App Store link */
.dockbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: var(--ink-deep); border: 1px solid var(--line); border-radius: 20px;
  color: var(--foam); text-decoration: none;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.dockbar img { width: 38px; height: 38px; border-radius: 9px; }
.dockbar span { display: flex; flex-direction: column; line-height: 1.2; }
.dockbar b { font-size: 15px; }
.dockbar small { font-size: 13px; color: var(--mist); }
.dockbar em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 15px; background: var(--teal); color: var(--ink); border-radius: 999px; padding: 9px 22px; }
.dockbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (max-width: 860px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); background: var(--ink); }
  .top { position: relative; }
  .tools .split__media, .build .split__media, .zulu .split__media, .phases { display: none; }
  section.zulu, section.slide, section.tools, section.build, section.themes, section.pro, section.faq, section.close { padding: 56px 0; }
  .hero { padding-bottom: 56px; }
  .split, .slide .wrap { gap: 32px; }
  .slide__media { width: min(100%, 280px); }
  .icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 10px; margin-top: 28px; overflow: visible; }
  .icons li { width: auto; display: flex; flex-direction: column; align-items: center; }
  .icons img { width: 76px; height: 76px; border-radius: 18px; }
  .icons span { font-size: 13px; }
  .leaders li { padding: 9px 0; }
  .plan__price .or { display: block; margin: 0; }
  .blocks { gap: 8px; }
  .blocks label, .blocks__out { padding: 10px 12px; }
  .blocks input, .blocks output { font-size: 22px; }
  .hero__copy .display { font-size: clamp(3.2rem, 17vw, 6rem); }
}

/* Desktop */
@media (min-width: 861px) {
  .dockbar { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .hero__copy .display { font-size: clamp(4.2rem, 7.4vw, 7rem); }
  .hero__demo { width: 430px; justify-self: end; margin-bottom: 36px; }
  .hero__ipad { width: 100%; margin: 0; }
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; }
  .split--rev .split__copy { order: 2; }
  .split--rev .split__media { order: 1; }
  .slide .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
  .plans { grid-template-columns: 1fr 1fr; max-width: 980px; }
  .faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
  .foot__in { grid-template-columns: 1fr auto; align-items: center; }
  .foot__in .small, .foot__guides { grid-column: 1 / -1; }
  .icons { overflow: visible; flex-wrap: wrap; }
  .themes__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
  .themes__media { display: block; width: min(100%, 440px); justify-self: center; }
}

/* Desktop arrival: one short sequence, transforms and opacity only */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .hero__copy .display { animation: rise 0.9s var(--ease) 0.05s both; }
  .lede, .hero__cta { animation: fade 0.8s var(--ease) 0.25s both; }
  .hero__ipad { animation: settle 1.1s var(--ease) 0.15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (min-width: 1100px) {
  .hero__demo { width: 460px; }
}

/* Guide pages: one readable column on paper */
.doc { padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); }
.doc__in { max-width: 760px; }
.crumbs { margin: 0 0 22px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--rule); }
.crumbs a { color: var(--teal-dark); text-decoration: none; }
.doc h1 { font-family: var(--display); font-weight: 900; font-stretch: 65%; text-transform: uppercase; line-height: 0.9; font-size: clamp(2.7rem, 7vw, 4.8rem); text-wrap: balance; margin-bottom: 24px; }
.doc .answer { font-size: clamp(18px, 1.6vw, 20px); color: var(--text); max-width: 60ch; }
.doc h2 { font-family: var(--display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; line-height: 0.95; font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 52px 0 16px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); max-width: 64ch; }
.doc .answer, .doc strong { color: var(--text); }
.doc ul:not(.leaders), .doc ol:not(.steps) { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc a:not(.appstore):not(.btn) { color: var(--teal-dark); text-underline-offset: 3px; }
.doc figure.device { width: min(100%, 420px); margin: 36px auto; }
.doc figcaption { margin-top: 12px; font-size: 14px; color: var(--text-2); text-align: center; }
.doc .note { margin: 28px 0; color: var(--text); }
.doc .meta { font-size: 14px; color: var(--text-2); }
.steps { list-style: none; counter-reset: step; margin: 20px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -1px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--teal-dark);
  border: 1px solid var(--rule); border-radius: 999px; padding: 3px 9px; background: #fff;
}
.sample { margin: 18px 0 24px; padding: 18px 20px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-wrap; overflow-x: auto; }
.table { width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.table th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); background: var(--paper-2); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.table td { color: var(--text-2); }
.cta { margin: 56px 0 0; padding: 28px; border-radius: 22px; background: var(--ink); color: var(--foam); }
.cta h2 { margin: 0 0 10px; color: #f2f7f8; }
.cta p { color: #c8d6da; }
.related { margin-top: 48px; }
.related ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.related li { margin: 0; border-bottom: 1px solid var(--rule); max-width: none; }
.related a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; font-weight: 600; color: var(--text) !important; }
.related a::after { content: "→"; color: var(--teal-dark); }
.guides { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.guides li { margin: 0; max-width: none; }
.guides a { display: block; padding: 20px 22px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; text-decoration: none; }
.guides a:hover { border-color: var(--teal-dark); }
.guides b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
.guides span { color: var(--text-2); font-size: 15px; }

/* Crew rest calculator on its guide page */
.restcalc { margin: 24px 0 8px; padding: 20px; border-radius: 22px; background: var(--ink); color: var(--foam); }
.restcalc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.restcalc label { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); }
.restcalc label:focus-within { border-color: var(--teal); }
.restcalc label.is-bad { border-color: #e0605c; }
.restcalc label > span { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); }
.restcalc input, .restcalc select { width: 100%; border: 0; background: transparent; padding: 0; color: #f2f7f8; font-family: var(--mono); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.restcalc input:focus, .restcalc select:focus { outline: none; }
.restcalc select option { color: var(--text); }
.restcalc .check { flex-direction: row; align-items: center; justify-content: space-between; grid-column: 1 / -1; }
.restcalc .check input { width: 22px; height: 22px; accent-color: var(--teal); }
.restcalc__out { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.restcalc__out p { margin: 0 0 8px; color: var(--mist) !important; font-size: 14px; }
.restcalc__out ol { list-style: none; margin: 0; padding: 0 !important; }
.restcalc__out li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; margin: 0; border-bottom: 1px solid #154550; color: var(--foam) !important; font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; max-width: none; }
.restcalc__out li span:first-child { flex: 1; display: flex; gap: 10px; align-items: baseline; }
.restcalc__out li span:first-child::after { content: ""; flex: 1; border-bottom: 2px dotted rgba(161, 181, 186, 0.35); transform: translateY(-4px); }
.restcalc__out li b { color: var(--teal); font-weight: 700; }
.restcalc__warn { color: #f4b860 !important; }
.doc .blocks { margin: 24px 0 10px; }
.doc .blocks-wrap { padding: 20px; border-radius: 22px; background: var(--ink); color: var(--foam); max-width: 500px; }
.doc .blocks-wrap .blocks { margin: 0; }
.doc .blocks-wrap p { color: var(--mist); margin: 10px 0 0; }

.foot__guides { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot__guides a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--mist); }
.foot__guides a:hover { color: var(--teal); }

@media (min-width: 861px) {
  .guides { grid-template-columns: 1fr 1fr; }
  .restcalc { padding: 26px; }
  .restcalc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
