/* After Someone Dies. A calm dusk palette taken from the geese photo. Figtree for the interface, Newsreader for obituary text. */
@font-face { font-family: Figtree; src: url(/assets/fonts/Figtree-Variable.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/assets/fonts/Newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/assets/fonts/Newsreader-Italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
:root {
  color-scheme: light;
  --dusk: #20394A; --dusk-deep: #13242F; --dusk-mid: #2F5166; --dusk-soft: #5C7C8E; --tint: #E8EEF1; --tint-2: #D5E0E6;
  --text: #1B2A36; --body: #3D4A55; --muted: #5E6A74; --paper: #FBF8F3; --sand: #F3EFE8; --sand-2: #EAE4D9; --white: #fff; --line: #E4DED3; --line-cool: #D9E1E6;
  --gold: #E9A63F; --gold-strong: #F7A531; --gold-ink: #8A5A10; --gold-tint: #FBF0DC; --good: #22613F; --good-tint: #E2F0E7; --bad: #93342A; --bad-tint: #F8E7E3;
  --radius: 22px; --radius-sm: 14px; --shadow: 0 1px 2px rgba(19,36,47,.05), 0 18px 40px -24px rgba(19,36,47,.28); --shadow-lg: 0 2px 4px rgba(19,36,47,.05), 0 40px 80px -40px rgba(19,36,47,.45);
  --serif: Newsreader, Georgia, "Times New Roman", serif; --sans: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--text); font-weight: 700; letter-spacing: -.022em; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--dusk-mid); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--dusk); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-strong); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(100% - 32px, 1160px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.mid { width: min(100% - 32px, 940px); margin-inline: auto; }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--body); }
.eyebrow { display: inline-block; color: var(--gold-ink); font-weight: 700; font-size: .84rem; letter-spacing: .02em; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.xs { font-size: .84rem; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.15fr .85fr; } .split.wide-right { grid-template-columns: .85fr 1.15fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; background: none; transition: transform .16s, background .16s, box-shadow .16s, color .16s, border-color .16s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--dusk); color: #fff; box-shadow: 0 12px 26px -14px rgba(19,36,47,.7); }
.btn-primary:hover { background: var(--dusk-deep); color: #fff; }
.btn-gold { background: var(--gold-strong); color: #2B1B02; box-shadow: 0 14px 30px -14px rgba(180,110,10,.8); }
.btn-gold:hover { background: #FFB54A; color: #2B1B02; }
.btn-light { background: #fff; color: var(--dusk); }
.btn-light:hover { background: var(--tint); color: var(--dusk-deep); }
.btn-ghost { border-color: var(--tint-2); color: var(--dusk); background: rgba(255,255,255,.65); }
.btn-ghost:hover { border-color: var(--dusk-soft); background: #fff; color: var(--dusk-deep); }
.btn-glass { border-color: rgba(255,255,255,.42); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-danger { border-color: #E2BDB6; color: var(--bad); background: #fff; }
.btn-danger:hover { background: var(--bad-tint); color: var(--bad); }
.btn-sm { min-height: 40px; padding: 8px 17px; font-size: .94rem; }
.btn-xs { min-height: 32px; padding: 5px 13px; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--dusk); text-decoration: none; }
.text-link .icon { width: 17px; height: 17px; transition: transform .18s; }
.text-link:hover .icon { transform: translateX(3px); }

/* Floating glass header */
.site-header { position: sticky; top: 12px; z-index: 50; margin-top: 12px; pointer-events: none; }
.header-inner { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; padding: 8px 10px 8px 18px; border-radius: 999px; background: rgba(255,255,255,.76); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 1px 1px rgba(19,36,47,.04), 0 14px 34px -22px rgba(19,36,47,.5); transition: background .2s; }
.site-header.scrolled .header-inner { background: rgba(255,255,255,.93); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 750; letter-spacing: -.02em; font-size: 1.07rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 13px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .97rem; white-space: nowrap; }
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { background: var(--tint); }
.site-nav a.btn { color: #fff; padding-inline: 18px; margin-left: 6px; }
.site-nav a.btn:hover { background: var(--dusk-deep); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tint); color: var(--dusk); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav a.btn { margin: 6px 0 0; }
}
@media (max-width: 400px) { .brand { font-size: .98rem; } }

/* Home hero */
.page-home .site-header, .has-hero .site-header { margin-bottom: -86px; }
.hero { position: relative; isolation: isolate; background: var(--dusk-deep); color: #fff; overflow: clip; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translate(-1.2%, -.8%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,28,38,.9) 0%, rgba(14,28,38,.74) 36%, rgba(14,28,38,.2) 64%, rgba(14,28,38,.05) 100%), linear-gradient(0deg, rgba(14,28,38,.5), rgba(14,28,38,0) 34%); }
.hero-body { padding: clamp(150px, 17vh, 200px) 0 clamp(64px, 9vh, 110px); min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.3vw, 4.5rem); line-height: 1.02; letter-spacing: -.04em; max-width: 11.5em; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 29em; margin: 0 0 30px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 550; font-size: .97rem; color: inherit; }
.ticks .icon { width: 18px; height: 18px; color: var(--gold-strong); stroke-width: 2.4; }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(0deg, rgba(14,28,38,.96) 0%, rgba(14,28,38,.9) 38%, rgba(14,28,38,.62) 62%, rgba(14,28,38,.28) 82%, rgba(14,28,38,.12) 100%); }
  .hero-img img { object-position: 62% 30%; }
  .hero-body { min-height: 90vh; justify-content: flex-end; padding: 150px 0 48px; }
}
@media (prefers-reduced-motion: reduce) { .hero-img img { animation: none; } html { scroll-behavior: auto; } .reveal { opacity: 1 !important; transform: none !important; } }

/* Sections */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-sm { padding: clamp(40px, 6vw, 68px) 0; }
.sec-sand { background: var(--sand); }
.sec-white { background: #fff; }
.sec-tint { background: var(--tint); }
.sec-dusk { background: radial-gradient(60% 90% at 90% 0%, rgba(247,165,49,.14) 0%, rgba(247,165,49,0) 60%), linear-gradient(165deg, #274558 0%, var(--dusk) 48%, var(--dusk-deep) 100%); color: rgba(255,255,255,.86); }
.sec-dusk h2, .sec-dusk h3 { color: #fff; }
.sec-dusk a { color: #fff; }
.sec-head { max-width: 42em; margin-bottom: clamp(30px, 4vw, 52px); }
.sec-head.center { margin-inline: auto; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
.page-hero { padding: clamp(112px, 13vw, 150px) 0 clamp(36px, 5vw, 60px); background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%); margin-top: -86px; }
.page-hero .lead { max-width: 38em; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); box-shadow: 0 1px 2px rgba(19,36,47,.03); }
.card h3:last-child, .card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: var(--body); transition: transform .18s, box-shadow .18s, border-color .18s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--tint-2); color: var(--body); }
.chip-icon { display: inline-flex; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--dusk); align-items: center; justify-content: center; margin-bottom: 16px; }
.chip-icon.gold { background: var(--gold-tint); color: var(--gold-ink); }
.triage a { display: flex; flex-direction: column; min-height: 100%; }
.triage .go { margin-top: auto; padding-top: 14px; color: var(--dusk); font-weight: 650; display: inline-flex; gap: 7px; align-items: center; }
.triage a:hover .go .icon { transform: translateX(3px); }
.triage .go .icon { width: 17px; height: 17px; transition: transform .18s; }

/* Question wall */
.wall { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.wall-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.wall-item q { display: block; quotes: none; font-family: var(--serif); font-size: 1.24rem; line-height: 1.3; color: var(--text); margin-bottom: 10px; font-style: italic; }
.wall-item p { margin: 0; font-size: .97rem; }

/* Obituary paper */
.paper { background: #FFFDF9; border: 1px solid #EDE6D9; border-radius: 12px; box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 46px); font-family: var(--serif); color: #27323B; font-size: 1.14rem; line-height: 1.6; }
.paper p { margin: 0 0 .9em; }
.paper p:last-child { margin-bottom: 0; }
.paper-name { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 4px; color: var(--text); text-wrap: balance; }
.paper-dates { color: var(--muted); font-style: italic; margin-bottom: 18px; }
.paper-rule { width: 54px; height: 2px; background: var(--gold); border: 0; margin: 0 0 18px; }
.tone-tabs, .tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--tint); padding: 5px; border-radius: 999px; width: fit-content; max-width: 100%; margin-bottom: 18px; }
.tabs button, .tone-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; color: var(--dusk); }
.tabs button[aria-selected="true"], .tone-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 6px rgba(19,36,47,.12); }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-tint); color: var(--gold-ink); font-weight: 650; font-size: .82rem; border-radius: 999px; padding: 4px 11px; font-family: var(--sans); }
.tag.cool { background: var(--tint); color: var(--dusk); }
.tag.good { background: var(--good-tint); color: var(--good); }
.tag.bad { background: var(--bad-tint); color: var(--bad); }
.tag.plain { background: var(--sand); color: var(--body); }

/* Tracker mock */
.tracker { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); }
.tracker-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.tracker-head b { color: var(--text); font-size: 1.08rem; }
.bar { height: 8px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--dusk-soft), var(--dusk)); border-radius: 99px; transition: width .6s; }
.bar.gold i { background: linear-gradient(90deg, var(--gold), var(--gold-strong)); }
.t-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .98rem; color: var(--text); }
.t-row:last-child { border-bottom: 0; }
.t-row small { display: block; color: var(--muted); font-size: .86rem; }
.dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--tint-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.dot.done { background: var(--good); border-color: var(--good); }
.dot .icon { width: 14px; height: 14px; stroke-width: 3; }

/* Stats */
.stats { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stat { border-top: 2px solid var(--gold); padding-top: 18px; }
.stat b { display: block; font-size: clamp(2.3rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -.04em; color: #fff; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat p { margin: 0 0 8px; }
.stat cite { font-style: normal; font-size: .84rem; opacity: .75; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; margin: 0; }
.steps li::before { content: counter(s); display: flex; width: 42px; height: 42px; border-radius: 50%; background: var(--dusk); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--dusk); box-shadow: var(--shadow); position: relative; }
.plan .price { font-size: 2.9rem; font-weight: 750; letter-spacing: -.04em; color: var(--text); line-height: 1; margin: 10px 0 6px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--good); width: 19px; height: 19px; margin-top: 4px; stroke-width: 2.3; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--text); padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.4rem; font-weight: 400; color: var(--dusk-soft); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 16px; }

/* Closing band */
.closing { position: relative; isolation: isolate; color: #fff; overflow: clip; background: var(--dusk-deep); }
.closing picture, .closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,28,38,.82), rgba(14,28,38,.45)); }
.closing-in { padding: clamp(84px, 12vw, 150px) 0; max-width: 34em; }
.closing h2 { color: #fff; }
.closing p { color: rgba(255,255,255,.88); }

/* Footer */
.site-footer { background: var(--dusk-deep); color: rgba(255,255,255,.72); padding: 56px 0 32px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: .92rem; letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-brand { color: #fff !important; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .86rem; }
.footer-legal p { margin: 0 0 6px; }
.mobile-cta { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; display: none; }
@media (max-width: 640px) { body.show-mcta .mobile-cta { display: flex; } }

/* Prose pages */
.prose { color: var(--body); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); letter-spacing: -.022em; margin: 1.7em 0 .55em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .55em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; margin: 0 0 1.2em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; }
.table-wrap { overflow-x: auto; }
.note { background: var(--tint); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 1.2em; color: var(--text); }
.note.warm { background: var(--gold-tint); }
.note > :last-child { margin-bottom: 0; }
.source { font-size: .86rem; color: var(--muted); }
.source a { color: var(--muted); }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; margin-bottom: 14px; }
.fact h3 { margin-bottom: 8px; }
.fact.unverified { background: var(--sand); border-style: dashed; }
.fact blockquote { margin: 10px 0 8px; padding-left: 14px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.04rem; color: var(--text); }
.state-grid { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); list-style: none; padding: 0; }
.state-grid li { margin: 0; }
.toc { background: var(--sand); padding: 16px 20px 8px; border-radius: var(--radius-sm); margin-bottom: 1.6em; font-size: .97rem; }

/* Forms */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 620; color: var(--text); margin-bottom: 6px; font-size: .97rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=search], input[type=number], input:not([type]), select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--tint-2); border-radius: 12px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dusk-soft); box-shadow: 0 0 0 3px rgba(92,124,142,.2); }
textarea { min-height: 110px; line-height: 1.5; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: var(--body); margin-bottom: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--dusk); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.status-line { margin-top: 12px; font-weight: 600; min-height: 1.4em; }
.status-line.ok { color: var(--good); }
.status-line.err { color: var(--bad); }

/* Obituary wizard */
.wiz { max-width: 720px; margin-inline: auto; }
.wiz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.wiz-steps { display: flex; gap: 6px; margin-bottom: 8px; }
.wiz-steps i { flex: 1; height: 6px; border-radius: 9px; background: var(--tint-2); transition: background .3s; }
.wiz-steps i.on { background: var(--dusk); }
.wiz-count { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.tone-pick { display: grid; gap: 10px; }
.result-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .result-grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } .result-side { position: sticky; top: 92px; } }
.editable { width: 100%; min-height: 380px; border: 0; background: transparent; font: inherit; padding: 0; resize: vertical; color: inherit; }
.editable:focus { outline: none; box-shadow: none; }
.loader { text-align: center; padding: 56px 12px; }
.loader .sun { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle, var(--gold-strong), var(--gold)); margin: 0 auto 20px; animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(247,165,49,.35); } 50% { transform: scale(1); box-shadow: 0 0 0 20px rgba(247,165,49,0); } }

/* Dialog */
dialog { border: 0; border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); max-width: min(520px, calc(100vw - 32px)); width: 100%; box-shadow: var(--shadow-lg); color: var(--body); }
dialog::backdrop { background: rgba(19,36,47,.55); backdrop-filter: blur(3px); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--dusk-deep); color: #fff; padding: 11px 20px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none; z-index: 90; font-weight: 550; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Print: the obituary and the checklist print clean. */
@media print {
  .site-header, .site-footer, .mobile-cta, .no-print, .closing { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .page-hero { background: none; padding: 0 0 12px; margin: 0; }
  .card, .fact, .paper { box-shadow: none; border: 0; padding: 0; }
  .paper { font-size: 12.5pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: inherit; text-decoration: none; }
}

/* Account and admin */
.app-wrap { padding: 28px 0 72px; min-height: 70vh; }
.sign-card { max-width: 460px; margin: 40px auto; }
.app-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.app-top h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0; }
.app-nav { display: flex; gap: 4px; overflow-x: auto; padding: 5px; background: var(--tint); border-radius: 999px; margin-bottom: 24px; scrollbar-width: none; }
.app-nav a { padding: 8px 15px; border-radius: 999px; text-decoration: none; color: var(--dusk); font-weight: 600; font-size: .94rem; white-space: nowrap; }
.app-nav a[aria-current] { background: #fff; box-shadow: 0 2px 6px rgba(19,36,47,.12); }
.app-nav a:hover { background: rgba(255,255,255,.6); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.step summary { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 620; color: var(--text); }
.step summary::-webkit-details-marker { display: none; }
.step-body { padding: 0 18px 18px 58px; }
@media (max-width: 560px) { .step-body { padding-left: 18px; } }
.step.is-done summary span.title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--tint-2); }
.step-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--gold-strong) calc(var(--p) * 1%), var(--tint) 0); display: grid; place-items: center; flex: none; }
.ring b { width: 88px; height: 88px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.45rem; letter-spacing: -.03em; color: var(--text); }
.kpi { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.kpi .card { padding: 16px 18px; }
.kpi b { display: block; font-size: 1.7rem; color: var(--text); letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .9rem; color: var(--muted); }
.list-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row > div:first-child { min-width: 0; flex: 1 1 220px; }
.letter-paper { white-space: pre-wrap; font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; }
.locked { background: var(--gold-tint); border: 1px solid #F1DDB6; border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 18px; color: var(--text); }
.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data th, .data td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { color: var(--muted); font-weight: 600; font-size: .84rem; }
.data tr[data-href] { cursor: pointer; }
.data tr[data-href]:hover td { background: var(--tint); }
.admin-layout { display: grid; gap: 26px; }
@media (min-width: 960px) { .admin-layout { grid-template-columns: 200px minmax(0, 1fr); } .admin-side { position: sticky; top: 90px; align-self: start; } }
.admin-side a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 560; }
.admin-side a[aria-current], .admin-side a:hover { background: var(--tint); }
.bubble { padding: 12px 16px; border-radius: 14px; margin-bottom: 10px; max-width: 86%; white-space: pre-wrap; }
.bubble.in { background: var(--tint); }
.bubble.out { background: var(--gold-tint); margin-left: auto; }
.setup-ok { color: var(--good); } .setup-no { color: var(--bad); font-weight: 600; }
.rounded { border-radius: var(--radius); }
.page-hero + .sec-sm { padding-top: 10px; }
