/* Acme Insurance claims portal. Brand: navy #13294b, amber #f2b34a, white (the approved message layouts).
   Mobile first: the booth shows it on phones; wider screens get a two-pane agency board. */
:root {
  --navy: #13294b;
  --navy-deep: #0c1c36;
  --navy-soft: #e8edf5;
  --amber: #f2b34a;
  --amber-soft: #fdf3e1;
  --amber-ink: #7a5a14;
  --white: #ffffff;
  --ink: #1b2430;
  --muted: #5d6b7a;
  --line: #dfe5ec;
  --bg: #f4f6f9;
  --ok: #1d7a46;
  --ok-soft: #e4f3ea;
  --warn: #a8480c;
  --warn-soft: #fdebdc;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 41, 75, 0.06), 0 6px 18px rgba(19, 41, 75, 0.07);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
}
main { flex: 1; }
[hidden] { display: none !important; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }

/* header and footer */
.brandbar { background: var(--white); border-bottom: 3px solid var(--amber); }
.brandbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: var(--amber); display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 18px; }
.bn { font-family: var(--display); font-weight: 800; color: var(--navy); letter-spacing: 0.04em; }
.brand-tag { font-size: 0.8rem; font-weight: 600; color: var(--amber-ink); background: var(--amber-soft); padding: 3px 10px; border-radius: 999px; }
.foot { padding: 22px 16px 28px; text-align: center; color: var(--muted); font-size: 0.82rem; }

/* landing */
.hero { background: var(--navy); color: var(--white); padding: 34px 0 72px; }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.14em; font-weight: 700; color: var(--amber-ink); text-transform: uppercase; margin-bottom: 6px; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lede { margin-top: 12px; color: #c9d5e6; max-width: 46ch; font-size: 1.05rem; }
.hero .lede a { color: var(--white); font-weight: 700; white-space: nowrap; }
.doors { display: grid; gap: 14px; margin-top: -44px; padding-bottom: 12px; }
.door { display: flex; flex-direction: column; gap: 6px; background: var(--white); border-radius: var(--radius); padding: 20px 20px 18px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-top: 5px solid #8fa6c8;
  transition: transform 0.15s ease, box-shadow 0.15s ease; }
.door:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(19, 41, 75, 0.14); }
.door.amber { border-top-color: var(--amber); }
.door-title { font-family: var(--display); font-size: 1.45rem; font-weight: 800; color: var(--navy); }
.door-text { color: var(--muted); }
.door-go { margin-top: 8px; font-weight: 700; color: var(--navy); }
.door-go::after { content: " \2192"; }

/* cards, forms, buttons */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.signin { padding-top: 28px; padding-bottom: 12px; }
.signin h1 { margin-bottom: 6px; }
form { display: grid; gap: 8px; margin-top: 16px; }
label { font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-top: 6px; }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1.5px solid #c4cfdb; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .claim-row:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px; border-color: var(--navy);
}
#claim-ref, #pin { font-family: var(--mono); letter-spacing: 0.06em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid var(--navy); }
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover { background: var(--navy-deep); }
.btn.ghost { background: var(--white); color: var(--navy); }
.btn.ghost:hover { background: var(--navy-soft); }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
form .btn { margin-top: 10px; }
.error { color: var(--danger); background: var(--danger-soft); border-radius: 8px; padding: 10px 12px; font-size: 0.92rem; }
.okay { color: var(--ok); font-weight: 600; }
.hint { font-size: 0.86rem; color: var(--muted); }

/* status chips */
.chip { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px;
  background: var(--navy-soft); color: var(--navy); white-space: nowrap; }
.chip.s-received { background: var(--amber-soft); color: var(--amber-ink); }
.chip.s-updated { background: #e3effd; color: #1b4f8f; }
.chip.s-review { background: var(--navy-soft); color: var(--navy); }
.chip.s-info { background: var(--warn-soft); color: var(--warn); }
.chip.s-closed { background: #eceff2; color: #4a5562; }
.chip.new { background: var(--amber); color: var(--navy); }

/* the claim band (both views) */
.band { background: var(--navy); color: var(--white); border-radius: var(--radius) var(--radius) 0 0; padding: 18px 20px 16px; }
.band .eyebrow { color: var(--amber); margin-bottom: 2px; }
.band h2 { color: var(--white); font-size: 1.5rem; font-weight: 800; }
.band .ref-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; color: #c9d5e6; font-size: 0.88rem; }
.band .ref-line .mono { color: var(--white); font-size: 1rem; }
.band .chip { background: var(--amber); color: var(--navy); }
.sheet { background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.sheet > section { padding: 16px 20px; border-top: 1px solid var(--line); }
.sheet > section:first-child { border-top: 0; }
.sheet h3 { font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 8px; }
.status-note { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.kv th, .kv td { text-align: left; vertical-align: top; padding: 7px 0; border-bottom: 1px solid #edf1f4; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { color: var(--muted); font-weight: 500; width: 40%; padding-right: 12px; }
.quote { font-style: italic; }
.summary { line-height: 1.55; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { border-left: 3px solid var(--amber); padding: 2px 0 2px 12px; }
.timeline .when { display: block; font-size: 0.8rem; color: var(--muted); }
.timeline .what { white-space: pre-wrap; overflow-wrap: anywhere; }
.notes-card { margin-top: 14px; }
.notes-card h2 { margin-bottom: 10px; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note-foot .btn { margin-top: 0; }
.view-foot { display: flex; justify-content: flex-end; padding: 14px 0 4px; }

/* agency board: a list, and the claim on its own screen (phones) or beside it (wide screens) */
.board { padding: 18px 16px 8px; max-width: 1240px; margin: 0 auto; }
.toolbar { display: grid; gap: 10px; margin-bottom: 12px; }
.toolbar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.toolbar h1 { font-size: 1.6rem; }
.count { font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.tools { display: flex; gap: 8px; }
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.claim-row { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 3px;
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.claim-row:hover { border-color: #b8c5d6; border-left-color: var(--navy); }
.claim-row[aria-current="true"] { border-left-color: var(--amber); background: #fffaf0; }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-top .mono { color: var(--navy); font-size: 0.92rem; }
.row-name { font-weight: 700; font-size: 1.05rem; }
.row-what { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { color: var(--muted); font-size: 0.84rem; }
.empty { color: var(--muted); padding: 24px 4px; text-align: center; }
.back { margin-bottom: 12px; }
.detail-pane .band { border-radius: var(--radius) var(--radius) 0 0; }

@media (min-width: 720px) {
  .doors { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero { padding: 52px 0 88px; }
  .card { padding: 26px; }
}
.detail-empty { display: grid; place-items: center; min-height: 320px; padding: 20px; text-align: center; color: var(--muted);
  border: 2px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 959px) {
  .board:not(.is-detail) .detail-pane { display: none; }
  .board.is-detail .list-pane { display: none; }
}
@media (min-width: 960px) {
  .board { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; gap: 22px; align-items: start; }
  .board .list-pane { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding: 2px 6px 2px 2px; }
  .board .back { display: none; }
}
@media (prefers-reduced-motion: reduce) { .door { transition: none; } .door:hover { transform: none; } }
