/* Insolvensee: shared stylesheet v2 (Style Guide v0.3; Decision Log D41 to D43; brand pack v1.0).
   Used unchanged by the public site and, later, the app. No inline styles anywhere:
   the Content-Security-Policy allows stylesheets from our own origin only. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
}

/* Tokens: Style Guide section 4 */
:root {
  --bg: #FAF8F4; --surface: #FFFFFF; --surface-2: #EFF1F4;
  --ink: #0F1B2D; --muted: #566176;
  --line: #DCE0E6; --line-strong: #7E8899;
  --error: #9E2A1E;
  --accent: #C2410C; --accent-text: #FFFFFF;
  --font: "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1B2D; --surface: #16243A; --surface-2: #1E2E47;
    --ink: #F1F3F6; --muted: #A7B1C0;
    --line: #2A3A52; --line-strong: #6F7D93;
    --error: #F59B8E;
    --accent: #FB923C; --accent-text: #0F1B2D;
  }
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, table { margin: 0 0 16px; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 4px; }
strong, b { font-weight: 700; }
em { font-style: normal; font-weight: 700; }

/* Type scale: Style Guide 5.2 */
h1, h2, h3 { font-weight: 700; margin: 0 0 12px; }
.display { font-size: 34px; line-height: 1.15; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 22px; line-height: 1.25; margin-top: 32px; }
h3 { font-size: 19px; line-height: 1.3; margin-top: 24px; }
.small, small { font-size: 16px; line-height: 1.5; }
.caption { font-size: 14px; line-height: 1.45; color: var(--muted); }
.kicker { font-size: 13px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.muted { color: var(--muted); }
@media (min-width: 768px) {
  .display { font-size: 48px; line-height: 1.1; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  body { line-height: 1.6; }
}

/* Links and focus: Style Guide 7 */
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 4px; z-index: 10; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout: Style Guide 6 */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 38rem; }
main { display: block; padding: 32px 0 48px; }
@media (min-width: 768px) { main { padding: 48px 0 64px; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Header and wordmark */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.brand { display: inline-block; padding: 10px 0; line-height: 0; }
.brand img { width: 150px; height: auto; }
@media (min-width: 768px) { .brand img { width: 170px; } }
.head-link { font-size: 16px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.site-foot a { color: var(--muted); }
.foot-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links li + li { margin-top: 0; }
.disclosure { max-width: 46rem; margin: 0; }

/* Actions: Style Guide 7, Decision D3 */
.actions { margin: 24px 0 8px; max-width: 26rem; }
.btn {
  display: block; width: 100%; min-height: 48px; padding: 12px 18px;
  font: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none;
  background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent); border-radius: 4px; cursor: pointer;
}
.btn:hover { filter: brightness(0.93); }
.btn:active { filter: brightness(0.86); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.secondary { display: block; text-align: center; margin: 14px 0 0; font-size: 18px; }
@media (min-width: 768px) { .btn { display: inline-block; width: auto; } .secondary { text-align: left; } }

/* Notice panels */
.notice { background: var(--surface-2); border-left: 4px solid var(--ink); border-radius: 4px; padding: 12px 16px; margin: 0 0 16px; }
.notice--error { border-left-color: var(--error); }
.notice > :last-child { margin-bottom: 0; }

/* Forms: Style Guide 7 */
.field { margin: 0 0 20px; max-width: 32rem; }
label, .label { display: block; font-weight: 700; margin: 0 0 4px; }
.hint { display: block; color: var(--muted); font-size: 16px; font-weight: 400; margin: 0 0 6px; }
.error-text { display: block; color: var(--error); font-weight: 700; font-size: 16px; margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], textarea, select {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 18px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 4px;
}
textarea { min-height: 140px; resize: vertical; }
.field--error input, .field--error textarea { border: 2px solid var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.code-input { font-variant-numeric: tabular-nums; letter-spacing: .3em; font-size: 24px; max-width: 12rem; }
.drop { border: 2px dashed var(--line-strong); border-radius: 4px; padding: 20px; background: var(--surface); }

/* Tables: become stacked cards below 768px (Style Guide 6, 7) */
.table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; padding: 8px 12px 8px 0; border-bottom: 2px solid var(--ink); }
.table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 767px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table td { border: 0; padding: 2px 0; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); }
}

/* Status label: text first, never colour alone (WRS WL-02, G1) */
.status { font-size: 16px; }
.status--published { position: relative; padding-left: 12px; font-weight: 700; }
.status--published::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 1px; background: var(--accent); }

/* Alert artefacts: the only images on the site (Style Guide 7, 8) */
.proof { display: grid; gap: 16px; margin: 24px 0; }
@media (min-width: 768px) { .proof { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; } }
.example-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.sms { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.45; }
.sms-from { display: block; font-size: 14px; font-weight: 700; color: var(--accent); margin: 0 0 4px; }
.mail { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; padding: 14px 16px; font-size: 16px; line-height: 1.5; }
.mail-event { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 4px; }
.mail-subject { font-weight: 700; margin: 0 0 8px; }
.mail-head { font-size: 13px; letter-spacing: .06em; font-weight: 700; margin: 12px 0 2px; }
.mail p { margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Definition list for facts (company page) */
.facts-list { margin: 0 0 24px; }
.facts-list dt { font-weight: 700; margin-top: 12px; }
.facts-list dd { margin: 2px 0 0; }
