/* =============================================================================
   SIXTHSENSE — public site stylesheet
   Restraint over decoration. Inter everywhere, JetBrains Mono for numbers/IDs,
   Bebas Neue only for the wordmark + the big verdict numerals.
   ============================================================================= */

:root {
  --bg:           #000000;
  --bg-1:         #0a0a0a;
  --bg-2:         #111111;
  --bg-3:         #161616;

  --white:        #ffffff;
  --off-white:    #f2f2f2;
  --silver-1:     #c8c8c8;
  --silver-2:     #8a8a8a;
  --silver-3:     #6f6f6f;
  --silver-4:     #2a2a2a;

  --line-1:       rgba(255,255,255,0.06);
  --line-2:       rgba(255,255,255,0.14);
  --line-3:       rgba(255,255,255,0.28);

  --accent:       #c5232b;       /* Used sparingly — HIGH/SEVERE pills + primary CTA only */
  --accent-deep:  #7a0e1c;
  --tier-clean:   #6f6f6f;
  --tier-low:     #c8c8c8;
  --tier-medium:  #ffb300;
  --tier-high:    #c5232b;
  --tier-severe:  #ff3b3b;

  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'DM Mono', Menlo, Consolas, monospace;

  --maxw:         1280px;
  --pad:          24px;

  --t-fast:       150ms;
  --t-base:       240ms;
  --t-slow:       420ms;
  --ease:         cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute; top: -64px; left: 16px;
  background: var(--white); color: var(--bg);
  padding: 10px 14px; font-weight: 600; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

/* =============================================================================
   Topbar
   ============================================================================= */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-1);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.topbar-brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--white);
}
.topbar-brand-mark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.topbar-brand-mark .accent { color: var(--accent); }
.topbar-brand-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-2);
  border-left: 1px solid var(--line-2);
  padding-left: 12px;
}
.topbar-nav {
  display: flex; align-items: center; gap: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-1);
}
.topbar-nav a {
  transition: color var(--t-fast) var(--ease);
}
.topbar-nav a:hover { color: var(--white); }

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

.hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line-1);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ""; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(197,35,43, 0.7);
  animation: pulse 1800ms infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(197,35,43, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(197,35,43, 0); }
  100% { box-shadow: 0 0 0 0   rgba(197,35,43, 0); }
}

.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 180px);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 28px;
}
.hero-wordmark .accent { color: var(--accent); }

.hero-tagline {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  color: var(--silver-1);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-tagline strong { color: var(--white); font-weight: 600; }

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

.hero-side {
  border-left: 1px solid var(--line-2);
  padding-left: 32px;
}
@media (max-width: 900px) {
  .hero-side { border-left: 0; border-top: 1px solid var(--line-2); padding-left: 0; padding-top: 32px; }
}
.hero-side-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.hero-side-label::before {
  content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}
.feed {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.feed-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-1);
  font-family: var(--font-mono);
  font-size: 12px;
}
.feed-row:last-child { border-bottom: 0; }
.feed-name { color: var(--white); }
.feed-pct {
  font-weight: 700; min-width: 32px; text-align: right;
}
.feed-meta {
  grid-column: 1 / -1;
  font-family: var(--font-body); font-size: 11px;
  color: var(--silver-2);
  margin-top: -2px;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line-3);
  color: var(--white);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--white); color: var(--bg); border-color: var(--white); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); }

.btn-arrow::after {
  content: "→";
  font-family: var(--font-body);
  margin-left: 6px;
  transition: transform var(--t-fast) var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

.btn-ghost {
  border: 0;
  color: var(--silver-1);
  height: auto;
  padding: 0;
  font-size: 11px;
}
.btn-ghost:hover { background: transparent; color: var(--white); }

/* =============================================================================
   Section frame (used by Premise, Method, Manual, Acquire)
   ============================================================================= */

section { padding: 80px 0; border-bottom: 1px solid var(--line-1); }
section:last-of-type { border-bottom: 0; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--silver-2); margin-bottom: 16px;
}
.section-h {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 16px;
}
.section-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--silver-1);
  max-width: 640px;
}
.section-lede em { color: var(--white); font-style: normal; }

/* =============================================================================
   Premise (two-column: prose + dossier)
   ============================================================================= */

.premise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .premise-grid { grid-template-columns: 1fr; gap: 32px; }
}

.premise-prose { color: var(--silver-1); }
.premise-prose p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
}
.premise-prose p:last-child { margin-bottom: 0; }
.premise-prose strong { color: var(--white); font-weight: 600; }

.dossier-card {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  position: relative;
}
.dossier-stamp {
  position: absolute; top: 0; right: 0;
  font-size: 10px; letter-spacing: 0.2em;
  padding: 6px 12px;
  background: var(--accent); color: var(--white);
  text-transform: uppercase;
}
.dossier-label { color: var(--silver-2); }
.dossier-name {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 20px;
  margin: 12px 0 4px;
  letter-spacing: -0.01em;
}
.dossier-meta {
  color: var(--silver-1);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.dossier-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-2);
  border: 1px solid var(--line-2);
  margin-bottom: 24px;
}
.dossier-grid > div {
  background: var(--bg-1);
  padding: 12px;
  display: flex; flex-direction: column;
}
.dossier-grid .dl {
  font-family: var(--font-body);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver-2);
}
.dossier-grid .dv {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 600;
  color: var(--white);
  margin-top: 4px;
}
.dossier-bar {
  height: 8px; background: var(--silver-4);
  margin-bottom: 20px;
  position: relative;
}
.dossier-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
}
.dossier-verdict {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 16px;
}
.dossier-pct {
  font-family: var(--font-display);
  font-size: 64px; line-height: 0.85;
  color: var(--white);
}
.dossier-tier {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.dossier-quote {
  color: var(--silver-1);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin: 0;
}

/* =============================================================================
   Method (three frames)
   ============================================================================= */

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
}
.frame {
  background: var(--bg-1);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.frame-hd {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver-2);
}
.frame-hd .frame-num { color: var(--white); letter-spacing: 0.08em; }
.frame-body {
  background: var(--bg);
  border: 1px solid var(--line-1);
  padding: 24px;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver-1);
  position: relative;
}
.frame-body-tag {
  position: absolute; top: 8px; left: 12px;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver-3);
}
.frame-line { color: var(--silver-1); margin: 0 0 6px; }
.frame-line:last-child { margin-bottom: 0; }
.frame-line .ok { color: var(--white); }
.frame-line .accent { color: var(--accent); }
.frame-killer {
  text-align: center;
  margin-top: 18px;
}
.frame-killer-tag { font-size: 10px; letter-spacing: 0.2em; color: var(--silver-3); }
.frame-killer-name { font-size: 22px; color: var(--white); margin-top: 8px; letter-spacing: 0.02em; }
.frame-verdict {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 12px;
}
.frame-verdict-pct {
  font-family: var(--font-display);
  font-size: 56px; line-height: 0.85; color: var(--white);
}
.frame-verdict-tier {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
}
.frame-quote {
  color: var(--silver-1);
  font-style: italic;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
}
.frame-cap {
  color: var(--silver-1);
  font-size: 13px;
  line-height: 1.6;
}
.frame-cap-num {
  font-family: var(--font-mono);
  color: var(--accent);
  margin-right: 6px;
}

/* =============================================================================
   Signals manual
   ============================================================================= */

.signals { list-style: none; padding: 0; margin: 0; }
.signal-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line-1);
}
.signal-row:last-child { border-bottom: 1px solid var(--line-1); }
.signal-num {
  font-family: var(--font-mono);
  color: var(--silver-3);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.signal-h {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}
.signal-row p {
  margin: 0;
  font-size: 15px;
  color: var(--silver-1);
  line-height: 1.6;
}
.signal-row p em { color: var(--white); font-style: normal; }

/* =============================================================================
   Acquire (embedded Stripe Payment Element)
   ============================================================================= */

.acquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .acquire-grid { grid-template-columns: 1fr; gap: 32px; }
}

.product-card {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  padding: 32px;
}
.product-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 6px;
}
.product-mark .accent { color: var(--accent); }
.product-version {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--silver-2);
  margin-bottom: 24px;
}
.product-price {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 4px;
}
.product-price-suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: 24px;
}
.product-includes {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px;
  color: var(--silver-1);
}
.product-includes li {
  display: flex; gap: 10px;
  align-items: flex-start;
}
.product-includes li::before {
  content: "";
  width: 4px; height: 4px;
  margin-top: 9px;
  background: var(--accent);
  flex-shrink: 0;
}

.checkout-panel {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  padding: 32px;
}
.checkout-h {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin: 0 0 24px;
}
#payment-element { margin-bottom: 24px; }
.field-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  display: block;
  margin: 16px 0 6px;
}
.field-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--white);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--t-fast) var(--ease);
}
.field-input:focus { outline: 0; border-color: var(--white); }

.checkout-submit {
  width: 100%;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--white);
  padding: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  margin-top: 12px;
}
.checkout-submit:hover:not(:disabled) { background: var(--accent-deep); border-color: var(--accent-deep); }
.checkout-submit:disabled { opacity: 0.55; cursor: wait; }

.checkout-error {
  margin-top: 12px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
  min-height: 1.4em;
}

.checkout-fineprint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-1);
  font-size: 11px;
  color: var(--silver-2);
  line-height: 1.7;
}
.checkout-fineprint .stripe {
  color: var(--white);
  font-weight: 600;
}

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

.foot {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-1);
  color: var(--silver-2);
  font-size: 12px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
.foot-mark {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
}
.foot-mark .accent { color: var(--accent); }
.foot-line { color: var(--silver-2); margin: 4px 0; font-family: var(--font-mono); font-size: 11px; }
.foot-legal {
  border-top: 1px solid var(--line-1);
  padding-top: 24px;
  font-size: 11px;
  color: var(--silver-3);
  line-height: 1.6;
}

/* =============================================================================
   Status pages (success / cancel) — single-column narrow layout
   ============================================================================= */

.status-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px;
}
.status-stamp {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 24px;
}
.status-stamp-ok    { background: var(--accent); color: var(--white); }
.status-stamp-warn  { background: var(--tier-medium); color: var(--bg); }
.status-stamp-fail  { background: var(--silver-4); color: var(--silver-1); }
.status-h {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: var(--white);
}
.status-lede {
  font-size: 17px;
  color: var(--silver-1);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 560px;
}
.status-lede strong { color: var(--white); }

.license-card {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  padding: 24px;
  margin-bottom: 28px;
}
.license-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin-bottom: 10px;
}
.license-key-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.license-key {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 12px 16px;
  flex: 1;
}
.license-copy {
  height: 48px; padding: 0 16px;
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  background: transparent; color: var(--white);
  border: 1px solid var(--line-3); cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.license-copy:hover { background: var(--white); color: var(--bg); }
.license-warn {
  font-size: 12px; color: var(--silver-1);
  margin-top: 16px;
  line-height: 1.6;
}
.license-warn strong { color: var(--white); }

.download-cta {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--accent);
  padding: 24px;
  margin-bottom: 28px;
  transition: background var(--t-fast) var(--ease);
}
.download-cta:hover { background: var(--bg-2); }
.download-cta-l { display: flex; flex-direction: column; gap: 4px; }
.download-cta-tag { font-size: 10px; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; }
.download-cta-name {
  font-family: var(--font-display);
  font-size: 28px; color: var(--white); letter-spacing: 0.02em;
}
.download-cta-meta { font-family: var(--font-mono); font-size: 11px; color: var(--silver-2); }
.download-cta-arrow { font-size: 28px; color: var(--accent); }

/* =============================================================================
   Misc
   ============================================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
