/* ==========================================================================
   Easyform — statisk site
   ========================================================================== */

/* --- Fonts (self-hosted Roboto variable) --------------------------------- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --purple: #3c32ad;
  --purple-dark: #342b9e;
  --purple-light: #ecebf7;
  --ink: #201f1f;
  --body: #3a3a3a;
  --muted: #808080;
  --grey-bg: #f6f6f6;
  --border: #eaeaea;

  --container: 1268px;
  --header-h: 90px;
  --radius: 8px;

  --hero-bg: linear-gradient(150deg, #f3f3fa 0%, #e9e8f4 45%, #d9d8ec 100%);
  --price-bg: linear-gradient(135deg, #f5f5f9 0%, #eceef4 50%, #e0e2ee 100%);
}

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

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

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

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

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

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

button { font: inherit; }

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

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* --- Layout -------------------------------------------------------------- */
/* Headeren er fixed, så indholdet skydes ned — undtagen hero'en, der trækkes
   op under headeren, så gradienten går helt til toppen. */
.page {
  background: #fff;
  padding-top: var(--header-h);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }

/* Så et direkte hash-hop (fx /#kontakt) ikke lander under den faste header */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--dark { background: #1c1b1b; color: #fff; }
.btn--dark:hover { background: #000; }

.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-dark); }

/* ==========================================================================
   Header
   ========================================================================== */
/* Transparent over hero'en, hvid så snart der scrolles.
   Kun background/shadow ændrer sig — geometrien er identisk i begge tilstande,
   så logo og menu ikke flytter sig ved skiftet. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-stuck,
.site-header.is-open {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 24px rgba(32, 31, 31, 0.06);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-h);
}

.site-header__logo { display: inline-flex; }
.site-header__logo img { width: 205px; height: auto; }

.nav { justify-self: end; }
.nav ul {
  display: flex;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.nav a:hover { color: var(--purple); }

.nav-toggle {
  justify-self: end;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--hero-bg);
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + 110px) 100px;
  text-align: center;
}

.hero h1 {
  max-width: 940px;
  margin-inline: auto;
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 700;
}

.hero__lead {
  max-width: 44ch;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.hero__video {
  max-width: 890px;
  margin: 82px auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7fb;
  box-shadow: 0 30px 70px rgba(32, 31, 31, 0.22);
}
.hero__video video { width: 100%; }

/* ==========================================================================
   Kunder
   ========================================================================== */
.customers { text-align: center; }

.customers h2 { font-size: clamp(30px, 2.6vw, 40px); }

.customers__lead {
  max-width: 48ch;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.customers__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
  margin-top: 56px;
}
.customers__logos a {
  display: block;
  flex: 0 0 auto;
  width: 190px;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.customers__logos a:hover { filter: none; opacity: 1; }
.customers__logos img { width: 100%; height: auto; }

/* ==========================================================================
   Features
   ========================================================================== */
.features__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.features h2 {
  max-width: 16ch;
  font-size: clamp(30px, 2.6vw, 40px);
}

.features__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 48px;
  margin-top: 64px;
}

.feature__icon { width: 62px; height: 62px; }
.feature__icon svg { width: 100%; height: 100%; }

.feature h3 {
  margin-top: 26px;
  font-size: 20px;
}

.feature p {
  margin-top: 16px;
  max-width: 26ch;
}

.features__media {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 5;
}
.features__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Lister (Funktioner / Integrationer)
   ========================================================================== */
.lists__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: start;
}

.lists h2 { font-size: clamp(30px, 2.6vw, 40px); }

.checklist {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-block: 7px;
  font-size: 19px;
  color: var(--ink);
}
.checklist svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  transform: translateY(3px);
  fill: var(--purple);
}

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.lists__note {
  margin-top: 46px;
  font-size: 19px;
  color: var(--ink);
}
.lists__note p { margin-bottom: 0.6em; }

/* ==========================================================================
   Priser
   ========================================================================== */
.pricing {
  background: var(--price-bg);
  text-align: center;
}

.pricing .container { max-width: 940px; }

.pricing h2 { font-size: clamp(32px, 3vw, 46px); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 56px;
  border-bottom: 1px solid rgba(32, 31, 31, 0.12);
}
.tab {
  padding: 14px 22px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab[aria-selected='true'] {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  margin-top: 56px;
}

.plans.is-entering { animation: plans-fade 0.32s ease both; }

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

.plan {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(32, 31, 31, 0.08);
  overflow: hidden;
  text-align: center;
}

.plan__head { padding: 46px 32px 44px; }
.plan__head h3 { font-size: 34px; }
.plan__head p {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 17px;
}

.plan__price {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
}
.plan__price strong {
  display: block;
  color: var(--ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}
.plan__price span {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
}

.plan__specs { border-top: 1px solid var(--border); }
.plan__specs div {
  padding: 18px 24px;
  color: var(--ink);
  font-size: 17px;
}
.plan__specs div + div { border-top: 1px solid var(--border); }
.plan__specs b { font-weight: 700; }

.plan__cta {
  padding: 42px 32px 48px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.contact h2 { font-size: clamp(34px, 3vw, 46px); }

.contact__details { margin-top: 48px; }
.contact__details h3 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
}
.contact__details h3 + p,
.contact__details h3 + a { margin-top: 0; }
.contact__details p,
.contact__details a { color: var(--ink); }
.contact__details a { color: var(--purple); }
.contact__details > * + h3 { margin-top: 26px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 64px 0 46px;
  background: var(--purple);
  color: #fff;
}
.site-footer .container { max-width: 1060px; }

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.site-footer__logo img { width: 150px; }

.site-footer__about {
  margin-top: 32px;
  font-size: 13px;
  line-height: 1.5;
}
.site-footer__about strong { font-weight: 700; }

.site-footer h2 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.site-footer__links {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.9;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   Juridiske sider + kvittering
   ========================================================================== */
.legal { padding-block: 72px 96px; }
.legal__inner { max-width: 820px; }
.legal h1 {
  font-size: clamp(34px, 3.4vw, 48px);
  margin-bottom: 40px;
}
.legal h2 {
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 24px;
}
.legal h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 19px;
}
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; }
.legal td, .legal th { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }

.notice {
  padding-block: 120px 140px;
  text-align: center;
}
.notice h1 { font-size: clamp(34px, 3.4vw, 48px); }
.notice p {
  max-width: 46ch;
  margin: 24px auto 36px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}
.notice__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .features__grid, .lists__grid { gap: 56px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .section { padding-block: 68px; }

  .site-header__inner {
    grid-template-columns: auto 1fr;
    grid-template-rows: var(--header-h) auto;
  }
  .site-header__logo { grid-area: 1 / 1; }
  .site-header__logo img { width: 170px; }
  .nav-toggle { grid-area: 1 / 2; display: block; }

  .nav {
    grid-area: 2 / 1 / 3 / 3;
    justify-self: stretch;
    display: none;
    padding-bottom: 18px;
  }
  .nav.is-open { display: block; }
  .nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav li + li { border-top: 1px solid var(--border); }
  .nav a { display: block; padding: 14px 0; }

  .hero { padding-block: calc(var(--header-h) + 44px) 68px; }
  .hero__video { margin-top: 52px; }

  .features__grid,
  .lists__grid,
  .plans,
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features h2, .feature p { max-width: none; }
  .features__media { aspect-ratio: 16 / 10; }

  .plans { gap: 24px; }

  .site-footer__grid { gap: 34px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .section { padding-block: 54px; }

  .hero__lead, .customers__lead { font-size: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .features__items { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .checklist li { font-size: 17px; }
  .lists__note { font-size: 17px; }

  .plan__head h3 { font-size: 28px; }

  .customers__logos a { width: 140px; }
}
