/* CitraLabs / Breathe 478 — calm landing styles */

:root {
  --bg-deep: #1a2e2a;
  --bg-mid: #2a4a42;
  --mist: #d8ebe4;
  --mist-soft: #eef6f2;
  --foam: #f7fbf9;
  --ink: #1c2f2a;
  --ink-muted: #4a635c;
  --accent: #3d7a6a;
  --accent-soft: #6b9b8a;
  --line: rgba(28, 47, 42, 0.12);
  --shadow: 0 18px 50px rgba(26, 46, 42, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #c5ddd4 0%, transparent 55%),
    linear-gradient(165deg, var(--mist-soft) 0%, var(--mist) 45%, #c9ddd6 100%);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

/* Atmospheric orbs */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.atmosphere--subtle .orb {
  opacity: 0.35;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform, opacity;
}

.orb--a {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 8%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(107, 155, 138, 0.45), transparent 70%);
  animation: breathe 8s var(--ease) infinite;
}

.orb--b {
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  bottom: 12%;
  left: 8%;
  background: radial-gradient(circle, rgba(160, 196, 186, 0.5), transparent 70%);
  animation: drift 14s var(--ease) infinite alternate;
}

.orb--c {
  width: min(35vw, 260px);
  height: min(35vw, 260px);
  top: 35%;
  right: 5%;
  background: radial-gradient(circle, rgba(190, 214, 205, 0.55), transparent 70%);
  animation: drift 18s var(--ease) infinite alternate-reverse;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(24px, -18px);
  }
}

/* Entrance */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  .orb,
  .reveal {
    animation: none !important;
  }

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

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 7rem) 1.5rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  min-height: calc(100vh - 7rem);
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tagline {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--ink-muted);
  font-style: italic;
}

.lede {
  margin: 1.75rem 0 0;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: var(--ink-muted);
  max-width: 34rem;
}

.social-proof {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent);
}

.cta-group {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.15rem 0.7rem 0.95rem;
  background: var(--ink);
  color: var(--foam);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.store-badge:hover {
  background: var(--bg-mid);
  color: var(--foam);
  transform: translateY(-2px);
}

.store-badge__icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.store-badge__eyebrow {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.store-badge__name {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Subpages */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 1.5rem 3rem;
}

.page--narrow {
  max-width: 40rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-lede {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.email-card {
  display: block;
  margin-top: 2.5rem;
  padding: 1.5rem 1.6rem;
  background: rgba(247, 251, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.35s var(--ease);
}

.email-card:hover {
  border-color: var(--accent-soft);
  color: inherit;
  transform: translateY(-2px);
}

.email-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.email-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 500;
  color: var(--ink);
}

/* Privacy policy (styles apply to dropped-in HTML from content/privacy.html) */
.policy-body {
  margin-top: 1.75rem;
  color: var(--ink-muted);
}

.policy-loading,
.policy-error {
  color: var(--ink-muted);
}

.policy-body h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.policy-body h2,
.policy-body h3 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

.policy-body h2 {
  font-size: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.policy-body h3 {
  font-size: 1.05rem;
}

.policy-body p {
  margin: 0 0 0.85rem;
}

.policy-body ul,
.policy-body ol {
  margin: 0.5rem 0 0.85rem;
  padding-left: 1.2rem;
}

.policy-body li {
  margin-bottom: 0.4rem;
}

.policy-body a {
  color: var(--accent);
}

.policy-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.policy-body th,
.policy-body td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.policy-body code {
  font-size: 0.9em;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 2.25rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--accent);
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  opacity: 0.85;
}
