/* DivorceParentingSchedule — marketing site ("Haven" design direction).
   Static, framework-free. Tokens follow the platform design system (PRD §6.3). */

/* ---------- self-hosted fonts (no third-party requests; see privacy.html) ----------
   DM Sans (variable), SIL OFL 1.1 — required notice ships in /fonts/OFL-DM-Sans.txt;
   source/version metadata in /fonts/README.md. */
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1a1a2e;
  --ink-soft: #5b6473;
  --slate: #2c4a6e;
  --slate-deep: #223a57;
  --gold: #c8a96e;
  --gold-deep: #8a6c33;
  --gold-soft: #efe5d2;
  --paper: #f7f6f3;
  --paper-raised: #ffffff;
  --line: #e2ddd5;
  --success: #3d9970;
  --day-a: #e7eef7;
  --day-b: #efe5d2;
}

/* ---------- base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
.serif {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
a {
  color: var(--slate);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--slate);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(44, 74, 110, 0.18);
}
.btn-primary {
  background: var(--slate);
  color: #fff;
}
.btn-primary:hover {
  background: var(--slate-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--slate);
  box-shadow: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- environment badge (non-production only; injected by main.js) ---------- */
.env-badge {
  position: fixed;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  pointer-events: none;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(200, 169, 110, 0.18);
  border: 1px solid var(--gold);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
@media print {
  .env-badge {
    display: none;
  }
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px -12px rgba(34, 58, 87, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 32% 32%, var(--gold) 0 46%, var(--slate) 47% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links .btn {
  color: var(--slate);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a {
  padding: 15px 24px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 104px 0 72px;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin: 0 auto 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--slate);
}
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 38px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-snug {
  padding-bottom: 48px;
}
.how-snug {
  padding-top: 40px;
}
.hero-page {
  padding: 80px 0 96px;
}
.page-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.legal-body {
  max-width: 70ch;
  margin: 36px auto 0;
  text-align: left;
  color: var(--ink-soft);
}
.legal-body h2 {
  font-size: 1.3rem;
  color: var(--ink);
  margin: 28px 0 10px;
}
.legal-body ul {
  list-style: none;
  display: grid;
  gap: 12px;
}
.legal-body li {
  padding-left: 26px;
  position: relative;
}
.legal-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.legal-body strong {
  color: var(--ink);
}

.arc {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.arc-1 {
  width: 560px;
  height: 560px;
  border: 1px solid var(--line);
  top: -300px;
  left: -160px;
}
.arc-2 {
  width: 760px;
  height: 760px;
  border: 1px solid var(--gold-soft);
  top: -380px;
  right: -260px;
}

/* ---------- feature tour: real product scenes ----------
   Screenshots of the actual editor (synthetic example data). Scenes reveal on
   scroll via the shared .reveal observer; a scroll-driven micro-parallax on the
   images is layered on as a progressive enhancement where supported. */
.tour {
  padding: 64px 0 32px;
}
.tour-head {
  margin-bottom: 48px;
}
.scene {
  max-width: 1080px;
  margin: 0 auto 128px;
}
.scene-copy {
  text-align: center;
  max-width: 64ch;
  margin: 0 auto 40px;
}
.scene-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
.scene h3 {
  font-size: clamp(1.9rem, 4.8vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
}
.scene-copy > p:not(.scene-kicker) {
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.shot-frame {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 48px 100px -48px rgba(34, 58, 87, 0.45);
  overflow: hidden;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.browser-frame .frame-dots {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.frame-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.shot-hero {
  margin-top: 12px;
  margin-bottom: 140px;
}
.shot-caption {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 66ch;
  margin: 18px auto 0;
}
.shot-pair {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
}
.shot-pair .shot-frame {
  flex: 0 1 330px;
}
.shot-pair-b {
  margin-top: 64px;
}

/* scene reveal choreography: copy first, image follows */
.js .scene.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.js .scene .scene-copy,
.js .scene .shot-frame,
.js .scene .shot-pair,
.js .scene .shot-caption {
  opacity: 0;
  transform: translateY(46px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .scene .shot-pair .shot-frame {
  /* pair children inherit the pair's reveal; avoid double-hiding */
  opacity: 1;
  transform: none;
  transition: none;
}
.js .scene.visible .scene-copy {
  opacity: 1;
  transform: none;
}
.js .scene.visible .shot-frame,
.js .scene.visible .shot-pair {
  opacity: 1;
  transform: none;
  transition-delay: 0.14s;
}
.js .scene.visible .shot-caption {
  opacity: 1;
  transform: none;
  transition-delay: 0.28s;
}

/* scroll-scrubbed micro-parallax where the browser supports it */
@supports (animation-timeline: view()) {
  .js .scene .shot-frame img {
    animation: shot-rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 45%;
  }
  @keyframes shot-rise {
    from {
      transform: translateY(24px) scale(0.978);
    }
    to {
      transform: none;
    }
  }
}

/* bento: the quieter things, side by side */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto 32px;
}
.bento-tile {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
}
.bento-tile strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.bento-tile p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- sections ---------- */
.section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- audiences ---------- */
.audiences {
  padding: 88px 0;
}
.aud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.aud-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.aud-card:hover {
  box-shadow: 0 18px 44px -24px rgba(34, 58, 87, 0.3);
  transform: translateY(-3px);
}
.aud-tag {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.aud-card.families .aud-tag {
  color: var(--gold-deep);
}
.aud-card.pros .aud-tag {
  color: var(--slate);
}
.aud-card h3 {
  font-size: 1.7rem;
}
.aud-card > p {
  color: var(--ink-soft);
}
.aud-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.aud-card li {
  padding-left: 26px;
  position: relative;
  overflow-wrap: anywhere;
}
.aud-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.aud-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}
.aud-grid--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

/* ---------- insight band ---------- */
.insight {
  background: var(--paper-raised);
  border-block: 1px solid var(--line);
  padding: 88px 0;
}
.insight-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.insight-text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 18px;
}
.insight-text p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.insight-text em {
  color: var(--ink);
}
.insight-stats {
  display: grid;
  gap: 18px;
}
.insight-stats > div {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px;
}
.insight-stats dt {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 2.2rem;
  color: var(--slate);
  line-height: 1.1;
}
.insight-stats dd {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- how it works ---------- */
.how {
  padding: 88px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 14px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-weight: 700;
  font-size: 3.4rem;
  color: var(--gold-soft);
  position: absolute;
  top: -28px;
  left: -4px;
  z-index: 0;
}
.step h3,
.step p {
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- pricing ---------- */
.pricing {
  background: var(--paper-raised);
  border-block: 1px solid var(--line);
  padding: 88px 0;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card.featured {
  background: var(--paper-raised);
  border-color: var(--slate);
  box-shadow: 0 22px 50px -28px rgba(34, 58, 87, 0.35);
}
.tier {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.price {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 2.6rem;
  color: var(--ink);
}
.price small {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.price-firm {
  font-size: 1.9rem;
  padding-top: 8px;
}
.price-card .desc {
  color: var(--ink-soft);
  font-size: 0.93rem;
  flex-grow: 1;
}
.fine {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.price-grid--single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}
.price-pro-note {
  text-align: center;
  margin-top: 24px;
}

/* ---------- professionals coming-soon strip ---------- */
.pro-strip {
  padding: 0 0 88px;
}
.pro-strip-inner {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pro-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
}
.pro-strip h2 {
  font-size: 1.35rem;
  margin: 6px 0 6px;
}
.pro-strip-inner p:not(.pro-tag) {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 58ch;
}
.pro-strip .btn {
  flex: none;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 88px 0;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 24px;
}
.faq-list details[open] {
  border-color: var(--gold);
}
.faq-list summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 18px 30px 18px 0;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.4rem;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-list details p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 0 0 20px;
}

/* ---------- future ---------- */
.future {
  background: var(--slate);
  color: #e9eef5;
  padding: 96px 0;
}
.future .section-head h2 {
  color: #fff;
}
.future .section-head p {
  color: #b9c6d8;
}
.timeline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tl-item {
  text-align: center;
  padding: 0 34px;
  position: relative;
}
.tl-item + .tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
}
.tl-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--gold);
}
.tl-item.soon .tl-dot {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.tl-item h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #fff;
}
.tl-item p {
  font-size: 0.78rem;
  color: #b9c6d8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- closing CTA ---------- */
.closing {
  text-align: center;
  padding: 96px 0;
}
.closing h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  max-width: 24ch;
  margin: 0 auto 14px;
}
.closing > .wrap > p {
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}
.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--ink);
}
.disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  max-width: 90ch;
  line-height: 1.7;
}
.colophon {
  margin-top: 16px;
  font-size: 0.8rem;
}

/* ---------- reveal on scroll ----------
   Hidden state is scoped to html.js (set by an inline head script) so content
   is never invisible when JavaScript is unavailable. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .aud-grid,
  .steps,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .scene {
    margin-bottom: 88px;
  }
  .shot-hero {
    margin-bottom: 96px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .pro-strip-inner {
    padding: 24px;
  }
  .insight-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-nav:not([hidden]) {
    display: flex;
  }
  .hero {
    padding-top: 72px;
  }
  .tl-item {
    padding: 0 20px 26px;
  }
  .tl-item + .tl-item::before {
    display: none;
  }
}

/* phones: stack the paired portrait shots and the bento tiles */
@media (max-width: 520px) {
  .shot-pair {
    flex-direction: column;
    align-items: center;
  }
  .shot-pair .shot-frame {
    flex-basis: auto;
    width: min(330px, 100%);
  }
  .shot-pair-b {
    margin-top: 0;
  }
  .bento {
    grid-template-columns: 1fr;
  }
}

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .js .scene .scene-copy,
  .js .scene .shot-frame,
  .js .scene .shot-pair,
  .js .scene .shot-caption {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js .scene .shot-frame img {
    animation: none;
  }
  .btn,
  .aud-card,
  .cal-day {
    transition: none;
  }
}
