:root {
  --ink: #14213d;
  --paper: #f5f7fa;
  --card: #ffffff;
  --line: #d6dce6;
  --muted: #566176;
  --signal: #d7263d;
  --note: #ffedb3;
  --ok: #1d7a4f;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 460px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.brand { font: 700 1.15rem var(--display); text-decoration: none; display: flex; align-items: center; gap: 9px; }
.light { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); flex: none; }
.brand .light { animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .brand .light { animation: none; } }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.top form { margin: 0; }
.top nav .linkbtn { text-decoration: none; font-weight: 500; }

main { padding: 36px 0 72px; }

/* Buttons and forms */
.btn {
  display: inline-block; border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  font: 600 1rem var(--body); padding: 10px 18px; border-radius: 8px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #0b1530; }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.quiet:hover { background: #e9edf3; }
.btn.danger { background: transparent; color: var(--signal); border-color: var(--signal); }
.btn.sm { padding: 5px 11px; font-size: 0.875rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

label { display: block; font-weight: 600; margin: 0 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.875rem; display: block; margin-top: 2px; }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], textarea, select {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1.5px solid #9aa5b8;
  border-radius: 8px; padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 20px; }
fieldset { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 5px; width: 17px; height: 17px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.banner { border-left: 4px solid var(--signal); background: #fff; padding: 12px 16px; margin-bottom: 24px; border-radius: 0 8px 8px 0; }
.banner.ok { border-left-color: var(--ok); }

/* Landing */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 28px 0 56px; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); }
.sign {
  background: var(--ink); color: #fff; border-radius: 6px; padding: 30px 28px 26px; transform: rotate(-1.5deg);
  box-shadow: 10px 12px 0 #c9d1de; font-family: var(--display);
}
.sign .ask { font-size: 1.35rem; font-weight: 600; margin: 0 0 10px; }
.sign .num { font-size: clamp(2.1rem, 5.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin: 0 0 14px; white-space: nowrap; }
.sign .who { font: 500 0.95rem var(--body); margin: 0; opacity: 0.8; }
.heard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 34px 0 0 28px; }
.heard p { margin: 0; }
.heard .meta { display: flex; gap: 8px; align-items: center; font-size: 0.875rem; color: var(--muted); margin-bottom: 6px; }

.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); font: 800 1.6rem var(--display); display: block; margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan .price { font: 800 2.6rem var(--display); line-height: 1; margin: 6px 0 14px; }
.plan .price span { font: 500 1rem var(--body); color: var(--muted); }
.plan ul { padding-left: 1.1em; margin: 0 0 20px; }
.plan li { margin-bottom: 4px; }
.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 0.875rem; }

/* Plan picker */
.choices { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { border: 1.5px solid #9aa5b8; border-radius: 8px; padding: 14px; cursor: pointer; font-weight: 500; height: 100%; margin: 0; background: #fff; }
.choice label strong { display: block; font: 700 1.1rem var(--display); }
.choice input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.choice input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }

/* Inbox */
.bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.tabs { display: flex; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; }
.tabs a { padding: 7px 14px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.bar form.search { display: flex; gap: 8px; flex: 1 1 260px; }
.bar .right { margin-left: auto; }

.vm { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.vm.is-new { border-left: 4px solid var(--signal); }
.vm header { display: flex; gap: 10px 14px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.vm .who { font: 700 1.2rem var(--display); display: flex; align-items: center; gap: 9px; }
.vm .when { margin-left: auto; color: var(--muted); font-size: 0.875rem; }
.vm audio { width: 100%; height: 40px; margin-bottom: 10px; }
.vm blockquote { margin: 0 0 12px; font-size: 1.05rem; max-width: 72ch; }
.vm .note { background: var(--note); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; white-space: pre-wrap; }
.vm details { margin-bottom: 10px; }
.vm summary { cursor: pointer; font-size: 0.875rem; color: var(--muted); }
.vm details form { margin-top: 8px; display: grid; gap: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.empty { text-align: center; padding: 56px 20px; }
.empty .num { font: 800 clamp(1.8rem, 5vw, 2.6rem) var(--display); margin: 8px 0; }

.meter { height: 8px; background: #e3e8f0; border-radius: 4px; overflow: hidden; margin: 8px 0; max-width: 360px; }
.meter i { display: block; height: 100%; background: var(--ink); }
.meter.w10 i { width: 10%; } .meter.w20 i { width: 20%; } .meter.w30 i { width: 30%; } .meter.w40 i { width: 40%; }
.meter.w50 i { width: 50%; } .meter.w60 i { width: 60%; } .meter.w70 i { width: 70%; } .meter.w80 i { width: 80%; }
.meter.w90 i { width: 90%; } .meter.w100 i { width: 100%; background: var(--signal); } .meter.w0 i { width: 1%; }

table.list { width: 100%; border-collapse: collapse; }
table.list td { padding: 8px 0; border-bottom: 1px solid var(--line); }
table.list td:last-child { text-align: right; }
.numbers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.numbers form { display: flex; align-items: center; gap: 14px; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff; }
.numbers strong { font: 700 1.15rem var(--display); }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row .field { flex: 1 1 200px; margin: 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .heard { margin-left: 0; }
  .steps, .plans, .choices { grid-template-columns: 1fr; }
  .vm .when { margin-left: 0; width: 100%; }
}

.panel details { margin-top: 16px; }
table.list { margin-bottom: 16px; }
