/* ============================================================
   ReInovate — kommer snart
   Værdierne følger designet 1:1; brandmanual v1.0 for farver og type.
   ============================================================ */

:root {
  --navy:       #2C3E50;
  --apricot:    #FFC37D;
  --sage:       #627D74;

  --on-dark:    #c3cedb;
  --on-dark-2:  #e6ecf1;
  --muted:      #7d8ea0;
  --muted-2:    #8a99a9;
  --label:      #95A5A6;
  --error-text: #E8A79E;

  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--navy);
  font-family: var(--sans);
  color: var(--on-dark);
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

/* ============================================================
   Sidens ramme
   ============================================================ */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 195, 125, .10), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(98, 125, 116, .28), transparent 50%);
  pointer-events: none;
}

/* ---------- Topbar ---------- */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 40px;
}

.wordmark {
  font: 700 48px/1 var(--sans);
  letter-spacing: -.03em;
  color: #fff;
  white-space: nowrap;
}
.wordmark-i { color: var(--apricot); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.eyebrow {
  font: 600 11px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--apricot);
  background: rgba(255, 195, 125, .12);
  border: 1px solid rgba(255, 195, 125, .35);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 26px;
}

.hero-title {
  max-width: 880px;
  font: 800 clamp(34px, 5.5vw, 58px)/1.1 var(--sans);
  letter-spacing: -.02em;
  color: #fff;
}
.hero-title .accent { color: var(--apricot); }

.hero-lead {
  margin-top: 20px;
  max-width: 520px;
  font: 400 16px/1.6 var(--sans);
  color: var(--on-dark);
}

.hero-cta { margin-top: 38px; }

.hero-note {
  margin-top: 16px;
  font: 400 13px/1.4 var(--sans);
  color: var(--muted);
}

.link-more {
  margin-top: 44px;
  cursor: pointer;
  color: var(--on-dark);
  font: 600 13px/1 var(--sans);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding: 0 0 4px;
  transition: color .15s ease, border-color .15s ease;
}
.link-more:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .55);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-copy {
  font: 500 11.5px/1 var(--sans);
  color: var(--muted);
}
.footer-link {
  font: 600 11.5px/1 var(--sans);
  color: var(--on-dark);
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

/* ============================================================
   Knapper
   ============================================================ */

.btn-primary {
  cursor: pointer;
  background: var(--apricot);
  color: var(--navy);
  padding: 17px 34px;
  border: 0;
  border-radius: 10px;
  font: 700 16px/1 var(--sans);
  transition: background .15s ease, transform .12s ease;
}
.btn-primary:hover { background: #ffcf95; }
.btn-primary:active { transform: translateY(1px); }

.btn-sm {
  display: inline-block;
  margin-top: 22px;
  padding: 11px 22px;
  border-radius: 9px;
  font: 700 13px/1 var(--sans);
}

.btn-block {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding: 14px;
  border-radius: 9px;
  font: 700 16px/1 var(--sans);
}

/* Knappen er dæmpet indtil e-mailen ser gyldig ud — som i designet. */
.btn-submit {
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  padding: 15px;
  border: 0;
  border-radius: 9px;
  font: 700 16px/1 var(--sans);
  transition: background .15s ease, color .15s ease;
}
.btn-submit.is-ready {
  background: var(--apricot);
  color: var(--navy);
}
.btn-submit.is-ready:hover { background: #ffcf95; }
.btn-submit:disabled { cursor: progress; opacity: .75; }

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

/* ============================================================
   Modaler
   ============================================================ */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 36, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
  overflow-y: auto;
}
.overlay[hidden] { display: none; }

.modal {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 36px;
  max-width: 560px;
  width: 100%;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  position: relative;
  overflow: hidden;
  margin: auto;
}
.modal-wide { max-width: 560px; }

.modal-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(255, 195, 125, .10), transparent 45%);
  pointer-events: none;
}

.modal > *:not(.modal-glow) { position: relative; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.modal-title {
  font: 700 22px/1.25 var(--sans);
  color: #fff;
}

.modal-close {
  cursor: pointer;
  color: var(--muted-2);
  font: 600 16px/1 var(--sans);
  background: none;
  border: 0;
  padding: 4px;
  transition: color .15s ease;
}
.modal-close:hover { color: #fff; }

.modal-intro {
  margin-bottom: 20px;
  font: 400 15.5px/1.6 var(--sans);
  color: var(--on-dark);
}

/* ---------- Kvittering ---------- */
.modal-done {
  text-align: center;
  padding: 20px 0;
}
.modal-done[hidden] { display: none; }

.done-title {
  font: 700 22px/1.3 var(--sans);
  color: #fff;
}
.done-text {
  margin-top: 12px;
  font: 400 15.5px/1.6 var(--sans);
  color: var(--on-dark);
}
.done-email {
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Felter ---------- */
.modal-form[hidden] { display: none; }

.field-label {
  font: 600 13px/1 var(--sans);
  color: var(--label);
  letter-spacing: .02em;
  display: block;
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  font: 400 15.5px/1.3 var(--sans);
  color: #fff;
  outline: none;
  margin-bottom: 18px;
  transition: border-color .15s ease, background .15s ease;
}
.text-input::placeholder { color: var(--muted); }
.text-input:hover { border-color: rgba(255, 255, 255, .3); }
.text-input:focus {
  border-color: var(--apricot);
  background: rgba(255, 255, 255, .1);
}
.text-input.is-error { border-color: var(--error-text); }

.choices {
  border: 0;
  margin-bottom: 22px;
}

.choices-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font: 600 11px/1 var(--sans);
  color: var(--label);
  letter-spacing: .02em;
}

.badge-optional {
  font: 700 10px/1 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--on-dark);
  background: rgba(255, 255, 255, .08);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.choices-hint {
  font: 600 11px/1 var(--sans);
  color: var(--label);
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.choice-box {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--apricot);
  cursor: pointer;
}

.choice-label {
  font: 500 15.5px/1.45 var(--sans);
  color: var(--on-dark-2);
}

.form-error {
  margin-top: 10px;
  font: 600 13.5px/1.4 var(--sans);
  color: var(--error-text);
}
.form-error:empty { display: none; }

/* Honeypot — skjult uden display:none, så bots stadig ser feltet. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Faneblade ---------- */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  margin-bottom: 18px;
}

.tab {
  cursor: pointer;
  padding: 9px 5px;
  font: 600 15.5px/1.3 var(--sans);
  color: var(--muted-2);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--on-dark); }
.tab.is-active {
  font-weight: 700;
  color: var(--apricot);
  border-bottom-color: var(--apricot);
}

.info-text {
  font: 400 16.5px/1.75 var(--sans);
  color: var(--on-dark);
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.modal-wide > .info-text { margin-bottom: 18px; }

.info-panel {
  font-size: 16px;
}
.info-panel[hidden] { display: none; }
.info-panel + .info-panel { margin-top: 14px; }

/* ============================================================
   Responsivt
   ============================================================ */

@media (max-width: 640px) {
  .topbar { padding: 22px 20px; }
  .wordmark { font-size: 34px; }

  .hero { padding: 32px 20px 48px; }
  .hero-cta { padding: 16px 30px; }

  .footer { padding: 20px; gap: 18px; }

  .modal { padding: 26px 22px; border-radius: 14px; }
  .overlay { padding: 14px; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .btn-primary:active { transform: none; }
}
