/* Novex website. Dark base, one orange glow, the logo's two forward cuts as light beams in the hero. */
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/familjen-grotesk.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans.woff2) format('woff2');
}

:root {
  --night: #0b0d16;
  --panel: #12141f;
  --panel-2: #181b29;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f3f0;
  --muted: #a3a1b0;
  --orange: #ff5f1f;
  --orange-l: #ffa64d;
  --orange-d: #e8361e;
  --grad: linear-gradient(135deg, var(--orange-l), var(--orange) 50%, var(--orange-d));
  --display: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section-lead { color: var(--muted); font-size: 19px; max-width: 60ch; margin-top: 18px; }
.fine { color: var(--muted); font-size: 15px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 1px 9px; }
.mail { user-select: all; color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 16px; text-decoration: none; color: #fff; background: var(--grad); border-radius: 12px; padding: 13px 22px; box-shadow: 0 8px 30px -10px rgba(255, 95, 31, .7), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(255, 95, 31, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn-small { font-size: 14px; padding: 9px 15px; border-radius: 10px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--orange-l); outline-offset: 3px; border-radius: 8px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgba(11, 13, 22, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px var(--gutter-r) 14px var(--gutter); display: flex; align-items: center; gap: 32px; }
.brand img { height: 26px; width: auto; }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--text); }
@media (max-width: 760px) { .links { display: none; } .nav-inner .btn-small { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(255, 95, 31, .22), rgba(255, 95, 31, 0)); pointer-events: none; }
.beams span { position: absolute; top: -15%; width: 70px; height: 120%; border-radius: 70px; background: linear-gradient(180deg, rgba(255, 166, 77, 0), rgba(255, 95, 31, .55) 50%, rgba(232, 54, 30, 0)); transform: rotate(10deg); filter: blur(38px); opacity: .55; pointer-events: none; }
.beams span:nth-child(1) { right: 33%; }
.beams span:nth-child(2) { right: 17%; top: -35%; }
@media (max-width: 960px) { .beams { display: none; } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; } .hero { padding: 64px 0 80px; } }
.kicker { color: var(--orange-l); font-weight: 600; font-size: 16px; margin-bottom: 22px; }
.lead { color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); max-width: 34em; margin-top: 26px; }
.hero .fine { margin-top: 18px; }

/* Flow card */
.flow-card { position: relative; background: linear-gradient(180deg, rgba(24, 27, 41, .92), rgba(15, 17, 27, .92)); border: 1px solid var(--line-2); border-radius: 22px; padding: 18px 18px 8px; box-shadow: 0 40px 120px -40px rgba(255, 95, 31, .45), 0 0 0 1px rgba(255, 255, 255, .02) inset; min-width: 0; }
.flow-head { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); padding: 2px 4px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.flow-head .tag { margin-left: auto; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 95, 31, .18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 95, 31, .05); } }
.events { list-style: none; margin: 0; padding: 6px 0 0; position: relative; }
.events::before { content: ""; position: absolute; left: 63px; top: 22px; bottom: 34px; width: 2px; background: linear-gradient(180deg, var(--orange-l), var(--orange) 70%, var(--orange-d)); border-radius: 2px; opacity: .55; }
.events li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 12px 4px; position: relative; }
.events li::before { content: ""; position: absolute; left: 59px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--night); border: 2px solid var(--orange); }
.events li.done::before { background: var(--orange); box-shadow: 0 0 14px rgba(255, 95, 31, .8); }
.events time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.events div { display: flex; flex-direction: column; min-width: 0; padding-left: 4px; }
.events b { font-weight: 600; font-size: 15px; }
.events span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.chip { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.chip-hot { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 20px -6px rgba(255, 95, 31, .8); }
@media (max-width: 520px) {
  .events li { grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; }
  .events time { padding-top: 2px; }
  .events li .chip { grid-column: 2; justify-self: start; margin-left: 4px; }
  .events::before { left: 53px; }
  .events li::before { left: 49px; top: 22px; margin-top: 0; }
}
/* one orchestrated moment: the flow plays in once */
.js .events li { opacity: 0; transform: translateY(8px); }
.js.ready .events li { animation: ev .5s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * .45s + .2s); }
@keyframes ev { to { opacity: 1; transform: none; } }
.js .events::before { transform: scaleY(0); transform-origin: top; }
.js.ready .events::before { animation: line 2.8s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
@keyframes line { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .js .events li, .js .events::before { opacity: 1; transform: none; animation: none !important; }
  .live i { animation: none; }
  .btn { transition: none; }
}

/* Leaks */
.leaks { padding-top: 72px; padding-bottom: 40px; }
.leak-list { margin-top: 56px; border-top: 1px solid var(--line); }
.leak { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.leak h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.leak p { color: var(--muted); font-size: 18px; max-width: 46ch; }
@media (max-width: 700px) { .leak { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Flow steps */
.flow { padding-top: 120px; padding-bottom: 40px; }
.steps { list-style: none; counter-reset: s; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 26px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 600; font-size: 15px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 95, 31, .12); color: var(--orange-l); margin-bottom: 8px; }
.steps li.measure { background: radial-gradient(120% 120% at 0% 0%, rgba(255, 95, 31, .16), transparent 65%); }
.steps li.measure::before { content: "kr"; background: var(--grad); color: #fff; font-size: 13px; }
.steps li.measure a { color: var(--orange-l); font-weight: 600; text-decoration: none; margin-top: auto; padding-top: 6px; }
.steps li.measure a:hover { text-decoration: underline; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Report */
.report-sec { padding: 120px 0 40px; }
.report-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .report-grid { grid-template-columns: minmax(0, 1fr); } }
.report-grid .fine { margin-top: 18px; }
.report { background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px; box-shadow: 0 30px 90px -40px rgba(255, 95, 31, .35); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); margin: 18px 0; border-radius: 14px; overflow: hidden; }
.kpis div { background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpis b { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpis span { color: var(--muted); font-size: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 166, 77, .16), rgba(232, 54, 30, .12)); border: 1px solid rgba(255, 95, 31, .3); }
.total span { color: var(--text); font-weight: 500; }
.total b { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }

/* How we work */
.how { padding-top: 120px; padding-bottom: 40px; }
.how-list { list-style: none; counter-reset: h; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.how-list li { counter-increment: h; border-top: 2px solid var(--line-2); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.how-list li:first-child { border-top-color: var(--orange); }
.how-list li::before { content: counter(h); font-family: var(--display); font-size: 15px; color: var(--orange-l); font-weight: 600; }
.how-list p { color: var(--muted); }
@media (max-width: 800px) { .how-list { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.guarantee { margin-top: 64px; padding: 30px 32px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.guarantee h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; }
.guarantee p { color: var(--muted); font-size: 18px; }
@media (max-width: 700px) { .guarantee { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

/* FAQ */
.faq { padding-top: 120px; padding-bottom: 40px; }
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); max-width: 860px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { color: var(--muted); padding: 0 0 24px; max-width: 62ch; }

/* Final CTA */
.final { position: relative; overflow: hidden; margin-top: 120px; padding: 110px 0; border-top: 1px solid var(--line); background: radial-gradient(60% 90% at 50% 100%, rgba(255, 95, 31, .22), transparent 70%); }
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final .section-lead { margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }
.final .fine { margin-top: 18px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot-inner img { height: 20px; width: auto; margin-right: auto; }

/* Calculator */
.calc-sec { padding-top: 120px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0; border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; background: var(--panel); }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-intro { padding: 40px; }
@media (max-width: 600px) { .calc-intro { padding: 26px 22px; } }
.calc-fields { margin-top: 34px; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 16px; }
.field output { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--orange) 0 var(--p, 50%), rgba(255, 255, 255, .1) var(--p, 50%) 100%); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(255, 95, 31, .35), 0 2px 8px rgba(0, 0, 0, .4); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(255, 95, 31, .35), 0 2px 8px rgba(0, 0, 0, .4); }
input[type="range"]:focus-visible { outline: 2px solid var(--orange-l); outline-offset: 6px; }
.calc-out { padding: 40px; background: radial-gradient(90% 70% at 50% 0%, rgba(255, 95, 31, .2), transparent 70%), var(--panel-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
@media (max-width: 900px) { .calc-out { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .calc-out { padding: 26px 22px; } }
.calc-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-line b { color: var(--text); font-weight: 600; }
.calc-label { margin-top: 30px; color: var(--muted); }
.calc-total { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 4px; }
.calc-year { color: var(--muted); margin-top: 8px; }
.calc-year b { color: var(--text); font-weight: 600; }
.calc-out .btn { margin-top: 30px; align-self: flex-start; }
.calc-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Booking window: Google's booking page shown in place, no page jump */
.booking { width: min(920px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--panel); color: var(--text); overflow: hidden; }
.booking[open] { display: flex; flex-direction: column; }
.booking::backdrop { background: rgba(5, 6, 12, .72); backdrop-filter: blur(4px); }
.booking-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.booking-head h2 { font-size: 20px; letter-spacing: -0.01em; }
.booking-close { font: inherit; font-size: 26px; line-height: 1; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .06); color: var(--text); cursor: pointer; }
.booking-close:hover { background: rgba(255, 255, 255, .12); }
.booking-close:focus-visible { outline: 2px solid var(--orange-l); outline-offset: 2px; }
.booking-frame { flex: 1; background: #fff; min-height: 0; }
.booking-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.booking-foot { font-size: 13px; color: var(--muted); padding: 10px 22px calc(12px + env(safe-area-inset-bottom, 0px)); }
.booking-foot a { color: var(--orange-l); }
@media (max-width: 600px) { .booking { width: 100vw; height: 100dvh; border-radius: 0; border: 0; } }
