/* basalmind-com/assets/css/main.css
   Depends on tokens.css being loaded first. */

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background-color: var(--basal-bg);
  color: var(--basal-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  font-size: 1.0625rem;
  color: var(--basal-text-secondary);
}

a {
  color: var(--basal-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: var(--basal-accent-light);
  text-decoration: underline;
  outline: none;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  width: 100%;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--basal-border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--basal-text);
}

/* ============================================================
   CTA BUTTON
   ============================================================ */

.cta-primary {
  display: inline-block;
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--basal-bg);
  background: var(--basal-accent);
  padding: 0.875rem 1.75rem;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  border-radius: 2px;
  margin-top: 1.75rem;
}

.cta-primary:hover,
.cta-primary:focus {
  background: var(--basal-accent-light);
  color: var(--basal-bg);
  text-decoration: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  width: 100%;
  padding: 5rem 2rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--basal-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--basal-accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--basal-text-bright);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--basal-text-muted);
  max-width: 640px;
  line-height: 1.8;
}

/* ============================================================
   SECTION LABEL (eyebrow for non-hero sections)
   ============================================================ */

.section-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--basal-accent);
  margin-bottom: 0.75rem;
}

/* ============================================================
   GAP SECTION -- editorial contrast (no equal cards)
   ============================================================ */

.gap-section {
  width: 100%;
  padding: 4rem 2rem;
  border-top: 1px solid var(--basal-border);
}

.gap-section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.875rem);
  color: var(--basal-text-heading);
  margin-bottom: 2rem;
  font-style: italic;
}

.gap-contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--basal-border-subtle);
}

.gap-contrast-tag {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--basal-text-dim);
  margin-bottom: 0.6rem;
}

.gap-contrast-col p {
  font-size: 0.9375rem;
  color: var(--basal-text-muted);
  line-height: 1.8;
}

.gap-resolution {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--basal-text-secondary);
  max-width: 640px;
  line-height: 1.8;
  border-left: 2px solid var(--basal-accent-border);
  padding-left: 1.25rem;
}

/* ============================================================
   HOW IT WORKS -- progressive disclosure steps
   ============================================================ */

.how-section {
  width: 100%;
  padding: 4rem 2rem;
  border-top: 1px solid var(--basal-border);
}

.how-section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.875rem);
  color: var(--basal-text-heading);
  margin-bottom: 2rem;
  font-style: italic;
}

.steps-disclosure {
  display: flex;
  flex-direction: column;
}

.step-disclosure {
  border-top: 1px solid var(--basal-border-strong);
}

.step-disclosure:last-of-type {
  border-bottom: 1px solid var(--basal-border-strong);
}

.step-disclosure > summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  user-select: none;
}

.step-disclosure > summary::-webkit-details-marker {
  display: none;
}

.step-disclosure > summary:focus-visible {
  outline: 2px solid var(--basal-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.step-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--basal-accent);
  opacity: 0.7;
  flex-shrink: 0;
  padding-top: 0.2rem;
  min-width: 2rem;
}

.step-summary-text {
  flex: 1;
}

.step-summary-text h3 {
  font-size: 1.125rem;
  color: var(--basal-text);
  margin-bottom: 0.2rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-hook {
  font-size: 0.9375rem;
  color: var(--basal-text-dim);
  line-height: 1.6;
}

.step-disclosure[open] .step-hook {
  display: none;
}

.step-arrow {
  font-size: 1.25rem;
  color: var(--basal-accent);
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  flex-shrink: 0;
  transition: transform 0.22s ease;
  line-height: 1;
  align-self: center;
}

.step-disclosure[open] .step-arrow {
  transform: rotate(45deg);
}

/* CSS grid trick -- no JS, no max-height jank */
.step-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.step-disclosure[open] .step-body-wrap {
  grid-template-rows: 1fr;
}

.step-body-inner {
  overflow: hidden;
}

.step-body-inner p {
  font-size: 0.9375rem;
  color: var(--basal-text-muted);
  line-height: 1.8;
  padding-bottom: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .step-body-wrap,
  .step-arrow {
    transition: none;
  }
}

/* ============================================================
   WHO THIS IS FOR -- editorial list (no card borders)
   ============================================================ */

.who-section {
  width: 100%;
  padding: 4rem 2rem;
  border-top: 1px solid var(--basal-border);
}

.who-section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.875rem);
  color: var(--basal-text-heading);
  margin-bottom: 1.75rem;
  font-style: italic;
}

.who-editorial {
  display: flex;
  flex-direction: column;
}

.who-item {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--basal-border);
}

.who-item:last-child {
  border-bottom: 1px solid var(--basal-border);
}

.who-item h3 {
  font-size: 1.0625rem;
  color: var(--basal-text-heading);
  font-style: italic;
  line-height: 1.4;
  padding-top: 0.1rem;
}

.who-item p {
  font-size: 0.9375rem;
  color: var(--basal-text-muted);
  line-height: 1.8;
}

/* ============================================================
   PULL MOMENT -- single typographic callout per page
   ============================================================ */

.pull-moment {
  width: 100%;
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--basal-border);
  text-align: center;
}

.pull-moment blockquote {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  font-style: italic;
  color: var(--basal-accent-light);
  max-width: 600px;
  line-height: 1.55;
  margin: 0 auto;
  border: none;
}

/* ============================================================
   FOUNDER CREDIBILITY
   ============================================================ */

.founder-section {
  width: 100%;
  padding: 4rem 2rem;
  border-top: 1px solid var(--basal-border);
  text-align: center;
}

.founder-quote {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--basal-text-heading);
  max-width: 720px;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
  font-style: italic;
}

.founder-byline {
  font-size: 0.875rem;
  color: var(--basal-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.founder-democratize {
  font-size: 1.0625rem;
  color: var(--basal-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   LIVE PROOF SECTION
   ============================================================ */

.proof-section {
  width: 100%;
  padding: 4rem 2rem;
  border-top: 1px solid var(--basal-border);
}

.proof-section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.875rem);
  color: var(--basal-text-heading);
  margin-bottom: 1rem;
  font-style: italic;
}

.proof-text {
  font-size: 1.0625rem;
  color: var(--basal-text-muted);
  max-width: 680px;
  margin-bottom: 0.85rem;
  line-height: 1.8;
}

.poc-link {
  display: inline-block;
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--basal-accent);
  border: 1px solid var(--basal-accent-border);
  padding: 0.75rem 1.5rem;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.poc-link:hover,
.poc-link:focus {
  background: var(--basal-accent-glow);
  border-color: var(--basal-accent);
  color: var(--basal-accent-light);
  text-decoration: none;
}

/* ============================================================
   BUILD JOURNAL
   ============================================================ */

.build-journal {
  width: 100%;
  padding: 5rem 2rem 6rem;
  border-top: 1px solid var(--basal-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.build-journal::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center bottom, var(--basal-accent-glow-soft) 0%, transparent 70%);
  pointer-events: none;
}

.build-journal .container {
  position: relative;
  z-index: 1;
}

.build-journal h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--basal-text-bright);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.journal-day-denom {
  font-size: 0.45em;
  font-style: normal;
  color: var(--basal-text-dim);
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.journal-premise {
  font-size: 1.0625rem;
  color: var(--basal-text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.journal-feed {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.journal-entry {
  padding-left: 1.25rem;
  border-left: 2px solid var(--basal-accent-border);
}

.journal-entry-date {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--basal-accent);
  margin-bottom: 0.4rem;
}

.journal-entry-text {
  font-size: 0.9375rem;
  color: var(--basal-text-muted);
  line-height: 1.7;
  margin: 0;
}

.journal-subscribe {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.journal-subscribe-label {
  color: var(--basal-text-dim);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journal-subscribe-sep {
  color: var(--basal-surface-mid);
  /* decorative separator -- not meaningful text */
}

.journal-contribute {
  font-size: 0.9375rem;
  color: var(--basal-text-dim);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.journal-consult-link {
  font-size: 0.875rem;
  color: var(--basal-text-ghost);
}

.journal-consult-link a {
  color: var(--basal-text-ghost);
}

.journal-consult-link a:hover,
.journal-consult-link a:focus-visible {
  color: var(--basal-text-dim);
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  width: 100%;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--basal-border-faint);
  text-align: center;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--basal-text-ghost);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.75rem;
  color: var(--basal-text-ghost);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.footer-nav a:hover {
  color: var(--basal-text-dim);
  text-decoration: none;
}

/* ============================================================
   MOBILE (max-width: 640px)
   ============================================================ */

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .cta-primary {
    display: block;
    text-align: center;
    padding: 1rem 1.25rem;
    min-height: 44px;
  }

  .gap-section,
  .how-section,
  .who-section,
  .proof-section {
    padding: 2.5rem 1.25rem;
  }

  .gap-contrast {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step-disclosure > summary {
    gap: 1rem;
    padding: 1.25rem 0;
    min-height: 44px;
    align-items: center;
  }

  .who-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .pull-moment {
    padding: 2.5rem 1.25rem;
  }

  .build-journal {
    padding: 3rem 1.25rem 4rem;
  }

  .poc-link {
    display: block;
    text-align: center;
    padding: 1rem 1.25rem;
    min-height: 44px;
  }

  .site-footer {
    padding: 1.25rem;
  }
}
