/* Heartfelt – matcher heartfelt.biz: DIN-lignende overskrifter i logoets blå (Barlow ~ DIN Next Light),
   Enriqueta som serif-stemme i varm grå, hindbær fra logoet som eneste accent. Rytme: editorial slow. */
:root {
  --paper: #FAFAF9;
  --tint: #F1F0EE;
  --white: #FFFFFF;
  --ink: #3F3C39;          /* varm mørkegrå – tekst (heartfelt.biz #585551, lidt mørkere for læsbarhed) */
  --petrol: #095B80;       /* logoets blå */
  --petrol-deep: #07445F;  /* mørk udgave af logoets blå – mørke sektioner */
  --sky: #55889E;          /* heartfelt.biz' lyse stålblå */
  --rasp: #AE2B4A;         /* logoets hindbær – accent */
  --rasp-hover: #931F3C;
  --rasp-light: #F2A7B8;   /* accent på mørk bund */
  --body: #585551;         /* heartfelt.biz brødtekst */
  --meta: #736F69;         /* heartfelt.biz #848079, mørkere for kontrast */
  --line: #E0DDD8;
  --line-soft: #ECEAE6;
  --dark-text: #CFE0E8;
  --dark-line: #2A6582;
  --display: 'Barlow', 'DIN Next', 'Helvetica Neue', sans-serif;
  --serif: 'Enriqueta', Georgia, serif;
  --sans: 'Barlow', 'Helvetica Neue', Helvetica, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(.215, .61, .355, 1);   /* power3.out – indgange */
  --ease-move: cubic-bezier(.16, 1, .3, 1);       /* expo.out – tilstandsskift */
  --ease-draw: cubic-bezier(.65, 0, .35, 1);      /* power2.inOut – linjer der tegnes */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--petrol); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rasp); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
em { font-style: normal; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 16px; color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; }
.muted { color: var(--body); }
.small { font-size: 15px; }

/* Display-typografi */
.h2, .h2-xl, .hero h1, .rec-name, .tier-name, .company-name, .step-num, .pillar-num, .picker-title, .signature-name {
  font-family: var(--display);
  font-weight: 300;
  color: var(--petrol);
}
.h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06; letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 em, .h2-xl em, .hero h1 em, .manifesto-lead em { color: var(--body); font-size: .9em; }
.h2-xl {
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: 1; letter-spacing: -0.025em;
  max-width: 900px; text-wrap: balance;
}
.h2-xl { color: var(--white); }
.section-dark .h2-xl em { color: var(--rasp-light); }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 0 28px;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rasp); color: var(--white); }
.btn-primary:hover { background: var(--rasp-hover); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.text-link {
  color: var(--ink); font-weight: 600; padding: 12px 0; text-decoration: none;
  border-bottom: 1.5px solid var(--line); transition: border-color .2s var(--ease-out);
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }
.text-link-light { color: var(--paper); border-color: var(--dark-line); }
.text-link-light:hover { color: var(--white); border-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Header */
.site-header { padding: 22px var(--gutter); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 32px;
}
.logo { display: block; padding: 6px 0; line-height: 0; }
.logo img { width: 156px; height: auto; display: block; }
.main-nav {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 30px; font-size: 15px; font-weight: 500;
}
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 12px 0; }
.main-nav a:not(.btn):hover { color: var(--petrol); }
.menu-toggle { display: none; }

/* Sprogvælger */
.logo { order: 1; }
.main-nav { order: 2; margin-left: auto; }
.header-tools { order: 3; display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px 0 8px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--meta);
  cursor: pointer; transition: border-color .2s var(--ease-out);
}
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { border-color: var(--meta); }
.flag { width: 26px; height: 26px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(12, 43, 59, .1); }
.chev { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-move); }
.lang-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  margin: 0; padding: 6px; list-style: none; min-width: 168px;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgba(45, 40, 35, .35);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.lang-menu a .flag { width: 22px; height: 22px; }
.lang-menu a:hover { background: var(--tint); color: var(--ink); }
.lang-menu a[aria-current="true"] { font-weight: 700; }
.lang-menu a[aria-current="true"]::after { content: "✓"; margin-left: auto; color: var(--petrol); }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line);
    background: var(--white); color: var(--ink);
    font: 600 15px var(--sans); cursor: pointer;
  }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .header-inner { column-gap: 12px; }
  .logo img { width: 128px; }
  .header-tools { margin-left: auto; }
  .main-nav { order: 4; margin-left: 0; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-bottom: 8px; }
  .main-nav a:not(.btn) { border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 12px; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: end;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.kicker { font-size: 15px; font-weight: 600; color: var(--petrol); }
.hero h1 {
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 1; letter-spacing: -0.02em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .swash-word { position: relative; display: inline-block; color: var(--rasp); font-size: .88em; }
.swash {
  position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .32em;
  overflow: visible; fill: none; stroke: var(--rasp); stroke-width: 3.5;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.lead { font-size: 19px; line-height: 1.55; color: var(--body); max-width: 520px; text-wrap: pretty; }

/* Størrelsesvælger */
.picker {
  background: var(--white); border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(45, 40, 35, .35);
}
.picker-title { font-size: 28px; letter-spacing: -0.015em; line-height: 1.1; }
.size-buttons {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--tint); border-radius: 14px; padding: 4px;
}
.size-buttons button {
  min-height: 48px; border-radius: 10px; border: 0;
  background: transparent; color: var(--body);
  font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color .3s var(--ease-move), color .3s var(--ease-move), box-shadow .3s var(--ease-move);
}
.size-buttons button:hover { color: var(--ink); }
.size-buttons button[aria-pressed="true"] {
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 2px rgba(45, 40, 35, .12), 0 0 0 1px var(--line);
}
.rec { display: flex; flex-direction: column; gap: 8px; min-height: 212px; }
.rec[hidden] { display: none; }
.js .rec:not([hidden]) { animation: rec-in .5s var(--ease-out) both; }
@keyframes rec-in { from { opacity: 0; transform: translateY(6px); } }
.rec-label { font-size: 14px; font-weight: 600; color: var(--meta); }
.rec-name { font-size: 42px; letter-spacing: -0.02em; line-height: 1.05; }
.rec-time { font-weight: 600; color: var(--petrol); }
.rec p { color: var(--body); }

.meter { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.meter-track { height: 6px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.meter-fill {
  height: 100%; width: var(--meter, 50%); border-radius: inherit; background: var(--petrol);
  transition: width .7s var(--ease-move);
}
.meter-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--meta); }

/* Erfaring */
.experience-section { padding: 0 var(--gutter); }
.experience {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 0; display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 20px 40px; align-items: baseline;
}
@media (max-width: 960px) { .experience { grid-template-columns: repeat(2, minmax(0, 1fr)); } .experience-label { grid-column: 1 / -1; } }
.experience-label { font-size: 14px; font-weight: 600; color: var(--meta); }
.company { display: flex; flex-direction: column; gap: 4px; }
.company-name { font-size: 30px; letter-spacing: -0.015em; line-height: 1; }
.company-role { font-size: 14px; line-height: 1.4; color: var(--meta); }

/* Sektioner */
.section { padding: clamp(80px, 10vw, 136px) var(--gutter); position: relative; }
.section-tint { background: var(--tint); }
.section-flush-top { padding-top: 0; }
.section-dark { background: var(--petrol-deep); color: var(--paper); overflow: hidden; }
.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head p { max-width: 560px; font-size: 18px; }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }

/* Manifest */
.manifesto { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.manifesto-lead {
  font-family: var(--display); font-weight: 300; color: var(--petrol);
  font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 1040px; text-wrap: balance;
}
.manifesto-lead em { color: var(--body); }
.manifesto-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end;
  border-top: 1px solid var(--ink); padding-top: 24px;
}
@media (max-width: 760px) { .manifesto-foot { grid-template-columns: 1fr; } }
.manifesto-foot .muted { font-size: 18px; max-width: 580px; }
.tagline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; color: var(--body); white-space: nowrap;
}
@media (max-width: 420px) { .tagline { white-space: normal; } }
.tagline::before {
  content: ""; width: 16px; height: 15px; flex: none; background: var(--rasp);
  -webkit-mask: url("assets/favicon.svg") center / contain no-repeat;
          mask: url("assets/favicon.svg") center / contain no-repeat;
}

/* Model */
.model { display: flex; flex-direction: column; gap: 64px; }
.statement { font-size: clamp(38px, 5.4vw, 72px); max-width: 980px; line-height: 1.02; }
.pillars {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px;
}
.pillar { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.pillar-num { font-family: var(--serif); font-size: 18px; color: var(--sky); }
.pillar h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.pillar p { color: var(--body); }

/* Niveauer */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.tier {
  background: var(--white); border-radius: 24px; position: relative;
  padding: 34px 32px 30px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .4s var(--ease-move), transform .4s var(--ease-move);
}
.tier.is-active { box-shadow: 0 0 0 2px var(--petrol), 0 30px 60px -40px rgba(45, 40, 35, .45); transform: translateY(-4px); }
.tier-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.tier-size { font-size: 14px; font-weight: 600; color: var(--meta); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--petrol); color: var(--white); font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.badge::before {
  content: ""; width: 10px; height: 9px; background: var(--rasp-light);
  -webkit-mask: url("assets/favicon.svg") center / contain no-repeat;
          mask: url("assets/favicon.svg") center / contain no-repeat;
}
.badge[hidden] { display: none; }
.tier-name { font-size: 40px; letter-spacing: -0.02em; line-height: 1.05; }
.tier-time { font-size: 18px; font-weight: 600; color: var(--petrol); margin-top: -6px; }
.tier-bar { height: 4px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.tier-bar span { display: block; height: 100%; width: var(--w); background: var(--petrol); border-radius: inherit; }
/* "Efter behov": stiplet bjælke = variabel mængde, ikke den største faste pakke */
.tier-bar.is-flex span, .meter-fill.is-flex {
  background: repeating-linear-gradient(90deg, var(--sky) 0 10px, transparent 10px 16px);
}
.tier-price { border-top: 1px solid var(--line-soft); padding-top: 18px; font-size: 18px; font-weight: 700; }

.dots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.dots li { display: flex; gap: 12px; align-items: baseline; }
.dots li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--petrol); flex: none; transform: translateY(-3px);
}

/* Delydelser */
.services {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 56px; align-items: start;
}
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }
.service-list h3 {
  font-family: var(--serif); font-size: 22px; color: var(--petrol);
  padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.service-list ul { list-style: none; margin: 0; padding: 0; }
.service-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Trin */
.steps {
  margin: 0; padding: 0; list-style: none; counter-reset: s;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 32px;
}
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; position: relative; }
.steps li::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--petrol);
}
.step-num { font-family: var(--serif); font-size: 46px; color: var(--sky); line-height: 1; }
.steps h3 { font-size: 19px; font-weight: 700; }

/* Om Heidi */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.portrait {
  width: 100%; max-width: 440px; height: auto; aspect-ratio: 1; border-radius: 28px; object-fit: cover;
  justify-self: end; background: var(--tint);
  box-shadow: 0 40px 70px -50px rgba(45, 40, 35, .55);
}
@media (max-width: 860px) { .portrait { justify-self: start; } }
.portrait-placeholder {
  background: var(--tint); display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--body); font-size: 15px; font-weight: 600;
}
.about-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.about-copy .muted { font-size: 18px; max-width: 560px; }
.signature { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; font-size: 15px; color: var(--meta); }
.signature-name { font-family: var(--display); font-size: 30px; color: var(--petrol); }

/* CTA */
.section-dark .wrap { position: relative; z-index: 1; }
.cta { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta-lead { font-size: 19px; color: var(--dark-text); max-width: 560px; }
.cta-heart {
  position: absolute; right: -4%; bottom: -6%; width: min(760px, 70vw); height: auto;
  fill: none; stroke: var(--rasp); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: .9; pointer-events: none;
}
@media (max-width: 760px) { .cta-heart { opacity: .45; width: 110vw; right: -30%; } }

/* Footer */
.site-footer { padding: 40px var(--gutter) 48px; background: var(--petrol-deep); color: var(--dark-text); font-size: 15px; }
.footer-inner {
  border-top: 1px solid var(--dark-line); padding-top: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--paper); padding: 4px 0; }
.site-footer a:hover { color: var(--white); }
.logo-footer { width: 130px; height: auto; margin-bottom: 6px; }

/* Bevægelse – én hero-bevægelse, så står alt stille.
   Kun når JS kører og brugeren ikke har bedt om mindre bevægelse. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line > span { transform: translateY(105%); }
  .js .hero .kicker, .js .hero .lead, .js .hero .actions, .js .picker { opacity: 0; }
  .js .swash path, .js .cta-heart path { stroke-dasharray: 1; stroke-dashoffset: 1; }

  .js.is-ready .hero h1 .line > span { transform: none; transition: transform 1s var(--ease-out); }
  .js.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
  .js.is-ready .hero h1 .line:nth-child(3) > span { transition-delay: .16s; }
  .js.is-ready .hero .kicker { opacity: 1; transition: opacity .8s var(--ease-out); }
  .js.is-ready .hero .lead, .js.is-ready .hero .actions { opacity: 1; transition: opacity .8s var(--ease-out) .45s; }
  .js.is-ready .picker { opacity: 1; transition: opacity .9s var(--ease-out) .6s; }
  .js.is-ready .swash path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-draw) .7s; }

  .js .cta-heart.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-draw); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rec:not([hidden]) { animation: none; }
  .meter-fill, .tier, .size-buttons button { transition-duration: .01s; }
}

.tier-price a { color: var(--ink); text-decoration: none; }
.tier-price a:hover { color: var(--rasp); }
