/* TrueMatch Date components
   Header, footer, buttons, cards, forms, banners.
   Keep class names and structure so the mobile app can mirror them. */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--color-body);
  background: var(--color-white);
}

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

a { color: var(--color-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: var(--color-teal); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-navy);
  line-height: var(--leading-display);
}

h1 { font-size: var(--text-h1); margin: 0 0 16px; }
h2 { font-size: var(--text-h2); margin: 0 0 12px; }
h3 { font-size: var(--text-h3); margin: 0 0 8px; }

:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--color-navy);
  color: var(--color-cream);
  padding: 8px 14px;
  border-radius: var(--radius-button);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--color-cream); }

.wrap { width: min(100% - (var(--space-page) * 2), var(--max-wide)); margin-inline: auto; }
.wrap-text { width: min(100% - (var(--space-page) * 2), var(--max-text)); margin-inline: auto; }

/* Header — white bar so the full-color light logo pops on a clean field */
.site-header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 30, 61, 0.10);
  box-shadow: 0 2px 10px rgba(15, 30, 61, 0.06);
}

.header-inner {
  width: min(100% - (var(--space-page) * 2), var(--max-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-link:hover { text-decoration: none; }
.logo-link img { height: var(--header-logo-height); width: auto; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border: 0;
  background: transparent;
  color: var(--color-navy);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
}

.nav-panel { display: none; }
.nav-panel.is-open { display: block; padding: 0 var(--space-page) 16px; }

.nav-panel a,
.nav-desk a {
  display: block;
  padding: 10px 0;
  color: var(--color-navy);
  font-weight: 500;
  font-size: var(--text-nav);
  text-decoration: none;
}
.nav-panel a:hover,
.nav-desk a:hover { color: var(--color-teal); text-decoration: none; }
.nav-panel a[aria-current="page"],
.nav-desk a[aria-current="page"] {
  color: var(--color-teal);
  font-weight: 600;
}

.nav-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nav-desk,
.header-actions-desk { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 20px;
  border-radius: var(--radius-button);
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  background: transparent;
}
.btn:hover { text-decoration: none; }
.btn:disabled,
.btn[aria-disabled="true"] { cursor: default; opacity: 0.95; }
.btn-primary { background: var(--color-coral); color: var(--color-navy); }
.btn-primary:hover { filter: brightness(0.97); }
.btn-secondary { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-secondary.on-navy { color: var(--color-white); border-color: var(--color-white); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }

.coming {
  display: block;
  margin-top: 8px;
  font-size: var(--text-caption);
  color: var(--color-body);
  opacity: 0.8;
}

/* Hero — light cream, navy type, large full-color logo. No dark banner. */
.hero {
  background:
    radial-gradient(ellipse 70% 55% at 12% 20%, rgba(20, 184, 166, 0.10) 0%, transparent 62%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(255, 127, 110, 0.08) 0%, transparent 58%),
    var(--color-white);
  color: var(--color-navy);
  padding: 48px 0 56px;
}
.hero h1,
.hero p { color: var(--color-navy); }
.hero .logo { height: var(--hero-logo-height); width: auto; margin-bottom: 28px; }
.eyebrow {
  font: 600 13px/1.3 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 12px;
}
.hero .lede { font-size: var(--text-body); max-width: 36em; margin-bottom: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .coming { color: var(--color-body); }

/* Sections */
.section { padding: var(--space-section) 0; }
.section.alt { background: var(--color-cream); }
/* Keep .section.navy for any true navy band, but marketing waitlist is light. */
.section.navy { background: var(--color-navy); color: var(--color-cream); }
.section.navy h2,
.section.navy p,
.section.navy label,
.section.navy .coming { color: var(--color-cream); }

.section.waitlist {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(20, 184, 166, 0.10) 0%, transparent 65%),
    var(--color-white);
  color: var(--color-navy);
  border-top: 1px solid rgba(15, 30, 61, 0.06);
  border-bottom: 1px solid rgba(15, 30, 61, 0.06);
}
.section.waitlist h2,
.section.waitlist p,
.section.waitlist label,
.section.waitlist .coming { color: var(--color-body); }
.section.waitlist h2 { color: var(--color-navy); }
.center { text-align: center; }

.steps {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.steps-4 { grid-template-columns: 1fr; }

.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.section.alt .card { background: var(--color-white); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-teal-wash);
  color: var(--color-teal);
  font: 600 14px/1 var(--font-body);
  margin-bottom: 10px;
}

.safety-link { font-weight: 600; }

.form-row { margin: 20px auto 0; max-width: 420px; text-align: left; }
label { display: block; font-weight: 600; font-size: 14px; color: var(--color-navy); margin-bottom: 6px; }
input[type="email"] {
  width: 100%;
  min-height: var(--tap-min);
  border: 1px solid var(--color-navy-20);
  border-radius: var(--radius-button);
  padding: 0 14px;
  font: 400 16px/1 var(--font-body);
  background: var(--color-white);
  color: var(--color-navy);
}
input:disabled { opacity: 0.7; }

/* Interior pages */
.page-hero { padding: 40px 0 8px; }
.prose { padding-bottom: 56px; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }
.prose p,
.prose ul { margin-bottom: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose.legal { font-size: var(--text-legal); line-height: var(--leading-legal); }

.draft-banner {
  background: var(--color-cream);
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  padding: 14px 16px;
  border-radius: var(--radius-button);
  margin: 8px 0 28px;
  font-weight: 500;
}

.warning-box {
  border-left: 4px solid var(--color-warning);
  background: var(--color-white);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.warning-box h2,
.warning-box strong { color: var(--color-warning); }
.warning-box h2 {
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.faq details {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.faq summary {
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
}
.faq details p { margin-top: 10px; }

/* Footer */
.site-footer {
  background: var(--color-white);
  color: var(--color-body);
  padding: 40px 0 28px;
  font-size: 14px;
  border-top: 1px solid rgba(15, 30, 61, 0.10);
}
.site-footer a { color: var(--color-navy); text-decoration: none; }
.site-footer a:hover { color: var(--color-teal); text-decoration: underline; }
.footer-grid { display: grid; gap: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin: 6px 0; }
.footer-logo { height: var(--footer-logo-height); width: auto; margin-bottom: 12px; }
.footer-note { color: var(--color-teal); font-weight: 600; margin-bottom: 8px; }
.footer-copy { margin-top: 24px; opacity: 0.75; font-size: 13px; }

@media (min-width: 768px) {
  .hero h1 { font-size: var(--text-hero); }
  .hero { padding: 72px 0 80px; }
  .header-inner { min-height: 80px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .menu-toggle,
  .nav-panel { display: none !important; }
  .nav-desk {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    align-items: center;
    justify-content: flex-end;
  }
  .nav-desk a { padding: 8px 0; }
  .header-actions-desk {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
  }
  .header-actions-desk .action-row { display: flex; gap: 8px; }
  .header-actions-desk .coming { margin-top: 6px; }
}

@media (min-width: 1100px) {
  .header-inner { gap: 24px; }
}

/* Language menu (js/i18n.js) */
.tm-lang { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1.2 var(--font-body); color: var(--color-navy); }
.tm-lang-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-lang select { font: 500 13px/1.2 var(--font-body); color: var(--color-navy); background: #fff; border: 1px solid rgba(15,30,61,.25); border-radius: 8px; padding: 6px 26px 6px 10px; min-height: 36px; cursor: pointer; }
.tm-lang select:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 2px; }
.tm-lang-header { margin-right: 4px; }
.tm-lang-panel { margin-top: 4px; }
.tm-lang-footer { margin-top: 12px; }
.tm-lang-footer .tm-lang-label { position: static; width: auto; height: auto; clip: auto; }
.tm-lang-floating { position: fixed; right: 12px; bottom: 12px; z-index: 50; }
/* RTL-ready: mirror layout helpers when dir="rtl" */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .tm-lang-header { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .tm-lang select { padding: 6px 10px 6px 26px; }
