/* ─── Driftwood shared styles ────────────────────────────── */

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --shore:     #EBF0F7;
  --paper:     #F5F8FC;
  --charcoal:  #1A2B3C;
  --deep:      #354D66;
  --driftwood: #7A9BBF;
  --sand:      #D8E4F0;
  --tide:      #4A7FA0;
  --clay:      #5B8EA6;

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max: 1100px;
  --prose: 640px;
}

/* ─── Base ───────────────────────────────────────────── */
body {
  font-family: var(--sans);
  background: var(--shore);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.prose { max-width: var(--prose); }

/* ─── Nav ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}

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

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--deep);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a.current { color: var(--charcoal); font-weight: 500; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-login {
  font-size: 14px;
  color: var(--deep);
  transition: color 0.15s;
}
.nav-login:hover { color: var(--charcoal); }

.nav-cta {
  font-size: 14px;
  background: var(--charcoal);
  color: var(--paper);
  padding: 8px 20px;
  border-radius: 6px;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: normal;
  line-height: 1.1;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--deep);
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto 48px;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--paper);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: transparent;
  color: var(--deep);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  border: 1px solid var(--driftwood);
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--charcoal); color: var(--charcoal); }

.hero-meta {
  font-size: 13px;
  color: var(--driftwood);
}

/* ─── Page hero (interior pages) ─────────────────────── */
.page-hero {
  padding: 100px 0 64px;
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 20px;
}

.page-h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: normal;
  line-height: 1.1;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-lead {
  font-size: 16px;
  color: var(--deep);
  max-width: 480px;
  line-height: 1.65;
}

/* ─── Section base ───────────────────────────────────── */
section {
  padding: 100px 0;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 20px;
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.section-body {
  font-size: 17px;
  color: var(--deep);
  line-height: 1.7;
  max-width: var(--prose);
}

/* ─── Divider ────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--driftwood);
  margin: 0 auto 64px;
  opacity: 0.5;
}

/* ─── Prose sections (interior pages) ────────────────── */
.prose-section {
  padding: 72px 0;
  border-top: 1px solid var(--sand);
}

.prose-wrap {
  max-width: var(--prose);
}

.prose-section .section-label { margin-bottom: 16px; }

.prose-section .section-h2 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.body-text {
  font-size: 16px;
  color: var(--deep);
  line-height: 1.75;
}

.body-text + .body-text {
  margin-top: 16px;
}

.detail-list {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  font-size: 16px;
  color: var(--deep);
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.detail-list li::before {
  content: '·';
  color: var(--driftwood);
  flex-shrink: 0;
  line-height: 1.6;
}

.inline-link {
  color: var(--tide);
  text-decoration: underline;
  text-decoration-color: rgba(74, 127, 160, 0.4);
}
.inline-link:hover {
  text-decoration-color: var(--tide);
}

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.45;
  border-left: 2px solid var(--driftwood);
  padding-left: 24px;
  margin: 40px 0;
}

/* ─── Two-col layout ─────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ─── FAQ ────────────────────────────────────────────── */
.faq-section { background: var(--paper); border-top: 1px solid var(--sand); }

.faq-list {
  max-width: var(--prose);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--sand);
  padding: 24px 0;
}

.faq-q {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.faq-a {
  font-size: 15px;
  color: var(--deep);
  line-height: 1.7;
}

/* ─── Waitlist ───────────────────────────────────────── */
.waitlist-section {
  background: var(--charcoal);
  color: var(--paper);
  text-align: center;
}

.waitlist-section .section-label { color: var(--driftwood); }
.waitlist-section .section-h2 { color: var(--paper); max-width: 560px; margin: 0 auto 16px; }
.waitlist-section .section-body { color: rgba(253, 252, 250, 0.75); margin: 0 auto; }

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 40px auto 0;
  text-align: left;
}

.waitlist-form input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 13px 16px;
  transition: border-color 0.15s;
}
.waitlist-form input::placeholder { color: rgba(253, 252, 250, 0.4); }
.waitlist-form input:focus { outline: none; border-color: var(--driftwood); }

.waitlist-form button {
  background: var(--paper);
  color: var(--charcoal);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.waitlist-form button:hover { opacity: 0.88; }
.waitlist-form button:disabled { opacity: 0.5; cursor: default; }

.waitlist-note {
  font-size: 13px;
  color: var(--driftwood);
  margin-top: 18px;
}

.waitlist-msg {
  max-width: 420px;
  margin: 40px auto 0;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--paper);
  line-height: 1.5;
  min-height: 24px;
}
.waitlist-msg.error { font-style: normal; font-size: 15px; color: #E8B4B4; font-family: var(--sans); }

/* ─── Final CTA ──────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 120px 0;
}

.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: normal;
  color: var(--charcoal);
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.final-cta p {
  font-size: 17px;
  color: var(--deep);
  margin-bottom: 40px;
  font-family: var(--serif);
  font-style: italic;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: var(--paper);
  padding: 60px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--paper);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--driftwood);
  line-height: 1.5;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(253,252,250,0.65); transition: color 0.15s; }
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: var(--driftwood);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 64px; }
  section { padding: 72px 0; }
  .page-hero { padding: 64px 0 40px; }
}
