/* Haven — havenfamilybinder.com
   Layout: one calm column with full-bleed photo bands; Brand Kit v1.1 tokens. */
:root {
  --cream: #FFFFFF;
  --linen: #F8F7F3;
  --card: #FFFFFF;
  --header: #E9EBE6;
  --pine: #59645D;
  --ink: #4A5049;
  --ink-soft: #6A7069;
  --line: #ECE8E0;
  --mist: #B9C0BA;
  --sage: #7A8B7D;
  --sage-soft: #EBEFE9;
  --blush: #DFA39D;
  --blush-soft: #F7ECEA;
  --olive: #4E5340;
  --on-pine: #FFFFFF;
  --danger: #B0453F;
  --shadow: 0 2px 6px rgba(89, 100, 93, .06);
  --radius-sm: 12px;
  --radius: 22px;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #20241F; --linen: #262B25; --card: #2A2F29; --header: #262B25;
    --pine: #CBD4C9; --ink: #E6E8E3; --ink-soft: #9BA398; --line: #3A403A; --mist: #4A524B;
    --sage: #8FA491; --sage-soft: #333A33; --blush-soft: #413432; --olive: #CBD4C9;
    --on-pine: #20241F; --danger: #D0817D; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cream: #20241F; --linen: #262B25; --card: #2A2F29; --header: #262B25;
  --pine: #CBD4C9; --ink: #E6E8E3; --ink-soft: #9BA398; --line: #3A403A; --mist: #4A524B;
  --sage: #8FA491; --sage-soft: #333A33; --blush-soft: #413432; --olive: #CBD4C9;
  --on-pine: #20241F; --danger: #D0817D; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--pine); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; }
.eyebrow { font-family: var(--display); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.tagline { font-family: var(--display); font-style: italic; color: var(--ink-soft); }
.verse { margin: 4px 0 0; padding-left: 16px; border-left: 2px solid var(--blush); display: grid; gap: 6px; max-width: 34rem; }
.verse p { font-family: var(--display); font-style: italic; font-size: .98rem; line-height: 1.6; color: var(--ink-soft); }
.verse cite { font-style: normal; font-size: .8rem; letter-spacing: .06em; color: var(--ink-soft); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--header); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--header) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--pine); font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.brand img { width: 60px; height: 60px; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--pine); text-decoration: underline; text-decoration-color: var(--blush); text-decoration-thickness: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-sm); padding: 13px 22px; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--pine); cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.btn-primary { background: var(--pine); color: var(--on-pine) !important; }
.btn-secondary { background: transparent; color: var(--pine) !important; border-color: var(--mist); }
.btn:hover { transform: translateY(-1px); }
.nav .btn { padding: 9px 16px; font-size: .9rem; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 96px); }
.band { background: var(--linen); }

/* Hero */
.hero { padding-block: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-solo { grid-template-columns: minmax(0, 46rem); padding-block: clamp(56px, 9vw, 120px); }
.hero-visual { position: relative; display: grid; justify-items: center; gap: 14px; min-width: 0; padding-block: 12px; }
.hero-visual::before { content: ""; position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--sage-soft); top: 50%; left: 50%; transform: translate(-50%, -52%); }
.hero-visual::after { content: ""; position: absolute; width: 120px; aspect-ratio: 1; border-radius: 50%; background: var(--blush-soft); top: 8%; right: 10%; }
.hero-phone { position: relative; z-index: 1; transform: rotate(3deg); width: min(330px, 100%); }
@media (prefers-reduced-motion: no-preference) { .hero-phone { animation: rise .7s ease-out both; } @keyframes rise { from { transform: translateY(14px) rotate(3deg); } to { transform: rotate(3deg); } } }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font-size: .9rem; color: var(--ink-soft); }

/* Feature grid */
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 40rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature .icon { width: 44px; height: 44px; border-radius: 999px; background: var(--sage-soft); display: grid; place-items: center; color: var(--pine); }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.stack { display: grid; gap: 18px; }

/* Waitlist */
.waitlist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow); display: grid; gap: 20px; }
.form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input { font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--linen); color: var(--ink); width: 100%; }
.form-msg { grid-column: 1 / -1; font-size: .95rem; color: var(--pine); }
.form-msg.error { color: var(--danger); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; gap: 8px; padding-top: 16px; border-top: 1.5px solid var(--mist); }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.6rem; color: var(--blush); }
.steps p { color: var(--ink-soft); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; box-shadow: var(--shadow); }
.faq summary { font-family: var(--display); font-size: 1.12rem; color: var(--pine); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-soft); font-family: var(--body); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Feature detail rows */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; padding-block: 40px; border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 0; }
.detail > * { min-width: 0; }
.detail ul { margin: 6px 0 0; padding-left: 1.1rem; color: var(--ink-soft); display: grid; gap: 6px; }
.phone { width: min(320px, 100%); margin-inline: auto; border-radius: 40px; border: 10px solid #2F3227; background: var(--cream); padding: 22px 16px; box-shadow: 0 20px 40px rgba(47, 50, 39, .18); display: grid; gap: 10px; }
.phone .ph-title { font-family: var(--display); font-size: 1.15rem; color: var(--pine); }
.ph-card { background: var(--card); border-radius: 16px; padding: 12px 14px; position: relative; overflow: hidden; font-size: .85rem; line-height: 1.45; }
.ph-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blush); }
.ph-card b { color: var(--ink); font-weight: 700; display: block; font-size: .92rem; }
.ph-card span { color: var(--ink-soft); }
.ph-card .ph-pill, .ph-pill { display: inline-block; margin-top: 8px; background: var(--pine); color: var(--on-pine); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; }
.ph-check { display: flex; gap: 8px; align-items: center; font-size: .85rem; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.ph-check i { width: 14px; height: 14px; border-radius: 999px; border: 1.5px solid var(--mist); flex: none; }
.ph-check i.on { background: var(--sage); border-color: var(--sage); }

/* Prose pages */
.prose { display: grid; gap: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.prose h2[id] { scroll-margin-top: 112px; }
.prose h3 { font-size: 1.12rem; margin-top: 8px; }
.prose .meta { color: var(--ink-soft); font-size: .95rem; margin-top: -4px; }
.prose .caps { font-size: .88rem; letter-spacing: .01em; line-height: 1.6; }
.prose .summary { background: var(--sage-soft); border-radius: var(--radius-sm); padding: 16px 20px; display: grid; gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; color: var(--pine); background: var(--linen); }
.prose tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--linen); border-top: 1px solid var(--line); padding-block: 40px; font-size: .92rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
.foot-brand { display: grid; gap: 6px; }

@media (max-width: 860px) {
  .hero-grid, .split, .detail { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .detail .phone { order: 2; }
}
@media (max-width: 560px) {
  .features, .steps { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .brand { font-size: 1.75rem; gap: 12px; }
  .brand img { width: 50px; height: 50px; }
  body { font-size: 16px; }
  .prose h2[id] { scroll-margin-top: 162px; }
}

/* Home-screen replica of the Haven app (light mode, sample data) */
.app-phone { position: relative; z-index: 1; width: min(340px, 100%); aspect-ratio: 9 / 19; border-radius: 48px; border: 11px solid #1F2220; background: #1F2220; box-shadow: 0 24px 48px rgba(47, 50, 39, .2); transform: rotate(3deg); }
.ap-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #F4F3EF; font-family: var(--body); color: #4A5049; display: flex; flex-direction: column; }
.ap-head { background: #E3E6E1; border-radius: 0 0 22px 22px; padding: 10px 18px 12px; }
.ap-status { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: #111; height: 26px; }
.ap-island { width: 78px; height: 22px; border-radius: 99px; background: #111; }
.ap-bars { width: 36px; height: 11px; border-radius: 3px; background: #111; }
.ap-brandrow { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ap-brand { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 1.2rem; color: #59645D; }
.ap-tools { display: inline-flex; align-items: center; gap: 6px; }
.ap-mode { font-size: .45rem; font-weight: 700; letter-spacing: .08em; line-height: 1.2; color: #6A7069; text-align: right; }
.ap-toggle { width: 34px; height: 19px; border-radius: 99px; background: #fff; position: relative; }
.ap-toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #E9E4DA; }
.ap-gear { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .8rem; color: #59645D; }
.ap-member { display: grid; justify-items: start; width: max-content; margin-top: 10px; text-align: center; }
.ap-avatar { width: 46px; height: 46px; border-radius: 50%; background: #DFA39D; color: #fff; font-family: var(--display); font-size: 1.15rem; display: grid; place-items: center; border: 3px solid #fff; justify-self: center; }
.ap-mname { font-size: .72rem; font-weight: 700; color: #59645D; margin-top: 3px; justify-self: center; }
.ap-mage { font-size: .6rem; color: #6A7069; justify-self: center; }
.ap-idline { font-size: .62rem; color: #6A7069; text-align: center; margin-top: 6px; }
.ap-idline b { color: #4A5049; }
.ap-body { padding: 14px 16px 0; display: grid; gap: 8px; align-content: start; flex: 1; }
.ap-greet { font-family: var(--display); font-size: 1.25rem; color: #59645D; line-height: 1.15; }
.ap-date { font-size: .66rem; color: #6A7069; margin-top: -6px; }
.ap-ask { background: #5B635C; color: #F4F3EF; font-family: var(--display); font-size: .72rem; border-radius: 99px; padding: 9px 14px; display: flex; gap: 8px; align-items: center; }
.ap-ask-ic { font-size: .8rem; }
.ap-sec { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: .6rem; letter-spacing: .12em; color: #6A7069; margin-top: 2px; }
.ap-add { font-family: var(--body); letter-spacing: 0; font-size: .62rem; font-weight: 700; color: #59645D; background: #EBEFE9; border-radius: 99px; padding: 4px 9px; }
.ap-card { background: #fff; border-radius: 16px; padding: 10px 12px 10px 15px; position: relative; overflow: hidden; display: grid; gap: 2px; }
.ap-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #F2D6D2; }
.ap-card b { font-family: var(--display); font-weight: 500; font-size: .86rem; color: #59645D; }
.ap-card span { font-size: .64rem; color: #6A7069; }
.ap-card small { font-size: .56rem; color: #6A7069; }
.ap-bar { display: block; height: 6px; border-radius: 99px; background: #7A8B7D; margin: 5px 0 3px; }
.ap-mic { position: absolute; right: 12px; bottom: 62px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(89,100,93,.2); display: grid; place-items: center; font-size: .8rem; filter: grayscale(1); }
.ap-tabs { display: flex; justify-content: space-around; background: #FCFBFB; border-top: 1px solid #ECE8E0; padding: 7px 4px 14px; }
.ap-tab { display: grid; justify-items: center; gap: 2px; font-size: .5rem; color: #6A7069; }
.ap-tab svg { width: 17px; height: 17px; fill: #6A7069; }
.ap-tab.on { color: #4A5049; font-weight: 700; }
.ap-tab.on svg { fill: #4A5049; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
