/*
 * BistroApps visuelle identitet - samme palet og typografi som E-Vagt, så kunden møder
 * det samme produkt hele vejen fra prisside til aktiveringsmail.
 */
:root {
  --midnight: #102b55;
  --midnight-soft: #1c3d6e;
  --lime: #b8e02a;
  --lime-dark: #9ac21c;
  --paper: #ffffff;
  --canvas: #fafbf8;
  --ink: #16233a;
  --slate: #5b6b82;
  --line: #dde3ec;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --ok: #1c7c3f;
  --ok-soft: #e9f6ed;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 43, 85, 0.06), 0 8px 24px rgba(16, 43, 85, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Sidens indhold må aldrig kunne skubbe vandret. */
html,
body {
  overflow-x: hidden;
}

a {
  color: var(--midnight);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  background: var(--midnight);
  color: #fff;
  padding: 16px 0;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--lime);
}

.topbar-note {
  font-size: 13px;
  color: #c8d4e6;
}

/* ---------------------------------------------------------------- hero */

.hero {
  background: var(--midnight);
  color: #fff;
  padding: 40px 0 64px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero p {
  margin: 0;
  max-width: 56ch;
  color: #d5deec;
  font-size: 17px;
}

/* ---------------------------------------------------------------- priskort */

.plans {
  margin-top: -40px;
  padding-bottom: 56px;
}

.plan-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}

.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}

.plan-card.is-popular {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(184, 224, 42, 0.35), var(--shadow);
}

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--lime);
  color: var(--midnight);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.plan-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.plan-price {
  margin: 8px 0 2px;
  font-size: 24px;
  font-weight: 800;
  color: var(--midnight);
}

.plan-note {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--slate);
  min-height: 2.6em;
}

.plan-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  flex: 1;
}

.plan-features li {
  padding-left: 22px;
  position: relative;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 6px;
  border-left: 2.5px solid var(--lime-dark);
  border-bottom: 2.5px solid var(--lime-dark);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- knapper */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--midnight);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  background: var(--midnight-soft);
}

.button-lime {
  background: var(--lime);
  color: var(--midnight);
}

.button-lime:hover {
  background: var(--lime-dark);
}

.button-quiet {
  background: transparent;
  color: var(--midnight);
  border: 1px solid var(--line);
  width: auto;
}

.button-quiet:hover {
  background: #eef2f7;
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Fokus skal altid være tydeligt - også for tastaturbrugere. */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--lime-dark);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- formular */

.order {
  padding: 32px 0 72px;
}

.order-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.order h1 {
  margin: 0 0 4px;
  font-size: 25px;
  letter-spacing: -0.01em;
}

.order .lead {
  margin: 0 0 24px;
  color: var(--slate);
  font-size: 15px;
}

fieldset {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 22px;
  padding: 20px 0 0;
}

fieldset:first-of-type {
  border-top: none;
  padding-top: 0;
}

legend {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0;
  margin-bottom: 12px;
}

.grid-2 {
  display: grid;
  gap: 0 14px;
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate);
}

.field input {
  width: 100%;
  font: inherit;
  /* 16px, så iOS ikke zoomer ind, når feltet får fokus. */
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}

.field input:disabled {
  background: #f4f7fa;
  color: var(--slate);
}

.field .hint {
  font-size: 12.5px;
  color: var(--slate);
}

.field-error {
  font-size: 12.5px;
  color: var(--danger);
  font-weight: 600;
}

.field input[aria-invalid='true'] {
  border-color: var(--danger);
}

/* Honeypot: skjult for mennesker, synlig for naive bots. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
}

.check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------------------------------------------------------------- valgt pakke */

.chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background: #f2f6fb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.chosen-name {
  font-weight: 800;
  font-size: 17px;
}

.chosen-price {
  color: var(--slate);
  font-size: 14px;
}

/* ---------------------------------------------------------------- beskeder */

.status {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.status-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #f3c9c5;
}

.status-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid #c4e6d1;
}

.status-info {
  background: #eef3fa;
  color: var(--midnight);
  border: 1px solid var(--line);
}

.cvr-status {
  font-size: 12.5px;
  color: var(--slate);
  min-height: 1.4em;
}

.cvr-status[data-state='error'] {
  color: var(--danger);
  font-weight: 600;
}

.cvr-status[data-state='ok'] {
  color: var(--ok);
}

/* ---------------------------------------------------------------- kvittering */

.receipt h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.receipt p {
  margin: 0 0 14px;
}

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

footer {
  background: var(--midnight);
  color: #c8d4e6;
  padding: 26px 0;
  font-size: 13.5px;
}

footer a {
  color: #fff;
}

/* ---------------------------------------------------------------- responsivt */

@media (max-width: 620px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .order-card {
    padding: 20px 16px;
  }

  .topbar .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Punktopstilling over hvad der er med i produktet. Bruges på E-APV-bestillingen,
   hvor der ikke er pakker at vælge imellem, og indholdet derfor skal stå direkte. */
.feature-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.feature-list li {
  padding-left: 22px;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #70b800;
  font-weight: 900;
}
