/* DroneSky "Flight Deck" v0.2 foundations: neutral near-black chrome so the photo carries the colour,
   one red signal for actions, selection and the viewport marker, mono caps for instrument readouts. */
:root {
  --void: #0A0A0B;     /* viewer ground */
  --ink: #0E0F11;      /* app ground */
  --panel: #17181B;    /* cards */
  --inset: #111214;    /* inset surfaces */
  --field: #141518;    /* inputs */
  --raised: #1C1D20;   /* secondary buttons */
  --well: #222327;     /* image placeholders */
  --track: #26272B;    /* header rule, progress tracks, disabled fill */
  --line: #2C2D31;     /* dividers, card borders */
  --line-2: #3A3B40;   /* separators */
  --edge: #45464C;     /* inputs, outlines */
  --edge-2: #55565C;   /* dashed drop border, secondary button border */
  --tick: #5A5B60;     /* instrument ticks */
  --text: #F4F4F5;
  --text-2: #D4D5D9;
  --text-3: #C4C5CA;
  --muted: #9A9CA2;
  --faint: #8A8C92;
  --signal: #E3261C;
  --signal-hover: #EE3A30;
  --signal-text: #FF5347;  /* signal as text or a thin stroke on dark */
  --signal-text-hover: #FF8075;
  --signal-tint: #2B1110;
  --signal-edge: #5C1A15;
  --signal-dim: #3A1512;
  --on-signal: #FFFFFF;
  --success: #4CC38A;
  --success-tint: #143326;
  --success-edge: #2F7A55;
  --danger: #FF8075;
  --warn: #F2B544;        /* paused, waiting on something of ours */
  --warn-tint: #1C1810;
  --warn-well: #2E2410;
  --warn-edge: #5A4618;
  --sub: #A8AAAF;      /* second line of a two-line control */
  --lede: #C9CACE;     /* hero paragraph */
  --disabled: #1F2023; /* disabled button fill */
  --glass: rgba(14, 15, 17, 0.82);
  --font: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Montserrat, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); font: 16px/1.5 var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; }
body.app { display: flex; flex-direction: column; }
a { color: var(--signal-text); text-decoration: none; }
a:hover { color: var(--signal-text-hover); }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.display { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.035em; }
.h-52 { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.05; letter-spacing: -0.03em; }
.h-44 { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; }
.h-28 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.muted-2 { color: var(--muted); }
.small { font-size: 14px; }
.lede { font-size: 18px; color: var(--text-2); }
/* Mono caps: section labels and instrument readouts */
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.eyebrow a { color: inherit; }
.eyebrow a:hover { color: var(--text); }
.eyebrow.ok { color: var(--success); }
.eyebrow.bad { color: var(--signal-text); }
.eyebrow .rule { flex: 0 0 96px; height: 1px; background: var(--line-2); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--signal-text); outline-offset: 2px; }

/* ---- header ---- */
.site-header { position: relative; z-index: 2; }
.site-header .inner { max-width: 1280px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { display: block; height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Explore view switch (Grid / Map): a two-way segmented control in the header */
.viewsw { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.viewsw a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.viewsw a:hover { color: var(--text); }
.viewsw a[aria-current="page"] { color: var(--text); background: var(--signal-tint); border-color: var(--signal); }
.site-header.wide .inner { max-width: 1392px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.steps li i { width: 8px; height: 8px; border: 1px solid var(--tick); }
.steps li.active { color: var(--text); }
.steps li.active i { border: 0; background: var(--signal); }
.steps li.done { color: var(--muted); }
.steps li.done i { border: 0; background: var(--success); }

/* ---- footer strip ---- */
.strip { position: relative; z-index: 1; padding: 18px 56px 26px; display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.strip .bar { width: 28px; height: 2px; background: var(--signal); flex: none; }
.strip .rule { flex: 1; height: 1px; background: var(--line); min-width: 16px; }
.strip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip span:empty { display: none; }
.strip .ver { flex: none; font-size: 11px; letter-spacing: 0.04em; text-transform: none; }

/* ---- buttons ----
   Montserrat 700 caps with wide tracking. Three sizes: default 48 px / 13 px, .md 44 / 12, .sm 44 / 11. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--signal); border-radius: 10px; background: var(--signal); color: var(--on-signal); font-family: var(--display); font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--signal-hover); border-color: var(--signal-hover); color: var(--on-signal); }
.btn.md { min-height: 44px; padding: 0 18px; font-size: 12px; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 11px; }
.btn.secondary { background: rgba(255, 255, 255, 0.02); color: var(--text); border-color: var(--tick); }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--faint); color: var(--text); }
/* Current page in the header nav: signal outline on the tint */
.btn.secondary[aria-current="page"] { background: var(--signal-tint); border-color: var(--signal); }
.btn:disabled, .btn.secondary:disabled { background: var(--disabled); color: var(--faint); border-color: var(--line); cursor: not-allowed; }
.btn .sq { width: 7px; height: 7px; background: var(--signal); flex: none; }
/* Text buttons: same caps, no box. Signal for navigation, quiet for neutral, danger for delete. */
.btn.text, .btn.quiet, .btn.danger { min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 12px; gap: 8px; }
.btn.text { color: var(--signal-text); }
.btn.text:hover { background: transparent; color: var(--signal-text-hover); }
.btn.quiet { color: var(--text-2); }
.btn.quiet:hover { background: transparent; color: var(--text); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: transparent; color: var(--text); }

/* ---- form ---- */
.field { display: flex; flex-direction: column; gap: 12px; }
/* Field labels are mono caps, like every other instrument label */
.field label, .flabel { display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.field.compact { gap: 8px; }
.field-help { font-size: 13px; color: var(--muted); }
.field label .opt, .flabel .opt { color: var(--faint); }
.flabel .req { color: var(--signal-text); }
.input { min-height: 52px; width: 100%; padding: 0 18px; border-radius: 10px; border: 1px solid var(--edge); background: var(--field); color: var(--text); font: inherit; font-size: 16px; }
.field.compact .input { min-height: 48px; padding: 0 16px; }
.input:focus { outline: 2px solid var(--signal-text); outline-offset: -1px; }
.input::placeholder { color: var(--faint); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C4C5CA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
/* Two-state tabs (catalog sort): the selected one takes the signal outline and tint */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--tick); background: transparent; color: var(--text-2); font-family: var(--display); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.seg button:hover { background: rgba(255, 255, 255, 0.07); }
.seg button[aria-pressed="true"] { border-color: var(--signal); background: var(--signal-tint); color: var(--text); }
.check { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--text-2); min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--signal); margin: 0; flex: none; }
.radio input { width: 20px; height: 20px; accent-color: var(--signal); margin: 0; flex: none; }

/* ---- surfaces ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.card.tight { padding: 24px; }
.inset { padding: 16px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); }
.inset.on { background: var(--signal-tint); border-color: var(--signal); }
.progress-track { height: 6px; background: var(--track); overflow: hidden; }
.progress-track > i { display: block; height: 100%; background: var(--signal); width: 0; transition: width 0.3s ease; }
.icon-well { width: 52px; height: 52px; border-radius: 12px; background: var(--signal-tint); border: 1px solid var(--signal-edge); display: flex; align-items: center; justify-content: center; color: var(--signal-text); flex: none; }
/* Mono tag over imagery, with the square signal marker */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgba(14, 15, 17, 0.86); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.badge .sq { width: 6px; height: 6px; background: var(--signal); flex: none; }
.pill-live { font-family: var(--mono); color: var(--signal-text); }
.main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 56px 24px 64px; display: flex; flex-direction: column; gap: 28px; }
.main.narrow { max-width: 900px; gap: 24px; }
.page-head { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.split { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.split > .grow { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.err { color: var(--danger); font-size: 15px; }
@media (max-width: 640px) {
  .h-52 { font-size: 36px; }
  .h-44 { font-size: 32px; }
  .h-28 { font-size: 24px; }
  .main { padding: 32px 16px 48px; }
  .site-header .inner { padding: 12px 16px; }
  .steps { gap: 14px; font-size: 11px; }
  .strip { padding: 14px 16px 20px; gap: 12px; }
  .strip .opt { display: none; }
  .card { padding: 20px; }
}
