/* E-324 (#390): skriftene ligger på siden selv, ikke hos Google. Latin-utvalget fra Google Fonts, SIL OFL 1.1 (fonts/LISENS.md). */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/lexend.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/source-sans-3.woff2) format("woff2"); }
:root {
  --navy: #15306A;
  --navy-deep: #0F2350;
  --blue: #1E6FB8;
  --green: #5DB53A;
  --ink: #1C2740;
  --muted: #55617A;
  --line: #DCE4EE;
  --field: #7A869C;
  --paper: #FFFFFF;
  --mist: #F1F6FB;
  --on-navy: #C9D6EC;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Source Sans 3", system-ui, sans-serif;
}
h1, h2, h3 { font-family: Lexend, system-ui, sans-serif; color: var(--navy); line-height: 1.15; margin: 0; }
a { color: var(--blue); }
[id] { scroll-margin-top: 96px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* Tastaturfokus: blå på lys bakgrunn, grønn på mørk */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .forman :focus-visible, .process :focus-visible,
.plan.main :focus-visible, .site-footer :focus-visible { outline-color: var(--green); }

/* Knapper */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none; background: var(--navy); color: #fff;
}
.btn:hover { background: var(--blue); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.hero .btn, .plan.main .btn { background: var(--green); color: var(--navy); }
.hero .btn:hover, .plan.main .btn:hover { background: #79CC56; }
.hero .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.hero .btn.ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Header */
header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo img { height: 46px; width: auto; display: block; mix-blend-mode: multiply; }
header nav { display: flex; gap: 28px; align-items: center; }
header nav a { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
header nav a:hover { color: var(--blue); }
header nav a[aria-current="page"]:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
header nav .btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--green); }

/* Intro over hver del */
.intro { max-width: 60ch; margin-bottom: 56px; }
.intro h1, .intro h2, .cta h2, .about h1, .contact-page h1, .app h2, .forman h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}
.intro p { color: var(--muted); font-size: 1.15rem; margin: 16px 0 0; }

/* Hovedbanner */
.hero {
  padding: 88px 0 96px; color: var(--on-navy);
  background:
    radial-gradient(ellipse 70% 90% at 100% 100%, rgba(93, 181, 58, .22), transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(30, 111, 184, .55), transparent 70%),
    var(--navy);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
.hero .lede { font-size: 1.25rem; max-width: 46ch; margin: 24px 0 36px; }
.hero-price { margin: 22px 0 0; font-size: 1.05rem; }
.hero-price a { color: var(--on-navy); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.hero-price a:hover { color: #fff; border-color: #fff; }
.hero-price strong { color: #fff; font-weight: 600; }

/* Kort i banneret */
.case {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.case small { color: var(--muted); }
.case-title { font: 600 1.15rem/1.2 Lexend, sans-serif; color: var(--navy); margin: 6px 0 22px; }
.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--green)); }
.flow li { position: relative; padding: 0 0 18px 32px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.flow li.done::before { background: var(--green); border-color: var(--green); }
.flow b { display: block; font-weight: 600; }
.flow span { color: var(--muted); font-size: .95rem; }

/* Modulliste i banneret på BAS-siden */
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modules a {
  display: block; padding: 14px 16px; border-radius: 12px; background: #fff; color: var(--navy);
  text-decoration: none; font-weight: 600; border-left: 4px solid var(--blue);
}
.modules li:nth-child(n+4) a { border-left-color: var(--green); }
.modules a:hover { background: var(--mist); }
.modules small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; }

/* Mobil-skisse og fordeler */
.app { background: var(--mist); }
.app .wrap { display: grid; grid-template-columns: auto 1fr; gap: 80px; align-items: center; }
.app .wrap.highlights { display: block; }
.app .wrap > div > p { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 16px 0 40px; }
.phone {
  width: 290px; border: 12px solid var(--ink); border-radius: 40px; background: #fff;
  padding: 18px 14px 22px; box-shadow: 0 40px 70px -40px rgba(21, 48, 106, .6);
}
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 14px; font: 600 .95rem Lexend, sans-serif; color: var(--navy); }
.phone-top span { font: 400 .8rem "Source Sans 3", sans-serif; color: var(--muted); }
.phone ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phone li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; }
.phone li i { width: 34px; height: 34px; border-radius: 10px; background: var(--mist); display: grid; place-items: center; font-style: normal; }
.phone li i svg { width: 18px; height: 18px; stroke: var(--blue); }
.phone li b { display: block; font-size: .92rem; color: var(--ink); line-height: 1.2; }
.phone li small { color: var(--muted); font-size: .78rem; }
.phone li.alert { border-color: var(--green); }
.phone li.alert i { background: var(--green); }
.phone li.alert i svg { stroke: var(--navy); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.highlights .benefits { grid-template-columns: repeat(4, 1fr); }
.benefits svg { width: 32px; height: 32px; stroke: var(--green); margin-bottom: 10px; }
.benefits h3 { font-size: 1.15rem; margin-bottom: 6px; }
.benefits p { margin: 0; color: var(--muted); }

/* Fortellingen fra byggeplassen */
.story .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.story h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.story p { margin: 0 0 16px; max-width: 58ch; }
.story .link { font-weight: 600; }

/* Moduler med kretslinje */
.areas { list-style: none; margin: 0; padding: 0 0 0 48px; position: relative; }
.areas::before {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--blue), var(--green));
}
.areas > li { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.areas > li:first-child { border-top: 0; padding-top: 0; }
.areas > li::before {
  content: ""; position: absolute; left: -44px; top: 42px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--blue);
}
.areas > li:first-child::before { top: 6px; }
.areas > li:nth-child(n+3)::before { border-color: var(--green); }
.areas h3 { font-size: 1.6rem; }
.areas h3 + p { color: var(--muted); margin: 10px 0 0; max-width: 40ch; }
.areas ul { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 32px; }
.areas ul li { margin-bottom: 8px; break-inside: avoid; }
.areas ul li::marker { color: var(--green); }
.areas .more { margin-top: 12px; display: inline-block; font-weight: 600; }

/* AI Forman */
.forman { background: var(--navy); color: var(--on-navy); }
.forman .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.forman h2 { color: #fff; }
.forman .lead { font-size: 1.2rem; margin: 16px 0 32px; max-width: 46ch; }
.forman a { color: #fff; }
.skills, .checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.skills li, .checklist li { padding-left: 30px; position: relative; }
.skills li::before, .checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--green); font-weight: 700; }
.skills b { display: block; color: #fff; font-weight: 600; }
.feed { display: grid; gap: 14px; }
.msg { background: #fff; color: var(--ink); border-radius: 16px 16px 16px 4px; padding: 18px 20px; box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .6); }
.msg:nth-child(2) { margin-left: 32px; }
.msg small { color: var(--blue); font-weight: 600; }
.msg p { margin: 4px 0 12px; }
/* Skissens «knapper» er en del av bildet, ikke ekte knapper */
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.acts i { font-style: normal; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.acts i.yes { border-color: var(--green); color: #2E6B16; }

/* Trygghet */
.trust { background: var(--mist); }
.trust .checklist { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust .checklist b { display: block; color: var(--navy); font: 600 1.1rem/1.3 Lexend, sans-serif; margin-bottom: 6px; }
.trust .checklist span { color: var(--muted); }

/* Pris */
.plans { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.plan { border: 2px solid var(--line); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.plan h3 { font-size: 1.4rem; }
.plan p { margin: 0; color: var(--muted); max-width: 40ch; }
.plan .btn { margin-top: auto; }
.plan.main { background: var(--navy); border-color: var(--navy); color: #DCE6F5; }
.plan.main h3 { color: #fff; }
.plan.main .price { color: #B9C8E2; }
.plan.main .price strong { display: block; font: 700 3.2rem/1.1 Lexend, sans-serif; color: #fff; }
.plan.main ul { margin: 6px 0 12px; padding-left: 1.1em; display: grid; gap: 8px; }
.plan.main ul li::marker { color: var(--green); }

/* Kort prisstripe på forsiden */
.price-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.price-band .big { font: 700 clamp(2.4rem, 5vw, 3.4rem)/1.05 Lexend, sans-serif; color: var(--navy); margin: 0; }
.price-band p { margin: 10px 0 0; color: var(--muted); font-size: 1.15rem; max-width: 52ch; }
.price-band .actions { justify-content: flex-end; }

/* Avsluttende oppfordring */
.cta { background: var(--mist); }
.cta.light { background: var(--paper); }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta p { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 12px 0 0; }

/* Om oss */
.about { background: var(--mist); }
.about .wrap { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 64px; align-items: start; }
.about p { max-width: 62ch; margin: 0 0 18px; }
.about .lead { font-size: 1.25rem; color: var(--navy); margin: 20px 0 28px; }
.about aside { border-left: 3px solid var(--green); padding-left: 28px; }
.years { margin: 0 0 32px; color: var(--muted); }
.years strong { display: block; font: 700 4rem/1 Lexend, sans-serif; color: var(--navy); }
.about aside h2 { font-size: 1.15rem; margin-bottom: 12px; }
.about ul { margin: 0; padding-left: 1.1em; }
.about ul li { margin-bottom: 10px; }
.about ul li::marker { color: var(--green); }

/* Slik jobber vi */
.process { background: var(--navy); color: #DCE6F5; }
.process h1, .process h2 { color: #fff; }
.process .intro p { color: #B9C8E2; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--green); padding-top: 20px; }
.steps li::before { content: "Steg " counter(step); display: block; color: var(--green); font-weight: 600; margin-bottom: 6px; }
.steps h2 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { margin: 0; }

/* Kontaktskjema */
.contact-page .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 64px; }
.contact-page .wrap > * { min-width: 0; }
.contact-page p { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 16px 0 0; }
.contact-page .direct { margin-top: 32px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -40px rgba(21, 48, 106, .45); }
.form > * { min-width: 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  width: 100%; max-width: 100%; font: inherit; font-weight: 400; padding: 11px 13px;
  border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 1px; border-color: var(--blue); }
.form button { justify-self: start; }
.form .note { margin: 0; font-size: .9rem; color: var(--muted); }

/* Bunntekst */
.site-footer { background: var(--navy-deep); color: #B9C8E2; padding: 72px 0 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.site-footer .brand { font: 700 1.8rem Lexend, sans-serif; color: #fff; margin: 0 0 12px; }
.site-footer .brand span { color: var(--green); }
.site-footer .cols > div > p { max-width: 36ch; margin: 0 0 20px; }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .checks li { padding-left: 28px; position: relative; }
.site-footer .checks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 24px; font-size: .92rem; }

/* Nettbrett */
@media (max-width: 860px) {
  header { position: static; }
  header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
  header nav { gap: 18px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero .wrap, .areas > li, .about .wrap, .story .wrap, .forman .wrap, .app .wrap,
  .contact-page .wrap, .cta .wrap, .price-band .wrap, .plans { grid-template-columns: 1fr; }
  .hero .wrap, .about .wrap, .story .wrap, .forman .wrap, .contact-page .wrap { gap: 40px; }
  .app .wrap { gap: 48px; }
  .cta .wrap, .price-band .wrap { gap: 24px; }
  .price-band .actions { justify-content: flex-start; }
  .areas > li { gap: 16px; }
  .steps, .highlights .benefits, .trust .checklist { grid-template-columns: 1fr 1fr; }
  .phone { margin: 0 auto; }
  .msg:nth-child(2) { margin-left: 0; }
  .plan { padding: 28px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
}
/* Mobil */
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .logo img { height: 36px; }
  header nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; font-size: .95rem; }
  header nav .hide-sm { display: none; }
  header nav .btn { padding: 8px 12px; }
  .areas { padding-left: 36px; }
  .areas::before { left: 7px; }
  .areas > li::before { left: -36px; }
  .areas ul { columns: 1; }
  .modules, .steps, .benefits, .highlights .benefits, .trust .checklist, .form { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .site-footer .bottom { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.forman .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.forman .btn.ghost:hover { box-shadow: inset 0 0 0 2px #fff; }

/* Vilkår, personer og spørsmål */
.plan.main .addon { color: #B9C8E2; font-size: .95rem; }
.about .people { list-style: none; padding: 0; margin: 0 0 32px; }
.about .people li { font: 600 1.1rem Lexend, sans-serif; color: var(--navy); margin-bottom: 6px; }
.about aside h2 + ul { margin-bottom: 32px; }
.faq { background: var(--mist); }
.qa { display: grid; gap: 10px; max-width: 780px; }
.qa details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qa summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy); list-style-position: outside; }
.qa summary::marker { color: var(--green); }
.qa details[open] summary { border-bottom: 1px solid var(--line); }
.qa details p { margin: 0; padding: 14px 20px 18px; color: var(--muted); }

/* E-324 (#390): merke for det som ikke er bygget ennå */
.kommer { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #FFF4CC; color: #5C4500; font: 600 .75rem/1.6 "Source Sans 3", system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
