/* ═══════════════════════════════════════════════════════
   DaySteps — Shared Stylesheet
   Brandbook-derived tokens, shared nav, footer, modal, utilities
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Brand palette — from Brandbook v1.0 */
  --daybreak-gold:   #E4A14F;
  --dusk-gold:       #D2A66D;
  --gold-pale:       rgba(228, 161, 79, 0.10);
  --nocturne-blue:   #1E3150;
  --twilight-blue:   #40577C;
  --horizon-blue:    #6A8EAB;
  --teal-shadow:     #81AAB4;
  --mist-grey:       #A0A9B0;
  --cream-linen:     #F8F4EA;

  /* Semantic aliases */
  --accent:          var(--daybreak-gold);
  --accent-hover:    var(--dusk-gold);
  --bg-page:         var(--cream-linen);
  --bg-navy:         var(--nocturne-blue);
  --bg-navy-mid:     #243C5E;
  --text-primary:    #2C3E50;
  --text-secondary:  #556B7A;
  --text-tertiary:   #7A8A96;
  --text-on-dark:    var(--cream-linen);
  --text-on-dark-secondary: #C8C0B0;
  --text-on-dark-tertiary:  #9EA8B4;
  --border-light:    rgba(44, 62, 80, 0.10);
  --border-dark:     rgba(255, 255, 255, 0.12);
  --card-light:      #FFFFFF;
  --card-dark:       rgba(255, 255, 255, 0.07);

  /* Layout */
  --nav-h:     68px;
  --max-w:     1200px;
  --r:         14px;
  --r-sm:      10px;
  --r-lg:      20px;

  /* Typography */
  --font:      'Lexend', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }

/* ── TYPOGRAPHY ── */
.label-sm {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.label-sm-on-dark { color: var(--accent); }
.label-sm-muted {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-tertiary);
}

h1, h2, h3 { font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }

.body-lg { font-size: 18px; font-weight: 300; line-height: 1.75; }
.body-md { font-size: 16px; font-weight: 300; line-height: 1.7; }
.body-sm { font-size: 14px; font-weight: 300; line-height: 1.7; }
.body-xs { font-size: 12px; font-weight: 400; }

/* ── LAYOUT ── */
.contain {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; inset: 0 0 auto;
  z-index: 200; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(30, 49, 80, 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo svg { height: 36px; width: auto; }
.nav-wordmark { font-size: 20px; font-weight: 600; color: var(--cream-linen); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 13px; font-weight: 400;
  color: var(--text-on-dark-secondary);
  padding: 4px 0; position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  border-radius: 2px; transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--cream-linen); }
.nav-links a[aria-current="page"] {
  color: var(--accent); font-weight: 500;
}
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  height: 38px; padding: 0 22px;
  font-size: 13px; font-weight: 600;
  color: var(--bg-navy); background: var(--accent);
  border: none; border-radius: 100px;
  transition: background 0.18s, transform 0.14s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.nav-cta:active { transform: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 6px;
  background: none; border: none; border-radius: 8px;
}
.nav-hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--cream-linen); transition: all 0.22s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); inset-inline: 0; bottom: 0;
  z-index: 195;
  background: rgba(30, 49, 80, 0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  flex-direction: column; padding: 24px 0;
}
.mobile-menu.open { display: flex; animation: menuDrop 0.2s ease; }
@keyframes menuDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu a {
  display: block; padding: 16px 28px;
  font-size: 18px; font-weight: 300;
  color: var(--text-on-dark-secondary);
  transition: background 0.12s, color 0.12s;
}
.mobile-menu a:hover { background: var(--gold-pale); color: var(--cream-linen); }
.mobile-menu a[aria-current="page"] { color: var(--accent); font-weight: 500; }
.mobile-menu-divider { height: 1px; background: var(--border-dark); margin: 12px 28px; }
.mobile-menu-cta {
  margin: 8px 28px 0; padding: 16px 28px;
  background: var(--accent); color: var(--bg-navy);
  border: none; border-radius: 100px;
  font-size: 16px; font-weight: 600; text-align: center;
  transition: background 0.18s;
}
.mobile-menu-cta:hover { background: var(--accent-hover); }

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* ── FORMS ── */
.form-row { display: flex; gap: 10px; }
.form-input {
  flex: 1; height: 52px; padding: 0 20px;
  font-family: var(--font); font-size: 14px;
  background: #fff; color: var(--text-primary);
  border: 1.5px solid var(--border-light);
  border-radius: 100px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(228, 161, 79, 0.15);
}

/* Dark form variant */
.on-dark .form-input,
.form-input--dark {
  background: var(--card-dark);
  color: var(--cream-linen);
  border-color: var(--border-dark);
}
.on-dark .form-input::placeholder,
.form-input--dark::placeholder { color: var(--text-on-dark-tertiary); }

.form-btn {
  height: 52px; padding: 0 28px;
  font-size: 14px; font-weight: 600;
  color: var(--bg-navy); background: var(--accent);
  border: none; border-radius: 100px; white-space: nowrap;
  transition: background 0.18s, transform 0.14s;
}
.form-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.form-btn:active { transform: none; }

.form-note { margin-top: 10px; font-size: 12px; color: var(--text-tertiary); }
.on-dark .form-note { color: var(--text-on-dark-tertiary); }

.form-success {
  display: none; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--accent);
  height: 52px;
}
.form-success.visible { display: flex; }

/* ── PHONE MOCKUPS ── */
.phone-frame {
  border-radius: 36px; overflow: hidden;
  box-shadow:
    0 0 0 8px rgba(44, 62, 80, 0.08),
    0 24px 64px rgba(44, 62, 80, 0.18);
}
.phone-frame img { display: block; width: 100%; }

.phone-frame--dark {
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.10),
    0 0 0 11px rgba(255, 255, 255, 0.05),
    0 28px 64px rgba(0, 0, 0, 0.4);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── TRUST BAR ── */
.trust-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  padding: 20px 48px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.trust-bar span {
  font-size: 12px; font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 6px;
}
.trust-bar svg {
  width: 14px; height: 14px;
  color: var(--horizon-blue);
}

/* ── SECTION BACKGROUNDS ── */
.bg-cream { background: var(--cream-linen); }
.bg-white { background: #fff; }
.bg-navy { background: var(--bg-navy); color: var(--text-on-dark); }
.bg-navy-mid { background: var(--bg-navy-mid); color: var(--text-on-dark); }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-navy);
  color: var(--text-on-dark);
  padding: 64px 48px 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .nav-wordmark { font-size: 22px; margin-bottom: 12px; display: block; }
.footer-brand p {
  font-size: 14px; font-weight: 300;
  color: var(--text-on-dark-secondary);
  line-height: 1.7; max-width: 380px;
}
.footer-cta-area h3 {
  font-size: 24px; margin-bottom: 8px;
  color: var(--cream-linen);
}
.footer-cta-area p {
  font-size: 14px; font-weight: 300;
  color: var(--text-on-dark-secondary);
  margin-bottom: 20px; line-height: 1.6;
}
.footer-cta-area .form-row { max-width: 420px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
}
.footer-links {
  display: flex; gap: 24px;
}
.footer-links a {
  font-size: 13px; font-weight: 400;
  color: var(--text-on-dark-secondary);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--cream-linen); }
.footer-legal {
  font-size: 11px; color: var(--text-on-dark-tertiary);
  line-height: 1.6;
}
.footer-badges {
  display: flex; gap: 10px; align-items: center;
}
.badge-pill {
  font-size: 11px; font-weight: 500;
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark-secondary);
}
.badge-pill--accent {
  background: var(--gold-pale);
  border-color: transparent;
  color: var(--accent);
}

@media (max-width: 768px) {
  .contain { padding-left: 20px; padding-right: 20px; }
  .trust-bar { padding: 16px 20px; gap: 16px; }
  .site-footer { padding: 48px 20px 24px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-badges { justify-content: center; }
  .form-row { flex-direction: column; }
  .form-input { width: 100%; }
  .form-btn { width: 100%; }
}

/* ── WAITLIST MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(10, 20, 35, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; animation: mfade 0.2s ease; }
@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff; border-radius: var(--r-lg);
  padding: 48px 40px; max-width: 460px; width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  animation: mup 0.25s ease; position: relative;
}
@keyframes mup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none;
  color: var(--text-tertiary); font-size: 18px;
  padding: 6px 8px; border-radius: 8px;
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.05); }

.modal .label-sm { margin-bottom: 10px; }
.modal h3 {
  font-size: 24px; line-height: 1.2;
  margin-bottom: 10px; color: var(--text-primary);
}
.modal-sub {
  font-size: 14px; font-weight: 300;
  color: var(--text-secondary); margin-bottom: 24px;
  line-height: 1.65;
}
.modal .form-row { flex-direction: column; }
.modal .form-input { width: 100%; }
.modal .form-btn { width: 100%; height: 50px; }
.modal-foot {
  margin-top: 12px; font-size: 12px;
  color: var(--text-tertiary); text-align: center;
}

/* ── PLACEHOLDER SECTION ── */
.placeholder-section {
  border: 2px dashed var(--border-light);
  border-radius: var(--r-lg);
  padding: 48px;
  text-align: center;
  color: var(--text-tertiary);
}
.placeholder-section h3 {
  font-size: 18px; font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.placeholder-section p {
  font-size: 14px; font-weight: 300;
}

/* ── UTILITY ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── ICON SYSTEM (Lucide via inline SVG) ── */
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.icon svg {
  width: 100%; height: 100%;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 28px; height: 28px; }
.icon--sm { width: 16px; height: 16px; }
