/* BV Flow – presentationssida. Ren CSS, inga beroenden.
   Färgerna är appens egna designtokens (globals.css i BV Flow) plus
   presentationens marinblå. */

/* Inter (SIL Open Font License) självhostad – inga anrop till Google. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
    url("fonts/inter-latin-wght-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
    url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --navy: #0b2545;
  --navy-deep: #071a33;
  --navy-soft: #123a66;
  --accent: #0876b8;
  --accent-strong: #005f9f;
  --accent-bright: #1e88e5;
  --sky: #e8f3fb;
  --sky-line: #cfe3f2;
  --ground: #f4f6f8;
  --panel: #ffffff;
  --ink: #18212f;
  --heading: #10243a;
  --muted: #5e6978;
  --line: #d7dee8;
  --green: #117a48;
  --shadow: 0 10px 30px rgba(16, 36, 58, 0.1);
  --shadow-lift: 0 22px 50px rgba(16, 36, 58, 0.18);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  .hero-media,
  .button,
  .site-nav a {
    transition: none;
  }
}

/* Avsnitten hamnar under det klistrade sidhuvudet vid intern navigering. */
.section,
.cta-band {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

/* ---------- Sidhuvud ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(215, 222, 232, 0.8);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand img {
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--sky);
  color: var(--accent-strong);
}

.site-nav a.nav-cta {
  margin-left: 6px;
  background: var(--navy);
  color: #fff;
}

.site-nav a.nav-cta:hover {
  background: var(--accent-strong);
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta):not([href="#filmer"]) {
    display: none;
  }

  .site-nav a {
    padding: 7px 10px;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(8, 118, 184, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--ground) 100%);
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero-copy .lead {
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 118, 184, 0.28);
}

.button.primary:hover {
  background: var(--accent-strong);
}

/* Lyft bara på enheter som faktiskt kan hovra - annars "fastnar" läget
   efter ett tryck på pekskärm. */
@media (hover: hover) {
  .button.primary:hover {
    transform: translateY(-1px);
  }

  .hero-media:hover {
    transform: perspective(1400px) rotateY(0deg) translateY(-3px);
  }
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--heading);
}

.button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.button.light {
  background: #fff;
  color: var(--navy);
}

.button.light:hover {
  background: var(--sky);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 2px;
}

.hero-facts strong {
  color: var(--heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Filmruta i hero: en "skärm" med spelknapp */
.hero-media {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(16, 36, 58, 0.08);
  transform: perspective(1400px) rotateY(-4deg);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.hero-media:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 4px;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1920 / 870;
  object-fit: cover;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0) 55%, rgba(11, 37, 69, 0.55) 100%);
}

.play-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  padding: 9px 16px 9px 9px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.play-badge .play-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.play-icon svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

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

  .hero-media {
    transform: none;
  }
}

/* ---------- Sektioner ---------- */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-head {
  max-width: 44em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head .lead {
  margin-top: 14px;
}

.section.alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Filmerna ---------- */

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

.film {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  padding: clamp(14px, 2vw, 22px);
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.film-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  align-self: start;
}

.film-media video {
  width: 100%;
  aspect-ratio: 1920 / 870;
  background: var(--navy-deep);
}

.film-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 4px 6px 0;
}

.film-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.film-index::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.film-copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.film-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.film-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--sky-line);
  border-radius: 999px;
  background: var(--sky);
  color: var(--accent-strong);
  padding: 4px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.film-meta svg {
  width: 14px;
  height: 14px;
}

.film-copy p {
  color: var(--muted);
}

.film-points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.film-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 0.97rem;
}

.film-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%230876b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.film-actions {
  margin-top: auto;
  padding-top: 6px;
}

.film-media .film-error {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.film-media video > p {
  color: #fff;
  padding: 14px;
}

.film.is-playing .film-media {
  box-shadow: 0 0 0 3px var(--accent);
}

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

  .film-copy {
    padding: 0 4px 6px;
  }
}

/* ---------- Arbetsflödet ---------- */

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steg;
}

.flow-steps li {
  position: relative;
  counter-increment: steg;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
  padding: 22px 18px 20px;
}

.flow-steps li::before {
  content: counter(steg);
  position: absolute;
  top: -12px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.flow-steps .step-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--sky-line);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.flow-steps strong {
  display: block;
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-steps span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.flow-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  color: var(--heading);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .flow-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Varför BV Flow ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
}

.value-card .value-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}

.value-icon svg {
  width: 26px;
  height: 26px;
}

.value-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.value-card::after {
  content: "";
  width: 40px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.stat-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  border-radius: var(--radius);
  background: var(--sky);
  padding: 22px 26px;
}

.stat-band .stat {
  display: grid;
  justify-items: end;
  text-align: right;
}

.stat-band .stat strong {
  color: var(--accent-strong);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-band .stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-band p {
  color: var(--heading);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
}

.stat-band p small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.type-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 26px;
}

.type-chips-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.type-chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Utmaningen i dag (slide 03) - inledning till arbetsflödet. */
.challenge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 0;
  list-style: none;
}

.challenge li {
  border: 1px solid var(--line);
  border-left: 4px solid #c9a24a;
  border-radius: var(--radius-sm);
  background: var(--ground);
  padding: 16px 18px;
}

.challenge strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
}

.challenge span {
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

  .stat-band {
    grid-template-columns: 1fr;
  }

  .stat-band .stat {
    justify-items: start;
    text-align: left;
  }
}

/* ---------- Avslutning ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
}

.cta-band .waves {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 160px;
  opacity: 0.35;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.cta-band .eyebrow {
  color: #7cc4f5;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .lead {
  color: rgba(255, 255, 255, 0.82);
}

.cta-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cta-points li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
}

.cta-points .num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}

.cta-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.97rem;
}

.cta-points strong {
  display: block;
  color: #fff;
}

.cta-points span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sidfot ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 22px 0;
  font-size: 0.88rem;
}

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

.footer-inner strong {
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner a {
  color: #9fd0f5;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}
