/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Without the padding every anchor landed with its first ~73px tucked under
   the sticky header, so a nav click looked like it had overshot. */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  position: relative;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* A full-viewport film-grain layer used to sit here (position: fixed, z-index
   999, mix-blend-mode: overlay). It was removed, not restyled: a blended layer
   covering the whole viewport makes the browser re-composite the entire screen
   on every repaint, which roughly halved the frame rate everywhere on the page
   (~37ms/frame with it, ~20ms without) — most noticeable on the animated
   timeline in "Så funkar det". Measuring what it actually drew showed it was
   invisible: over the dark sections the rendered pixels were identical with and
   without it, and over the light sections it moved the mean by 0.03/255. All
   cost, no picture. If grain is ever wanted back, it needs a visible opacity
   without mix-blend-mode, which does tint white surfaces grey. */

/* ---------- Design tokens (true, neutral black & white) ---------- */
:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #6e6e6e;
  --border: #e5e5e5;

  --bg-dark: #050505;
  --text-invert: #ffffff;
  --muted-invert: #9a9a9a;
  --border-dark: #272727;

  /* One motion language for the whole site. --ease leaves fast and settles
     slowly, which suits things arriving on screen; --ease-soft is symmetric
     and reads better for hovers, which have to feel the same going out as
     coming in. Durations are tokens too, so nothing drifts to its own
     near-miss timing. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-hover: 0.32s;
  --dur-reveal: 0.8s;
}

/* Follows the OS/phone light-or-dark setting automatically (no toggle).
   The site already alternates "light" and "dark" sections as a deliberate
   design rhythm in light mode (white vs. near-black). In dark mode that
   rhythm is kept, just expressed as two dark shades instead of white/black
   so nothing ever forces a blinding white panel on a dark-mode screen. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --text: #f2f2f0;
    --muted: #a3a3a0;
    --border: #2c2c2a;

    --bg-dark: #000000;
  }
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 128px 0; }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-invert);
}
.section-dark p { color: var(--muted-invert); }

.kicker {
  display: flex;
  align-items: center;
  /* It's a <p>, so without this it inherits the 46ch reading measure meant
     for body copy. In sections wider than that the label was centring
     inside a 416px box pinned to the left edge rather than in the section,
     which left "Så funkar det" and "Kontakt" visibly off-centre. */
  max-width: none;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 20px;
}
.section-dark .kicker { color: var(--muted-invert); }

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.08;
}
h2 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 18px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--muted); margin: 0 0 16px; max-width: 46ch; }

/* ---------- Reveal-on-scroll ----------
   Content settles into place rather than just sliding up: a soft blur
   resolves into focus alongside a gentle scale + rise, which reads as
   considerably more "crafted" than a plain fade. */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  filter: blur(7px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease), filter var(--dur-reveal) var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.visible { opacity: 1; transform: none; filter: blur(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-hover) var(--ease-soft), background var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft), box-shadow var(--dur-hover) var(--ease-soft);
  will-change: transform;
}
/* Mouse users get the transform driven frame-by-frame by the JS lerp loop
   (see js/script.js) instead of a CSS transition, so the two don't fight
   and cause jitter. Touch/reduced-motion users keep the plain CSS transition
   above for a smooth :hover fallback. */
.fine-pointer .btn { transition: background var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft), box-shadow var(--dur-hover) var(--ease-soft); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.45); }
.btn-primary.btn-invert {
  background: var(--bg);
  color: var(--bg-dark);
}
/* The outline is derived from the text colour rather than the hairline
   token, so it keeps the same visual weight against every background the
   button sits on. The flat --border was almost invisible in dark mode. */
.btn-ghost {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  border-color: color-mix(in srgb, var(--text) 26%, transparent);
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.btn-ghost:hover { color: var(--bg); border-color: var(--text); }
.btn-ghost:hover::before { transform: scaleX(1); }
.section-dark .btn-ghost {
  color: var(--text-invert);
  border-color: var(--border-dark);
  border-color: color-mix(in srgb, var(--text-invert) 28%, transparent);
}
.section-dark .btn-ghost::before { background: var(--text-invert); }
.section-dark .btn-ghost:hover { color: var(--bg-dark); border-color: var(--text-invert); }

/* ---------- Header ---------- */
/* No backdrop-filter here. A blurred backdrop on a sticky bar is re-rendered
   on every frame the page produces — including frames driven by animations
   nowhere near the header — and it was the single biggest source of dropped
   frames on the site (~18ms/frame with it, ~16.7ms without, and every long
   frame in the measurement disappeared once it was gone). Raising the
   background to 95% keeps content from bleeding through without it; the
   frosted version also smeared the dark section underneath into a grey haze,
   so this reads cleaner as well. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-hover) var(--ease-soft);
}
.site-header.scrolled { box-shadow: 0 16px 32px -24px rgba(0, 0, 0, 0.25); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; }
.logo-mark {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--text);
  color: var(--bg);
  border-radius: 4px;
  font-size: 13px;
}
.nav { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: 14px; }
.nav a:not(.nav-cta) { position: relative; color: var(--muted); transition: color var(--dur-hover) var(--ease-soft); }
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--text);
  transition: width var(--dur-hover) var(--ease-soft);
}
.nav a:not(.nav-cta):hover { color: var(--text); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav a.active:not(.nav-cta) { color: var(--text); }
.nav a.active:not(.nav-cta)::after { width: 100%; }
/* Carried only .btn before, which sets a transparent border and no
   background — so the header's main call to action rendered as bare bold
   text with no button affordance at all. It's a real filled pill now. */
.nav-cta.btn {
  padding: 11px 22px;
  font-size: 12px;
  background: var(--text);
  color: var(--bg);
}
.nav-cta.btn:hover { box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.45); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 20px; height: 1.5px;
  background: var(--text);
}

/* ---------- Hero ---------- */
.hero { padding: 140px 0 120px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); margin-bottom: 24px; }
.hero-lead { font-size: 18px; max-width: 40ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Varför ---------- */
.varfor-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.varfor-inner .kicker { justify-content: center; }
.varfor-inner p { margin-left: auto; margin-right: auto; }

/* ---------- Om oss ---------- */
.om-oss-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.om-oss-inner .kicker { justify-content: center; }
.om-oss-inner > p { margin-left: auto; margin-right: auto; }

.founders {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 40px;
}
.founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  filter: blur(6px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease), filter var(--dur-reveal) var(--ease);
}
.founders.reveal-group.visible .founder { opacity: 1; transform: none; filter: blur(0); }
.founders.reveal-group.visible .founder:nth-child(1) { transition-delay: 0s; }
.founders.reveal-group.visible .founder:nth-child(2) { transition-delay: 0.15s; }
.founder-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
}
.founder-name { font-weight: 600; font-size: 15px; }
.founder-role { display: block; margin-top: -4px; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---------- Product photography ---------- */
.hero-visual, .product-visual { display: flex; align-items: center; justify-content: center; height: 400px; }
.product-visual { height: 360px; }

.device-frame {
  position: relative;
  width: clamp(170px, 22vw, 230px);
  aspect-ratio: 562 / 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-hover) var(--ease-soft);
}
.fine-pointer .device-frame { transition: none; }
.device-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle, black 18%, transparent 62%);
  mask-image: radial-gradient(circle, black 18%, transparent 62%);
}
.section-dark .device-frame::before { background-image: radial-gradient(var(--border-dark) 1px, transparent 1px); }
/* The softness comes from extra gradient stops rather than filter: blur().
   breathe animates transform, and scaling a blurred element forces the
   browser to re-rasterize the blur on every single frame; a plain gradient
   scales on the compositor for free. */
.device-frame::after {
  content: '';
  position: absolute;
  width: 140px; height: 60px;
  bottom: 6px;
  background: radial-gradient(ellipse, rgba(10, 10, 10, 0.19) 0%, rgba(10, 10, 10, 0.08) 45%, transparent 78%);
  animation: breathe 4.5s ease-in-out infinite;
}
.section-dark .device-frame::after { background: radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.06) 45%, transparent 78%); }

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.hero-card-wrap { display: flex; flex-direction: column; align-items: center; }

/* Flippable hero card: a real perspective/preserve-3d flip rather than a
   fake cross-fade, so it reads as an actual object turning over. The back
   is a plain placeholder in the card's own black (sampled from the photo,
   #242424) until real photography of the back exists. */
.card-flip {
  all: unset;
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(170px, 22vw, 230px);
  cursor: pointer;
  perspective: 1400px;
}
.card-flip-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 562 / 900;
  transform-style: preserve-3d;
  transform: rotate(-5deg);
  transition: transform 0.85s var(--ease-soft);
}
.card-flip.flipped .card-flip-inner { transform: rotate(-5deg) rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.45);
}
.section-dark .card-face { box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.7); }

.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-back {
  transform: rotateY(180deg);
  background: #242424;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-back svg { width: 30%; height: 30%; color: rgba(255, 255, 255, 0.45); }

.flip-hint {
  display: block;
  margin-top: 16px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Two-card stack for the product section */
.card-stack { position: relative; width: 260px; height: 300px; transition: transform var(--dur-hover) var(--ease-soft); }
.fine-pointer .card-stack { transition: none; }
.card-stack::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle, black 18%, transparent 62%);
  mask-image: radial-gradient(circle, black 18%, transparent 62%);
}
.card-stack::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 150px;
  height: 60px;
  margin-left: -75px;
  background: radial-gradient(ellipse, rgba(10, 10, 10, 0.19) 0%, rgba(10, 10, 10, 0.08) 45%, transparent 78%);
  animation: breathe 4.5s ease-in-out infinite;
}
.stack-photo {
  position: absolute;
  width: clamp(140px, 20vw, 185px);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, 0.3);
}
/* Which card sits on top is driven by the colour swatches below the copy.
   Both cards share one origin and are placed purely with transforms, so
   swapping them animates as a single smooth motion instead of two
   properties fighting each other. */
.stack-photo { top: 0; left: 0; transition: transform var(--dur-reveal) var(--ease), box-shadow var(--dur-reveal) var(--ease); }
.card-stack[data-active='black'] .stack-white,
.card-stack[data-active='white'] .stack-black {
  transform: translate(4px, 6px) rotate(-9deg);
  z-index: 1;
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.28);
}
.card-stack[data-active='black'] .stack-black,
.card-stack[data-active='white'] .stack-white {
  transform: translate(76px, 46px) rotate(6deg);
  z-index: 2;
}

/* ---------- Så funkar det ---------- */
/* Step-by-step timeline. On desktop the three steps sit side by side,
   joined by a single line that draws itself across as the section comes
   into view; the bubbles share the section's background colour, so they
   mask that line where they sit and it reads as connected segments.
   Each step's bubble lands first, then its text — so the sequence reads
   as a progression rather than three things appearing at once. */
.hur-inner { max-width: 940px; margin: 0 auto; text-align: center; }
.hur-inner .kicker { justify-content: center; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: var(--border-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
  transition-delay: 0.15s;
}
.timeline.visible::before { transform: scaleX(1); }

.tl-step { position: relative; }

.tl-bubble {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  background: var(--bg-dark);
  color: var(--text-invert);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  filter: blur(5px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease),
              filter var(--dur-reveal) var(--ease), background var(--dur-hover) var(--ease-soft),
              color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft);
}
.tl-bubble svg { width: 26px; height: 26px; }
.timeline.visible .tl-bubble { opacity: 1; transform: none; filter: blur(0); }
.tl-step:hover .tl-bubble {
  background: var(--text-invert);
  color: var(--bg-dark);
  border-color: var(--text-invert);
}

.tl-body {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease), filter var(--dur-reveal) var(--ease);
}
.timeline.visible .tl-body { opacity: 1; transform: none; filter: blur(0); }

.tl-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-invert);
  margin-bottom: 7px;
}
.tl-body h3 { color: var(--text-invert); margin-bottom: 6px; }
.tl-body p { margin: 0 auto; font-size: 14.5px; max-width: 30ch; }

/* Sequenced timings: bubble, then its text, step after step */
.timeline.visible .tl-step:nth-child(1) .tl-bubble { transition-delay: 0s; }
.timeline.visible .tl-step:nth-child(1) .tl-body { transition-delay: 0.1s; }
.timeline.visible .tl-step:nth-child(1)::before { transition-delay: 0.2s; }
.timeline.visible .tl-step:nth-child(2) .tl-bubble { transition-delay: 0.22s; }
.timeline.visible .tl-step:nth-child(2) .tl-body { transition-delay: 0.32s; }
.timeline.visible .tl-step:nth-child(2)::before { transition-delay: 0.42s; }
.timeline.visible .tl-step:nth-child(3) .tl-bubble { transition-delay: 0.44s; }
.timeline.visible .tl-step:nth-child(3) .tl-body { transition-delay: 0.54s; }

/* A small ambient loop on the two most tactile icons, once the timeline
   has revealed: the NFC bubble sends out a signal ring, and the star
   icon gives a warm little glow — the "how it works" story told right
   where it's explained, instead of on the product photo. */
.tl-step:nth-child(1) .tl-bubble::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--text-invert);
  opacity: 0;
}
.timeline.visible .tl-step:nth-child(1) .tl-bubble::after {
  animation: iconRingPulse 2.4s ease-out 1.1s infinite;
}
@keyframes iconRingPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* The glow is a separate layer whose opacity animates, rather than an
   animated filter: drop-shadow on the icon. drop-shadow has to re-blur the
   icon from scratch on every frame; fading a ready-made gradient is handled
   by the compositor. It sits behind the icon via a negative z-index, which
   still paints above the bubble's own background. */
.tl-step:nth-child(3) .tl-bubble::after {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 55, 0.5) 0%, rgba(255, 205, 55, 0.18) 45%, rgba(255, 205, 55, 0) 72%);
  opacity: 0;
  pointer-events: none;
}
.timeline.visible .tl-step:nth-child(3) .tl-bubble::after {
  animation: iconGlowFade 2.4s ease-in-out 1.3s infinite;
}
@keyframes iconGlowFade {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.timeline.visible .tl-step:nth-child(3) .tl-bubble svg {
  animation: iconStarColor 2.4s ease-in-out 1.3s infinite;
}
@keyframes iconStarColor {
  0%, 100% { color: var(--text-invert); }
  50% { color: #ffcd37; }
}

/* ---------- Produkt ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

/* Each point carries a heading and a line that actually explains it. As three
   bare phrases the list had nothing to read and looked like unfilled
   placeholder rows, whatever marker sat in front of them. */
.feature-list { margin-top: 30px; border-top: 1px solid var(--border); }
.feature-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  filter: blur(6px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease), filter var(--dur-reveal) var(--ease);
}
.feature-list h3 {
  font-size: 15.5px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-bottom: 5px;
}
.feature-list p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
}
.feature-list.reveal-group.visible li { opacity: 1; transform: none; filter: blur(0); }
.feature-list li:nth-child(1) { transition-delay: 0s; }
.feature-list li:nth-child(2) { transition-delay: 0.1s; }
.feature-list li:nth-child(3) { transition-delay: 0.2s; }
/* The nudge on hover moves an inner wrapper, not the row. Animating
   padding-left re-ran layout on every frame; a transform is handled by the
   compositor. It also has to live on a child, because the row's own
   transform is already spoken for by the reveal. */
.fl-row { transition: transform var(--dur-hover) var(--ease-soft); }
.feature-list li:hover .fl-row { transform: translateX(10px); }
/* No marker in front of the rows at all — not numbers (these are independent
   facts, not an ordered sequence; the steps under "Så funkar det" own the
   numbering) and not ticks. With a heading per row the hairline already
   separates them, and a marker would just add noise. */

/* Colour options — the two finishes we actually sell, shown as real
   swatches rather than buried in a sentence. Picking one brings that
   card to the front of the stack. */
.finish-row { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.finish-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.finish-swatches { display: flex; gap: 10px; }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px 9px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft);
}
.swatch:hover, .swatch.is-active { color: var(--text); border-color: var(--text); }
.swatch-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.swatch[data-color='black'] .swatch-dot { background: #141414; border-color: transparent; }
.swatch[data-color='white'] .swatch-dot { background: #ffffff; }

@media (prefers-color-scheme: dark) {
  /* A near-black dot on a dark panel needs a ring to read as an object;
     a white dot no longer does. */
  .swatch[data-color='black'] .swatch-dot { background: #0d0d0d; border-color: rgba(255, 255, 255, 0.25); }
  .swatch[data-color='white'] .swatch-dot { border-color: transparent; }
}

/* ---------- Kontakt ---------- */
.contact-inner { text-align: center; }
.contact-inner .kicker { justify-content: center; }
.contact-inner h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.contact-lead { margin: 0 auto 48px; }

/* Two ways to reach us, each its own target rather than a row in a table.
   The whole card is the link, so the tap area is the card and not just the
   few pixels of text — which matters most on a phone, where these are the
   two things a visitor actually came for. */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 620px;
  margin: 0 auto 44px;
}
.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  filter: blur(6px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease), filter var(--dur-reveal) var(--ease);
}
.contact-methods.reveal-group.visible .contact-method { opacity: 1; transform: none; filter: blur(0); }
.contact-methods.visible .contact-method:nth-child(2) { transition-delay: 0.1s; }

.cm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  color: var(--text-invert);
  transition: background var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft);
}
.cm-icon svg { width: 23px; height: 23px; }
.contact-method:hover .cm-icon {
  background: var(--text-invert);
  color: var(--bg-dark);
  border-color: var(--text-invert);
}

.cm-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-invert);
  margin-bottom: 7px;
}
.cm-value {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-invert);
  overflow-wrap: anywhere;
}

.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { padding: 26px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner a { font-weight: 600; color: var(--text); transition: opacity var(--dur-hover) var(--ease-soft); }
.footer-inner a:hover { opacity: 0.6; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; height: auto; padding: 20px 0 36px; }
  .kicker { justify-content: center; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { order: -1; height: auto; padding: 20px 0 36px; }
  /* Too narrow for three columns side by side: the timeline turns vertical,
     with the connecting line running down through the bubbles instead. */
  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 44px;
    text-align: left;
  }
  .timeline::before { display: none; }

  .tl-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    padding-bottom: 34px;
  }
  .tl-step:last-child { padding-bottom: 0; }
  .tl-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 26px;
    margin-left: -0.5px;
    top: 58px;
    bottom: 6px;
    width: 1px;
    background: var(--border-dark);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.7s var(--ease);
  }
  .timeline.visible .tl-step:not(:last-child)::before { transform: scaleY(1); }

  .tl-bubble { width: 52px; height: 52px; margin: 0; }
  .tl-bubble svg { width: 22px; height: 22px; }
  .tl-body { padding-top: 4px; }
  .tl-body p { margin: 0; max-width: 38ch; }

  .founders { gap: 36px; }
}

@media (max-width: 720px) {
  /* The sticky, translucent header looked broken on mobile: with the header
     pinned over content for the whole scroll, its partly transparent
     background let text from whatever section was underneath show through
     and visually collide with the logo/menu button. Simplest, most robust
     fix: don't pin it on small screens at all — it scrolls away with the
     page like a normal header, and gets a fully solid background so there
     is never anything to see through even for the instant it's on screen. */
  /* The header scrolls away with the page here, so anchors don't need to
     clear it — the desktop offset would just leave a gap above each target. */
  html { scroll-padding-top: 16px; }

  .site-header {
    position: relative;
    background: var(--bg);
  }
  .site-header.scrolled { box-shadow: none; }

  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .section { padding: 84px 0; }
  .hero { padding: 100px 0 80px; }

  .tl-step { grid-template-columns: 46px 1fr; gap: 16px; padding-bottom: 30px; }
  .tl-bubble { width: 46px; height: 46px; }
  .tl-bubble svg { width: 20px; height: 20px; }
  .tl-step:not(:last-child)::before { left: 23px; top: 52px; }
}

/* On phones the two labels are a few pixels too wide to sit side by side,
   so they used to wrap into a ragged one-per-row stack of different
   widths. Below this width they stack deliberately instead, at equal full
   width, which reads as a designed pair rather than an accident. */
@media (max-width: 520px) {
  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn,
  .contact-actions .btn { width: 100%; }

  /* Side by side the e-mail address has to break mid-word on a phone;
     stacked it gets the full width and stays on one line. */
  .contact-methods { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Dark mode: hardcoded colors the --tokens above can't reach ----------
   Everything using var(--bg)/var(--text)/etc. already re-themes itself from
   the :root override further up. These are the few places a literal
   rgba(255,255,255,…)/rgba(0,0,0,…) was used instead (desktop's translucent
   header, and the glow behind product photos on what are "light" sections
   in light mode) — they'd otherwise stay light-mode-colored forever. */
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(22, 22, 22, 0.95); }
  .device-frame::after { background: radial-gradient(ellipse, rgba(255, 255, 255, 0.16) 0%, transparent 72%); }
}
