/*
  Produkttjek — launch-side
  Farver og typografi følger "ProduktTjek Brand og Design Manual 1.0".
  Semantiske farver og spacing følger Masterplan 0.6 (Design og Skærmkatalog).
*/

:root {
  /* Brand — låst i brandmanualen */
  --navy: #071A3D;
  --navy-deep: #04122B;
  --navy-soft: #1B3459;
  --gold: #D3A028;
  --creme: #FBF8F1;
  --sand: #F4EEE3;

  /* Semantisk */
  --text: #17212B;
  --text-secondary: #56616C;
  --surface: #FFFFFF;
  --border: #D9DEE3;
  --error: #B42318;
  --success: #2E7D5B;

  /* Spacing — 4px basisenhed */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-pill: 999px;

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --container: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--creme);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--navy); letter-spacing: -0.015em; }
p { margin: 0; }

a { color: var(--navy); }
a:hover { color: var(--navy-soft); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 100;
  border-radius: 0 0 var(--radius-control) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}

.logo img { width: 200px; height: auto; }

.header-status {
  display: inline-block;
  padding: 6px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: #6B4E0F;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--creme) 100%);
  padding-block: var(--space-16) var(--space-12);
}

.hero-inner { max-width: 720px; margin-inline: auto; text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: clamp(38px, 7.5vw, 60px);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-secondary);
  max-width: 34em;
  margin-inline: auto;
}

/* ---------- Tilmelding ---------- */

.signup-card {
  margin-top: var(--space-12);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  text-align: left;
  box-shadow: 0 1px 2px rgba(7, 26, 61, 0.05);
}

.signup-card h2 { font-size: 24px; margin-bottom: var(--space-2); }

.signup-text { color: var(--text-secondary); margin-bottom: var(--space-6); }

.signup-form {
  display: flex;
  gap: var(--space-3);
  align-items: flex-end;
  flex-wrap: wrap;
}

.field { flex: 1 1 260px; min-width: 0; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: var(--space-2);
}

.field input {
  width: 100%;
  height: 52px;
  padding-inline: var(--space-4);
  font-family: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

.field input::placeholder { color: #8A939C; }

.field input:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

.field-error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: var(--space-2);
  color: var(--error);
  font-size: 15px;
  font-weight: 500;
}
.field-error::before { content: "⚠"; }

/*
  En eksplicit display-værdi vinder over HTML's hidden-attribut, så
  feltet skal skjules igen her. Uden denne linje står advarselsikonet
  og lyser, før brugeren har gjort noget forkert.
*/
[hidden] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding-inline: var(--space-6);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }

.btn-lg { min-height: 56px; font-size: 18px; padding-inline: var(--space-8); }

.signup-help,
.signup-fallback {
  margin-top: var(--space-4);
  font-size: 15px;
  color: var(--text-secondary);
}

.signup-status {
  display: none;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-control);
  background: #EFF6F2;
  border: 1px solid #BFD9CD;
  color: #1E5540;
  font-weight: 500;
}
.signup-status[data-visible="true"] { display: flex; }
.signup-status::before { content: "✓"; font-weight: 700; color: var(--success); }

/* ---------- Sektioner ---------- */

.section { padding-block: var(--space-16); }

.section-alt { background: var(--sand); }

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: var(--space-8);
}

/* ---------- Trin ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: var(--space-4);
}

.step h3 { font-size: 20px; margin-bottom: var(--space-2); }
.step p { color: var(--text-secondary); }

/* ---------- Tillid ---------- */

.trust {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .trust { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .trust .section-title { margin-bottom: var(--space-6); }
}

.trust-main p { color: var(--text-secondary); max-width: 40em; }
.trust-main p + p { margin-top: var(--space-4); }

.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }

.trust-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-control);
  padding: var(--space-4) var(--space-6);
  color: var(--text-secondary);
}

.trust-list strong { color: var(--navy); }

/* ---------- CTA ---------- */

.cta-section { text-align: center; }
.cta-inner h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: var(--space-3); }
.cta-inner p { color: var(--text-secondary); margin-bottom: var(--space-8); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #C9D3E2;
  padding-block: var(--space-12);
}

.footer-inner { text-align: center; display: grid; gap: var(--space-3); justify-items: center; }
.footer-logo { width: 180px; }
.footer-tagline { color: var(--gold); font-weight: 600; }
.footer-contact a { color: #fff; }
.footer-legal { font-size: 14px; color: #8FA0BC; margin-top: var(--space-4); }

/* ---------- Responsivt ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: var(--space-4); }
  .hero { padding-block: var(--space-12) var(--space-8); }
  .section { padding-block: var(--space-12); }
  .signup-card { padding: var(--space-6); }
  .signup-form { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .logo img { width: 168px; }
}

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