/* SoberPulse site design system */
:root {
  --ink: #10233a;
  --ink-soft: #243b55;
  --muted: #4a6078;
  --paper: #f4f8fa;
  --card: #ffffff;
  --accent: #0e7c86;
  --accent-deep: #0a5c63;
  --accent-soft: #e7f5f6;
  --line: #d5e2ec;
  --hero-overlay: linear-gradient(
    180deg,
    rgba(8, 28, 40, 0.55) 0%,
    rgba(8, 28, 40, 0.35) 45%,
    rgba(8, 28, 40, 0.72) 100%
  );
  --font-sans: "Figtree", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --max: 1100px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  min-height: 100vh;
}

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

a { color: var(--accent-deep); }

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav .nav-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.site-nav .nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover { background: var(--ink-soft); }

.section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.section .lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42ch;
  margin-bottom: 2rem;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 1.5rem;
}

.site-footer .section-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 600;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer .copy {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Interior pages */
.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(14, 124, 134, 0.14), transparent 55%),
    var(--paper);
}

.page-header {
  background: linear-gradient(135deg, #0b3a48 0%, #0e7c86 60%, #14919b 100%);
  color: white;
  padding: 5.5rem 1.5rem 2.5rem;
}

.page-header .section-inner { max-width: 860px; }

.page-header .brand-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.7rem 0 0.4rem;
  font-weight: 600;
}

.page-header p {
  opacity: 0.88;
  max-width: 48ch;
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 2rem 0 0.55rem;
  font-weight: 600;
}

.page-content p,
.page-content li {
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.page-content ul { padding-left: 1.2rem; }

.page-content .muted { color: var(--muted); font-size: 0.95rem; }

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 700ms ease forwards;
  }

  .reveal-delay-1 { animation-delay: 120ms; }
  .reveal-delay-2 { animation-delay: 240ms; }
  .reveal-delay-3 { animation-delay: 360ms; }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-nav .nav-links a:not(.btn) { display: none; }
  .section { padding: 3.25rem 1.15rem; }
}
