/* SafeUntilNeeded — visual system
   Subject: a calm, trustworthy vault that holds what matters until the people
   you trust need it. Audience spans a parent writing letters, a business owner
   planning succession, anyone of any faith or none. Must read secure + warm,
   never morbid, never cold-tech.

   Deliberately NOT the AI defaults (cream+terracotta, black+acid-green,
   broadsheet hairlines). Palette: deep slate navy (trust, depth) + warm paper
   + a brass accent that evokes locks, keys and sealed envelopes — the materials
   of the subject. Display: Newsreader (correspondence, documents, gravity).
   UI/body: Inter. Signature: a brass seal medallion, used sparingly. */

:root {
    --ink:        #15212e;   /* deep slate navy */
    --ink-2:      #1d2c3c;
    --slate:      #324a61;
    --brass:      #b3823f;
    --brass-soft: #d8b478;
    --paper:      #f6f1e6;   /* document surface */
    --bg:         #fbfaf6;
    --surface:    #ffffff;
    --text:       #1c2530;
    --muted:      #6a7686;
    --line:       #e6e0d2;
    --line-cool:  #e3e7ec;
    --danger:     #9c3a2c;
    --ok:         #2c6149;
    --radius:     12px;
    --maxw:       1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.62;
    font-size: 17px;
}

h1, h2, h3, .display {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -0.01em;
    color: var(--ink);
}

a { color: var(--slate); }
a:hover { color: var(--ink); }

.wrap   { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 580px;       margin: 0 auto; padding: 0 24px; }

/* ---- seal medallion (signature) ---- */
.seal {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-grid; place-items: center;
    border: 1.5px solid var(--brass);
    color: var(--brass); position: relative; flex: none;
}
.seal::before {
    content: ""; width: 24px; height: 24px; border-radius: 50%;
    border: 1px solid var(--brass-soft);
}
.seal::after {
    content: ""; position: absolute; width: 7px; height: 7px;
    border-radius: 50%; background: var(--brass);
}
.seal.lg { width: 58px; height: 58px; }
.seal.lg::before { width: 38px; height: 38px; }
.divider { display: flex; align-items: center; gap: 16px; margin: 44px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* ---- hero ---- */
.hero {
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(179,130,63,.16), transparent 60%),
        var(--ink);
    color: #eef1f4;
    padding: 104px 0 92px;
    position: relative; overflow: hidden;
}
.hero .eyebrow { display:inline-flex; align-items:center; gap:10px; color: var(--brass-soft);
    letter-spacing: .16em; text-transform: uppercase; font-size: 13px; font-weight: 600; margin: 0 0 22px; }
.hero h1 { color: #fbf8f2; font-size: clamp(40px, 6.4vw, 70px); margin: 0 0 20px; font-weight: 500; }
.hero p.lead { font-size: 20px; color: #c4ced9; max-width: 640px; margin: 0 0 34px; }
.hero .tag { color: var(--brass-soft); font-size: 14px; letter-spacing: .04em; }

/* ---- buttons ---- */
.btn {
    display: inline-block; cursor: pointer; border: none; font: inherit; font-weight: 600;
    padding: 14px 26px; border-radius: var(--radius);
    background: var(--brass); color: #20160a; text-decoration: none;
    transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brass-soft); color: #20160a; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: #eef1f4; border: 1px solid rgba(255,255,255,.32); }
.btn.ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn.slate { background: var(--slate); color: #fff; }
.btn.slate:hover { background: var(--ink-2); color:#fff; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.full { display: block; width: 100%; text-align: center; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid #e0bcb4; }
.btn.danger:hover { background: #f8ece9; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--brass-soft); outline-offset: 2px;
}

/* ---- sections / cards ---- */
section.block { padding: 66px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .ic { color: var(--brass); font-size: 13px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; }
.grid3 { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid2 { display: grid; gap: 26px; grid-template-columns: repeat(2, 1fr); }

/* use-case list */
.cases { display:grid; gap:14px; grid-template-columns: repeat(2,1fr); }
.case { display:flex; gap:14px; align-items:flex-start; padding:18px 20px; background:var(--surface);
    border:1px solid var(--line); border-radius:var(--radius); }
.case .who { font-weight:700; color:var(--ink); display:block; }
.case .what { color:var(--muted); font-size:15px; }

/* ---- forms ---- */
label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 15px; }
input[type=text], input[type=email], input[type=number], input[type=password], select, textarea {
    width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
    border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
textarea { min-height: 150px; resize: vertical; line-height:1.6; }
.help { color: var(--muted); font-size: 14px; margin-top: 6px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > * { flex: 1; min-width: 170px; }

/* ---- app chrome ---- */
.topbar { display:flex; align-items:center; justify-content:space-between;
    padding: 16px 24px; border-bottom: 1px solid var(--line-cool); background: #fff; }
.topbar .brand { display:flex; align-items:center; gap:12px; font-family:'Newsreader',serif; font-size:20px; color:var(--ink); text-decoration:none; }
.topbar .brand b { font-weight:600; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 22px 0; }
.panel h2 { margin-top: 0; }
.notice { padding: 14px 16px; border-radius: 10px; font-size: 15px; margin: 14px 0; }
.notice.warn   { background: #fbf3e3; border: 1px solid var(--brass-soft); color: #6a4f1b; }
.notice.info   { background: #eef2f6; border: 1px solid var(--line-cool); color: #2c4055; }
.notice.danger { background: #f8ece9; border: 1px solid #e0bcb4; color: var(--danger); }
.notice.ok     { background: #e9f2ec; border: 1px solid #c4ddcc; color: var(--ok); }

.status-pill { display:inline-block; padding:4px 12px; border-radius:999px; font-size:13px; font-weight:600; }
.status-armed  { background:#e9f2ec; color:var(--ok); }
.status-paused { background:#f0eee6; color:#796f59; }

/* vault entry cards */
.entry { display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:18px 20px; border:1px solid var(--line); border-radius:var(--radius);
    background:#fff; margin:12px 0; }
.entry .meta .type { color:var(--brass); font-size:12.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.entry .meta .title { font-family:'Newsreader',serif; font-size:19px; color:var(--ink); }
.entry .meta .sub { color:var(--muted); font-size:14px; }
.entry .actions { display:flex; gap:8px; flex:none; }

.type-grid { display:grid; gap:12px; grid-template-columns:repeat(2,1fr); }
.type-card { text-align:left; cursor:pointer; background:#fff; border:1px solid var(--line);
    border-radius:var(--radius); padding:16px 18px; text-decoration:none; color:inherit; display:block;
    transition: border-color .15s ease, box-shadow .15s ease; }
.type-card:hover { border-color: var(--brass-soft); box-shadow: 0 8px 22px -18px rgba(0,0,0,.35); }
.type-card .tt { font-family:'Newsreader',serif; font-size:18px; color:var(--ink); }
.type-card .bb { color:var(--muted); font-size:14px; margin-top:2px; }

.contact-row { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; padding:14px 0; border-bottom:1px dashed var(--line); }
.cred-row { display:flex; gap:10px; flex-wrap:wrap; padding:10px 0; border-bottom:1px dashed var(--line); }
.recipients { display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; }
.recipients label { display:flex; gap:8px; align-items:center; font-weight:500; margin:0; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
footer.site { padding: 42px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 48px; }

/* ---- the printable packet ---- */
.document {
    background: var(--paper); border: 1px solid var(--line);
    max-width: 760px; margin: 26px auto; padding: 54px 60px;
    font-family: 'Newsreader', Georgia, serif; color: #20242b; line-height: 1.7;
    box-shadow: 0 1px 0 #fff inset, 0 20px 44px -30px rgba(0,0,0,.45);
}
.document .packet-head { text-align:center; margin-bottom: 8px; }
.document h1 { font-size: 30px; margin: 10px 0 2px; }
.document .owner { text-align:center; color:#5f6675; margin:0 0 6px; }
.document .entry-doc { margin-top: 34px; }
.document h2 { font-size: 20px; border-bottom: 1px solid var(--brass-soft); padding-bottom: 5px; }
.document .kicker { color: var(--brass); font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; font-family:'Inter',sans-serif; }
.document table.cred { width:100%; border-collapse:collapse; font-family:'Inter',sans-serif; font-size:14.5px; margin-top:8px; }
.document table.cred th, .document table.cred td { text-align:left; border-bottom:1px solid #ddd5c2; padding:8px 6px; vertical-align:top; }
.document .for-whom { font-style: italic; color:#4a5160; }
.document .disclaimer { margin-top: 38px; font-family:'Inter',sans-serif; font-size:12.5px; color:#5d6472; border-top:1px dashed #c9c2ad; padding-top:14px; }

@media (max-width: 780px) {
    .grid3, .grid2, .cases, .type-grid { grid-template-columns: 1fr; }
    .hero { padding: 70px 0 60px; }
    .document { padding: 32px 22px; }
    .entry { flex-direction:column; align-items:flex-start; }
}
@media print {
    .no-print { display:none !important; }
    body { background:#fff; }
    .document { box-shadow:none; border:none; margin:0; max-width:none; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; animation:none !important; } }
