/* Klinik App – forside. Farverne er appens egne (lib/Theme/clinic_theme.dart). */
:root {
  --ink: #171613;
  --ink-soft: #24211d;
  --ink-card: #201f1b;
  --canvas: #fbf7f1;
  --surface: #fffdf9;
  --warm: #f6eee3;
  --sand: #ecdcc3;
  --gold: #c39a5b;
  --gold-dark: #8a6739;
  --gold-soft: #f1e3c9;
  --text: #1d1a17;
  --muted: #6b6259;
  --border: #e4d8c9;
  --border-strong: #cdba9f;
  --error: #b3261e;
  --success: #356b31;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--sans); font-size: 16.5px; line-height: 1.55; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); }
.ic { width: 15px; height: 15px; flex: none; color: var(--gold-dark); stroke-width: 1.9; }

/* Top */
.topline { height: 4px; background: var(--gold); }
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 241, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.3rem; text-decoration: none; letter-spacing: -0.01em; }
.mark { width: 36px; height: 36px; flex: none; stroke: none; }
.mark rect { fill: var(--ink); }
.mark path { fill: none; stroke: var(--gold); stroke-width: 2.2; }
.nav { display: flex; gap: 26px; margin: 0 auto; font-size: 0.98rem; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover, .foot-nav a:hover { color: var(--gold-dark); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.link-button { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--text); font-size: 0.98rem; }
.link-button:hover { color: var(--gold-dark); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--surface);
  font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--ink-soft); }
.button:active { transform: translateY(1px); }
.button.small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
.button.ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.button.ghost:hover { background: var(--warm); }
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button.gold:hover { background: #b88d4d; }
.button[disabled] { opacity: 0.6; cursor: default; }

/* Hero */
.hero { padding: 60px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 44px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--gold); color: #fffaf1; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 18px; }
.lead { font-size: 1.14rem; margin-top: 18px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.actions .button { padding: 0 20px; font-size: 0.97rem; }
.hero-note { margin-top: 14px; font-size: 0.92rem; color: var(--gold-dark); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 0.93rem; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }

/* Illustration: computer og telefon */
.showcase { position: relative; padding: 16px 44px 42px 0; }
.glow { position: absolute; inset: -26% -34% -16% -16%; background: radial-gradient(ellipse 50% 50% at 58% 46%, rgba(195, 154, 91, 0.85) 0%, rgba(205, 168, 108, 0.55) 42%, rgba(220, 198, 170, 0.22) 68%, rgba(251, 247, 241, 0) 100%); pointer-events: none; }
.desktop { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 28px 60px -28px rgba(23, 22, 19, 0.55); }
.chrome { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: #ebe3d6; }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: #cbbda6; }
.chrome span { flex: 1; height: 10px; margin-left: 40px; margin-right: 60px; border-radius: 5px; background: #dccfb9; }
.desktop-body { display: grid; grid-template-columns: 112px 1fr; }
.app-side { background: var(--ink); color: #cfc6b8; padding: 14px 10px 18px; font-size: 0.74rem; }
.app-logo { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 12px; border-radius: 9px; background: #2d2924; color: var(--gold); }
.app-logo svg { width: 22px; height: 22px; stroke-width: 2.4; }
.app-side li { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; }
.app-side li.on { background: #2d2924; color: #fff7ea; }
.app-side li svg { width: 13px; height: 13px; flex: none; }
.app-main { padding: 16px 18px 18px; min-width: 0; }
.app-hello { font-size: 1.12rem; font-weight: 600; }
.app-date { font-size: 0.74rem; color: var(--muted); }
.shift-bar { display: flex; align-items: center; gap: 6px; margin: 12px 0; padding: 8px 10px; border-radius: 10px; background: var(--gold-soft); font-size: 0.74rem; white-space: nowrap; }
.shift-bar .chip { font-size: 0.68rem; padding: 3px 7px; }
.shift-bar > span:first-child { margin-right: auto; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.chip.dark { background: var(--ink); color: var(--surface); }
.chip.soft { background: var(--warm); color: var(--text); font-weight: 500; border: 1px solid var(--border); }
.chip.gold { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid #e2cba3; }
.chip svg { width: 13px; height: 13px; color: var(--gold-dark); }
.shift-bar .chip.soft { background: #f8eeda; border-color: #e2cba3; }
.plan { display: grid; grid-template-columns: 52px repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 0.68rem; border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: #fff; }
.plan .ph { text-align: center; font-weight: 600; padding-bottom: 2px; }
.plan .ph.today { color: var(--gold-dark); }
.plan .pn { align-self: center; font-weight: 600; }
.slot { text-align: center; padding: 5px 2px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-dark); }
.slot.off { background: #f4efe7; color: #a79c8d; }
.slot.today { background: var(--gold); color: #fffaf1; }
.plan.small { grid-template-columns: 54px repeat(5, minmax(0, 1fr)); font-size: 0.7rem; gap: 5px; padding: 10px; }
.plan.small .slot { padding: 8px 2px; }

.phone { position: absolute; right: 0; bottom: 0; width: 176px; padding: 26px 13px 16px; border-radius: 26px; background: var(--surface); border: 5px solid var(--ink); box-shadow: 0 24px 40px -18px rgba(23, 22, 19, 0.6); font-size: 0.72rem; }
.notch { position: absolute; top: 6px; left: 50%; width: 46px; height: 10px; margin-left: -23px; border-radius: 6px; background: var(--ink); }
.phone-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 4px auto 10px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-dark); }
.phone-icon svg { width: 26px; height: 26px; }
.phone-title { font-weight: 600; font-size: 0.76rem; }
.phone-sub { color: var(--muted); font-size: 0.68rem; }
.progress { display: block; height: 4px; margin: 6px 0 10px; border-radius: 2px; background: #eee3d0; }
.progress i { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--gold); }
.phone li, .mini-checks li { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 7px; }
.phone li + li { margin-top: 4px; }
.phone li.done, .mini-checks li.done { background: var(--gold-soft); }
.phone li i, .mini-checks li i { width: 11px; height: 11px; flex: none; border-radius: 3px; border: 1.5px solid var(--border-strong); background: #fff; }
.phone li.done i, .mini-checks li.done i { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 2px #fff7ea; }
.showcase figcaption { position: absolute; left: 0; bottom: 6px; font-size: 0.76rem; color: var(--muted); max-width: calc(100% - 230px); }

/* Nøglefordele */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip-row { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; font-size: 0.98rem; }
.strip-row li { display: inline-flex; align-items: center; gap: 10px; }
.strip-row svg { width: 22px; height: 22px; flex: none; color: var(--gold-dark); stroke-width: 1.4; }

/* Sektioner */
.band { padding: 72px 0; }
.center-head { text-align: center; display: grid; justify-items: center; gap: 10px; margin-bottom: 34px; }
.tabs { display: inline-flex; margin-top: 10px; padding: 3px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); }
.tab { min-height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-size: 0.93rem; cursor: pointer; }
.tab.is-active { background: var(--ink); color: var(--surface); font-weight: 600; }

.bento { display: grid; grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr); gap: 16px; }
.bento[hidden] { display: none; }
.bento-side { display: grid; gap: 16px; }
.row { display: grid; gap: 16px; }
.row.two { grid-template-columns: 1.25fr 1fr; }
.row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 24px -22px rgba(23, 22, 19, 0.4); min-width: 0; }
.card p { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.mini { margin-top: auto; padding-top: 16px; font-size: 0.78rem; }
.mini-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 0.82rem; }
.mini-plan .plan { background: #fffdf9; }
.mini-note { margin-top: 8px; font-size: 0.74rem !important; }
.mini-clock { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.mini-clock svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.mini-clock > span:nth-child(2) { display: grid; margin-right: auto; }
.mini-checks { display: grid; gap: 4px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips .chip { padding: 5px 9px; }
.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 62px; padding: 16px 6px 0; border-bottom: 1px solid var(--border-strong); }
.mini-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--ink-soft); }
.mini-bars i.gold { background: var(--gold); }
.b1 { height: 38%; } .b2 { height: 70%; } .b3 { height: 55%; } .b4 { height: 46%; } .b5 { height: 34%; } .b6 { height: 86%; } .b7 { height: 60%; }

/* Sikkerhed */
.band.dark { background: var(--ink); color: #f6efe5; }
.band.dark .eyebrow { color: var(--gold); }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sec-card { text-align: center; padding: 26px 22px; border-radius: var(--radius); border: 1px solid #3a362f; background: var(--ink-card); }
.sec-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 12px; background: #2f2a22; color: var(--gold); }
.sec-icon svg { width: 24px; height: 24px; }
.sec-card h3 { font-weight: 500; }
.sec-card p { margin-top: 8px; color: #b9afa2; font-size: 0.92rem; }

/* Priser og pilotklinikker */
.pilot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px; border-radius: 20px; border: 1px solid #e2cba3; background: linear-gradient(135deg, #fbf1dd 0%, var(--surface) 70%); }
.pilot-copy { display: grid; gap: 14px; justify-items: start; }
.pilot-copy > p:not(.eyebrow) { color: var(--muted); }
.perks { display: grid; gap: 16px; }
.perks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.perks .ic { width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--gold-soft); }
.perks p { color: var(--muted); font-size: 0.93rem; margin-top: 2px; }

/* Sådan virker det + kontakt */
.warm { padding: 40px 0 64px; background: linear-gradient(180deg, var(--warm) 0%, var(--sand) 100%); }
.steps { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 1.1rem; }
.steps li { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.steps li + li { flex: 1; }
.steps li + li::before { content: ""; flex: 1; min-width: 28px; height: 1px; margin-right: 6px; background: var(--gold-dark); opacity: 0.55; }
.num { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold-dark); color: var(--gold-dark); font-size: 0.95rem; }

.contact { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); margin-top: 32px; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 24px 50px -34px rgba(23, 22, 19, 0.55); scroll-margin-top: 96px; }
.contact-info { display: grid; align-content: center; gap: 12px; padding: 36px 32px; background: var(--ink); color: #f6efe5; }
.contact-info h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.contact-info .note { color: #b9afa2; font-size: 0.86rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "navn klinik" "mail besked" "telefon besked" "send send"; gap: 10px; padding: 28px; }
.f-navn { grid-area: navn; } .f-klinik { grid-area: klinik; } .f-mail { grid-area: mail; } .f-telefon { grid-area: telefon; } .f-besked { grid-area: besked; } .f-send { grid-area: send; }
.field { display: grid; }
input, textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: 8px; padding: 10px 12px; }
textarea { resize: vertical; min-height: 100%; }
::placeholder { color: #8c8276; opacity: 1; }
input:focus, textarea:focus { outline: 3px solid rgba(195, 154, 91, 0.45); outline-offset: 0; border-color: var(--gold-dark); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-send .button { width: 100%; border-radius: 10px; }
.status { margin-top: 8px; font-size: 0.93rem; min-height: 1.4em; }
.status.ok { color: var(--success); font-weight: 600; }
.status.bad { color: var(--error); font-weight: 600; }

/* Fod */
.foot { background: var(--ink); color: #cfc6b8; padding: 30px 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.foot .brand { color: #f6efe5; }
.foot .mark rect { fill: none; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.92rem; }
.foot-nav a { text-decoration: none; }
.small-print { font-size: 0.88rem; }

/* Log ind */
.login { max-width: 430px; padding: 28px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); color: var(--text); }
.login::backdrop { background: rgba(23, 22, 19, 0.5); }
.login h2 { font-size: 1.5rem; }
.login p { margin-top: 12px; color: var(--muted); }
.login form { margin-top: 20px; }

@media (max-width: 980px) {
  .hero { padding: 40px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .showcase { max-width: 620px; }
  .strip-row { grid-template-columns: repeat(2, auto); justify-content: start; }
  .bento, .pilot, .contact { grid-template-columns: 1fr; }
  .row.two, .row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: flex-start; }
  .steps li + li::before { display: none; }
  .band { padding: 56px 0; }
}
@media (max-width: 760px) {
  .nav, .link-button { display: none; }
  .top-row { justify-content: space-between; height: 64px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .actions .button { flex: 1 1 100%; }
  .showcase { padding: 8px 0 150px; }
  .desktop-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .phone { right: 8px; }
  .showcase figcaption { max-width: calc(100% - 200px); bottom: 20px; }
  .strip-row { grid-template-columns: 1fr; }
  .row.two, .row.three { grid-template-columns: 1fr; }
  .pilot { padding: 24px 20px; }
  .steps li { white-space: normal; }
  .contact-info { padding: 28px 22px; }
  .form { grid-template-columns: 1fr; grid-template-areas: "navn" "klinik" "mail" "telefon" "besked" "send"; padding: 20px; }
  textarea { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
