/* ═══════════════════════════════════════════════════════════════════════
   ALAMO WILLS — design system
   A restrained Texan-patriotic registry: navy / Texas-red / off-white /
   gold, classic Caslon display over clean Source Sans. Tuned for older
   readers (large type, generous line-height, AAA-leaning contrast, 44px+
   targets). A single shipped palette ("patriotic"). Old-iPhone safe.

   Two layers live here:
     1. Global tokens + chrome (header, footer, buttons, forms, cards,
        notices, tables) — every page inherits this.
     2. Page components for the Homepage and Writing-a-Will rebuilds.
   Legacy class names (.certificate, .masthead, .ledger, .wizard-*, …) are
   preserved and reskinned through the tokens below.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Patriotic palette (shipped) ─────────────────────────────────────── */
  --bg:          #f1ede4;   /* page background (warm off-white) */
  --bg-2:        #e8e2d4;   /* alternating band */
  --surface:     #fdfbf6;   /* cards */
  --surface-2:   #f4efe4;   /* inset surfaces, badges */
  --ink:         #12203c;   /* headings / primary navy */
  --body:        #2f343d;   /* body copy */
  --muted:       #6a6456;   /* captions, fine print */
  --accent:      #8c1d24;   /* Texas red — CTAs, highlights */
  --accent-deep: #6c141a;   /* CTA hover/active */
  --on-accent:   #fdf6ec;   /* text on red */
  --gold:        #ac8639;   /* eyebrow labels, hairlines, Lone Star */
  --gold-soft:   #cda85a;   /* decorative lines, borders, stars */
  --line:        rgba(18, 32, 60, 0.14);
  --dark-bg:     #101d38;   /* header, footer, dark sections (navy) */
  --dark-bg-2:   #182748;   /* cards inside dark sections */
  --on-dark:     #ece5d6;
  --on-dark-dim: #a6afc4;
  --paper:       #f8f1de;   /* handwritten will samples */
  --paper-line:  rgba(18, 32, 60, 0.10);

  /* ── Legacy aliases — existing components reference these names ──────── */
  --parchment:      var(--bg);
  --parchment-deep: var(--bg-2);
  --card:           var(--surface);
  --navy:           var(--dark-bg);
  --navy-deep:      #0a1428;
  --oxblood:        var(--accent);
  --oxblood-hover:  var(--accent-deep);
  --forest:         #1e3b2c;       /* "verified" green seal/notice */
  --gold-bright:    var(--gold-soft);
  --gold-text:      #8a6a22;        /* darker gold for small uppercase labels */
  --rule:           var(--line);
  --rule-soft:      rgba(18, 32, 60, 0.07);
  --ink-soft:       var(--muted);

  /* ── Type ────────────────────────────────────────────────────────────── */
  --font-display:     "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-serif:       "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans:        "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand:        "Caveat", "Segoe Script", cursive;
  --font-body:        var(--font-sans);
  --font-ui:          var(--font-sans);
  --font-inscription: var(--font-sans);   /* eyebrows / small uppercase labels */

  --measure: 64ch;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-card:  0 1px 2px rgba(18, 32, 60, 0.05), 0 8px 24px -14px rgba(18, 32, 60, 0.28);
  --shadow-soft:  0 1px 2px rgba(18, 32, 60, 0.04), 0 4px 14px -10px rgba(18, 32, 60, 0.22);
  --shadow-raise: 0 2px 4px rgba(18, 32, 60, 0.10), 0 14px 40px -16px rgba(18, 32, 60, 0.22);
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Root size drives all rem units so a larger-text preference scales the whole
   page, not just body copy. ~18px base, friendly for older eyes. */
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-bottom: 0.6em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); margin: 0 0 0.55em; }
h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 0.45em; }
h4 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; margin: 0 0 0.4em; }

p { margin: 0 0 1.05em; max-width: 66ch; text-wrap: pretty; }
li { margin-bottom: 0.45em; }
ul, ol { padding-left: 1.4em; margin-bottom: 1.1em; }

/* Links: color + weight carry them; a gold underline appears on hover. Inline
   prose links keep a faint rule so they read as links in running text. */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  overflow-wrap: anywhere;
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: var(--accent-deep); border-bottom-color: var(--gold); }
p a, li a { border-bottom: 1px solid var(--line); }
p a:hover, li a:hover { border-bottom-color: var(--gold); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 1px;
}

strong { color: var(--ink); font-weight: 700; }
em { color: var(--ink-soft); }
small { font-size: 0.85rem; }
::selection { background: var(--gold-soft); color: #1a1206; }

/* Lead paragraph (intro copy on marketing/app pages) */
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--body); max-width: 60ch; margin-bottom: 1.2rem; }
.center .lede { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: block;
  margin: 0 0 0.9rem;
}

/* Engraved rule with a central Lone Star */
.rule {
  border: 0;
  height: 22px;
  margin: 2rem auto;
  max-width: 320px;
  background: linear-gradient(var(--gold-soft), var(--gold-soft)) center/100% 1px no-repeat;
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%);
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.section--navy .rule, .band-dark .rule { background: linear-gradient(var(--gold-soft), var(--gold-soft)) center/100% 1px no-repeat; }

.serial-no {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.container--narrow { max-width: 760px; }
.measure { max-width: var(--measure); }

/* vertical-only so it never clobbers .container's horizontal padding when both
   classes sit on one element. */
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.section--aged, .band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy, .band-dark { background: var(--dark-bg); color: var(--on-dark); }
.section--navy h1, .section--navy h2, .section--navy h3,
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.section--navy a, .band-dark a { color: var(--gold-soft); }
.section--navy .eyebrow, .band-dark .eyebrow { color: var(--gold-soft); }
.section--navy .lede, .band-dark .lede { color: var(--on-dark); }

.center { text-align: center; margin-left: auto; margin-right: auto; }
.center > *, .center p { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 1.4rem; }

.cols { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { flex: 1 1 280px; padding: 0 15px; margin-bottom: 30px; min-width: 0; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-foot { margin-top: 2.4rem; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-ui); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: 0.01em; white-space: nowrap; text-align: center;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 1.05rem 2.1rem; min-height: 56px; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 10px 26px -16px var(--accent);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { background: var(--accent-deep); color: var(--on-accent); border-bottom-color: transparent; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--navy { background: var(--dark-bg); box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 10px 26px -16px var(--dark-bg); }
.btn--navy:hover { background: var(--dark-bg-2); }

.btn--gold { background: var(--gold); color: var(--dark-bg); }
.btn--gold:hover { background: var(--gold-soft); color: var(--dark-bg); }

.btn--quiet {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); box-shadow: none;
}
.btn--quiet:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }

.btn--lg { font-size: 1.15rem; padding: 1.2rem 2.5rem; min-height: 62px; }
.btn--block { display: flex; width: 100%; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); font-family: var(--font-ui); font-size: 1rem; }
.hint { font-size: 0.92rem; color: var(--ink-soft); margin: -2px 0 9px; font-family: var(--font-ui); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  display: block; width: 100%;
  font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
  background: #fffdf7; border: 1.5px solid #b3a589; border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 22px; min-height: 48px;
  box-shadow: inset 0 1px 2px rgba(18, 32, 60, 0.05);
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); background: #fff; }
textarea { min-height: 120px; line-height: 1.6; }
input[type="file"] { display: block; width: 100%; font-size: 1rem; margin-bottom: 22px; padding: 10px; background: #fffdf7; border: 1.5px dashed #b3a589; }

input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; vertical-align: middle; margin-right: 12px; accent-color: var(--accent); }
.check-row {
  display: block; font-weight: 400; font-family: var(--font-body);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--card); margin-bottom: 16px; cursor: pointer; color: var(--body);
  transition: border-color 120ms ease, background 120ms ease;
}
.check-row:hover { border-color: var(--gold); }

fieldset { border: 0; margin-bottom: 8px; }
legend { font-weight: 600; font-family: var(--font-serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 12px; }

.field-error { color: var(--accent); font-weight: 700; margin: -16px 0 18px; }
.hp-field { position: absolute; left: -6000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── Header / masthead ─────────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--dark-bg); color: var(--on-dark);
  border-bottom: 2px solid var(--gold);
}
.masthead-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px 0; }
.brand { display: flex; align-items: center; color: #fff; margin-right: auto; border: 0; font-weight: 400; text-decoration: none; }
.brand:hover { color: #fff; border: 0; }
.brand-seal {
  width: 46px; height: 46px; border-radius: 50%; margin-right: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #24365c, #0e1a32);
  border: 1.5px solid var(--gold-soft);
  color: var(--gold-soft); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.04em;
  -webkit-user-select: none; user-select: none;
}
.brand-name { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.05; letter-spacing: 0.01em; color: #fff; white-space: nowrap; }
.brand-tag { display: block; font-family: var(--font-ui); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.26em; color: var(--on-dark-dim); text-transform: uppercase; margin-top: 4px; white-space: nowrap; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(0.4rem, 1.4vw, 1.2rem); }
.nav a { color: var(--on-dark); font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 600; padding: 10px 6px; border: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--gold-soft); border-bottom-color: transparent; }
.nav .nav-cta { background: var(--accent); border: 1px solid transparent; border-radius: var(--radius); color: var(--on-accent); padding: 0.7rem 1.3rem; }
.nav .nav-cta:hover { background: var(--accent-deep); color: var(--on-accent); }

/* No-JS collapsible menu: the visually-hidden (still focusable) checkbox is
   toggled by the "Menu" label and reveals .nav via a sibling selector. */
.nav-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-toggle-btn { display: none; }

@media (max-width: 1180px) { .brand-tag { display: none; } }

@media (max-width: 1080px) {
  .masthead-inner { flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .nav-toggle-btn {
    display: inline-flex; align-items: center;
    color: #fff; background: transparent; cursor: pointer;
    font-family: var(--font-ui); font-size: 1.0625rem; font-weight: 700;
    padding: 0.7rem 1.1rem; min-height: 48px;
    border: 1px solid rgba(255,255,255,.32); border-radius: var(--radius);
  }
  .nav-toggle-btn .bars { display: inline-block; width: 22px; height: 16px; position: relative; margin-right: 11px; }
  .nav-toggle-btn .bars::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 2px; background: #fff; box-shadow: 0 6px 0 #fff, 0 12px 0 #fff; }
  .nav-toggle:focus-visible + .nav-toggle-btn { outline: 3px solid var(--gold); outline-offset: 2px; }

  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 12px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { width: 100%; margin: 0; padding: 1.05rem 6px; font-size: 1.18rem; border-bottom: 1px solid rgba(236, 227, 207, 0.12); }
  .nav a:hover { color: var(--gold-soft); }
  .nav .nav-cta { margin-top: 12px; text-align: center; justify-content: center; }
}

/* ── Signed-in account sub-bar ─────────────────────────────────────────── */
.account-bar {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(172, 134, 57, 0.45); /* gold hairline */
  color: var(--on-dark);
  font-family: var(--font-ui);
  font-size: 0.92rem;
}
.account-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 40px; padding: 6px 0; flex-wrap: wrap;
}
.account-who {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--on-dark-dim); min-width: 0;
}
.account-who strong {
  color: #fff; font-weight: 700;
  max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-actions { display: inline-flex; align-items: center; gap: 8px; }
.account-link {
  color: var(--gold-soft); font-weight: 600; padding: 6px 8px;
  border: 0; border-radius: var(--radius); white-space: nowrap;
}
.account-link:hover { color: #fff; border: 0; background: rgba(255, 255, 255, 0.08); }
.account-signout {
  color: #fff; font-weight: 700; white-space: nowrap;
  padding: 6px 14px; min-height: 34px; display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius);
}
.account-signout:hover { color: #fff; border-color: var(--gold); background: rgba(172, 134, 57, 0.22); }

@media (max-width: 560px) {
  .account-bar { font-size: 0.86rem; }
  .account-who strong { max-width: 44vw; }
  .account-link { padding: 6px 6px; }
}

/* ── Certificate frame ─────────────────────────────────────────────────── */
.certificate {
  background: var(--card);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--rule-soft), inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--rule-soft);
  padding: 42px 38px; border-radius: 2px;
}
.certificate--tight { padding: 28px 24px; }
.certificate-heading { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }

/* ── Wax seal (certificate pages) + brand emblem ───────────────────────── */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 35% 30%, #a83139 0%, var(--accent) 55%, #4f0f14 100%);
  color: #ecd9a8; font-family: var(--font-display); font-weight: 400; font-size: 25px; letter-spacing: 0.04em;
  box-shadow: 0 3px 7px rgba(18, 32, 60, 0.32), inset 0 0 0 5px rgba(236, 217, 168, 0.16);
  -webkit-user-select: none; user-select: none;
}
.seal--small { width: 54px; height: 54px; font-size: 15px; }
.seal--verified { background: radial-gradient(circle at 35% 30%, #2c5440 0%, var(--forest) 55%, #122418 100%); }
.seal-img { width: 120px; height: 120px; }

/* ── Cards & steps ─────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-soft); }

/* legacy step card (dashboard, admin) */
.step-card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg); padding: 28px 24px; height: 100%; box-shadow: var(--shadow-card);
}
.step-card h3 { color: var(--ink); }

/* homepage numbered step */
.step {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg); padding: 2.1rem 2rem 2.2rem; box-shadow: var(--shadow-card);
  position: relative; display: flex; flex-direction: column;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--surface-2); border: 1.5px solid var(--gold-soft);
  color: var(--accent); font-family: var(--font-display); font-size: 1.5rem;
}
.step .step-label, .step-label { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; margin-bottom: 0.35rem; display: block; }
.step h3 { margin-bottom: 0.5rem; }
.step p { margin-bottom: 0; }

.band-motif { display: block; width: 100%; max-width: 760px; margin: 0 auto; opacity: 0.95; }

/* ── Trust strip ───────────────────────────────────────────────────────── */
.trust-band { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.trust-item { display: flex; gap: 1rem; align-items: flex-start; }
.trust-item .tick {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent); display: grid; place-items: center; font-weight: 700;
}
.trust-item h4 { font-family: var(--font-serif); color: var(--ink); font-size: 1.15rem; margin: 0 0 0.25rem; font-weight: 600; }
.trust-item p { margin: 0; font-size: 1rem; color: var(--body); max-width: none; }
@media (max-width: 760px) { .trust-strip { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ── Price tag ─────────────────────────────────────────────────────────── */
.price { display: inline-flex; flex-direction: column; align-items: flex-start; border-left: 3px solid var(--gold); padding-left: 1.1rem; margin: 1.6rem 0 2rem; }
.price .amt { font-family: var(--font-display); color: var(--accent); font-size: 2.1rem; line-height: 1; }
.price .amt span { font-size: 1.1rem; color: var(--muted); }
.price .note { font-size: 0.95rem; color: var(--muted); margin-top: 0.45rem; max-width: 40ch; }

/* legacy price line (wizard payment etc.) */
.price-line { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; color: var(--accent); margin-bottom: 8px; }
.price-line .price-note { font-family: var(--font-body); font-size: 0.92rem; font-weight: 400; color: var(--ink-soft); display: block; }
.price-was { color: var(--ink-soft); font-weight: 600; font-size: 1.2rem; text-decoration: line-through; text-decoration-color: var(--gold); margin-right: 8px; }

/* ── Callouts ──────────────────────────────────────────────────────────── */
.callout { border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; border: 1px solid var(--line); background: var(--surface); display: flex; gap: 1.1rem; align-items: flex-start; }
.callout .ic { flex: none; color: var(--accent); margin-top: 2px; font-size: 1.3rem; line-height: 1.2; }
.callout p:last-child { margin-bottom: 0; }
.callout p { max-width: none; }
.callout-legal { background: var(--surface-2); border-left: 4px solid var(--gold); }
.callout-tip { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-left: 4px solid var(--accent); }
.callout h4 { font-family: var(--font-serif); color: var(--ink); font-size: 1.2rem; margin: 0 0 0.4rem; }

/* ── Decorative Lone-Star rule ─────────────────────────────────────────── */
.rule-orn { display: flex; align-items: center; gap: 1rem; color: var(--gold-soft); margin: 2.4rem 0; }
.rule-orn::before, .rule-orn::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.rule-orn .dia { width: 17px; height: 17px; background: var(--gold); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* ── Image frame / engraving ───────────────────────────────────────────── */
.engraving { border: 1px solid var(--line); background: var(--surface); padding: 12px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.engraving img { border-radius: 2px; }

/* ── Notices ───────────────────────────────────────────────────────────── */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--dark-bg); background: var(--card); padding: 16px 20px; margin-bottom: 24px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.notice--warn { border-left-color: var(--accent); }
.notice--missing { border-left-color: var(--gold); background: #fbf5e9; }
.notice--ok { border-left-color: var(--forest); }
.notice p:last-child { margin-bottom: 0; }
.notice-rule { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* Inline link-styled button — secondary actions inside notices (e.g. "start over"). */
.restart-form { margin: 0; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.btn-link:hover, .btn-link:focus-visible { color: var(--accent); }

.flash { border: 1px solid var(--line); border-left: 4px solid var(--forest); background: #eef3ec; color: var(--ink); font-weight: 600; padding: 14px 18px; margin: 0 0 24px; border-radius: var(--radius); }
.flash--error { border-left-color: var(--accent); background: #fbf0ec; }
.flash--warn { border-left-color: var(--gold); background: #fbf6ea; }

/* ── Tables ────────────────────────────────────────────────────────────── */
table.ledger { width: 100%; border-collapse: collapse; margin-bottom: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.ledger th { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; color: var(--on-dark); background: var(--dark-bg); padding: 13px 15px; }
.ledger td { padding: 14px 15px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; overflow-wrap: anywhere; }
.ledger td:first-child { overflow-wrap: normal; }
.ledger tr:last-child td { border-bottom: 0; }

.badge { display: inline-block; font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 11px; border-radius: 2px; color: var(--on-accent); background: var(--ink-soft); overflow-wrap: normal; }
.badge--stamped { background: var(--forest); }
.badge--pending { background: var(--gold-text); }
.badge--failed, .badge--archived { background: var(--accent); }
.badge--current { background: var(--dark-bg); }
.badge--superseded { background: var(--ink-soft); }

.txlink { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace; font-size: 0.9em; letter-spacing: 0; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .ledger--kv, .ledger--kv tbody, .ledger--kv tr, .ledger--kv td { display: block; width: 100%; }
  .ledger--kv tr { border-bottom: 1px solid var(--line); }
  .ledger--kv tr:last-child { border-bottom: 0; }
  .ledger--kv td { border: 0; padding: 2px 16px; }
  .ledger--kv td:first-child { padding-top: 14px; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); }
  .ledger--kv td:first-child strong { font-weight: 700; }
  .ledger--kv td:last-child { padding-bottom: 14px; font-size: 1rem; }

  .ledger--cards { display: block; border: 0; background: transparent; box-shadow: none; }
  .ledger--cards thead { display: none; }
  .ledger--cards tbody, .ledger--cards tr, .ledger--cards td { display: block; width: 100%; }
  .ledger--cards tr { border: 1px solid var(--line); border-radius: 2px; background: var(--card); margin-bottom: 14px; box-shadow: var(--shadow-soft); padding: 6px 0; }
  .ledger--cards td { border: 0; padding: 9px 16px; display: flex; justify-content: space-between; align-items: baseline; }
  .ledger--cards td::before { content: attr(data-label); font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-text); flex: 0 0 auto; margin-right: 16px; }
  .ledger--cards td[data-label=""]::before { display: none; }
  .ledger--cards td[data-label=""] { justify-content: flex-end; }

  .ledger:not(.ledger--kv):not(.ledger--cards) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Optional "shades" — native <details>, no JS. */
details.tech { margin-top: 6px; }
details.tech > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; color: var(--gold-text); padding: 12px 0; min-height: 44px; }
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary::before { content: "\203A"; display: inline-block; margin-right: 10px; font-size: 1.2rem; line-height: 1; }
details.tech[open] > summary::before { content: "\2304"; }
details.tech .tech-body { padding-bottom: 6px; }
details.tech .tech-body small { color: var(--ink-soft); }

/* "What makes a will invalid?" — inline educational disclosure. */
details.invalidity { margin: 12px 0 4px; }
details.invalidity > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; color: var(--gold-text); padding: 10px 0; min-height: 44px; }
details.invalidity > summary::-webkit-details-marker { display: none; }
details.invalidity > summary::before { content: "\203A"; display: inline-block; margin-right: 10px; font-size: 1.2rem; line-height: 1; }
details.invalidity[open] > summary::before { content: "\2304"; }
details.invalidity > div { padding: 2px 0 6px 22px; }
details.invalidity > div ul { margin: 6px 0; padding-left: 1.1rem; }
details.invalidity > div li { margin: 4px 0; }
details.invalidity > div small { color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════════════════════════════════ */
.hero { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 3.4vw, 4rem); margin-bottom: 1.1rem; }
.hero-lead { font-size: 1.3rem; line-height: 1.6; color: var(--body); max-width: 36ch; }
.hero-actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
.hero-reassure { margin: 0; font-size: 1.02rem; color: var(--muted); line-height: 1.45; max-width: 34ch; }
.hero-art { display: flex; justify-content: center; }
.hero-emblem { max-width: 340px; width: 100%; }
.hero-emblem img { width: 100%; filter: drop-shadow(0 10px 26px rgba(18,32,60,.16)); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-emblem { max-width: 240px; }
  .hero-lead { max-width: none; }
}

.guarantee-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.founders-note { font-family: var(--font-serif); font-style: italic; color: var(--ink); font-size: 1.18rem; margin-bottom: 0; max-width: none; }
@media (max-width: 860px) { .guarantee-grid { grid-template-columns: 1fr; } }

.explainer-head { max-width: 30ch; margin-bottom: 1.8rem; }
.explainer-body p { font-size: 1.18rem; }

.services .service { background: var(--dark-bg-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 1.9rem 2rem; display: flex; flex-direction: column; }
.service-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 0.8rem; }
.service-head h3 { color: #fff; margin: 0; }
.service-price { font-family: var(--font-display); color: var(--gold-soft); font-size: 1.7rem; white-space: nowrap; }
.service-price span { font-size: 0.95rem; color: var(--on-dark-dim); }
.service-price.soon { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--gold-soft); border-radius: 999px; padding: 0.25rem 0.7rem; }
.services .service p { color: var(--on-dark); font-size: 1.04rem; max-width: none; }
.service-link { color: var(--gold-soft); text-decoration: none; font-weight: 700; margin-top: auto; padding-top: 0.6rem; border: 0; }
.service-link:hover { color: #fff; border: 0; }

.closing-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.closing-cta h2 { margin-bottom: 0.6rem; }
.closing-cta > p { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.6rem; max-width: none; }
@media (max-width: 860px) { .closing-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════
   WRITING A WILL
   ═══════════════════════════════════════════════════════════════════════ */
.doc-hero { padding-top: clamp(48px, 6vw, 76px); padding-bottom: clamp(48px, 6vw, 76px); }
.doc-hero h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.4rem); margin-bottom: 1rem; }
.doc-hero-lead { font-size: 1.3rem; line-height: 1.6; color: var(--body); }
.doc-hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.8rem; color: var(--muted); font-size: 1rem; font-weight: 600; }
.doc-hero-meta span { display: inline-flex; align-items: center; gap: 1.4rem; }
.doc-hero-meta span + span::before { content: ""; width: 11px; height: 11px; background: var(--gold); display: inline-block; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

.doc-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }

.doc-toc { position: sticky; top: 100px; }
.toc-title { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; margin: 0 0 1rem; }
.doc-toc ol { list-style: none; margin: 0 0 1.6rem; padding: 0; counter-reset: toc; border-left: 2px solid var(--line); }
.doc-toc li { counter-increment: toc; margin: 0; }
.toc-link { display: block; padding: 0.55rem 0 0.55rem 1.1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); text-decoration: none; font-weight: 600; font-size: 1.02rem; line-height: 1.3; transition: all 0.15s; }
.toc-link::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--gold-soft); font-family: var(--font-display); font-size: 0.85rem; }
.toc-link:hover { color: var(--ink); border-bottom-color: transparent; }
.toc-link.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 700; }
.toc-cta { font-size: 0.98rem; padding: 0.85rem 1rem; min-height: 50px; }

.doc-content { max-width: 760px; }
.doc-section { padding-bottom: clamp(2.4rem, 4vw, 3.4rem); margin-bottom: clamp(2.4rem, 4vw, 3.4rem); border-bottom: 1px solid var(--line); }
.doc-section:last-of-type { border-bottom: none; }
.doc-h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin-bottom: 1.3rem; scroll-margin-top: 100px; }
.doc-lead { font-size: 1.18rem; color: var(--body); margin-bottom: 1.6rem; }
.start-cards { grid-template-columns: 1fr; margin-top: 0.5rem; gap: 1.1rem; }
.fine-print { font-size: 0.98rem; color: var(--muted); font-style: italic; margin-top: 1.2rem; margin-bottom: 0; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 1rem 1.8rem; }
.check-list li { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-soft); margin: 0; }
.check-list li > div { font-size: 1.05rem; line-height: 1.55; }
.chk { flex: none; width: 28px; height: 28px; border-radius: 50%; margin-top: 1px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: grid; place-items: center; font-size: 0.9rem; font-weight: 700; }
@media (max-width: 620px) { .check-list.two-col { grid-template-columns: 1fr; } }

/* handwritten will samples */
.will-paper {
  position: relative; margin: 0 0 1.6rem; padding: 2rem 2.2rem 1.6rem;
  background: linear-gradient(transparent 0 calc(2.2em - 1px), var(--paper-line) calc(2.2em - 1px) 2.2em);
  background-size: 100% 2.2em; background-position: 0 2.6rem; background-color: var(--paper);
  border: 1px solid var(--gold-soft); border-radius: 3px; box-shadow: var(--shadow-card);
}
.will-paper::before { content: ""; position: absolute; left: 2.6rem; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.will-stamp { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 3px; padding: 0.25rem 0.6rem; transform: rotate(2deg); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.will-title { font-family: var(--font-serif); font-size: 1.18rem; color: var(--ink); margin: 0 0 0.6rem; padding-left: 1.2rem; padding-right: 6rem; }
.will-body { padding-left: 1.2rem; }
.will-body p { font-family: var(--font-hand); font-size: 1.55rem; line-height: 2.2rem; color: #233; margin: 0; max-width: none; }
.will-body b { font-weight: 600; color: var(--accent-deep); background: color-mix(in srgb, var(--gold-soft) 28%, transparent); padding: 0 0.15em; border-radius: 2px; }
.will-sign { display: flex; flex-wrap: wrap; gap: 1.4rem 3rem; margin-top: 1.4rem; font-family: var(--font-hand); font-size: 1.4rem; color: #556; }
.will-sign span { border-top: 1px solid var(--paper-line); padding-top: 0.2rem; min-width: 9rem; }

/* enlarge button (added by JS — hidden when JS absent) */
.will-zoom { display: inline-flex; align-items: center; gap: 0.55rem; margin: 1.5rem 0 0 1.2rem; background: var(--surface); border: 1px solid var(--gold-soft); color: var(--ink); font-family: var(--font-ui); font-weight: 700; font-size: 1rem; padding: 0.7rem 1.2rem; border-radius: var(--radius); cursor: pointer; transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.2s ease; }
.will-zoom:hover { background: var(--surface-2); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.will-zoom .zi { font-size: 1.15rem; color: var(--accent); line-height: 1; }

/* zoom-in overlay (readable serif view) */
.will-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.will-modal.is-open { display: block; }
.will-modal-backdrop { position: absolute; inset: 0; background: rgba(18, 30, 56, .58); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.3s ease; }
.will-modal.is-open .will-modal-backdrop { opacity: 1; }
.will-modal-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.88); width: min(840px, 93vw); max-height: 92vh; overflow: auto; background: var(--paper); border: 1px solid var(--gold-soft); border-radius: 6px; box-shadow: 0 34px 90px -22px rgba(0,0,0,.65); opacity: 0; transition: opacity 0.32s ease, transform 0.38s cubic-bezier(.2,.85,.25,1); padding: 0 clamp(1.4rem, 4vw, 3rem) 2.6rem; }
.will-modal.is-open .will-modal-panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.will-modal-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; background: var(--paper); border-bottom: 1px solid var(--paper-line); }
.will-modal-label { font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.will-modal-actions { display: flex; gap: 0.6rem; }
.will-close { font-family: var(--font-ui); font-weight: 700; font-size: 1rem; white-space: nowrap; padding: 0.6rem 1.1rem; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background 0.15s ease; }
.will-close:hover { background: var(--surface-2); }
.will-modal-title { font-family: var(--font-serif); color: var(--ink); font-size: 1.45rem; margin: 1.4rem 0 1.1rem; }
.will-modal-body p { font-family: var(--font-serif); font-size: clamp(1.3rem, 1rem + 1.1vw, 1.7rem); line-height: 1.95; color: var(--ink); margin: 0; max-width: none; }
.will-modal-body b { color: var(--accent-deep); background: color-mix(in srgb, var(--gold-soft) 26%, transparent); padding: 0 0.15em; border-radius: 2px; font-weight: 700; }
.will-modal-body .will-sign { font-family: var(--font-ui); font-size: 1.1rem; color: var(--muted); margin-top: 2.2rem; gap: 3rem; }
.will-modal-body .will-sign span { border-top: 1px solid var(--line); }
body.will-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .will-modal-panel, .will-modal-backdrop { transition: opacity 0.15s ease; }
  .will-modal.is-open .will-modal-panel { transform: translate(-50%, -50%) scale(1); }
}

.doc-close { text-align: left; padding-top: 0.5rem; }
.doc-close .doc-h2 { margin-bottom: 1rem; }
.page-disclaimer { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }

@media (max-width: 880px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .doc-toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-soft); }
  .doc-toc ol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-left: none; gap: 0 1rem; margin-bottom: 1.2rem; }
  .toc-link { border-left: none; padding-left: 0; }
  .toc-link.is-active { border-left: none; }
  .doc-content { max-width: none; }
}

/* ── Wizard ────────────────────────────────────────────────────────────── */
.wizard-progress { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); text-align: center; margin-bottom: 16px; }
.wizard-progress .ticks { display: block; margin-top: 8px; }
.wizard-progress .tick { display: inline-block; width: 26px; height: 4px; margin: 0 3px; border-radius: 2px; background: var(--line); vertical-align: middle; }
.wizard-progress .tick.on { background: var(--gold); }
.wizard-card { max-width: 660px; margin: 36px auto 64px; }
.wizard-back { display: inline-block; margin-top: 20px; font-size: 1rem; }

.preview-frame { border: 1px solid var(--gold); background: #fffdf7; padding: 10px; margin-bottom: 22px; text-align: center; box-shadow: inset 0 0 0 4px #fffdf7, inset 0 0 0 5px var(--rule-soft); }
.preview-frame img { display: block; margin: 0 auto; max-height: 70vh; width: auto; max-width: 100%; }
.preview-frame img.is-zoomable { cursor: zoom-in; }
.preview-frame img.is-zoomable:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.zoom-hint { margin: -14px 0 22px; text-align: center; color: var(--muted); }

/* ── Click-to-zoom overlay (legibility step) ───────────────────────────── */
.zoom-locked { overflow: hidden; }
.zoom-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(20, 22, 30, 0.92); }
.zoom-overlay.is-open { display: flex; align-items: center; justify-content: center; }
.zoom-scroll { max-width: 100vw; max-height: 100vh; padding: 4vmin; display: flex; align-items: center; justify-content: center; }
.zoom-img { display: block; max-width: 92vw; max-height: 92vh; width: auto; height: auto; cursor: zoom-in; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5); }
.zoom-overlay.is-zoomed .zoom-scroll { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.zoom-overlay.is-zoomed .zoom-img { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.zoom-close { position: fixed; top: 14px; right: 18px; z-index: 1001; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.zoom-close:hover { background: #fff; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark-bg); color: var(--on-dark-dim); border-top: 2px solid var(--gold); padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.site-footer h5 { color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin: 0 0 1rem; }
.site-footer p { font-size: 0.98rem; line-height: 1.65; color: var(--on-dark-dim); max-width: 72ch; }
.site-footer strong { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links li { margin: 0; }
.footer-links a { color: var(--gold-soft); text-decoration: none; font-weight: 600; font-size: 1rem; border: 0; }
.footer-links a:hover { color: #fff; border: 0; }
.footer-base { margin-top: 2.6rem; padding-top: 1.6rem; padding-bottom: 2.4rem; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
/* "Powered by Chainletter Labs" — a black bar with the white Chainletter
   wordmark, in the spirit of the credcli.com chrome. Full-bleed at the very
   bottom of the footer. */
.powered-bar { background: #06070d; display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 14px 20px; text-decoration: none; border: 0; }
.powered-bar:hover { border: 0; }
.powered-bar .powered-by { font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: #8b8b8b; }
.powered-bar .cl-logo { height: 18px; width: auto; display: block; }
.footer-base .footer-est { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-dim); margin: 0; max-width: none; }
/* "Powered by Chainletter Labs" — matched to the credcli.com footer treatment:
   centered, ~13px, muted, normal case, product name bold, middle-dot separators. */
.footer-base .footer-powered { font-size: 0.8125rem; letter-spacing: -0.02em; line-height: 1.5; color: var(--on-dark-dim); margin: 0.7rem 0 0; max-width: none; }
.footer-base .footer-powered strong { color: var(--on-dark); font-weight: 700; }
/* "A product of Chainletter Labs, Inc." subtitle under the footer brand. */
.site-footer .footer-owner { font-family: var(--font-ui); font-size: 0.92rem; letter-spacing: 0.02em; color: var(--gold-soft); margin: -0.6rem 0 1rem; max-width: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Dev autofill button (DEV_AUTOFILL only) ───────────────────────────── */
.devbar { position: fixed; right: 16px; bottom: 16px; z-index: 9999; }
.devbar button { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; background: #2b2b2b; color: #ffd86b; border: 1px solid #ffd86b; border-radius: 4px; padding: 10px 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.devbar button:hover { background: #3a3a3a; }

/* ── Will Sheet funnel (print → pay & file) ────────────────────────────── */
.step-flow { margin: 0; padding-left: 1.2rem; }
.step-flow > li { margin-bottom: 1.5rem; }
.step-flow > li:last-child { margin-bottom: 0; }
.one-will { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; margin: 18px 0; }

/* The Will Sheet's printable page is a standalone, self-contained document
   (src/views/will-sheet-print.njk) with its own inline styles — it deliberately
   doesn't use this site stylesheet, so there are no .will-sheet rules here. */

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  body { background: #fff; font-size: 12pt; color: #000; }
  .masthead, .site-footer, .no-print, .btn, .devbar, .will-zoom, .doc-toc { display: none !important; }
  .certificate { border-color: #555; box-shadow: none; }
  a { color: #000; border: 0; }
  .print-page { page-break-after: always; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
