/* Agreed Divorce Now — shared styles
   Palette: navy + white + teal, with a thin warm-gold accent rule. */
:root {
  --navy: #14284b;
  --navy-900: #0d1c36;
  --teal: #2c7a82;
  --teal-600: #236870;
  --teal-soft: #e7f1f1;
  --gold: #d4a12a;
  --ink: #1b2433;
  --muted: #566173;
  --line: #dde4ea;
  --bg: #ffffff;
  --bg-alt: #f5f8f8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 28, 54, .06), 0 12px 32px rgba(13, 28, 54, .08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-600); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }

h1, h2, h3 { color: var(--navy); line-height: 1.18; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--teal-600); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: #e9edf1; color: #6b7482; border-color: #e9edf1; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-agreed { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.45rem; color: var(--teal-600); }
.brand-dn {
  font-size: .78rem; font-weight: 700; letter-spacing: .24em; color: var(--navy);
  margin-top: 5px; padding-top: 4px; border-top: 2px solid var(--gold);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  display: inline-block; padding: 10px 14px; border-radius: 8px;
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--teal-soft); }
.site-nav .btn { margin-left: 8px; min-height: 44px; padding: 10px 20px; }
.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  min-height: 44px; padding: 8px 14px; font: 700 .95rem var(--sans); color: var(--navy); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .site-nav a:not(.btn) { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .btn { margin: 14px 0 0; width: 100%; }
  .header-inner { position: static; }
  .site-header { position: sticky; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 10%, rgba(44, 122, 130, .12), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 .accent { color: var(--teal-600); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 22px; font-size: .95rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; max-width: 36em; }
.hero-note svg { flex: none; margin-top: 3px; }

.breadcrumb { font-size: .92rem; margin-bottom: 18px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9aa3af; }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

/* Hero card illustration */
.paper-stack { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.paper-stack::before, .paper-stack::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.paper-stack::before { transform: rotate(-5deg) translate(-10px, 12px); background: var(--teal-soft); }
.paper-stack::after { transform: rotate(3deg) translate(10px, 6px); }
.paper {
  position: relative; z-index: 1; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px;
}
.paper-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--gold); margin-bottom: 18px; }
.paper-title { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.paper-tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-600); background: var(--teal-soft); padding: 5px 10px; border-radius: 999px; }
.paper-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.paper-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.paper-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.paper-dot.done { background: var(--teal); color: #fff; }
.paper-dot.next { background: #fff; border: 2px solid var(--navy); color: var(--navy); }
.paper-dot.later { background: var(--bg-alt); border: 2px dashed #b7c1cb; color: #7a8594; }
.paper-list strong { display: block; color: var(--navy); line-height: 1.3; }
.paper-list span { font-size: .9rem; color: var(--muted); }
.paper-lines { margin-top: 20px; display: grid; gap: 8px; }
.paper-lines i { display: block; height: 8px; border-radius: 4px; background: #edf1f4; }
.paper-lines i:nth-child(2) { width: 82%; }
.paper-lines i:nth-child(3) { width: 64%; }
.paper-sign { margin-top: 20px; display: flex; gap: 16px; }
.paper-sign div { flex: 1; border-top: 1.5px solid var(--navy); padding-top: 6px; font-size: .75rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #d9e2ec; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: #9fd3d6; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Fit */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.fit-card h3 { display: flex; align-items: center; gap: 10px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23236870' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.x-list li::before {
  background: #f6efe0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 6v5M10 14h.01' fill='none' stroke='%23946b0e' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 30px; box-shadow: 0 1px 2px rgba(13, 28, 54, .04);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1;
  color: var(--teal); margin-bottom: 18px;
}
.step::after { content: ""; position: absolute; left: 28px; top: 0; width: 48px; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
.step p { color: var(--muted); margin: 0; }
.steps-note { margin-top: 28px; color: var(--muted); font-size: .98rem; text-align: center; }

/* LDA */
.lda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.lda-box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 30px; }
.lda-box + .lda-box { margin-top: 20px; }
.lda-box ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.section-navy a { color: #9fd3d6; }

/* Areas */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.area-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.area-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.area-card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.area-card p { color: var(--muted); }
.area-link { font-weight: 700; color: var(--teal-600); }

/* FAQ */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 4px; font-weight: 700; font-size: 1.1rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%23236870' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/60% no-repeat;
  transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 4px 22px; color: var(--muted); max-width: 70ch; }
.faq-body p:last-child { margin-bottom: 0; }

/* Getting started */
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.start-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a5a0a; background: #faf1dc; border-radius: 999px; padding: 6px 12px; margin-bottom: 16px; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.gather-list { counter-reset: g; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.gather-list li { counter-increment: g; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.gather-list li::before { content: counter(g); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; margin-top: 1px; }
.fine { font-size: .9rem; color: var(--muted); }

/* City intro */
.city-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.city-point { border-top: 3px solid var(--teal); padding-top: 20px; }
.city-point p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #1d3d62 60%, var(--teal-600) 130%); color: #dfe8ef; border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; gap: 28px; align-items: center; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 42em; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--teal-soft); }

/* Footer */
.site-footer { background: var(--navy-900); color: #b9c6d4; padding: 64px 0 32px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand-agreed { color: #8fcfd3; }
.site-footer .brand-dn { color: #fff; }
.footer-about { margin-top: 18px; max-width: 34em; }
.site-footer h2, .site-footer h3 { font-family: var(--sans); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer nav a { color: #dfe8ef; text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--gold); }
.disclosure { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #93a3b5; display: grid; gap: 10px; }
.disclosure strong { color: #dfe8ef; }
.placeholder { background: rgba(212, 161, 42, .18); color: #f2d9a0; padding: 0 4px; border-radius: 3px; }

/* 404 */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .lda-grid, .start-grid { grid-template-columns: 1fr; }
  .paper-stack { max-width: 400px; }
  .steps, .city-points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .fit-grid, .area-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .paper { padding: 22px; }
  .brand-agreed { font-size: 1.3rem; }
  .brand-mark { width: 36px; height: 36px; }
}
