/* Inter, self-hosted variable font (latin + latin-ext). No runtime CDN dependency. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.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("assets/fonts/inter-latin-ext.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;
}

/* Fraunces, self-hosted variable display serif (latin). Headlines + the SEK
   figure only — body, UI and forms stay Inter. opsz + wght axes. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --color-primary: #70879b;
  --color-surface: #faf9f7;
  --color-text: #243241;
  --color-navy: #0d1f33;
  --color-action: #2f6fa3;
  --color-action-hover: #255e8d;
  --color-sand: #eee8df;
  --color-pale: #d8dde2;
  --color-success: #5e7d5a;
  --color-warning: #c58a3a;
  --color-danger: #b84e4a;
  --color-info: #6c8fae;
  --color-border: #e6e9ee;
  /* Secondary text tones, navy-tinted to stay in the brand temperature. */
  --color-text-strong: #36495b;
  --color-text-muted: #526476;
  --color-text-soft: #5b6675;
  --shadow-sm: 0 1px 2px rgba(36, 50, 65, 0.06);
  --shadow-md: 0 4px 12px rgba(36, 50, 65, 0.08);
  --shadow-lg: 0 12px 24px rgba(36, 50, 65, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container: 1180px;
  /* Type: Fraunces display serif for headlines + the SEK figure; Inter for all else. */
  --font-sans: Inter, Arial, Helvetica, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-text);
  background: var(--color-surface);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  /* Stop iOS rubber-band over-scroll from exposing content above the sticky header. */
  overscroll-behavior-y: none;
}

body::selection,
::selection {
  color: #ffffff;
  background: var(--color-action);
}

/* Fine film grain over the page content — atmosphere, not noise. Sits BELOW the
   sticky header (z-index 20) so the bar stays crisp; pointer-safe. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---- Motion primitives: reveal-on-load / on-scroll, count-up ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* staggered children */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 640ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal-group].is-in > * {
  opacity: 1;
  transform: none;
}

[data-reveal-group].is-in > *:nth-child(2) {
  transition-delay: 70ms;
}
[data-reveal-group].is-in > *:nth-child(3) {
  transition-delay: 140ms;
}
[data-reveal-group].is-in > *:nth-child(4) {
  transition-delay: 210ms;
}
[data-reveal-group].is-in > *:nth-child(5) {
  transition-delay: 280ms;
}

@keyframes leak-fill {
  to {
    transform: scaleX(1);
  }
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(47, 111, 163, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--color-navy);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 221, 226, 0.78);
  /* Opaque fallback first — nothing scrolls through behind the bar. */
  background: var(--color-surface);
}

/* Only thin the fill (for the blur effect) where backdrop-filter is supported,
   and keep it high-opacity so scrolled content never bleeds through. */
@supports (
  (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))
) {
  .site-header {
    background: rgba(250, 249, 247, 0.97);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
  }
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(100% - 48px, var(--container));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}

/* "TAKT" wordmark sized by cap height. */
.brand-word {
  height: 26px;
  width: auto;
}

/* The real "O" letterform (cropped from the logotype, counter hollowed out) with
   the compass star layered inside its counter. The O overshoots cap height a
   touch, as round letters do. */
.brand-o {
  position: relative;
  display: inline-block;
  height: 28px;
  aspect-ratio: 399 / 380;
}

.brand-o-ring {
  display: block;
  height: 100%;
  width: 100%;
}

/* Square star sized to the O's circular counter (~64% of the glyph height),
   centred on the O's optical centre. */
.brand-compass {
  position: absolute;
  top: 49.9%;
  left: 49.9%;
  width: auto;
  height: 72%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.compass-star {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* a small, calm needle nudge on hover/focus — not a full spin */
.brand:hover .compass-star,
.brand:focus-visible .compass-star {
  transform: rotate(18deg);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a {
  position: relative;
}

/* editorial underline that wipes in from the left on hover */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 1.5px;
  background: var(--color-action);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover {
  color: var(--color-navy);
}

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

.header-cta {
  color: #ffffff;
  background: var(--color-action);
  box-shadow: var(--shadow-sm);
  transition:
    background-color 160ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.header-cta:hover {
  background: var(--color-action-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.section-shell {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(620px, calc(94vh - 72px));
  overflow: hidden;
  background-color: var(--color-surface);
  isolation: isolate;
}

/* Soft radial glow behind the product, instead of a hard white panel + seam. */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  z-index: -1;
  width: 60%;
  height: 90%;
  background: radial-gradient(
    60% 60% at 70% 30%,
    rgba(47, 111, 163, 0.08),
    rgba(47, 111, 163, 0)
  );
}

/* Faint ledger grid — texture/atmosphere on the hero canvas, on-brand pale. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(13, 31, 51, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 31, 51, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 90% at 30% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000 35%, transparent 78%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: end;
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 56px 0 0;
}

.hero-copy-block {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

/* Editorial kicker — a quiet section label, not a badge. A short hairline rule
   leads it; sentence case, muted ink, modest tracking. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  flex: none;
  background: var(--color-primary);
}

/* the pilot-context footnote that replaces the hero badge */
.hero-pilot-note {
  max-width: 440px;
  margin: 20px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 21px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 60px);
  font-weight: 580;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

h2 {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 42px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
}

/* h3 stays Inter — small card/step titles read cleaner as a sans. */
h3 {
  color: var(--color-navy);
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--color-text-strong);
  font-size: 19px;
  line-height: 30px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-action);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* sheen that sweeps across on hover */
.button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-primary:hover {
  background: var(--color-action-hover);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.button-primary:hover::after {
  transform: translateX(120%);
}

.button-primary:active {
  background: var(--color-navy);
  transform: translateY(0);
}

.button-secondary {
  color: var(--color-navy);
  border-color: var(--color-pale);
  background: #ffffff;
}

.button-secondary:hover {
  border-color: var(--color-primary);
  background: #ffffff;
}

/* ---- Leak meter: the forensic SEK moment that replaces the proof boxes ---- */
.leak-meter {
  position: relative;
  max-width: 460px;
  margin: 0 0 32px;
  padding: 20px 24px 22px;
  border-left: 2px solid var(--color-danger);
  background:
    linear-gradient(
      90deg,
      rgba(184, 78, 74, 0.05),
      rgba(184, 78, 74, 0) 70%
    );
}

.leak-meter__label {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.01em;
}

.leak-meter__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

.leak-meter__sign {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-danger);
}

.leak-meter__value {
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.leak-meter__unit {
  margin-left: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-strong);
}

.leak-meter__per {
  color: var(--color-text-muted);
  font-weight: 500;
}

.leak-meter__bar {
  position: relative;
  height: 3px;
  margin: 16px 0 12px;
  border-radius: 999px;
  background: rgba(184, 78, 74, 0.14);
  overflow: hidden;
}

.leak-meter__fill {
  position: absolute;
  inset: 0;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-danger), #d77b77);
  animation: leak-fill 1400ms cubic-bezier(0.22, 1, 0.36, 1) 360ms both;
}

.leak-meter__foot {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 20px;
}

/* arrow that slides on the primary CTA */
.button span {
  position: relative;
  z-index: 1;
}

.button-arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  transform: translateX(-2px);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-primary:hover .button-arrow {
  transform: translateX(2px);
}

.hero-visual {
  position: relative;
  align-self: end;
  margin: 0;
}

/* The product panel rises from the bottom of the hero and bleeds off the
   bottom and right edges. .hero's overflow:hidden makes those cuts land at the
   hero edge, so it reads as an intentional rising panel, not a container cutoff.
   Only the top-left corner is rounded — the visible anchor. */
.browser-frame {
  width: max(100%, calc(50vw + 120px));
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-right: 0;
  border-bottom: 0;
  border-radius: var(--radius-lg) 0 0 0;
  background: #ffffff;
  box-shadow: 0 -2px 40px rgba(36, 50, 65, 0.1);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #ffffff, #f7f6f3);
}

.browser-dots {
  display: inline-flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-pale);
}

.browser-dots span:nth-child(1) {
  background: #e3a8a4;
}

.browser-dots span:nth-child(2) {
  background: #e6cf9a;
}

.browser-dots span:nth-child(3) {
  background: #a9c2a4;
}

.browser-url {
  min-width: 0;
  padding: 3px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-viewport {
  display: block;
  background: #ffffff;
}

.browser-viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.headline-carousel,
.process-section,
.signals-section,
.signup-section {
  padding: 96px 0;
}

.headline-carousel {
  padding: 48px 0 72px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #ffffff;
}

.carousel-shell {
  display: grid;
  gap: 24px;
}

.carousel {
  display: grid;
  gap: 28px;
}

/* Headlines stack in place and crossfade; the stage reserves the tallest one. */
.carousel-stage {
  position: relative;
  min-height: 80px;
}

.carousel-headline {
  position: absolute;
  inset: 0;
  margin: 0;
  max-width: 20ch;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  opacity: 0;
  transform: translateY(8px);
  /* Outgoing headline fades out quickly so it doesn't overlap the incoming. */
  transition:
    opacity 200ms ease,
    transform 200ms ease;
  pointer-events: none;
}

.carousel-headline.is-active {
  opacity: 1;
  transform: none;
  /* Incoming fades in slightly later and slower, after the old one has gone. */
  transition:
    opacity 360ms ease 160ms,
    transform 360ms ease 160ms;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Slim resting dot; the active one extends into a short bar. */
.carousel-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--color-pale);
  cursor: pointer;
  transition:
    width 320ms ease,
    background-color 320ms ease;
}

/* Invisible 44px-tall tap target around the small visual dot. */
.carousel-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 24px);
  height: 44px;
  transform: translate(-50%, -50%);
}

.carousel-dot:hover {
  background: var(--color-primary);
}

.carousel-dot[aria-current="true"] {
  width: 28px;
  background: var(--color-action);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 28px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step,
.signup-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.process-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-step {
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.process-step:hover {
  border-color: var(--color-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  color: var(--color-action);
  background: rgba(47, 111, 163, 0.1);
}

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

.step-number {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.process-step h3 {
  margin-bottom: 8px;
}

.process-step p,
.signal-body p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.signals-section {
  background: var(--color-sand);
}

.signals-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.section-heading.compact {
  margin-bottom: 0;
}

/* Editorial findings ledger: a colored figure, a finding, hairline-separated. */
.signal-list {
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.signal-row {
  position: relative;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 24px;
  padding: 24px;
  transition: background-color 220ms ease;
}

.signal-row + .signal-row {
  border-top: 1px solid var(--color-border);
}

.signal-row:hover {
  background: rgba(47, 111, 163, 0.025);
}

.signal-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
}

/* the colored accent bar — grows on row hover (the microinteraction) */
.signal-figure::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--color-pale);
  transform: scaleY(0.62);
  transform-origin: top center;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    width 220ms ease;
}

.signal-row:hover .signal-figure::before {
  transform: scaleY(1);
  width: 4px;
}

.signal-row.leak .signal-figure::before {
  background: var(--color-danger);
}

.signal-row.risk .signal-figure::before {
  background: #9c6a28;
}

.signal-row.opportunity .signal-figure::before {
  background: var(--color-success);
}

.signal-value {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 580;
  line-height: 30px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-optical-sizing: auto;
}

/* the unit (MSEK/yr) stays Inter — small caps-like label, not a display figure */
/* small unit suffix on a figure (MSEK/yr, % of revenue) — Inter, not the serif */
.signal-value abbr,
.signal-unit {
  margin-left: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.signal-kind {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.signal-row.leak .signal-kind {
  color: var(--color-danger);
}

.signal-row.risk .signal-kind {
  color: #9c6a28;
}

.signal-row.opportunity .signal-kind {
  color: var(--color-success);
}

.signal-body h3 {
  margin-bottom: 6px;
}

.signal-meta {
  margin: 12px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.signup-section {
  background: #ffffff;
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.78fr);
  gap: 64px;
  align-items: start;
}

.signup-copy {
  max-width: 640px;
  padding-top: 16px;
}

.signup-copy > p:not(.eyebrow) {
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 28px;
}

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

.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--color-text-strong);
}

.check-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.check-icon circle {
  fill: var(--color-success);
}

.signup-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.conditional-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.conditional-field[hidden] {
  display: none;
}

label,
.field-group label {
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

input,
select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-pale);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

input::placeholder {
  color: var(--color-text-soft);
  font-weight: 300;
}

select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
    linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 13px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.field-error {
  min-height: 18px;
  margin: -2px 0 0;
  color: var(--color-danger);
  font-size: 13px;
  line-height: 18px;
}

.consent-line {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.consent-line input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  box-shadow: none;
  accent-color: var(--color-action);
}

.captcha-wrap {
  min-height: 66px;
}

.submit-button {
  width: 100%;
  min-height: 48px;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.form-status.is-success {
  color: var(--color-success);
}

.form-status.is-error {
  color: var(--color-danger);
}

.privacy-note {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 13px;
  line-height: 20px;
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  color: #ffffff;
}

/* Inline compass drawn for the dark footer — light ring + blue/white star read
   cleanly on navy (the old navy PNG tile melted into the background). */
.footer-mark {
  display: inline-flex;
  flex: none;
}

.footer-mark svg {
  width: 34px;
  height: 34px;
  display: block;
}

.footer-mark .compass-star {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-inner:hover .footer-mark .compass-star {
  transform: rotate(18deg);
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.footer-inner a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

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

/* Legal / privacy page */
.legal {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(36px, 4vw, 48px);
}

.legal-lead {
  max-width: 60ch;
  color: var(--color-text-strong);
  font-size: 18px;
  line-height: 28px;
}

.legal-meta {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.legal section {
  margin-top: 40px;
}

.legal h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 32px;
}

.legal p,
.legal li {
  max-width: 68ch;
  color: var(--color-text-strong);
  font-size: 16px;
  line-height: 26px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--color-action);
  font-weight: 600;
}

.legal-address {
  margin: 0 0 16px;
  color: var(--color-text-strong);
  font-size: 16px;
  font-style: normal;
  line-height: 26px;
}

.legal-todo {
  margin-top: 12px;
  padding: 12px 16px;
  border-left: 3px solid var(--color-warning);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(197, 138, 58, 0.08);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 22px;
}

.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .header-inner {
    width: min(100% - 32px, var(--container));
  }

  .section-shell,
  .hero-inner {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    align-self: start;
    padding: 64px 0 48px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  /* Single-column hero: contain the frame fully, no bleed. */
  .browser-frame {
    width: 100%;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
  }

  .hero-copy-block {
    padding-bottom: 32px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signals-layout,
  .signup-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .signup-copy {
    max-width: 760px;
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .brand-word {
    height: 23px;
  }

  .brand-o {
    height: 25px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    justify-self: end;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 560px;
  }

  h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .hero-copy {
    font-size: 18px;
    line-height: 28px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .hero-proof div {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 16px;
  }

  .hero-proof dt {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .hero-proof dd {
    flex: 1 1 auto;
  }

  .headline-carousel,
  .process-section,
  .signals-section,
  .signup-section {
    padding: 64px 0;
  }

  .headline-carousel {
    padding: 40px 0 56px;
  }

  .carousel-stage {
    min-height: 132px;
  }

  .carousel-headline {
    font-size: 28px;
    line-height: 36px;
  }

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

  .signup-form {
    padding: 20px;
  }

  .footer-inner {
    flex-wrap: wrap;
    padding: 24px 0;
  }

  .footer-links {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 430px) {
  .header-inner {
    width: min(100% - 24px, var(--container));
    min-height: 64px;
  }

  .section-shell,
  .hero-inner {
    width: min(100% - 24px, var(--container));
  }

  .header-cta {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 40px;
  }

  h1 {
    font-size: 40px;
    line-height: 44px;
  }

  .carousel-stage {
    min-height: 116px;
  }

  .carousel-headline {
    font-size: 26px;
    line-height: 34px;
  }

  .button {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
  }
}

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

  /* never leave revealed content hidden when motion is off */
  [data-reveal],
  [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .leak-meter__fill {
    transform: scaleX(1) !important;
  }
}
