/* ── Santai — shared styles ─────────────────────────────────────────
   Palette drawn from the app + marketing artboards:
   sage canvas, forest ink, teal map-controls, mint “Surprise Me” pill.
──────────────────────────────────────────────────────────────────── */

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

:root {
  --sage:        #c7d1c1;
  --sage-light:  #dde3d6;
  --sage-deep:   #aebba8;
  --cream:       #f4f1e6;
  --forest:      #0f1f17;
  --forest-2:    #14291f;
  --teal:        #2f6e6a;
  --mint:        #5fa88f;
  --mint-bright: #7fc2a8;
  --white:       #fcfdfb;
  --ink:         #142019;
  --ink-muted:   rgba(20, 32, 25, 0.62);
  --white-muted: rgba(252, 253, 251, 0.65);
  --radius:      24px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(120% 90% at 50% 0%, var(--sage-light) 0%, var(--sage) 55%, var(--sage-deep) 100%)
    fixed var(--sage);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film-grain overlay, like the artboard backgrounds */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

::selection { background: var(--mint); color: var(--forest); }

a { color: var(--teal); }

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

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 48px);
  background: color-mix(in srgb, var(--sage-light) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 31, 23, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--forest); }

.nav-links a.nav-cta {
  background: var(--forest);
  color: var(--cream);
  padding: 9px 20px;
  border-radius: 100px;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--teal); color: var(--white); }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-forest {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 10px 30px rgba(15, 31, 23, 0.28);
}
.btn-forest:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

.btn-mint {
  background: var(--mint);
  color: var(--forest);
  box-shadow: 0 10px 30px rgba(47, 110, 106, 0.35);
}
.btn-mint:hover { background: var(--mint-bright); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(15, 31, 23, 0.07);
  color: var(--forest);
  border: 1px solid rgba(15, 31, 23, 0.16);
}
.btn-ghost:hover { background: rgba(15, 31, 23, 0.12); }

/* ── Type helpers ── */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--forest);
}

.display em {
  font-style: italic;
  font-weight: 700;
  color: var(--teal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ── Footer ── */
.footer {
  background: var(--forest);
  color: var(--white-muted);
  padding: 56px clamp(20px, 5vw, 48px) 32px;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand .nav-logo { color: var(--cream); font-size: 1.6rem; }

.footer-brand p {
  margin-top: 10px;
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1060px;
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(252, 253, 251, 0.12);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ── Doc pages (privacy / support) ── */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) 24px 96px;
}

.doc-header { margin-bottom: 48px; }

.doc-header h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin: 10px 0 12px;
}

.doc-header .doc-meta { color: var(--ink-muted); font-size: 0.95rem; }

.doc-card {
  background: var(--white);
  border: 1px solid rgba(15, 31, 23, 0.08);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 20px 50px rgba(15, 31, 23, 0.08);
}

.prose { display: flex; flex-direction: column; gap: 36px; }
.prose-section { display: flex; flex-direction: column; gap: 14px; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.prose h3 { font-size: 0.98rem; font-weight: 700; color: var(--forest); margin-top: 4px; }

.prose p, .prose li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(20, 32, 25, 0.78);
}

.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.prose a { color: var(--teal); font-weight: 600; text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose hr { border: none; border-top: 1px solid rgba(15, 31, 23, 0.1); }

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 31, 23, 0.12);
}

.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.table-wrap th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(47, 110, 106, 0.08);
  border-bottom: 1px solid rgba(15, 31, 23, 0.12);
}

.table-wrap td {
  padding: 12px 16px;
  color: rgba(20, 32, 25, 0.78);
  border-bottom: 1px solid rgba(15, 31, 23, 0.08);
  line-height: 1.5;
}

.table-wrap tr:last-child td { border-bottom: none; }

.contact-card {
  background: rgba(47, 110, 106, 0.08);
  border: 1px solid rgba(47, 110, 106, 0.22);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-card p { font-size: 0.92rem; }

/* ── Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
