/* ==========================================================================
   SoMana — Landing site styles
   Brand colors lifted from app Theme.swift
   ========================================================================== */

:root {
  /* Brand */
  --ocean-deep: #0F4E59;
  --ocean-lagoon: #1C7C85;
  --ocean-mist: #EAF7F4;
  --sand-light: #FAF6EF;
  --coral: #FFBDA5;
  --coral-soft: #FFE4D6;

  /* Text */
  --text-primary: #232323;
  --text-secondary: #5C5C5C;
  --text-tertiary: #8A8A8A;
  --text-on-dark: #FAF6EF;

  /* Surfaces */
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-mist: var(--ocean-mist);
  --border: rgba(15, 78, 89, 0.12);
  --border-strong: rgba(15, 78, 89, 0.22);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 78, 89, 0.06), 0 1px 3px rgba(15, 78, 89, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 78, 89, 0.08), 0 2px 4px rgba(15, 78, 89, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 78, 89, 0.12), 0 4px 12px rgba(15, 78, 89, 0.06);
  --shadow-xl: 0 32px 80px rgba(15, 78, 89, 0.16), 0 8px 24px rgba(15, 78, 89, 0.08);

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Type scale */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset + base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  /* Smooth scroll is disabled — when lazy-loaded images below the fold
     load mid-animation, the destination shifts and the user lands in the
     wrong place. Instant jumps are reliable. */
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--sand-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ocean-deep);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--ocean-lagoon);
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul, ol {
  padding-left: 1.25em;
}

:focus-visible {
  outline: 3px solid var(--ocean-lagoon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ocean-deep);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  top: 8px;
  color: #fff;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.0625rem;
}

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
}

p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-lagoon);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding: clamp(64px, 9vw, 112px) 0;
}

/* Offset hash-link scroll targets by the sticky header height so section
   headings don't end up hidden under the nav bar. */
section[id],
[id]:not(body):not(main) {
  scroll-margin-top: 76px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  font-size: 1.0625rem;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav__brand:hover { color: var(--ocean-deep); }

.nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav__menu a:hover {
  color: var(--ocean-deep);
}

.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.nav__toggle:hover { background: var(--ocean-mist); }

.nav__toggle svg { width: 22px; height: 22px; stroke: var(--text-primary); }

@media (max-width: 820px) {
  .nav__menu, .nav__cta .btn--text { display: none; }
  .nav__toggle { display: inline-flex; }
}

.nav__menu--open {
  display: flex !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--sand-light);
  padding: 8px 16px 16px;
  border-bottom: 1px solid var(--border);
}

.nav__menu--open li { padding: 12px 8px; border-bottom: 1px solid var(--border); }
.nav__menu--open li:last-child { border-bottom: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

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

.btn--primary {
  background: var(--ocean-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: #08373F;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ocean-deep);
  border: 1.5px solid var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--ocean-deep);
  background: var(--ocean-mist);
}

.btn--text {
  padding: 10px 14px;
  color: var(--text-secondary);
  background: transparent;
}

.btn--text:hover { color: var(--ocean-deep); }

.btn--small { padding: 10px 18px; font-size: 0.875rem; }

.btn__icon { width: 18px; height: 18px; }

.appstore-badge img {
  height: 48px;
  width: auto;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}

.appstore-badge:hover img { transform: translateY(-1px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px);
  overflow: hidden;
  background: var(--sand-light);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/backgrounds/bg-ocean.jpg");
  background-size: cover;
  background-position: center 40%;
  z-index: -2;
  /* Soft, subtle — the water is atmosphere, not subject */
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Left-side fade for headline legibility */
    linear-gradient(100deg,
      var(--sand-light) 0%,
      rgba(250, 246, 239, 0.92) 28%,
      rgba(250, 246, 239, 0.55) 55%,
      rgba(250, 246, 239, 0.25) 100%),
    /* Warm coral haze, top-right */
    radial-gradient(1000px 600px at 85% -10%, rgba(255, 189, 165, 0.45), transparent 60%),
    /* Lagoon depth, bottom-left */
    radial-gradient(900px 600px at 0% 100%, rgba(28, 124, 133, 0.22), transparent 60%);
}

@media (max-width: 720px) {
  .hero::before { opacity: 0.32; background-position: 70% 50%; }
  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(250, 246, 239, 0.85) 0%,
        rgba(250, 246, 239, 0.7) 50%,
        rgba(250, 246, 239, 0.92) 100%),
      radial-gradient(700px 500px at 50% 0%, rgba(255, 189, 165, 0.35), transparent 60%);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__copy { max-width: 620px; }

.hero h1 {
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-lagoon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 26px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.hero__meta-item { display: inline-flex; align-items: center; gap: 8px; }

.hero__meta svg { width: 16px; height: 16px; color: var(--ocean-lagoon); }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: min(360px, 78vw);
  filter: drop-shadow(0 30px 60px rgba(15, 78, 89, 0.18));
  /* Reserve height before the image loads to prevent layout shift
     (App Store screenshots are 1290 x 2796). */
  aspect-ratio: 1290 / 2796;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  display: block;
}

.phone-frame--secondary {
  position: absolute;
  width: 200px;
  bottom: -10px;
  right: -40px;
  transform: rotate(6deg);
  opacity: 0.95;
  z-index: -1;
}

@media (max-width: 720px) {
  .phone-frame--secondary { display: none; }
}

/* ==========================================================================
   Trust / credibility row
   ========================================================================== */

.trust {
  position: relative;
  padding: 32px 0;
  background: var(--ocean-mist);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
  overflow: hidden;
}

.trust::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/backgrounds/bg-sand.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.trust::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(234, 247, 244, 0.55), rgba(234, 247, 244, 0.85));
}

.trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: center;
  align-items: center;
  color: var(--ocean-deep);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust__row span { display: inline-flex; align-items: center; gap: 8px; }
.trust__row svg { width: 18px; height: 18px; }

/* ==========================================================================
   Generic content sections
   ========================================================================== */

.section--mist { background: var(--ocean-mist); }
.section--dark {
  position: relative;
  color: var(--text-on-dark);
  background: #0a3a44;
  isolation: isolate;
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/backgrounds/bg-underwater-rays.jpg");
  background-size: cover;
  background-position: center top;
}
.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Deepen the bottom so the stats grid reads */
    linear-gradient(180deg,
      rgba(8, 55, 63, 0.45) 0%,
      rgba(10, 58, 68, 0.7) 55%,
      rgba(10, 58, 68, 0.92) 100%),
    /* Lagoon tint over the whole image for brand cohesion */
    linear-gradient(135deg, rgba(15, 78, 89, 0.45), rgba(10, 58, 68, 0.55));
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(250, 246, 239, 0.85); }
.section--dark .eyebrow { color: var(--coral); }
.section--dark .stat {
  background: rgba(8, 40, 47, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(250, 246, 239, 0.18);
}

/* ==========================================================================
   "Who is it for" — audience cards
   ========================================================================== */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.audience-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-mist);
  color: var(--ocean-deep);
  margin-bottom: 16px;
}

.audience-card__icon svg { width: 22px; height: 22px; }

.audience-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.audience-card p {
  font-size: 0.9375rem;
  margin: 0;
}

/* ==========================================================================
   How it works — feature blocks
   ========================================================================== */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature__copy { order: 2; }
}

.feature__copy { max-width: 520px; }

.feature__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ocean-mist);
  color: var(--ocean-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.feature__badge svg { width: 14px; height: 14px; }

.feature h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  margin-bottom: 14px;
}

.feature ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.feature ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  background: var(--ocean-mist);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C7C85' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
  background-repeat: no-repeat;
  background-size: 11px;
  background-position: center;
}

.feature__visual {
  display: flex;
  justify-content: center;
}

.feature__visual .phone-frame { width: min(320px, 70vw); }

/* ==========================================================================
   The science block
   ========================================================================== */

.science {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

@media (min-width: 960px) {
  .science { grid-template-columns: 1fr 1.2fr; }
}

.science__copy h2 { margin-bottom: 22px; }

.science__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.stat {
  background: rgba(250, 246, 239, 0.06);
  border: 1px solid rgba(250, 246, 239, 0.14);
  border-radius: var(--radius);
  padding: 22px;
}

.stat__num {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.875rem;
  color: rgba(250, 246, 239, 0.7);
}

/* ==========================================================================
   Discover list
   ========================================================================== */

.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.discover-item {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: flex-start;
}

.discover-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ocean-mist), #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean-lagoon);
}

.discover-item__icon svg { width: 18px; height: 18px; }
.discover-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

.price-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.price-card--featured {
  border-color: var(--ocean-deep);
  border-width: 2px;
}

.price-card__tag {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--coral);
  color: #4A2614;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.price-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }

.price-card__amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 12px 0 6px;
}

.price-card__amount sup {
  font-size: 1rem;
  font-weight: 500;
  vertical-align: super;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.price-card__period {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  margin-bottom: 22px;
}

.price-card__note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 18px;
}

.price-card .btn { width: 100%; }

.pricing-disclaimer {
  text-align: center;
  margin-top: 36px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Requirements
   ========================================================================== */

.requirements-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.req-item {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 20px;
  border: 1px solid var(--border);
}

.req-item__icon {
  width: 44px;
  height: 44px;
  background: var(--ocean-mist);
  color: var(--ocean-deep);
  border-radius: 12px;
  margin: 0 auto 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.req-item__icon svg { width: 22px; height: 22px; }

.req-item h3 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.req-item p {
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4E59' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-item__body {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item__body p { margin: 0 0 12px; }
.faq-item__body p:last-child { margin: 0; }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  position: relative;
  color: var(--text-on-dark);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  background: var(--ocean-deep);
  overflow: hidden;
  isolation: isolate;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/backgrounds/bg-bubbles.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(255, 189, 165, 0.22), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(28, 124, 133, 0.35), transparent 60%),
    linear-gradient(135deg, rgba(15, 78, 89, 0.6), rgba(8, 50, 58, 0.75));
}

.newsletter h2 { color: #fff; }

.newsletter p {
  color: rgba(250, 246, 239, 0.82);
  max-width: 540px;
  margin: 0 auto 28px;
}

.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(250, 246, 239, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
}

.newsletter input[type="email"]::placeholder {
  color: rgba(250, 246, 239, 0.5);
}

.newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(255, 255, 255, 0.14);
}

.newsletter .btn--primary {
  background: var(--coral);
  color: #4A2614;
}

.newsletter .btn--primary:hover {
  background: #ffd2bf;
  color: #4A2614;
}

.newsletter__note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: rgba(250, 246, 239, 0.6);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #0a3038;
  color: rgba(250, 246, 239, 0.72);
  padding: 72px 0 32px;
  font-size: 0.9375rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer__brand img { width: 32px; height: 32px; border-radius: 8px; }

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.92);
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col li { margin-bottom: 10px; }

.footer__col a {
  color: rgba(250, 246, 239, 0.72);
  font-size: 0.9375rem;
}

.footer__col a:hover { color: var(--coral); }

.footer__col p {
  color: rgba(250, 246, 239, 0.6);
  font-size: 0.875rem;
  max-width: 280px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 239, 0.12);
  font-size: 0.8125rem;
  color: rgba(250, 246, 239, 0.5);
}

.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { color: rgba(250, 246, 239, 0.6); }
.footer__legal a:hover { color: var(--coral); }

/* ==========================================================================
   Signals 101 page
   ========================================================================== */

.page-header {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 5vw, 56px);
  background: var(--sand-light);
  isolation: isolate;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/backgrounds/bg-ocean.jpg");
  background-size: cover;
  background-position: center 60%;
  opacity: 0.28;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(250, 246, 239, 0.55) 0%, rgba(250, 246, 239, 0.92) 90%),
    radial-gradient(900px 500px at 70% -20%, rgba(255, 189, 165, 0.32), transparent 60%);
}

.page-header .container { max-width: var(--container-narrow); }

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-secondary); }

.breadcrumb span[aria-current] { color: var(--text-primary); font-weight: 500; }

.page-header h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 16px; }

.page-header .lead { max-width: 640px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.metric-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.metric-card h3 { font-size: 1rem; margin-bottom: 6px; }

.metric-card__sub {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.metric-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.metric-card li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.metric-card li:first-child { border-top: 0; padding-top: 0; }

/* Study filters */

.study-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto 40px;
}

.study-filter {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.18s var(--ease);
  cursor: pointer;
}

.study-filter:hover {
  border-color: var(--border-strong);
  color: var(--ocean-deep);
}

.study-filter[aria-pressed="true"] {
  background: var(--ocean-deep);
  color: #fff;
  border-color: var(--ocean-deep);
}

/* Study cards */

.study-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.study {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.study:hover { box-shadow: var(--shadow-md); }

.study__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.study__intervention {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ocean-mist);
  color: var(--ocean-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.study__meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.study h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.study__outcome {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.study__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.study__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ocean-deep);
  font-weight: 500;
}

.study__links svg { width: 14px; height: 14px; }

.study--hidden { display: none; }

.study-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-tertiary);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Misc
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 80px 24px;
  text-align: center;
}

.error-page h1 { font-size: clamp(3rem, 8vw, 5rem); margin-bottom: 8px; }

.error-page p { max-width: 480px; margin-bottom: 28px; }
