/* ============================================================
   BLINDFOLD — Design System v2 — Direction A: THE TRIAL
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --bg:              #F2EFEA;
  --bg-dark:         #0A0A0A;
  --bg-mid:          #111111;
  --signal:          #00CC5E;
  --caution:         #FF3500;
  --data:            #8A8A82;
  --text:            #0A0A0A;
  --text-dark:       #F2EFEA;
  --text-muted:      rgba(10,10,10,0.45);
  --text-muted-dark: rgba(242,239,234,0.45);
  --border:          rgba(10,10,10,0.10);
  --border-dark:     rgba(242,239,234,0.08);
  --font-d:          'Space Grotesk', system-ui, sans-serif;
  --font-m:          'Space Mono', 'Courier New', monospace;
  --max-w:           1080px;
  --nav-h:           60px;
  --ease:            cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-d);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }

/* ── LOGO COMPONENT ───────────────────────────────────────── */
/* The core brand mark: BLINDFOLD with the Signal Green bar
   cutting through the midpoint of every letter. Scales with font-size. */
.logo {
  font-family: var(--font-d);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: inherit;
  position: relative;
  display: inline-block;
  line-height: 1;
}
.logo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -0.05em;
  right: -0.05em;
  height: max(3px, 0.09em);
  background: var(--signal);
  transform: translateY(-50%);
  pointer-events: none;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 0 48px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav .logo {
  font-size: 19px;
  color: var(--text-dark);
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a:focus { color: var(--text-dark); outline: none; }
.nav-links a.nav-cta { color: var(--signal); }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.section {
  padding: 96px 48px;
}
.section-dark  { background: var(--bg-dark);  color: var(--text-dark); }
.section-light { background: var(--bg);       color: var(--text); }
.section-mid   { background: var(--bg-mid);   color: var(--text-dark); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-start { align-items: start; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.mono-label {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mono-label-dark {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.mono-signal {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--signal);
}
.display-xl {
  font-weight: 700;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display-lg {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.display-md {
  font-weight: 600;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.2;
}
.body-lg {
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}
.body-md {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
}
.body-sm {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
.section-light a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--signal);
}
.section-dark a:not(.btn) {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--signal);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
  padding: 14px 28px;
}
.btn-primary {
  background: var(--signal);
  color: #000;
}
.btn-primary:hover { background: #00b352; color: #000; }
.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
}
.btn-outline-dark:hover { border-color: var(--text-dark); color: var(--text-dark); }
.btn-outline-light {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline-light:hover { border-color: var(--text); color: var(--text); }

/* Age gate buttons */
button {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  padding: 15px 28px;
  transition: all 0.2s ease;
}
#yesButton {
  background: var(--signal);
  color: #000;
  width: 100%;
}
#yesButton:hover { background: #00b352; }
#noButton {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-dark);
  width: 100%;
}
#noButton:hover { border-color: rgba(242,239,234,0.4); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 72px 48px 64px;
  background: var(--bg-dark);
  color: var(--text-dark);
}
.hero-wordmark {
  font-size: clamp(56px, 11vw, 152px);
  color: var(--text-dark);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.store-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.store-btn {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── STEP LIST ────────────────────────────────────────────── */
.step-list { display: flex; flex-direction: column; }
.step-item {
  display: grid;
  grid-template-columns: 72px 1fr 140px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  gap: 32px;
  align-items: center;
}
.step-item:first-child { border-top: 1px solid var(--border); }
.step-num {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--data);
  padding-top: 2px;
}
.step-content { display: flex; flex-direction: column; gap: 6px; }
.step-title {
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
}
.step-desc {
  font-weight: 300;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}
.step-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 2px;
}

/* ── APP SCREENSHOTS ──────────────────────────────────────── */
.app-frame {
  display: inline-block;
  background: #080808;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.app-shot {
  display: block;
  border-radius: 9px;
  height: auto;
  width: auto;
  max-height: 68vh;
  max-width: 100%;
}

/* Legacy screenshot classes (used by index.js) */
.screenshot { max-height: 68vh; width: auto; }
.prefadein { opacity: 0; }

/* ── PREROLL LIST ─────────────────────────────────────────── */
.preroll-list-item {
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.brand-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.separator { border: none; border-top: 1px solid var(--border); }
.cannabis-type-title {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--data);
  margin: 6px 0 2px;
}
.preroll-list-item > p.product-name {
  font-weight: 400;
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}
.weight-title {
  font-family: var(--font-m);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text);
}
.dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── PITCH GRID (partner.html) ────────────────────────────── */
.pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pitch-cell {
  padding: 48px;
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pitch-cell + .pitch-cell { border-left: 0; }
.pitch-row-2 .pitch-cell { border-top: 0; }
.pitch-row-2 .pitch-cell + .pitch-cell { border-left: 0; }

.stat-num {
  font-weight: 700;
  font-size: clamp(52px, 7vw, 96px);
  color: var(--signal);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-top: 8px;
}

/* Compatible brands list */
.brands-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-tag {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  border: 1px solid var(--border-dark);
  padding: 8px 14px;
  border-radius: 2px;
}

/* ── RULE ─────────────────────────────────────────────────── */
.rule       { border: none; border-top: 1px solid var(--border); }
.rule-dark  { border: none; border-top: 1px solid var(--border-dark); }
.rule-signal { border: none; border-top: 2px solid var(--signal); width: 40px; }

/* ── AGE GATE ─────────────────────────────────────────────── */
#ageVerificationModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
#modalOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
}
#modalContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 2px;
  padding: 56px 44px;
  z-index: 1001;
  width: min(440px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}
.modal-logo-wrap {
  margin-bottom: 8px;
}
.modal-logo {
  font-size: 32px;
  color: var(--text-dark);
}
.modal-sub {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-top: 8px;
  margin-bottom: 36px;
}
.modal-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 56px 48px 48px;
}
.footer-logo { font-size: 22px; color: var(--text-dark); }
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.footer-links a {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-dark); }
.footer-legal {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.5px;
  color: rgba(242,239,234,0.18);
  line-height: 1.9;
  margin-top: 40px;
  max-width: 640px;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeinout {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  50%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 0; }
}
.fadeinout    { animation: fadein 1.67s ease 1.67s both; }
.fadeinoutslow { animation: fadeinout 12s ease infinite; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .pitch-grid { grid-template-columns: 1fr; }
  .pitch-cell + .pitch-cell { border-left: 1px solid var(--border-dark); border-top: 0; }
  .pitch-row-2 .pitch-cell { border-top: 0; }
}

@media (max-width: 768px) {
  .site-nav  { padding: 0 20px; }
  .hero      { padding: 48px 20px 44px; }
  .section   { padding: 64px 20px; }
  .step-item { grid-template-columns: 48px 1fr; }
  .step-photo { display: none; }
  .nav-links li:nth-child(n+4) { display: none; }
  .dgrid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas  { flex-direction: column; align-items: flex-start; }
  .store-buttons { flex-direction: column; align-items: flex-start; }
  .nav-links li:nth-child(n+3) { display: none; }
  .footer-links { gap: 20px; }
}
