/* ==========================================================================
   GEO-audit landingsside — samlet stilark (self-hosted, ett request).
   Generert fra Elevate-designsystemet: tokens + base + geo-sb + geo-anim.
   Webfonter self-hostes (woff2) for LCP < ~1,5 s, jf. brief. Regenerer
   font-filene med: python3 scripts/fetch-fonts.py
   ========================================================================== */

/* ---- Webfonter (self-hosted) -------------------------------------------- */
/* Montserrat er en variabel font (wght 100–900) — én fil dekker 700/800/900. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Fargetokens
   ========================================================================== */
:root {
  /* ---- Base palette (raw values) ---------------------------------------- */
  --em-navy-900: #0E1116;   /* deepest — vignette / behind panels        */
  --em-navy-800: #13161B;   /* canvas — primary background               */
  --em-navy-700: #191C20;   /* panel / card surface                      */
  --em-navy-600: #20242A;   /* raised panel / hover surface              */
  --em-navy-500: #2A2F36;   /* hairline-on-dark / inset                  */

  --em-mint-500: #00FFC5;   /* THE accent — CTA, highlight, big numbers  */
  --em-mint-600: #00D9A8;   /* accent hover / pressed                    */
  --em-mint-700: #00B08A;   /* accent on light / deep                    */
  --em-mint-100: rgba(0, 255, 197, 0.12); /* accent tint wash            */
  --em-mint-080: rgba(0, 255, 197, 0.08); /* faint accent wash           */

  --em-white:    #FFFFFF;   /* primary text on dark                      */
  --em-gray-300: #C7CCD3;   /* bright secondary                          */
  --em-gray-400: #9AA3AF;   /* muted secondary text                      */
  --em-gray-500: #6B7280;   /* tertiary / captions / disabled            */
  --em-gray-600: #434A54;   /* faint labels                              */

  /* Hairlines & strokes */
  --em-line-100: rgba(255, 255, 255, 0.07); /* default hairline on dark  */
  --em-line-200: rgba(255, 255, 255, 0.12); /* stronger divider          */
  --em-line-mint: rgba(0, 255, 197, 0.55);  /* thin accent rule          */

  /* ---- Semantic aliases -------------------------------------------------- */
  --surface-canvas:    var(--em-navy-800);
  --surface-deep:      var(--em-navy-900);
  --surface-panel:     var(--em-navy-700);
  --surface-raised:    var(--em-navy-600);
  --surface-inset:     var(--em-navy-500);

  --accent:            var(--em-mint-500);
  --accent-hover:      var(--em-mint-600);
  --accent-pressed:    var(--em-mint-700);
  --accent-wash:       var(--em-mint-100);
  --accent-wash-faint: var(--em-mint-080);
  --accent-line:       var(--em-line-mint);

  --text-primary:      var(--em-white);
  --text-secondary:    var(--em-gray-400);
  --text-bright:       var(--em-gray-300);
  --text-tertiary:     var(--em-gray-500);
  --text-faint:        var(--em-gray-600);
  --text-on-accent:    var(--em-navy-900);  /* dark ink on mint CTA       */

  --line:              var(--em-line-100);
  --line-strong:       var(--em-line-200);

  --focus-ring:        rgba(0, 255, 197, 0.45);
}

/* ==========================================================================
   Typografitokens
   ========================================================================== */
:root {
  /* ---- Families --------------------------------------------------------- */
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Poppins', 'Helvetica Neue', Arial, sans-serif;

  /* ---- Weights ---------------------------------------------------------- */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-bold:     700;
  --weight-heavy:    800;
  --weight-black:    900;

  /* ---- Display / headline scale (Montserrat) ---------------------------- */
  /* Tuned for 16:9 @ 1280x720 and 1920x1080 slide canvases.                */
  --text-mega:    128px;  /* hero big-number / one-word statement          */
  --text-display: 84px;   /* title-slide headline                          */
  --text-h1:      56px;   /* slide headline                                */
  --text-h2:      40px;   /* slide subhead / section title                 */
  --text-h3:      28px;   /* panel title                                   */
  --text-stat:    96px;   /* the "store tall" — big KPI numbers            */

  /* ---- Body scale (Poppins) --------------------------------------------- */
  --text-lead:    24px;   /* lead paragraph / deck body                    */
  --text-body:    18px;   /* default body                                  */
  --text-sm:      15px;   /* dense body / list                             */
  --text-caption: 13px;   /* captions, footnotes                           */
  --text-eyebrow: 13px;   /* uppercase label above headlines               */

  /* ---- Line heights ----------------------------------------------------- */
  --leading-tight:   1.02;  /* mega / display headlines                     */
  --leading-snug:    1.12;  /* h1 / h2                                      */
  --leading-normal:  1.5;   /* body                                         */
  --leading-relaxed: 1.65;  /* light body paragraphs                        */

  /* ---- Letter spacing --------------------------------------------------- */
  --tracking-tightest: -0.03em;  /* mega / display                          */
  --tracking-tight:    -0.02em;  /* headlines                               */
  --tracking-snug:     -0.01em;  /* subheads                                */
  --tracking-normal:   0em;      /* body                                    */
  --tracking-eyebrow:  0.22em;   /* uppercase eyebrow labels                */
  --tracking-wide:     0.08em;   /* small caps / buttons                    */
}

/* ==========================================================================
   Spacing, radier, kanter, skygger
   ========================================================================== */
:root {
  /* ---- Spacing scale (8px base) ----------------------------------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Slide safe margins (16:9) */
  --slide-margin-x: 96px;   /* @1280 wide → scale up for 1920              */
  --slide-margin-y: 80px;

  /* ---- Radii — restrained, mostly square-ish ---------------------------- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;   /* default panel / card                            */
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ---- Border widths ---------------------------------------------------- */
  --border-hairline: 1px;
  --border-accent:   2px;   /* thin mint accent rule                       */

  /* ---- Shadows — subtle, for floating panels on dark -------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.50);
  /* Accent glow — use VERY sparingly (one CTA / one stat per view) */
  --glow-accent: 0 0 0 1px rgba(0, 255, 197, 0.30), 0 8px 32px rgba(0, 255, 197, 0.14);
}

/* ==========================================================================
   Base-lag (delte primitiver)
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headlines default to the display family, heavy + tight */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: 0;
  color: var(--text-primary);
}

::selection {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* ---- Brand primitives (utility classes) --------------------------------- */

/* Uppercase eyebrow label that sits above headlines */
.em-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

/* Thin accent rule — a recurring motif */
.em-rule {
  width: 56px;
  height: var(--border-accent);
  background: var(--accent);
  border: 0;
  margin: 0;
}

.em-rule--full {
  width: 100%;
  height: var(--border-hairline);
  background: var(--line);
}

/* Mint highlight applied to a single word/number inside a headline */
.em-accent-text { color: var(--accent); }

/* Generic panel surface */
.em-panel {
  background: var(--surface-panel);
  border: var(--border-hairline) solid var(--line);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Landingsside — layout og komponenter
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: var(--weight-light);
  font-size: 17px;
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-wash); color: var(--text-primary); }

/* ---- Typografi ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-weight: var(--weight-black);
  font-size: clamp(40px, 7.5vw, 78px);
  line-height: 1.04;
  letter-spacing: var(--tracking-tightest);
}

h1 em, h2 em {
  font-style: normal;
  color: var(--accent);
}

h2 { font-size: clamp(28px, 4.5vw, 44px); }
h3 { font-size: clamp(19px, 2.5vw, 24px); letter-spacing: var(--tracking-snug); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text-bright);
}

.muted { color: var(--text-secondary); }
.caption { font-size: var(--text-caption); color: var(--text-tertiary); line-height: 1.5; }

/* ---- Knapper ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  padding: 17px 34px;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-pressed); transform: translateY(1px); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line-strong);
  padding: 12px 24px;
  font-size: 15px;
}
.btn-outline:hover { border-color: var(--text-secondary); }
.btn-outline:active { transform: translateY(1px); }

/* ---- Toppbar ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: 22px;
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
  color: var(--text-primary);
}
.wordmark span { color: var(--accent); }

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(0, 255, 197, 0.05) 0%, rgba(0, 255, 197, 0) 55%),
    linear-gradient(180deg, var(--surface-deep) 0%, var(--surface-canvas) 100%);
  padding-block: clamp(80px, 13vw, 168px) clamp(64px, 9vw, 120px);
}

.hero .wrap {
  display: grid;
  gap: 28px;
  max-width: 920px;
}

.hero-lead {
  max-width: 620px;
  margin: 0;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 8px;
}

.hero-qualifier {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
}

/* ---- Seksjonsskall -------------------------------------------------------- */

.section-outer {
  border-top: 1px solid var(--line);
  padding-block: clamp(72px, 10vw, 128px);
}

.section-outer.on-deep { background: var(--surface-deep); }

.two-col {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
}

@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(280px, 360px) 1fr; }
}

.section-head { align-self: start; }

.section-num {
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.section-head h2 { margin-bottom: 0; }

/* ---- AI-mockup (seksjon 2 / A1) ------------------------------------------ */

.mockup-section .wrap {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.chat {
  width: 100%;
  max-width: 720px;
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 22px;
}

.chat-label {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 8px;
}

.chat-user { justify-self: end; text-align: right; max-width: 85%; }

.chat-user .bubble {
  display: inline-block;
  text-align: left;
  background: var(--surface-raised);
  border-radius: 14px 14px 4px 14px;
  padding: 14px 18px;
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-bright);
  min-height: 1.6em;
}

.chat-ai { display: grid; gap: 14px; }

.chat-intro {
  margin: 0;
  font-size: clamp(15px, 1.9vw, 17px);
  color: var(--text-secondary);
}

.chat-typing {
  display: inline-flex;
  gap: 5px;
  padding: 4px 0;
}
.chat-typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-tertiary);
}
html.anim .chat-typing.on i { animation: typing-pulse 1s ease-in-out infinite; }
html.anim .chat-typing.on i:nth-child(2) { animation-delay: .15s; }
html.anim .chat-typing.on i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-pulse {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
.chat-typing[hidden] { display: none; }

.chat-firms {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chat-firms li {
  display: grid;
  gap: 2px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.chat-firms strong {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: clamp(15px, 1.9vw, 17px);
  color: var(--text-primary);
}
.chat-firms span { font-size: 14px; color: var(--text-tertiary); }

.chat-verdict {
  margin: 0;
  padding-top: 18px;
  border-top: 2px solid var(--accent);
}
.chat-verdict .verdict-label {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.chat-verdict .verdict-text {
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.chat-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: 720px;
  margin: 0;
}

.chat-replay {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: var(--text-caption);
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.chat-replay:hover { color: var(--text-primary); }
html:not(.anim) .chat-replay { display: none; }

/* ---- Skiftet (seksjon 3 / A2) --------------------------------------------- */

.shift-body { display: grid; gap: clamp(28px, 4vw, 44px); }

.serp {
  position: relative;
  background: var(--surface-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3.5vw, 32px);
  overflow: hidden;
}

.serp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-raised);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.serp-bar i {
  width: 13px; height: 13px;
  border: 2px solid var(--text-tertiary);
  border-radius: 50%;
  position: relative;
  flex: none;
}
.serp-bar i::after {
  content: "";
  position: absolute;
  width: 6px; height: 2px;
  background: var(--text-tertiary);
  transform: rotate(45deg);
  bottom: -3px; right: -4px;
}

.serp-ai {
  background: var(--surface-panel);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: grid;
  gap: 9px;
}
.serp-ai-label {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.serp-links { display: grid; gap: 16px; }
.serp-link { display: grid; gap: 6px; }

.skel { border-radius: 3px; height: 8px; background: var(--surface-inset); }
.skel-title { height: 11px; width: 56%; background: #5E7FA8; border-radius: 4px; }
.skel-url { height: 7px; width: 30%; background: var(--em-gray-600); }
.skel-w80 { width: 80%; }
.skel-w65 { width: 65%; }
.skel-w90 { width: 90%; }

.shift-stats {
  display: grid;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3.5vw, 36px);
}
@media (min-width: 700px) {
  .shift-stats { grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
}

.stat .stat-num {
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  font-size: clamp(44px, 6vw, 64px);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.stat .stat-label { color: var(--text-secondary); font-size: 15px; margin: 0 0 6px; }
.stat .stat-source { font-size: var(--text-caption); color: var(--text-faint); margin: 0; }

/* ---- Mekanismen (seksjon 4 / A3) ------------------------------------------ */

.mech-panels {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 880px) {
  .mech-panels { grid-template-columns: repeat(3, 1fr); }
}

.mech-panel {
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 28px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.mech-step {
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0;
}

.mech-figure { display: grid; align-content: center; gap: 10px; min-height: 132px; }

.mech-bubble {
  background: var(--surface-raised);
  border-radius: 12px 12px 4px 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-bright);
  justify-self: end;
  max-width: 90%;
}

.mech-source {
  display: flex;
  align-items: center;
  gap: 0;
}
.mech-chip {
  flex: none;
  font-size: 12.5px;
  color: var(--text-secondary);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.mech-line {
  flex: 1;
  height: 2px;
  background: var(--accent);
  opacity: .55;
  transform-origin: left center;
  margin-inline: 10px 0;
}

.mech-answer { display: grid; gap: 8px; }
.mech-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text-tertiary);
}
.mech-row.is-you {
  border-color: var(--accent-line);
  background: var(--accent-wash-faint);
  color: var(--text-primary);
  font-weight: var(--weight-regular);
}
.mech-row .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-inset);
  flex: none;
}
.mech-row.is-you .dot { background: var(--accent); }

.mech-panel h3 { font-size: 17px; }
.mech-panel .mech-desc { font-size: 14.5px; color: var(--text-secondary); margin: 6px 0 0; }

.mech-claim {
  margin-top: clamp(28px, 4vw, 44px);
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-bright);
  max-width: 640px;
}

/* ---- Auditen (seksjon 5 / A4) ---------------------------------------------- */

.audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.audit-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.audit-item:first-child { border-top: none; padding-top: 0; }

.audit-check {
  width: 24px; height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  margin-top: 3px;
}
.audit-check svg { display: block; }
.audit-check svg path {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: square;
}

.audit-item h3 { font-size: 16.5px; font-family: var(--font-body); font-weight: var(--weight-medium); letter-spacing: 0; }
.audit-item p { font-size: 15px; color: var(--text-secondary); margin: 4px 0 0; }

.audit-delivery {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-tertiary);
}

/* ---- Slik fungerer det (seksjon 6 / A5) ------------------------------------ */

.steps {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  margin-top: clamp(28px, 4vw, 44px);
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { border-left: 1px solid var(--line); padding-left: 24px; }
  .step:first-child { border-left: none; padding-left: 0; }
}

.step-num {
  font-family: var(--font-display);
  font-weight: var(--weight-heavy);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; }
.step p { font-size: 15px; color: var(--text-secondary); margin: 8px 0 0; }

/* ---- Passer for / ikke for (seksjon 7) -------------------------------------- */

.fit-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 820px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
}

.fit-panel {
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 32px);
}
.fit-panel h3 { font-size: 17px; margin-bottom: 16px; }

.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fit-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}
.fit-list .mark {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--accent);
  line-height: inherit;
}
.fit-panel.fit-no .mark { color: var(--text-faint); }

.fit-reason { margin-top: 16px; font-size: 14px; color: var(--text-tertiary); }

/* ---- Hvorfor gratis (seksjon 8) --------------------------------------------- */

.honest {
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 760px;
}
.honest h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 14px; }
.honest p { color: var(--text-secondary); }
.honest strong { color: var(--text-bright); font-weight: var(--weight-regular); }

/* ---- Hvorfor Elevate (seksjon 9) --------------------------------------------- */

.why-points {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}
.why-points > div { border-top: 1px solid var(--line); padding-top: 18px; }
.why-points h3 { font-size: 16.5px; font-family: var(--font-body); font-weight: var(--weight-medium); letter-spacing: 0; }
.why-points p { font-size: 15px; color: var(--text-secondary); margin: 6px 0 0; }

/* ---- FAQ (seksjon 10) ---------------------------------------------------------- */

.faq { display: grid; }

.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary .faq-x {
  flex: none;
  position: relative;
  width: 14px; height: 14px;
  align-self: center;
}
.faq summary .faq-x::before,
.faq summary .faq-x::after {
  content: "";
  position: absolute;
  background: var(--text-tertiary);
  transition: transform .2s ease;
}
.faq summary .faq-x::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq summary .faq-x::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq details[open] summary .faq-x::after { transform: scaleY(0); }
.faq details[open] summary { color: var(--accent); }

.faq .faq-a {
  padding: 0 0 22px;
  max-width: 640px;
  font-size: 15.5px;
  color: var(--text-secondary);
}

/* ---- Avsluttende CTA (seksjon 11) ----------------------------------------------- */

.final-cta {
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% 120%, rgba(0, 255, 197, 0.06) 0%, rgba(0, 255, 197, 0) 60%),
    var(--surface-deep);
}
.final-cta .wrap {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 820px;
}
.final-cta h2 { font-size: clamp(32px, 5.5vw, 56px); font-weight: var(--weight-black); }
.final-cta .hero-qualifier { margin-top: 2px; }

/* ---- Footer ---------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  background: var(--surface-deep);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
}
.footer .wordmark { font-size: 18px; }
.footer p, .footer a { font-size: 13px; color: var(--text-tertiary); margin: 0; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--text-secondary); }

/* ---- Undersider (/takk, /ikke-aktuell) ---------------------------------------------- */

.subpage {
  min-height: calc(100vh - 60px);
  display: grid;
  align-content: start;
  padding-block: clamp(64px, 10vw, 120px);
}
.subpage .wrap { display: grid; gap: 20px; max-width: 760px; }

.calendly-slot {
  margin-top: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  min-height: 480px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}
.calendly-slot p { color: var(--text-tertiary); font-size: 14px; max-width: 420px; }
.calendly-slot code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--surface-panel);
  border-radius: 6px;
  padding: 2px 8px;
}

/* ==========================================================================
   Animasjonslag A1–A5 (kun transform/opacity)
   ========================================================================== */
/* ---- A1: AI-mockupen (stegstyrt fra geo-sb.js) --------------------------- */

html.anim .chat [data-step] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
html.anim .chat [data-step].on {
  opacity: 1;
  transform: translateY(0);
}
html.anim .chat .chat-verdict[data-step] {
  transform: translateY(16px);
  transition-duration: .65s;
}

/* ---- Felles: seksjoner med .in trigget av IntersectionObserver ------------ */

/* A2: AI-kortet legger seg over og skyver lenkene ned */
html.anim .serp-ai {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity .6s ease .5s, transform .6s ease .5s;
}
html.anim .serp-links {
  transform: translateY(-86px);
  transition: transform .6s ease .5s;
}
html.anim .serp { max-height: 999px; }
html.anim .a2.in .serp-ai { opacity: 1; transform: translateY(0); }
html.anim .a2.in .serp-links { transform: translateY(0); }

/* A3: tre paneler aktiveres sekvensielt */
html.anim .mech-panel {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
html.anim .a3.in .mech-panel:nth-child(1) { transition-delay: 0s; }
html.anim .a3.in .mech-panel:nth-child(2) { transition-delay: .7s; }
html.anim .a3.in .mech-panel:nth-child(3) { transition-delay: 1.5s; }
html.anim .a3.in .mech-panel { opacity: 1; transform: translateY(0); }

/* Signal-linjene i panel 2 flyter inn etter at panelet har landet */
html.anim .mech-line {
  transform: scaleX(0);
  transition: transform .6s ease;
}
html.anim .a3.in .mech-source:nth-child(1) .mech-line { transition-delay: 1.05s; }
html.anim .a3.in .mech-source:nth-child(2) .mech-line { transition-delay: 1.2s; }
html.anim .a3.in .mech-source:nth-child(3) .mech-line { transition-delay: 1.35s; }
html.anim .a3.in .mech-line { transform: scaleX(1); }

/* Raden "Bedriften din" i panel 3 tennes til slutt */
html.anim .mech-row.is-you {
  opacity: .25;
  transition: opacity .5s ease 2.1s;
}
html.anim .a3.in .mech-row.is-you { opacity: 1; }

/* A4: sjekklisten hukes av i sekvens */
html.anim .audit-item { opacity: .45; transition: opacity .45s ease; }
html.anim .audit-check svg path {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset .35s ease;
}
html.anim .a4.in .audit-item { opacity: 1; }
html.anim .a4.in .audit-check svg path { stroke-dashoffset: 0; }
html.anim .a4.in .audit-item:nth-child(1) { transition-delay: 0s; }
html.anim .a4.in .audit-item:nth-child(1) svg path { transition-delay: .15s; }
html.anim .a4.in .audit-item:nth-child(2) { transition-delay: .45s; }
html.anim .a4.in .audit-item:nth-child(2) svg path { transition-delay: .6s; }
html.anim .a4.in .audit-item:nth-child(3) { transition-delay: .9s; }
html.anim .a4.in .audit-item:nth-child(3) svg path { transition-delay: 1.05s; }
html.anim .a4.in .audit-item:nth-child(4) { transition-delay: 1.35s; }
html.anim .a4.in .audit-item:nth-child(4) svg path { transition-delay: 1.5s; }
html.anim .a4.in .audit-item:nth-child(5) { transition-delay: 1.8s; }
html.anim .a4.in .audit-item:nth-child(5) svg path { transition-delay: 1.95s; }

/* A5: de tre stegene tones inn sekvensielt */
html.anim .step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
html.anim .a5.in .step:nth-child(1) { transition-delay: 0s; }
html.anim .a5.in .step:nth-child(2) { transition-delay: .35s; }
html.anim .a5.in .step:nth-child(3) { transition-delay: .7s; }
html.anim .a5.in .step { opacity: 1; transform: translateY(0); }

/* ---- Sikkerhetsnett: redusert bevegelse viser slutttilstanden direkte ------ */

@media (prefers-reduced-motion: reduce) {
  html.anim .chat [data-step],
  html.anim .serp-ai,
  html.anim .serp-links,
  html.anim .mech-panel,
  html.anim .mech-line,
  html.anim .mech-row.is-you,
  html.anim .audit-item,
  html.anim .audit-check svg path,
  html.anim .step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    stroke-dashoffset: 0 !important;
  }
}
