/* Cautio intake: adaptive wizard, styled with the cautio.com.au design system
   (Poppins, navy, blues, orange accent, cream and sand surfaces, pill buttons).
   Poppins is loaded by site-chrome.css on the website, or by fonts.css in the Claude version. */

:root {
  --navy: #0d1b2b;
  --ink: #0a1628;
  --text: #1d1e20;
  --blue-900: #043c5c;
  --blue-700: #055482;
  --blue-600: #066ca8;
  --blue-50: #eaf3f9;
  --orange: #f47432;
  --orange-700: #a8470f;
  --orange-50: #fdeee4;
  --cream: #fff7e7;
  --sand: #ccc5b8;
  --slate: #64748b;
  --slate-300: #94a3b8;
  --charcoal: #373c42;
  --white: #ffffff;
  --ok: #0f5132; --ok-bg: #e7f7ee;
  --bad: #8a1c13; --bad-bg: #fdecea;
  --line: #e6dfd2;
  --field-line: #94a3b8;
  --radius-card: 12px;
  --radius-field: 10px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --top: 0px; /* height of any sticky site header above the form */
}
* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--white); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3 { font-family: var(--font); color: var(--ink); margin: 0; line-height: 1.3; }
h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: 10px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
p { margin: 0; }
a { color: var(--blue-600); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.stage-h:focus { outline: none; }
.is-hidden { display: none !important; }

/* ---------- page band (website only) ---------- */
.page-hero { background: var(--blue-900); color: var(--white); padding-block: 44px 40px; }
.page-hero .wrap { max-width: calc(1224px + 48px); margin-inline: auto; padding-inline: 24px; }
.page-hero .kicker { font-size: 18px; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); font-weight: 600; margin: 0; }
.page-hero p { margin-top: 10px; max-width: 760px; font-weight: 300; font-size: 18px; color: rgba(255, 255, 255, .88); }

/* ---------- shell ---------- */
.stage-band { background: var(--cream); padding-block: 32px 72px; }
.shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; max-width: calc(1224px + 48px); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 900px) { .stage-band { padding-block: 16px 48px; } .shell { grid-template-columns: 1fr; gap: 16px; padding-inline: 16px; } }

/* ---------- rail ---------- */
.rail { background: var(--navy); color: #e2e8f0; border-radius: var(--radius-card); padding: 26px 22px; position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2b3b4d transparent; box-shadow: 0 25px 50px -24px rgba(13, 27, 43, .45); }
.rail::-webkit-scrollbar { width: 8px; }
.rail::-webkit-scrollbar-thumb { background: #2b3b4d; border-radius: 4px; }
@media (max-width: 900px) { .rail { position: static; max-height: none; padding: 18px; } }
.rail-brand { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.rail-title { font-size: 20px; font-weight: 600; color: var(--white); line-height: 1.3; }
.rail-sub { font-size: 13px; font-weight: 300; color: var(--slate-300); margin-top: 4px; }
.rail hr { border: 0; border-top: 1px solid rgba(148, 163, 184, .22); margin: 16px 0; }
.rail-note { font-size: 12.5px; font-weight: 300; color: var(--slate-300); line-height: 1.5; }
.rail-saved { font-size: 12.5px; color: #9fd3b6; margin: 10px 0 0; min-height: 1em; }
.rail-stamp { font-size: 11.5px; letter-spacing: .04em; color: #64748b; margin: 12px 0 0; }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; font-size: 14px; padding: 4px 0 4px 22px; color: var(--slate-300); border-left: 2px solid #22344a; margin-left: 4px; }
.steps li.done { color: #e2e8f0; }
.steps li.active { color: var(--white); font-weight: 600; border-left-color: var(--orange); }
.steps li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: #22344a; }
.steps li.done::before { background: var(--cream); }
.steps li.active::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(244, 116, 50, .28); }
.step-link { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.step-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .steps li:not(.active) { display: none; }
  .steps li.active { border-left-color: transparent; }
  .rail hr, .rail-note, .rail-stamp, .rail-sub, .ledger-h, .rail-saved { display: none; }
  .steps { margin-top: 10px; }
  .tally { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
  .tally-row { font-size: 12px; gap: 6px; }
  .tally-n { font-size: 16px; min-width: 0; }
}

.ledger-h { font-size: 13px; font-weight: 600; color: var(--cream); margin-bottom: 10px; }
.tally { display: flex; flex-direction: column; gap: 8px; }
.tally-row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.tally-n { font-size: 20px; font-weight: 700; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.tally-row.sig .tally-n { color: #7cc0ea; }
.tally-row.evid .tally-n { color: var(--orange); }
.tally-row.done .tally-n { color: var(--cream); }
.tally-l { color: var(--slate-300); font-weight: 300; line-height: 1.35; }
.pulse { animation: pulse .5s ease; }
@keyframes pulse { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* owner switcher (Claude version only) */
.rail-nav { display: flex; gap: 6px; margin-top: 16px; }
.rail-nav button { flex: 1; min-height: 40px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .4); background: transparent; color: #e2e8f0; font: 600 13px/1.2 var(--font); cursor: pointer; }
.rail-nav button[aria-current="page"] { background: var(--cream); color: var(--navy); border-color: var(--cream); }

/* ---------- main ---------- */
.main { min-width: 0; max-width: 860px; }
.eyebrow { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--blue-900); margin-bottom: 10px; }
.lede { font-size: 18px; font-weight: 300; line-height: 1.5; color: var(--slate); max-width: 66ch; margin: 0 0 6px; }
.note { font-size: 14px; color: var(--slate); margin: 10px 0 0; }
.card { background: var(--white); border-radius: var(--radius-card); padding: 26px 28px; margin: 20px 0; box-shadow: 0 1px 2px rgba(13, 27, 43, .06), 0 12px 32px -20px rgba(13, 27, 43, .25); }
.card.tight { padding: 18px 22px; }
@media (max-width: 600px) { .card { padding: 18px 16px; } }

/* question */
.q { border-top: 1px solid var(--line); padding: 24px 0 10px; }
.card > .q:first-child, .card > .q.is-hidden:first-child + .q { border-top: 0; padding-top: 2px; }
.q-ref { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--blue-700); background: var(--blue-50); border-radius: 999px; padding: 2px 10px; white-space: pre; }
.q-text { font-size: 18px; font-weight: 600; color: var(--ink); margin: 10px 0 4px; line-height: 1.4; }
.q-why { font-size: 15px; font-weight: 300; color: var(--slate); margin-bottom: 12px; max-width: 66ch; }
.q-err { font-size: 14px; font-weight: 500; color: var(--bad); margin-top: 8px; }
.q-err:empty { display: none; }
.q.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 30% { background: var(--orange-50); } 100% { background: transparent; } }

.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.opts.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer; border: 1px solid var(--field-line); border-radius: var(--radius-field); background: var(--white); font-size: 15px; line-height: 1.4; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.opt:hover { border-color: var(--blue-600); }
.opt input { margin: 0; width: 18px; height: 18px; accent-color: var(--blue-600); flex: none; }
.opt:focus-within { outline: 3px solid var(--orange); outline-offset: 1px; }
.opt.sel { border-color: var(--blue-600); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-600); }
.opt.sel.f-evid { border-color: var(--orange); background: var(--orange-50); box-shadow: inset 0 0 0 1px var(--orange); }
.opt.sel.f-evid input { accent-color: var(--orange-700); }
.opt-t { flex: 1; }
.opt-tag { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-700); opacity: 0; transition: opacity .15s; flex: none; }
.opt.sel .opt-tag { opacity: 1; }

input[type=text], input[type=email], input[type=number], textarea, select { width: 100%; min-height: 52px; font-family: inherit; font-size: 16px; line-height: 1.5; padding: 12px 16px; border: 1px solid var(--field-line); border-radius: var(--radius-field); background: var(--white); color: var(--text); }
input[type=number] { max-width: 220px; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--blue-600); }
textarea { min-height: 96px; resize: vertical; }
::placeholder { color: var(--slate-300); opacity: 1; }

/* nav and buttons (pill buttons, as on the website) */
.nav { display: flex; gap: 14px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.btn-p, .btn-s { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 12px 32px; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn-p { background: var(--blue-600); color: var(--white); border: 2px solid var(--blue-600); }
.btn-p:hover:not(:disabled) { background: #055b8e; border-color: #055b8e; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); }
.btn-s { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-s:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.btn-p.small, .btn-s.small { min-height: 34px; padding: 4px 14px; font-size: 13px; border-width: 1.5px; }
.btn-danger { color: var(--bad); border-color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: var(--bad); color: var(--white); }
button:disabled { opacity: .45; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; color: var(--bad); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.warn { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-field); background: var(--bad-bg); color: var(--bad); font-size: 14px; font-weight: 500; max-width: 66ch; }
.warn:empty { display: none; }
.confirm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }

/* chips (like the certification pills on the website) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--slate); background: var(--white); border: 1px dashed var(--sand); }
.chip.on { background: var(--blue-700); color: var(--white); border: 1px solid var(--blue-700); }
.card .eyebrow { font-size: 16px; }

/* items, tiers, review */
.item { border-top: 1px solid var(--line); padding: 14px 0; display: flex; gap: 14px; align-items: flex-start; }
.item:first-child { border-top: 0; }
.item-n { flex: none; min-width: 70px; padding-top: 2px; font-size: 13px; font-weight: 600; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.item-b { flex: 1; min-width: 0; }
.item-t { font-weight: 600; font-size: 16px; color: var(--ink); line-height: 1.4; }
.item-d { font-size: 14px; font-weight: 300; color: var(--slate); margin-top: 3px; }
.item > .btn-s { flex: none; }
.bar { height: 6px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 18px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--orange); width: 0; border-radius: 999px; transition: width .3s ease; }
.tier { margin-top: 24px; padding: 24px 28px; border-radius: var(--radius-card); background: var(--navy); color: var(--white); }
.tier .note { color: var(--slate-300); }
.tier-meta { font-size: 14px; font-weight: 600; color: var(--orange); margin-bottom: 4px; }
.tier-name { font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--cream); line-height: 1.25; }
.sec-h { display: flex; align-items: center; gap: 12px; margin: 36px 0 4px; }
.sec-h h3 { margin: 0; font-size: 22px; }
.sec-n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 14px; font-weight: 700; flex: none; }
.answers-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.answers-h h3 { margin: 0; }
.answers dl { display: grid; grid-template-columns: minmax(180px, 38%) 1fr; gap: 8px 18px; margin: 12px 0 0; font-size: 14px; }
.answers dt { color: var(--slate); }
.answers dd { margin: 0; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 600px) { .answers dl { grid-template-columns: 1fr; } .answers dd { margin-bottom: 8px; } }
.status { font-size: 15px; font-weight: 500; margin: 14px 0 0; }
.status:empty { display: none; }
.status.good { padding: 12px 16px; border-radius: var(--radius-field); background: var(--ok-bg); color: var(--ok); }
.status.bad { padding: 12px 16px; border-radius: var(--radius-field); background: var(--bad-bg); color: var(--bad); }

/* done view */
.done-ref { display: inline-block; font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--blue-900); padding: 10px 18px; border-radius: var(--radius-field); background: var(--white); border: 2px solid var(--blue-600); margin: 8px 0 6px; font-variant-numeric: tabular-nums; }

/* honeypot */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- records (Claude version owner view) ---------- */
.records-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.records-head h1 { margin: 0 auto 0 0; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-card); box-shadow: 0 1px 2px rgba(13, 27, 43, .06), 0 12px 32px -20px rgba(13, 27, 43, .25); }
table.records { width: 100%; border-collapse: collapse; font-size: 14px; }
table.records th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-900); padding: 12px 14px; border-bottom: 2px solid var(--sand); }
table.records td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.records td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.records .org { font-weight: 600; color: var(--ink); }
table.records .rid { font-size: 12px; color: var(--slate); }
table.records select { min-height: 36px; padding: 4px 10px; font-size: 14px; }
table.records .empty { color: var(--slate); padding: 20px 14px; }
.row-actions { display: flex; gap: 6px; }
.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 18px; background: var(--orange-50); border-radius: var(--radius-field); font-size: 14px; margin-bottom: 18px; color: var(--text); }
.banner .grow { flex: 1; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
textarea.fallback { min-height: 160px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .btn-p:hover, .btn-s:hover { transform: none !important; } }
@media (max-width: 640px) {
  .page-hero { padding-block: 28px 24px; }
  .page-hero .kicker { font-size: 15px; }
  .page-hero p { font-size: 16px; }
}
