/* ==========================================================================
   Binary Rogue — binaryrogue.ai
   Dark, typographic, hairline-ruled. The category is saturated with shields,
   padlocks and blue gradients; this deliberately uses none of them.
   ========================================================================== */

:root {
  --ink:        #08090a;
  --panel:      #0f1113;
  --panel-2:    #14171a;
  --line:       #23282d;
  --line-soft:  #191d21;

  --text:       #e8eaec;
  --dim:        #9aa2aa;
  --dimmer:     #6b737b;

  --signal:     #ffb627;   /* the rogue one */
  --signal-ink: #1a1204;
  --hot:        #e4572e;   /* critical findings only */
  --ok:         #4fb477;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo,
          Consolas, monospace;

  --wrap: 1120px;
  --r: 10px;

  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.13rem + 0.35vw, 1.42rem);
  --step-2:  clamp(1.48rem, 1.33rem + 0.72vw, 1.95rem);
  --step-3:  clamp(1.80rem, 1.55rem + 1.20vw, 2.50rem);
  --step-4:  clamp(2.15rem, 1.75rem + 1.90vw, 3.30rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--text); text-decoration-color: var(--dimmer); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--signal); color: var(--signal-ink);
  padding: 0.6rem 1rem; z-index: 100; font-weight: 650;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2rem); }

/* ------------------------------------------------------------ typography */

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 620;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.012em; }
h4 { font-size: var(--step-0); letter-spacing: 0; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede { font-size: var(--step-1); color: var(--dim); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--dim); }
.small { font-size: var(--step--1); }
.max-60 { max-width: 60ch; }
.max-70 { max-width: 70ch; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow.center { justify-content: center; }

.mono { font-family: var(--mono); font-size: 0.9em; }
strong, b { font-weight: 640; color: #f4f6f7; }
em.sig { font-style: normal; color: var(--signal); }

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 66px;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text); flex: none;
}
.brand-mark { width: 22px; height: 22px; color: var(--dimmer); display: block; }
.brand-mark .rogue { fill: var(--signal); }
.brand:hover .brand-mark { color: var(--dim); }
.brand-text {
  font-weight: 640; letter-spacing: -0.02em; font-size: 1.02rem; white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a { font-size: 0.94rem; color: var(--dim); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 6px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 40px; height: 36px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); }

.mobile-nav { display: none; border-top: 1px solid var(--line-soft); padding: 0.5rem 0 1rem; }
.mobile-nav a {
  display: block; padding: 0.75rem clamp(1.15rem, 4vw, 2rem);
  color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:hover { color: var(--text); background: var(--panel); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: block; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--signal); color: var(--signal-ink);
  border: 1px solid var(--signal); border-radius: 8px;
  padding: 0.72rem 1.25rem;
  font: inherit; font-weight: 640; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #ffc652; border-color: #ffc652; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.89rem; }

.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { background: var(--panel-2); border-color: var(--dimmer); }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--signal); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.arrow-link::after { content: "→"; transition: transform 0.15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* -------------------------------------------------------------- sections */

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section + section { border-top: 1px solid var(--line-soft); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.panel-bg { background: var(--panel); }

.section-head { max-width: 66ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  /* faint dot grid — the field the rogue process hides in */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #ffffff 1px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.030;
  mask-image: radial-gradient(ellipse 90% 65% at 62% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { margin-bottom: 0.55em; }
.hero .lede { margin-bottom: 2rem; max-width: 58ch; }

.hero-note {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--dimmer);
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-note span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--signal); opacity: 0.8; flex: none;
}

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--dim); font-size: 0.95rem; }
.card-num {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em;
  color: var(--signal); margin-bottom: 0.9rem; display: block;
}

.card-link { text-decoration: none; display: block; transition: border-color 0.15s ease, background 0.15s ease; }
.card-link:hover { border-color: var(--line); background: var(--panel-2); }

/* --------------------------------------------------------- price columns */

.tiers { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }

.tier {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex; flex-direction: column; height: 100%;
  scroll-margin-top: 90px;
}
.tier.featured { border-color: color-mix(in srgb, var(--signal) 40%, var(--line)); background: var(--panel-2); }
.tier-flag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--signal); margin-bottom: 0.75rem;
}
.tier h3 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.tier-sub { color: var(--dim); font-size: 0.92rem; margin-bottom: 1.4rem; min-height: 2.9em; }
.tier-price {
  font-size: var(--step-2); font-weight: 640; letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.3rem;
}
.tier-price .per { font-size: 0.9rem; font-weight: 400; color: var(--dim); letter-spacing: 0; }
.tier-meta {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dimmer);
  padding-bottom: 1.3rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--line-soft);
}
.tier ul { list-style: none; margin: 0 0 1.6rem; padding: 0; flex: 1; }
.tier li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.62rem;
  font-size: 0.93rem; color: var(--dim); line-height: 1.5;
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--signal); opacity: 0.85;
}
.tier li.excl { color: var(--dimmer); }
.tier li.excl::before { background: var(--line); }

/* --------------------------------------------------------------- listing */

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative; padding-left: 1.9rem; margin-bottom: 0.9rem; color: var(--dim);
}
.checks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.52em;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--signal); border-bottom: 1.5px solid var(--signal);
  transform: rotate(-45deg);
}
.checks strong { color: var(--text); }

.numbered { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.numbered > li {
  counter-increment: n; position: relative;
  padding-left: 3.1rem; padding-bottom: 1.8rem; margin-bottom: 0;
  border-left: 1px solid var(--line-soft); margin-left: 1rem;
}
.numbered > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: -0.15rem; transform: translateX(-50%);
  background: var(--ink); color: var(--signal);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 0.2rem 0.35rem;
}
.numbered h3 { margin-bottom: 0.35rem; }
.numbered p { color: var(--dim); font-size: 0.95rem; }

/* ---------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 520px; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--dimmer); font-weight: 500;
  border-bottom-color: var(--line);
}
td { color: var(--dim); }
td strong { color: var(--text); }
tbody tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------------- callout */

.callout {
  border-left: 2px solid var(--signal);
  background: var(--panel);
  padding: 1.3rem 1.5rem;
  border-radius: 0 var(--r) var(--r) 0;
  margin-block: 1.8rem;
}
.callout p { color: var(--dim); }
.callout p:first-child { margin-top: 0; }
.callout .callout-h {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--signal); margin-bottom: 0.6rem;
}

/* ------------------------------------------------------------------ stats */

.stat-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.stat-n {
  font-size: var(--step-3); font-weight: 640; letter-spacing: -0.035em;
  line-height: 1; margin-bottom: 0.5rem; color: var(--text);
}
.stat-l { font-size: 0.88rem; color: var(--dim); line-height: 1.45; }

/* ------------------------------------------------------------------ forms */

.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 560; color: var(--text); }
.field .hint { font-size: 0.79rem; color: var(--dimmer); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit; font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: var(--dimmer); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); }
::placeholder { color: #565e66; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%),
                    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-size: 0.92rem; min-height: 1.4em; }
.form-status.err { color: var(--hot); }
.form-status.ok  { color: var(--ok); }

/* ------------------------------------------------------------- self-check */

.sc-shell { max-width: 760px; margin-inline: auto; }

.sc-progress {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2.2rem;
  font-family: var(--mono); font-size: 0.73rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dimmer);
}
.sc-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.sc-bar i { position: absolute; inset: 0 auto 0 0; background: var(--signal); width: 0; transition: width 0.3s ease; }

.sc-domain {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--signal); margin-bottom: 0.9rem;
}
.sc-q { font-size: var(--step-2); margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.sc-help { color: var(--dim); font-size: 0.94rem; margin-bottom: 1.8rem; }

.sc-options { display: grid; gap: 0.65rem; margin-bottom: 2rem; }
.sc-opt {
  display: flex; align-items: flex-start; gap: 0.9rem;
  width: 100%; text-align: left;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 9px; padding: 1rem 1.15rem;
  color: var(--text); font: inherit; font-size: 0.96rem; cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.sc-opt:hover { border-color: var(--dimmer); background: var(--panel-2); }
.sc-opt[aria-pressed="true"] { border-color: var(--signal); background: var(--panel-2); }
.sc-opt .key {
  font-family: var(--mono); font-size: 0.72rem; color: var(--dimmer);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 0.1rem 0.4rem; margin-top: 0.15rem; flex: none;
}
.sc-opt[aria-pressed="true"] .key { color: var(--signal); border-color: var(--signal); }

.sc-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* results */
.score-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r);
  margin-bottom: 2rem;
}
.score-dial { position: relative; width: 132px; height: 132px; flex: none; }
.score-dial svg { transform: rotate(-90deg); display: block; }
.score-dial .track { stroke: var(--line); }
.score-dial .val { stroke: var(--signal); stroke-linecap: round; transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.score-dial .num {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.score-dial .num b { font-size: 2.2rem; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.score-dial .num span {
  display: block; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dimmer); margin-top: 0.35rem;
}
.score-copy { flex: 1 1 260px; }
.score-band {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 5px; margin-bottom: 0.9rem;
  border: 1px solid currentColor;
}
.band-contained { color: var(--ok); }
.band-elevated  { color: var(--signal); }
.band-high      { color: #ff8a4c; }
.band-critical  { color: var(--hot); }

.domain-bars { display: grid; gap: 1rem; }
.domain-bar .dlabel {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.9rem; margin-bottom: 0.45rem;
}
.domain-bar .dlabel span:last-child { font-family: var(--mono); font-size: 0.78rem; color: var(--dimmer); }
.domain-bar .dtrack { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.domain-bar .dfill { height: 100%; background: var(--signal); border-radius: 3px; transition: width 0.8s ease; }

.qa-list { display: grid; gap: 0.55rem; }
.qa-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.85rem 1.05rem; background: var(--panel);
  border: 1px solid var(--line-soft); border-radius: 8px; font-size: 0.93rem;
}
.qa-verdict {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; flex: none; width: 6.5rem; padding-top: 0.15rem;
}
.v-ready { color: var(--ok); }
.v-partial { color: var(--signal); }
.v-no { color: var(--hot); }

/* ---------------------------------------------------------------- footer */

.site-foot { border-top: 1px solid var(--line-soft); padding-block: clamp(2.8rem, 5vw, 4rem) 2rem; }
.foot-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.6fr repeat(3, minmax(130px, 1fr));
  margin-bottom: 2.8rem;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand-text { margin-bottom: 0.35rem; }
.foot-brand p { max-width: 34ch; }
.foot-slogan {
  font-size: 0.95rem;
  color: var(--signal);
  letter-spacing: -0.012em;
  margin-bottom: 0.85rem;
}
.foot-h {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dimmer); margin-bottom: 0.9rem; font-weight: 500;
}
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: 0.55rem; }
.foot-list a { color: var(--dim); text-decoration: none; font-size: 0.92rem; }
.foot-list a:hover { color: var(--text); }
.foot-legal { border-top: 1px solid var(--line-soft); padding-top: 1.6rem; display: grid; gap: 0.8rem; }
.foot-legal p { max-width: 88ch; }

/* ------------------------------------------------------------------ misc */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }

.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-soft); }

hr.rule { border: none; border-top: 1px solid var(--line-soft); margin-block: clamp(2.5rem, 5vw, 4rem); }

.prose h3 { margin-top: 2.4rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul { color: var(--dim); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
