/* Egenhostade typsnitt (CSP font-src 'self') */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Questrial'; src: url('/assets/fonts/questrial-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ==============================================
   TPC — Threat Prevention Center
   Colors: #090909 · #F04D23 · #f9f9f9
   Fonts: Inter (headings) + Questrial (body)
   ============================================== */

/* Toggle pricing visibility — remove display:none to show, add it back to hide */
.hide-prices { display: none; }

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Tokens */
:root {
  --bg:       #090909;
  --bg-alt:   #111111;
  --bg-card:  rgba(255, 255, 255, 0.05);
  --bg-card-h: rgba(255, 255, 255, 0.08);

  --fg:       #f9f9f9;
  --fg-dim:   rgba(249, 249, 249, 0.55);
  --fg-dimmer: rgba(249, 249, 249, 0.45);

  --accent:     #F04D23;
  --accent-low: rgba(240, 77, 35, 0.10);
  --accent-mid: rgba(240, 77, 35, 0.28);

  --border:   rgba(255, 255, 255, 0.09);
  --border-h: rgba(255, 255, 255, 0.16);

  --heading: 'Inter', system-ui, sans-serif;
  --body:    'Questrial', system-ui, sans-serif;

  --max-w:      1160px;
  --pad:        2rem;
  --section-y:  8rem;
  --r:          20px;
  --r-sm:       12px;
  --r-pill:     100px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}

h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.label {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-sub {
  color: var(--fg-dim);
  font-size: 1rem;
  max-width: 46ch;
  line-height: 1.75;
}

.accent { color: var(--accent); }

.link-accent {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: var(--section-y) 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-sub {
  margin: 0.75rem auto 0;
}

/* Split: sticky left / scrolling right */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 3rem 6rem;
  align-items: start;
}

.split-left {
  position: sticky;
  top: 5.5rem;
}

.split-left .section-sub { margin-top: 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  white-space: nowrap;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.82rem; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-h);
}
.btn-ghost:hover {
  border-color: var(--fg);
  background: var(--bg-card);
}

.btn-outline {
  background: transparent;
  color: var(--fg-dim);
  border-color: var(--border-h);
  justify-content: center;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full { width: 100%; justify-content: center; }

.btn::after {
  content: '↗';
  font-size: 0.8em;
  line-height: 1;
  opacity: 0.85;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* Cards: keyframe fade-in */
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.card.visible,
.pricing-card.visible,
.testimonial-featured.visible,
.testimonial-small.visible {
  animation: card-in .35s var(--ease) both;
}

.feature-item.reveal,
.feature-item.reveal.visible {
  opacity: 1;
  transform: translateX(var(--parallax, 0px));
  transition: none;
  animation: none;
}

@media (max-width: 920px) {
  .feature-item.reveal { opacity: 0; transform: translateY(10px); }
  .feature-item.reveal.visible { opacity: 1; transform: none; animation: card-in .35s var(--ease) both; }
}

/* Header / Nav */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}

#header.scrolled {
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 42px;
  width: auto;
}

.nav-logo-img--footer {
  height: 30px;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  justify-content: center;
}

.nav-link {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: border-color .2s;
}

.lang-switcher:hover { border-color: var(--border-h); }

.lang-opt {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-dimmer);
  transition: color .2s;
}

.lang-opt--active { color: var(--fg); }

.lang-sep {
  font-size: 0.65rem;
  color: var(--fg-dimmer);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
  transform-origin: center;
}

.nav-toggle.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  background: rgba(9, 9, 9, 0.97);
  backdrop-filter: blur(18px);
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity .3s var(--ease);
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile ul {
  list-style: none;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.nav-mobile-link {
  display: block;
  color: var(--fg);
  text-decoration: none;
  padding: 0.9rem 0;
  font-size: 1.35rem;
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: color .2s;
}
.nav-mobile-link:hover { color: var(--accent); }

.nav-mobile-cta {
  color: var(--accent);
}

.nav-mobile-btn {
  display: block;
  margin: 1.25rem auto 0;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.85rem 2.5rem;
  border-radius: var(--r-pill);
  transition: background .2s, color .2s;
  width: fit-content;
}
.nav-mobile-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-bg-tint {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 9, 0.82);
  z-index: 0;
}

.hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}


.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 77, 35, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 77, 35, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 0%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-heading {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.hero-sub {
  color: var(--fg-dim);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Video placeholder */
.hero-video-wrap {
  display: flex;
  align-items: stretch;
}

.hero-video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .3s;
}

.hero-video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(240, 77, 35, 0.06), transparent 70%);
}

.hero-video-placeholder:hover { border-color: var(--accent); }

.hero-video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 77, 35, 0.5);
  background: rgba(240, 77, 35, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background .2s, border-color .2s, transform .2s;
}

.hero-video-placeholder:hover .hero-video-play {
  background: rgba(240, 77, 35, 0.2);
  border-color: var(--accent);
  transform: scale(1.06);
}

.hero-video-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
}

/* Partners marquee */
#partners .section-sub { max-width: 68ch; }

.partners-group-label {
  font-size: 0.72rem;
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: border-color .3s, background .3s;
}

.partner-card:hover {
  border-color: var(--accent-mid);
  background: var(--bg-card-h);
}

.partner-card-name {
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.partner-card-desc {
  font-size: 0.82rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

.partner-syndis {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: var(--r);
  padding: 2rem;
  transition: border-color .3s;
}

.partner-syndis:hover { border-color: var(--accent-mid); }

.partner-syndis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.partner-syndis-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.partner-syndis-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.partner-syndis-name {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.partner-syndis-tagline {
  font-size: 0.8rem;
  color: var(--fg-dimmer);
  letter-spacing: 0.04em;
}

.partner-syndis-wordmark {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  opacity: 0.45;
  user-select: none;
}

.partner-syndis-desc {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.partner-syndis-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.25rem;
}

.partner-syndis-services-label {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  margin-bottom: 1rem;
}

.partner-syndis-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.partner-syndis-service {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.partner-syndis-service svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.partner-syndis-service h4 {
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.partner-syndis-service p {
  font-size: 0.82rem;
  color: var(--fg-dim);
  line-height: 1.55;
}

@media (max-width: 580px) {
  .partner-syndis-services { grid-template-columns: 1fr; }
  .partner-syndis-wordmark { display: none; }
}

.partners-contact {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-card);
}

.partners-contact-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
}

.partners-contact-label {
  color: var(--fg-dim);
  font-size: 0.9rem;
}

.partners-contact-link {
  color: var(--accent);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity .2s;
}

.partners-contact-link:hover { opacity: 0.75; }

.partners-contact-sep {
  color: var(--fg-dimmer);
}

.partners-contact-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .partners-contact {
    flex-direction: column;
    align-items: flex-start;
  }
  .partners-contact-divider { width: auto; height: 1px; align-self: stretch; }
}


/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: border-color .3s, background .3s;
}

.card:hover {
  border-color: var(--accent-mid);
  background: var(--bg-card-h);
}

.card-wide { grid-column: 1 / -1; }

.card-icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-low);
  border-radius: var(--r-sm);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* Features */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  max-width: 68%;
  transition: border-color .3s;
}

.feature-item:hover { border-color: var(--accent-mid); }
.feature-item--right { margin-left: auto; }

.feature-icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-low);
  border-radius: var(--r-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.feature-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }

.feature-item p {
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem 6rem;
  align-items: center;
}

.about-left p {
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.about-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin-top: 1.75rem;
  font-style: italic;
  color: var(--fg-dim);
  line-height: 1.75;
}

.about-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--fg-dimmer);
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-dim);
}

.about-list svg { color: var(--accent); flex-shrink: 0; }

.about-badge {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-card);
}

.about-badge .accent { font-size: 0.82rem; letter-spacing: 0.08em; }

.about-badge span:last-child {
  font-size: 0.85rem;
  color: var(--fg-dimmer);
}

.about-support-callout {
  margin-top: 2rem;
  border: 1px solid var(--border-h);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.about-support-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-low);
  border: 1px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.about-support-callout h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.about-support-callout p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color .3s;
}

.testimonial-card:hover { border-color: var(--accent-mid); }

.testimonial-quote {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
}

.testimonial-text {
  font-family: var(--heading);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.55;
  flex: 1;
}

.testimonial-source {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  font-style: normal;
}

/* Process / Timeline */
.timeline {
  list-style: none;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 4px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-num {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  width: 40px; height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.section-alt .timeline-num { background: var(--bg-alt); }

.timeline-body { padding-top: 0.55rem; }
.timeline-body h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.timeline-body p { font-size: 0.95rem; color: var(--fg-dim); line-height: 1.7; }

.process-extras {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.process-extra-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.process-extra-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent);
  opacity: 0.8;
}

.process-extra-item p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.65;
  margin: 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: border-color .3s;
}

.pricing-card:hover { border-color: var(--border-h); }

.pricing-card--featured {
  border-color: var(--accent-mid);
  background: rgba(240, 77, 35, 0.05);
}

.pricing-accent-bar { display: none; }

.pricing-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.pricing-top h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.pricing-top p { font-size: 0.88rem; color: var(--fg-dim); line-height: 1.6; }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.price-num {
  font-family: var(--heading);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-num--custom { font-size: 1.8rem; }

.price-unit {
  font-size: 0.82rem;
  color: var(--fg-dim);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--fg-dim);
}

.pricing-features svg { color: var(--accent); flex-shrink: 0; }

/* What We Do */
.whatwedo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.whatwedo-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: border-color .3s, background .3s;
}

.whatwedo-item:hover {
  border-color: var(--accent-mid);
  background: var(--bg-card-h);
}

.whatwedo-item--wide { grid-column: 1 / -1; }

.whatwedo-num {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-low);
  border-radius: var(--r-pill);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.whatwedo-item h3 { margin-bottom: 0.4rem; }
.whatwedo-item p { font-size: 0.95rem; color: var(--fg-dim); line-height: 1.7; }

/* Pricing two-package */
.pricing-grid--two {
  grid-template-columns: 1fr 1fr;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.pricing-why {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.pricing-why h3 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.pricing-why p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

@media (max-width: 580px) {
  .whatwedo-grid { grid-template-columns: 1fr; }
  .whatwedo-item--wide { grid-column: 1; }
  .pricing-grid--two { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  gap: 1rem;
  transition: color .2s;
}

.faq-btn:hover { color: var(--accent); }
.faq-btn[aria-expanded="true"] { color: var(--accent); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--fg-dim);
  transition: transform .3s var(--ease);
}

.faq-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
}

.faq-panel p {
  padding-bottom: 1.25rem;
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem 6rem;
  align-items: start;
}

.contact-heading {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}

.contact-left p {
  color: var(--fg-dim);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-email {
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s;
}
.contact-email:hover { opacity: 0.7; }

.contact-details span { font-size: 0.88rem; color: var(--fg-dimmer); }

.contact-linkedin {
  color: var(--fg);
  display: inline-flex;
  margin-top: 0.25rem;
  transition: opacity .2s;
}
.contact-linkedin:hover { opacity: 0.7; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-dim);
}

.form-optional { color: var(--fg-dimmer); font-weight: 400; }

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: var(--body);
  font-size: 1rem;
  outline: none;
  resize: vertical;
  transition: border-color .2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--fg-dimmer); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

/* Synliga fokusmarkeringar för tangentbordsnavigering */
.btn:focus-visible,
.lang-switcher:focus-visible,
.nav-toggle:focus-visible,
.faq-btn:focus-visible,
.nav-link:focus-visible,
.nav-mobile-link:focus-visible,
.contact-email:focus-visible,
.contact-linkedin:focus-visible,
.link-accent:focus-visible,
a.nav-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-dimmer);
  letter-spacing: 0.04em;
}

/* Responsive: tablet */
@media (max-width: 920px) {
  :root { --section-y: 5.5rem; }

  .split-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .partners-grid { grid-template-columns: 1fr 1fr 1fr; }

  .split-left { position: static; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-video-wrap { width: 100%; }

  .stat-divider {
    width: 1px;
    height: auto;
    flex: none;
  }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .nav {
    grid-template-columns: auto 1fr;
  }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: block; }
  .nav-login-desktop { display: none; }
  .nav-logo-img { height: 42px; }

  .feature-item { max-width: 100%; }
  .feature-item--right { margin-left: 0; }
}

/* Responsive: mobile */
@media (max-width: 580px) {
  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  :root {
    --pad: 1.25rem;
    --section-y: 4rem;
  }

  /* hero-stats removed */
  .stat-divider { width: auto; height: 1px; }

  .hero-heading { font-size: 2.4rem; }

  .services-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .partners-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
}

/* ======== Video Modal ======== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.video-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}
.video-modal-content {
  position: relative;
  width: 95vw;
  max-height: 95vh;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform .25s;
}
.video-modal.is-open .video-modal-content {
  transform: scale(1);
}
.video-modal-content video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.video-modal-close:hover { background: rgba(0,0,0,0.8); }

/* ── Portal screenshots ─────────────────────────── */
.portal-main {
  margin-bottom: 1rem;
}

.portal-img-main {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  display: block;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.portal-grid-item img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: block;
}

@media (max-width: 600px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ ENGINE / METHOD (animerat flöde) ============ */

.engine {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 3.5rem;
}

.engine-stage {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
  transition: border-color 0.3s var(--ease);
}

.engine-stage:hover { border-color: var(--border-h); }

.engine-stage-label {
  font-family: var(--heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

/* Stage 1: source list med skannande staplar */
.engine-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }

.src {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
}

.src-name { display: block; font-size: 0.88rem; line-height: 1.35; }

.src-scan {
  display: block;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.src-scan::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: src-sweep 2.4s var(--ease) infinite;
}

.src:nth-child(2) .src-scan::after { animation-delay: 0.3s; }
.src:nth-child(3) .src-scan::after { animation-delay: 0.6s; }
.src:nth-child(4) .src-scan::after { animation-delay: 0.9s; }
.src:nth-child(5) .src-scan::after { animation-delay: 1.2s; }

@keyframes src-sweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

.engine-note { color: var(--fg-dimmer); font-size: 0.8rem; margin: 1.1rem 0 0; }

/* Connector med rinnande puls */
.engine-flow {
  flex: 0 0 56px;
  align-self: flex-start;
  margin-top: 3.5rem;
  position: relative;
  height: 2px;
  margin: 0 0.4rem;
  background: linear-gradient(90deg, var(--accent-mid), var(--border));
}

.flow-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-mid);
  animation: flow-move 1.9s linear infinite;
}

.engine-flow:last-of-type .flow-pulse { animation-delay: 0.95s; }

@keyframes flow-move {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Stage 2: manuell stämpel */
.engine-stamp {
  display: inline-block;
  font-family: var(--heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 0.35em 0.9em;
  margin-bottom: 1.1rem;
  transform: rotate(-3deg);
  animation: stamp-pulse 2.6s var(--ease) infinite;
}

@keyframes stamp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-low); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

.engine-block { margin-top: 1rem; }
.engine-block h3 { font-size: 1rem; margin: 0 0 0.3rem; }
.engine-block p { color: var(--fg-dim); font-size: 0.86rem; margin: 0; }

/* Stage 3: tickets */
.engine-ticket {
  display: flex;
  gap: 0.8rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
}

.engine-ticket h3 { font-size: 0.95rem; margin: 0 0 0.25rem; }
.engine-ticket p { color: var(--fg-dim); font-size: 0.84rem; margin: 0; }

.ticket-dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  animation: stamp-pulse 2.2s var(--ease) infinite;
}

.engine-ticket:nth-child(3) .ticket-dot { animation-delay: 0.7s; }

/* Responsivt: stapla och vrid flödespilarna nedåt */
@media (max-width: 900px) {
  .engine { flex-direction: column; align-items: stretch; }
  .engine-flow {
    flex-basis: 38px;
    width: 2px;
    height: 38px;
    align-self: center;
    margin: 0.2rem 0;
    background: linear-gradient(180deg, var(--accent-mid), var(--border));
  }
  @keyframes flow-move {
    0% { top: 0; left: 50%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; left: 50%; opacity: 0; }
  }
  .flow-pulse { left: 50%; margin-left: -4.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .src-scan::after, .flow-pulse, .engine-stamp, .ticket-dot { animation: none !important; }
  .flow-pulse { opacity: 1; }
}

/* ============ TESTIMONIALS (omdesignade) ============ */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 3rem;
}

.quote {
  position: relative;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.2rem 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.quote::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.quote:hover {
  border-color: var(--accent-mid);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.quote:hover::before { opacity: 1; }

.quote-mark {
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.28;
  height: 0.5em;
}

.quote blockquote {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--fg);
  flex: 1;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

.quote-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.quote cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1.4;
}

/* Featured: bred, större, citat bredvid markeringen */
.quote--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--accent-low), var(--bg-card) 55%);
  border-color: var(--accent-mid);
  padding: 2.6rem 2.4rem 2rem;
}

.quote--featured .quote-mark { font-size: 5.5rem; opacity: 0.4; }

.quote--featured blockquote {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.45;
}

.quote--featured .quote-avatar {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .quotes { grid-template-columns: 1fr; }
}

/* Luft mellan animationen och de sex stegen i How It Works */
#process .split-layout {
  margin-top: 4.5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}


/* Partners som "powered by"-block inuti Our Service */
.partners-block {
  margin-top: 4.5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}
#partners { scroll-margin-top: 90px; }

.engine-ticket:nth-child(4) .ticket-dot { animation-delay: 1.1s; }
.engine-ticket:nth-child(5) .ticket-dot { animation-delay: 1.5s; }

/* ============ ENGINE v2 — kompakt, ikoner, betonad människa ============ */
.engine { display: flex; align-items: stretch; gap: 0; margin-top: 3rem; }

.engine-stage {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem 1.3rem;
}

.engine-stage-label {
  font-family: var(--heading);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem;
}

.e-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; }
.e-row + .e-row { border-top: 1px solid var(--border); }

.e-ico {
  flex: 0 0 32px; width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px; background: var(--accent-low); color: var(--accent);
}
.e-ico svg { width: 17px; height: 17px; }

.e-row h4 { margin: 0; font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

/* Betona människosteget */
.engine-stage--manual {
  background: linear-gradient(160deg, var(--accent-low), var(--bg-card) 70%);
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 1px var(--accent-mid), 0 18px 50px rgba(240, 77, 35, 0.08);
}

.engine-stamp {
  display: inline-block;
  font-family: var(--heading); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: var(--r-pill);
  padding: 0.3em 0.8em; margin: 0 0 0.9rem; transform: none;
}

/* Connector nära toppen */
.engine-flow {
  flex: 0 0 40px; align-self: flex-start; margin-top: 2.1rem;
  position: relative; height: 2px;
  background: linear-gradient(90deg, var(--accent-mid), var(--border));
}
.flow-pulse {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px var(--accent-mid);
  animation: flow-move 1.9s linear infinite;
}
.engine-flow:last-of-type .flow-pulse { animation-delay: 0.95s; }

@media (max-width: 900px) {
  .engine { flex-direction: column; align-items: stretch; }
  .engine-flow {
    flex-basis: 30px; width: 2px; height: 30px; align-self: center;
    margin: 0.1rem 0; background: linear-gradient(180deg, var(--accent-mid), var(--border));
  }
  @keyframes flow-move { 0%{top:0;left:50%;opacity:0} 15%{opacity:1} 85%{opacity:1} 100%{top:100%;left:50%;opacity:0} }
  .flow-pulse { left: 50%; margin-left: -4px; }
}
@media (prefers-reduced-motion: reduce) { .flow-pulse { animation: none; opacity: 1; } }

/* Why-choose: 6 enhetliga kort, lika stora */
#why-choose .services-grid { grid-template-columns: repeat(3, 1fr); }
#why-choose .card { display: flex; flex-direction: column; }
#why-choose .card p { margin-top: auto; padding-top: 0.6rem; }
@media (max-width: 900px) { #why-choose .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { #why-choose .services-grid { grid-template-columns: 1fr; } }

/* ============ HERO SONAR ============ */
.hero-visual { display: grid; place-items: center; position: relative; z-index: 1; }
.sonar { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 20px 50px rgba(240,77,35,0.12)); }
.sonar-sweep { transform-origin: 200px 200px; animation: sonar-spin 4s linear infinite; }
@keyframes sonar-spin { to { transform: rotate(360deg); } }
.sonar-blips circle { animation: sonar-blip 3s ease-in-out infinite; }
.sonar-blips circle:nth-child(2) { animation-delay: 1s; }
.sonar-blips circle:nth-child(3) { animation-delay: 2s; }
@keyframes sonar-blip { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (max-width: 900px) { .hero-visual { display: none; } }
@media (prefers-reduced-motion: reduce) { .sonar-sweep, .sonar-blips circle { animation: none; } }

/* Sonar-detektionsutskrift */
.sonar-readout {
  margin-top: 1.1rem;
  min-height: 1.5em;
  font-family: var(--body), monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-align: center;
  opacity: 0;
}
.sonar-readout.show { animation: readout-in 0.5s var(--ease) forwards; }
@keyframes readout-in {
  0% { opacity: 0; transform: translateY(4px); }
  12% { opacity: 1; transform: none; }
  88% { opacity: 1; }
  100% { opacity: 0.55; }
}
.sonar-blips circle.hit {
  opacity: 1 !important;
  filter: drop-shadow(0 0 7px #F04D23);
}
@media (prefers-reduced-motion: reduce) {
  .sonar-readout { opacity: 1; }
  .sonar-readout.show { animation: none; }
}

/* ============ SÄKERHETSCENTER-SHELL ============ */
.shell-wrap { background: var(--bg); padding: 0 0 6rem; }
.shell-label { text-align: center; margin-bottom: 1.4rem; }
.shell {
  max-width: 860px; margin: 0 auto;
  background: #06090f;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.shell-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}
.shell-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3038; }
.shell-bar span:first-child { background: var(--accent); }
.shell-bar b {
  margin-left: auto; font-family: var(--body);
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; color: var(--fg-dim);
}
.shell-body {
  margin: 0; padding: 1.2rem 1.4rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem; line-height: 1.75;
  color: #9fb0c0; min-height: 17.5em; white-space: pre-wrap; word-break: break-word;
}
.shell-body .ln { display: block; }
.shell-body .p { color: var(--accent); }
.shell-body .d { color: rgba(249,249,249,0.42); }
.shell-body .g { color: #5ad17a; }
.shell-body .ok { color: #5ad17a; font-weight: 600; }
.caret {
  display: inline-block; width: 0.55em; height: 1.05em; vertical-align: -0.18em;
  background: var(--accent); animation: shell-blink 1s steps(2) infinite;
}
@keyframes shell-blink { 50% { opacity: 0; } }
@media (max-width: 600px) { .shell-body { font-size: 0.74rem; min-height: 19em; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* ---- Sonar v2: dynamiska blips, ping, allvarsgrad ---- */
.sonar-blips .blip { transform-box: fill-box; transform-origin: center; animation: blip-in 0.4s ease-out; }
@keyframes blip-in { 0% { transform: scale(0); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }
.sonar-blips .ping { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: sonar-ping 1.1s ease-out forwards; }
@keyframes sonar-ping { 0% { transform: scale(0.4); opacity: 0.85; } 100% { transform: scale(3.4); opacity: 0; } }
.sonar-readout.sev-high { color: #F04D23; }
.sonar-readout.sev-med { color: #ff8a66; }
.sonar-readout.sev-low { color: #ffd1c2; }
@media (prefers-reduced-motion: reduce) { .sonar-blips .blip, .sonar-blips .ping { animation: none; } }

/* ---- Shell: fast storlek (slides), mindre lucka mot hero ---- */
.hero { padding: 7rem 0 1rem; min-height: 88svh; }
.shell-wrap { margin-top: -1rem; }

/* ---- SOC split-screen ---- */
.shell-dash {
  margin: 0; padding: 0.85rem 1rem 0.5rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem; line-height: 1.5; letter-spacing: 0;
  color: #8295a8; height: 15.5em; overflow: hidden; white-space: pre;
}
.shell-divider { height: 1px; background: var(--border); }
.shell-body { height: 6em; min-height: 0; overflow: hidden; padding: 0.6rem 1rem 0.8rem; }
.shell .c-crit { color: #ff3b30; }
.shell .c-high { color: #F04D23; }
.shell .c-med { color: #ff8a66; }
.shell .c-low { color: #ffd1c2; }
.shell .c-dim { color: rgba(249,249,249,0.16); }
.shell .c-accent { color: #F04D23; }
.shell .c-ok { color: #5ad17a; }
@media (max-width: 760px) {
  .shell-dash, .shell-divider { display: none; }
  .shell-body { height: 8.5em; }
}

/* ---- Terminal större och läsbar ---- */
.shell { max-width: 1080px; }
.shell-bar b { font-size: 0.82rem; }
.shell-dash {
  font-size: 1rem;
  line-height: 1.55;
  height: 20.5em;
  padding: 1rem 1.2rem 0.6rem;
}
.shell-body {
  font-size: 0.98rem;
  line-height: 1.7;
  height: 8.5em;
  padding: 0.8rem 1.2rem 1rem;
}
@media (max-width: 1080px) { .shell-dash { font-size: 0.88rem; } }
@media (max-width: 760px) {
  .shell-body { font-size: 0.9rem; height: 10em; }
}

/* ---- Terminal under hero-knapparna ---- */
.hero { display: block; min-height: auto; padding: 7rem 0 4rem; }
.hero-shell { position: relative; z-index: 1; margin-top: 2.5rem; }
.hero-shell .shell-label { text-align: left; }

/* ---- Terminal högre upp ---- */
.hero { padding: 5rem 0 3.5rem; }
.hero-shell { margin-top: 1.25rem; }

/* ---- Analytiker: tightare rader, tydlig skillnad kommando/output ---- */
.shell-body { line-height: 1.55; }
.shell-body .ln { display: block; }
.shell-body .p { color: var(--accent); font-weight: 600; }
.shell-body .d, .shell-body .g, .shell-body .ok { padding-left: 0.9rem; }
.shell-body .d { color: rgba(249,249,249,0.5); }

/* ---- Dashboard full bredd, dölj på smala skärmar (ASCII behöver plats) ---- */
.shell-dash { height: 22em; font-size: 0.92rem; }
@media (max-width: 980px) { .shell-dash, .shell-divider { display: none; } }

/* ============ FELSIDOR (404 / 500) ============ */
.errorpage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.errorpage-inner { max-width: 34rem; }
.errorpage-logo { width: 56px; height: auto; margin: 0 auto 2rem; }
.errorpage-code {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(4rem, 18vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.errorpage-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 1rem;
}
.errorpage-text {
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.errorpage-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======== OFFICES (compact, subtle strip) ======== */
.offices-strip { padding: 2.25rem 0; border-top: 1px solid var(--border); }
.offices-label { margin-bottom: 1rem; }
.offices-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 2.5rem; }
.office { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--fg-dim); }
.office-ico { color: var(--fg-dimmer); flex: 0 0 auto; }
.office-cc {
  font-size: .64rem; font-weight: 700; letter-spacing: .12em; color: var(--accent);
  border: 1px solid var(--accent-mid); border-radius: 4px; padding: .2em .5em; flex: 0 0 auto;
}
.office-txt b { color: var(--fg); font-weight: 600; }
.office-link { color: var(--fg-dim); text-decoration: underline; text-underline-offset: .15em; }
.office-link:hover { color: var(--accent); }
.office-status {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.office-pin { width: 7px; height: 7px; border-radius: 50%; }
.office-status--open { color: #5ad17a; }
.office-status--open .office-pin { background: #5ad17a; }
.office-status--soon { color: #ffb612; }
.office-status--soon .office-pin { background: #ffb612; }
@media (max-width: 560px) { .office { width: 100%; } }
