:root {
  --ink: #142430; --muted: #556672; --line: #dbe3e8; --paper: #ffffff; --wash: #f4f7f6;
  --teal: #0a7c76; --teal-dark: #075a56; --gold: #c98f2c; --navy: #0f2a38;
  --serif: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased }
a { color: var(--teal-dark) }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 .6em }
h3 { font-weight: 700; letter-spacing: -0.01em }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem) }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem) }
h3 { font-size: 1.3rem }
p { margin: 0 0 1em }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px }
.narrow { max-width: 760px }
.skip { position: absolute; left: -9999px }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10 }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--teal); margin-bottom: .8em }

.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 10px; border: 0; font: 600 1rem var(--sans); cursor: pointer; transition: background .15s }
.btn:hover { background: var(--teal-dark) }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px }
.btn-sm { padding: 8px 14px; font-size: .92rem; white-space: nowrap }
.link { font-weight: 600; text-decoration: none }

.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em }
.mark { width: 32px; height: 32px; color: var(--teal) }
nav { display: flex; align-items: center; gap: 22px; font-size: .95rem }
nav a:not(.btn) { color: var(--ink); text-decoration: none }
nav a:not(.btn):hover { color: var(--teal) }

.hero { background: linear-gradient(160deg, #f2f7f6 0%, #ffffff 60%); padding: 84px 0 76px }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center }
.lede { font-size: 1.2rem; color: #2f4250; max-width: 36em }
.cta-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin: 28px 0 22px }
.proof { font-size: .92rem; color: var(--muted) }
.review-card { background: var(--navy); color: #e6f0ef; border-radius: 18px; padding: 26px 26px 18px; box-shadow: 0 24px 60px rgba(15,42,56,.22) }
.card-kicker { display: flex; justify-content: space-between; font-weight: 600; color: #fff; margin-bottom: 14px }
.card-kicker span { font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #9cc9c3 }

.band { background: var(--navy); color: #e8f1f0; padding: 64px 0; text-align: center }
.band h2 { color: #fff }
.band em { color: #f0c472; font-style: normal }

.section { padding: 84px 0 }
.section.alt { background: var(--wash) }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px }
.card h3 { color: var(--teal-dark) }
.card p:last-child { margin: 0 }
.q { font-weight: 700; font-size: 1.08rem; color: var(--navy) }

.five { counter-reset: n; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; max-width: 860px }
.five li { counter-increment: n; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 66px }
.five li::before { content: counter(n); position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: .9rem }
.five b { color: var(--navy) }

.flow { list-style: none; padding: 0; margin: 32px 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px }
.flow li { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-weight: 600; color: var(--navy) }
.flow span { display: block; color: var(--gold); font-weight: 800; font-size: 1.5rem; line-height: 1; margin-bottom: 6px }
.flow-note { max-width: 46em; color: #2f4250 }

.consult { background: linear-gradient(160deg, #0f2a38, #0b4f4c); color: #e3efee }
.consult h2 { color: #fff }
.consult .eyebrow { color: #9ad6cd }
.consult-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start }
.small { font-size: .88rem; color: #a9c6c3 }
.consult a.mail { color: #fff; font-weight: 600; overflow-wrap: anywhere }
.form { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; display: grid; gap: 4px }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 4px }
.field label span { font-weight: 400; color: var(--muted) }
input, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #c3ced5; border-radius: 9px; background: #fff; color: var(--ink) }
input[aria-invalid="true"] { border-color: #b3261e }
.err { min-height: 1.2em; margin: 2px 0 8px; font-size: .84rem; color: #b3261e }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden }
.status { margin: 10px 0 0; font-weight: 600 }
.status.ok { color: var(--teal-dark) }
.status.bad { color: #b3261e }

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--muted) }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.foot p { margin: 0 }

.note-page { max-width: 640px; margin: 80px auto; padding: 0 24px }

/* ---- The inbox portal (/signin, /inbox) ---- */
.portal { background: var(--wash) }
.portal-main { padding-top: 32px; padding-bottom: 64px }
.portal h1 { font-size: clamp(1.6rem, 3vw, 2.1rem) }
.portal nav a:not(.btn) { display: inline }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px }
.narrow-panel { max-width: 460px; margin: 24px auto }
.portal .stack { display: grid; gap: 10px }
.btn-ghost { background: #fff; color: var(--teal-dark); border: 1.5px solid var(--teal) }
.btn-ghost:hover { background: var(--wash) }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line) }
.btn-quiet:hover { background: var(--wash) }
.btn-danger { background: #fff; color: #b3261e; border: 1.5px solid #b3261e }
.btn-danger:hover { background: #fbeceb }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: .9rem }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line) }
.tabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; font-size: .95rem }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy) }
.convs { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.convs li + li { border-top: 1px solid var(--line) }
.convs a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 18px; text-decoration: none; color: var(--ink) }
.convs a:hover { background: var(--wash) }
.convs .who, .convs .subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.convs .subj { grid-column: 1; color: var(--muted) }
.convs .when { grid-row: 1; grid-column: 2; color: var(--muted); font-size: .88rem; white-space: nowrap }
.convs .unread .who, .convs .unread .subj { font-weight: 600; color: var(--ink) }
.convs .unread .who::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: middle }
.empty { color: var(--muted); padding: 24px 18px; margin: 0 }
.thread-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px }
.thread-head h1 { margin: 0 0 4px; overflow-wrap: anywhere }
.thread-head p { margin: 0; color: var(--muted) }
.actions { display: flex; gap: 8px; flex-wrap: wrap }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px }
.msg.out { border-left: 4px solid var(--teal) }
.msg-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 10px }
.msg-meta b { color: var(--ink) }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 0 }
.msg details { margin-top: 12px }
.msg summary { cursor: pointer; color: var(--teal-dark); font-weight: 600; font-size: .92rem }
.msg iframe { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; background: #fff; resize: vertical }
.portal .warn { background: #fbecd2; color: #6b3d00; border-radius: 10px; padding: 10px 14px; font-size: .92rem }
.portal .warn-strong { background: #fbeceb; color: #7a1712; border-left: 4px solid #b3261e }
.files { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 8px; flex-wrap: wrap }
.files a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: .9rem; background: var(--wash) }
.reply { display: grid; gap: 10px; margin-top: 8px }
.reply textarea { min-height: 160px }
.keys { list-style: none; padding: 0; margin: 0 0 16px }
.portal .h3 { font-size: 1.2rem; margin-top: .4em }
.addr { color: var(--muted); font-weight: 400 }
.small-muted { font-size: .88rem; color: var(--muted); margin: 0 }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap }

@media (max-width: 900px) {
  .hero-grid, .consult-grid { grid-template-columns: 1fr; gap: 36px }
  .cards.three { grid-template-columns: 1fr }
  .flow { grid-template-columns: 1fr 1fr }
  nav a:not(.btn) { display: none }
}
@media (max-width: 600px) {
  body { font-size: 16px }
  .wrap { padding: 0 16px }
  .cards { grid-template-columns: 1fr }
  .hero { padding: 52px 0 48px }
  .section { padding: 60px 0 }
  .flow { grid-template-columns: 1fr }
  .brand span { font-size: 1.05rem }
}

/* Hero sample card */
.card-find { font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.35; margin: 0 0 16px }
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px }
.mini-kpis div { border-top: 2px solid rgba(255,255,255,.18); padding-top: 8px }
.mini-kpis span { display: block; font-size: .8rem; color: #9fbfc0 }
.mini-kpis b { display: block; font-size: 1.6rem; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums }
.mini-kpis em { font-style: normal; font-size: .82rem }
.good { color: #7fd08a } .warn { color: #f0c472 } .bad { color: #f29b92 }
.spark { width: 100%; height: auto; display: block; margin: 4px 0 14px }
.card-flags { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .92rem }
.card-flags li { display: flex; gap: 10px; align-items: baseline }
.card-flags b { color: #fff; margin-right: 4px }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; display: inline-block; transform: translateY(-1px) }
.dot.good { background: #7fd08a } .dot.bad { background: #f29b92 } .dot.warn { background: #f0c472 }
.card-link { color: #9ad6cd; font-weight: 700; text-decoration: none; font-size: .95rem }
.card-link:hover { text-decoration: underline }

/* Statement icons */
.ico { width: 48px; height: 32px; display: block; margin-bottom: 14px; fill: #b9c6cd }
.ico .hi { fill: var(--teal) } .ico .mid { fill: var(--gold) }

/* Sample review band */
.dark-band { background: var(--navy); color: #dbe9ea }
.dark-band h2 { color: #fff; max-width: 22em }
.dark-band .eyebrow { color: #9ad6cd }
.sample-lede { max-width: 40em; color: #b9d0d2 }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0 30px }
.tile { margin: 0; background: #12323f; border: 1px solid #224655; border-radius: 14px; padding: 20px }
.tile figcaption { font-size: .93rem; color: #b9d0d2; margin-bottom: 14px; min-height: 4.6em }
.tile figcaption b { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px }
.tile svg { width: 100%; height: auto; display: block }
.tile-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: #9fbfc0; margin: 12px 0 0 }
.tile-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px }
.m-navy { fill: #cfe3e6 } .m-teal, .k-teal { fill: #2fb5aa; background: #2fb5aa } .m-gold, .k-gold { fill: #d99a36; background: #d99a36 }
.m-blue, .k-blue { fill: #6aa6e0; background: #6aa6e0 } .k-bad { background: #f29b92 } .m-bad { fill: #f29b92 }
.m-rule line { stroke: #224655; stroke-dasharray: 3 4 } .m-seg { stroke: #6f8f9c; stroke-width: 3 }
.m-band { fill: #2fb5aa; opacity: .18 } .m-line { fill: none; stroke: #2fb5aa; stroke-width: 3; stroke-linejoin: round } .m-floor { stroke: #f29b92; stroke-width: 1.5; stroke-dasharray: 5 4 }
.tile circle { stroke: #12323f; stroke-width: 2 }
.btn-light { background: #fff; color: var(--navy) } .btn-light:hover { background: #e6f2f1 }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr } .tile figcaption { min-height: 0 } }

/* Sample tiles: labelled rows (bridge, food cost) */
.wrows { display: grid; gap: 7px; font-size: .84rem }
.wr { display: grid; grid-template-columns: 6.8em minmax(0, 1fr) 4.6em; gap: 8px; align-items: center }
.wr > span { color: #b9d0d2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.wr > b { text-align: right; color: #dbe9ea; font-variant-numeric: tabular-nums; white-space: nowrap }
.wt { position: relative; height: 22px }
.dumbs .wt::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1px dashed #2a5262 }
.tile { display: flex; flex-direction: column }
.tile-act { margin: auto 0 0; padding-top: 14px; border-top: 1px solid #224655; font-size: .9rem; font-weight: 700; color: #f0c472 }
.band-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px }
.foot a { color: var(--teal-dark) }
