/* ═══════════════════════════════════════════════════════════════════
   EvePhase — Web design tokens
   Every value here is copied verbatim from the app's design-system.md
   so the marketing site reads as one system with the product.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Primary palette */
  --rose: #C4687A;
  --rose-dark: #9E4D5E;
  --rose-light: #E8A0AD;
  --rose-pastel: #FBF0F2;

  --plum: #6B3D5E;
  --plum-light: #9B6A8A;
  --plum-pastel: #F3ECF1;

  --sage: #4E7A68;
  --sage-light: #85AA9B;
  --sage-pastel: #EAF2EE;

  --amber: #C4884A;
  --amber-pastel: #FBF3E8;

  /* Neutrals */
  --cream: #FDF8F5;
  --page: #EDE0E9;
  --dark: #1E1420;
  --mid: #5C4A58;
  --light: #B89FB4;
  --white: #FFFFFF;
  --border: rgba(107, 61, 94, 0.10);

  /* Gradients (angles + stops from design-system.md) */
  --grad-hero: linear-gradient(165deg, #1E1420 0%, #6B3D5E 55%, #C4687A 100%);
  --grad-cta: linear-gradient(135deg, #C4687A 0%, #6B3D5E 100%);
  --grad-header: linear-gradient(168deg, #6B3D5E 0%, #C4687A 100%);

  /* Type scale */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radii + shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-card: 0 4px 24px rgba(107, 61, 94, 0.08);
  --shadow-hero: 0 20px 60px rgba(30, 20, 32, 0.25);

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
}

/* ── Reset + base ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--dark);
  margin: 0 0 var(--sp-4) 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 var(--sp-4) 0; color: var(--mid); }
a { color: var(--plum); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--rose); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ── Navigation ───────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 245, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--plum);
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; color: var(--rose); }
.nav-links { display: flex; gap: var(--sp-6); align-items: center; }
.nav-links a { color: var(--mid); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--plum); text-decoration: none; }
/* Override for the nav CTA button — the plain `.nav-links a` rule
   above would otherwise win specificity over `.btn-primary` and paint
   the button text in --mid (invisible on the rose→plum gradient). */
.nav-links a.btn-primary { color: var(--white); }
.nav-links a.btn-primary:hover { color: var(--white); }

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 180ms ease, opacity 120ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--grad-cta);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(196, 104, 122, 0.30);
}
.btn-primary:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(196, 104, 122, 0.36); }
.btn-secondary {
  background: transparent;
  color: var(--plum);
  border: 1.5px solid var(--plum);
}
.btn-secondary:hover { background: var(--plum); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--mid);
  padding: 10px 18px;
}
.btn-ghost:hover { color: var(--plum); }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  background: var(--grad-hero);
  color: var(--white);
  padding: var(--sp-10) 0 var(--sp-9) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(232, 160, 173, 0.35) 0%, rgba(232, 160, 173, 0) 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(107, 61, 94, 0.4) 0%, rgba(107, 61, 94, 0) 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-4);
  font-weight: 400;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto var(--sp-6) auto;
}
.hero-cta { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }
.hero-cta .btn-primary { background: var(--white); color: var(--plum); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.15); }
.hero-cta .btn-primary:hover { background: var(--rose-pastel); color: var(--plum); }
.hero-cta .btn-secondary { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.hero-cta .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.hero-note {
  margin-top: var(--sp-6);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

/* ── Sections ─────────────────────────────────────────────────────── */

section { padding: var(--sp-9) 0; }
.section-eyebrow {
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.section-heading {
  max-width: 720px;
  margin: 0 auto var(--sp-7) auto;
  text-align: center;
}
.section-heading .lede {
  font-size: 1.1rem;
  color: var(--mid);
  margin-top: var(--sp-3);
}

/* ── Feature grid ─────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform 160ms ease, box-shadow 220ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--plum-pastel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  margin-bottom: var(--sp-4);
}
.feature-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.feature h3 { margin-bottom: var(--sp-2); color: var(--dark); }
.feature p { margin: 0; color: var(--mid); font-size: 0.95rem; }

/* ── Alternate feature icon tints (visual variety) ───────────────── */

.feature:nth-child(2) .feature-icon { background: var(--rose-pastel); color: var(--rose); }
.feature:nth-child(3) .feature-icon { background: var(--sage-pastel); color: var(--sage); }
.feature:nth-child(4) .feature-icon { background: var(--amber-pastel); color: var(--amber); }
.feature:nth-child(5) .feature-icon { background: var(--plum-pastel); color: var(--plum); }
.feature:nth-child(6) .feature-icon { background: var(--rose-pastel); color: var(--rose); }

/* ── Two-column split (partner mode section) ─────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}
.split-alt { background: var(--plum-pastel); }
.split .visual {
  background: var(--grad-header);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  min-height: 380px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
}
.split .visual::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232, 160, 173, 0.35), transparent 65%);
}
.split .visual .caption {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--white);
  margin: 0;
}
.split .visual .caption-sub {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-top: var(--sp-3);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split .visual { min-height: 260px; padding: var(--sp-6); }
}

/* ── Trust row ────────────────────────────────────────────────────── */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-5);
  text-align: center;
}
.trust-item h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--plum);
  margin: 0 0 var(--sp-2) 0;
  font-weight: 600;
}
.trust-item p { font-size: 0.9rem; margin: 0; }

/* ── CTA band ─────────────────────────────────────────────────────── */

.cta-band {
  background: var(--grad-cta);
  padding: var(--sp-9) 0;
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); font-weight: 400; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto var(--sp-6) auto; }
.cta-band .badges {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .badges a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  padding: 14px 22px;
  color: var(--white);
  font-weight: 600;
  transition: background 120ms ease;
}
.cta-band .badges a:hover { background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.cta-band .badges .badge-sub { color: rgba(255, 255, 255, 0.6); font-size: 0.75rem; display: block; }

/* ── Footer ───────────────────────────────────────────────────────── */

footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-8) 0 var(--sp-6) 0;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
footer .wordmark { color: var(--white); }
footer h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--sp-3) 0;
  font-weight: 700;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: var(--sp-2); }
footer a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
footer a:hover { color: var(--rose-light); text-decoration: none; }
.footer-brand-line { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; max-width: 380px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 700px) {
  footer .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ═══════════════════════════════════════════════════════════════════
   LEGAL DOCUMENT LAYOUT — privacy.html, terms.html
   ═══════════════════════════════════════════════════════════════════ */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-5) var(--sp-9);
}
.legal .doc-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: var(--sp-2);
}
.legal .doc-meta {
  color: var(--light);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.legal h2 {
  font-size: 1.5rem;
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  color: var(--plum);
}
.legal h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: var(--sp-5) 0 var(--sp-2);
}
.legal p, .legal li { color: var(--dark); font-size: 1rem; line-height: 1.75; }
.legal p { margin-bottom: var(--sp-4); }
.legal ul, .legal ol { padding-left: var(--sp-5); margin: 0 0 var(--sp-4) 0; }
.legal li { margin-bottom: var(--sp-2); }
.legal strong { color: var(--plum); font-weight: 700; }

.legal .toc {
  background: var(--plum-pastel);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.legal .toc h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--sp-3) 0;
}
.legal .toc ol { padding-left: var(--sp-5); margin: 0; }
.legal .toc li { margin-bottom: 4px; font-size: 0.92rem; }
.legal .toc a { color: var(--plum); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-3) 0 var(--sp-5) 0;
  font-size: 0.92rem;
}
.legal th, .legal td {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-3);
  text-align: left;
  vertical-align: top;
}
.legal th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum);
  font-weight: 700;
}
.legal td { color: var(--dark); }

.notice {
  background: var(--amber-pastel);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
  font-size: 0.92rem;
  color: var(--dark);
}
.notice strong { color: var(--amber); }

@media (max-width: 600px) {
  .legal { padding: var(--sp-6) var(--sp-4); }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td {
    display: block;
  }
  .legal th { padding-bottom: 4px; font-size: 0.7rem; }
  .legal td { padding: 4px 0 var(--sp-4) 0; }
  .legal tr { border-bottom: 1px solid var(--border); padding-bottom: var(--sp-3); margin-bottom: var(--sp-3); }
}
