/* Apsia — one stylesheet for every page.
   Structure mirrors an orbit: bands alternate shadow (black) and sunlight (day).
   Tokens first, then primitives, then components. No page-specific overrides here. */

/* Instrument Sans, served from this site (SIL OFL 1.1, assets/fonts/OFL.txt): no request to a third party, so a visitor's
   address never leaves for a font, and no extra connection before the first paint. Variable weight 400–700. */
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/instrument-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/instrument-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --shadow: #000000;
  --umbra: #0E1630;
  --umbra-2: #16213F;
  --day: #F2F5F9;
  --paper: #FFFFFF;
  --ink: #101418;
  --ink-2: #5B6470;
  --ink-3: #666F7B;                        /* 4.7:1 on --day, 5.1:1 on paper */
  --line: rgba(16, 20, 24, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --sun: #F2B441;
  --sun-deep: #D9961E;
  --dusk: #5DA9FF;
  --fault: #FF5A5F;
  --charge: #3DDC97;
  --white: #FFFFFF;
  --white-2: rgba(255, 255, 255, 0.72);
  --white-3: rgba(255, 255, 255, 0.5);

  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --r-ctl: 14px;
  --r-surface: 24px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --band-y: clamp(72px, 10vw, 140px);
  --shadow-float: 0 24px 60px rgba(8, 12, 30, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
/* a Spanish reader's page stays hidden until site.js has put its words in Spanish, within the same parse and before the first
   paint (the head script sets the class, site.js removes it); if the script never runs, the page shows anyway after 1.5 s */
html.es-wait body { visibility: hidden; animation: es-wait-end 0s linear 1.5s forwards; }
@keyframes es-wait-end { to { visibility: visible; } }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--shadow);
  padding-top: 64px;                       /* the fixed nav's place, held before site.js inserts it (no layout shift) */
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.measure { max-width: 42rem; }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 860px) {
  .grid.two, .grid.three, .grid.split { grid-template-columns: minmax(0, 1fr); }
}

.band { padding-top: var(--band-y); padding-bottom: var(--band-y); position: relative; }
.band.shadow { background: var(--shadow); color: var(--white); }
.band.day { background: var(--day); color: var(--ink); }
.band.paper { background: var(--paper); color: var(--ink); }
.band.tight { padding-top: calc(var(--band-y) * 0.6); padding-bottom: calc(var(--band-y) * 0.6); }
.band + .band.day, .band.day + .band.shadow { border-top: 0; }

/* ---------- type scale ---------- */
.display { font-size: clamp(44px, 8vw, 96px); letter-spacing: -0.035em; line-height: 0.98; font-weight: 600; }
.h1 { font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.025em; }
.h3 { font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.4; }
.small { font-size: 15px; line-height: 1.5; }
.muted { color: var(--ink-2); }
.band.shadow .muted { color: var(--white-2); }
.source { font-size: 14px; line-height: 1.45; color: var(--ink-3); margin-top: 14px; }
.band.shadow .source { color: var(--white-3); }
.source a { text-decoration: underline; text-underline-offset: 2px; }
.num { font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stack > * + * { margin-top: 1em; }
.stack.loose > * + * { margin-top: 1.6em; }
.title-gap { margin-bottom: clamp(28px, 4vw, 56px); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl);
  font-weight: 600; font-size: 16px; line-height: 1; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.sun { background: var(--sun); color: #1B1400; border-color: var(--sun); }
.btn.sun:hover { background: #F7C55E; border-color: #F7C55E; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn.ghost:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }
.band.day .btn.ghost:hover, .band.paper .btn.ghost:hover { background: rgba(16, 20, 24, 0.05); }
.btn.ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn.ink:hover { background: #22282F; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 15px; margin-bottom: 6px; color: var(--ink-2); }
.band.shadow .field > span { color: var(--white-2); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.band.shadow .input, .band.shadow .select, .band.shadow .textarea {
  background: var(--umbra); border-color: var(--line-dark); color: var(--white);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--sun); outline: none; }

/* ---------- header ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
  display: flex; align-items: center;
  background: rgba(0, 0, 0, 0.72); color: var(--white);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }
.nav-brand { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.nav-brand .brand-icon { width: 30px; height: 30px; flex: 0 0 auto; }
.foot .nav-brand .brand-icon { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { font-size: 15.5px; color: var(--white-2); padding: 6px 2px; border-bottom: 1.5px solid transparent; }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--sun); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 999px; overflow: hidden; }
.lang button { background: transparent; border: 0; color: var(--white-2); padding: 6px 12px; font-size: 14px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.nav-burger { display: none; background: transparent; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .2s ease, opacity .2s ease; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 6px;
    position: absolute; left: 0; right: 0; top: 64px; padding: 16px var(--gutter) 24px;
    background: rgba(0, 0, 0, 0.94); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav.open .nav-links a { font-size: 20px; padding: 10px 0; }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-right .btn { display: none; }
}

/* ---------- footer ---------- */
.foot { background: var(--shadow); color: var(--white-2); padding: 56px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4, .foot .foot-h { color: var(--white); font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.foot a { display: block; padding: 4px 0; color: var(--white-2); }
.foot a:hover { color: var(--white); }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--white-3); font-size: 14px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- hero ---------- */
.hero-pin { height: 210svh; position: relative; }
.hero { position: sticky; top: 0; height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: clip; }
@media (prefers-reduced-motion: reduce) { .hero-pin { height: auto; } .hero { position: relative; min-height: 100svh; height: auto; } }
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-canvas canvas { width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 1; padding-bottom: clamp(56px, 9vh, 120px); width: 100%; }
.hero-copy .display { max-width: 12ch; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.7); }
.hero-copy .lead { max-width: 34rem; margin-top: 22px; color: var(--white-2); text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7); }
.hero-copy .actions { margin-top: 30px; }
.hero-proof { margin: 20px 0 0; font-size: 14px; }
.hero-proof a { color: var(--white-2); text-decoration: none; border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8); }
.hero-proof a:hover, .hero-proof a:focus-visible { color: var(--white); border-bottom-color: var(--white-3); }
.hero-readout {
  position: absolute; right: var(--gutter); top: 96px; z-index: 1;
  font-size: 14px; color: var(--white-2); text-align: right; line-height: 1.45;
  /* the same glass as the header: readable on bright clouds as well as on the night side */
  padding: 12px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.hero-readout b { display: block; color: var(--white); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.hero-readout .state { color: var(--sun); }
.hero-readout .state.shadow { color: var(--dusk); }
@media (max-width: 720px) { .hero-readout { top: 80px; right: 16px; font-size: 13px; padding: 10px 12px; } .hero-readout b { font-size: 22px; } }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; color: var(--white-3); font-size: 13px; margin: 0; white-space: nowrap; transition: opacity .4s ease; }
.hero-scroll.gone { opacity: 0; }
@media (max-width: 720px) { .hero-scroll { display: none; } }

/* ---------- content components ---------- */
.questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.questions.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .questions.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); } }
@media (max-width: 640px) { .questions.four { grid-template-columns: 1fr; } }
.questions .q { border-top: 2px solid var(--ink); padding-top: 22px; }
.questions .q h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
.questions .q p { margin-top: 12px; color: var(--ink-2); }
@media (max-width: 860px) { .questions { grid-template-columns: 1fr; } }

.chart-band figure { margin: 0; }
.chart-band figcaption { margin-top: 16px; }
.chart {
  width: 100%; height: auto; border-radius: var(--r-surface);
  background: var(--umbra); padding: clamp(12px, 2vw, 24px);
}
.chart text { font-family: var(--font); font-size: 12px; fill: var(--white-2); }
.chart .axis { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.chart .grid-line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.chart .s-volt { stroke: #B98016; stroke-width: 2.2; fill: none; }
.chart .s-array { stroke: #3E86D9; stroke-width: 2; fill: none; }
.chart .s-current { stroke: #3E86D9; stroke-width: 1.6; fill: none; }
.chart .s-soc { stroke: #B98016; stroke-width: 2; fill: none; }
.chart .band-p { fill: rgba(62, 134, 217, 0.18); stroke: none; }
.chart .dot { fill: #B98016; opacity: 0.6; }
.chart .eclipse { fill: rgba(93, 169, 255, 0.12); }
.chart .reserve { stroke: var(--fault); stroke-dasharray: 4 4; stroke-width: 1.2; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--white-2); margin-top: 12px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.band.day .chart text { fill: var(--ink-2); }
.band.day .chart { background: var(--paper); border: 1px solid var(--line); }
.band.day .chart .axis { stroke: rgba(16, 20, 24, 0.18); }
.band.day .chart .grid-line { stroke: rgba(16, 20, 24, 0.06); }
.band.day .legend { color: var(--ink-2); }
.band.day .chart .s-volt { stroke: #B87A10; }
.band.day .chart .s-array, .band.day .chart .s-current { stroke: #2467C4; }
.band.day .chart .s-soc, .app .chart .s-soc { stroke: #B87A10; }
.band.day .chart .band-p, .app .chart .band-p { fill: rgba(36, 103, 196, 0.16); }
.band.day .chart .dot, .app .chart .dot { fill: #B87A10; }

.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.proof .p { border-top: 2px solid rgba(255, 255, 255, 0.25); padding-top: 20px; }
.proof .p .num { color: var(--sun); }
.proof .p p { margin-top: 10px; color: var(--white-2); }
.band.day .proof .p { border-top-color: rgba(16, 20, 24, 0.18); }
.band.day .proof .p .num { color: #B87A10; }
.band.day .proof .p p { color: var(--ink-2); }
.proof .p p.control { font-size: 14px; color: var(--white-3, rgba(255,255,255,.55)); margin-top: 6px; }
.band.day .proof .p p.control { color: var(--ink-3, #6b7178); }
/* proof: Apsia against the usual method, two bars from zero on the card's own scale */
.proof .cmp { display: grid; gap: 10px; margin-top: 18px; }
.proof .p p.cmp-title { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.proof .cmp-title + .cmp { margin-top: 8px; }
.proof .cmp-name { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.proof .cmp-name b { font-weight: 600; color: var(--ink-2); }
.proof .cmp-row.ours .cmp-name, .proof .cmp-row.ours .cmp-name b { color: var(--ink); }
.proof .cmp-bar { position: relative; height: 6px; margin-top: 5px; border-radius: 3px; background: rgba(16, 20, 24, 0.07); }
.proof .cmp-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: #A3ABB6; }
.proof .cmp-row.ours .cmp-bar i { background: #B87A10; }
.proof .p p.ratio { margin-top: 12px; font-size: 15px; font-weight: 600; color: #8A5B0C; }
.band.shadow .proof .cmp-name, .band.shadow .proof .cmp-name b { color: var(--white-2); }
.band.shadow .proof .cmp-row.ours .cmp-name, .band.shadow .proof .cmp-row.ours .cmp-name b { color: var(--white); }
.band.shadow .proof .cmp-bar { background: rgba(255, 255, 255, 0.1); }
.band.shadow .proof .p p.ratio { color: var(--sun); }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }

.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 64px); }
.who .w h3 { font-size: 24px; }
.who .w p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 720px) { .who { grid-template-columns: 1fr; } }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.doors .d { background: var(--umbra); border-radius: var(--r-surface); padding: 28px; min-height: 220px; display: flex; flex-direction: column; }
.doors .d h3 { font-size: 22px; }
.doors .d p { margin-top: 10px; color: var(--white-2); }
.doors .d .when { margin-top: auto; padding-top: 18px; color: var(--sun); font-size: 15px; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-surface); padding: 28px 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--ink); }
.plan h3 { font-size: 22px; }
.plan .price { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin-top: 14px; line-height: 1.05; }
.plan .price small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-top: 6px; }
.plan ul { margin: 18px 0 24px; padding-left: 18px; color: var(--ink-2); }
.plan li { margin: 6px 0; }
.plan .btn { margin-top: auto; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.others-h { margin: 56px 0 18px; }
.plans.others .plan { background: transparent; }
.plans.others .plan .price { font-size: 24px; }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-2); }

.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 2.2em; margin-bottom: .5em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; margin-bottom: .4em; }
.prose p, .prose li { color: var(--ink-2); }
.band.shadow .prose p, .band.shadow .prose li { color: var(--white-2); }
.prose ul, .prose ol { padding-left: 22px; }
/* a disclosure for the detail behind a short answer (product, docs) */
details.more { margin-top: 20px; max-width: 40rem; }
details.more summary { cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-left: 2px; }
details.more[open] summary::before { transform: rotate(45deg); }
details.more > ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
details.more > ul li { margin: 6px 0; }
.prose details.more { max-width: none; }
.prose details.more[open] { padding-bottom: 8px; }
.band.shadow details.more summary { color: var(--white); }
.band.shadow details.more ul, .band.shadow details.more p { color: var(--white-2); }
.prose p.lede { font-size: 19px; color: var(--ink); }

.prose li { margin: .35em 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; background: rgba(16, 20, 24, 0.06); padding: 2px 6px; border-radius: 6px; }
.band.shadow .prose code { background: rgba(255, 255, 255, 0.1); }
.prose pre { background: var(--umbra); color: var(--white); border-radius: 16px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* ---------- app ---------- */
.app { min-height: calc(100svh - 64px); background: var(--day); color: var(--ink); }
.app-head { padding-top: 36px; padding-bottom: 20px; }          /* top and bottom only: the sides keep the .wrap gutter */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; flex: 0 0 auto; }
.tabs button {
  background: transparent; border: 0; padding: 12px 16px; font-size: 16px; font-weight: 600;
  color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.app-body { padding: 28px 0 80px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-surface); padding: clamp(20px, 3vw, 32px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 24px; }
.panel .sub { color: var(--ink-2); margin-top: 6px; }
.drop {
  display: block; margin-top: 20px; border: 2px dashed rgba(16, 20, 24, 0.22); border-radius: 18px;
  padding: 40px 24px; text-align: center; color: var(--ink-2); cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease;
}
.drop:hover, .drop.over { border-color: var(--sun-deep); background: rgba(242, 180, 65, 0.08); }
.drop b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.drop input { display: none; }
.status { margin-top: 16px; font-size: 15px; color: var(--ink-2); min-height: 1.4em; }
.status.error { color: #B3261E; }
.status.ok { color: #1E7F58; }
.report { margin-top: 24px; }
.report .headline { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 20px; }
.kpi { border-top: 2px solid var(--ink); padding-top: 12px; }
.kpi b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.kpi span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.kpi .range { font-size: 13px; color: var(--ink-3); }
.findings { margin-top: 24px; }
.finding { display: grid; grid-template-columns: 10px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.finding i { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; background: var(--ink-3); }
.finding.warn i { background: var(--sun-deep); }
.finding.fault i { background: var(--fault); }
.finding.ok i { background: var(--charge); }
.finding p { margin: 0; }
.finding .because { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; margin-top: 18px; }
.form-grid .field > span { min-height: 2.7em; display: flex; align-items: flex-end; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 18px; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.table td.num, .table th.num { text-align: right; font-size: inherit; font-weight: inherit; letter-spacing: 0; line-height: inherit; }
.table th.num { font-weight: 600; }
.table td .because { display: block; white-space: normal; font-size: 13px; color: var(--ink-2); max-width: 320px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag.ok { background: rgba(61, 220, 151, 0.18); color: #146B47; }
.tag.no { background: rgba(255, 90, 95, 0.16); color: #A3252A; }
.tag.warn { background: rgba(242, 180, 65, 0.22); color: #7A5200; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.compare .side { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.compare .side h4 { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.compare .side .row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.compare .side .row b { font-weight: 600; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.assumptions { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.assumptions summary { cursor: pointer; }
.note { background: rgba(242, 180, 65, 0.14); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-top: 16px; }

/* ---- app: mapping step (check the columns) ---- */
.mapping { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.mapping .map-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 6px; }
.mapping .map-head h3 { margin: 0; font-size: 20px; }
.mapping .map-why { font-size: 13px; color: var(--ink-2); white-space: normal; max-width: 360px; }
.mapping .map-table td { vertical-align: middle; }
.mapping .map-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.mapping .map-sample { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-2); max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.mapping .select.small { padding: 6px 30px 6px 10px; font-size: 14px; min-width: 150px; }
.mapping .map-opts { margin-top: 14px; }
.mapping .map-opts .field { margin-bottom: 8px; }
.mapping .map-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.mapping .map-facts .warn-text { color: #7A5200; }
.mapping .map-note { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.mapping .chart-wrap { margin-top: 14px; }
.mapping .status { margin-top: 10px; }

.orbit-src { display: inline-block; font-size: 13px; color: #1E7F58; margin-top: 4px; }
.orbit-src.bad { color: #B3261E; }

.glossary { margin: 8px 0 0; }
.glossary dt { font-weight: 600; margin-top: 14px; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); max-width: 72ch; }

/* array health */
.array{margin-top:14px}
.panels{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin:6px 0 2px}
.panels .panel + .panel{margin-top:0}            /* chips, not the app's big panels */
.panel{font-size:.86rem;padding:6px 10px;border-radius:8px;border:1px solid var(--line)}
.panel.bad{border-color:#d63b3b;color:#b42323}
.panel.warn{border-color:#c98a10;color:#8a5a00}
.panel.ok{opacity:.8}

/* app: compact findings, save control, fleet */
.finding .why { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.finding .why.open { color: var(--ink); }
.finding .because[hidden] { display: none; }
.save { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.save .save-label { font-size: 14px; color: var(--ink-2); }
.save .select, .save .input { width: auto; max-width: 280px; }
.save .status { margin: 0; }
.input.small, .select.small { min-height: 38px; padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.select.small { padding-right: 30px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sat-head .headline { margin-bottom: 4px; }
.rules { margin-top: 8px; }
.rule { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rule .x { background: none; border: 0; color: var(--ink-3); font-size: 18px; cursor: pointer; padding: 2px 8px; line-height: 1; margin-left: auto; }
.map-more { margin-top: 8px; }
.map-more summary { font-size: 14px; }

/* ---- app: result first ---- */
.formbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 14px; color: var(--ink-2); }
.formbar .sum { flex: 1 1 auto; }
.whatif { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 14px 0 4px; padding: 10px 14px; border-radius: 12px; background: rgba(16, 20, 24, 0.04); font-size: 14px; }
.whatif .lbl { color: var(--ink-3); font-weight: 600; }
.whatif .wi { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.whatif .wi b { color: var(--ink); min-width: 4.5ch; font-variant-numeric: tabular-nums; }
.whatif input[type=range] { width: 140px; accent-color: var(--sun-deep, #B87A10); }
.report.updating .headline, .report.updating .kpis { opacity: .45; transition: opacity .2s; }
@media (max-width: 640px) { .whatif { gap: 10px; } .whatif input[type=range] { width: 110px; } }
.connector .grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; margin-top: 10px; }
.connector .grid-form .field { margin: 0; }
.connector .grid-form textarea { min-height: 54px; }

.check-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-2); cursor: pointer; width: fit-content; }
.check-line input { accent-color: var(--ink); margin: 0; }

/* ---- app: connect a satellite, step by step (the integration a customer sees first) ---- */
.guide { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide > h3 { font-size: 22px; letter-spacing: -0.01em; }
.gsteps { list-style: none; margin: 20px 0 0; padding: 0; }
.gstep { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 16px; position: relative; padding-bottom: 24px; }
.gstep::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.gstep:last-child::before { display: none; }
.gmark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums;
  border: 2px solid var(--ink-3); color: var(--ink-2); background: var(--paper); position: relative; z-index: 1; }
.gstep.current .gmark { border-color: var(--ink); color: var(--white); background: var(--ink); }
.gstep.done .gmark { border-color: #1E7F58; color: var(--white); background: #1E7F58; }
.gstep.done::before { background: #1E7F58; }
.gbody { min-width: 0; padding-top: 5px; }
.gbody h4 { font-size: 17px; margin: 0 0 4px; }
.gstep.todo .gbody > h4 { color: var(--ink-2); }
.gbody h5 { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 18px 0 6px; }
.gbody > .btn, .gbody .pane > .btn { margin-top: 12px; }
.gbody .status { margin-top: 10px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; cursor: pointer; background: var(--paper); transition: border-color .12s ease; }
.choice:hover { border-color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:focus-within { outline: 2px solid var(--sun-deep); outline-offset: 2px; }
.choice input { margin: 3px 0 0; accent-color: var(--ink); }
.choice-text b { display: block; font-size: 15px; }
.choice-text span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.pane { margin-top: 14px; }
.keyline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.keyline code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--day); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; overflow-wrap: anywhere; }
.keyline .btn { margin: 0; }
.code-wrap { background: var(--umbra); border-radius: 12px; overflow: hidden; }
.code-bar { display: flex; justify-content: flex-end; padding: 8px 8px 0; }
.code-bar .copy { margin: 0; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.code-wrap pre.code { margin: 0; background: transparent; color: #E8ECF4; padding: 2px 16px 14px;
  font: 13px/1.55 ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto; white-space: pre; }
.code-wrap pre.code:focus-visible { outline: 2px solid var(--sun); outline-offset: -2px; }
.guide .inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 10px; }
.guide .inline .field { margin: 0; flex: 1 1 240px; max-width: 380px; }
@media (max-width: 640px) {
  .gstep { grid-template-columns: 28px minmax(0, 1fr); gap: 0 12px; }
  .gmark { width: 28px; height: 28px; font-size: 13px; }
  .gstep::before { left: 13px; top: 28px; }
}

/* ---- app: one result, read from its first line (status · three figures · one action · detail) ---- */
.status-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status-line .chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.status-line .chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.chip.ok { background: rgba(61, 220, 151, 0.18); color: #146B47; }
.chip.watch { background: rgba(242, 180, 65, 0.24); color: #7A5200; }
.chip.act { background: rgba(255, 90, 95, 0.16); color: #A3252A; }
.chip.none { background: rgba(16, 20, 24, 0.07); color: var(--ink-2); }
.status-line .say { margin: 0; flex: 1 1 320px; font-size: clamp(21px, 2.5vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.22; }
.tagline { margin: 10px 0 0; font-size: 14px; color: #7A5200; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .kpis.three { grid-template-columns: 1fr; gap: 12px; } .kpis.three .kpi b { font-size: 24px; } }
.subsys { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.subsys span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--charge); vertical-align: 1px; }
.subsys .watch::before { background: var(--sun-deep); }
.subsys .act::before { background: var(--fault); }
.act-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
/* a plan that cannot run as asked says why next to the button pressed, with the one action that fixes it */
.plan-notice { margin: 16px 0 4px; padding: 14px 16px; border-radius: 14px; background: #FFF4DE; color: #4A3700; font-size: 16px; line-height: 1.45; }
.plan-notice p { margin: 0; }
.plan-notice .btn { margin-top: 12px; }
.plan-notice.error { background: #FDECEA; color: #7A1A12; }
details.detail { margin-top: 26px; border-top: 1px solid var(--line); }
details.detail > summary { cursor: pointer; padding: 14px 0 6px; font-weight: 600; font-size: 16px; list-style: none; }
details.detail > summary::-webkit-details-marker { display: none; }
details.detail > summary::before { content: "▸"; display: inline-block; width: 1.2em; color: var(--ink-3); }
details.detail[open] > summary::before { content: "▾"; }
@media print { details.detail > summary { display: none; } .act-row { display: none; } }
/* where a forecast input comes from: the satellite's own telemetry, a default, or the user's hand */
.field .origin { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.field .origin.telemetry { color: #146B47; }
.field .origin.edited { color: var(--ink-2); }
.field .origin[hidden] { display: none; }

/* ---------- app results in motion: blocks rise in turn, figures count up, lines draw (none for reduced motion) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.report .rise { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .report .rise { animation: none; } }
/* the battery's capacity on one bar: today with its range, the end-of-life line */
.capbar { margin: 44px 0 6px; }
.capbar-track { position: relative; height: 18px; border-radius: 9px; background: var(--day); border: 1px solid var(--line); overflow: visible; }
.capbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 9px; background: var(--charge); transform-origin: 0 50%; }
.capbar.watch .capbar-fill { background: var(--sun-deep); }
.capbar.act .capbar-fill { background: var(--fault); }
.capbar-band { position: absolute; bottom: -9px; height: 4px; border-radius: 2px; background: rgba(16, 20, 24, .32); }     /* the p10–p90 range, under the bar */
.capbar-thr { position: absolute; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; background: var(--ink); }
.capbar-now { position: absolute; top: -30px; transform: translateX(-50%); font-weight: 600; font-size: 15px; white-space: nowrap; }
.capbar-thr-label { position: absolute; top: 28px; transform: translateX(-50%); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.capbar-scale { position: relative; height: 16px; font-size: 12px; color: var(--ink-3); margin-top: 30px; }
.capbar-scale span { position: absolute; top: 0; white-space: nowrap; }
.capbar-lo { left: 0; }
.capbar-nom { right: 0; }
.capbar-nom.mid { right: auto; transform: translateX(-50%); }
.capbar-tick { position: absolute; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: rgba(16, 20, 24, .28); }     /* 100 % of nominal, inside the track */
.capbar-note { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
/* the mission's own end of life (the forecast): its capacity in amber with its range, the usual 80 % in grey */
.mission { margin: 30px 0 10px; }
.mission-head { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.mission-head.act { color: var(--fault); }
.mission-line { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.mission-bar { margin: 46px 0 10px; }
.mission-thr { width: 3px; margin-left: -1.5px; background: var(--sun-deep); }
.mission-band { background: rgba(185, 128, 22, .5); }
.mission-label { color: var(--ink); font-weight: 600; }
.usual-thr { background: var(--ink-3); opacity: .55; }
.usual-label { color: var(--ink-3); }
.usual-label.above { top: -30px; }
/* the mission database's own words under a column's name, and the file's name once added */
.map-name .map-db { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); white-space: normal; }
.db-name { color: var(--ink-2); font-weight: 600; }
.db-name.warn-text { color: #7A5200; font-weight: 400; }
@keyframes capfill { from { transform: scaleX(0); } }

/* a span the chart names (the lowest orbit, a task that does not fit) */
.chart .note-span { fill: rgba(242, 180, 65, 0.16); stroke: none; }
.chart .note-span.bad { fill: rgba(255, 90, 95, 0.12); }
.chart .note-label { font-size: 12px; font-weight: 600; fill: #8a5a00; }
.chart .note-label.bad { fill: #b42323; }
/* the first drawing: lines draw in (script), the rest fades in after them */
@keyframes chartfade { from { opacity: 0; } }
.chart.drawing .band-p, .chart.drawing .dot, .chart.drawing .note-span, .chart.drawing .note-label { animation: chartfade .9s ease .5s both; }
@media (prefers-reduced-motion: reduce) { .chart.drawing .band-p, .chart.drawing .dot, .chart.drawing .note-span, .chart.drawing .note-label { animation: none; } }
/* the plan's tasks on the chart's time axis */
.chart .task rect { fill: #2c9d6b; }
.chart .task.risk rect { fill: #d9961e; }
.chart .task.nofit rect { fill: #d63b3b; }
.chart .task.moved rect { fill: #d9961e; }
.chart .task.dropped rect { fill: none; stroke: #8a929c; stroke-dasharray: 3 3; }
.chart .task.unknown rect { fill: #a7b0ba; }
.chart .task text { font-size: 11px; font-weight: 600; fill: #fff; }
.chart .task text.outside, .chart .task.dropped text { fill: var(--ink-2); }
.chart.drawing .task { animation: chartfade .6s ease .4s both; }
@media (prefers-reduced-motion: reduce) { .chart.drawing .task { animation: none; } }
/* a verdict and its reasons, one chip each */
.verdict-why { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.verdict-why .why-chip { font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--day); border: 1px solid var(--line); color: var(--ink-2); }
/* the disposal on one line: green until the last safe start, red to the deadline */
.eolbar { margin: 64px 0 56px; }
.eolbar-track { position: relative; height: 12px; border-radius: 6px; background: var(--day); border: 1px solid var(--line); }
.eolbar-ok, .eolbar-no { position: absolute; top: 0; bottom: 0; transform-origin: 0 50%; }
.eolbar-ok { background: var(--charge); border-radius: 6px 0 0 6px; }
.eolbar-no { background: var(--fault); opacity: .75; border-radius: 0 6px 6px 0; }
.eolbar-mark { position: absolute; transform: translateX(-50%); bottom: 18px; text-align: center; white-space: nowrap; font-size: 12px; color: var(--ink-2); }
.eolbar-mark.below { bottom: auto; top: 18px; }
.eolbar-mark b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.eolbar-mark::after { content: ""; position: absolute; left: 50%; width: 2px; height: 10px; margin-left: -1px; background: var(--ink); }
.eolbar-mark::after { top: 100%; }
.eolbar-mark.below::after { top: auto; bottom: 100%; }
.eolbar-mark.dead b { color: var(--fault); }
.eolbar-mark.edge-l { transform: none; text-align: left; margin-left: -1px; }
.eolbar-mark.edge-r { transform: translateX(-100%); text-align: right; margin-left: 1px; }
.eolbar-mark.edge-l::after { left: 0; margin-left: 0; }
.eolbar-mark.edge-r::after { left: auto; right: 0; margin-left: 0; }
.eolbar-note { margin: 44px 0 0; font-size: 15px; }
.eolbar-note.bad { color: #b42323; }
/* bars fill when seen (script: whenSeen); printed, they are always full */
.await-seen:not(.seen) .capbar-fill, .await-seen:not(.seen) .eolbar-ok, .await-seen:not(.seen) .eolbar-no { transform: scaleX(0); }
.seen .capbar-fill { animation: capfill 1.1s cubic-bezier(.2,.8,.2,1) .1s both; }
.seen .eolbar-ok, .seen .eolbar-no { animation: capfill 1s cubic-bezier(.2,.8,.2,1) .1s both; }
.seen .eolbar-no { animation-delay: .8s; }
@media print { .await-seen .capbar-fill, .await-seen .eolbar-ok, .await-seen .eolbar-no { transform: none !important; animation: none !important; } }

/* ---- app: pilot (the checklist of an operator the team invited, its five questions and its letter) ---- */
.pilot-bar { margin: 22px 0 0; padding: 18px 20px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-surface); }
.pilot-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.pilot-head > span:first-child { flex: 1 1 auto; font-size: 17px; }
.pilot-count { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.pilot-progress { height: 8px; border-radius: 999px; background: rgba(16, 20, 24, 0.08); overflow: hidden; margin: 12px 0 16px; }
.pilot-progress i { display: block; height: 100%; width: 0; border-radius: 999px; background: #1E7F58; transition: width .4s ease; }
@media (prefers-reduced-motion: reduce) { .pilot-progress i { transition: none; } }
.pilot-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pilot-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.pilot-steps li.next { border-color: var(--ink); }
.pilot-steps li.done { background: rgba(61, 220, 151, 0.1); border-color: rgba(30, 127, 88, 0.35); }
.pilot-steps b { font-size: 16px; line-height: 1.25; }
.pilot-steps .help { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pilot-steps .btn { margin-top: auto; }
.pilot-steps li .help + .btn { margin-top: 8px; }
.pilot-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 600; border: 1.5px solid var(--ink-3); color: var(--ink-2); }
.pilot-steps li.next .pilot-mark { border-color: var(--ink); color: var(--ink); }
.pilot-steps li.done .pilot-mark { background: #1E7F58; border-color: #1E7F58; color: #fff; }
@media (max-width: 900px) { .pilot-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pilot-steps { grid-template-columns: minmax(0, 1fr); } }
.pilot-dlg { border: 1px solid var(--line); border-radius: var(--r-surface); padding: clamp(20px, 3vw, 30px); max-width: 560px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); }
.pilot-dlg::backdrop { background: rgba(8, 12, 30, 0.55); }
.pilot-dlg h2 { font-size: 24px; }
.pilot-dlg .sub { color: var(--ink-2); margin: 6px 0 18px; }
.pilot-dlg fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.pilot-dlg legend { padding: 0; margin-bottom: 8px; font-size: 15px; color: var(--ink-2); }
.pilot-radios { display: flex; gap: 6px 22px; flex-wrap: wrap; margin-bottom: 10px; }
.pilot-radios .check-line { margin-top: 0; font-size: 16px; color: var(--ink); }
.pilot-dlg .check-line { font-size: 15px; margin: 4px 0 16px; }
.pilot-dlg .actions { margin-top: 18px; }
@media print { .pilot-bar, .pilot-dlg { display: none !important; } }

/* shared by the product, GEO and MEO and defence pages: numbered steps (a dark band) and a grid of facts (either band) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 22px; }
.steps li::before { content: counter(s); display: block; font-size: 15px; font-weight: 600; color: var(--sun); margin-bottom: 14px; }
.steps h3 { font-size: 24px; letter-spacing: -0.02em; }
.steps p { margin-top: 10px; color: var(--white-2); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 56px); }
.facts div { border-top: 2px solid var(--ink); padding-top: 18px; }
.facts h3 { font-size: 20px; letter-spacing: -0.015em; }
.facts p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.band.shadow .facts div { border-top-color: rgba(255, 255, 255, .25); }
.band.shadow .facts p { color: var(--white-2); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } }
