/* Shared look for the account pages (/start/, /signin/, /account/). Matches the front page. */
:root {
  --slate: #0F2C33; --green: #14A38B; --green-ink: #0E7F6C; --mint: #3FD6B8;
  --sheet: #F3F7F6; --bg: #ffffff; --ink: #13262b; --ink-2: #4a5f63; --line: #d8e3e1;
  --warn-bg: #fff1e8; --warn-ink: #8d3518; --warn-line: #e6aa91; --ok-bg: #e2f3ef;
  --brand: "Instrument Sans", system-ui, sans-serif; --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--sheet); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: var(--green-ink); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--brand); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(28px, 4.4vw, 42px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0; }
[hidden] { display: none !important; }

header.top { background: var(--slate); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
header.top img { height: 32px; width: auto; display: block; }
header.top nav { display: flex; gap: 18px; align-items: center; font-size: 15px; }
header.top nav a { color: #dbe8e6; text-decoration: none; }
header.top nav a:hover { color: #fff; }
header.top nav a.pill { color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 6px 14px; border-radius: 8px; }
@media (max-width: 640px) { header.top nav a.hide-sm { display: none; } }

.intro { background: var(--slate); color: #fff; padding: 36px 0 44px; }
.intro p { color: #c9dbd8; margin-top: 10px; max-width: 62ch; font-size: 17px; }
main { padding: 28px 0 64px; }

.layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.side { position: sticky; top: 16px; display: grid; gap: 16px; }
@media (max-width: 900px) { .side { position: static; } }
.stack { display: grid; gap: 16px; }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 14px; }
.card.narrow { max-width: 440px; margin: 0 auto; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--slate); color: #fff; font-size: 13px; font-weight: 700; margin-right: 8px; vertical-align: 2px; }
.muted { color: var(--ink-2); font-size: 14.5px; }
.fine { color: var(--ink-2); font-size: 13px; }

.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.opt { position: relative; display: grid; gap: 4px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 14px 44px; cursor: pointer; font: inherit; color: inherit; }
.opt input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; margin: 0; accent-color: var(--green-ink); }
.opt b { font-size: 15.5px; }
.opt span { color: var(--ink-2); font-size: 14px; }
.opt .tag { justify-self: start; background: var(--ok-bg); color: var(--green-ink); font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.opt:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.opt:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }

label.f { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
input[type=text], input[type=email], input[type=password], input[type=number], select { width: 100%; border: 1px solid #9ca3af; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; }
input:focus, select:focus { outline: 3px solid var(--mint); outline-offset: 1px; border-color: var(--slate); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font: inherit; font-weight: 650; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--green-ink); color: #fff; }
.btn.primary:hover { background: #0A6657; }
.btn.line { background: #fff; color: var(--slate); border-color: #9ca3af; }
.btn.line:hover { border-color: var(--slate); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big .k { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.big .v { font-family: var(--brand); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.big .v small { font-family: var(--body); font-size: 13.5px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
table.lines { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.lines td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines td.n { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
table.lines tr.tot td { font-weight: 700; border-bottom: 0; }
.save { background: var(--ok-bg); color: var(--green-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

.msg { border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.msg.err { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.msg.ok { background: var(--ok-bg); color: var(--green-ink); border: 1px solid #a8dccf; }
.status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--green-ink); }
.status.warn { background: var(--warn-bg); color: var(--warn-ink); }
.status.grey { background: #eef1f1; color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }

footer { background: #0a1f24; color: #9fbab6; font-size: 14px; padding: 24px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: #dbe8e6; }
