/* Declared 100-600: any request for 700-950 from an older layer renders at 600, NOD's heaviest weight. */
@font-face { font-family: 'NOD Geist'; src: url('assets/fonts/geist-latin.woff2') format('woff2'); font-weight: 100 600; font-style: normal; font-display: swap; }
/* Arial scaled to Geist's measured width and metrics, so a late font swap barely reflows the page. */
@font-face { font-family: 'NOD Geist Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); size-adjust: 102%; ascent-override: 98.5%; descent-override: 29%; line-gap-override: 0%; }
:root {
  --gold: #c9a84c;
  --gold-light: #e6c978;
  --ink: #08090b;
  --panel: #121318;
  --panel-2: #191b22;
  --line: rgba(255,255,255,0.13);
  --text: #f4f4f7;
  --muted: #b7bac8;
  --blue: #8eb8ff;
  --green: #73d6a4;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), transparent 240px),
    var(--ink);
  font-family: 'NOD Geist', 'NOD Geist Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

a {
  color: inherit;
}

.setup-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 34px;
}

.setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-bottom: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 1.1rem;
  letter-spacing: 0.22em;
}

.brand em,
.pilot-pill,
.eyebrow {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pilot-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(201,168,76,0.42);
  border-radius: 8px;
  background: rgba(201,168,76,0.1);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 22px;
  align-items: stretch;
}

.guide-copy,
.video-panel,
.step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18,19,24,0.86);
  box-shadow: 0 18px 54px rgba(0,0,0,0.34);
}

.guide-copy {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 34rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.primary-action {
  background: var(--gold);
  color: #090909;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}

.video-panel {
  margin: 0;
  overflow: hidden;
  background: #050608;
}

.setup-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050608;
  object-fit: contain;
}

.video-panel figcaption {
  padding: 13px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.step-card {
  min-height: 132px;
  padding: 18px;
}

.step-card span {
  color: var(--blue);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.step-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1rem;
}

.step-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .guide-layout,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 560px) {
  .setup-shell {
    width: min(100% - 22px, 1160px);
    padding-top: 14px;
  }

  .setup-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-copy {
    padding: 22px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}

/* Luxury black-and-gold guide polish */
:root {
  --gold: #D4AF37;
  --gold-light: #E6C766;
  --gold-soft: #C9A86A;
  --gold-deep: #8F6B22;
  --ink: #000000;
  --panel: #0D0D0D;
  --panel-2: #151515;
  --line: rgba(255,255,255,0.1);
  --gold-line: rgba(212,175,55,0.35);
  --text: #F5F5F7;
  --muted: #A1A1A6;
  --blue: #C9A86A;
  --green: #D4AF37;
  --gold-metal: linear-gradient(135deg, #8f6b22 0%, #d4af37 30%, #f0d77a 50%, #c79a2b 70%, #8f6b22 100%);
}

html,
body {
  background: #000;
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(212,175,55,0.12), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(255,255,255,0.035), transparent 28%),
    linear-gradient(180deg, #000 0%, #050505 48%, #000 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.46), transparent 64%);
}

.setup-shell {
  padding-top: 28px;
}

.setup-header {
  min-height: 62px;
  margin-bottom: 38px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10,10,10,0.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 60px rgba(0,0,0,0.42);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.brand strong {
  color: var(--text);
}

.brand em,
.pilot-pill,
.eyebrow {
  color: var(--gold-light);
}

.pilot-pill {
  border-color: var(--gold-line);
  background: rgba(212,175,55,0.09);
}

.guide-layout {
  gap: 28px;
}

.guide-copy,
.video-panel,
.step-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01) 46%, rgba(212,175,55,0.025)),
    #0D0D0D;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 30px 82px rgba(0,0,0,0.48);
}

.guide-copy {
  position: relative;
  overflow: hidden;
  padding: 42px;
}

.guide-copy::after {
  content: "";
  position: absolute;
  inset: auto 14% -1px 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.72), transparent);
}

.eyebrow {
  color: var(--gold-light);
}

h1 {
  color: var(--text);
  font-size: 5.2rem;
}

.lead,
.video-panel figcaption,
.step-card p {
  color: var(--muted);
}

.primary-action {
  background: var(--gold-metal);
  color: #070707;
  box-shadow: 0 16px 38px rgba(212,175,55,0.2), inset 0 1px 0 rgba(255,255,255,0.28);
}

.secondary-action {
  border-color: var(--line);
  background: rgba(17,17,17,0.8);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.brand:hover,
.step-card:hover {
  transform: translateY(-2px);
}

.secondary-action:hover {
  border-color: rgba(212,175,55,0.65);
  color: var(--gold-light);
}

.video-panel {
  background: #050505;
}

.setup-video {
  background: #050505;
}

.video-panel figcaption {
  border-top-color: var(--line);
  background: rgba(0,0,0,0.32);
}

.setup-steps {
  gap: 18px;
  margin-top: 22px;
}

.step-card {
  border-radius: 18px;
}

.step-card span {
  color: var(--gold-light);
}

.step-card strong {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(212,175,55,0.16);
}

@media (max-width: 900px) {
  h1 {
    font-size: 3.8rem;
  }
}

@media (max-width: 560px) {
  .setup-header,
  .guide-copy,
  .video-panel,
  .step-card {
    border-radius: 16px;
  }

  .setup-header {
    padding: 14px;
  }

  .guide-copy {
    padding: 24px;
  }

  h1 {
    font-size: 2.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Revision 4.2: the guide in NOD's current look, matching the app. Charcoal panels, the NOD mark, Geist
   light headings, sentence-case labels and a flat, matte gold button: no gradients, glows or glass. */
:root { --gold:#cfb07a; --gold-light:#d4b47e; --ink:#1a1a19; --panel:#232322; --panel-2:#2b2b29; --line:rgba(255,255,255,.09); --text:#f4f3ee; --muted:#a3a19a; --gold-metal:#cfb07a; }
html, body { background:var(--ink) !important; }
body::before, .guide-copy::after { display:none !important; }
*, *::before, *::after { text-transform:none !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
.setup-header, .guide-copy, .video-panel, .step-card { background:var(--panel) !important; border:1px solid var(--line) !important; border-radius:16px !important; box-shadow:0 1px 2px rgba(0,0,0,.25), 0 14px 30px -22px rgba(0,0,0,.7) !important; }
.brand img { border-radius:8px; }
.brand strong { font-weight:500 !important; letter-spacing:.3em !important; }
.brand em, .eyebrow, .pilot-pill, .step-card span { letter-spacing:0 !important; font-weight:500 !important; }
.eyebrow, .step-card span { color:var(--gold) !important; }
.pilot-pill { background:rgba(212,180,126,.12) !important; border:0 !important; box-shadow:none !important; color:#d4b47e !important; }
h1 { font-weight:300 !important; letter-spacing:-.045em !important; line-height:1.02 !important; }
.step-card strong { font-weight:500 !important; letter-spacing:-.015em; }
.primary-action { background:#cfb07a !important; color:#1f170a !important; border:1px solid transparent !important; box-shadow:0 1px 2px rgba(0,0,0,.3) !important; }
.primary-action:hover { background:#dbbf8d !important; }
.secondary-action { background:#333330 !important; border:1px solid rgba(255,255,255,.14) !important; box-shadow:none !important; }
.step-card:hover { border-color:rgba(212,180,126,.3) !important; }
