
/* ==========================================================================
   NUB GENDER REVEAL — design tokens
   Concept: the ultrasound monitor itself. Dark instrument panels bookend
   warm, readable cream content. Pink/blue only ever appears at the moment
   of a reading, never as background decoration.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --navy-deep: #060a13;
  --navy: #0c1526;
  --navy-line: rgba(124, 245, 196, 0.18);
  --phosphor: #7cf5c4;
  --phosphor-dim: rgba(124, 245, 196, 0.35);
  --cream: #faf6ee;
  --cream-alt: #f1ead9;
  --ink: #14182a;
  --slate: #5c6478;
  --blush: #ec9fb2;
  --blush-dim: rgba(236, 159, 178, 0.45);
  --powder: #8ec1e8;
  --powder-dim: rgba(142, 193, 232, 0.45);
  --line: rgba(20, 24, 42, 0.1);
  --radius: 14px;
  --radius-sm: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--powder);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1em;
}
.eyebrow::before {
  content: '';
  width: 1.6em;
  height: 1px;
  background: var(--powder);
  display: inline-block;
}
.on-cream .eyebrow { color: #b8631f; }
.on-cream .eyebrow::before { background: #b8631f; }

p { margin: 0 0 1em; color: var(--slate); }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--navy-line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}
.wordmark.small { font-size: 0.9rem; color: var(--cream); }
.dial-mark { width: 30px; height: 20px; color: var(--blush); flex-shrink: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.site-nav a { color: var(--cream); text-decoration: none; opacity: 0.85; }
.site-nav a:hover { opacity: 1; }
.site-nav .nav-cta {
  border: 1px solid var(--powder);
  color: var(--powder);
  padding: 8px 16px;
  border-radius: 999px;
  opacity: 1;
}
.site-nav .nav-cta:hover { background: var(--powder); color: var(--navy-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blush); color: var(--navy-deep); }
.btn-primary:hover { background: #f4b9c9; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--cream); }
.btn-outline-light { border-color: var(--powder); color: var(--powder); }
.btn-outline-light:hover { background: var(--powder); color: var(--navy-deep); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Hero (monitor panel) ---------- */

.monitor {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.monitor::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(124, 245, 196, 0.05) 0px,
    rgba(124, 245, 196, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.hero {
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  color: var(--cream);
}
.hero h1 em {
  font-style: normal;
  color: var(--blush);
}
.hero p.lede {
  color: rgba(250, 246, 238, 0.72);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-note {
  margin-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--powder-dim);
  letter-spacing: 0.03em;
}

/* ---------- Confidence dial (signature element) ---------- */

.dial-card {
  background: var(--navy);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  position: relative;
}
.dial-card .dial-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.5);
  margin-bottom: 6px;
}
.dial-svg { width: 100%; max-width: 260px; margin: 0 auto; }
.dial-readout {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--blush);
  margin-top: -34px;
}
.dial-readout .unit { font-size: 1.2rem; opacity: 0.7; }
.dial-verdict {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.6);
  margin-top: 4px;
}
.dial-threshold {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--navy-line);
  font-size: 0.82rem;
  color: rgba(250, 246, 238, 0.55);
}
.dial-threshold strong { color: var(--blush); }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.on-cream { background: var(--cream); }
.on-cream-alt { background: var(--cream-alt); }
.on-navy { background: var(--navy-deep); color: var(--cream); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.on-navy .section-head p { color: rgba(250, 246, 238, 0.68); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.step .step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: #b8631f;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.96rem; }

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

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.method-card {
  background: #f5f9fd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.method-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 24, 42, 0.08);
}
.method-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.method-card .panel-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: #b8631f;
}
.method-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.method-card .read-more {
  margin-top: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink);
}
.card-thumb {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.gender-symbol-thumb {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gender-symbol-thumb svg { width: 68%; height: 68%; }
.section-support-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

/* ---------- Method detail page ---------- */

.method-hero {
  padding: 64px 0 48px;
}
.method-hero .panel-id {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--powder);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.method-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--cream); margin-top: 8px; }
.method-hero p.lede { color: rgba(250, 246, 238, 0.72); max-width: 60ch; }

.callout-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.reading-blocks {
  display: grid;
  gap: 24px;
  max-width: 760px;
}
.reading-block {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--powder-dim);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
}
.reading-block.caution { border-left-color: var(--blush); }
.reading-block h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.reading-block p:last-child { margin-bottom: 0; }

.method-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}
.method-nav a { text-decoration: none; }

/* ---------- Order page ---------- */

.order-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.order-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.order-panel h2 { font-size: 1.4rem; margin-bottom: 6px; }
.order-panel .panel-sub { font-size: 0.9rem; margin-bottom: 24px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
}
.field input:focus, .dropzone:focus-within {
  outline: 2px solid var(--powder);
  outline-offset: 1px;
}

.dropzone {
  border: 1.5px dashed var(--slate);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  background: var(--cream);
  position: relative;
  cursor: pointer;
}
.dropzone.has-file { border-color: var(--powder); border-style: solid; }
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dropzone .dz-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; color: var(--ink); }
.dropzone .dz-sub { font-size: 0.82rem; color: var(--slate); margin-top: 6px; }
.dropzone-preview {
  margin-top: 14px;
  display: none;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 0.85rem;
}
.dropzone-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }

.policy-box {
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.policy-box h3 { font-size: 1.1rem; color: var(--cream); }
.policy-box p { color: rgba(250, 246, 238, 0.72); font-size: 0.92rem; }
.policy-box .policy-row {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  padding: 10px 0;
  border-top: 1px solid var(--navy-line);
}
.policy-box .policy-row:first-of-type { border-top: none; }
.policy-box .policy-row strong { color: var(--blush); }

#shopify-buy-button-mount { margin-top: 22px; min-height: 52px; }
.buy-fallback {
  margin-top: 22px;
  font-size: 0.85rem;
  color: rgba(250, 246, 238, 0.6);
  border: 1px dashed var(--navy-line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.form-msg {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  margin-top: 14px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.error { color: #c1462e; }
.form-msg.ok { color: #1a7a4c; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--navy-line);
}
.footer-brand { max-width: 40ch; }
.footer-brand p { color: rgba(250, 246, 238, 0.6); font-size: 0.9rem; margin-top: 10px; }
.footer-links { display: flex; gap: 20px; font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; }
.footer-links a { text-decoration: none; color: rgba(250, 246, 238, 0.8); }
.footer-links a:hover { color: var(--blush); }
.footer-legal {
  max-width: var(--wrap);
  margin: 20px auto 0;
  padding: 0 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: rgba(250, 246, 238, 0.45);
}

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: #fdf6f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 24, 42, 0.08);
}
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.blog-card .panel-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: #b8631f;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.blog-card p { font-size: 0.9rem; margin-bottom: 0; }
.blog-card .read-more {
  margin-top: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink);
}

/* ---------- Prose (privacy page) ---------- */

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose ul { color: var(--slate); padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

.reading-block p a, .callout-box p a, .prose p a {
  color: var(--powder);
  text-decoration: underline;
  font-weight: 500;
}
.reading-block p a:hover, .callout-box p a:hover, .prose p a:hover { color: var(--blush); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid, .order-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--navy-line);
    display: none;
    gap: 18px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .policy-box { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.active-nav { opacity: 0.6; }
