/* ==================================================================================================
   Red Kite — redkite.info
   The public site. Nothing operational lives here (Specification.md, head of document).

   The palette, the typefaces and the rule that colour never carries state alone are inherited from
   documentation/Design-Language.md and src/RedKite.Web/src/styles.css. The marketing page and the
   product deliberately look like the same object.

   Deliberately single-theme. The hub is a dark instrument and a HUD in light mode is nonsense; every
   colour is painted explicitly so the page never borrows a host's ground.
   ================================================================================================== */

:root {
  /* ---- Carried over from Easy2pc unchanged. Chrome only; never a status ---- */
  --green: #78a22f;
  --slate: #122831;
  --slate-lift: #1d3a47;

  /* ---- Added for a dark instrument ---- */
  --void: #08151b;
  --void-lift: #0b1d25;
  --green-lift: #9ecb45;

  /* ---- Status. Validated for colour blindness — Design-Language.md.
          Spread across lightness because that is what survives red-green colour blindness;
          the words beside them do the rest. Used sparingly, so that they mean something ---- */
  --answering: #4dbe7a;
  --late: #ffc94d;
  --silent: #e03340;
  --unheard: #86a9c4;

  /* ---- Ink ramp, biased blue toward the slate rather than neutral grey ---- */
  --ink: #dbe7ec;
  --ink-muted: #8ba3ad;
  --ink-faint: #5b7480;

  --hair: rgb(120 162 47 / 20%);
  --hair-strong: rgb(120 162 47 / 42%);
  --rule: rgb(139 163 173 / 15%);
  --panel: rgb(18 40 49 / 62%);
  --panel-solid: #102630;

  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* ---- Measure and rhythm ---- */
  --measure: 66ch;
  --page: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-gap: clamp(64px, 9vw, 132px);

  --radius: 3px;
  --radius-lg: 5px;
}

/* ==================================================================================================
   Base
   ================================================================================================== */

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

html {
  scroll-behavior: smooth;
  /* The sticky rail is 56px; anchored headings must clear it */
  scroll-padding-top: 84px;
  color-scheme: dark;
  background: var(--void);
}

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

img,
svg {
  max-width: 100%;
}

a {
  color: var(--green-lift);
  text-decoration-color: rgb(158 203 69 / 40%);
  text-underline-offset: 3px;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: #b6dd6e;
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--green-lift);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgb(120 162 47 / 30%);
  color: #fff;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--green);
  color: #08151b;
  font-family: var(--display);
  font-weight: 600;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ==================================================================================================
   Typography
   ================================================================================================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.24;
}

h4 {
  font-size: 1rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

strong {
  font-weight: 600;
  color: #f0f6f8;
}

em {
  font-style: italic;
  color: var(--ink);
}

/* The uppercase micro-label that names a section. Chrome — dim by rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--green-lift);
  opacity: 0.85;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: var(--hair-strong);
}

.lede {
  max-width: var(--measure);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-muted);
}

.prose {
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  color: var(--ink-muted);
}

.prose strong {
  color: var(--ink);
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ==================================================================================================
   Layout
   ================================================================================================== */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
}

.band {
  padding-block: var(--section-gap);
}

.band--tint {
  background:
    linear-gradient(180deg, transparent, rgb(18 40 49 / 34%) 12%, rgb(18 40 49 / 34%) 88%, transparent),
    transparent;
}

.band--edged {
  border-top: 1px solid var(--rule);
}

.head {
  max-width: 760px;
  margin-bottom: clamp(34px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.head h2 + .lede {
  margin-top: -2px;
}

/* ==================================================================================================
   Rail (the top navigation)
   ================================================================================================== */

.rail {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(8 21 27 / 88%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.rail__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.mark {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--green-lift);
}

.rail nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.rail nav a {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-decoration: none;
}

.rail nav a:hover {
  color: var(--ink);
}

.rail nav a.is-cta {
  padding: 7px 15px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  color: var(--green-lift);
  background: rgb(120 162 47 / 8%);
}

.rail nav a.is-cta:hover {
  background: rgb(120 162 47 / 16%);
  color: #cbe89a;
}

@media (max-width: 860px) {
  .rail nav a:not(.is-cta) {
    display: none;
  }
}

/* ==================================================================================================
   Hero
   ================================================================================================== */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 1100px 720px at 68% 34%, rgb(120 162 47 / 8%), transparent 66%),
    radial-gradient(ellipse 800px 520px at 12% 8%, rgb(29 58 71 / 46%), transparent 70%);
}

/* Ambient chrome: the kite itself, large and very dim. Ornament is dim by rule */
.hero__bird {
  position: absolute;
  top: -4%;
  right: -6%;
  width: min(620px, 62vw);
  color: var(--green);
  opacity: 0.055;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.hero h1 .quiet {
  color: var(--ink-faint);
  font-weight: 500;
}

.hero__sub {
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--ink-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-decoration: none;
  cursor: pointer;
  transition: background 130ms ease, border-color 130ms ease, color 130ms ease;
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #06120a;
}

.btn--primary:hover {
  background: var(--green-lift);
  border-color: var(--green-lift);
  color: #06120a;
}

.btn--ghost {
  border-color: var(--hair-strong);
  color: var(--ink);
  background: rgb(18 40 49 / 45%);
}

.btn--ghost:hover {
  border-color: var(--green-lift);
  color: var(--ink);
  background: rgb(18 40 49 / 75%);
}

.hero__note {
  font-size: 0.87rem;
  color: var(--ink-faint);
  max-width: 46ch;
}

.hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

.hero__price strong {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--green-lift);
}

/* ==================================================================================================
   The silence clock — the hero instrument
   ================================================================================================== */

.clock {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 460px 320px at 50% 42%, rgb(120 162 47 / 7%), transparent 70%),
    var(--panel);
  padding: 18px 18px 16px;
  min-width: 0;
}

.clock__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.clock__cap b {
  font-weight: 600;
  color: var(--green-lift);
  opacity: 0.9;
}

.clock svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Chrome inside the dial runs dim; only the ticks are allowed to be bright.
   Type sizes are the hub's own — src/RedKite.Web/src/styles.css, .dial__* */
.dial-grat {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--ink-faint);
}

.dial-cap {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  fill: var(--green-lift);
}

.dial-num {
  font-family: var(--display);
  font-size: 62px;
  font-weight: 700;
  fill: var(--ink);
}

.dial-of {
  font-family: var(--mono);
  font-size: 13px;
  fill: var(--ink-muted);
}

/* Ticks are radial lines, as on the instrument itself */
.tick-answering {
  stroke: var(--answering);
}
.tick-late {
  stroke: var(--late);
}
.tick-silent {
  stroke: var(--silent);
}
.tick-unheard {
  stroke: var(--unheard);
}

.clock__key {
  margin: 10px 0 0;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}

.clock__key strong {
  color: var(--ink-muted);
  font-weight: 500;
}

/* The sentence under the dial. This is the product: prose, not a code */
.clock__say {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
  min-height: 3.2em;
}

.clock__say .dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--answering);
  transition: background 300ms ease;
}

.clock__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.clock__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clock__legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ==================================================================================================
   Message cards — real alert text, in the face it actually arrives in
   ================================================================================================== */

.messages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 12px;
  margin-top: clamp(38px, 5vw, 60px);
  position: relative;
}

.msg {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--kind, var(--ink-faint));
  border-radius: var(--radius);
  background: rgb(18 40 49 / 46%);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.msg__meta {
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.msg__body {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink);
}

.msg__body b {
  font-weight: 500;
  color: var(--kind, var(--ink));
}

/* ==================================================================================================
   Cards, grids and the repeated objects
   ================================================================================================== */

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

.card h3 {
  color: var(--ink);
}

.card p {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.card__tag {
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* The quiet catastrophes. A list of objects, not a wall of cards:
   the hairline sits on the item so an incomplete last row cannot show a block of it */
.quiet-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  counter-reset: none;
}

.quiet {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgb(18 40 49 / 40%);
}

/* Place both tracks explicitly. Auto-placement is the trap here: these cards carry four children
   (icon, heading, paragraph, and the "why nothing else sees it" note), so with only the icon
   positioned, the fourth child finds the next free cell — column one, which is 26px wide — and
   sets its whole paragraph one word per line. Nothing errors and the typecheck passes; it is
   only visible in a screenshot. Anything added to one of these cards must land in column two. */
.quiet__icon {
  grid-column: 1;
  grid-row: 1;
  width: 26px;
  height: 26px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.quiet > :not(.quiet__icon) {
  grid-column: 2;
}

.quiet h3 {
  font-size: 1.02rem;
  color: var(--ink);
}

.quiet p {
  font-size: 0.91rem;
  color: var(--ink-muted);
}

.quiet p + p {
  margin-top: 8px;
}

.quiet .why {
  color: var(--ink-faint);
  font-size: 0.86rem;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  margin-top: 10px;
}

.quiet .why b {
  font-weight: 500;
  color: var(--late);
}

/* ==================================================================================================
   Pull quote — used once or twice, never as decoration
   ================================================================================================== */

.pull {
  max-width: 780px;
  margin-block: clamp(40px, 5vw, 64px);
  padding-left: clamp(18px, 3vw, 30px);
  border-left: 2px solid var(--hair-strong);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.pull cite {
  display: block;
  margin-top: 14px;
  font-family: var(--body);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-faint);
}

/* ==================================================================================================
   Diagram
   ================================================================================================== */

.figure {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: clamp(18px, 3vw, 32px);
  overflow-x: auto;
}

.figure svg {
  display: block;
  min-width: 560px;
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.87rem;
  color: var(--ink-faint);
  max-width: 74ch;
}

.dg-box {
  fill: rgb(18 40 49 / 90%);
  stroke: var(--hair);
  stroke-width: 1;
}

.dg-box--hub {
  stroke: var(--hair-strong);
}

.dg-t {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
}

.dg-s {
  font-family: var(--body);
  font-size: 10.5px;
  fill: var(--ink-muted);
}

.dg-lab {
  font-family: var(--display);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--ink-faint);
}

.dg-flow {
  stroke: var(--green-lift);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.75;
}

.dg-blocked {
  stroke: var(--silent);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.75;
  stroke-dasharray: 5 4;
}

.dg-zone {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

/* ==================================================================================================
   Steps — numbered because this genuinely is a sequence
   ================================================================================================== */

.steps {
  display: grid;
  gap: 0;
  max-width: 860px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}

.step:last-child {
  border-bottom: 1px solid var(--rule);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--green-lift);
  opacity: 0.8;
  padding-top: 2px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.94rem;
  max-width: 62ch;
}

/* ==================================================================================================
   Tables
   ================================================================================================== */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 16px 18px 0;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

th,
td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

thead th {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

tbody th {
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--ink-muted);
}

td .yes {
  color: var(--answering);
  font-weight: 600;
}

td .no {
  color: var(--ink-faint);
}

td.figure-cell {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

/* ==================================================================================================
   Code
   ================================================================================================== */

.code {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #061117;
  overflow: hidden;
}

.code__cap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  background: rgb(18 40 49 / 55%);
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink);
  tab-size: 2;
}

.code .c {
  color: var(--ink-faint);
}
.code .k {
  color: var(--green-lift);
}
.code .s {
  color: #9dd0c0;
}
.code .n {
  color: #d4b978;
}

/* ==================================================================================================
   Status chips — colour never carries state alone
   ================================================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 8px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.chip--answering {
  color: var(--answering);
}
.chip--late {
  color: var(--late);
}
.chip--silent {
  color: var(--silent);
}
.chip--unheard {
  color: var(--unheard);
}

/* The unknown-state demonstration */
.unknown-demo {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  margin-top: 28px;
}

.gauge {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgb(18 40 49 / 40%);
}

.gauge svg {
  flex: none;
  width: 62px;
  height: 62px;
}

.gauge__txt {
  min-width: 0;
}

.gauge__name {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}

.gauge__say {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
}

.gauge--bad .gauge__say {
  color: var(--unheard);
}

/* ==================================================================================================
   Two-column split (copy beside a panel)
   ================================================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 62px);
  align-items: start;
}

.split--wide-left {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

@media (max-width: 900px) {
  .split,
  .split--wide-left {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A plain list of assertions, hairline-separated */
.assert {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.assert li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.assert li:last-child {
  border-bottom: 1px solid var(--rule);
}

.assert li b {
  color: var(--ink);
  font-weight: 600;
}

.assert svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--green-lift);
  opacity: 0.85;
}

.assert--no svg {
  color: var(--silent);
  opacity: 0.8;
}

/* ==================================================================================================
   FAQ
   ================================================================================================== */

.faq {
  max-width: 860px;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  line-height: 1.3;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  flex: none;
  width: 18px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--green-lift);
  line-height: 1.2;
}

.faq details[open] summary::before {
  content: "\2212";
}

.faq details > div {
  padding: 0 0 22px 34px;
  max-width: 68ch;
  color: var(--ink-muted);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* ==================================================================================================
   Contact
   ================================================================================================== */

.contact {
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 700px 400px at 22% 0%, rgb(120 162 47 / 9%), transparent 68%),
    var(--panel-solid);
  padding: clamp(28px, 4.5vw, 52px);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 4.5vw, 56px);
  align-items: start;
}

@media (max-width: 880px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mailto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--green-lift);
  text-decoration: none;
  word-break: break-all;
}

.mailto:hover {
  color: #cbe89a;
  text-decoration: underline;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgb(6 17 23 / 70%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.field textarea {
  resize: vertical;
  min-height: 108px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--hair-strong);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.form__note {
  font-size: 0.83rem;
  color: var(--ink-faint);
  max-width: 52ch;
}

/* ==================================================================================================
   Footer
   ================================================================================================== */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 48px 56px;
  background: #061117;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  align-items: start;
}

.foot__blurb {
  max-width: 42ch;
  font-size: 0.9rem;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot h4 {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
}

.foot ul a {
  color: var(--ink-muted);
  text-decoration: none;
}

.foot ul a:hover {
  color: var(--green-lift);
}

.foot__base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ==================================================================================================
   Document pages — what-we-watch, security.
   These are read at a desk by somebody doing a task, so they keep the ground and the palette but
   drop the HUD: more measure, more air, a standing contents list, and no instruments.
   ================================================================================================== */

.doc-head {
  padding-block: clamp(44px, 6vw, 76px) clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--rule);
  background: radial-gradient(ellipse 900px 460px at 22% 0%, rgb(120 162 47 / 7%), transparent 68%);
}

.doc-head .inner {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-head h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}

.crumb {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.crumb a {
  color: var(--ink-faint);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--green-lift);
}

.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 100px);
  align-items: start;
}

@media (max-width: 940px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static !important;
    max-height: none !important;
  }
}

.toc {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}

.toc h2 {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.toc a {
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1.35;
  display: block;
}

.toc a:hover {
  color: var(--green-lift);
}

.doc-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 60px);
}

.doc-body section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-margin-top: 84px;
}

.doc-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.doc-body h3 {
  margin-top: 12px;
  color: var(--ink);
}

.doc-body p {
  max-width: var(--measure);
  color: var(--ink-muted);
}

.doc-body p strong,
.doc-body li strong {
  color: var(--ink);
}

.doc-body ul.plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: var(--measure);
}

.doc-body ul.plain li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.doc-body ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 1px;
  background: var(--hair-strong);
}

/* A note that must not be mistaken for body copy */
.note {
  max-width: var(--measure);
  padding: 18px 22px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--green);
  border-radius: var(--radius);
  background: rgb(18 40 49 / 46%);
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.note strong {
  color: var(--ink);
}

.note--warn {
  border-left-color: var(--late);
}

/* ==================================================================================================
   Motion
   ================================================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==================================================================================================
   The screens — a faithful reproduction of the hub's Now screen.

   Every class here is prefixed `shot`. That is not fussiness: this project has already paid for the
   alternative once. `.grid` was the dashboard's three-column layout, and reusing the bare name for
   something else applied `display: grid` to every table on the page and tore the headers away from
   their rows — silently, with a passing typecheck. This stylesheet already owns `.card`, `.chip`,
   `.figure` and `.brand`, all of which the hub also uses for something different.

   The markup that uses these mirrors src/RedKite.Web/src/App.tsx. The figures in it are examples.
   ================================================================================================== */

.shot-frame {
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--void);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  background: rgb(18 40 49 / 70%);
}

.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.3;
  flex: none;
}

.shot-url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
}

.shot-scroll {
  overflow-x: auto;
}

.shot {
  min-width: 940px;
  padding: 12px;
  background:
    radial-gradient(ellipse 900px 620px at 50% 42%, rgb(120 162 47 / 7%), transparent 70%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgb(29 58 71 / 40%), transparent 70%);
  font-size: 13px;
  line-height: 1.5;
}

.shot__panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hair);
  padding: 12px 14px;
}

/* The hub's own corner brackets */
.shot__panel::before,
.shot__panel::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--hair-strong);
  pointer-events: none;
}

.shot__panel::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.shot__panel::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.shot__phead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}

.shot__label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-lift);
}

.shot__count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

.shot__top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--hair);
}

.shot__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.shot__bname {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.shot__bhost {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

.shot__nav {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}

.shot__navitem {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  color: var(--ink-muted);
  padding: 6px 12px;
}

.shot__navitem.is-on {
  color: var(--ink);
  border-bottom-color: var(--green-lift);
  background: rgb(120 162 47 / 12%);
}

.shot__spacer {
  flex: 1 1 auto;
}

.shot__stamp {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.shot__v {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.shot__v--big {
  font-size: 17px;
}

.shot__say {
  text-align: center;
  padding: 14px 10px 16px;
}

.shot__headline {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 46ch;
  color: var(--ink);
  text-wrap: balance;
}

.shot__headline strong {
  font-weight: 600;
}

.shot__sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 6px auto 0;
  max-width: 52ch;
}

.shot__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 12px;
  align-items: start;
}

.shot__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.shot__roster {
  display: flex;
  flex-direction: column;
}

.shot__row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid rgb(120 162 47 / 10%);
}

.shot__row:last-child {
  border-bottom: 0;
}

.shot__glyph {
  margin-top: 3px;
}

.shot__name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.shot__where {
  display: block;
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.shot__right {
  text-align: right;
  white-space: nowrap;
}

.shot__ago {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink);
}

.shot__state {
  display: block;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1px;
}

.shot__uptime {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.shot__uptime--poor {
  color: var(--late);
}

.shot__badge {
  width: 15px;
  height: 15px;
  flex: none;
}

.shot__dialwrap {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}

.shot__dialkey {
  text-align: center;
  font-size: 11px;
  color: var(--ink-faint);
  margin: 6px 0 0;
}

.shot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  justify-content: center;
}

.shot__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--hair);
  background: rgb(8 21 27 / 60%);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.shot__chipn {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

.shot__inc {
  border-left: 2px solid var(--silent);
  padding: 8px 0 8px 11px;
  margin-bottom: 10px;
}

.shot__inc--warn {
  border-left-color: var(--late);
}

.shot__inc:last-child {
  margin-bottom: 0;
}

.shot__incwhat {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

.shot__incmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.shot__ack {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px solid var(--hair-strong);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.shot__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.shot__tile {
  border: 1px solid rgb(120 162 47 / 12%);
  padding: 8px 10px;
  background: rgb(8 21 27 / 40%);
}

.shot__tk {
  font-family: var(--display);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.shot__tv {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink);
  margin-top: 2px;
}

/* ==================================================================================================
   The price
   ================================================================================================== */

.price {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(26px, 4.5vw, 60px);
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 620px 380px at 8% 0%, rgb(120 162 47 / 12%), transparent 66%),
    var(--panel-solid);
  margin-bottom: 14px;
}

@media (max-width: 780px) {
  .price {
    grid-template-columns: minmax(0, 1fr);
  }
}

.price__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.price__fig {
  font-family: var(--display);
  font-size: clamp(3.6rem, 10vw, 5.6rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price__once {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-lift);
}

.price__sub {
  font-size: 0.86rem;
  color: var(--ink-faint);
  max-width: 26ch;
}

.price__inc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.price__inc li {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 13px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.price__inc li:first-child {
  border-top: 0;
  padding-top: 0;
}

.price__inc li b {
  color: var(--ink);
  font-weight: 600;
}

.price__inc svg {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--green-lift);
}

/* ==================================================================================================
   Licence — the assertions that replace a price list
   ================================================================================================== */

.owns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 12px;
}

/* The hairline sits on the cell rather than behind it. A four-column layout with an incomplete
   last row would otherwise render the gap colour as two large blocks — paid for once already. */
.owns > div {
  background: var(--panel-solid);
  padding: 26px 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 0 0 1px var(--rule);
}

.owns h3 {
  font-size: 1.06rem;
  color: var(--ink);
}

.owns p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.owns .big {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--green-lift);
  letter-spacing: -0.01em;
}

/* ==================================================================================================
   Roadmap
   ================================================================================================== */

.road {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.road__col {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px 24px;
}

.road__col h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.road__col h3 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.road__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.road__col li {
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.91rem;
  color: var(--ink-muted);
}

.road__col li b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2px;
}
