/* Haven360 coming-soon page
   Plum, violet and lavender with one warm peach accent. Roundo throughout. */

:root {
  --bg: #ffffff;
  --tint: #f6f2fd;        /* lavender section background */
  --ink: #2b1f45;         /* deep plum text */
  --muted: #5d5275;
  --line: #e6dff3;
  --accent: #7448d4;      /* violet: buttons and highlights */
  --accent-dark: #5f35bf;
  --accent-soft: #ebe3fb;
  --plum: #2b1f45;
  --peach: #f6b48f;

  --font: "Roundo", ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  --fs-h1: clamp(2rem, 1.4rem + 2vw, 3.125rem);

  --radius: 14px;
  --container: 1160px;
  --section: clamp(56px, 7vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; border-radius: 8px; }
.skip:focus { top: 8px; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: var(--fs-body); padding: 11px 22px; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { font-size: var(--fs-small); padding: 8px 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-dark { background: var(--plum); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }

/* ---------- safety strip + nav ---------- */
.safety-strip { background: var(--plum); color: #fff; font-size: var(--fs-small); text-align: center; padding: 8px 16px; }
.safety-strip a { font-weight: 600; text-underline-offset: .2em; white-space: nowrap; }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.2rem; text-decoration: none; }
.mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 28px; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 6vw, 88px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  font-size: var(--fs-small); font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: var(--fs-h1); max-width: 16em; }
.lead { font-size: var(--fs-lead); color: var(--muted); margin-top: 18px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { background: var(--accent); border-radius: 28px 28px 28px 120px; padding: 40px 32px 40px 48px; }

/* ---------- product panels ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel-title { font-weight: 600; font-size: 1.05rem; }
.panel-meta { color: var(--muted); font-size: var(--fs-small); }
.panel-label { color: var(--muted); font-size: 0.8rem; margin: 18px 0 8px; }
.record { box-shadow: 0 18px 40px -24px rgba(28, 14, 60, .5); }
.record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chip { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip-ok { background: #e3f6ec; color: #1f6b45; }
.chip-early { background: var(--accent-soft); color: var(--accent-dark); }
.chip-launch { background: #fdeee5; color: #9a4a1f; }
.chip-later { background: #eef0f3; color: #4b5563; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats div { background: var(--tint); border-radius: 10px; padding: 10px 12px; }
.stats b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.stats span { font-size: 0.78rem; color: var(--muted); line-height: 1.3; display: block; }
.activity { list-style: none; display: grid; gap: 2px; }
.activity li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: start; padding: 9px 8px; border-radius: 8px; font-size: 0.9rem; }
.activity li.is-selected { background: var(--tint); }
.activity b { display: block; font-weight: 600; }
.activity span { color: var(--muted); font-size: 0.82rem; }
.activity time { color: var(--muted); font-size: 0.8rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--accent); margin-top: 6px; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--plum); color: #fff; }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: var(--fs-lead); }
.section-dark .section-head p { color: #cfc5e6; }
.section-head a { color: var(--accent); }

.grid { display: grid; gap: 20px; }
.grid-who { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }

.card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card h3 { font-size: var(--fs-h3); margin-top: 14px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.feature { border-top: 3px solid var(--accent); padding-top: 16px; }
.feature h3 { font-size: var(--fs-h3); }
.feature p { margin-top: 6px; color: var(--muted); }

/* reporting */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: var(--fs-h2); }
.section-text { color: var(--muted); margin-top: 12px; font-size: var(--fs-lead); }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.checks li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: var(--fs-small); font-weight: 600; }
.mapper { padding: 24px; }
.mapper .panel-label { margin-top: 0; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--tint); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 6px; font-weight: 600; font-size: 0.95rem; cursor: pointer; color: var(--ink); transition: background-color .15s ease, color .15s ease; }
.seg button:hover { background: #fff; }
.seg button[aria-checked="true"] { background: var(--accent); color: #fff; }
.mapping { margin-top: 20px; display: grid; gap: 12px; }
.mapping dt { color: var(--muted); font-size: var(--fs-small); }
.mapping dd { font-weight: 600; }
#funder-cat { color: var(--accent-dark); transition: opacity .15s ease; }
#funder-cat.is-swapping { opacity: 0; }

/* modules table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.modules { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.modules th { text-align: left; font-size: var(--fs-small); color: var(--muted); font-weight: 600; background: var(--tint); padding: 12px 20px; }
.modules td { padding: 14px 20px; border-top: 1px solid var(--line); }
.modules td:first-child { font-weight: 600; white-space: nowrap; }
.modules td:last-child, .modules th:last-child { text-align: right; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { background: rgba(255, 255, 255, 0.06); border-radius: var(--radius); padding: 24px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--peach); color: var(--plum); font-weight: 600; }
.steps h3 { font-size: var(--fs-h3); margin-top: 14px; }
.steps p { margin-top: 6px; color: #cfc5e6; font-size: 0.95rem; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq details[open] { background: var(--tint); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* early access */
.cta { background: var(--accent); color: #fff; padding: var(--section) 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; }
.cta h2 { font-size: var(--fs-h2); }
.cta-copy p { margin-top: 12px; font-size: var(--fs-lead); color: #ece5fb; max-width: 30em; }
.form { color: var(--ink); display: grid; gap: 6px; padding: 26px; border: 0; box-shadow: 0 24px 50px -24px rgba(28, 14, 60, .55); }
.form .panel-title { font-size: 1.15rem; margin-bottom: 8px; }
.form label, .form legend { font-size: var(--fs-small); color: var(--muted); }
.form input[type="email"], .form input:not([type]) {
  border: 1px solid #d8cfea; border-radius: 10px; padding: 11px 14px; font-size: 1rem; margin-bottom: 8px; background: #fff;
}
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field input { width: 100%; }
.form fieldset { border: 0; display: grid; gap: 6px; margin-bottom: 14px; }
.mini-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--tint); border-radius: 999px; padding: 4px; }
.mini-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mini-seg label { text-align: center; padding: 8px; border-radius: 999px; cursor: pointer; color: var(--ink); font-size: 0.92rem; }
.mini-seg input:checked + label { background: var(--plum); color: #fff; }
.mini-seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.msg { min-height: 1.4em; font-size: var(--fs-small); color: var(--muted); }
.msg.ok { color: #1f6b45; }
.msg.err { color: #b3261e; }
.form.loading .btn { opacity: .7; pointer-events: none; }

/* footer */
.foot { background: var(--plum); color: #fff; padding: 56px 0 28px; font-size: var(--fs-small); }
.brand-light { color: #fff; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.foot-tag { color: #b9aed1; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin-top: 40px; }
.foot-cols a { display: block; text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { color: #d9c9ff; }
.foot-help a { display: inline; text-decoration: underline; text-underline-offset: .2em; font-weight: 600; white-space: nowrap; }
.foot-h { color: #b9aed1; margin-bottom: 8px; }
.foot address { font-style: normal; }
.foot-last { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #b9aed1; }
.foot-last a { text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .split, .faq-wrap, .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { border-radius: 24px 24px 24px 80px; padding: 28px 20px 28px 32px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-who { grid-template-columns: 1fr; }
  .faq-wrap .section-head { margin-bottom: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .stats span { font-size: 0.72rem; }
  .activity li { grid-template-columns: 14px 1fr; }
  .activity time { display: none; }
  .modules th:nth-child(2), .modules td:nth-child(2) { display: none; }
  .modules td, .modules th { padding: 12px 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
