/* =================================================================
   BERTH — Driver Survival Kit
   Marketing site styles
   ================================================================= */

:root {
  /* Brand palette */
  --navy-deepest: #050d17;
  --navy-deep: #07121f;
  --navy: #0b1b2e;
  --navy-mid: #102a44;
  --navy-light: #1b3c5e;

  --teal: #4eb6b8;
  --teal-bright: #6fd4d6;
  --teal-dim: #2d6e70;

  --amber: #e8a33d;
  --amber-bright: #ffbc55;

  --text: #e6e8eb;
  --text-bright: #ffffff;
  --text-muted: #7a8a9a;
  --text-dim: #556574;

  --border: #1b2d42;
  --border-bright: #2a4566;

  /* Layout */
  --max-content: 1120px;
  --gutter: clamp(1rem, 3vw, 2rem);

  /* Type scale */
  --fs-display: clamp(2.5rem, 6vw, 4.25rem);
  --fs-h1: clamp(2rem, 4.5vw, 3rem);
  --fs-h2: clamp(1.5rem, 3.2vw, 2.25rem);
  --fs-h3: 1.35rem;
  --fs-body: 1.05rem;
  --fs-small: 0.9rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-deepest);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* =================================================================
   Layout
   ================================================================= */

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* =================================================================
   Navigation
   ================================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 13, 23, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max-content);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  color: var(--text-bright);
}

.nav-brand svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--teal-bright); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* =================================================================
   Hero
   ================================================================= */

.hero {
  padding: clamp(5rem, 11vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(78, 182, 184, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(232, 163, 61, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-block;
  color: var(--teal-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--teal-dim);
  border-radius: 999px;
  background: rgba(78, 182, 184, 0.07);
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text-bright);
}

.hero h1 .accent { color: var(--teal-bright); }

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* =================================================================
   Waitlist form
   ================================================================= */

.waitlist {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
  background: var(--navy);
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.waitlist input[type="email"] {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-bright);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.waitlist input[type="email"]::placeholder { color: var(--text-dim); }

.waitlist button {
  border: none;
  background: var(--teal);
  color: var(--navy-deepest);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.waitlist button:hover { background: var(--teal-bright); }
.waitlist button:active { transform: translateY(1px); }
.waitlist button:disabled { background: var(--teal-dim); cursor: not-allowed; }

/* Honeypot — hidden from humans */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.waitlist-note {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--text-dim);
}

.waitlist-msg {
  margin-top: 1rem;
  font-size: var(--fs-small);
  min-height: 1.4em;
}
.waitlist-msg.success { color: var(--teal-bright); }
.waitlist-msg.error { color: #e87a7a; }

@media (max-width: 520px) {
  .waitlist { flex-direction: column; }
  .waitlist button { padding: 0.85rem; }
}

/* =================================================================
   Buttons / CTAs
   ================================================================= */

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy-deepest);
}
.btn-primary:hover { background: var(--teal-bright); color: var(--navy-deepest); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-bright); }

/* =================================================================
   Sections
   ================================================================= */

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading .eyebrow {
  display: block;
  color: var(--teal-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-heading h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  color: var(--text-bright);
}

.section-heading p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =================================================================
   Feature grid
   ================================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: var(--teal-dim);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(78, 182, 184, 0.12);
  color: var(--teal-bright);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--text-bright);
  font-weight: 600;
}

.feature p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* =================================================================
   Pricing cards
   ================================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal-dim) inset, 0 12px 40px rgba(78, 182, 184, 0.12);
}

.price-card.featured::after {
  content: "Pro";
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--teal);
  color: var(--navy-deepest);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.price-name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.2rem;
}

.price-amount .unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: normal;
}

.price-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.price-features li {
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.price-features li::before {
  content: "✓";
  color: var(--teal-bright);
  font-weight: 700;
  flex-shrink: 0;
}

.price-features li.muted {
  color: var(--text-dim);
}
.price-features li.muted::before { content: "—"; color: var(--text-dim); }

/* =================================================================
   FAQ
   ================================================================= */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

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

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--text-bright);
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =================================================================
   Footer
   ================================================================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.footer-brand svg { width: 28px; height: 28px; }

.footer h4 {
  color: var(--text-bright);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li { padding: 0.3rem 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   Legal / long-form pages (privacy, terms, support)
   ================================================================= */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0;
}

.doc h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-bright);
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}

.doc .doc-meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.doc h2 {
  color: var(--text-bright);
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.doc h3 {
  color: var(--text-bright);
  font-size: 1.05rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.doc p { margin: 0 0 1rem; line-height: 1.7; }

.doc ul { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.doc ul li { margin-bottom: 0.4rem; line-height: 1.7; }

.doc .summary-box {
  background: var(--navy);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.doc .summary-box p:last-child { margin-bottom: 0; }

.doc strong { color: var(--text-bright); }
.doc code {
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
