/* ============================================================
   Aventura Mobile — shared base styles
   Used by: index (landing), privacy, terms
   ============================================================ */

:root {
  --bg: oklch(0.972 0.013 78);
  --bg-deep: oklch(0.955 0.018 75);
  --ink: oklch(0.272 0.024 55);
  --ink-soft: oklch(0.45 0.022 58);
  --ink-faint: oklch(0.62 0.018 60);
  --accent: oklch(0.62 0.155 45);
  --accent-deep: oklch(0.54 0.155 42);
  --line: oklch(0.5 0.03 60);
  --hairline: oklch(0.86 0.02 72);
  --display: "Syne", system-ui, sans-serif;
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* ---- Background layers ---- */
#contours {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 8%, oklch(0.99 0.012 80 / 0.9) 0%, transparent 55%),
    radial-gradient(100% 80% at 50% 112%, var(--bg-deep) 0%, transparent 60%);
}
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow: inset 0 0 220px 60px oklch(0.5 0.03 60 / 0.06);
}

/* ---- Page frame ---- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 5vh, 56px) clamp(24px, 5vw, 64px);
  gap: 24px;
}

/* ---- Header / logo ---- */
.masthead {
  display: flex;
  justify-content: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  display: grid;
  place-items: center;
  box-shadow:
    0 6px 18px oklch(0.54 0.155 42 / 0.28),
    inset 0 1px 0 oklch(0.98 0.05 80 / 0.45);
  flex: none;
}
.logo-mark svg { width: 31px; height: 31px; display: block; }
.logo-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-word .m { color: var(--accent-deep); }

/* ---- Landing hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(20px, 3.4vh, 34px);
  padding: clamp(16px, 4vh, 48px) 0;
}
.headline {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
  text-wrap: balance;
}
.headline em {
  font-style: normal;
  color: var(--accent-deep);
}
.lede {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  text-wrap: pretty;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 4px;
  padding: 14px 22px 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 8px 22px oklch(0.272 0.024 55 / 0.22);
}
.cta svg { width: 17px; height: 17px; }
.cta:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px oklch(0.54 0.155 42 / 0.35);
}

/* ---- Document / legal pages ---- */
.doc-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(18px, 4vh, 44px) 0;
}
.doc {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px);
  background: oklch(0.99 0.008 82 / 0.86);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: 0 24px 60px oklch(0.4 0.03 60 / 0.08);
  counter-reset: sec;
}
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 22px;
  white-space: nowrap;
  transition: color 0.16s ease, gap 0.16s ease;
}
.doc-back svg { width: 14px; height: 14px; }
.doc-back:hover { color: var(--accent-deep); gap: 10px; }
.doc h1 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.doc-meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.doc-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 24px 0 4px;
  padding: 13px 16px;
  border-radius: 13px;
  background: oklch(0.62 0.155 45 / 0.08);
  border: 1px solid oklch(0.62 0.155 45 / 0.22);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.doc-note strong { color: var(--accent-deep); font-weight: 600; }
.doc-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent-deep); }
.doc h2 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 40px;
  margin-bottom: 10px;
  counter-increment: sec;
}
.doc h2::before {
  content: counter(sec) ".";
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}
.doc p {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 16.5px;
  margin-bottom: 14px;
  max-width: 64ch;
}
.doc ul {
  margin: 2px 0 16px;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 16.5px;
}
.doc li { margin-bottom: 6px; max-width: 62ch; }
.doc a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.doc strong { color: var(--ink); font-weight: 600; }
.doc-lead {
  font-size: 18px;
  color: var(--ink);
  margin-top: 18px;
}

/* ---- Footer ---- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
}
.footer-rule {
  width: min(560px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 22%, var(--hairline) 78%, transparent);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  font-size: 14px;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.16s ease;
}
.footer-links a:hover { color: var(--accent-deep); }
.footer-copy {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
