/* ANV Nordic demo site: ANV's own look (navy, Open Sans, light grey page). */
:root {
  --navy: #002D72;
  --navy-dark: #001B45;
  --ink: #00183E;
  --text: #404040;
  --muted: #6B7280;
  --page: #F7F8F9;
  --card: #FFFFFF;
  --line: #E3E6EB;
  --field: #C9CED6;
  --tint: #EEF2F8;
  --green: #1E8E3E;
  --red-bg: #FDECEA;
  --red: #8C1D10;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.55 "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif; }
h1, h2, h3, p { margin: 0; }
a { color: var(--navy); }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
.in { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.stack { display: flex; flex-direction: column; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand img { display: block; width: 168px; height: auto; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 15px; font-weight: 600; color: var(--ink); }
.lang { display: flex; align-items: center; gap: 2px; }
.lang button { appearance: none; border: 0; background: none; padding: 6px 6px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 6px; }
.lang button[aria-pressed="true"] { color: var(--navy); background: var(--tint); }
.partner-bar { background: var(--navy); color: #FFFFFF; font-size: 14px; }
.partner-bar .in { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.partner-bar svg { flex: none; }

/* Layout */
main { padding: clamp(24px, 4vw, 48px) 0 72px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.hero { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.hero h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
.hero p { font-size: 17px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--ink); }
.num { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #FFFFFF; font-size: 14px; font-weight: 700; }
.panel.locked { opacity: 0.55; }
.panel.done-step h2 .num { background: var(--green); }

/* "From BoligPortal": every detail ANV Nordic received */
.from { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--page); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* Employment */
.emp-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.emp-row small { display: block; font-size: 13px; color: var(--muted); }
.emp-row b { color: var(--ink); }
.link-btn { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.emp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; align-items: end; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { appearance: none; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1.5px solid var(--field); border-radius: 12px; background: #FFFFFF; transition: border-color 0.15s, box-shadow 0.15s; }
.plan:hover { border-color: var(--navy); }
.plan[aria-pressed="true"] { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.14); }
.plan .top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.plan .name { font-size: 18px; font-weight: 700; color: var(--ink); }
.plan .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--field); display: flex; align-items: center; justify-content: center; }
.plan[aria-pressed="true"] .radio { border-color: var(--navy); }
.plan[aria-pressed="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.plan .price small { font-size: 14px; color: var(--muted); }
.plan .what { font-size: 14px; line-height: 1.5; }
.plan .covers { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.plan .covers span { display: inline-flex; align-items: center; gap: 4px; }
.plan .covers .off { color: var(--muted); font-weight: 400; text-decoration: line-through; }
.skel { display: inline-block; width: 110px; height: 30px; border-radius: 6px; background: linear-gradient(90deg, #EEF0F3 25%, #F7F8F9 50%, #EEF0F3 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* Forms */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field .label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field input, .field select { height: 46px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; background: #FFFFFF; font-size: 16px; font-weight: 400; color: var(--text); }
.field input:focus, .field select:focus, .plan:focus-visible, .btn:focus-visible, .link-btn:focus-visible, .lang button:focus-visible { outline: 3px solid rgba(0, 45, 114, 0.35); outline-offset: 2px; }
.field input[readonly] { background: var(--page); color: var(--ink); }
.cpr { display: flex; align-items: center; height: 46px; border: 1px solid var(--field); border-radius: 8px; background: #FFFFFF; overflow: hidden; }
.cpr span { padding: 0 4px 0 12px; font-size: 16px; font-weight: 400; color: var(--ink); letter-spacing: 0.04em; }
.cpr input { border: 0; height: 44px; width: 100%; padding-left: 0; letter-spacing: 0.08em; }
.cpr:focus-within { outline: 3px solid rgba(0, 45, 114, 0.35); outline-offset: 2px; }
.cpr input:focus { outline: none; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.checkbox input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 28px; border-radius: 8px; background: var(--navy); color: #FFFFFF; font-size: 16px; font-weight: 700; text-decoration: none; box-shadow: inset 0 -2px 0 var(--navy-dark); }
.btn:hover { background: #00245C; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-ghost { background: #FFFFFF; color: var(--navy); border: 1.5px solid var(--navy); box-shadow: none; }
.btn-ghost:hover { background: var(--tint); }
.form-error { padding: 12px 14px; border-radius: 8px; background: var(--red-bg); color: var(--red); font-size: 14px; }
.refusal { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); }
.refusal b { color: var(--ink); }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.waiting { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }

/* Checkout */
.checkout-skel { height: 300px; border-radius: 10px; background: linear-gradient(90deg, #EEF0F3 25%, #F7F8F9 50%, #EEF0F3 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
#checkout { display: block; width: 100%; height: 420px; border: 0; }
.checkout-skel:not([hidden]) + #checkout { position: absolute; opacity: 0; pointer-events: none; }
.test-card { font-size: 13px; color: var(--muted); }

/* Done */
.done-head { display: flex; gap: 14px; align-items: center; }
.done-head .tick { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #E6F4EA; color: var(--green); }
.rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; font-size: 15px; }
.rows div + div { border-top: 1px solid var(--line); }
.rows b { color: var(--ink); text-align: right; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Summary */
.summary { position: sticky; top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.summary h2 { font-size: 17px; font-weight: 700; color: var(--ink); }
.summary .price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary .price-line b { font-size: 26px; color: var(--ink); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
.seller { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 10px; background: var(--tint); font-size: 13px; line-height: 1.5; color: var(--ink); }
.seller svg { flex: none; margin-top: 2px; }
.fine { font-size: 13px; color: var(--muted); }
.fine a { font-weight: 600; }

/* Footer */
.foot { background: var(--ink); color: #C9D2E3; font-size: 14px; }
.foot .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-top: 36px; padding-bottom: 36px; }
.foot img { display: block; width: 150px; height: auto; margin-bottom: 12px; }
.foot p { max-width: 520px; line-height: 1.6; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #FFFFFF; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Home */
.home-hero { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.home-hero .in { display: flex; flex-direction: column; gap: 14px; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); max-width: 860px; }
.home-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.home-hero p { font-size: 18px; max-width: 620px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards .panel h3 { font-size: 17px; color: var(--ink); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 520px) {
  .brand img { width: 136px; }
  .top nav .nav-item { display: none; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .skel, .checkout-skel, .spin { animation: none; }
  .plan { transition: none; }
}
