/* Design tokens mirrored from the tc-approval /approve page so both
   customer-facing pages read as one family (samtykke is DK-only → the
   default blue brand). */
:root {
  color-scheme: light;
  --font-sans:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --radius-1: 10px;
  --radius-2: 14px;
  --shadow-2: 0 8px 30px rgba(15, 23, 42, 0.12);
  --color-text: #0b1220;
  --color-text-muted: #475569;
  --color-border: #d6dce5;
  --color-primary: #1d4ed8;
  --color-primary-hover: #1e40af;
  --color-on-primary: #ffffff;
  --color-success-bg: #dcfce7;
  --color-success-border: #86efac;
  --color-success-text: #166534;
  /* MitID brand blue, sampled from MitID's own white-on-blue logo asset. */
  --color-mitid: #2b63df;
  --color-mitid-hover: #2350bb;
  --color-danger: #ef4444;
  --app-bg: #f8fafc;
  --card-bg: #ffffff;
  --card-bg-2: #f1f5f9;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--app-bg);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
.top-banners {
  position: sticky;
  top: 0;
  z-index: 2;
}
.banner {
  margin: 0;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.demo {
  background: #7c2d12;
  color: white;
}
main {
  width: min(780px, calc(100% - 2rem));
  margin: 2.5rem auto;
  padding: 40px 32px;
  background: var(--card-bg);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-2);
}
.page-logo {
  display: block;
  max-width: 200px;
  margin-bottom: 24px;
}
h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
h2 {
  font-size: 15px;
  font-weight: 700;
}
p,
li {
  line-height: 1.6;
}
.lead {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.assembled {
  margin: 24px 0;
  padding: 20px;
  background: var(--card-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-1);
  font-size: 14px;
}
.assembled section + section {
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
  padding-top: 12px;
}
.actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}
.consent-checkbox input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-1);
  padding: 12px 28px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.primary {
  color: var(--color-on-primary);
  background: var(--color-primary);
}
.primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
}
.fine-print {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.meta {
  margin: 0 0 1rem;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--color-success-border);
  border-radius: 999px;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.date-pill svg {
  width: 0.875em;
  height: 0.875em;
  flex: none;
}

.contact-info {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--card-bg-2);
  border-radius: var(--radius-1);
  font-size: 14px;
  line-height: 1.6;
}
.next-step {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--card-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-1);
}
.next-step h2 {
  margin: 0 0 8px;
}
.pensure-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-1);
  background: var(--color-mitid);
  color: var(--color-on-primary);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}
.pensure-button:hover {
  background: var(--color-mitid-hover);
}
.pensure-button:focus-visible {
  outline-color: var(--color-text);
}
.pensure-button img {
  width: 76px;
  height: 20px;
  flex: 0 0 auto;
}
.action-error {
  min-height: 1.4rem;
  color: var(--color-danger);
  font-weight: 600;
  font-size: 14px;
}
.demo-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
  font-size: 14px;
}
.demo-list a {
  color: var(--color-primary);
  font-weight: 600;
}
.loading {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
}
/* Status page: the approved consent page with the signing list. */
.status-summary {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
}
.status-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-1);
  background: var(--color-surface-muted, #f3f4f8);
  font-size: 15px;
}
.status-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--color-success-border);
  border-radius: var(--radius-1);
  background: var(--color-success-bg);
  color: var(--color-success-text);
  font-weight: 600;
}
.status-group {
  margin-top: 24px;
}
.status-group-label {
  margin: 0 0 10px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}
.partner-logo {
  display: block;
  width: 120px;
  height: auto;
}

/* The DFJ mark is wider and flatter than Incentro's: same visual weight. */
.group-logo.dfj-logo {
  display: block;
  width: 150px;
  height: auto;
}

.status-sub {
  padding: 8px 16px 4px;
  border-top: 1px solid var(--color-border);
  background: var(--card-bg-2);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
}
.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-1);
}
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.status-row + .status-row {
  border-top: 1px solid var(--color-border);
}
.status-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.status-icon svg {
  width: 14px;
  height: 14px;
}
.status-done .status-icon {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}
.status-pending .status-icon {
  border: 2px solid var(--color-mitid);
}
.status-wait .status-icon {
  border: 2px dashed var(--color-text-muted);
}
.status-failed .status-icon {
  background: var(--card-bg-2);
  color: var(--color-text-muted);
}
.status-busy .status-icon {
  border: 2px solid var(--color-border);
  border-top-color: var(--color-mitid);
  animation: status-spin 0.9s linear infinite;
}
@keyframes status-spin {
  to {
    transform: rotate(360deg);
  }
}
.status-text {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.status-title {
  font-weight: 600;
}
.status-line {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.sign-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-1);
  background: var(--color-mitid);
  color: var(--color-on-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.sign-button:hover {
  background: var(--color-mitid-hover);
}
.sign-button:focus-visible {
  outline-color: var(--color-text);
}
.status-group .next-step {
  margin-top: 12px;
}
/* The Pensure step while the power of attorney comes first: no link yet. */
.next-step-locked {
  background: transparent;
  border-style: dashed;
  color: var(--color-text-muted);
}
.status-foot {
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
}
@media (max-width: 520px) {
  main {
    width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: calc(100vh - 4rem);
    padding: 24px 20px;
  }
  .pensure-button {
    width: 100%;
    padding-inline: 12px;
  }
  .status-row {
    flex-wrap: wrap;
  }
  .sign-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .status-busy .status-icon {
    animation: none;
  }
}

.status-fee {
  font-weight: 400;
  color: var(--color-text-muted);
}
