/* ============================================================
   Perks: startsida
   Mobile-first. Brytpunkt: 768px (mobil ≤768, desktop >768).
   Alla värden kommer från design-handoffens spec.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

a:hover {
  color: var(--coral-2);
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip-link:focus-visible {
  left: 0;
  color: var(--bone);
}

.container {
  max-width: calc(1280px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Ankare hamnar under sticky header (68px) */
[id] {
  scroll-margin-top: 68px;
}

/* ---------- Typografi ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 16px;
}

.on-dark .eyebrow {
  color: inherit;
  opacity: 0.6;
}

h1,
h2 {
  font-family: var(--font-display);
  font-feature-settings: "ss01";
  margin: 0;
}

.h1 {
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.h2 {
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-feature-settings: "ss01";
  font-size: var(--fs-lead);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 30ch;
}

.body-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  margin: 0;
}

.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

.on-dark .body {
  color: var(--bone-70);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---------- Logotyp (live text, per brand guidelines) ---------- */
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-feature-settings: "ss01";
  letter-spacing: -0.045em;
  line-height: 0.82;
  color: var(--ink);
  display: inline-block;
}

.logo:hover {
  color: var(--ink);
}

.logo-dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--coral);
  margin-left: 0.035em;
  margin-bottom: 0.06em;
}

.logo--header {
  font-size: 40px;
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  font-family: var(--font-text);
  font-weight: 500;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s,
    transform 0.12s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--coral-2);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--stone);
}

.btn--secondary:hover {
  background: var(--sand);
  color: var(--ink);
}

.btn--lg {
  font-size: 16px;
  line-height: 1.5;
  padding: 14px 28px;
}

.btn--secondary.btn--lg {
  padding: 12.5px 26.5px; /* kompenserar 1.5px kant, samma 52px höjd */
}

.btn--sm {
  font-size: 14px;
  line-height: 1.3;
  padding: 8.5px 18px;
}

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bone);
  border-bottom: 1px solid var(--stone);
}

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

.nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1.5px solid var(--stone);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: border-color 0.15s;
}

.burger[aria-expanded="true"] {
  border-color: var(--ink);
}

.burger-glyph {
  display: block;
  width: 18px;
  height: 10px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

@media (min-width: 769px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
  }

  .nav-link {
    padding: 8px 12px;
    border-radius: var(--r-pill);
  }

  .nav-link:hover {
    background: var(--sand);
    color: var(--ink);
  }

  .burger {
    display: none;
  }
}

/* Mobilmeny: öppen designfråga i handoffen, formgiven i sidans
   formspråk: bone-panel under headern, stone-hårlinjer, CTA längst ned. */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bone);
  border-bottom: 1px solid var(--stone);
  padding: 8px var(--gutter) 20px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-link {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--stone);
}

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

/* ---------- Sektioner ---------- */
.section {
  padding-block: var(--sec-pad-y);
}

.on-dark {
  background: var(--ink);
  color: var(--bone);
}

.bg-white {
  background: var(--white);
  border-bottom: 1px solid var(--stone);
}

.bg-sand {
  background: var(--sand);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

/* Delad tvåspalt: 0.42fr 0.58fr på desktop */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--split-gap);
}

.split-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 62ch;
}

@media (min-width: 769px) {
  .split {
    grid-template-columns: 0.42fr 0.58fr;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--hero-pad-t);
  padding-bottom: var(--sec-pad-y);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hero-gap);
  align-items: end;
}

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

.hero-media {
  position: relative;
  height: var(--hero-img-h);
  overflow: hidden;
  background: var(--sand);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
}

.hero-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: var(--bone);
}

@media (min-width: 769px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---------- Statsband ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
}

.stat {
  padding: 30px 0;
}

.stat:not(:last-child) {
  border-bottom: 1px solid var(--white-line-12);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-feature-settings: "ss01";
  font-size: var(--fs-big-num);
  letter-spacing: -0.045em;
  line-height: 1;
}

.stat-label {
  opacity: 0.62;
  margin-top: 8px;
}

@media (min-width: 769px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat:not(:last-child) {
    border-bottom: 0;
    border-right: 1px solid var(--white-line-12);
  }

  .stat + .stat {
    padding-left: 32px;
  }
}

/* ---------- Tile-grid med 3px stone-hårlinjer ---------- */
.list-label {
  margin: var(--list-gap-t) 0 16px;
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  background: var(--stone);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  background: var(--white);
  padding: 26px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tile-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--coral);
}

.tile-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-feature-settings: "ss01";
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (min-width: 769px) {
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Partners: chips + bildtiles + pull quote ---------- */
.section-intro-h2 {
  margin-bottom: 20px;
  max-width: 24ch;
}

.section-intro-lead {
  margin-bottom: 28px;
  max-width: 62ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--list-gap-t);
  padding: 0;
  list-style: none;
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: var(--r-pill);
}

.chip--coral { background: var(--coral); color: var(--white); }
.chip--forest { background: var(--forest); color: var(--ink); }
.chip--sky { background: var(--sky); color: var(--ink); }
.chip--sunny { background: var(--sunny); color: var(--ink); }
.chip--berry { background: var(--berry); color: var(--bone); }
.chip--blush { background: var(--blush); color: var(--ink); }

.img-tiles {
  margin-bottom: var(--list-gap-t);
}

.img-tile {
  position: relative;
  height: var(--tile-h);
  overflow: hidden;
}

.img-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pull-quote {
  border-top: 1px solid var(--stone);
  padding-top: 24px;
}

.pull-quote .eyebrow {
  margin: 0;
}

.pull-quote-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-feature-settings: "ss01";
  font-size: var(--fs-pull);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 40ch;
}

/* ---------- Plattform: flödesdiagram ---------- */
.split--platform {
  margin-bottom: var(--list-gap-t);
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.flow-card {
  flex: 1 1 0;
  align-self: stretch;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  padding: 24px;
}

.flow-card--dark {
  background: var(--ink);
  color: var(--bone);
  border: 0;
}

.flow-kicker {
  color: var(--mid);
}

.flow-card--dark .flow-kicker {
  color: inherit;
  opacity: 0.6;
}

.flow-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-feature-settings: "ss01";
  font-size: 22px;
  letter-spacing: -0.025em;
  margin-top: 10px;
}

.flow-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 8px;
}

.flow-card--dark .flow-sub {
  color: var(--bone-70);
}

.flow-arrow {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--coral);
}

.flow-arrow::before {
  content: "↓";
}

@media (min-width: 769px) {
  .flow {
    flex-direction: row;
    align-items: center;
  }

  .flow-arrow {
    padding: 0 4px;
  }

  .flow-arrow::before {
    content: "→";
  }
}

/* ---------- Kontakt ---------- */
.contact-h2 {
  font-weight: 500;
  font-size: var(--fs-h1-sm);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  max-width: 26ch;
}

.contact-form {
  max-width: 620px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-row[hidden] {
  display: none;
}

.input {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--input-fill);
  border: 1.5px solid var(--input-line);
  border-radius: var(--r-pill);
  color: var(--bone);
  font-family: var(--font-text);
  font-size: 15px;
  padding: 15px 22px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder {
  color: var(--bone-60);
}

.input:focus {
  border-color: var(--coral);
  box-shadow: var(--ring-coral);
}

.input[aria-invalid="true"] {
  border-color: var(--coral-2);
}

.form-status {
  width: 100%;
  margin: 12px 0 0;
}

.form-status:empty {
  display: none;
}

.form-status--error {
  font-size: 14px;
  color: var(--coral);
}

.form-status--success {
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--bone);
}

.form-status a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status a:hover {
  color: var(--coral);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
