:root {
  --ink: #16212e; --muted: #5b6878; --line: #dfe4ea; --bg: #f8f5f0; --card: #fff;
  --brand: #5a3e2b; --brand-2: #7a5639; --brand-soft: #f6ecde; --gold: #d4a24c;
  --warn: #9a6200; --warn-soft: #fff4dc; --err: #b3261e; --err-soft: #fdecea; --ok: #1d6b3a; --ok-soft: #e6f4ea;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 16px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 1.5rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
a { color: var(--brand-2); }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.loading { padding: 3rem; text-align: center; color: var(--muted); }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.logo { display: block; width: 34px; height: 34px; border-radius: 8px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font: inherit; font-weight: 600; padding: .55rem 1rem; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #b9c3cf; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--err); border-color: #f0c4c0; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.small { padding: .3rem .65rem; font-size: .85rem; }
.btn.big { padding: .8rem 1.4rem; font-size: 1.05rem; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.row.tight { margin: 0; gap: .35rem; flex-wrap: nowrap; }
.row.end { justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.field { display: block; margin-bottom: .9rem; }
.field .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.field .hint { display: block; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #c9d1da; border-radius: 8px; background: #fff; color: var(--ink); }
select { width: auto; padding: .25rem .4rem; }
.row.tight input { flex: 1; min-width: 0; }
input:focus, textarea:focus, select:focus, .btn:focus-visible, .nav-link:focus-visible, .item-row:focus-visible { outline: 3px solid #e8c98a; outline-offset: 1px; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; font-size: .95rem; }
.check input { margin-top: .3rem; flex: none; }
.meter { height: 6px; background: var(--line); border-radius: 3px; margin: -.5rem 0 .9rem; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; transition: width .2s; background: var(--err); }
.meter[data-level="1"] span { width: 25%; } .meter[data-level="2"] span { width: 50%; background: var(--warn); }
.meter[data-level="3"] span { width: 75%; background: var(--brand-2); } .meter[data-level="4"] span { width: 100%; background: var(--ok); }

.flash { padding: .7rem .9rem; border-radius: 8px; margin: 0 0 1rem; font-size: .95rem; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.info { background: var(--brand-soft); color: var(--brand); }
.flash.err { background: var(--err-soft); color: var(--err); }
.alert { background: var(--warn-soft); color: #5c3b00; padding: .7rem .9rem; border-radius: 8px; margin-bottom: .6rem; }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); border: 0; font-family: inherit; }
button.pill { cursor: pointer; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.err { background: var(--err-soft); color: var(--err); }

/* auth */
.auth { max-width: 460px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.auth > .brand { margin: 0 0 1.25rem; }
.auth-card { padding: 1.75rem; }
.auth-card .btn.primary { width: 100%; margin-top: .4rem; }
.auth-links { display: flex; justify-content: space-between; margin-top: 1rem; font-size: .9rem; }
.recovery-code { font: 600 1.15rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; background: var(--brand-soft); color: var(--brand);
  padding: 1rem; border-radius: 10px; text-align: center; word-break: break-word; margin: .8rem 0; }
.code { font: 600 1.15rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; background: var(--bg); border: 1px dashed #b9c3cf; padding: .6rem .8rem; border-radius: 8px; margin: .3rem 0 .6rem; }

/* app layout */
.top { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-right { display: flex; align-items: center; gap: .75rem; }
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 57px); }
.side { border-right: 1px solid var(--line); background: #fff; padding: 1rem .6rem; }
.nav-group { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem .6rem .3rem; font-weight: 700; }
.nav-group:first-child { margin-top: 0; }
.nav-link { display: flex; justify-content: space-between; width: 100%; text-align: left; font: inherit; padding: .45rem .6rem; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink); }
.nav-link:hover { background: var(--bg); }
.nav-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.count { color: var(--muted); font-size: .8rem; }
.content { padding: 1.5rem 2rem 4rem; max-width: 900px; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.head h2 { margin: 0; } .head input { max-width: 280px; }
.tip { background: var(--brand-soft); border-color: #ead8bf; }
.empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); margin: 1rem 0; background: #fff; }
.items { list-style: none; padding: 0; margin: 1rem 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.items li + li { border-top: 1px solid var(--line); }
.item-row { display: flex; align-items: center; gap: .9rem; width: 100%; padding: .75rem 1rem; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.item-row:hover { background: var(--bg); }
.item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.item-text .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-badge { flex: none; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; min-width: 78px; text-align: center; }
.c-login { background: #e6effc; color: #1d4f9c; } .c-financial { background: #e6f4ea; color: #1d6b3a; } .c-insurance { background: #f2e9fb; color: #6a3a9c; }
.c-document { background: #fff1dc; color: #8a5300; } .c-wishes { background: #fde9ef; color: #9c2a52; }
.trustee-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.banner { display: flex; justify-content: space-between; align-items: center; background: var(--warn-soft); color: #5c3b00; padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 600; }
.activity { list-style: none; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.activity li { padding: .6rem 1rem; border-top: 1px solid var(--line); } .activity li:first-child { border-top: 0; }

/* modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 23, 32, .45); display: grid; place-items: start center; padding: 6vh 1rem; z-index: 20; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; margin: 0; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.modal-head h3 { margin: 0; font-size: 1.25rem; }
.kv { display: grid; grid-template-columns: 150px 1fr auto; gap: .6rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.kv .label { color: var(--muted); font-size: .88rem; }
.kv .value { word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; }
.kv .value.long { white-space: pre-wrap; font-family: inherit; grid-column: 2 / 4; }

/* landing */
.landing { background: #fff; }
.lp-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: 1100px; margin: 0 auto; }
.lp-top nav { display: flex; gap: 1.25rem; align-items: center; }
.lp-top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.hero h1 { font-size: 2.5rem; letter-spacing: -.01em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.tagline { font-size: 1.15rem; color: #a77a2c; font-weight: 600; margin-top: -.2rem; }
.hero-card { padding: 1rem 1.25rem; }
.mini-row { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mini-lock { padding-top: .8rem; color: var(--brand); font-weight: 600; font-size: .9rem; }
.band { padding: 3.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.band.alt { background: var(--bg); max-width: none; }
.band.alt > * { max-width: 1036px; margin-left: auto; margin-right: auto; }
.band h2 { text-align: center; font-size: 1.9rem; margin-bottom: 1.5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: .6rem; }
.price-card { max-width: 440px; margin: 0 auto; text-align: center; padding: 2rem; }
.price { font-size: 3rem; font-weight: 800; color: var(--brand); } .price span { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.price-card ul { text-align: left; padding-left: 1.2rem; margin: 1rem 0 1.5rem; }
.price-card li { margin-bottom: .4rem; }
.lp-foot { display: flex; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 2rem; color: var(--muted); border-top: 1px solid var(--line); }

.waitlist { display: flex; gap: .6rem; max-width: 640px; margin: 0 auto 1rem; flex-wrap: wrap; }
.waitlist input { flex: 1 1 180px; }
#waitlist-msg { max-width: 640px; margin: 0 auto; }
#waitlist-msg:empty { display: none; }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: .25rem; padding: .5rem; }
  .nav-group { display: none; } .nav-link { width: auto; white-space: nowrap; } .nav-link .count { margin-left: .4rem; }
  .content { padding: 1rem; } .head { flex-direction: column; align-items: stretch; } .head input { max-width: none; }
  .grid2, .hero, .steps { grid-template-columns: 1fr; } .hero h1 { font-size: 1.9rem; }
  .kv { grid-template-columns: 1fr; } .kv .value.long { grid-column: auto; }
  .hide-sm, .lp-top nav a:not(.btn) { display: none; }
}
@media print {
  .auth .btn, .auth .check, .auth-links, .auth > .brand { display: none; }
}

/* verified logins */
.vbadge { flex: none; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.v-ok { background: var(--ok-soft); color: var(--ok); }
.v-none { background: #eef0f3; color: var(--muted); }
.v-due { background: var(--warn-soft); color: var(--warn); }
.checkup { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fbf4e6; border-color: #ecd9b3; }
.checkup.good { background: var(--ok-soft); border-color: #cfe7d6; }
.signin-check { margin-top: .9rem; padding-top: .6rem; border-top: 2px solid var(--brand-soft); }
.signin-check h4 { margin: 0 0 .2rem; font-size: 1rem; }
.value.plain { font-family: inherit; }
.value.long-secret { white-space: pre-wrap; word-break: break-word; }
.test-flow .question { font-weight: 700; margin: 1rem 0 .3rem; }
.steps-list { padding-left: 1.3rem; margin: .4rem 0 .8rem; }
.steps-list li { margin-bottom: .2rem; }
.radios { margin-bottom: .6rem; }
.radios .check { margin: .3rem 0; }
.alert.small { font-size: .88rem; }
