@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --midnatt: #0E1A2B;
  --polarnatt: #1B2C44;
  --maanelys: #F4F6F8;
  --papir: #FFFFFF;
  --blekk: #16222F;
  --graa: #5B6875;
  --linje: #D9DFE5;
  --ugleoye: #E9B23F;
  --lav: #8FA89A;
  --maks: 68rem;
  --tekst: 38rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--blekk);
  background: var(--maanelys);
  font-feature-settings: "tnum" 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ugleoye); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, var(--maks)); margin-inline: auto; }
.prose { max-width: var(--tekst); }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.45; color: var(--graa); }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.site-header { background: var(--midnatt); color: var(--maanelys); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 1.4rem; font-size: 1rem; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(244,246,248,.35); color: inherit; font: inherit; font-size: 0.95rem; padding: 0.35rem 0.8rem; border-radius: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--midnatt); flex-direction: column; padding: 0.5rem 1.25rem 1.5rem; gap: 0.9rem; z-index: 10; font-size: 1.15rem; }
  .nav.open { display: flex; }
  .site-header { position: relative; }
}

/* Hero */
.hero { background: var(--midnatt); color: var(--maanelys); padding: 3.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { color: #B9C4CF; max-width: 34rem; }
.clock { font-variant-numeric: tabular-nums; }
.clock-time { font-size: clamp(4.5rem, 13vw, 9rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; color: var(--maanelys); }
.clock-place { color: #8E9BA8; font-size: 1rem; margin-top: 0.6rem; }
.clock-status { margin-top: 1.4rem; padding-left: 1rem; border-left: 3px solid var(--ugleoye); color: #D5DCE3; max-width: 22rem; }
.eyes { display: flex; gap: 0.9rem; margin-bottom: 1.6rem; }
.eye { width: 46px; height: 46px; border-radius: 50%; background: var(--ugleoye); position: relative; transform-origin: center; }
.eye::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--midnatt); top: 15px; left: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .eye { animation: blink 7s 1.2s infinite; }
}
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }

.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 1.05rem; padding: 0.85rem 1.4rem; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--ugleoye); color: var(--midnatt); }
.btn-primary:hover { background: #F2C25E; }
.btn-ghost { border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 2.5rem 0 3.5rem; }
}

/* Sections */
section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.on-paper { background: var(--papir); }
.on-night { background: var(--polarnatt); color: var(--maanelys); }
.on-night .lead, .on-night p { color: #C5CFD9; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } section { padding: 3.5rem 0; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--blekk); }
.compare > div { padding: 1.4rem 1.4rem 1.4rem 0; }
.compare > div + div { padding-left: 1.4rem; border-left: 1px solid var(--linje); }
.compare .big { font-size: clamp(2rem, 4vw, 3rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.4rem; font-variant-numeric: tabular-nums; }
.compare .muted { color: var(--graa); }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--linje); padding-left: 0; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--linje); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ugleoye); }
.on-night .checklist li { border-color: rgba(255,255,255,.12); }
.checklist strong { font-weight: 650; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--linje); }
.steps li::before { content: counter(s); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--graa); font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--graa); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--linje); border-radius: 14px; overflow: hidden; background: var(--papir); }
.plan { padding: 2rem 1.8rem; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--linje); }
.plan-featured { background: var(--midnatt); color: var(--maanelys); }
.plan-featured .plan-note, .plan-featured .plan-desc { color: #B9C4CF; }
.plan-featured .checklist li { border-color: rgba(255,255,255,.12); }
.plan h3 { font-size: 1.5rem; margin-bottom: 0.2em; }
.plan-desc { color: var(--graa); font-size: 1rem; min-height: 3em; }
.price { font-size: 2.6rem; font-weight: 650; letter-spacing: -0.035em; line-height: 1; margin: 0.8rem 0 0.2rem; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.plan-note { color: var(--graa); font-size: 0.95rem; margin-bottom: 1.2rem; }
.plan .checklist { font-size: 1rem; flex: 1; }
.plan .btn { text-align: center; margin-top: 0.5rem; }
.tag { display: inline-block; align-self: flex-start; background: var(--ugleoye); color: var(--midnatt); font-size: 0.85rem; font-weight: 650; padding: 0.15rem 0.6rem; border-radius: 99px; margin-bottom: 0.8rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan + .plan { border-left: 0; border-top: 1px solid var(--linje); } .plan-desc { min-height: 0; } }

.pricelist { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.pricelist th, .pricelist td { text-align: left; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--linje); vertical-align: top; }
.pricelist thead th { font-size: 0.95rem; color: var(--graa); font-weight: 500; border-bottom: 2px solid var(--blekk); }
.pricelist td:last-child, .pricelist th:last-child { text-align: right; white-space: nowrap; padding-right: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.pricelist .what { font-weight: 650; display: block; margin-bottom: 0.2rem; }
.pricelist .detail { color: var(--graa); font-size: 0.98rem; display: block; max-width: 36rem; }
.badge { font-size: 0.8rem; font-weight: 650; background: #FDF1D6; color: #7A5410; padding: 0.1rem 0.5rem; border-radius: 99px; margin-left: 0.4rem; vertical-align: 2px; white-space: nowrap; }

.callout { background: var(--papir); border-left: 4px solid var(--ugleoye); padding: 1.4rem 1.6rem; border-radius: 0 10px 10px 0; }
.on-paper .callout { background: var(--maanelys); }

/* FAQ */
.faq details { border-top: 1px solid var(--linje); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--linje); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--graa); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0.8rem 0 0; color: var(--graa); max-width: var(--tekst); }

/* Report sample */
.report { background: var(--papir); border: 1px solid var(--linje); border-radius: 14px; padding: clamp(1.4rem, 4vw, 2.6rem); max-width: 50rem; }
.report-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; border-bottom: 2px solid var(--blekk); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.report-head p { margin: 0; color: var(--graa); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.kpi .v { font-size: 1.8rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--graa); font-size: 0.95rem; }
.kpi .d { font-size: 0.9rem; font-weight: 600; }
.up { color: #2F7A4F; } .down { color: #A63D2F; }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.sample-flag { display: inline-block; background: #FDF1D6; color: #7A5410; font-size: 0.9rem; font-weight: 600; padding: 0.2rem 0.7rem; border-radius: 99px; margin-bottom: 1rem; }

/* CTA band */
.cta { background: var(--midnatt); color: var(--maanelys); }
.cta .lead { color: #B9C4CF; }
.contact-lines { margin-top: 1.5rem; font-size: 1.1rem; }
.contact-lines p { margin: 0.3rem 0; }

/* Footer */
.site-footer { background: var(--midnatt); color: #8E9BA8; font-size: 0.95rem; padding: 3rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1rem; color: var(--maanelys); margin-bottom: 0.8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--maanelys); text-decoration: underline; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.page-head { background: var(--midnatt); color: var(--maanelys); padding: 3rem 0 3.5rem; }
.page-head .lead { color: #B9C4CF; max-width: 40rem; }
.page-head h1 { max-width: 20ch; }
.crumbs { font-size: 0.95rem; color: #8E9BA8; margin-bottom: 1.2rem; }
.crumbs a { color: #B9C4CF; }

article.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 3vw, 2rem); }
article.prose ul { padding-left: 1.2rem; }
article.prose li { margin: 0.4rem 0; }

/* Before / after */
.ba-wrap { display: grid; grid-template-columns: auto 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 860px) { .ba-wrap { grid-template-columns: 1fr; gap: 2rem; justify-items: center; } }
.ba-phone { position: relative; width: 300px; height: 600px; border-radius: 44px; background: #0B1420; padding: 12px; box-shadow: 0 30px 60px -20px rgba(14,26,43,.45); flex: none; }
.ba-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; overflow: hidden; }
.ba-new { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--ugleoye); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--ugleoye); box-shadow: 0 4px 14px rgba(0,0,0,.3); display: grid; place-items: center; color: var(--midnatt); font-weight: 700; font-size: 1rem; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.ba-range:focus-visible + .ba-line .ba-knob { outline: 3px solid #fff; outline-offset: 2px; }
.ba-label { position: absolute; top: 14px; z-index: 2; font-size: 0.75rem; font-weight: 650; padding: 0.2rem 0.6rem; border-radius: 99px; pointer-events: none; }
.ba-label-old { left: 14px; background: #fff; color: #555; border: 1px solid #ccc; }
.ba-label-new { right: 14px; background: var(--ugleoye); color: var(--midnatt); }

/* old site */
.old { font-family: "Times New Roman", Times, serif; color: #000; background: #E8E8E8; height: 100%; font-size: 7px; line-height: 1.25; padding-top: 34px; }
.old-head { background: linear-gradient(#3A5FCD, #1E3A8A); color: #FFFF66; text-align: center; padding: 6px 4px; font-family: "Comic Sans MS", "Comic Sans", cursive; font-size: 13px; text-shadow: 1px 1px 0 #000; }
.old-marquee { background: #FFFF99; color: #C00; font-size: 7px; padding: 2px 4px; white-space: nowrap; overflow: hidden; border-bottom: 1px solid #999; }
.old-cols { display: grid; grid-template-columns: 62px 1fr; gap: 4px; padding: 4px; }
.old-nav { background: #fff; border: 1px solid #999; padding: 3px; }
.old-nav a { display: block; color: #00E; text-decoration: underline; margin-bottom: 3px; }
.old-main { background: #fff; border: 1px solid #999; padding: 4px; }
.old-main h4 { margin: 0 0 3px; font-size: 9px; color: #800; }
.old-main p { margin: 0 0 3px; }
.old-img { height: 54px; border: 1px dashed #999; display: grid; place-items: center; color: #999; margin: 4px 0; font-size: 7px; background: #F4F4F4; }
.old-table { width: 100%; border-collapse: collapse; font-size: 6px; }
.old-table td { border: 1px solid #999; padding: 1px 2px; }
.old-foot { text-align: center; font-size: 6px; color: #444; padding: 6px 4px; }
.old-counter { display: inline-block; background: #000; color: #0F0; font-family: monospace; padding: 0 3px; letter-spacing: 1px; }

/* new site */
.neu { font-family: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif; height: 100%; background: #F6F7F5; color: #14202B; display: flex; flex-direction: column; }
.neu-bar { display: flex; justify-content: space-between; align-items: center; padding: 40px 18px 12px; background: #fff; font-weight: 650; font-size: 14px; }
.neu-bar span:last-child { font-size: 18px; letter-spacing: 2px; }
.neu-hero { background: #1F3A2E; color: #fff; padding: 22px 18px 24px; }
.neu-hero small { display: block; color: #B8D4C2; font-size: 11px; margin-bottom: 6px; }
.neu-hero b { display: block; font-size: 24px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; margin-bottom: 10px; }
.neu-hero p { font-size: 12px; color: #D6E4DA; margin: 0 0 14px; line-height: 1.4; }
.neu-btns { display: flex; gap: 8px; }
.neu-btn { flex: 1; text-align: center; font-size: 12px; font-weight: 650; padding: 10px 6px; border-radius: 8px; background: #F2C14E; color: #1F3A2E; }
.neu-btn.alt { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.neu-rating { font-size: 11px; color: #D6E4DA; margin-top: 12px; }
.neu-rating span { color: #F2C14E; letter-spacing: 1px; }
.neu-list { padding: 14px 18px; display: grid; gap: 8px; }
.neu-item { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.neu-item span { color: #5B6875; font-weight: 500; }
.neu-hours { margin: 2px 18px 0; font-size: 11px; color: #5B6875; }
.ba-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--blekk); margin-top: 1.5rem; }
.ba-points > div { padding: 1rem 1rem 0 0; }
.ba-points > div + div { padding-left: 1rem; border-left: 1px solid var(--linje); }
.ba-points h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.ba-points ul { margin: 0; padding-left: 1.1rem; color: var(--graa); font-size: 1rem; }
.ba-points li { margin: 0.3rem 0; }
.on-night .ba-points { border-color: rgba(255,255,255,.5); }
.on-night .ba-points > div + div { border-color: rgba(255,255,255,.15); }
.on-night .ba-points ul { color: #C5CFD9; }

/* Hero scene (placeholder until photo) */
.hero { position: relative; padding-bottom: 9rem; }
.hero .wrap { position: relative; z-index: 1; }
.hero-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; pointer-events: none; }
.hero-scene svg { width: 100%; height: 100%; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,26,43,.92) 0%, rgba(14,26,43,.75) 50%, rgba(14,26,43,.45) 100%); }
@media (max-width: 860px) { .hero { padding-bottom: 7rem; } .hero-scene { height: 130px; } }
