/* ============================================================
   THE EQ LAB NETWORK — Design Tokens
   Palette drawn from the logo: navy badge, silver current, foam.
   Signature accent "sonar" (soft cyan) nods to echolocation —
   reading what's beneath the surface, the brand's whole idea.
   ============================================================ */

:root {
  --abyss: #0b121f;      /* deepest navy — hero, footer */
  --deep: #13233a;       /* secondary dark band */
  --deep-2: #1c3350;     /* card fill on dark */
  --silver: #c7cdd6;     /* logo's whale-silver, muted accents */
  --silver-dim: #8d97a6; /* secondary text on dark */
  --foam: #f5f6f4;       /* light section background */
  --foam-2: #ececea;     /* card fill on light */
  --ink: #16202c;        /* primary text on light */
  --ink-soft: #4b5563;   /* secondary text on light */
  --sonar: #5fd0c7;      /* signature accent — sparingly */
  --sonar-dim: rgba(95, 208, 199, 0.18);
  --line: rgba(199, 205, 214, 0.18);
  --line-dark: rgba(22, 32, 44, 0.1);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

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

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

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sonar);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--sonar);
  display: inline-block;
}
.eyebrow.on-light { color: #1f8f85; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sonar);
  outline-offset: 3px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 239, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand img { height: 40px; width: 40px; border-radius: 50%; }
.brand-text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.brand-text strong { color: var(--ink); display: block; font-size: 14px; letter-spacing: 0.1em; }
.brand-text span { color: var(--ink-soft); }

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: #1f8f85;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #1f8f85;
  color: var(--ink) !important;
  border-radius: var(--radius);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--sonar-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 18px;
}

/* ---------------- Hero / sonar signature ---------------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, #101c2e 0%, var(--abyss) 60%);
  color: var(--foam);
  overflow: hidden;
  padding: 120px 0 100px;
}
.sonar-field {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.sonar-ring {
  position: absolute;
  right: 6%;
  top: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(95, 208, 199, 0.35);
  transform: translate(50%, -50%) scale(1);
  animation: ping 5.5s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.sonar-ring.r2 { animation-delay: 1.4s; }
.sonar-ring.r3 { animation-delay: 2.8s; }
.sonar-ring.r4 { animation-delay: 4.2s; }
@keyframes ping {
  0% { transform: translate(50%, -50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(50%, -50%) scale(9); opacity: 0; }
}

.hero-inner { position: relative; max-width: 640px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); color: var(--foam); }
.hero .lede {
  font-size: 17.5px;
  color: var(--silver);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--sonar); color: var(--abyss); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(95, 208, 199, 0.25); }
.btn-ghost { color: var(--foam); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sonar); color: var(--sonar); }
.btn-ghost.on-light { color: var(--ink); border-color: var(--line-dark); }
.btn-ghost.on-light:hover { color: #1f8f85; border-color: var(--sonar); }

/* ---------------- Section rhythm ---------------- */
.section { padding: 96px 0; }
.section.on-dark { background: var(--deep); color: var(--foam); }
.section.on-abyss { background: var(--abyss); color: var(--foam); }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { color: var(--ink-soft); font-size: 16px; }
.on-dark .section-head p, .on-abyss .section-head p { color: var(--silver-dim); }

/* Depth framework (3-tier) */
.depth-scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.depth-tier {
  background: var(--deep-2);
  padding: 34px 28px;
  position: relative;
}
.depth-tier .depth-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sonar);
  margin-bottom: 14px;
  display: block;
}
.depth-tier h3 { color: var(--foam); font-size: 21px; margin-bottom: 10px; }
.depth-tier p { color: var(--silver-dim); font-size: 14.5px; margin-bottom: 0; }
.depth-tier::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--sonar));
  opacity: 0.6;
}

/* Card grids */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--sonar); transform: translateY(-2px); }
.card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #1f8f85;
  margin-bottom: 14px;
  display: block;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 0; }

.on-dark .card, .on-abyss .card {
  background: var(--deep-2);
  border-color: var(--line);
  color: var(--foam);
}
.on-dark .card p, .on-abyss .card p { color: var(--silver-dim); }

/* Values / list rows */
.value-rows { border-top: 1px solid var(--line-dark); }
.value-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}
.value-row h3 { font-size: 18px; margin: 0; }
.value-row p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* CTA banner */
.cta-banner {
  background: var(--abyss);
  color: var(--foam);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); max-width: 640px; margin: 0 auto 26px; }

/* Footer */
.site-footer {
  background: var(--abyss);
  color: var(--silver-dim);
  padding: 64px 0 30px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  color: var(--foam);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--sonar); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { height: 34px; width: 34px; border-radius: 50%; }
.footer-brand strong { color: var(--foam); font-family: var(--font-mono); letter-spacing: 0.08em; font-size: 14px; }
.footer-fine {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Page hero (non-home pages) */
.page-hero {
  background: var(--abyss);
  color: var(--foam);
  padding: 84px 0 60px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); max-width: 700px; }
.page-hero .lede { color: var(--silver-dim); max-width: 600px; font-size: 16.5px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.detail-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.detail-row .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #1f8f85; width: 110px; flex-shrink: 0; padding-top: 3px; }
.detail-row .v { color: var(--ink); font-size: 15px; }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: 0.03em; }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--ink-soft); }

/* Resource list */
.resource-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}
.resource-row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f8f85;
  background: rgba(95, 208, 199, 0.12);
  padding: 6px 10px;
  border-radius: 3px;
  text-align: center;
}
.resource-row h3 { font-size: 17px; margin: 0 0 4px; }
.resource-row p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Inline promo (homepage assessment callout) */
.inline-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--foam-2);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--sonar);
  border-radius: var(--radius);
  padding: 34px;
}
.inline-promo h3 { margin: 0 0 6px; font-size: 20px; }
.inline-promo p { margin: 0; color: var(--ink-soft); font-size: 14.5px; max-width: 520px; }
.inline-promo .btn { flex-shrink: 0; }

/* EQ components grid (5 items, wraps naturally) */
.grid.cols-eq {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Assessment quiz */
.quiz-shell {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 44px;
}
.quiz-item {
  border: none;
  border-bottom: 1px solid var(--line-dark);
  padding: 26px 0;
  margin: 0;
}
.quiz-item:first-child { padding-top: 0; }
.quiz-item legend {
  font-size: 15.5px;
  padding: 0;
  margin-bottom: 16px;
  color: var(--ink);
}
.quiz-item .component-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f8f85;
  margin-bottom: 8px;
}
.scale {
  display: flex;
  gap: 14px;
}
.scale-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.scale-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale-opt:has(input:checked) {
  background: var(--sonar);
  border-color: var(--sonar);
  color: var(--abyss);
  font-weight: 700;
}
.scale-opt:has(input:focus-visible) { outline: 2px solid var(--sonar); outline-offset: 2px; }
.scale-labels {
  display: flex;
  justify-content: space-between;
  max-width: 260px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}
.quiz-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 18px;
}
.quiz-warning {
  display: none;
  color: #b3462c;
  font-size: 13.5px;
  margin-top: 14px;
}
.quiz-warning.is-visible { display: block; }

.result-panel {
  display: none;
  margin-top: 40px;
  background: var(--abyss);
  color: var(--foam);
  border-radius: var(--radius);
  padding: 40px;
}
.result-panel.is-visible { display: block; }
.result-panel .band-name { font-size: 24px; margin-bottom: 8px; }
.result-panel .band-desc { color: var(--silver-dim); font-size: 15px; max-width: 560px; margin-bottom: 30px; }
.result-bar-row { margin-bottom: 16px; }
.result-bar-row .bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 6px;
}
.result-bar-track {
  height: 8px;
  background: var(--deep-2);
  border-radius: 4px;
  overflow: hidden;
}
.result-bar-fill {
  height: 100%;
  background: var(--sonar);
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* Shop / products */
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-card:hover { border-color: var(--sonar); transform: translateY(-2px); }
.product-photo {
  aspect-ratio: 4 / 3;
  background: var(--foam-2);
  border-bottom: 1px dashed var(--line-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  padding: 20px;
}
.product-photo svg { width: 34px; height: 34px; opacity: 0.5; }
.product-photo span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.product-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.product-price {
  font-family: var(--font-mono);
  font-size: 17px;
  color: #1f8f85;
  margin-bottom: 10px;
}
.product-card h3 { font-size: 19px; margin-bottom: 8px; }
.product-card p { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

.order-note {
  margin-top: 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* Photo gallery placeholders */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.photo-slot {
  aspect-ratio: 4 / 3;
  background: var(--deep-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--silver-dim);
}
.photo-slot svg { width: 30px; height: 30px; opacity: 0.5; }
.photo-slot span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}
.photo-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer newsletter subscribe */
.footer-subscribe { display: flex; gap: 8px; margin-top: 16px; max-width: 280px; }
.footer-subscribe input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--deep-2);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 13px;
}
.footer-subscribe input::placeholder { color: var(--silver-dim); }
.footer-subscribe button { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
.footer-subscribe-note { font-size: 12px; color: var(--silver-dim); margin-top: 8px; }

/* Newsletter page signup block */
.newsletter-signup {
  background: var(--abyss);
  color: var(--foam);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.newsletter-signup h2 { max-width: 520px; margin: 0 auto 10px; }
.newsletter-signup p { color: var(--silver-dim); max-width: 480px; margin: 0 auto 26px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--deep-2);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.newsletter-form input::placeholder { color: var(--silver-dim); }

/* Newsletter archive (native <details> accordion, no JS needed) */
.newsletter-issue {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.newsletter-issue summary {
  cursor: pointer;
  padding: 24px 26px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.newsletter-issue summary::-webkit-details-marker { display: none; }
.newsletter-issue .issue-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f8f85;
  margin-bottom: 6px;
  display: block;
}
.newsletter-issue summary h3 { margin: 0; font-size: 18px; }
.newsletter-issue summary .teaser { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.newsletter-issue .issue-body {
  padding: 0 26px 26px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid var(--line-dark);
}
.newsletter-issue .issue-body p { margin: 16px 0 0; }
.newsletter-issue[open] summary { border-bottom: 1px solid var(--line-dark); }
.chev { transition: transform 0.2s ease; flex-shrink: 0; }
.newsletter-issue[open] .chev { transform: rotate(180deg); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 940px) {
  .grid, .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr; }
  .depth-scale { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .resource-row { grid-template-columns: 70px 1fr; }
  .resource-row .btn { grid-column: 1 / -1; justify-self: start; }
  .inline-promo { flex-direction: column; align-items: flex-start; }
  .quiz-shell { padding: 26px; }
  .scale { gap: 8px; }
  .scale-opt { width: 36px; height: 36px; font-size: 13px; }
  .result-panel { padding: 26px; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-signup { padding: 30px; }
  .newsletter-issue summary { flex-direction: column; align-items: flex-start; gap: 10px; }
}
