/* ============ Tidal Point Wellness ============ */
:root {
  --navy: #082E42;       /* Deep Navy — primary, text, dark grounds */
  --navy-deep: #061F2D;
  --teal: #23B3A0;       /* Tidal Teal — accent, labels */
  --teal-dark: #1B9484;
  --teal-tint: #DCF2EE;
  --shallow: #7FD4C6;    /* accent on dark grounds */
  --sand: #EEEAE2;       /* page background */
  --card: #F7F5F0;
  --paper: #ffffff;
  --line: #DFD9CD;
  --muted: #3A5563;
  --radius: 18px;
  --shadow: 0 18px 44px -18px rgba(8, 46, 66, .22);
  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.accent { color: var(--teal); }

.container { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 3rem); }

.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: .9rem;
}
.eyebrow-light { color: var(--shallow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  padding: .78rem 1.5rem; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(35, 179, 160, .55); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem;
  color: var(--navy); text-decoration: none; padding: 1rem .5rem; border-bottom: 2px solid transparent;
}
.btn-ghost:hover { color: var(--teal-dark); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-deep); color: #C2D6DC; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  padding: .5rem 1rem; text-align: center;
}
.topbar-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--shallow); margin-right: .35rem; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.topbar-link {
  background: none; border: none; color: #fff; font-weight: 600; font-size: .82rem;
  font-family: var(--font-body);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(238, 234, 226, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brand-mark { width: 44px; height: 40px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-name em { font-style: normal; font-weight: 600; font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--teal); }
.brand-light .brand-name em { color: var(--shallow); }

.nav { display: flex; gap: 1.7rem; }
.nav a { color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--teal-dark); }
.header-cta { display: flex; align-items: center; gap: .8rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy .lede { font-size: 1.08rem; color: var(--muted); margin: 1.3rem 0 2rem; max-width: 34rem; }
.hero-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: .7rem; margin-top: 2.2rem; font-size: .88rem; color: var(--muted); }
.stars { color: var(--teal); letter-spacing: 2px; font-size: 1rem; }

.hero-media { position: relative; }
.hero-photo {
  position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 5 / 5.4;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.badge-pill {
  position: absolute; top: 1.1rem; right: 1.1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.94); color: var(--navy); font-size: .8rem; font-weight: 600;
  padding: .45rem .85rem; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(8,46,66,.35);
}
.badge-pill svg { width: 15px; height: 15px; color: var(--teal); }
.stat-float {
  position: absolute; left: -1.4rem; bottom: 1.6rem;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: .95rem 1.15rem; max-width: 215px; display: flex; align-items: center; gap: .8rem;
}
.stat-float-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.stat-float-num span { font-size: 1.1rem; }
.stat-float p { font-size: .74rem; line-height: 1.35; color: var(--muted); }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--line); background: var(--card); }
.trustbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.05rem 0; font-family: var(--font-mono); font-size: .68rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.trustbar .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: #E6E1D6; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); }
.section-sub { color: var(--muted); margin-top: .9rem; }

/* ---------- Care cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.care-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: .55rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.care-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.care-icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--teal-tint);
  color: var(--teal-dark); display: grid; place-items: center; margin-bottom: .5rem;
}
.care-icon-navy { background: #E3EAEE; color: var(--navy); }
.care-icon svg { width: 24px; height: 24px; }
.care-card h3 { font-size: 1.22rem; }
.care-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-link {
  background: none; border: none; padding: 0; margin-top: .8rem; text-align: left; cursor: pointer;
  color: var(--teal-dark); font-weight: 600; font-size: .92rem; font-family: var(--font-body);
}
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy); color: #fff; padding: clamp(2.6rem, 5vw, 3.6rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--shallow); }
.stat p { font-size: .85rem; color: #AEC8D2; max-width: 15rem; margin: .35rem auto 0; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.step-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem;
}
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 1rem; margin-bottom: 1.1rem;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Splits ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy > p { color: var(--muted); margin-top: 1rem; max-width: 32rem; }
.mini-stats { display: flex; gap: 2.4rem; margin-top: 2rem; flex-wrap: wrap; }
.mini-stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--teal-dark); }
.mini-stats span { font-size: .84rem; color: var(--muted); max-width: 13rem; display: block; }

.feature-list { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.4rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-tint);
  color: var(--teal-dark); display: grid; place-items: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-list h3 { font-size: 1.08rem; }
.feature-list p { color: var(--muted); font-size: .92rem; margin-top: .15rem; }

.value-list { list-style: none; margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.value-list h3 { font-size: 1.1rem; }
.value-list h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: .55rem; vertical-align: 2px; }
.value-list p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); justify-content: center; gap: 1.4rem; }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 2.1rem;
  display: flex; flex-direction: column; position: relative;
}
.price-featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.price-flag {
  position: absolute; top: -13px; left: 2rem; background: var(--shallow); color: var(--navy);
  font-family: var(--font-mono); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px;
}
.price-card h3 { font-size: 1.35rem; }
.price { margin-top: .9rem; display: flex; align-items: baseline; gap: .3rem; }
.price-amount { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; letter-spacing: -0.02em; }
.price-per { color: var(--muted); font-weight: 500; }
.price-note { font-size: .84rem; color: var(--muted); margin-top: .2rem; }
.check-list { list-style: none; margin: 1.5rem 0 1.8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.check-list li { padding-left: 1.7rem; position: relative; font-size: .95rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B9484' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.price-fine { font-size: .76rem; color: var(--muted); margin-top: .9rem; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; font-weight: 600; font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; flex: none; width: 22px; height: 22px; }
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--teal-dark); border-radius: 2px;
  transition: transform .2s ease;
}
.faq-x::before { width: 14px; height: 2px; }
.faq-x::after { width: 2px; height: 14px; }
.faq-item[open] .faq-x::after { transform: rotate(90deg); }
.faq-body { padding: 0 1.4rem 1.25rem; color: var(--muted); font-size: .95rem; max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: clamp(4rem, 8vw, 6rem) 0; }
.cta-inner { text-align: center; max-width: 46rem; }
.cta-inner h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.cta-inner > p { color: #AEC8D2; margin: 1.2rem 0 2rem; }
.cta-inner .accent { color: var(--shallow); }
.cta-fine { font-size: .82rem; color: #8FA9B4; margin-top: 1.2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #AEC8D2; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer-brand p { font-size: .88rem; margin-top: 1rem; max-width: 17rem; }
.footer .brand-name { color: #fff; }
.footer-col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #7E99A6; margin-bottom: .9rem; font-weight: 400; }
.footer-col a { display: block; color: #C6D8DF; text-decoration: none; font-size: .9rem; padding: .22rem 0; }
.footer-col a:hover { color: #fff; }
.footer-cta .btn { margin-top: .3rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.6rem; padding-top: 1.4rem; }
.footer-legal p { font-size: .7rem; color: #7E99A6; line-height: 1.6; }
.footer-legal p + p { margin-top: .8rem; }

/* ---------- Legal / doc pages ---------- */
.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.doc h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: .4rem; }
.doc-updated { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.doc h2 { font-size: 1.4rem; margin: 2.2rem 0 .7rem; }
.doc h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.doc p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; max-width: 66ch; }
.doc ul { margin: .3rem 0 1rem 1.3rem; color: var(--muted); font-size: .95rem; max-width: 64ch; }
.doc li { margin-bottom: .5rem; }
.doc a { color: var(--teal-dark); }
.doc strong { color: var(--navy); }

/* ---------- Modal / assessment ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 46, 66, .55); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; z-index: 1; background: #fff; border-radius: 22px;
  width: min(540px, calc(100% - 2rem)); max-height: calc(100dvh - 3rem); overflow-y: auto;
  margin: 1.5rem auto; top: 50%; transform: translateY(-50%);
  padding: 2.3rem 2.2rem 2rem; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; translate: 0 12px; } }
.modal-close {
  position: absolute; top: .9rem; right: 1rem; background: none; border: none; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--muted); padding: .3rem;
}
.modal-progress { height: 5px; border-radius: 99px; background: var(--teal-tint); overflow: hidden; margin-bottom: 1.6rem; }
.modal-progress span { display: block; height: 100%; width: 33%; background: var(--teal); border-radius: 99px; transition: width .3s ease; }

.form-step { border: none; }
.form-step h3 { font-size: 1.45rem; margin-bottom: 1.2rem; }
.goal-grid { display: grid; gap: .7rem; }
.goal-option { display: block; cursor: pointer; }
.goal-option input { position: absolute; opacity: 0; }
.goal-option span {
  display: block; border: 1.5px solid var(--line); border-radius: 13px; padding: .85rem 1.1rem;
  transition: border-color .15s ease, background .15s ease;
}
.goal-option small { display: block; color: var(--muted); font-size: .82rem; margin-top: .1rem; }
.goal-option input:checked + span { border-color: var(--teal); background: var(--teal-tint); }
.goal-option input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.form-field, .form-row label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .95rem; }
.form-field .optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; margin-top: .35rem; padding: .7rem .9rem; font-family: var(--font-body); font-size: .95rem;
  border: 1.5px solid var(--line); border-radius: 11px; background: var(--card); color: var(--navy);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
textarea { resize: vertical; }
.form-row { display: grid; gap: .8rem; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.bmi-hint { font-size: .82rem; color: var(--teal-dark); background: var(--teal-tint); border-radius: 9px; padding: .5rem .8rem; margin: -.3rem 0 .95rem; }

.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .74rem; color: var(--muted); cursor: pointer; margin: .3rem 0 .6rem; }
.consent input { margin-top: .2rem; accent-color: var(--teal); }

.form-error { color: #c23b3b; font-size: .84rem; min-height: 1.2em; margin: .4rem 0; }
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .6rem; }
.form-nav .btn { flex: 1; }
.btn-back { background: none; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: .9rem; color: var(--muted); padding: .7rem .2rem; white-space: nowrap; }
.btn-back:hover { color: var(--navy); }
.form-fine { font-size: .72rem; color: var(--muted); text-align: center; margin-top: 1rem; }

.form-success { text-align: center; padding: 1rem 0; }
.success-icon {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal-dark); margin: 0 auto 1.2rem;
}
.success-icon svg { width: 30px; height: 30px; }
.form-success p { color: var(--muted); max-width: 26rem; margin: 0 auto 1.6rem; }

body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split-rev .split-media { order: -1; }
  .hero-media { max-width: 480px; }
  .stat-float { left: .8rem; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .topbar { font-size: .74rem; gap: .8rem; flex-wrap: wrap; padding: .45rem .8rem; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--card); border-bottom: 1px solid var(--line);
    padding: .6rem 1.5rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { padding: .6rem 1.1rem; font-size: .86rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .trustbar-inner { justify-content: center; text-align: center; font-size: .6rem; }
  .trustbar .sep { display: none; }
  .trustbar-inner span { flex-basis: 45%; }
  .value-list { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: repeat(3, 1fr); }
  .modal-card { padding: 1.8rem 1.4rem 1.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
