/* BigUp – shared styles for the Swedish pages.
   Page-only rules live in assets/css/page-<name>.css. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin.woff2) format('woff2-variations');
  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-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2-variations');
  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;
}

:root {
  --ink: #262d40;
  --slate-700: #373e53;
  --slate-600: #4e526d;
  --slate-500: #565d76;
  --slate-400: #666a84;
  --meta: #6b6f89;
  --placeholder: #8a8ea6;
  --border: #e3e8f3;
  --border-strong: #d3d9e8;
  --divider: #c9cee0;
  --bg-page: #f7f9ff;
  --bg-light: #eff4ff;
  --bg-tint: #eef1f8;
  --bg-tint-2: #f2f5fc;
  --chip: #eef2fb;
  --white: #fff;
  --cyan: #49edff;
  --cyan-light: #92f4ff;
  --on-dark: #dfe5f5;
  --green: #0b7a5f;
  --green-hover: #086149;
  --green-app: #0b7d61;
  --lime: #c4ff00;
  --mint: #8affab;
  --focus-border: #20306e;
  --warn-bg: #fff4e5;
  --warn: #ffcc00;
  --warn-text: #6b4300;
  --error: #a3262f;

  --bar: linear-gradient(154deg, #373e53, #565d76);
  --tile: hsl(226 16% 40%);
  --shadow-card: 0 1px 2px rgba(38, 45, 64, .05), 0 14px 40px rgba(38, 45, 64, .07);
  --shadow-raised: 0 1px 2px rgba(38, 45, 64, .05), 0 18px 44px rgba(38, 45, 64, .08);
  --shadow-cta: 0 10px 30px rgba(73, 237, 255, .22);
  --shadow-pop: 0 20px 50px rgba(38, 45, 64, .22);
  --shadow-modal: 0 30px 80px rgba(0, 0, 0, .35);
  --ring: 0 0 0 3px rgba(73, 237, 255, .35);

  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 112px);
  --ease: .18s ease;
}

/* Base */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

a {
  color: var(--green);
}

a:hover {
  color: var(--green-hover);
}

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

::selection {
  background: var(--cyan-light);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

.page {
  min-height: 100vh;
  overflow-x: clip;
}

.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  color: var(--ink);
}

/* Layout */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.bg-navy {
  background: var(--ink);
  color: #fff;
}

.bg-page {
  background: var(--bg-page);
}

.bg-light {
  background: var(--bg-light);
}

.bg-white {
  background: #fff;
}

/* Type */

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}

.bg-navy .eyebrow,
.eyebrow--dark {
  color: var(--cyan-light);
}

.h-hero,
.h-intro,
.h2,
.h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
}

.h-hero {
  max-width: 11ch;
  font-stretch: 70%;
  font-size: clamp(58px, 10.5vw, 150px);
  line-height: .88;
  letter-spacing: -.02em;
}

.h-intro {
  max-width: 15ch;
  font-stretch: 72%;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: .9;
  letter-spacing: -.02em;
}

.h2 {
  max-width: 16ch;
  font-stretch: 75%;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: .95;
  letter-spacing: -.015em;
  color: var(--ink);
}

.bg-navy .h2 {
  color: #fff;
}

.h3 {
  font-stretch: 85%;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
}

.lead {
  margin: 0;
  max-width: 520px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--slate-600);
}

.bg-navy .lead {
  color: var(--divider);
}

.lead--hero {
  max-width: 560px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--on-dark);
}

.text-gradient {
  background: linear-gradient(90deg, #49edff 0%, #8affab 55%, #c4ff00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section head: eyebrow + heading on the left, lead on the right */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 64px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head__title {
  flex: 1 1 440px;
}

.section-head .lead {
  flex: 1 1 360px;
}

/* Inner-page intro (navy, under the transparent header) */

.intro {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 88% 10%, rgba(73, 237, 255, .12), transparent 60%),
    radial-gradient(40% 60% at 70% 100%, rgba(196, 255, 0, .06), transparent 70%);
  pointer-events: none;
}

.intro__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: clamp(150px, 15vw, 196px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.intro .eyebrow {
  margin: 0;
}

.intro__lead {
  margin: 0;
  max-width: 700px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--divider);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: var(--cyan-light);
  color: var(--ink);
}

.btn--dark {
  min-height: 52px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
}

.btn--dark:hover {
  background: var(--slate-600);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 1px solid #c9cfe0;
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--bg-light);
  color: var(--ink);
}

.btn--sm {
  min-height: 46px;
  padding: 0 18px;
  gap: 10px;
  font-size: 15px;
}

.btn--md {
  min-height: 54px;
  padding: 0 20px;
  gap: 12px;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* App-style card */

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.card--raised {
  box-shadow: var(--shadow-raised);
}

.card__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bar);
  color: #fff;
}

.card__bar-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.card__title {
  font-size: 15px;
  font-weight: 600;
}

.card__sub {
  font-size: 13px;
  color: var(--divider);
}

.card__badge {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.card__badge--lime {
  background: var(--lime);
  color: var(--ink);
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 28px);
}

/* Icon tiles */

.icon-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
}

.tool-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--tile);
}

.card__bar .tool-tile {
  border: 1px solid rgba(255, 255, 255, .16);
}

.tool-tile img {
  width: 80%;
  height: 80%;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-tint);
  color: var(--ink);
}

/* Screenshot frame */

.shot {
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 1226;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-tint-2);
}

/* Forms */

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.label small {
  font-weight: 400;
  color: var(--meta);
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--ease), box-shadow var(--ease);
}

textarea.input {
  min-height: 140px;
  resize: vertical;
}

.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: var(--ring);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--slate-600);
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.form-fail {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fdecee;
  color: var(--error);
  font-size: 15px;
}

.form-done {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 12px;
  background: var(--bg-tint-2);
  border: 1px solid var(--border);
}

.form-done h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 28px;
  line-height: 1.05;
}

.form-done p {
  margin: 0;
  color: var(--slate-600);
}

.bigup-turnstile:empty {
  display: none;
}

.notice {
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 4px solid var(--warn);
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 15px;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: #fff;
}

.site-header__fade,
.site-header__solid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.site-header__fade {
  background: linear-gradient(180deg, rgba(38, 45, 64, .88) 0%, rgba(38, 45, 64, .5) 55%, rgba(38, 45, 64, 0) 100%);
}

.site-header__solid {
  opacity: 0;
  background: rgba(38, 45, 64, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(15, 20, 35, .18);
}

.site-header.is-solid .site-header__fade {
  opacity: 0;
}

.site-header.is-solid .site-header__solid {
  opacity: 1;
}

.site-header__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 104px;
  transition: height .3s ease;
}

.site-header__logo {
  flex: none;
  display: flex;
  align-items: center;
}

.site-header__logo img {
  width: auto;
  height: 60px;
  transition: height .3s ease;
}

.site-header.is-solid .site-header__row {
  height: 64px;
}

.site-header.is-solid .site-header__logo img {
  height: 38px;
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--cyan-light);
}

.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.site-header__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header__lang {
  color: var(--divider);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-header__lang:hover {
  color: var(--cyan-light);
}

.site-header__cta {
  min-height: 44px;
  padding: 0 16px;
  gap: 10px;
  font-size: 15px;
  box-shadow: none;
}

.site-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.site-header__burger path {
  transition: d .2s ease;
}

.mobile-menu {
  position: relative;
  max-height: calc(100vh - 64px);
  overflow: auto;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 28px;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu__link:hover {
  color: var(--cyan-light);
}

.mobile-menu__lang {
  display: flex;
  align-items: center;
  min-height: 58px;
  color: var(--divider);
  font-size: 16px;
  text-decoration: none;
}

.mobile-menu__cta {
  justify-content: space-between;
  min-height: 54px;
  margin-top: 8px;
  padding: 0 18px;
  box-shadow: none;
}

@media (max-width: 999.98px) {
  .site-header__row {
    height: 80px;
  }

  .site-header__logo img {
    height: 48px;
  }

  .site-nav,
  .site-header__actions {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }
}

@media (min-width: 1000px) {
  .mobile-menu {
    display: none;
  }
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--divider);
}

.site-footer__inner {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 28px;
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  padding-bottom: clamp(40px, 5vw, 56px);
}

.site-footer__brand {
  flex: 1.4 1 240px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer__brand > a {
  align-self: flex-start;
}

.site-footer__brand img {
  width: auto;
  height: 60px;
}

.site-footer__slogan {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-head);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 22px;
  line-height: 1.05;
  color: #fff;
}

.site-footer__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.site-footer__ctas .btn--primary {
  box-shadow: none;
}

.site-footer__ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
}

.site-footer__ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.site-footer__col {
  flex: 1 1 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.site-footer__col h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer a:not(.btn) {
  color: var(--divider);
  text-decoration: none;
}

.site-footer a:not(.btn):hover {
  color: var(--cyan-light);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
}

.site-footer__bottom-links {
  display: flex;
  gap: 24px;
}

.site-footer .site-footer__top {
  color: #fff;
  font-weight: 600;
}

/* Cookie banner */

.cookie {
  position: fixed;
  left: clamp(8px, 2vw, 24px);
  right: clamp(8px, 2vw, 24px);
  bottom: clamp(8px, 2vw, 24px);
  z-index: 60;
  max-width: 440px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(38, 45, 64, .28);
}

.cookie[hidden] {
  display: none;
}

.cookie .card__bar {
  padding: 10px 14px;
}

.cookie .icon-tile {
  width: 32px;
  height: 32px;
}

.cookie__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 18px;
}

.cookie__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate-600);
}

.cookie__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie__buttons .btn {
  flex: 1 1 150px;
  min-height: 46px;
  padding: 0 16px;
  font-size: 15px;
}

.btn--light {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--bg-light);
  color: var(--ink);
}

/* Long-form pages with a sticky table of contents */

.toc-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 72px);
}

.toc {
  flex: 0 1 280px;
  position: sticky;
  top: 96px;
}

.toc-main {
  flex: 1 1 560px;
  min-width: 0;
}

@media (max-width: 999.98px) {
  .toc {
    position: static;
    flex-basis: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
