
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* MapleVow — shared styles
   Type: Cormorant Garamond (display) + Inter (body)
   Aesthetic: editorial wedding magazine meets clean SaaS
*/

:root {
  /* Light theme — warm neutrals */
  --bg:        oklch(98.5% 0.006 80);
  --bg-alt:    oklch(96.8% 0.012 78);
  --surface:   oklch(99% 0.004 80);
  --line:      oklch(88% 0.012 75);
  --line-soft: oklch(93% 0.010 75);
  --ink:       oklch(22% 0.012 40);
  --ink-soft:  oklch(45% 0.012 40);
  --ink-mute:  oklch(62% 0.010 40);

  /* Single romantic accent — dusty rose */
  --accent:      oklch(64% 0.08 25);
  --accent-deep: oklch(54% 0.09 25);
  --accent-soft: oklch(94% 0.025 25);

  /* Quiet supporting tone — deep champagne */
  --gold:        oklch(72% 0.06 75);
  --gold-soft:   oklch(95% 0.020 80);

  --shadow-sm: 0 1px 2px oklch(20% 0.01 30 / 0.04), 0 2px 8px oklch(20% 0.01 30 / 0.04);
  --shadow-md: 0 2px 6px oklch(20% 0.01 30 / 0.06), 0 8px 24px oklch(20% 0.01 30 / 0.06);
  --shadow-lg: 0 8px 32px oklch(20% 0.01 30 / 0.10), 0 24px 64px oklch(20% 0.01 30 / 0.08);

  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 24px;

  --maxw: 1200px;
  --gutter: 1rem;

  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --bg:        oklch(16% 0.010 40);
  --bg-alt:    oklch(20% 0.012 40);
  --surface:   oklch(22% 0.012 40);
  --line:      oklch(30% 0.012 40);
  --line-soft: oklch(26% 0.012 40);
  --ink:       oklch(95% 0.006 80);
  --ink-soft:  oklch(75% 0.010 60);
  --ink-mute:  oklch(58% 0.010 50);

  --accent:      oklch(72% 0.08 25);
  --accent-deep: oklch(80% 0.07 25);
  --accent-soft: oklch(28% 0.030 25);

  --gold:        oklch(78% 0.06 75);
  --gold-soft:   oklch(26% 0.025 70);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.3), 0 2px 8px oklch(0% 0 0 / 0.25);
  --shadow-md: 0 2px 6px oklch(0% 0 0 / 0.35), 0 8px 24px oklch(0% 0 0 / 0.3);
  --shadow-lg: 0 8px 32px oklch(0% 0 0 / 0.5), 0 24px 64px oklch(0% 0 0 / 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--accent-soft); color: var(--ink); }

img, video, table, iframe { max-width: 100%; }
img { display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ── Eyebrow label (e.g. "How MapleVow works") ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}

/* The dot sits inline via flex — no absolute positioning, no overlap */
.eyebrow .dot {
  flex-shrink: 0;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  /* no margin, no position:absolute — gap handles spacing */
}

/* Standalone dot (used outside .eyebrow, e.g. in .hero-trust) */
.dot {
  flex-shrink: 0;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.container {
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ───── Nav ───── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }

.nav-inner {
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.nav-inner > * { min-width: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand .leaf {
  width: 22px; height: 22px;
  color: var(--accent);
}
.brand em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-deep);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 1.4vw, 24px);
  margin-left: 0;
  font-size: clamp(12px, 0.95vw, 14px);
  color: var(--ink-soft);
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}

.nav-spacer { flex: 0 1 24px; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 0; }
.nav-actions .language-switcher { flex: 0 0 auto; }

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.language-switcher form { margin: 0; }
.language-switcher__icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--ink-mute);
}
.language-switcher__icon svg { width: 14px; height: 14px; }
.language-switcher__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 11px/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.language-switcher__option:hover { color: var(--ink); background: var(--bg-alt); }
.language-switcher__option.is-active {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 6px oklch(20% 0.01 30 / 0.12);
}
.language-switcher__label { display: none; }
.language-switcher--mobile {
  width: 100%;
  justify-content: flex-start;
  padding: 6px;
  margin: 0 0 10px;
  background: var(--surface);
}
.language-switcher--mobile form { flex: 1; }
.language-switcher--mobile .language-switcher__option {
  width: 100%;
  min-height: 38px;
  padding: 9px 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.language-switcher--mobile .language-switcher__label { display: inline; }
.language-switcher--mobile .language-switcher__short { display: none; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-mute); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 2px oklch(20% 0.01 30 / 0.08);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px color-mix(in oklch, var(--accent) 28%, transparent);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-mute); background: var(--bg-alt); }
.btn-text {
  color: var(--ink-soft);
  background: transparent;
  padding: 11px 14px;
}
.btn-text:hover { color: var(--ink); }

.btn-lg { padding: 14px 28px; font-size: 14px; }

.btn-arrow svg { transition: transform 0.2s ease; width: 14px; height: 14px; }
.btn-arrow:hover svg { transform: translateX(3px); }

.nav-mobile-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ───── Footer ───── */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 40px;
  margin-top: 0;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.foot-grid h5 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a,
.foot-grid button {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
.foot-grid a:hover,
.foot-grid button:hover { color: var(--accent); }
.foot-grid p { font-size: 13.5px; color: var(--ink-soft); max-width: 32ch; line-height: 1.55; }
.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.foot-bottom .leaf-row { display: flex; align-items: center; gap: 8px; }
.foot-bottom svg { width: 13px; height: 13px; color: var(--accent); }
.foot-bottom .design-credit { font-size: 12px; color: var(--ink-mute); opacity: 0.85; }
.foot-bottom .design-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.foot-bottom .design-credit a:hover { color: var(--accent); }

/* ───── Reusable bits ───── */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-narrow { padding: clamp(64px, 8vw, 110px) 0; }

.divider-sprig {
  display: flex;
  justify-content: center;
  margin: 48px 0;
  color: var(--accent);
  opacity: 0.5;
}
.divider-sprig svg { width: 80px; height: 24px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.pill-rose { background: var(--accent-soft); color: var(--accent-deep); }

.kbd {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ───── Mobile ───── */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-actions .btn-ghost,
  .nav-actions .btn-text,
  .nav-actions .btn-primary { display: none; }
  .nav-actions > .language-switcher { display: none; }
  .nav-actions { margin-left: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; align-items: center; }
  .foot-bottom .leaf-row { justify-content: center; flex-wrap: wrap; line-height: 1.7; }
}

@media (max-width: 540px) {
  footer { margin-top: 0; padding: 44px 0 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; margin-bottom: 34px; text-align: left; }
  .foot-grid > div:first-child { padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
  .foot-grid p { max-width: none; }
  .foot-grid ul { gap: 8px; }
  .foot-bottom { padding-top: 20px; font-size: 12px; }
  .foot-bottom .leaf-row { gap: 6px 8px; max-width: 32ch; }
  .foot-bottom .leaf-row > span[aria-hidden="true"] { display: none; }
  .foot-bottom svg { margin-top: 2px; }
  .foot-bottom .design-credit { display: inline-flex; gap: 4px; align-items: baseline; white-space: nowrap; }
  .nav-inner { padding: 14px var(--gutter); gap: 12px; }
  .brand { font-size: 19px; }
  .brand .leaf { width: 19px; height: 19px; }
  .nav-actions { gap: 8px; }
  .btn-lg { padding: 13px 22px; font-size: 13.5px; }
  /* Theme toggle also hidden — keep nav minimal: brand + CTA + hamburger */
  .nav-actions .theme-toggle { display: none; }
  /* Shrink the primary CTA so it doesn't crowd hamburger */
  .nav-actions .btn-primary { padding: 9px 16px; font-size: 13px; }
}

/* ───── Mobile menu sheet ───── */
.menu-sheet {
  display: none;
  position: fixed;
  /* Cover the area below the navbar; navbar stays visible so hamburger is clickable to close */
  inset: 60px 0 0 0;
  /* Fully opaque solid background so content behind doesn't bleed through */
  background: var(--bg);
  z-index: 48;
  padding: 24px var(--gutter) 32px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line-soft);
}
.menu-sheet.open { display: flex; }
.menu-sheet a {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 300;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.menu-sheet a em { color: var(--accent); font-style: italic; }
.menu-sheet .btn {
  margin-top: 24px;
  align-self: flex-start;
  font-family: var(--body);
  font-size: 14px;
  border-bottom: none;
  padding: 11px 22px;
}
/* When menu is open, force the navbar fully opaque so its translucent backdrop
   doesn't make the menu look transparent through it */
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .nav-mobile-toggle svg { transform: rotate(90deg); transition: transform 0.2s ease; }
.nav-mobile-toggle svg { transition: transform 0.2s ease; }
