:root {
    --ink: #172033;
    --brand: #124c5b;
    --brand-dark: #08343f;
    --gold: #c99a3d;
    --surface: #ffffff;
    --muted: #eef3f3;
    --line: #c9d4d5;
    --focus: #004ecb;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f8faf9; color: var(--ink); font: 16px/1.55 Arial, sans-serif; }
a { color: var(--brand-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.banner, main { width: min(100% - 2rem, 70rem); margin: auto; }
.banner { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.5rem; }
.brand img { display: block; max-width: min(12rem, 45vw); max-height: 2.5rem; object-fit: contain; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
.nav-sign-out { display: inline; }
.nav-sign-out input { display: none; }
.button { display: inline-block; border: 0; border-radius: .35rem; background: var(--brand); color: #fff; cursor: pointer; font: inherit; font-weight: 700; padding: .7rem 1rem; text-decoration: none; }
.button:hover { background: var(--brand-dark); }
.button-secondary { background: transparent; color: var(--brand-dark); border: 1px solid var(--brand); }
.breadcrumbs { width: min(100% - 2rem, 70rem); margin: auto; padding: .55rem 0; color: #4b5a67; font-size: .9rem; }
.breadcrumbs span { margin: 0 .3rem; }
.hero { padding: 4rem 0; }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 7vw, 3.75rem); line-height: 1.08; margin: .3rem 0 1rem; }
h2 { line-height: 1.2; }
.lead { font-size: 1.125rem; max-width: 43rem; }
.hero-card, .card { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; box-shadow: 0 6px 22px rgb(23 32 51 / 7%); }
.hero-card h2 { margin-top: 0; }
.how-it-works { margin: 1.25rem 0; max-width: 58rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1.5rem 0 3rem; }
.card { min-height: 11rem; }
.client-case-hub { aspect-ratio: 1 / .96; margin: 1.5rem auto 3rem; max-width: 42rem; position: relative; width: min(100%, 42rem); }
.case-hub-profile, .case-hub-folder { align-items: center; aspect-ratio: 1; background: var(--surface); border: 2px solid var(--brand); border-radius: 50%; color: var(--brand-dark); display: flex; flex-direction: column; font-weight: 700; justify-content: center; padding: .55rem; position: absolute; text-align: center; text-decoration: none; width: 29%; }
.case-hub-profile { background: var(--brand); border-color: var(--brand); color: #fff; font-size: clamp(.9rem, 3.7vw, 1.25rem); left: 35.5%; top: 35%; width: 29%; }
.case-hub-profile span { font-size: .78em; font-weight: 400; }
.case-hub-folder { gap: .2rem; font-size: clamp(.68rem, 2.8vw, .95rem); line-height: 1.15; overflow-wrap: anywhere; }
.case-hub-folder:hover, .case-hub-folder:focus-visible { background: #e8f5ec; }
.case-hub-folder img { height: clamp(1.4rem, 7vw, 2.5rem); object-fit: contain; width: clamp(1.4rem, 7vw, 2.5rem); }
.case-hub-folder:nth-of-type(2) { left: 35.5%; top: 0; }
.case-hub-folder:nth-of-type(3) { left: 70.5%; top: 18%; }
.case-hub-folder:nth-of-type(4) { left: 65.5%; top: 60%; }
.case-hub-folder:nth-of-type(5) { left: 5.5%; top: 60%; }
.case-hub-folder:nth-of-type(6) { left: .5%; top: 18%; }
.provider-contact { align-items: center; display: flex; gap: 1rem; }
.provider-contact img { border: 1px solid var(--line); border-radius: .35rem; height: 5rem; object-fit: contain; padding: .25rem; width: 7rem; }
.provider-contact p { margin: 0; }
.provider-logo-preview { border: 1px solid var(--line); border-radius: .35rem; max-height: 10rem; max-width: 16rem; object-fit: contain; padding: .35rem; }
.audit-paper { background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 22px rgb(23 32 51 / 7%); margin: 0 auto; max-width: 210mm; padding: 15mm; }
.audit-paper section { break-inside: avoid; border-top: 2px solid var(--brand); margin-top: 1.75rem; padding-top: .75rem; }
.audit-paper h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.audit-paper h3 { font-size: 1rem; margin: 1.25rem 0 .45rem; }
.audit-heading { align-items: flex-start; display: flex; gap: 1.5rem; justify-content: space-between; }
.audit-heading img { max-height: 3rem; max-width: 9rem; object-fit: contain; }
.audit-heading h1 { font-size: 2rem; margin: .2rem 0 .8rem; }
.audit-details { display: grid; gap: .3rem 1rem; grid-template-columns: minmax(8rem, 30%) 1fr; }
.audit-details dt { font-weight: 700; }
.audit-details dd { margin: 0; overflow-wrap: anywhere; }
.audit-list { margin: .5rem 0; padding-left: 1.25rem; }
.audit-note { border-left: 3px solid var(--line); break-inside: avoid; margin: .75rem 0; padding: .3rem 0 .3rem .75rem; }
.audit-note time { color: #40505d; display: block; font-size: .85rem; }
.audit-note p { margin-bottom: 0; }
.audit-paper footer { border-top: 1px solid var(--line); color: #40505d; font-size: .8rem; margin-top: 2rem; padding-top: .75rem; }
.card-icon { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.card h3 { display: flex; gap: .6rem; align-items: center; margin-top: 0; }
.card .folder-title { font-size: .9rem; white-space: nowrap; }
form label { display: block; font-weight: 700; margin: 1rem 0; }
form input { box-sizing: border-box; display: block; width: 100%; margin-top: .35rem; padding: .7rem; border: 1px solid #697386; border-radius: .3rem; font: inherit; }
form select { box-sizing: border-box; display: block; width: 100%; margin-top: .35rem; padding: .7rem; border: 1px solid #697386; border-radius: .3rem; background: #fff; font: inherit; }
form textarea { box-sizing: border-box; display: block; min-height: 8rem; width: 100%; margin-top: .35rem; padding: .7rem; border: 1px solid #697386; border-radius: .3rem; font: inherit; resize: vertical; }
.file-note-form { width: 100%; }
.file-note-form textarea { width: 100%; max-width: 48rem; height: 7rem; min-height: 7rem; }
fieldset { margin: 1rem 0; border: 1px solid var(--line); border-radius: .3rem; }
.choice { font-weight: 400; }
.choice input { display: inline; width: auto; margin: 0 .35rem 0 0; }
.conversation { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.message { max-width: 85%; padding: .85rem 1rem; border-radius: 1rem; }
.message-provider { align-self: flex-start; background: #e4f4e7; border-bottom-left-radius: .2rem; }
.message-client { align-self: flex-end; background: #e5f0fb; border-bottom-right-radius: .2rem; }
.message p { margin: 0 0 .5rem; }
.message-author, .message time { color: #40505d; font-size: .85rem; font-weight: 700; }
.message time { display: block; font-weight: 400; }
.statement-scroll { overflow-x: auto; }
.statement { border-collapse: collapse; min-width: 44rem; width: 100%; }
.statement th, .statement td { border-bottom: 1px solid var(--line); padding: .65rem; text-align: left; vertical-align: top; }
.statement tfoot th { border-top: 2px solid var(--ink); }
.notice, .error { padding: .85rem 1rem; border-radius: .3rem; }
.notice { background: #e8f5ec; color: #124d2a; }
.error { background: #fbeaea; color: #7a1616; }
code { overflow-wrap: anywhere; }
.section { padding: 2rem 0; }
.section-muted { background: var(--muted); }
.steps { display: flex; justify-content: space-between; gap: .25rem; list-style: none; margin: 1.5rem 0; padding: 0; }
.steps li { display: grid; flex: 1; gap: .35rem; justify-items: center; position: relative; text-align: center; font-size: .8rem; }
.steps li:not(:last-child)::after { background: var(--line); content: ""; height: 2px; left: calc(50% + 1rem); position: absolute; right: calc(-50% + 1rem); top: 1rem; }
.step-dot { display: grid; width: 2rem; height: 2rem; place-items: center; position: relative; z-index: 1; border: 2px solid var(--brand); border-radius: 50%; background: #fff; color: var(--brand-dark); font-weight: 700; }
.steps .complete .step-dot { background: var(--brand); color: #fff; }
.site-footer { padding: 2rem 0; background: var(--ink); color: #fff; }
.site-footer div { width: min(100% - 2rem, 70rem); margin: auto; }
.letter-composer { max-width: 52rem; }
.letter-editor { margin-top: 1.5rem; }
.letter-editor-case { color: #40505d; margin-top: 0; }
.letter-editor .button + .button { margin-left: .5rem; }
.letter-save-note { color: #40505d; font-size: .9rem; }
.letter-paper { max-width: 210mm; margin: 2rem auto 0; padding: 18mm; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 22px rgb(23 32 51 / 7%); }
.letterhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-top: 8mm; padding-bottom: 1.25rem; border-bottom: 3px solid var(--gold); }
.letterhead p { margin: 0 0 .15rem; }
.letterhead strong, .letterhead span { display: block; }
.letterhead-label { color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.letterhead-brand { display: grid; gap: .35rem; justify-items: end; color: var(--brand-dark); font-weight: 700; text-align: right; }
.letterhead-brand img { max-width: 10rem; max-height: 2rem; object-fit: contain; }
.letter-document { max-width: 40rem; margin: 2.5rem auto 0; }
.letter-date { text-align: right; }
.letter-recipient { min-height: 5rem; white-space: normal; }
.letter-document h1 { font-size: 1.45rem; margin: 2rem 0 1.25rem; }
.letter-body { min-height: 14rem; overflow-wrap: break-word; }
.letter-status { margin-top: 3rem; color: #40505d; font-size: .85rem; }
.letter-actions { text-align: center; }
.letter-footer { border-top: 1px solid var(--line); color: #40505d; font-size: .8rem; margin-top: 2rem; padding-top: .75rem; }
.inline-form { display: inline; margin-left: .5rem; }
.text-button { appearance: none; background: none; border: 0; color: var(--brand-dark); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.compact-list { margin-top: 0; padding-left: 1.25rem; }
.compliance-evidence-card { min-height: 0; }
.compliance-evidence-card form label { font-size: .9rem; }
.compliance-detail { overflow-wrap: anywhere; }
.compliance-data { display: grid; gap: .35rem 1rem; grid-template-columns: minmax(9rem, .35fr) 1fr; }
.compliance-data dt { font-weight: 700; }
.compliance-data dd { margin: 0; }
.password-strength { color: #40505d; font-size: .9rem; }
.password-strength-good { color: #124d2a; font-weight: 700; }
@media print {
    @page { size: A4; margin: 15mm; }
    body { background: #fff; font-size: 11pt; }
    .site-header, .site-footer, .screen-only { display: none !important; }
    main { width: auto; margin: 0; }
    .letter-view { padding: 0; }
    .letter-paper { width: auto; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
    .letterhead { margin-top: 0; }
    .letter-footer { margin-top: 1.5rem; }
    .letter-document { max-width: none; }
    .letter-status { display: none; }
    .audit-print { padding: 0; }
    .audit-paper { border: 0; box-shadow: none; margin: 0; max-width: none; padding: 0; }
}
@media (min-width: 48rem) {
    .hero-grid { grid-template-columns: 1.35fr .65fr; }
}
