/* EOJN Radar
   Paper, ink and a highlighter: the page borrows its look from tender
   documentation. Amber is reserved for the highlighter, teal for evidence. */

:root {
  --ink: #0B2545;
  --ink-2: #13315C;
  --ink-deep: #081B33;
  --teal: #13808B;
  --teal-ink: #0E6770;
  --teal-wash: #DCEEF0;
  --amber: #E8A33D;
  --amber-wash: #FBE3BC;
  --amber-ink: #6B4710;
  --desk: #EEF4F6;
  --paper: #FFFFFF;
  --text: #1F2933;
  --muted: #5B6770;
  --rule: #D3DEE3;
  --rule-strong: #B5C5CD;
  --hard: #9A3412;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-ink); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4rem); line-height: 1.06; }
h2 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.625rem); line-height: 1.12; }
h3 { font-size: 1.0625rem; font-weight: 650; line-height: 1.35; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: 4px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border-radius: 4px; border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--ink-2); }
.btn--outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #F1B358; }
.btn--small { min-height: 40px; padding: 0 1rem; font-size: .9375rem; }
.btn--block { width: 100%; }

.textlink {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-underline-offset .2s var(--ease), color .2s;
}
.textlink:hover { color: var(--teal-ink); text-underline-offset: 3px; }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.masthead.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(11, 37, 69, .5); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.125rem/1 var(--sans); letter-spacing: -.01em; }
.wordmark__mark { width: 28px; height: 28px; color: var(--teal); }
.wordmark--light { color: #fff; }
.mainnav { display: flex; align-items: center; gap: 28px; }
.mainnav a:not(.btn) {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .9375rem;
  padding: 6px 0; background: linear-gradient(var(--teal), var(--teal)) 0 100% / 0 2px no-repeat;
  transition: background-size .25s var(--ease), color .2s;
}
.mainnav a:not(.btn):hover { color: var(--ink); background-size: 100% 2px; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; font: 600 .9375rem var(--sans); color: var(--ink); cursor: pointer; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .mainnav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule);
    padding: 4px var(--gutter) 20px;
    box-shadow: 0 20px 30px -24px rgba(11, 37, 69, .45);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .mainnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .mainnav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); background: none; font-size: 1rem; }
  .mainnav .btn { margin-top: 16px; min-height: 48px; }
}

/* Hero */
.hero {
  background: var(--desk);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
  border-bottom: 3px solid var(--amber);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--text); max-width: 34em; margin: 28px 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__facts { list-style: none; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .875rem; line-height: 1.45; color: var(--muted); }
.hero__facts li { padding: 0 16px; border-left: 1px solid var(--rule-strong); }
.hero__facts li:first-child { padding-left: 0; border-left: 0; }

/* The document */
.doc { margin: 0; position: relative; }
.doc__sheet {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 176px; column-gap: 28px;
  background: var(--paper);
  padding: 34px 32px 26px 44px;
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule), 0 2px 4px rgba(11, 37, 69, .04), 0 28px 60px -30px rgba(11, 37, 69, .38);
  font-family: var(--serif);
  font-size: .96875rem;
  line-height: 1.62;
  color: #2B3640;
}
/* the sheet underneath */
.doc__sheet::before {
  content: ""; position: absolute; inset: 12px -10px -12px 10px; z-index: -1;
  background: #F9FBFC; border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule), 0 20px 40px -28px rgba(11, 37, 69, .35);
}
.doc { isolation: isolate; }
/* margin rule, where the system writes */
.doc__sheet::after { content: ""; position: absolute; top: 76px; bottom: 54px; right: calc(32px + 176px + 14px); width: 1px; background: var(--rule); }
.doc__head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); font: 500 .75rem/1.4 var(--sans); color: var(--muted); }
.doc__head span:last-child { text-align: right; }
.doc__section { grid-column: 1; font: 650 1.0625rem/1.4 var(--serif); color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.doc__p { grid-column: 1; margin: 0 0 14px; }
.doc__p--quiet { color: #8A959D; }
.doc__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rule); font: 500 .75rem var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.doc figcaption { margin-top: 26px; font-size: .8125rem; color: var(--muted); max-width: 46em; }

.hl { color: inherit; background-color: transparent; background-repeat: no-repeat; background-position: 0 0; background-size: 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 1px 2px; margin: 0 -2px; border-radius: 2px; }
.hl--hard { background-image: linear-gradient(rgba(232, 163, 61, .42), rgba(232, 163, 61, .42)); color: #1F2933; }
.hl--option { background-image: linear-gradient(var(--teal-wash), var(--teal-wash)); }

.note { grid-column: 2; align-self: start; margin: 2px 0 14px; padding: 10px 12px 10px 14px; font: 400 .8125rem/1.45 var(--sans); color: var(--text); border-left: 3px solid; background: #fff; }
.note p { margin: 0; }
.note__title { font-weight: 700; color: var(--ink); margin-bottom: 2px !important; }
.note__src { margin-top: 6px !important; font-weight: 600; font-size: .75rem; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.note--hard { border-color: var(--amber); background: #FFF8EC; }
.note--option { border-color: var(--teal); background: #F2F9FA; }

/* Hero sequence: highlight, then the system's note. Runs once, when visible. */
.js .doc:not(.is-live) .hl { background-size: 0% 100%; }
.js .doc:not(.is-live) .note { opacity: 0; transform: translateX(10px); }
.js .doc.is-live .hl { animation: sweep 1s var(--ease) both; }
.js .doc.is-live .hl--hard { animation-delay: .35s; }
.js .doc.is-live .note--hard { animation: note-in .6s var(--ease) 1.25s both; }
.js .doc.is-live .hl--option { animation-delay: 2.05s; }
.js .doc.is-live .note--option { animation: note-in .6s var(--ease) 2.95s both; }
@keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes note-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* Sections */
.block { padding: clamp(72px, 10vw, 128px) 0; }
.block--tight { padding: clamp(48px, 6vw, 72px) 0; }
.block--desk { background: var(--desk); }
.block--ink { background: var(--ink); color: #C9D6DF; }
.block--ink h2, .block--ink h3 { color: #fff; }
.block__intro { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.block__intro p { margin: 18px 0 0; font-size: 1.125rem; color: var(--muted); }
.block__lead { font-size: 1.125rem; color: var(--muted); margin: 18px 0 0; max-width: 34em; }
.block--ink .block__lead { color: #A9BACA; }

/* Ranked table */
.ledger-table { border-top: 2px solid var(--ink); overflow-x: auto; }
.ranked { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ranked th { text-align: left; font-weight: 600; font-size: .8125rem; color: var(--muted); padding: 14px 20px 12px 0; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
.ranked td { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ranked td:nth-child(1) { width: 84px; }
.ranked td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.ranked td:nth-child(4) { width: 34%; }
.ranked strong { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; }
.ranked .sub { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.ranked__muted td { color: var(--muted); }
.ranked__muted strong { color: var(--muted); font-weight: 500; }
.score { display: inline-block; min-width: 44px; padding-bottom: 4px; font: 600 1.625rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; border-bottom: 3px solid; }
.score--high { border-color: var(--teal); }
.score--mid { border-color: #7DB1B7; }
.score--low { border-color: #C3CED4; color: var(--muted); }
.flag { display: inline-block; position: relative; padding-left: 16px; line-height: 1.45; color: var(--text); }
.flag::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: #C3CED4; }
.flag--change::before { background: var(--amber); }
.flag--hard { color: var(--hard); font-weight: 600; }
.flag--hard::before { background: var(--hard); }
.flag--option::before { background: var(--teal); }
.flag del { color: var(--muted); text-decoration-thickness: 1.5px; }
.footnote { margin: 18px 0 0; font-size: .8125rem; color: var(--muted); }

@media (max-width: 760px) {
  .ledger-table { overflow: visible; }
  .ranked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ranked, .ranked tbody { display: block; }
  .ranked tr { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .ranked td { display: block; padding: 0; border: 0; width: auto !important; }
  .ranked td:nth-child(1) { grid-row: 1 / span 3; }
  .ranked td:nth-child(3) { margin-top: 8px; font-size: .875rem; }
  .ranked td:nth-child(3)::before { content: "Rok za ponude: "; color: var(--muted); }
  .ranked td:nth-child(4) { margin-top: 6px; font-size: .875rem; }
}

/* Before / after ledger */
.compare { border-top: 2px solid var(--ink); }
.compare__row { display: grid; grid-template-columns: minmax(150px, .7fr) 1fr 1fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--rule-strong); }
.compare__row--head { padding: 14px 0 12px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.compare__row--head span:last-child { color: var(--teal-ink); }
.compare__task { font: 600 1.1875rem/1.35 var(--serif); color: var(--ink); }
.compare__row > span:nth-child(2) { color: var(--muted); }
.compare__row:not(.compare__row--head) > span:nth-child(3) { color: var(--ink); font-weight: 500; padding-left: 20px; border-left: 3px solid var(--teal); }

@media (max-width: 760px) {
  .compare__row--head { display: none; }
  .compare__row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .compare__row > span:nth-child(2)::before,
  .compare__row > span:nth-child(3)::before { display: block; font: 600 .75rem var(--sans); margin-bottom: 2px; }
  .compare__row > span:nth-child(2)::before { content: "Danas"; color: var(--muted); }
  .compare__row > span:nth-child(3)::before { content: "S EOJN Radarom"; color: var(--teal-ink); }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: var(--rule-strong); }
.steps__item { counter-increment: step; position: relative; }
.steps__item::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 24px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--teal); color: var(--teal-ink);
  font: 600 1.25rem/1 var(--serif); position: relative;
}
.steps__item h3 { font-size: 1.125rem; margin-bottom: 8px; }
.steps__item p { margin: 0; color: var(--muted); font-size: .96875rem; }
.steps__after { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); font: 500 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.35 var(--serif); color: var(--ink); }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .steps__item::before { grid-row: 1 / span 2; margin: 0; }
  .steps__item:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 0; width: 1px; background: var(--rule-strong); }
}

/* Analysis */
.analysis-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.principles { margin: 40px 0 0; }
.principles > div { padding: 18px 0; border-top: 1px solid var(--rule-strong); }
.principles dt { font: 600 1.1875rem/1.35 var(--serif); color: var(--ink); }
.principles dd { margin: 6px 0 0; color: var(--muted); }

.report { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 28px 60px -36px rgba(11, 37, 69, .4); }
.report__head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.report__title { font: 600 1.1875rem/1.3 var(--serif); }
.report__meta { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }
.report__score { flex: none; text-align: right; color: var(--ink); }
.report__score span { font: 600 3rem/1 var(--serif); font-variant-numeric: lining-nums; }
.report__score small { font-size: .875rem; color: var(--muted); margin-left: 2px; }
.report__alert { margin: 20px 0; padding: 12px 14px; background: #FFF6E8; border-left: 3px solid var(--amber); color: var(--amber-ink); font-size: .9063rem; line-height: 1.5; }
.report__alert strong { color: var(--hard); }
.cite { display: inline-block; font: 600 .75rem/1.4 var(--sans); color: var(--teal-ink); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cite:hover { text-decoration-style: solid; }
.meters { margin: 0; display: grid; gap: 14px; }
.meters__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.meters dt { font-size: .875rem; }
.meters dd { margin: 0; display: flex; align-items: center; gap: 12px; }
.meters b { width: 24px; text-align: right; font-weight: 600; color: var(--ink); font-size: .875rem; font-variant-numeric: tabular-nums; }
.meter { width: 150px; height: 6px; background: var(--desk); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--teal); transform-origin: 0 50%; transform: scaleX(var(--v)); transition: transform 1.1s var(--ease); }
.meter--warn i { background: var(--amber); }
.js .report:not(.is-live) .meter i { transform: scaleX(0); }
.meters__row:nth-child(2) .meter i { transition-delay: .1s; }
.meters__row:nth-child(3) .meter i { transition-delay: .2s; }
.meters__row:nth-child(4) .meter i { transition-delay: .3s; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--rule); font-size: .875rem; }
.checks li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.status { position: relative; padding-left: 14px; font-weight: 600; font-size: .8125rem; }
.status::before { content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 8px; border-radius: 50%; }
.status--ok { color: var(--teal-ink); }
.status--ok::before { background: var(--teal); }
.status--unknown { color: var(--muted); }
.status--unknown::before { background: transparent; border: 1.5px solid var(--muted); }
.status--option { color: var(--amber-ink); }
.status--option::before { background: var(--amber); }
.report__note { margin: 14px 0 0; font-size: .75rem; color: var(--muted); }

@media (max-width: 960px) {
  .analysis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .meters__row { grid-template-columns: 1fr; gap: 6px; }
  .meter { flex: 1; width: auto; }
  .checks li { grid-template-columns: 1fr; gap: 2px; }
}

/* Photos */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; filter: saturate(.82) contrast(1.03); }

/* Audience */
.audience { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.roles { margin-top: 36px; }
.roles__item { padding: 20px 0; border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 32px; }
.roles__item p { margin: 0; color: var(--muted); }

/* Control */
.control { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.control__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.control__lists h3 { font-size: 1rem; margin-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid #6FC3CC; border-bottom: 2px solid #6FC3CC; transform: rotate(-45deg); }
.ticks--no li::before { width: 12px; height: 12px; top: .36em; border: 0; transform: none;
  background: linear-gradient(45deg, transparent 44%, var(--amber) 44%, var(--amber) 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--amber) 44%, var(--amber) 56%, transparent 56%); }
.control__photo img { aspect-ratio: 1 / 1; object-position: 30% 50%; }

/* Security spec */
.spec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.spec__list { margin: 0; border-top: 2px solid var(--ink); }
.spec__list > div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 6px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule-strong); }
.spec__list dt { font-weight: 650; color: var(--ink); }
.spec__list dd { margin: 0; color: var(--text); }

/* Pilot */
.pilot { display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); border: 1px solid var(--rule-strong); border-left: 4px solid var(--teal); border-radius: 3px; }
.pilot h2 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); }
.pilot p { margin: 12px 0 0; color: var(--muted); max-width: 40em; }
.pilot .btn { flex: none; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0;
  font: 600 1.1875rem/1.4 var(--serif); color: var(--ink);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-ink); }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--teal); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq__body { padding: 0 48px 24px 0; }
.faq__body p { margin: 0; color: var(--text); max-width: 40em; }
.faq details[open] .faq__body { animation: reveal .35s var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.demo__steps { list-style: none; counter-reset: d; margin: 40px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.demo__steps li { counter-increment: d; display: grid; grid-template-columns: 36px 1fr; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: #DCE6EE; }
.demo__steps li::before { content: counter(d); font: 600 1.125rem/1.5 var(--serif); color: var(--amber); }
.form { background: var(--paper); color: var(--text); border-radius: 6px; padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form__field { display: grid; gap: 6px; min-width: 0; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.form__opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text);
  padding: 12px 14px; background: #fff;
  border: 1px solid var(--rule-strong); border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 92px; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #8FA3AE; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 128, 139, .2); }
.form [aria-invalid="true"] { border-color: var(--hard); }
.form__status { margin: 0; font-size: .8125rem; color: var(--muted); text-align: center; }
.form__status.is-error { color: var(--hard); }

/* Footer */
.footer { background: var(--ink-deep); color: #8FA2B3; padding: 56px 0 40px; font-size: .9063rem; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 64px; }
.footer__brand p { margin: 14px 0 0; max-width: 28em; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: start; }
.footer__nav a, .footer__fine a { color: #D2DDE6; text-decoration: none; }
.footer__nav a:hover, .footer__fine a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__fine { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8125rem; color: #74889A; }

/* Responsive layout */
@media (max-width: 1040px) {
  .doc__sheet { grid-template-columns: minmax(0, 1fr) 150px; column-gap: 22px; padding-left: 32px; }
  .doc__sheet::after { right: calc(32px + 150px + 11px); }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .doc { max-width: 680px; }
  .audience, .control, .spec, .faq-grid, .demo { grid-template-columns: 1fr; }
  .audience__photo img, .control__photo img { aspect-ratio: 16 / 9; }
  .control__photo { order: -1; }
  .roles__item { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .doc__sheet { grid-template-columns: 1fr; padding: 24px 20px 18px; font-size: .9375rem; }
  .doc__sheet::after { display: none; }
  .doc__sheet::before { inset: 8px -6px -8px 6px; }
  .doc__head { flex-direction: column; gap: 2px; }
  .doc__head span:last-child { text-align: left; }
  .note { grid-column: 1; margin: -4px 0 16px; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { grid-template-columns: 1fr; gap: 8px; }
  .hero__facts li { padding: 0; border: 0; }
  .control__lists, .form__pair { grid-template-columns: 1fr; }
  .spec__list > div { grid-template-columns: 1fr; }
  .pilot { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
