/* Lac Digital – lacdigital.no
   Farger og skrift fra onepageren: marineblå #13233A, aksent #0F766E,
   DM Serif Display (titler) + Manrope (brødtekst). Skriftene ligger lokalt (ingen Google-kall). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #13233A;
  --navy-2: #1C3150;
  --teal: #0F766E;
  --teal-dark: #0B5F59;
  --teal-light: #5FD3C4;
  --paper: #FBFAF8;
  --white: #FFFFFF;
  --tint: #EEF2F6;
  --line: #E3E0DA;
  --ink: #13233A;
  --ink-2: #44546A;
  --on-navy: #DCE3EC;
  --on-navy-2: #B9C6D6;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--teal-dark); text-underline-offset: 0.18em; }
a:hover { color: #08403C; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--white); color: var(--navy); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { color: var(--white); text-decoration: none; display: inline-flex; }
.brand:hover { color: var(--white); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-mark { color: var(--teal); flex: none; }
.logo-word { font-family: var(--serif); font-size: 1.4rem; line-height: 1; letter-spacing: 0.005em; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
  color: var(--on-navy); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  padding: 0.55rem 0.75rem; border-radius: 8px; display: block;
}
.nav a:hover { color: var(--white); background: var(--navy-2); }

.lang-switch {
  color: var(--white); text-decoration: none; font-size: 0.9rem; font-weight: 700;
  border: 1.5px solid #3A5170; border-radius: 999px; padding: 0.4rem 0.9rem; white-space: nowrap;
}
.lang-switch:hover { color: var(--white); border-color: var(--on-navy-2); }
.lang-short { display: none; }

@media (max-width: 52rem) {
  .header-inner { flex-wrap: wrap; gap: 0 1rem; padding-block: 0.6rem 0; }
  .lang-switch { margin-left: auto; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .nav { order: 3; width: 100%; margin: 0 calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { padding: 0.35rem var(--gutter) 0.5rem; width: max-content; }
  .nav a { padding: 0.55rem 0.7rem; font-size: 0.92rem; }
  .nav li:first-child a { padding-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px #3A5170; }
.btn-ghost:hover { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--on-navy-2); }
.btn-large { font-size: 1.1rem; min-height: 3.5rem; padding-inline: 1.8rem; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); line-height: 1.05; letter-spacing: -0.005em;
}
.lede { margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--on-navy); max-width: 34em; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The call – the one memorable thing on the page */
.call {
  margin: 0; background: var(--paper); color: var(--ink); border-radius: 22px;
  padding: 1.25rem 1.25rem 1rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.call-head { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); padding: 0.1rem 0.25rem 0.9rem; border-bottom: 1px solid var(--line); }
.call-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.18); flex: none; }
.call-lines { list-style: none; margin: 0; padding: 1rem 0 0.25rem; display: flex; flex-direction: column; gap: 0.7rem; }
.line { display: flex; flex-direction: column; gap: 0.2rem; max-width: 88%; }
.line .who { font-size: 0.75rem; font-weight: 700; color: var(--ink-2); padding-inline: 0.85rem; }
.line p { padding: 0.65rem 0.9rem; border-radius: 16px; font-size: 0.97rem; line-height: 1.45; }
.line.ai p { background: var(--white); border: 1px solid var(--line); border-top-left-radius: 4px; }
.line.caller { align-self: flex-end; align-items: flex-end; }
.line.caller p { background: var(--navy); color: var(--white); border-top-right-radius: 4px; }
.call-result {
  margin-top: 1rem; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 0.9rem; border-radius: 12px; background: #E3F2EF; color: #0A4F4A; font-size: 0.92rem; font-weight: 600; line-height: 1.4;
}
.call-result svg { flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .call-lines .line { opacity: 0; transform: translateY(6px); animation: line-in 0.45s ease-out forwards; }
  .call-lines .line:nth-child(1) { animation-delay: 0.25s; }
  .call-lines .line:nth-child(2) { animation-delay: 1.05s; }
  .call-lines .line:nth-child(3) { animation-delay: 1.85s; }
  .call-lines .line:nth-child(4) { animation-delay: 2.65s; }
  .call-lines .line:nth-child(5) { animation-delay: 3.45s; }
  .call-result { opacity: 0; animation: line-in 0.45s ease-out 4.25s forwards; }
}
@keyframes line-in { to { opacity: 1; transform: none; } }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .line { max-width: 92%; }
}

/* ---------- Demo band ---------- */
.demo { background: var(--teal); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4rem); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.demo h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); line-height: 1.1; }
.demo-grid p { margin-top: 0.7rem; color: #DDF1EE; max-width: 34em; }
.demo-call { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.demo .demo-number { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: 0.02em; color: var(--white); text-decoration: none; line-height: 1.1; white-space: nowrap; }
.demo a.demo-number:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.demo-number.is-placeholder { opacity: 0.85; }
.demo-note { font-size: 0.9rem; color: #DDF1EE; }
.demo-steps {
  list-style: none; counter-reset: s; margin: 2.25rem 0 0; padding: 1.75rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem;
}
.demo-steps li { counter-increment: s; position: relative; padding-left: 2.6rem; color: #E8F6F3; font-size: 0.98rem; line-height: 1.55; }
.demo-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -0.05rem; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--white); color: var(--teal-dark); font-weight: 800; font-size: 0.9rem; display: grid; place-items: center;
}
.demo-steps strong { color: var(--white); }
.fineprint { margin-top: 1.75rem; font-size: 0.88rem; color: #D2ECE8; }
.fineprint a { color: var(--white); }

@media (max-width: 52rem) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-call { align-items: flex-start; }
  .demo-steps { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section-tint { background: var(--tint); }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); line-height: 1.1; max-width: 22em; }

.what-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.point { border-top: 3px solid var(--navy); padding-top: 1.1rem; }
.point h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.005em; }
.point p { margin-top: 0.55rem; color: var(--ink-2); }
.checks { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 3rem; max-width: 60rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

@media (max-width: 52rem) {
  .what-grid, .checks { grid-template-columns: 1fr; }
}

/* Trades */
.trades { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.trades > div > p { margin-top: 1rem; color: var(--ink-2); max-width: 32em; }
.trade-list { display: flex; flex-direction: column; gap: 1.25rem; }
.trade {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.trade:hover { border-color: var(--teal); color: var(--ink); }
.trade-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.trade-name::after { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-left: 0.45em; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); transform: rotate(45deg) translateY(-0.12em); }
.trade-desc { color: var(--ink-2); font-size: 0.97rem; }
.trade-other { color: var(--ink-2); font-size: 0.97rem; padding-inline: 0.25rem; }

@media (max-width: 52rem) { .trades { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; counter-reset: st; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: st; }
.steps li::before {
  content: counter(st); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 800; margin-bottom: 1rem;
}
.steps li:nth-child(3)::before { background: var(--teal); }
.steps h3 { font-size: 1.1rem; font-weight: 800; }
.steps p { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.98rem; }

@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: start; }
.faq-list { border-top: 1px solid #C7D0DB; }
.faq details { border-bottom: 1px solid #C7D0DB; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 2.5rem 1.25rem 0; color: var(--ink-2); max-width: 40em; }

@media (max-width: 52rem) { .faq { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--navy); color: var(--white); padding-block: var(--space); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: center; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.08; }
.contact-grid > div > p { margin-top: 1rem; color: var(--on-navy); max-width: 32em; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.contact-alt { color: var(--on-navy-2); font-size: 0.95rem; }
.contact-alt .demo-number { color: var(--white); font-weight: 700; }

@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0E1A2C; color: var(--on-navy-2); padding-block: 2.75rem; font-size: 0.92rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 2rem; align-items: start; }
.footer-brand { color: var(--white); }
.footer-brand .logo-word { font-size: 1.2rem; }
.footer-brand p { margin-top: 0.6rem; color: var(--on-navy-2); }
.footer-facts { font-style: normal; display: flex; flex-direction: column; gap: 0.15rem; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--white); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }

@media (max-width: 52rem) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Undersider ---------- */
.page-hero .wrap { max-width: var(--wrap); }
.page-hero h1 { max-width: 15em; }
.page-hero .lede { max-width: 38em; }
.crumb { font-size: 0.9rem; color: var(--on-navy-2); margin-bottom: 1.25rem; }
.crumb a { color: var(--on-navy); }
.crumb a:hover { color: var(--white); }

/* Regnestykke */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.calc-intro { margin-top: 1rem; color: var(--ink-2); max-width: 30em; }
.calc { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; }
.calc-field { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.calc-field label { font-weight: 600; }
.calc-unit { display: flex; align-items: center; gap: 0.5rem; }
.calc-unit span { color: var(--ink-2); font-weight: 600; min-width: 2.2rem; }
.calc input {
  width: 6.5rem; min-height: 2.9rem; padding: 0.5rem 0.75rem; border: 1.5px solid #C7D0DB; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-align: right; background: var(--paper);
}
.calc-field > input { margin-right: 2.7rem; }
.calc input:focus { border-color: var(--teal); outline: 3px solid rgba(15, 118, 110, 0.25); outline-offset: 0; }
.calc-result { margin-top: 0.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.calc-label { font-weight: 700; }
.calc-sum { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); line-height: 1; color: var(--teal-dark); }
.calc-note { font-size: 0.88rem; color: var(--ink-2); }

@media (max-width: 52rem) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 26rem) { .calc-field label { font-size: 0.95rem; } .calc input { width: 5.5rem; } }

/* Tekstsider (personvern) */
.text-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.text-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.4rem); line-height: 1.08; }
.text-hero .lede { margin-top: 1rem; }
.prose { max-width: 44rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.9rem); line-height: 1.15; margin: 2.75rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; font-weight: 800; margin: 1.75rem 0 0.4rem; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; }
.prose .updated { color: var(--ink-2); font-size: 0.95rem; }
.todo { background: #FFF1C2; color: #5A4300; padding: 0 0.25em; border-radius: 4px; font-weight: 600; }
.lede a.on-navy { color: var(--white); }

/* Under arbeid-banner (slås av med "underConstruction": false i site.json) */
.banner { background: #FFF1C2; color: #4A3700; font-size: 0.93rem; line-height: 1.5; padding-block: 0.6rem; }
.banner a { color: #4A3700; font-weight: 700; }
.banner a:hover { color: #2E2200; }
.demo-note a { color: var(--white); font-weight: 700; }
