/* ==========================================================================
   RegReady — Compliance Operations Console
   Status-page / incident-response aesthetic
   Fonts loaded via <link rel="stylesheet"> in HTML <head> (no @import — parser-blocking).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens — cool technical palette
   -------------------------------------------------------------------------- */

:root {
  /* surface */
  --bg:           #F2F4F6;
  --surface:      #FFFFFF;
  --surface-2:   #E9ECF1;
  --surface-3:   #DEE2E9;

  /* ink */
  --ink:          #0F1419;
  --ink-soft:    #2E3540;
  --ink-mute:    #6A7280;

  /* lines */
  --line:         #C9CFD9;
  --line-soft:   #DEE2E9;
  --line-strong: #2E3540;

  /* signals */
  --eu:          #1A4FBA;          /* EU flag blue, primary accent */
  --eu-deep:     #143E94;
  --eu-soft:     rgba(26, 79, 186, 0.10);
  --amber:       #D88A1C;          /* warning */
  --amber-soft:  rgba(216, 138, 28, 0.12);
  --critical:    #C62E2E;          /* overdue / error */
  --critical-soft: rgba(198, 46, 46, 0.10);
  --ok:          #0F7B5C;          /* verified / active */
  --ok-soft:     rgba(15, 123, 92, 0.10);

  /* type */
  --display:     'Cabinet Grotesk', 'Söhne Breit', system-ui, sans-serif;
  --sans:        'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:        'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* spacing — 4pt rhythm */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* type scale */
  --t-xs:      11px;
  --t-sm:      13px;
  --t-base:    15px;
  --t-md:      17px;
  --t-lg:      21px;
  --t-xl:      28px;
  --t-2xl:     38px;
  --t-3xl:     56px;
  --t-display: clamp(48px, 9vw, 112px);

  /* layout */
  --grid-max:    1280px;
  --side-margin: clamp(20px, 4vw, 56px);

  /* motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0A0E14;
    --surface:     #11161E;
    --surface-2:   #181E28;
    --surface-3:   #1E2532;
    --ink:         #E5E9EE;
    --ink-soft:    #B5BCC8;
    --ink-mute:    #7A8392;
    --line:        #2A3140;
    --line-soft:   #1B2230;
    --line-strong: #B5BCC8;
    --eu:          #5A8AE8;
    --eu-deep:     #3F6FD0;
    --eu-soft:     rgba(90, 138, 232, 0.14);
    --amber:       #F0B65C;
    --amber-soft:  rgba(240, 182, 92, 0.14);
    --critical:    #E45757;
    --critical-soft: rgba(228, 87, 87, 0.14);
    --ok:          #4DB58F;
    --ok-soft:     rgba(77, 181, 143, 0.14);
  }
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* blueprint grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  opacity: 0.45;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 75%);
}

::selection { background: var(--eu); color: var(--surface); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1 {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

h2 { font-size: var(--t-2xl); font-weight: 700; }
h3 { font-size: var(--t-xl); font-weight: 700; }
h4 { font-size: var(--t-lg); font-weight: 500; }

p {
  margin: 0 0 var(--s-4);
  max-width: 64ch;
}

p.lede {
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}

a {
  color: var(--eu);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 180ms ease, border-color 180ms ease;
}

a:hover { color: var(--eu-deep); }

a:focus-visible {
  outline: 2px solid var(--eu);
  outline-offset: 3px;
  border-radius: 1px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  word-break: break-all;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-7) 0;
}

/* --------------------------------------------------------------------------
   Mono labels (fundamental ops vocabulary)
   -------------------------------------------------------------------------- */

.mono { font-family: var(--mono); }
.serif { font-family: var(--display); }

.label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-block;
}

.label--eu       { color: var(--eu); }
.label--amber    { color: var(--amber); }
.label--critical { color: var(--critical); }
.label--ok       { color: var(--ok); }
.label--ink      { color: var(--ink); }

/* --------------------------------------------------------------------------
   Status badges — bracketed mono
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink-mute);
  border-radius: 0;
  white-space: nowrap;
}

.badge::before { content: '['; opacity: 0.5; }
.badge::after  { content: ']'; opacity: 0.5; }

.badge--eu       { color: var(--eu);       background: var(--eu-soft); }
.badge--amber    { color: var(--amber);    background: var(--amber-soft); }
.badge--critical { color: var(--critical); background: var(--critical-soft); }
.badge--ok       { color: var(--ok);       background: var(--ok-soft); }
.badge--solid    { color: var(--surface); background: var(--ink); border-color: var(--ink); }

.badge .dot {
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}

.badge--live .dot { animation: pulse 1.5s ease-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* --------------------------------------------------------------------------
   Layout shell
   -------------------------------------------------------------------------- */

.shell {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--side-margin);
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Console header
   -------------------------------------------------------------------------- */

.console-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

@media (min-width: 720px) {
  .console-head { grid-template-columns: auto 1fr auto; }
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--t-sm);
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0;
}

.brand:hover { color: var(--eu); }

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--eu);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
}

.console-head__status {
  display: inline-flex;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.10em;
  color: var(--ink-mute);
  text-transform: uppercase;
  align-items: center;
  gap: var(--s-3);
  justify-self: center;
  flex-wrap: wrap;
}

@media (max-width: 719px) {
  .console-head__status > .mono { display: none; }
  .console-head__status { justify-self: end; gap: var(--s-2); }
}

.console-head__nav {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  flex-wrap: wrap;
}

.console-head__nav a {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.console-head__nav a:hover {
  color: var(--eu);
  border-bottom-color: var(--eu);
}

/* --------------------------------------------------------------------------
   Console footer
   -------------------------------------------------------------------------- */

.console-foot {
  margin-top: var(--s-10);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  align-items: center;
}

@media (min-width: 720px) {
  .console-foot { grid-template-columns: auto 1fr auto; }
}

.console-foot a { color: var(--ink-mute); border-bottom-color: var(--line); }
.console-foot a:hover { color: var(--eu); border-bottom-color: var(--eu); }

/* --------------------------------------------------------------------------
   Hero — landing
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding: var(--s-9) 0 var(--s-8);
  align-items: end;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.4fr 1fr;
    padding-top: var(--s-10);
    gap: var(--s-9);
  }
}

.hero__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}

.hero__title {
  font-size: var(--t-display);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-family: var(--display);
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  display: block;
  color: var(--eu);
  font-weight: 800;
}

.hero__lede {
  margin-top: var(--s-5);
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
}

.hero__cta {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* status panel — the right column on landing hero */
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
  position: relative;
}

.panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--surface-2);
}

.panel__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
  font-family: var(--mono);
  font-size: var(--t-sm);
}

.panel__row:last-child { border-bottom: 0; }

.panel__row > .key {
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--t-xs);
}

.panel__row > .val {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  font-family: var(--mono);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: var(--eu);
  color: var(--surface);
  border: 1px solid var(--eu);
  padding: 13px 22px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  min-height: 46px;
  transition: background 180ms var(--ease-out), color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
  border-radius: 0;
}

.btn:hover {
  background: var(--eu-deep);
  border-color: var(--eu-deep);
  color: var(--surface);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }

.btn:focus-visible {
  outline: 2px solid var(--eu);
  outline-offset: 3px;
}

.btn::after {
  content: '→';
  font-family: var(--mono);
  font-size: var(--t-md);
  margin-left: var(--s-1);
  transition: transform 220ms var(--ease-out);
}

.btn:hover::after { transform: translateX(2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.btn--small {
  padding: 11px 16px 10px;
  font-size: var(--t-xs);
  min-height: 44px;
}

button.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Section pattern — operations grid
   -------------------------------------------------------------------------- */

.section {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 960px) {
  .section { grid-template-columns: 220px 1fr; gap: var(--s-7); }
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.section__seq {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--eu);
}

.section__title {
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.section__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.section__body p { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Numbered ops list
   -------------------------------------------------------------------------- */

.ops-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ops-list > li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-soft);
}

.ops-list > li:last-child { border-bottom: 0; }

.ops-list__seq {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--eu);
  padding-top: 4px;
}

.ops-list__title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-md);
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.ops-list__desc {
  color: var(--ink-soft);
  font-size: var(--t-sm);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Regulation grid
   -------------------------------------------------------------------------- */

.reg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

@media (min-width: 720px) { .reg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .reg-grid { grid-template-columns: repeat(6, 1fr); } }

.reg-tag {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--s-4);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.reg-tag:last-child { border-right: 0; }

.reg-tag__code {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--eu);
}

.reg-tag__name {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.reg-tag__source {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Stepper / form
   -------------------------------------------------------------------------- */

.stepper {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  margin-bottom: var(--s-5);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stepper__items {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.stepper__step {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 2px 6px;
  color: var(--ink-mute);
  border: 1px solid transparent;
}

.stepper__step.is-current {
  color: var(--eu);
  border-color: var(--eu);
  background: var(--eu-soft);
}

.stepper__sep { color: var(--line); }

.q {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .q { grid-template-columns: 80px 1fr; gap: var(--s-5); }
}

.q__num {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--eu);
  align-self: start;
  padding-top: 6px;
}

.q__legend {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--s-2);
  letter-spacing: -0.02em;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.q__hint {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
}

.q__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.q__options > label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: 13px var(--s-4);
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  min-height: 48px;
  transition: background 160ms ease;
  font-size: var(--t-base);
  color: var(--ink);
}

.q__options > label:last-child { border-bottom: 0; }
.q__options > label:hover { background: var(--surface-2); }

.q__options > label:focus-within {
  outline: 2px solid var(--eu);
  outline-offset: -2px;
  background: var(--eu-soft);
}

.q__options input[type="radio"],
.q__options input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink-mute);
  border-radius: 0;
  display: inline-grid;
  place-content: center;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 180ms ease, background 180ms ease;
}

.q__options input[type="radio"] { border-radius: 50%; }

.q__options input[type="radio"]::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  transform: scale(0);
  transition: transform 180ms var(--ease-out);
}

.q__options input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--surface);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 180ms var(--ease-out);
}

.q__options input:checked {
  border-color: var(--eu);
  background: var(--eu);
}
.q__options input:checked::before { transform: scale(1); }

.q__options label:has(input:checked) { background: var(--eu-soft); }

.q__options .opt-detail {
  color: var(--ink-mute);
  font-size: var(--t-xs);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  display: none;
  text-transform: uppercase;
}

@media (min-width: 720px) { .q__options .opt-detail { display: inline; } }

.q__field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  background: var(--surface);
}

.q__field input[type="email"],
.q__field select {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  padding: 8px 0;
  min-height: 32px;
  outline: none;
  width: 100%;
}

.q__field input[type="email"]::placeholder { color: var(--ink-mute); }

.q__field:focus-within {
  border-color: var(--eu);
  box-shadow: inset 0 0 0 1px var(--eu);
}

.q__field-label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding-right: var(--s-3);
}

.q__submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--s-7) 0 var(--s-3);
  border-top: 1px solid var(--line-strong);
}

.q__submit-row p {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin: 0;
  max-width: 40ch;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Result panel
   -------------------------------------------------------------------------- */

.result {
  margin-top: var(--s-7);
  border: 1px solid var(--ok);
  background: var(--surface);
  display: none;
}

.result.is-active { display: block; }

.result__header {
  background: var(--ok);
  color: var(--surface);
  padding: var(--s-3) var(--s-4);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.result__body {
  padding: var(--s-5);
}

.result__body h2 {
  font-size: var(--t-xl);
  margin: 0 0 var(--s-3);
}

.result__regs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-3) 0;
}

.result__url {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: var(--s-3);
  word-break: break-all;
  margin: var(--s-3) 0;
  color: var(--ink);
}

.result__error {
  color: var(--critical);
  font-family: var(--mono);
  font-size: var(--t-sm);
  padding: var(--s-3);
}

/* --------------------------------------------------------------------------
   Incident dashboard
   -------------------------------------------------------------------------- */

.incident-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: var(--s-5) 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

@media (min-width: 720px) {
  .incident-bar { grid-template-columns: repeat(4, 1fr); }
}

.incident-bar__cell {
  padding: var(--s-3) var(--s-4);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 720px) {
  .incident-bar__cell { border-bottom: 0; }
  .incident-bar__cell:last-child { border-right: 0; }
}

.incident-bar__cell .label { display: block; margin-bottom: 4px; font-size: 10px; }
.incident-bar__cell strong {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: block;
}

.incident-bar__cell .mono-val {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--t-sm);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.timers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin: var(--s-7) 0;
}

@media (min-width: 1000px) {
  .timers { grid-template-columns: repeat(3, 1fr); }
}

.timer-card {
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
}

.timer-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.timer-card__stage {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}

.timer-card__body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}

.timer-card__title {
  font-family: var(--display);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.timer-card__count {
  font-family: var(--mono);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.timer-card__count.is-overdue {
  color: var(--critical);
  background: var(--critical-soft);
  margin: 0 calc(-1 * var(--s-5));
  padding: var(--s-3) var(--s-5);
}

.timer-card__count.is-warning {
  color: var(--amber);
}

.timer-card__desc {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin: 0;
}

.timer-card__action { margin-top: auto; padding-top: var(--s-3); }

.timer-card__output {
  font-family: var(--mono);
  font-size: var(--t-sm);
  line-height: 1.55;
  white-space: pre-wrap;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: var(--s-4) var(--s-5);
  max-height: 320px;
  overflow-y: auto;
  color: var(--ink-soft);
  margin: var(--s-3) calc(-1 * var(--s-5)) calc(-1 * var(--s-5));
}

.timer-card__output:empty { display: none; }

/* --------------------------------------------------------------------------
   Tariff table
   -------------------------------------------------------------------------- */

.tariff {
  border: 1px solid var(--line);
  background: var(--surface);
  margin: var(--s-7) 0;
  overflow-x: auto;
}

.tariff__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) { .tariff__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tariff__grid { grid-template-columns: repeat(4, 1fr); } }

.tier {
  padding: var(--s-5);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  background: var(--surface);
}

@media (min-width: 1000px) {
  .tier:nth-child(4n) { border-right: 0; }
}

.tier--feature {
  background: var(--ink);
  color: var(--surface);
}

.tier--feature .tier__name,
.tier--feature .tier__price-num,
.tier--feature .tier__features li { color: var(--surface); }

.tier--feature .tier__price-curr,
.tier--feature .tier__per { color: var(--surface); opacity: 0.55; }

.tier--feature .tier__features li::before { color: var(--amber); }

.tier__pin {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
}

.tier__name {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: var(--s-2) 0;
}
.tier__price-curr {
  font-family: var(--display);
  font-size: var(--t-md);
  color: var(--ink-mute);
  font-weight: 500;
}
.tier__price-num {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.tier__per {
  font-family: var(--mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-mute);
  margin-left: var(--s-2);
}

.tier__features {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.tier__features li {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  padding-left: var(--s-4);
  position: relative;
  line-height: 1.45;
}

.tier__features li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--eu);
  font-family: var(--mono);
  font-weight: 700;
}

.tier--feature .tier__features li {
  color: var(--surface);
  opacity: 0.85;
}

.tier__cta { margin-top: auto; }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

.fade-up { animation: fade-up 600ms var(--ease-out) both; }

.stagger > * {
  opacity: 0;
  animation: fade-up 600ms var(--ease-out) both;
}

.stagger > *:nth-child(1) { animation-delay: 50ms; }
.stagger > *:nth-child(2) { animation-delay: 130ms; }
.stagger > *:nth-child(3) { animation-delay: 210ms; }
.stagger > *:nth-child(4) { animation-delay: 290ms; }
.stagger > *:nth-child(5) { animation-delay: 370ms; }
.stagger > *:nth-child(6) { animation-delay: 450ms; }
/* Reset: any 7th+ child gets no delay so it doesn't stay at opacity:0 forever */
.stagger > *:nth-child(n+7) { animation-delay: 530ms; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.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;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--surface);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  z-index: 100;
}
.skip:focus { left: 8px; }

.muted { color: var(--ink-mute); }
.center { text-align: center; }

/* --------------------------------------------------------------------------
   Animation polish — operations-console feel
   Mechanical, quick (100–280ms), state-conveying. Reduced-motion blanket
   reset above already kills all of these in <1ms.
   -------------------------------------------------------------------------- */

/* Buttons: refine press feedback. Existing translate(-1,-1)+shadow stays;
   add a 50ms acceleration into the press for a more tactile click. */
.btn { transition: background 180ms var(--ease-out), color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out); }

/* Brand mark: tiny scale on hover so the header has a focal pulse. */
.brand__mark { transition: background 200ms var(--ease-out), transform 200ms var(--ease-out); }
.brand:hover .brand__mark { transform: scale(1.06); }

/* Nav links: sweep underline from left instead of fading both ends. */
.console-head__nav a {
  position: relative;
}
.console-head__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: auto;
  bottom: -3px;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 220ms var(--ease-out);
}
.console-head__nav a:hover::after,
.console-head__nav a:focus-visible::after { width: 100%; }
.console-head__nav a { border-bottom: 0; }
.console-head__nav a:hover { border-bottom: 0; }

/* Reg-tag cards: hover lift + EU-blue border accent. Each card communicates
   "this regulation is selectable" without being decorative. */
.reg-tag {
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 220ms var(--ease-out);
  cursor: default;
}
.reg-tag:hover {
  background: var(--eu-soft);
  transform: translateY(-2px);
}

/* Tier cards: hover lift + faint shadow. Scoped to non-feature so the inverted
   Pro tile stays static (its emphasis comes from the inversion, not a hover). */
.tier {
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.tier:not(.tier--feature):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.06);
  position: relative;
  z-index: 1;
}

/* Result panel: fade + slide-up when .is-active is added by wizard.js. */
.result {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.result.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Timer overdue state: instead of an instant colour swap, smooth-transition
   the wash. Keeps the eye locked on the number while the alarm asserts. */
.timer-card__count {
  transition: color 240ms var(--ease-out), background 240ms var(--ease-out), padding 240ms var(--ease-out);
}

/* Severity / overdue badge intensity: when the badge is critical and within
   a timer card, give it a subtle attention pulse. */
.timer-card__count.is-overdue {
  animation: overdue-pulse 1.4s ease-in-out infinite;
}
@keyframes overdue-pulse {
  0%, 100% { background: var(--critical-soft); }
  50%      { background: rgba(198, 46, 46, 0.18); }
}

/* Loading shimmer — used by wizard.js for the "Generating…" message. */
.is-loading {
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    var(--surface-3) 50%,
    var(--surface-2) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  color: transparent !important;
  border-radius: 2px;
}
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Form options: refine the hover (already there) with a border-left accent
   that slides in. Communicates "selectable row" without bg flicker. */
.q__options > label {
  position: relative;
  transition: background 160ms var(--ease-out), padding-left 200ms var(--ease-out);
}
.q__options > label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--eu);
  transition: width 200ms var(--ease-out);
}
.q__options > label:hover::before { width: 3px; }
.q__options > label:has(input:checked)::before { width: 3px; }
.q__options > label:hover { padding-left: calc(var(--s-4) + 6px); }
.q__options > label:has(input:checked) { padding-left: calc(var(--s-4) + 6px); }

/* Field focus: animate the box-shadow ring rather than snap. */
.q__field {
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

/* Stepper: gentle entry stagger when page loads. Each step appears slightly
   after the previous, mimicking a console booting up its progress bar. */
.stepper__step {
  opacity: 0;
  animation: step-in 320ms var(--ease-out) both;
}
.stepper__step:nth-child(1) { animation-delay: 50ms; }
.stepper__step:nth-child(3) { animation-delay: 100ms; }
.stepper__step:nth-child(5) { animation-delay: 150ms; }
.stepper__step:nth-child(7) { animation-delay: 200ms; }
.stepper__step:nth-child(9) { animation-delay: 250ms; }
.stepper__step:nth-child(11) { animation-delay: 300ms; }
.stepper__step:nth-child(13) { animation-delay: 350ms; }
.stepper__step:nth-child(15) { animation-delay: 400ms; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sequence numbers in section headers: subtle dim-on-hover so they feel
   responsive when navigating, without becoming a primary affordance. */
.section__seq { transition: color 180ms var(--ease-out); }
.section:hover .section__seq { color: var(--eu); }

/* Page panel rows in the hero status: gentle stagger on first paint. */
.panel .panel__row {
  opacity: 0;
  animation: row-in 380ms var(--ease-out) both;
}
.panel .panel__row:nth-child(2) { animation-delay: 60ms; }
.panel .panel__row:nth-child(3) { animation-delay: 110ms; }
.panel .panel__row:nth-child(4) { animation-delay: 160ms; }
.panel .panel__row:nth-child(5) { animation-delay: 210ms; }
.panel .panel__row:nth-child(6) { animation-delay: 260ms; }
.panel .panel__row:nth-child(7) { animation-delay: 310ms; }
.panel .panel__row:nth-child(8) { animation-delay: 360ms; }
@keyframes row-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Reduce stagger to 0ms when entering reduced-motion (already covered by the
   global blanket but explicit is safer in case a tool reads only this rule). */
@media (prefers-reduced-motion: reduce) {
  .stepper__step,
  .panel .panel__row,
  .stagger > * {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .timer-card__count.is-overdue { animation: none !important; }
}
