/* ==========================================
   FAST MEDITATION — STYLESHEET
   ========================================== */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

/* === TOKENS === */
:root {
  /* Colors */
  --navy:       #0a1628;
  --navy-mid:   #0f2040;
  --teal:       #06b6d4;
  --teal-dark:  #0891b2;
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --black:      #0f172a;
  --muted:      #64748b;
  --border:     #e2e8f0;

  /* Solid text colors for dark backgrounds — no rgba */
  --on-dark:       #ffffff;
  --on-dark-sub:   #b8cce0;
  --on-dark-muted: #7a9ab8;

  /* Font families */
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Lora', Georgia, serif;

  /* 5-size font scale — minimum 18px */
  --fs-1: 1.125rem;                    /* 18px — base / minimum */
  --fs-2: 1.25rem;                     /* 20px */
  --fs-3: 1.5rem;                      /* 24px */
  --fs-4: 2rem;                        /* 32px */
  --fs-5: clamp(2.75rem, 6vw, 4rem);   /* 44–64px — h1 only */

  /* Layout */
  --nav-h:         68px;
  --container-max: 1100px;
  --section-pad:   5rem;
  --reveal-dur:    0.65s;
}

/* === ACCESSIBILITY === */
.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;
}

.skip-nav {
  position: absolute;
  top: -100%; left: 1rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  font-weight: 700;
  z-index: 200;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-nav:focus { top: 0; }

/* === BASE TYPOGRAPHY === */
body {
  font-family: var(--serif);
  font-size: var(--fs-1);
  color: var(--black);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-4); margin-bottom: 1.5rem; }
h3 { font-size: var(--fs-3); font-weight: 700; margin-bottom: 0.75rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

dfn { font-style: italic; font-weight: 600; }

.text-link {
  color: var(--teal-dark);
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--fs-1);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.text-link:hover { color: var(--teal); }

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn-cta {
  background: var(--teal);
  color: var(--navy);
  padding: 1rem 1.75rem;
  font-weight: 800;
}
.btn-cta:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-cta--light {
  background: var(--white);
  color: var(--navy);
}
.btn-cta--light:hover {
  background: var(--teal);
  color: var(--navy);
}

.btn-nav {
  background: var(--teal);
  color: var(--navy);
  padding: 0.625rem 1.25rem;
}
.btn-nav:hover { background: var(--teal-dark); color: var(--white); }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #162038;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  font-family: var(--sans);
  font-size: var(--fs-2);
  font-weight: 800;
  color: var(--on-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.site-logo .logo-tld { color: var(--teal); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
}

.site-nav ul a {
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 500;
  color: var(--on-dark-sub);
  text-decoration: none;
}
.site-nav ul a:hover { color: var(--on-dark); }
.site-nav ul a[aria-current="page"] { color: var(--on-dark); }

/* === NAV TOGGLE === */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
  border-radius: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === MOBILE MENU === */
.mobile-menu {
  background: var(--navy-mid);
  border-top: 1px solid #1e3355;
  padding: 1.5rem 20px 2rem;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu ul a {
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 500;
  color: var(--on-dark-sub);
  text-decoration: none;
}
.mobile-menu .btn {
  margin-top: 0.5rem;
  width: 100%;
}

/* === MAIN === */
main { padding-top: var(--nav-h); }

/* === SECTIONS === */
section { padding: var(--section-pad) 20px; }

/* === HERO === */
.section-hero {
  background: var(--navy);
  color: var(--on-dark);
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6.5rem;
}

.section-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-hero h1 {
  color: var(--on-dark);
  max-width: 800px;
  margin-bottom: 1.25rem;
  margin-top: 0.75rem;
}

.pre-headline {
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0 !important;
}

.hero-sub {
  font-size: var(--fs-2);
  color: var(--on-dark-sub);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* === OPT-IN FORM === */
.opt-in-form {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 560px;
}

.email-form { width: 100%; }

.form-row {
  display: flex;
  gap: 6px;
  background: var(--white);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.form-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: var(--fs-1);
  color: var(--black);
  background: transparent;
}
.form-row input[type="email"]::placeholder { color: #94a3b8; }

.form-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: var(--fs-1);
  color: var(--on-dark-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
  justify-content: center;
}
.form-note svg { flex-shrink: 0; }

/* === SECTION BODY === */
.section-body { background: var(--white); }
.section-alt  { background: var(--off-white); }

/* === WAVE STATES === */
.wave-states {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.wave-state {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.375rem;
}

.wave-state--target {
  border-color: var(--teal);
  background: #f0fdff;
}

.wave-state strong {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-2);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.wave-state p {
  font-size: var(--fs-1);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.wave-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 700;
  border-radius: 4px;
  padding: 0.25rem 0.625rem;
  margin-bottom: 0.625rem;
}

.wave-beta  { background: #fee2e2; color: #b91c1c; }
.wave-alpha { background: #d1fae5; color: #065f46; }
.wave-theta { background: #ddd6fe; color: #5b21b6; }

.wave-arrow {
  font-size: var(--fs-3);
  color: var(--teal);
  font-weight: 800;
  font-family: var(--sans);
  justify-self: center;
}

/* === BENEFITS LIST === */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem;
  background: var(--teal);
  color: var(--navy);
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 900;
  font-size: var(--fs-1);
  margin-top: 0.1rem;
}

.benefits-list strong {
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.benefits-list p {
  font-size: var(--fs-1);
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.55;
}

/* === FAQ === */
.faq-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

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

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 1.5rem;
  text-align: left;
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--black);
}
.faq-toggle:hover { background: var(--off-white); }
.faq-toggle[aria-expanded="true"] { color: var(--teal-dark); }

.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--muted);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; transition: transform 0.2s ease, opacity 0.2s ease; }
.faq-toggle[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-item dd {
  padding: 0 1.5rem 1.5rem;
  font-size: var(--fs-1);
  color: var(--muted);
  line-height: 1.7;
}
.faq-item dd p { margin-bottom: 0; }

/* === CTA SECTION === */
.section-cta {
  background: var(--navy);
  color: var(--on-dark);
  text-align: center;
}

.section-cta h2 { color: var(--on-dark); }

.cta-sub {
  font-size: var(--fs-2);
  color: var(--on-dark-sub);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 0;
}

.section-cta .opt-in-form { margin-inline: auto; }

/* === DEFINITION BOX === */
.definition-box {
  background: #f0fdff;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 1.375rem 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-size: var(--fs-1);
  color: var(--black);
  line-height: 1.65;
}
.definition-box strong {
  display: block;
  font-size: var(--fs-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

/* === FREQUENCY TABLE === */
.freq-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.freq-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: var(--fs-1);
}
.freq-table th {
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 700;
  text-align: left;
  padding: 1rem 1.25rem;
  white-space: nowrap;
}
.freq-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.freq-table tr:last-child td { border-bottom: none; }
.freq-table tr:nth-child(even) td { background: var(--off-white); }

.freq-badge {
  display: inline-block;
  font-size: var(--fs-1);
  font-weight: 700;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

/* === TIMELINE === */
.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0;
  position: relative;
}
.timeline-steps::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-step {
  display: flex;
  gap: 1.375rem;
  padding-bottom: 2rem;
  position: relative;
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-num {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  background: var(--navy);
  color: var(--on-dark);
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--fs-1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.timeline-step.step-target .timeline-num {
  background: var(--teal);
  color: var(--navy);
}

.timeline-content { padding-top: 0.5rem; }
.timeline-content strong {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.timeline-content p {
  font-size: var(--fs-1);
  color: var(--muted);
  line-height: 1.55;
}

/* === SAFETY BOX === */
.safety-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 1.375rem 1.5rem;
  font-family: var(--sans);
  font-size: var(--fs-1);
  color: #7c2d12;
  line-height: 1.6;
}
.safety-box strong { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.safety-box ul { list-style: disc; padding-left: 1.375rem; margin-top: 0.5rem; }
.safety-box ul li { margin-bottom: 0.25rem; }

/* === THANK-YOU PAGE === */
.page-thankyou main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 3rem 20px;
}

.thankyou-card {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

.check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem; height: 5rem;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  font-size: var(--fs-4);
  margin-bottom: 1.75rem;
}

.thankyou-card h1 { margin-bottom: 1rem; }

.thankyou-card p {
  font-size: var(--fs-2);
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.next-steps {
  background: var(--off-white);
  border-radius: 10px;
  padding: 1.75rem;
  text-align: left;
  margin-top: 2rem;
}

.next-steps h2 {
  font-size: var(--fs-1);
  font-family: var(--sans);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.next-steps ol {
  list-style: decimal;
  padding-left: 1.375rem;
  font-family: var(--sans);
  font-size: var(--fs-1);
  color: var(--black);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* === FOOTER === */
.site-footer {
  background: var(--black);
  padding: 3rem 20px;
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--fs-2);
  color: var(--on-dark);
  margin-bottom: 0;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--on-dark); }

.footer-legal {
  font-family: var(--sans);
  font-size: var(--fs-1);
  color: var(--on-dark-muted);
  margin-bottom: 0;
}

.footer-disclaimer {
  font-family: var(--sans);
  font-size: var(--fs-1);
  color: var(--on-dark-muted);
  max-width: 700px;
  line-height: 1.55;
  margin-bottom: 0;
}

/* === SCROLL REVEAL === */
.html-loaded [data-reveal] {
  opacity: 0;
  transition: opacity var(--reveal-dur) ease, transform var(--reveal-dur) ease;
}
.html-loaded [data-reveal="up"]    { transform: translateY(24px); }
.html-loaded [data-reveal="left"]  { transform: translateX(-28px); }
.html-loaded [data-reveal="right"] { transform: translateX(28px); }

.html-loaded [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.html-loaded [data-delay="1"] { transition-delay: 0.15s; }
.html-loaded [data-delay="2"] { transition-delay: 0.3s; }
.html-loaded [data-delay="3"] { transition-delay: 0.45s; }

/* === RESPONSIVE: 900px === */
@media (max-width: 900px) {
  .site-nav   { display: none; }
  .nav-toggle { display: flex; }

  .wave-states { grid-template-columns: 1fr; }
  .wave-arrow  { justify-self: start; transform: rotate(90deg); margin-left: 1.25rem; }
}

/* === RESPONSIVE: 500px === */
@media (max-width: 500px) {
  :root {
    --section-pad: 3.5rem;
    --nav-h: 60px;
  }

  .section-hero { padding-top: 4.5rem; padding-bottom: 5rem; }

  .form-row {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }
  .form-row input[type="email"] { padding: 0.875rem 1rem; }
  .btn-cta { width: 100%; padding: 1rem; }
}
