/* DomusMatch — hjemmeside
   Samme udtryk som produktet: varm lys baggrund, mørkeblå og ravgul, Plus Jakarta Sans.
   Skrifttypen ligger på siden selv (ikke Google Fonts), så besøgendes IP-adresse ikke sendes til Google. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }

:root {
  --ink: #1B2433; --body: #4B5563; --muted: #5F6672; --line: #ECEEF2;
  --bg: #FBF9F6; --bg-deep: #F4F1EC; --surface: #FFFFFF;
  --amber: #B45F06; --amber-dark: #8A4704; --amber-light: #E9A15B; --tint: #FBF1E6; --tint-line: #F3D9C6;
  --radius: 12px; --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(27,36,51,.04), 0 14px 34px -12px rgba(27,36,51,.14);
  --shadow-big: 0 30px 60px -24px rgba(27,36,51,.28);
  --wrap: 1248px; --pad: clamp(20px, 5vw, 96px);
  --header: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--amber); }
a:hover { color: var(--amber-dark); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--deep { background: var(--bg-deep); }
.section--ink { background: var(--ink); color: #FBF9F6; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Knapper ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: filter .15s, border-color .15s; }
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { color: #fff; filter: brightness(1.08); }
.btn--ghost { border: 1px solid #DAD6CF; color: var(--ink); font-weight: 600; background: transparent; }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* ── Logo ────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-size: 20px; line-height: 1; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.logo b { color: var(--amber); font-weight: inherit; }   /* "Match"; ingen afstand mellem Domus og Match */

/* ── Menu ────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; height: var(--header); background: rgba(251,249,246,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--body); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.login { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.login:hover { background: var(--bg-deep); color: var(--ink); }

/* ── Forside ─────────────────────────────────────────── */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-text { max-width: 880px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--body); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
h1 em, h2 em { font-style: normal; color: var(--amber); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--body); max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-visual { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1040px; }

h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.kicker { font-size: 14px; font-weight: 700; color: var(--amber); margin-bottom: 12px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:not(.kicker) { margin-top: 14px; font-size: 17px; color: var(--body); }

/* ── Sådan virker det ────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 14px; counter-increment: step; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-top::after { content: counter(step); font-size: 40px; font-weight: 800; color: #EDE6DC; line-height: 1; }
.icon-box { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; color: var(--amber); }
.step h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.step p { font-size: 15px; color: var(--body); }

/* ── Prøv selv ───────────────────────────────────────── */
.try { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-big); border: 1px solid var(--line); overflow: hidden; }
.try-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 20px; background: var(--bg-deep); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.try-bar strong { color: var(--ink); font-weight: 700; }
.try-body { min-height: 520px; }
.try-note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 720px; }

/* ── Ydelser ─────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.feature--reverse .feature-text { order: 2; }
.feature-text { display: flex; flex-direction: column; gap: 18px; }
.feature-text > p:not(.kicker) { font-size: 17px; color: var(--body); }
.points { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.points li::before { content: ''; width: 28px; height: 28px; border-radius: 8px; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B45F06' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.points strong { display: block; font-size: 16px; }
.points span { font-size: 14px; color: var(--body); }
.caption { margin-top: 10px; font-size: 12px; color: var(--muted); }
figure { margin: 0; min-width: 0; }   /* browserens standardmargen på figurer gjorde siden for bred på telefoner */

/* ── Produktbilleder bygget i HTML ───────────────────── */
.browser { background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid #E5E3DE; box-shadow: var(--shadow-big); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--bg-deep); border-bottom: 1px solid #E5E3DE; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #D8D4CC; }
.address { flex: 1; height: 22px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: #fff; font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--body); gap: 16px; }
.site-nav .their-logo { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px dashed #C9C4BA; border-radius: 6px; font-weight: 600; font-size: 11px; color: var(--muted); }
.site-nav .menu { display: flex; gap: 18px; }
.site-nav .menu b { color: var(--amber); }
.mock-search { padding: 26px 24px 24px; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-align: center; }
.mock-title span { color: var(--amber); }
.mock-box { width: 100%; background: #fff; border: 1px solid var(--tint-line); border-radius: 14px; box-shadow: var(--shadow); }
.mock-box p { padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.mock-box div { display: flex; justify-content: flex-end; padding: 8px; border-top: 1px solid var(--line); }
.mock-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 9px; background: var(--amber); color: #fff; font-size: 12px; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 8px 8px 14px; display: flex; flex-direction: column; gap: 10px; }
.photo { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; display: grid; place-items: center; color: #8A7F72; }
.photo--1 { background: #EADCC8; } .photo--2 { background: #DCE3EA; } .photo--3 { background: #DDE5D5; }
.rank { position: absolute; top: 8px; left: 8px; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.rank--best { background: var(--amber); color: #fff; }
.card-body { padding: 0 4px; display: flex; flex-direction: column; gap: 2px; }
.price { font-size: 16px; font-weight: 800; }
.addr { font-size: 13px; font-weight: 600; }
.town { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chips span { font-size: 11px; color: var(--body); background: #F3F4F6; border-radius: 6px; padding: 2px 7px; }

.mock-results { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mock-results .mock-title { text-align: left; font-size: 20px; }
.panel { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-columns: 92px 1fr; gap: 12px 16px; align-items: start; }
.panel dt { font-size: 12px; font-weight: 700; padding-top: 5px; }
.panel dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 12px; }
.tag--fact { background: var(--tint); border-color: transparent; }
.panel .note { width: 100%; font-size: 11px; color: var(--muted); }
.fake-input { flex: 1; min-width: 160px; height: 34px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; color: #9CA3AF; }
.mock-results .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-big); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.report-head small { display: block; font-size: 12px; color: var(--muted); }
.report-head strong { font-size: 22px; font-weight: 800; }
.report-head .logo { font-size: 12px; gap: 5px; }
.report-head .logo svg { width: 16px; height: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.kpi small { font-size: 11px; font-weight: 600; color: var(--muted); }
.kpi b { font-size: 22px; font-weight: 800; }
.gap { padding: 14px; border-radius: 12px; background: var(--tint); border: 1px solid var(--tint-line); font-size: 12px; }
.gap b { display: block; }
.gap span { color: var(--body); }
.words { display: flex; flex-direction: column; gap: 9px; }
.words > b { font-size: 12px; }
.word { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 12px; }
.word span:first-child { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bar { height: 7px; border-radius: 99px; background: #F1F2F4; }
.bar i { display: block; height: 7px; border-radius: 99px; background: var(--amber); }
.word em { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.word em.up { background: #E7F6EC; color: #166534; }
.word em.new { background: var(--tint); color: var(--amber-dark); }
.word > b { text-align: right; font-weight: 600; }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ── Tryghed ─────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.trust > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.trust .icon-box { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.trust strong { display: block; font-size: 16px; }
.trust span { font-size: 14px; color: var(--body); }

/* ── Pilotprogram ────────────────────────────────────── */
.pilot { display: flex; gap: 64px; align-items: center; justify-content: space-between; }
.pilot .kicker { color: var(--amber-light); }
.pilot h2 { color: #FBF9F6; }
.pilot p { margin-top: 16px; font-size: 17px; color: #C9CED6; max-width: 680px; }
.pilot-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; flex-shrink: 0; }
.pilot-cta span { font-size: 15px; color: #C9CED6; }
.pilot-cta a:not(.btn) { color: #FBF9F6; font-weight: 600; }

/* ── Bund ────────────────────────────────────────────── */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer nav a { color: var(--body); }
.footer small { width: 100%; font-size: 13px; color: var(--muted); }

/* ── Mindre skærme ───────────────────────────────────── */
@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .steps, .trust { grid-template-columns: 1fr; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--reverse .feature-text { order: 0; }
  .pilot { flex-direction: column; align-items: flex-start; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --header: 64px; }
  .logo { font-size: 18px; }
  .logo svg { width: 23px; height: 23px; }
  .header .btn { display: none; }
  .hero-text { text-align: left; align-items: flex-start; }
  .actions { justify-content: flex-start; }
  .site-nav .menu { display: none; }
  .mock-title { font-size: 20px; }
  .cards, .mock-results .cards { grid-template-columns: 1fr; }
  .cards .card:nth-child(n+2) { display: none; }
  .panel { grid-template-columns: 1fr; gap: 6px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report, .mock-results { padding: 20px; }
  .try-body { min-height: 640px; }
}

/* ── Overgange mellem sider ──────────────────────────── */
/* Mellem hjemmesidens egne sider: browserens indbyggede overgang */
@view-transition { navigation: auto; }
/* Til nøgletalssiden (anden adresse): siden toner ud, og nøgletalssiden toner ind */
@keyframes side-ind { from { opacity: 0; } }
body { animation: side-ind .3s ease-out both; }
html.leaving body { opacity: 0; transition: opacity .2s ease-in; }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  html.leaving body { transition: none; }
  @view-transition { navigation: none; }
}
