/* The public website (home, start, terms, privacy). Uses the app's colours from styles.css. */

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 1rem 3rem; }
.serif, .site h1, .hero h2, .section h2 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; letter-spacing: -.01em; }

/* header & footer */
.site-head { display: flex; align-items: center; gap: 1rem; max-width: 1040px; width: 100%; margin: 0 auto; padding: 1rem; }
.site-head .brand { font-size: 1.15rem; }
.site-head nav { margin-left: auto; display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.site-head nav a { color: var(--text); padding: .4rem .7rem; border-radius: 8px; font-size: .95rem; }
.site-head nav a:hover { background: var(--surface); text-decoration: none; }
.site-head nav a.cta { background: var(--brand); color: var(--brand-ink); }
.site-foot { border-top: 1px solid var(--border); padding: 1.5rem 1rem 2rem; }
.site-foot .inner { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; color: var(--muted); font-size: .88rem; }
.site-foot nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-left: auto; }
.site-foot a { color: var(--muted); }

/* home */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 2.5rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin-bottom: 1rem; }
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero .actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn.lg { padding: .75rem 1.2rem; font-size: 1rem; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--brand); margin-bottom: .75rem; }

/* the illustrated "relatives" panel on the home page */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 1rem; display: grid; gap: .6rem; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 .25rem .25rem; }
.mock-head strong { font-size: .95rem; }
.rel { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: .75rem; align-items: center; padding: .6rem .7rem; border-radius: 12px; background: var(--surface-2); }
.rel .av { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .95rem; }
.rel .nm { font-weight: 600; line-height: 1.25; }
.rel .sub { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.rel .far { text-align: right; font-size: .82rem; color: var(--muted); line-height: 1.35; white-space: nowrap; }
.rel .far b { color: var(--text); font-weight: 600; }

.section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.section > h2 { font-size: 1.7rem; margin-bottom: .4rem; }
.section > .lede { color: var(--muted); max-width: 40rem; margin-bottom: 1.5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem; }
.feature .ic { font-size: 1.4rem; line-height: 1; margin-bottom: .6rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.steps li { position: relative; padding: 1rem 1rem 1rem 3.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }

.promise { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 2rem; padding: 0; margin: 0; list-style: none; }
.promise li { padding-left: 1.6rem; position: relative; }
.promise li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.faq details { border-bottom: 1px solid var(--border); padding: .85rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .6rem 0 0; color: var(--muted); max-width: 46rem; }

.closing { text-align: center; padding: 3rem 1rem 1rem; }
.closing h2 { font-size: 1.8rem; }

/* legal pages */
.doc { max-width: 46rem; margin: 0 auto; padding-top: 1.5rem; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: .3rem; }
.doc h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; font-family: inherit; }
.doc h3 { margin: 1.25rem 0 .35rem; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li { margin-bottom: .3rem; }
.doc .updated { color: var(--muted); margin-bottom: 1.5rem; }
.doc .summary { background: var(--brand-soft); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.doc .summary h2 { margin-top: 0; }
.doc .summary ul { margin-bottom: 0; }
.doc table { border-collapse: collapse; width: 100%; margin: .5rem 0 1rem; font-size: .92rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; }
.doc .toc { columns: 2; font-size: .92rem; padding-left: 1.1rem; }

/* start page */
.start-page { padding-top: 1rem; }
.start-page .intro { text-align: center; max-width: 40rem; margin: 0 auto 2rem; }
.start-page .intro h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

/* not found */
.lost { text-align: center; padding: 4rem 1rem; }
.lost h1 { font-size: 2rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 1rem; gap: 2rem; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; }
  .doc .toc { columns: 1; }
  .site-head nav a:not(.cta):not(.keep) { display: none; }
}
@media print {
  .site-head, .site-foot { display: none; }
}
