/* HelpVPN — helpvpn.eu
   Fargene følger designretningen i handoffen: nesten sort base, cyan aksent,
   grafitt/sølv materialer og sparsom fiolett refleksjon. */

:root {
  --base:        #03080F;
  --base-raise:  #070E18;
  --base-sink:   #01050A;
  --hairline:    rgba(136, 172, 199, 0.16);
  --hairline-hi: rgba(85, 233, 255, 0.34);
  --cyan:        #55E9FF;
  --cyan-deep:   #11A7C4;
  --violet:      #8B6CF0;
  --ink:         #F4FAFF;
  --ink-soft:    #AEC2D4;
  --ink-faint:   #76889A;
  --gutter:      clamp(20px, 5vw, 64px);
  --shell:       min(1180px, 100% - 2 * var(--gutter));
  --rail:        max(var(--gutter), calc((100% - 1180px) / 2));
  --mono:        'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans:        'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 0.55vw + 14px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--cyan); color: #00121A; padding: 12px 18px;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus,
.skip:focus-visible { top: 16px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--rail);
  background: linear-gradient(180deg, rgba(3, 8, 15, 0.92) 0%, rgba(3, 8, 15, 0) 100%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar[data-stuck="true"] {
  background: rgba(3, 8, 15, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline);
}

.brand { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.brand img { width: clamp(126px, 12vw, 164px); height: auto; }

.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px);
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--hairline-hi);
  border-radius: 999px;
  color: var(--cyan) !important;
  background: rgba(85, 233, 255, 0.05);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover {
  background: rgba(85, 233, 255, 0.13);
  box-shadow: 0 0 24px -6px rgba(85, 233, 255, 0.5);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--hairline); border-radius: 10px;
  color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: currentColor;
  transition: transform 0.25s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: center;
}

.hero-scene {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  background: var(--base-sink);
}

.hero-video,
.hero-fallback img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-fallback { position: absolute; inset: 0; }
.hero-video { position: relative; opacity: 0; transition: opacity 0.9s var(--ease); }
.hero-video[data-ready="true"] { opacity: 1; }

/* Mørk venstreside for overskriften, og en bunnkant som møter neste seksjon. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 5, 10, 0.95) 0%, rgba(1, 5, 10, 0.86) 32%, rgba(1, 5, 10, 0.42) 56%, rgba(1, 5, 10, 0) 76%),
    linear-gradient(180deg, rgba(1, 5, 10, 0.72) 0%, rgba(1, 5, 10, 0) 28%),
    linear-gradient(0deg, var(--base) 0%, rgba(3, 8, 15, 0) 22%);
}

.hero-copy {
  width: 100%;
  padding: clamp(96px, 13vh, 150px) var(--rail) clamp(72px, 11vh, 130px);
}
/* Teksten følger samme venstreakse som logoen. */
.hero-copy > * { max-width: min(680px, 100%); }

.eyebrow {
  margin: 0 0 clamp(16px, 2.2vh, 26px);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.1vw, 4.15rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.032em;
}
h1 span, h1 em { display: block; font-style: normal; }
h1 em {
  color: var(--cyan);
  text-shadow: 0 0 46px rgba(85, 233, 255, 0.4);
}

.lede {
  margin: clamp(20px, 2.8vh, 30px) 0 0;
  font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.18rem);
  color: var(--ink-soft);
  max-width: 54ch;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(24px, 3.2vh, 34px);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #7CF2FF 0%, var(--cyan) 52%, #2FC9E6 100%);
  color: #00121A;
  box-shadow: 0 10px 34px -14px rgba(85, 233, 255, 0.85);
}
.btn-primary:hover { box-shadow: 0 14px 42px -12px rgba(85, 233, 255, 0.95); }

.btn-ghost {
  background: rgba(10, 18, 28, 0.72);
  border-color: var(--hairline);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--hairline-hi); background: rgba(16, 28, 42, 0.86); }

.play-glyph {
  width: 0; height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.value-line {
  margin: clamp(22px, 3vh, 30px) 0 0;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
}

.status-line {
  display: flex; align-items: flex-start; gap: 10px;
  margin: clamp(14px, 1.8vh, 20px) 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.status-dot {
  flex: 0 0 auto;
  margin-top: 0.5em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.capsule-tag {
  position: absolute;
  right: var(--rail);
  bottom: clamp(104px, 16vh, 168px);
  display: flex; align-items: center; gap: 14px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  color: var(--ink-soft);
}
.capsule-tag > span.capsule-label {
  padding: 9px 16px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: rgba(2, 7, 13, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.capsule-rule { width: clamp(28px, 5vw, 64px); height: 1px; background: var(--hairline); }

.video-toggle {
  position: absolute;
  right: var(--rail); bottom: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 13px;
  background: rgba(2, 7, 13, 0.62);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.video-toggle:hover { color: var(--ink); border-color: var(--hairline-hi); }
.video-toggle-icon {
  width: 9px; height: 10px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.video-toggle[aria-pressed="false"] .video-toggle-icon {
  width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-right: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.video-error {
  position: absolute;
  right: var(--rail); bottom: 26px;
  margin: 0;
  padding: 10px 16px;
  background: rgba(2, 7, 13, 0.8);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.video-error a { color: var(--cyan); }

.scroll-cue {
  position: absolute;
  left: calc(var(--rail) - 14px); bottom: 20px;
  display: grid; justify-items: center; gap: 9px;
  padding: 6px 14px;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.scroll-cue:hover { color: var(--ink-soft); }
.cue-line { width: 1px; height: 38px; background: linear-gradient(180deg, transparent, var(--hairline)); }
.cue-ring { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
.cue-chevron {
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%, 60%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
  30%           { transform: rotate(45deg) translate(2px, 2px); opacity: 1; }
}

/* --------------------------------------------------------------- pilarer */

.pillars {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: var(--shell);
  margin: clamp(40px, 6vh, 60px) auto 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.pillar {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px) clamp(16px, 2vw, 28px);
  text-decoration: none;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(12px, 1.4vw, 20px);
  row-gap: 3px;
  align-content: center;
  transition: background 0.25s var(--ease);
}
.pillar + .pillar::before {
  content: '';
  position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hairline), transparent);
}
.pillar:hover { background: rgba(85, 233, 255, 0.04); }
.pillar b {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
}
.pillar-name {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pillar-note { font-size: 0.9rem; color: var(--ink-faint); }

/* -------------------------------------------------------------- seksjoner */

.section { padding: clamp(68px, 10vh, 124px) 0; }
.section-alt {
  background:
    radial-gradient(900px 380px at 82% -10%, rgba(85, 233, 255, 0.07), transparent 70%),
    var(--base-raise);
  border-block: 1px solid var(--hairline);
}
.wrap { width: var(--shell); margin-inline: auto; }
.wrap-narrow { max-width: 760px; margin-inline: 0 auto; }
.section-contact .wrap-narrow { margin-inline: auto; }

.h2 {
  margin: 0 0 clamp(20px, 2.6vh, 30px);
  font-size: clamp(1.8rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.prose { margin: 0 0 1.1em; max-width: 68ch; color: var(--ink-soft); }
.prose:last-of-type { margin-bottom: 0; }
.prose-cta { margin-top: clamp(30px, 4vh, 42px); }

.pull {
  margin: clamp(30px, 4vh, 44px) 0 0;
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 2px solid var(--cyan);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.012em;
  max-width: 46ch;
}

/* verdikort og teknologikort */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  margin-top: clamp(36px, 5vh, 52px);
}
.card {
  padding: clamp(24px, 3vw, 32px);
  background: rgba(3, 8, 15, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--hairline-hi); transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; font-size: 1.04rem; font-weight: 700; line-height: 1.35; }
.card p { margin: 0; font-size: 0.94rem; color: var(--ink-faint); }

/* plattformmoduler */
.modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 6vh, 60px);
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}
.module {
  padding: clamp(28px, 3.2vw, 38px);
  background: var(--base-raise);
  scroll-margin-top: 110px;
}
.module-no {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.module h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.module p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.module-pull {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-weight: 600;
  color: var(--ink) !important;
  font-size: 0.95rem !important;
}

.section-cta { margin: clamp(32px, 4.5vh, 48px) 0 0; }

/* arbeidsflyt */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin: clamp(36px, 5vh, 52px) 0 0;
  padding: 0;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
}
.steps li {
  padding: clamp(24px, 2.8vw, 32px);
  background: var(--base);
}
.step-no {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan-deep);
}
.steps h3 { margin: 0 0 10px; font-size: 1.04rem; font-weight: 700; line-height: 1.3; }
.steps p { margin: 0; font-size: 0.92rem; color: var(--ink-faint); }

/* bruksområder */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  margin-top: clamp(36px, 5vh, 52px);
}
.case {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  background: rgba(3, 8, 15, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: border-color 0.25s var(--ease);
}
.case:hover { border-color: var(--hairline-hi); }
.case h3 { margin: 0 0 12px; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.case p { margin: 0; font-size: 0.94rem; color: var(--ink-faint); }
.case-value {
  margin-top: auto !important;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 0.76rem !important;
  letter-spacing: 0.04em;
  color: var(--cyan) !important;
}

/* punktliste */
.points {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: clamp(30px, 4vh, 42px) 0 0;
  padding: 0;
}
.points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.points li::before {
  content: '';
  position: absolute; left: 0; top: 0.62em;
  width: 11px; height: 1px;
  background: var(--cyan);
}

/* spørsmål og svar */
.faq-list {
  margin-top: clamp(30px, 4vh, 44px);
  border-top: 1px solid var(--hairline);
}
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 2px;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }
.faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  margin: 0.45em 2px 0 auto;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 0.75em; }
.faq-item > p {
  margin: 0 0 22px;
  padding-right: 34px;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.faq-item a { color: var(--cyan); }

/* kontakt */
.section-contact {
  background:
    radial-gradient(760px 420px at 50% 120%, rgba(85, 233, 255, 0.11), transparent 70%),
    var(--base);
  text-align: center;
}
.section-contact .prose { margin-inline: auto; }
.section-contact .pull {
  border-left: 0;
  padding-left: 0;
  margin-inline: auto;
  margin-bottom: clamp(18px, 2.4vh, 26px);
  max-width: none;
}
.contact-action { margin: clamp(28px, 4vh, 40px) 0 0; }
.contact-help {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.contact-mail {
  margin: clamp(22px, 3vh, 30px) 0 0;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.contact-mail a { color: var(--cyan); }

/* ----------------------------------------------------------------- footer */

.footer {
  padding: clamp(40px, 6vh, 64px) 0 clamp(28px, 4vh, 40px);
  border-top: 1px solid var(--hairline);
  background: var(--base-sink);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.footer-mark { width: 44px; height: 44px; opacity: 0.9; }
.footer-claim { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 600; }
.footer-sub { margin: 4px 0 0; color: var(--ink-faint); font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.8vw, 24px); }
.footer-nav a { color: var(--ink-faint); text-decoration: none; font-size: 0.88rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-fine {
  grid-column: 1 / -1;
  margin: clamp(22px, 3vh, 32px) 0 0;
  padding-top: clamp(18px, 2.4vh, 24px);
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ film */

.film {
  width: min(1180px, calc(100vw - 2 * var(--gutter)));
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--base-raise);
  color: var(--ink);
  overflow: hidden;
}
.film::backdrop { background: rgba(1, 4, 8, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film-inner { display: grid; }
.film-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
}
.film-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.film-title span {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 400;
  color: var(--ink-faint);
}
.film-close {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--hairline); border-radius: 9px;
  color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.film-close:hover { border-color: var(--hairline-hi); }
#film-video { width: 100%; height: auto; background: #000; }
.film-note {
  margin: 0;
  padding: 14px 18px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-faint);
  border-top: 1px solid var(--hairline);
}

/* --------------------------------------------------------------- respons */

@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(odd)::before { display: none; }
  .pillar:nth-child(even)::before { display: block; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }

  .topbar { padding: 14px var(--rail); }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px var(--rail) auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px;
    background: rgba(5, 11, 19, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.9);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px; border-radius: 10px; font-size: 1rem; white-space: normal; }
  .nav a:hover { background: rgba(85, 233, 255, 0.06); }
  .nav-cta { text-align: center; margin-top: 6px; }

  .video-toggle { padding: 11px; border-radius: 50%; }
  .video-toggle-label { display: none; }
  .capsule-rule { display: none; }
  .scroll-cue { display: none; }
  .section { padding: clamp(52px, 8vh, 80px) 0; }
  .modules { grid-template-columns: minmax(0, 1fr); }
}

/* Stående telefon: teksten får sin egen blokk, filmen en egen flate under.
   Rytmen er strammet slik at roboten rekker opp på første skjerm. */
@media (max-width: 900px) and (orientation: portrait) {
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: 72px;
  }
  .hero-scene {
    position: relative; inset: auto; z-index: 0;
    order: 2;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-top: 1px solid var(--hairline);
  }
  .hero-video, .hero-fallback img { object-position: 55% 50%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(1, 5, 10, 0.6) 0%, rgba(1, 5, 10, 0) 26%),
      linear-gradient(0deg, var(--base) 0%, rgba(3, 8, 15, 0) 22%);
  }
  .hero-copy {
    order: 1;
    padding: 18px var(--rail) 24px;
  }
  .hero-copy > * { max-width: none; }

  .hero .eyebrow {
    margin-bottom: 10px;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }
  h1 { font-size: clamp(2.05rem, 8.4vw, 2.9rem); line-height: 1; }
  .lede {
    margin-top: 12px;
    font-size: 0.97rem;
    line-height: 1.5;
    max-width: none;
  }
  .cta-row { margin-top: 16px; gap: 9px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; padding: 13px 20px; font-size: 0.97rem; }
  .value-line { margin-top: 14px; font-size: 0.9rem; line-height: 1.45; }
  .status-line { margin-top: 10px; font-size: 0.6rem; line-height: 1.55; }

  .capsule-tag {
    right: auto; left: var(--rail);
    bottom: clamp(16px, 4vw, 26px);
    font-size: 0.56rem; letter-spacing: 0.18em;
  }
  .video-toggle, .video-error { bottom: clamp(16px, 4vw, 26px); }
  .video-error { left: var(--rail); right: var(--rail); font-size: 0.78rem; }
}

/* Liggende telefon er allerede bredformat: behold filmen som bakgrunn
   i stedet for å stable en 4:3-flate under teksten. */
@media (max-width: 900px) and (orientation: landscape) {
  .hero { min-height: 0; padding: 84px 0 28px; }
  .hero-copy { padding-block: 0; }
  .hero-copy > * { max-width: min(500px, 72%); }
  h1 { font-size: clamp(1.9rem, 5.2vw, 2.9rem); }
  .lede { margin-top: 12px; font-size: 0.98rem; }
  .cta-row { margin-top: 16px; }
  .value-line { margin-top: 14px; font-size: 0.92rem; }
  .status-line { margin-top: 10px; }
  .capsule-tag { bottom: 18px; font-size: 0.56rem; }
  .video-toggle, .video-error { bottom: 18px; }
}

/* Lukket foldetelefon: siste innstramming så filmen ikke faller for langt ned. */
@media (max-width: 340px) and (orientation: portrait) {
  .hero-copy { padding-top: 14px; padding-bottom: 18px; }
  .hero .eyebrow { font-size: 0.54rem; letter-spacing: 0.12em; }
  .lede { font-size: 0.92rem; line-height: 1.45; }
  .value-line { font-size: 0.86rem; }
  .cta-row .btn { padding: 12px 16px; font-size: 0.93rem; }
}

@media (max-width: 620px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar::before { display: none !important; }
  .pillar + .pillar { border-top: 1px solid var(--hairline); }
  .pillar { padding: 18px 4px; }
  .footer-grid { grid-template-columns: auto 1fr; }
  .footer-nav { grid-column: 1 / -1; }
  .faq-item summary { font-size: 1rem; }
}

/* Redusert bevegelse: ingen film, ingen animert markør — bare stillbildet. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .video-toggle { display: none !important; }
  .cue-chevron { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
