/* neap.health — shared styles */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces Soft";
  src: url("/fonts/fraunces-soft-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f7f2ea;
  --cream-2: #fbf8f3;
  --paper: #fffdf9;
  --sand: #efdcc8;
  --apricot: #f2b48f;
  --coral: #e07a55;
  --coral-ink: #a8472a;   /* coral dark enough for text on cream */
  --navy: #12324a;        /* headings, primary buttons */
  --ink: #233c50;         /* body text */
  --muted: #4b6072;       /* secondary text */
  --line: #d9cfc2;
  --blue-1: #e3edf4;
  --blue-2: #c4d9e8;
  --blue-3: #9cc0d9;
  --blue-5: #4a80ab;
  --blue-6: #2f6590;
  --blue-7: #1d4c73;
  --blue-8: #123857;
  --focus: #c4501f;
  --error: #a3321f;
  --ok: #1f6a4e;
  --radius: 1rem;
  --wrap: 72rem;
  --display: "Fraunces Soft", "Cooper Black", Georgia, serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream) url("/img/paper.png") repeat;
  background-size: 512px 512px;
  background-blend-mode: multiply;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); /* 18–20px */
  line-height: 1.65;
  font-weight: 400;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(3rem, 2rem + 5vw, 5.5rem); font-weight: 850; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.45rem); font-weight: 750; letter-spacing: 0; line-height: 1.22; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 50; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: .6rem; font-weight: 600; }
.skip:focus { top: 1rem; }

/* Eyebrow label */
.eyebrow {
  display: flex; align-items: center; gap: 1rem;
  font-size: .8rem; font-weight: 650; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.25rem;
}
.eyebrow::after { content: ""; width: 3.5rem; height: 2px; background: var(--coral); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .7rem 1.6rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue-7); }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: rgba(18, 50, 74, .06); }
.btn svg { width: 1.1em; height: 1.1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 242, 234, .95); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(247, 242, 234, .82); backdrop-filter: blur(10px); } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.logo { display: inline-flex; line-height: 0; text-decoration: none; }
.logo img { display: block; height: 2.75rem; width: auto; }
.footer-brand .logo img { height: 3.25rem; }
@media (max-width: 44rem) { .logo img { height: 2.25rem; } }
.site-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav .btn { min-height: 2.75rem; padding: .5rem 1.2rem; font-size: 1rem; }
@media (max-width: 44rem) { .site-nav .nav-link { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; min-height: min(46rem, 88vh); }
.hero-copy { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 0; }
.hero .lede { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); color: var(--ink); max-width: 30rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 1.25rem; }
.hero-note { font-size: 1rem; color: var(--muted); display: flex; align-items: center; gap: .6rem; margin: 0; }
.hero-note::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--coral); flex: none; }
.hero-art { position: relative; display: grid; place-items: center; padding: clamp(1rem, 3vw, 2.5rem) 0; }
.hero-art img { width: min(100%, 34rem); height: auto; mix-blend-mode: multiply; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: breathe 12s ease-in-out infinite alternate; }
}
@keyframes breathe { from { transform: translateY(0) scale(1); } to { transform: translateY(-6px) scale(1.01); } }
@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding-bottom: 1rem; }
  .hero-art { padding: 0 0 2.5rem; }
  .hero-art img { width: min(100%, 24rem); }
}

/* Watercolor art sits on the paper texture */
.hero-art img, .join-art img, .ring { mix-blend-mode: multiply; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.intro { max-width: 44rem; }
.intro p { color: var(--ink); }

/* Mission */
.mission { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission-grid { display: grid; grid-template-columns: 14rem 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.mission-grid .eyebrow { margin-top: 1.1rem; }
.mission-grid .body { border-left: 2px solid var(--line); padding-left: clamp(1.5rem, 4vw, 3rem); max-width: 46rem; }
.mission-grid .body p { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
@media (max-width: 48rem) {
  .mission-grid { grid-template-columns: 1fr; gap: 0; }
  .mission-grid .body { border-left: 0; padding-left: 0; }
}

/* How it helps */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.feature { background: rgba(255, 253, 249, .55); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.feature p { margin: 0; color: var(--ink); }
.feature .icon { width: 3.5rem; height: 3.5rem; background: url("/img/blob-blue.webp") center / 130% no-repeat; mix-blend-mode: multiply; color: var(--blue-7); display: grid; place-items: center; margin-bottom: 1rem; }
.feature .icon svg { width: 1.6rem; height: 1.6rem; }
.feature:nth-child(2) .icon, .feature:nth-child(4) .icon { background-image: url("/img/blob-apricot.webp"); color: var(--coral-ink); }
@media (max-width: 44rem) { .features { grid-template-columns: 1fr; } }

/* Phone previews */
.previews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 4.5rem); align-items: start; }
.preview figcaption { text-align: center; color: var(--muted); font-size: 1rem; margin-top: 1rem; }
.phone {
  width: min(20rem, 100%); margin: 0 auto; background: var(--navy); border-radius: 2.6rem; padding: .7rem;
  box-shadow: 0 30px 60px -25px rgba(18, 50, 74, .45), 0 10px 20px -10px rgba(18, 50, 74, .25);
}
.screen { background: var(--cream-2); border-radius: 2rem; padding: 1.4rem 1.1rem 1.3rem; min-height: 32rem; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.screen .bar { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; color: var(--navy); margin-bottom: 1.2rem; }
.screen .s-title { font-family: var(--display); font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; margin: 0 0 .2rem; line-height: 1.2; }
.screen .s-sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.1rem; }
.screen .card { background: #fff; border: 1px solid #e6ded3; border-radius: 1rem; padding: .85rem .9rem; margin-bottom: .7rem; }
.screen .q { font-weight: 600; color: var(--navy); margin: 0 0 .55rem; font-size: .92rem; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.scale span { height: 2rem; border-radius: .55rem; background: var(--blue-1); display: grid; place-items: center; font-size: .78rem; font-weight: 600; color: var(--navy); }
.scale span.on { background: var(--blue-6); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chips span { border: 1px solid #d5ccc0; border-radius: 999px; padding: .2rem .65rem; font-size: .82rem; color: var(--ink); background: #fff; }
.chips span.on { background: #f8e3d6; border-color: #eab79b; color: #7a3218; font-weight: 600; }
.screen .done { display: block; text-align: center; background: var(--navy); color: #fff; border-radius: 999px; padding: .65rem; font-weight: 600; margin-top: .9rem; font-size: .92rem; }
.screen .tiny { font-size: .78rem; color: var(--muted); text-align: center; margin: .5rem 0 0; }
.spark { width: 100%; height: 4.5rem; margin: .2rem 0 .3rem; }
.legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: .9rem; height: .2rem; border-radius: 2px; vertical-align: middle; margin-right: .35rem; }
.lab { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.lab b { color: var(--navy); }
.pill { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; background: #f8e3d6; color: #7a3218; white-space: nowrap; }
.insight { background: var(--blue-1); border-radius: 1rem; padding: .85rem .9rem; font-size: .88rem; color: var(--navy); }
.insight strong { display: block; margin-bottom: .2rem; }
@media (max-width: 44rem) { .previews { grid-template-columns: 1fr; } }

/* Beneath the surface */
.depth { position: relative; overflow: hidden; }
.depth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.strata { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.strata li { position: relative; padding: 1.35rem 1.75rem 1.35rem 3.4rem; font-weight: 600; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.strata li::before { content: ""; position: absolute; left: 1.6rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.3rem; border-radius: 50%; background: currentColor; opacity: .85; }
.strata li { color: var(--navy); background: center / 100% 100% no-repeat; mix-blend-mode: multiply; }
.strata li:nth-child(1) { background-image: url("/img/wash-1.webp"); }
.strata li:nth-child(2) { background-image: url("/img/wash-2.webp"); }
.strata li:nth-child(3) { background-image: url("/img/wash-3.webp"); }
.strata li:nth-child(4) { background-image: url("/img/wash-4.webp"); }
.strata li:nth-child(5) { background-image: url("/img/wash-5.webp"); padding-top: 1.7rem; padding-bottom: 1.7rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.strata li:nth-child(5)::before { background: var(--coral); opacity: 1; }
@media (max-width: 52rem) { .depth-grid { grid-template-columns: 1fr; } }

/* Audience */
.people { text-align: center; }
.people .intro { margin: 0 auto; }
.people .ring { width: 11rem; height: auto; margin: 0 auto 1.5rem; }

/* Promise */
.promise { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); list-style: none; padding: 0; margin: 2.5rem 0 0; }
.promises li { border-top: 3px solid var(--navy); padding-top: 1.25rem; }
.promises li:first-child { border-top-color: var(--coral); }
.promises p { margin: 0; color: var(--ink); font-size: 1.05rem; }
@media (max-width: 64rem) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .promises { grid-template-columns: 1fr; } }

/* Waitlist */
.join { position: relative; overflow: hidden; color: var(--ink); }
.join .wrap { position: relative; z-index: 2; }
.join-card { max-width: 40rem; }
.join { padding-bottom: clamp(10rem, 24vw, 20rem); }
.join-art { position: absolute; inset: auto 0 0 0; height: clamp(8rem, 22vw, 19rem); }
.join-art img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.join label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.join .row { display: flex; flex-wrap: wrap; gap: .75rem; }
.join input[type="email"] {
  flex: 1 1 16rem; min-width: 0; width: 100%; min-height: 3.4rem;
  font: inherit; color: var(--navy); background: #fff;
  border: 2px solid #b9c7d3; border-radius: 999px; padding: .5rem 1.3rem;
}
.join input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 2px #f3b6a8; }
.join button { flex: 0 0 auto; min-height: 3.4rem; background: var(--navy); color: #fff; border: 0; }
.join button:hover { background: var(--blue-7); }
.join button[disabled] { opacity: .75; cursor: progress; }
.join .hint { font-size: 1rem; color: var(--muted); margin: .9rem 0 0; }
#status:not(:empty) { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: .75rem; font-weight: 600; }
#status.ok { background: #e4f3ec; color: var(--ok); }
#status.err { background: #fde8e3; color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Safety note */
.safety { }
.safety-box { display: flex; gap: 1rem; align-items: flex-start; background: rgba(255, 253, 249, .6); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: .75rem; padding: 1.25rem 1.5rem; }
.safety-box svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--coral-ink); margin-top: .15rem; }
.safety-box p { margin: 0; font-size: 1.05rem; }

/* Footer */
.site-footer { padding: 3rem 0 2.5rem; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand p { margin: .6rem 0 0; max-width: 22rem; color: var(--ink); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: var(--ink); }
.footer-col h2 { font-family: var(--font); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; font-weight: 650; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.footer-base p { margin: 0; }

/* Legal pages */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); }
.legal h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.7rem); margin-top: 2.25rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .4rem; }
.legal .updated { color: var(--muted); }
.draft-note { background: #fdf0e7; border: 1px solid #eab79b; border-radius: .75rem; padding: 1rem 1.25rem; color: #6b2c14; font-size: 1rem; margin: 1.5rem 0 2rem; }

@media print {
  .site-header, .hero-art, .join-art, .skip { display: none; }
  body { background: #fff; }
}
.mission-grid .body .kicker { font-weight: 650; color: var(--navy); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin: 0; }

/* App store badges (disabled until launch) */
.stores { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.store {
  display: inline-flex; align-items: center; gap: .6rem; min-width: 11.5rem;
  padding: .45rem 1rem .5rem .8rem; border-radius: .6rem; border: 1px solid #000;
  background: #000; color: #fff; font: inherit; text-align: left; line-height: 1.1;
}
.store svg { width: 1.6rem; height: 1.6rem; flex: none; }
.store span { display: grid; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.store small { font-size: .68rem; font-weight: 500; letter-spacing: .01em; opacity: .9; }
.store:disabled { opacity: .5; cursor: not-allowed; }
