/* ===========================================================================
   Berth landing — full-bleed video hero (the video carries the message),
   glass-card waitlist pinned at hero bottom, then cream sections below.
   =========================================================================== */

:root {
  --bg: #faf8f3;
  --surface: #fff;
  --ink: #0e1116;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;
  --hero-bg: #0e1116;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --accent-light: #fbbf24;
  --line: #e7e5dc;
  --line-strong: #d6d3c7;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1080px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 720px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--accent-light); }

/* ============================ HEADER NAV ============================ */

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
}

.nav.nav-light { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--bg);
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.brand.brand-light { color: var(--ink); text-shadow: none; }

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.nav-links a:hover { color: white; }
.nav-links a.cta-btn {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-shadow: none;
}
.nav-links a.cta-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}
.nav-links.nav-links-light a { color: var(--ink-2); text-shadow: none; }
.nav-links.nav-links-light a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav { padding: 16px 18px; }
  .nav-links a:not(.cta-btn):not(:last-of-type) { display: none; }
}

/* ============================ HERO (video-only) ============================ */

.hero {
  position: relative;
  min-height: 100vh;
  color: white;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 22% 38%, rgba(217, 119, 6, 0.32) 0%, rgba(217, 119, 6, 0) 55%),
    radial-gradient(ellipse at 78% 78%, rgba(251, 191, 36, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, #0a0d12 0%, #0e1116 50%, #050608 100%);
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14, 17, 22, 0.0) 0%,
      rgba(14, 17, 22, 0.0) 45%,
      rgba(14, 17, 22, 0.65) 85%,
      rgba(14, 17, 22, 0.88) 100%);
  pointer-events: none;
}

.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 7vh;
  transform: translateX(-50%);
  z-index: 3;
  width: min(560px, calc(100% - 36px));
  text-align: center;
  animation: rise 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: 0.7s;
}

.hero-cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.hero-cta-note strong { color: var(--accent-light); font-weight: 600; }

.scroll-cue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  pointer-events: none;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 12px); opacity: 0.2; }
}

/* ============================ WAITLIST FORMS ============================ */

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist input[type=email] {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 24, 30, 0.45);
  color: white;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.waitlist input[type=email]::placeholder { color: rgba(255, 255, 255, 0.45); }
.waitlist input[type=email]:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(20, 24, 30, 0.6);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.waitlist button {
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 18px -4px rgba(217, 119, 6, 0.55);
}
.waitlist button:hover { background: #b45309; transform: translateY(-1px); box-shadow: 0 10px 22px -4px rgba(217, 119, 6, 0.65); }
.waitlist button:active { transform: translateY(0); }
.waitlist button:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* Turnstile wrapper — fits inside the form, slight breathing room */
.cf-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
}

/* GDPR consent line */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
}
.consent input[type=checkbox] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: var(--accent);
  margin-top: 1px;
  cursor: pointer;
}
.consent a { color: var(--accent-light); text-decoration: underline; }
.consent a:hover { color: white; }

.consent-light { color: rgba(255, 255, 255, 0.7); }

.hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
  min-height: 1em;
}
.hint.success { color: var(--accent-light); }
.hint.error { color: #fca5a5; }

/* ============================ PREVIEW ============================ */

.preview { padding: 110px 0 90px; background: var(--bg); }

.preview h2,
.how h2,
.who h2,
.founder h2,
.cta-final h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.13;
  letter-spacing: -0.018em;
  font-weight: 500;
  margin-bottom: 18px;
  max-width: 22ch;
}

.preview h2 em,
.cta-final h2 em { font-style: italic; color: var(--accent); }

.lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.6;
}
.lede em { font-family: 'Fraunces', serif; font-style: italic; color: var(--accent); }

.preview-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 60px -18px rgba(14, 17, 22, 0.18),
    0 14px 28px -10px rgba(14, 17, 22, 0.08);
  border: 1px solid var(--line-strong);
  background: white;
}

.preview-mock { background: white; }

.preview-mock-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-mock-bar .dot {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--line);
}
.preview-mock-bar .dot:nth-child(1) { background: #fca5a5; }
.preview-mock-bar .dot:nth-child(2) { background: #fde68a; }
.preview-mock-bar .dot:nth-child(3) { background: #86efac; }

.preview-mock-url {
  margin-left: 16px;
  font-size: 13px;
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.preview-mock-inner { padding: 30px 36px 14px; }

.preview-mock-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.preview-mock-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.preview-mock-section .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.preview-mock-section strong { font-weight: 600; font-size: 15px; }
.preview-mock-section .muted {
  color: var(--ink-2);
  font-size: 14px;
}
.preview-mock-section .value {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  color: var(--ink-2);
}
.preview-mock-section .tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: #92400e;
  border-radius: 999px;
}

/* ============================ HOW / WHO / FOUNDER ============================ */

.how { padding: 90px 0; background: white; }

.how-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.how-grid li {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.how-grid li:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(14, 17, 22, 0.12);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}
.how-grid h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.how-grid p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.how-grid p em { font-family: 'Fraunces', serif; font-style: italic; color: var(--accent); }

.who { padding: 90px 0; background: var(--bg); }
.who-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 32px;
  max-width: 760px;
}
.who-list li {
  position: relative;
  padding: 16px 20px 16px 52px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--ink);
}
.who-list li::before {
  content: '✓';
  position: absolute;
  left: 22px;
  top: 16px;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.founder { padding: 90px 0; background: white; }
.founder p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 680px;
  margin-bottom: 18px;
  line-height: 1.7;
}

/* ============================ FINAL CTA ============================ */

.cta-final {
  padding: 100px 0 110px;
  background: var(--ink);
  color: white;
  text-align: center;
}
.cta-final h2 {
  color: white;
  margin: 0 auto 14px;
  max-width: 22ch;
}
.cta-final h2 em { color: var(--accent-light); }
.lede-light {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  margin: 0 auto 32px;
}
.cta-final .waitlist { margin: 0 auto; }

/* ============================ FOOTER ============================ */

footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  color: var(--ink-3);
}
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ============================ LEGAL PAGE (privacy.html) ============================ */

body.legal { background: var(--bg); }
.legal-page {
  padding: 64px 0 96px;
}
.legal-page h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 500;
  margin-bottom: 14px;
  max-width: 18ch;
}
.legal-page h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.legal-page p,
.legal-page li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.legal-page ul {
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-page ul li { margin-bottom: 6px; }
.legal-page strong { color: var(--ink); font-weight: 600; }
.legal-page code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
}
.legal-page a { color: var(--accent); text-decoration: underline; }
.legal-page a:hover { color: #b45309; }
.legal-page .lede { color: var(--ink-3); font-size: 15px; margin-bottom: 32px; }
.legal-page .plain-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 28px 20px 44px;
  margin: 16px 0 32px;
}
.legal-page .legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ============================ ENTRY ANIMATION ============================ */

@keyframes rise {
  0%   { opacity: 0; transform: translate(-50%, 16px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 640px) {
  .hero { min-height: 100svh; }
  .hero-cta { bottom: 4vh; }
  .scroll-cue { display: none; }
}
