/* ============================================================
   GenWealth 360 — The Physician's Wealth Code Landing Page
   Design tokens derived from reference brand build (dark navy /
   orange / teal physician-wealth authority palette).
   ============================================================ */

:root {
  --background: 210 20% 98%;
  --foreground: 209 60% 11%;
  --border: 210 16% 88%;
  --card: 0 0% 100%;
  --card-foreground: 209 60% 11%;
  --card-border: 210 16% 90%;

  --primary: 30 92% 57%;
  --primary-foreground: 209 60% 11%;
  --secondary: 196 100% 29%;
  --secondary-foreground: 0 0% 100%;

  --muted: 210 16% 93%;
  --muted-foreground: 209 14% 40%;
  --accent: 196 60% 92%;
  --accent-foreground: 196 100% 20%;

  --brand-ink: 30 85% 45%;
  --destructive: 0 72% 45%;
  --destructive-foreground: 0 0% 98%;

  --radius: 0.6rem;
  --font-sans: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", "IBM Plex Mono", Menlo, monospace;

  --max-w: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid hsla(var(--secondary), 0.4);
  background: hsla(var(--secondary), 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--secondary));
}

.eyebrow.orange {
  border-color: hsla(var(--primary), 0.4);
  background: hsla(var(--primary), 0.1);
  color: hsl(var(--brand-ink));
}

.section-label {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--brand-ink));
}

.section-title {
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.section {
  padding: 4rem 0;
  scroll-margin-top: 5rem;
}

.section-border-y {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.section-card-bg {
  background: hsl(var(--card));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(30 92% 48%);
}

.btn-primary:hover {
  background: hsl(30 92% 62%);
}

.btn-secondary {
  background: transparent;
  color: hsl(var(--secondary));
  border-color: hsla(var(--secondary), 1);
}

.btn-secondary:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-block {
  width: 100%;
}

.btn-lg {
  height: 3rem;
  font-size: 1rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: hsla(0, 0%, 100%, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: hsl(var(--border));
  background: hsla(0, 0%, 100%, 0.96);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-logo-sm {
  height: 26px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a:hover {
  color: hsl(var(--foreground));
}

.nav-cta {
  display: none;
}

@media (min-width: 640px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.4rem;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 85%;
  max-width: 22rem;
  background: hsl(var(--background));
  box-shadow: -10px 0 30px rgba(11, 27, 43, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem;
  gap: 0.25rem;
}

.mobile-menu-links a {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border));
}

.close-btn {
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0 4rem;
  background: hsl(var(--background));
}

@media (min-width: 768px) {
  .hero {
    padding: 8.5rem 0 6rem;
  }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(hsl(var(--foreground)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground)) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-headline {
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero-headline {
    font-size: 2.75rem;
  }
}

@media (min-width: 900px) {
  .hero-headline {
    font-size: 3.25rem;
  }
}

.hero-headline .accent {
  display: block;
  color: hsl(var(--primary));
}

.hero-copy {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .hero-copy {
    font-size: 1.1rem;
  }
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

.hero-tagline {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .hero-tagline {
    font-size: 0.9rem;
  }
}

.hero-book-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-book-img {
  position: relative;
  width: 100%;
  max-width: 20rem;
  border-radius: 0.6rem;
  box-shadow: 0 25px 60px -15px rgba(11, 27, 43, 0.35);
  border: 1px solid rgba(11, 27, 43, 0.08);
}

.hero-book-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
}

/* Credibility */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .stat-title {
    font-size: 1.15rem;
  }
}

.stat-sub {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.credibility-heading {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--brand-ink));
}

/* System section */
.system-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .system-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.system-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--card-border));
  background: hsl(var(--card));
  padding: 1.5rem;
}

.system-icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: hsla(var(--primary), 0.15);
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 1.1rem;
}

.system-step-label {
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--brand-ink));
}

.system-step-title {
  margin-top: 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.system-step-copy {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.system-footer {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 2.5rem;
  text-align: center;
}

/* Author section */
.author-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .author-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }
}

.author-portrait-wrap {
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .author-portrait-wrap {
    justify-content: flex-start;
    position: sticky;
    top: 6rem;
  }
}

.author-portrait {
  width: 100%;
  max-width: 19rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid hsla(255, 100%, 100%, 0.1);
}

.author-name {
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .author-name {
    font-size: 1.75rem;
  }
}

.author-role {
  margin-top: 0.35rem;
  color: hsl(var(--muted-foreground));
}

.author-copy {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
}

.author-copy strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.author-highlight-box {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  padding: 1.25rem;
}

.author-highlight-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
}

.author-highlight-row:first-child {
  margin-top: 0;
}

.author-stats {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  text-align: center;
}

.author-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
}

.author-stat-label {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
}

/* Book section */
.book-grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .book-grid {
    grid-template-columns: 0.75fr 1.25fr;
    align-items: start;
  }
}

.book-cover-wrap {
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .book-cover-wrap {
    justify-content: flex-start;
    position: sticky;
    top: 6rem;
  }
}

.book-cover-img {
  width: 100%;
  max-width: 19rem;
  border-radius: 0.6rem;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.book-title {
  font-size: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .book-title {
    font-size: 1.9rem;
  }
}

.book-copy {
  margin-top: 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  max-width: 38rem;
}

.book-benefits {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: hsl(var(--muted-foreground));
}

.book-benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.check-icon {
  flex-shrink: 0;
  color: hsl(var(--primary));
  margin-top: 0.15rem;
}

/* Lead capture card (waitlist form) */
.lead-card {
  margin-top: 2rem;
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--card-border));
  background: hsl(var(--card));
  padding: 1.5rem;
  box-shadow: 0 15px 40px -18px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .lead-card {
    padding: 1.85rem;
  }
}

.form-label-title {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--brand-ink));
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.25);
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

.form-checkbox-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-error {
  font-size: 0.8rem;
  color: hsl(var(--destructive));
  min-height: 1rem;
}

.form-footnote {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.form-success.active {
  display: block;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: hsla(var(--primary), 0.15);
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  max-width: 24rem;
  margin: 0 auto;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

.form-wrapper.submitted .form-fields-block {
  display: none;
}

/* Consultation section */
.consult-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .consult-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.consult-title {
  font-size: 1.75rem;
}

@media (min-width: 768px) {
  .consult-title {
    font-size: 2.1rem;
  }
}

.consult-copy {
  margin-top: 1.1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.consult-note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: hsl(var(--muted-foreground));
}

.consult-card {
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--card-border));
  background: hsl(var(--background));
  padding: 1.5rem;
  box-shadow: 0 15px 40px -18px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .consult-card {
    padding: 2rem;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand .brand-logo {
  height: 32px;
}

.footer-copy-line {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

.footer-disclaimer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.75rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  max-width: 52rem;
}

/* Utility */
.center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-prose {
  max-width: 42rem;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.hidden-until-js {
  visibility: hidden;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
