/* ─────────────────────────────────────────────────────────────
   Spavo marketing site — shared shell (nav, footer, typography).
   Brand tokens mirror the app's constants/theme.ts exactly.
   Static, no build step. Light theme by design (matches the app).
   ───────────────────────────────────────────────────────────── */

:root {
  --ink:        #161616;
  --ink-soft:   #4a463f;
  --muted:      #8A857C;
  --faint:      #B3ACA0;
  --screen:     #F6F5F2;
  --card:       #FFFFFF;
  --indigo:     #4B3DF5;
  --indigo-lt:  #7B6FF8;
  --indigo-bg:  #EEEFFE;
  --indigo-06:  rgba(75, 61, 245, 0.06);
  --indigo-10:  rgba(75, 61, 245, 0.10);
  --money:      #12B57C;
  --money-dark: #0B8A5F;
  --money-bg:   rgba(18, 181, 124, 0.10);
  --navy:       #1E1B4B;
  --divider:    rgba(0, 0, 0, 0.06);
  --divider-2:  rgba(0, 0, 0, 0.04);

  --wrap: 960px;
  --radius: 16px;
  --shadow-card: 0 1px 3px rgba(30, 27, 75, 0.05), 0 8px 24px rgba(30, 27, 75, 0.06);
  --shadow-lift: 0 18px 44px rgba(30, 27, 75, 0.14);

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--screen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}

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

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Wordmark ─────────────────────────────────────────────── */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
}
.wordmark:hover { text-decoration: none; }
.wordmark svg { display: block; width: 26px; height: 26px; }

/* ── Top nav ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 242, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ── Content shell (sub-pages) ────────────────────────────── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 22px 40px;
}
.page h1 { font-size: clamp(30px, 6vw, 42px); margin: 0 0 6px; }
.page h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.page p { color: var(--ink-soft); margin: 0 0 16px; }
.page .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}
.lead { font-size: 19px; color: var(--ink-soft); }

/* ── FAQ accordion (details/summary, no JS) ───────────────── */
.page h2.faq-h {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--indigo);
  margin: 34px 0 4px;
}
.faq { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--indigo);
  border-bottom: 2px solid var(--indigo);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 20px; color: var(--ink-soft); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }

.pill-money {
  display: inline-block;
  background: var(--money-bg);
  color: var(--money-dark);
  font-weight: 700;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.92em;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 24px rgba(75, 61, 245, 0.32);
}
.btn-primary:hover { background: var(--indigo-lt); text-decoration: none; }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--divider);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--ink); text-decoration: none; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--divider);
  margin-top: 24px;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 22px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner a { color: var(--muted); font-weight: 600; }
.footer-inner a:hover { color: var(--ink); text-decoration: none; }
.footer-sep { color: var(--faint); }

/* ── Entrance animation + hover polish (shared) ───────────── */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.nav { animation: nav-drop 0.5s ease both; }

/* Stagger the direct children of a content page in on load. */
.page > * { animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.page > *:nth-child(1) { animation-delay: 0.04s; }
.page > *:nth-child(2) { animation-delay: 0.10s; }
.page > *:nth-child(3) { animation-delay: 0.16s; }
.page > *:nth-child(4) { animation-delay: 0.22s; }
.page > *:nth-child(5) { animation-delay: 0.28s; }
.page > *:nth-child(n + 6) { animation-delay: 0.34s; }

/* FAQ rows cascade in a touch after the heading. */
.faq details { animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.faq details:nth-child(1) { animation-delay: 0.22s; }
.faq details:nth-child(2) { animation-delay: 0.29s; }
.faq details:nth-child(3) { animation-delay: 0.36s; }
.faq details:nth-child(4) { animation-delay: 0.43s; }
.faq details:nth-child(5) { animation-delay: 0.50s; }
.faq details:nth-child(n + 6) { animation-delay: 0.57s; }

/* Hover micro-interactions. */
.faq summary { transition: background 0.15s ease; }
.faq summary:hover { background: var(--indigo-06); }
.faq details { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.faq details[open] {
  border-color: rgba(75, 61, 245, 0.28);
  box-shadow: 0 12px 30px rgba(75, 61, 245, 0.10);
}

.btn { transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--indigo); }

.wordmark svg { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wordmark:hover svg { transform: rotate(-6deg) scale(1.06); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links { gap: 16px; }
  .page { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
