:root {
  --polar-white: #F8F9FA;
  --graphite: #1A1A1A;
  --range-blue: #3A8FFF;
  --amp-green: #5FE28E;
  --ember: #FF9B42;
  --mist-grey: #E4E6EB;
  --slate: #4A5568;
  --bg: var(--polar-white);
  --surface: color-mix(in srgb, var(--mist-grey) 55%, var(--polar-white));
  --text: var(--graphite);
  --text-secondary: var(--slate);
  --accent: var(--range-blue);
  --accent-contrast: var(--polar-white);
  --hairline: rgba(26, 26, 26, 0.1);
  --glass: rgba(248, 249, 250, 0.55);
  --glass-border: rgba(248, 249, 250, 0.5);
  --section-space: 96px;
  --card-padding: 32px;
  --card-radius: 2px;
  --card-gap: 0px;
  --h2-size: clamp(2.5rem, 4.8vw, 4.7rem);
  /* Chart-only scale colours (efficiency index bars/table). */
  --idx-good: #3E9E63;
  --idx-bad: #D6503C;
}

html[data-theme='dark'] {
  --bg: var(--graphite);
  --surface: rgba(248, 249, 250, 0.06);
  --text: var(--polar-white);
  --text-secondary: var(--mist-grey);
  --accent: var(--amp-green);
  --accent-contrast: var(--graphite);
  --glass: rgba(26, 26, 26, 0.55);
  --glass-border: rgba(248, 249, 250, 0.12);
  --hairline: rgba(248, 249, 250, 0.12);
}

html {
  max-width: 100%;
  overflow-x: clip;
  background: var(--graphite);
  /* In-page anchors (nav links, the hero scroll cue, FAQ/beta jumps) glide
     instead of teleporting. scroll-padding keeps the landing spot clear of the
     floating header — 56px tall, sitting 18px from the top. */
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

body.landing-page {
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

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

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

.landing-page a {
  color: inherit;
}

.landing-page main a:not(.landing-button) {
  transition: color 160ms ease;
}

.landing-page main a:not(.landing-button):hover {
  color: var(--accent);
}

.landing-page button,
.landing-page input,
.landing-page textarea,
.landing-page select {
  font: inherit;
}

.landing-page a:focus-visible,
.landing-page button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.landing-shell {
  width: 100%;
  overflow: clip;
  background: var(--bg);
}

.landing-header {
  transition: background 400ms ease, border-color 400ms ease;
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 32px), 1240px);
  height: 56px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
}

.landing-shell .landing-nav {
  position: relative;
  inset: auto;
  z-index: 5;
  width: 100%;
  height: 56px;
  margin: 0 auto;
  padding: 0 6px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  transition: none;
}

.landing-nav > .landing-wordmark { justify-self: start; }
.landing-nav > .landing-nav-links { justify-self: center; }
.landing-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-wordmark {
  width: auto;
  height: 28px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.rangea-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.rangea-brand-mark {
  width: 97px;
  height: 17px;
  display: block;
  background: var(--text);
  -webkit-mask: url('/img/rangea-wordmark-trim.png') center / contain no-repeat;
  mask: url('/img/rangea-wordmark-trim.png') center / contain no-repeat;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.landing-nav-links a {
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

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

/* Mobile menu — the desktop link bar is hidden below 900px, so the burger and
   its sheet are the only way to reach the rest of the site on a phone. */
.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-burger span {
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 200ms ease;
}

.nav-burger.is-open span:first-of-type { transform: translateY(3.3px) rotate(45deg); }
.nav-burger.is-open span:last-of-type { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-menu { display: none; }

.landing-button {
  width: max-content;
  min-height: 52px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast) !important;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.landing-button:hover {
  transform: translateY(-2px);
  filter: brightness(0.92);
}

.landing-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-button-small {
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.landing-nav-cta {
  border-color: var(--graphite);
  background: var(--graphite);
  color: var(--polar-white) !important;
}

.landing-nav-cta .apple-mark {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.landing-header {
  transition: background 400ms ease, border-color 400ms ease, top 300ms ease, width 300ms ease, border-radius 300ms ease;
}

.landing-header.nav-docked {
  width: calc(100% - 24px);
}

.landing-header.nav-docked .landing-nav {
  width: 100%;
  padding: 0 6px 0 20px;
}

.landing-header.nav-dark {
  background: rgba(26, 26, 26, 0.55);
  border-color: rgba(248, 249, 250, 0.12);
}

.landing-header.nav-dark .rangea-brand-mark {
  background: var(--polar-white);
}

.landing-header.nav-dark .landing-nav-links a {
  color: var(--polar-white);
}

.landing-header.nav-dark .nav-burger span {
  background: var(--polar-white);
}

.landing-header.nav-dark .landing-nav-cta {
  border-color: var(--polar-white);
  background: var(--polar-white);
  color: var(--graphite) !important;
}

.rangea-brand-mark,
.landing-nav-links a,
.landing-nav-cta {
  transition: background 400ms ease, color 400ms ease, border-color 400ms ease;
}

.landing-opening {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 104px 0 36px;
  background: var(--graphite);
  color: var(--polar-white);
}

html[data-theme='dark'] .landing-opening {
  border-bottom: 1px solid var(--hairline);
}

.opening-copy {
  width: min(100% - 64px, 860px);
  min-height: calc(100svh - 140px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: openingFade 900ms cubic-bezier(0.22, 0.8, 0.3, 1) 150ms both;
}

.opening-copy .landing-eyebrow {
  color: rgba(248, 249, 250, 0.55);
  margin-bottom: 22px;
}

.opening-copy h1 {
  margin: 0;
  color: var(--polar-white);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(3.6rem, 6.4vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.opening-copy h1 span {
  color: var(--accent);
}

.opening-copy .landing-subline {
  max-width: 560px;
  margin: 28px auto 32px;
  color: rgba(248, 249, 250, 0.68);
}

@keyframes openingFade {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

.landing-manifesto {
  background: var(--graphite);
  color: var(--polar-white);
  scroll-margin-top: 74px;
}

.landing-manifesto .manifesto-inner {
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
  padding: var(--section-space) 0;
}

.landing-manifesto .landing-eyebrow {
  color: rgba(248, 249, 250, 0.55);
  margin-bottom: 30px;
}

.manifesto-quote {
  max-width: 900px;
  margin: 0;
  color: rgba(248, 249, 250, 0.85);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.55;
}

.m-key {
  color: var(--accent);
  font-weight: 600;
}

.manifesto-cite {
  margin: 34px 0 0;
  color: rgba(248, 249, 250, 0.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.manifesto-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(248, 249, 250, 0.6);
  transform: translateX(-50%);
  transition: color 160ms ease;
}

.manifesto-scroll:hover {
  color: var(--polar-white);
}

.manifesto-scroll svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-eyebrow {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.landing-subline {
  max-width: 620px;
  margin: 34px 0 32px;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 300;
  line-height: 1.7;
}

.phone-mask {
  width: clamp(260px, 20vw, 290px);
  aspect-ratio: 1320 / 2678;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 44px;
  box-shadow: 0 20px 44px -20px rgba(26, 26, 26, 0.35);
}

.app-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.app-showcase {
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
  padding: 24px 0 var(--section-space);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scroll-margin-top: 88px;
}

.app-showcase h2 {
  margin: 0 0 44px;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.showcase-stage {
  width: 100%;
  margin-top: 12px;
  padding: 88px 64px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background: var(--graphite);
}

.showcase-stage .phone-mask {
  width: clamp(320px, 27vw, 390px);
  margin-bottom: -12%;
  border: 10px solid #0D0D0D;
  border-radius: 56px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.landing-features {
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
  padding: var(--section-space) 0;
  scroll-margin-top: 88px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  background: transparent;
}

.feature-card {
  min-height: 200px;
  min-width: 0;
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  border: 0;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--bg);
}

.feature-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.feature-card-top svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card-top span {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.feature-card h2 {
  margin: 20px 0 8px;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.tester-quote {
  position: relative;
  width: min(100% - 64px, 980px);
  margin: 0 auto;
  padding: var(--section-space) 0;
  text-align: center;
}

.tester-quote blockquote {
  max-width: 860px;
  margin: 0 auto 24px;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.quote-by {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-faq {
  position: relative;
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
  padding: var(--section-space) 0;
  scroll-margin-top: 88px;
}

.landing-faq-heading {
  margin-bottom: 42px;
}

.landing-faq-heading .landing-eyebrow {
  margin-bottom: 14px;
}

.landing-faq-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: var(--h2-size);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

/* FAQ accordion — one open at a time, animated with a 0fr -> 1fr grid row so
   no height has to be measured in JS. */
.faq-accordion {
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item h3 {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  padding: 26px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease;
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

.faq-trigger[aria-expanded='true'] .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  /* visibility keeps a collapsed answer out of the accessibility tree and out
     of tab order, and it transitions discretely — visible immediately on open,
     hidden only once the collapse finishes. That means no JS has to toggle
     `hidden`, so a panel cannot get stuck if a transition never fires. */
  visibility: hidden;
  transition:
    grid-template-rows 240ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 240ms cubic-bezier(0.32, 0.72, 0, 1);
}

.faq-panel[data-open] {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel p {
  margin: 0;
  padding: 0 60px 28px 4px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
}

.final-band {
  width: min(100% - 64px, 1240px);
  min-height: 0;
  margin: 0 auto var(--section-space);
  padding: 44px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: 12px;
  background: var(--accent);
}

html[data-theme='dark'] .final-band {
  background: color-mix(in srgb, var(--accent) 16%, var(--graphite));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.final-band h2 {
  margin: 0;
  color: color-mix(in srgb, var(--polar-white) 92%, transparent);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

html[data-theme='dark'] .final-band h2 {
  color: var(--polar-white);
}

.landing-button-light {
  flex-shrink: 0;
  border-color: var(--accent-contrast);
  background: var(--accent-contrast);
  color: var(--graphite) !important;
}

html[data-theme='dark'] .landing-button-light {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--graphite) !important;
}

.landing-button-light:hover {
  filter: brightness(0.96);
}

.landing-footer {
  width: 100%;
  margin: 0;
  padding: 76px max(32px, calc((100% - 1240px) / 2)) 30px;
  background: #121214;
  color: var(--polar-white);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

.landing-footer-main {
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(320px, 0.75fr);
  gap: 80px;
}

.rangea-brand-footer .rangea-brand-mark {
  width: 113px;
  height: 20px;
  background: var(--polar-white);
}

.landing-footer-brand p {
  max-width: 340px;
  margin: 24px 0 0;
  color: rgba(248, 249, 250, 0.68);
}

.landing-footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
}

.landing-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.landing-footer-column h2 {
  margin: 0 0 8px;
  color: rgba(248, 249, 250, 0.48);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.landing-footer-bottom {
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(228, 230, 235, 0.16);
  color: rgba(248, 249, 250, 0.48);
  font-size: 12px;
}

.landing-footer a {
  color: rgba(248, 249, 250, 0.7);
  text-decoration: none;
  transition: color 160ms ease;
}

.landing-footer a:hover {
  color: var(--polar-white);
}

.landing-footer p {
  margin: 0;
}

/* Shared inner-page system */
.experiment-inner-page {
  min-height: 100vh;
  background: var(--bg);
}

.experiment-page-hero,
.roadmap-section,
.blog-index-page,
.article-page {
  width: min(calc(100% - 64px), 1240px);
  margin-right: auto;
  margin-left: auto;
}

.experiment-page-hero {
  padding: var(--section-space) 0;
}

.experiment-page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(3.7rem, 7vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.experiment-page-hero > p:last-child {
  max-width: 680px;
  margin: 32px 0 0;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}

.roadmap-section {
  padding-bottom: var(--section-space);
}

.experiment-section-heading {
  max-width: 880px;
  margin-bottom: 72px;
}

.experiment-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: var(--h2-size);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.experiment-section-heading > p:last-child {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.roadmap-card-top {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.roadmap-when {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.roadmap-when--next {
  color: var(--accent);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  background: transparent;
}

.roadmap-card {
  position: relative;
  min-height: 200px;
  min-width: 0;
  padding: var(--card-padding);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--bg);
}

.roadmap-status {
  position: absolute;
  top: var(--card-padding);
  right: var(--card-padding);
  width: 26px;
  height: 26px;
}

.roadmap-status svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roadmap-status--shipped {
  color: var(--amp-green);
}

.roadmap-status--building {
  color: var(--accent);
}

.roadmap-status--planned {
  color: var(--text-secondary);
}

.roadmap-status--planned circle {
  stroke-dasharray: 2.6 3.3;
}

.roadmap-card h3 {
  margin: 0 44px 8px 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.roadmap-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.roadmap-final-band {
  margin-top: 0;
}

.roadmap-final-band > div {
  max-width: 720px;
}

.roadmap-final-band h2 {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.roadmap-final-band p {
  max-width: 600px;
  margin: 20px 0 0;
  color: rgba(248, 249, 250, 0.78);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.blog-index-page {
  padding-bottom: var(--section-space);
}

.blog-index-page > .blog-index-hero {
  width: 100%;
}

.experiment-blog-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  background: transparent;
}

.experiment-blog-card {
  min-height: 200px;
  min-width: 0;
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--bg);
  text-decoration: none;
}

.experiment-blog-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.experiment-blog-card h2 {
  margin: 20px 0 8px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.experiment-blog-card > p {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-page {
  width: min(calc(100% - 64px), 900px);
  max-width: 900px;
  padding: var(--section-space) 0;
}

.experiment-article-header {
  max-width: 780px;
  margin: 0 auto 72px;
}

.experiment-article-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.experiment-article-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.experiment-article-body {
  width: min(100%, 680px);
  margin: 0 auto;
  color: var(--text);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.experiment-article-body h2,
.experiment-article-body h3 {
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  letter-spacing: -0.035em;
}

.experiment-article-body h2 {
  margin: 72px 0 20px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
}

.experiment-article-body h3 {
  margin: 48px 0 16px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.experiment-article-body p,
.experiment-article-body ul,
.experiment-article-body ol {
  margin: 0 0 26px;
}

.experiment-article-body ul,
.experiment-article-body ol {
  padding-left: 24px;
}

.experiment-article-body li {
  margin-bottom: 9px;
}

.experiment-article-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.experiment-article-body strong {
  font-weight: 700;
}

.experiment-article-body pre {
  max-width: 100%;
  overflow-x: auto;
}

.experiment-article-body blockquote,
.experiment-article-body .direct-answer,
.experiment-article-body .stat-block,
.experiment-article-body .quote-block,
.experiment-article-body .article-faq {
  margin: 42px 0;
  padding: 28px;
  border-radius: var(--card-radius);
  background: var(--surface);
}

.experiment-article-body blockquote p:last-child,
.experiment-article-body .direct-answer p:last-child,
.experiment-article-body .stat-block p:last-child,
.experiment-article-body .quote-block p:last-child {
  margin-bottom: 0;
}

.experiment-article-body .stat-number {
  color: var(--accent);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.experiment-article-body .stat-label {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.experiment-article-body cite {
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
}

.experiment-article-body .app-table {
  width: 100%;
  margin: 38px 0;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

.experiment-article-body .app-table th,
.experiment-article-body .app-table td {
  min-width: 120px;
  padding: 14px;
  border: 2px solid var(--bg);
  background: var(--surface);
  text-align: left;
  vertical-align: top;
}

.experiment-article-body .app-table th {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experiment-article-body .tag {
  padding: 4px 8px;
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.experiment-article-body .tag-free {
  color: var(--amp-green);
}

.experiment-article-body .tag-paid {
  color: var(--accent);
}

.experiment-article-body .tag-soon {
  color: var(--text-secondary);
}

.experiment-article-body .article-faq h2 {
  margin-top: 0;
}

.experiment-article-body .faq-q + .faq-q {
  padding-top: 18px;
  border-top: 2px solid var(--bg);
}

.experiment-article-cta {
  margin-top: var(--section-space);
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: var(--surface);
}

.experiment-article-cta h2 {
  margin-top: 0;
}

.experiment-article-cta .landing-button {
  margin-top: 10px;
  color: var(--polar-white);
}

.feature-card,
.roadmap-card,
.experiment-blog-card {
  transition: background 160ms ease, color 160ms ease;
}

.experiment-blog-card:hover {
  background: var(--surface);
}

.experiment-blog-card:hover h2 {
  color: var(--accent);
}

#cookie-banner.cookie-banner {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  padding: 18px 32px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--glass-border);
  background: var(--graphite);
  color: var(--polar-white);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  min-height: 38px;
  padding: 8px 20px;
  border: 1px solid rgba(248, 249, 250, 0.25);
  background: transparent;
  color: var(--polar-white);
  cursor: pointer;
  font-size: 13px;
}

.cookie-actions .cookie-accept {
  border-color: var(--polar-white);
  background: var(--polar-white);
  color: var(--graphite);
  font-weight: 600;
}

@media (max-width: 900px) {
  :root {
    --section-space: 64px;
    --card-padding: 24px;
  }

  .landing-shell .landing-nav,
  .landing-features,
  .tester-quote,
  .landing-faq,
  .final-band,
  .landing-footer-main,
  .landing-footer-bottom {
    width: min(100% - 40px, 680px);
  }

  .landing-shell .landing-nav {
    width: 100%;
    padding: 0 6px 0 20px;
  }

  .landing-header {
    top: 12px;
    width: calc(100% - 20px);
  }

  .landing-nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .mobile-menu {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px 18px 16px;
    border: 1px solid var(--hairline);
    border-radius: 26px;
    /* Opaque on purpose: a backdrop-filter nested inside the header's own
       backdrop-filter does not blur the page, so glass here leaves the hero
       headline legible straight through the menu. */
    background: var(--bg);
    box-shadow: 0 18px 44px rgba(26, 26, 26, 0.16);
  }

  .landing-header.nav-dark .mobile-menu {
    border-color: rgba(248, 249, 250, 0.14);
    background: var(--graphite);
  }

  .landing-header.nav-dark .mobile-menu-links a {
    color: var(--polar-white);
    border-bottom-color: rgba(248, 249, 250, 0.12);
  }

  .landing-header.nav-dark .mobile-menu-foot a {
    color: rgba(248, 249, 250, 0.62);
  }

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

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-links a {
    padding: 14px 4px;
    color: var(--text);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid var(--hairline);
  }

  .mobile-menu-foot {
    display: flex;
    gap: 20px;
    padding-top: 15px;
  }

  .mobile-menu-foot a {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-menu-foot a[aria-current='true'] {
    color: var(--accent);
  }

  body.menu-open {
    overflow: hidden;
  }

  .landing-opening {
    min-height: 0;
    padding: 104px 0 56px;
  }

  .opening-copy {
    width: min(100% - 40px, 680px);
    min-height: calc(100svh - 210px);
  }

  .showcase-stage {
    padding: 56px 24px 0;
  }

  .showcase-stage .phone-mask {
    width: 280px;
    border-width: 8px;
    border-radius: 48px;
  }

  .landing-manifesto .manifesto-inner {
    width: min(100% - 40px, 680px);
  }

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

  .faq-trigger {
    padding: 22px 2px;
    font-size: 17px;
    gap: 16px;
  }

  .faq-panel p {
    padding: 0 32px 24px 2px;
  }

  .final-band {
    min-height: 320px;
    padding: 48px 36px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .landing-footer {
    padding: 64px 0 28px;
  }

  .landing-footer-main,
  .landing-footer-bottom {
    margin-right: auto;
    margin-left: auto;
  }

  .landing-footer-main {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .experiment-page-hero,
  .roadmap-section,
  .blog-index-page,
  .article-page {
    width: min(calc(100% - 40px), 680px);
  }

  .experiment-page-hero {
    /* --section-space drops to 64px here, which is shorter than the floating
       header, so the eyebrow used to tuck under the nav pill. */
    padding: 104px 0 var(--section-space);
  }

  .experiment-page-hero h1 {
    /* Danish compounds ("Effektivitetsindeks") are longer than a phone is wide. */
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-card {
    min-height: 200px;
  }

  .experiment-blog-grid {
    grid-template-columns: 1fr;
  }

  .experiment-blog-card {
    min-height: 200px;
  }

  .article-page {
    padding-top: var(--section-space);
  }
}

@media (max-width: 560px) {
  .landing-shell .landing-nav,
  .landing-features,
  .tester-quote,
  .landing-faq,
  .final-band,
  .landing-footer-main,
  .landing-footer-bottom {
    width: calc(100% - 32px);
  }

  .landing-button-small {
    height: 36px;
    min-height: 36px;
    padding: 0 16px;
  }

  .landing-shell .landing-nav {
    width: 100%;
  }

  .landing-nav-cta {
    gap: 8px;
    font-size: 13px;
  }

  .opening-copy {
    width: calc(100% - 32px);
  }

  .opening-copy h1 {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
  }

  .landing-eyebrow {
    letter-spacing: 0.15em;
  }

  .showcase-stage .phone-mask {
    width: 246px;
    border-width: 7px;
    border-radius: 42px;
  }

  .landing-features {
    padding: var(--section-space) 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 200px;
    padding: var(--card-padding);
  }

  .tester-quote {
    padding: var(--section-space) 0;
  }

  .landing-faq {
    padding: var(--section-space) 0;
  }

  .final-band {
    min-height: 300px;
    padding: 38px 28px;
  }

  .landing-footer-columns {
    gap: 32px;
  }

  .experiment-page-hero,
  .roadmap-section,
  .blog-index-page,
  .article-page {
    width: calc(100% - 32px);
  }

  .experiment-page-hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  /* "Effektivitetsindeks" is a single 19-character word — at the shared hero
     size it either clips or hyphenates badly, so this page gets a smaller h1. */
  .xp-idx-page .experiment-page-hero h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  /* Short confirmation-style headlines read badly when a 56px type size forces
     a one-word line. */
  .xp-success h1 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .experiment-section-heading {
    margin-bottom: 52px;
  }

    .roadmap-final-band {
    margin-top: 0;
  }

  .experiment-blog-card {
    padding: var(--card-padding);
  }

  .article-page {
    padding-top: var(--section-space);
  }

  .experiment-article-header {
    margin-bottom: 54px;
  }

  .experiment-article-body {
    font-size: 16px;
  }

  .experiment-article-body blockquote,
  .experiment-article-body .direct-answer,
  .experiment-article-body .stat-block,
  .experiment-article-body .quote-block,
  .experiment-article-body .article-faq,
  .experiment-article-cta {
    padding: 24px;
  }
}

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

/* ——— Cinematic layer ——— */

/* Editorial scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.22, 0.8, 0.3, 1);
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .opening-copy {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Language switch ——— */

.lang-switch {
  position: relative;
}

.lang-toggle {
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.lang-toggle:hover {
  background: var(--surface);
  color: var(--accent);
}

.lang-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-header.nav-dark .lang-toggle {
  color: var(--polar-white);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.14);
}

.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.lang-menu a:hover {
  background: var(--surface);
}

.lang-menu a[aria-current='true'] {
  color: var(--accent);
}

/* ——— Footer newsletter (ported from rangea.app live footer) ——— */

.footer-newsletter {
  width: 100%;
  margin: 0;
  padding: 100px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #0E0F11;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.footer-newsletter .landing-eyebrow {
  color: rgba(248, 249, 250, 0.55);
  margin-bottom: 0;
}

.footer-newsletter h2 {
  margin: 16px 0 14px;
  color: rgba(248, 249, 250, 0.96);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.1;
}

.footer-newsletter-sub {
  max-width: 520px;
  margin: 0 0 28px;
  color: rgba(248, 249, 250, 0.62);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.footer-newsletter-form {
  width: 100%;
  max-width: 480px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.footer-newsletter-form input {
  flex: 1;
  max-width: 320px;
  padding: 13px 18px;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--polar-white);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.footer-newsletter-form input::placeholder {
  color: rgba(248, 249, 250, 0.38);
}

.footer-newsletter-form input:focus {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: rgba(255, 255, 255, 0.09);
}

.footer-newsletter-form button {
  flex-shrink: 0;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.footer-newsletter-form button:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

.footer-newsletter-form button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-newsletter-msg {
  min-height: 1.4em;
  margin: 18px 0 0;
  color: rgba(248, 249, 250, 0.62);
  font-size: 14px;
}

.footer-newsletter-msg.is-success {
  color: var(--amp-green);
}

/* ——— Bento grid (variant) ——— */

.landing-bento {
  position: relative;
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
  padding: 24px 0 var(--section-space);
  scroll-margin-top: 88px;
}

.landing-bento h2 {
  margin: 0 0 40px;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 264px;
  gap: 12px;
}

.bento-card {
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
}

.bento-card h3 {
  margin: 26px 0 8px;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.bento-media {
  padding: 0;
  background: var(--graphite);
}

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

.bento-planner {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-planner img {
  object-position: top;
}

.bento-efficiency {
  grid-column: span 2;
}

.bento-efficiency img {
  object-position: 50% 31%;
}

.bento-home img {
  object-position: 50% 8%;
}

@media (max-width: 900px) {
  .landing-bento {
    width: min(100% - 40px, 680px);
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 240px;
  }

  .bento-stat-wide {
    grid-column: span 2;
  }

  .bento-trip-card {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .landing-bento {
    width: calc(100% - 32px);
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-card {
    min-height: 170px;
  }

  .bento-media {
    min-height: 280px;
  }

  .bento-planner-card,
  .bento-trip-card,
  .bento-stat-wide {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ——— Bento native stat cards (Oura-style) ——— */

.bento-stat {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat-hero {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-hero strong {
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-hero span {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.stat-bars {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-bar-row {
  display: grid;
  grid-template-columns: 84px 1fr 32px;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.stat-bar {
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  overflow: hidden;
}

.stat-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.stat-bar-row-muted {
  color: var(--text-secondary);
}

.stat-bar-row-muted .stat-bar i {
  background: color-mix(in srgb, var(--text) 30%, transparent);
}

.stat-bar-value {
  text-align: right;
}

.stat-caption {
  margin: auto 0 0;
  padding-top: 18px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.55;
}

.stat-ring {
  position: relative;
  width: 92px;
  height: 92px;
  margin-top: 16px;
}

.stat-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-ring-track,
.stat-ring-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.stat-ring-track {
  stroke: rgba(248, 249, 250, 0.12);
}

.stat-ring-fill {
  stroke: var(--range-blue);
  stroke-dasharray: 72 100;
}

html[data-theme='dark'] .stat-ring-fill {
  stroke: var(--amp-green);
}

.stat-ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--polar-white);
  font-size: 15px;
  font-weight: 700;
}

.bento-stat-wide {
  grid-column: span 2;
}

/* ——— Roadmap hero: the roadmap as a road map (one-shot draw-in) ——— */

.roadmap-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 6%;
}

.roadmap-hero-art svg {
  display: block;
  width: min(100%, 460px);
  height: auto;
  margin-left: auto;
  overflow: visible;
}

.journey-line {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  animation: journeyDraw 2200ms cubic-bezier(0.65, 0, 0.25, 1) 400ms both;
}

.journey-wp {
  transform-box: fill-box;
  transform-origin: center;
}

.journey-wp .wp-dot,
.journey-wp .wp-ring,
.journey-wp .wp-halo {
  transform-box: view-box;
}

.wp-dot {
  fill: var(--text);
}

.wp-dot-next {
  fill: var(--accent);
}

.wp-ring {
  stroke: var(--text);
  stroke-width: 1.5;
  opacity: 0.4;
}

.journey-wp text {
  fill: var(--text-secondary);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey-wp-1 .wp-dot { transform-origin: 36px 296px; }
.journey-wp-2 .wp-dot { transform-origin: 220px 176px; }
.journey-wp-3 .wp-dot,
.journey-wp-3 .wp-ring { transform-origin: 398px 58px; }

.journey-wp .wp-dot,
.journey-wp .wp-ring {
  animation: wpPop 480ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.journey-wp text {
  animation: wpLabel 600ms ease both;
}

.journey-wp-1 .wp-dot { animation-delay: 350ms; }
.journey-wp-1 text { animation-delay: 550ms; }
.journey-wp-2 .wp-dot { animation-delay: 1500ms; }
.journey-wp-2 text { animation-delay: 1700ms; }
.journey-wp-3 .wp-dot,
.journey-wp-3 .wp-ring { animation-delay: 2450ms; }
.journey-wp-3 text { animation-delay: 2650ms; }

.wp-halo {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 36px 296px;
  animation: wpHalo 900ms ease-out 600ms both;
}

@keyframes journeyDraw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes wpPop {
  0% { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes wpLabel {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wpHalo {
  0% { opacity: 0.6; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.9); }
}

@media (prefers-reduced-motion: reduce) {
  .journey-line,
  .journey-wp .wp-dot,
  .journey-wp .wp-ring,
  .journey-wp text,
  .wp-halo {
    animation: none;
  }

  .journey-line { stroke-dashoffset: 0; }
  .wp-halo { opacity: 0; }
}

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

  .roadmap-hero-art {
    display: none;
  }
}

/* ——— Route motif: section divider + planner card ——— */

.planner-route {
  margin: 20px 0 4px;
  width: 100%;
}

.planner-route svg {
  display: block;
  width: 100%;
  height: 34px;
  color: var(--polar-white);
}

.planner-route .route-path {
  stroke: currentColor;
  opacity: 0.4;
}

.planner-route .route-a {
  fill: currentColor;
  opacity: 0.6;
}

.planner-route .route-stop {
  fill: var(--range-blue);
}

html[data-theme='dark'] .planner-route .route-stop {
  fill: var(--amp-green);
}

.planner-route .route-b-ring {
  stroke: currentColor;
  opacity: 0.5;
}

.planner-route .route-b-dot {
  fill: currentColor;
}

.planner-meta {
  margin: 10px 0 0;
  color: rgba(248, 249, 250, 0.62);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* Battery-on-route native card */

.battery-route {
  margin-top: 20px;
}

.battery-route svg {
  display: block;
  width: 100%;
  height: auto;
}

.battery-line {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.battery-dot {
  fill: var(--accent);
}

.battery-labels {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
}

.battery-labels strong {
  color: var(--text);
  font-weight: 800;
}

/* ——— Native planner card (2x2 bento) ——— */

.bento-planner-card {
  grid-column: span 2;
  grid-row: span 2;
  gap: 0;
}

.pc-inputs {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}

.pc-icon-from {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.pc-icon-pin {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: var(--amp-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-stats {
  margin-top: 0;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 10px;
}

.pc-stat strong {
  display: block;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pc-stat span {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pc-stat em {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 400;
}

.pc-ferry {
  margin: auto 0 0;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.pc-ferry svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-options {
  margin-top: 0;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pc-option {
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg);
}

.pc-option strong {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
}

.pc-option span {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.pc-option-active {
  border-color: var(--accent);
}

.pc-option-active strong {
  color: var(--accent);
}

@media (max-width: 560px) {
  .bento-planner-card {
    grid-column: auto;
    grid-row: auto;
  }

  .pc-stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
  }
}

/* ——— Native trip KPI card ——— */

.bento-trip-card {
  grid-row: span 2;
  gap: 0;
}

.trip-head {
  margin-top: 18px;
}

.trip-head strong {
  display: block;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.trip-head span {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
}

.trip-badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trip-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.trip-badge-accent {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.trip-badge-green {
  color: #3E9E63;
  background: color-mix(in srgb, var(--amp-green) 18%, transparent);
}

html[data-theme='dark'] .trip-badge-green {
  color: var(--amp-green);
}

.trip-kpi-grid {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tk-cell {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.tk-cell:nth-child(odd) {
  padding-right: 22px;
  border-right: 1px solid var(--hairline);
}

.tk-cell:nth-child(even) {
  padding-left: 22px;
}

.tk-cell:nth-last-child(-n+2) {
  border-bottom: 0;
}

.tk-label {
  display: block;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tk-value {
  margin: 5px 0 0;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.tk-value em {
  margin-left: 3px;
  color: var(--text-secondary);
  font-size: 0.6em;
  font-style: normal;
  font-weight: 600;
}

/* ——— Contact form (experiment theme) ——— */

.xp-contact-page {
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
  padding-bottom: var(--section-space);
}

.xp-contact-form {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.xp-contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.xp-contact-form label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.xp-contact-form input,
.xp-contact-form textarea {
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
  resize: vertical;
}

.xp-contact-form input:focus,
.xp-contact-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--bg);
}

.xp-contact-form .landing-button {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
}

.xp-contact-form .form-feedback {
  display: none;
  color: var(--ember);
  font-size: 14px;
}

@media (max-width: 900px) {
  .xp-contact-page {
    width: min(100% - 40px, 680px);
  }
}

.xp-success .xp-success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.xp-success .xp-success-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xp-success .landing-button {
  margin-top: 30px;
}

.xp-success-error .xp-success-icon {
  background: color-mix(in srgb, var(--ember) 16%, transparent);
}

.xp-success-error .xp-success-icon svg {
  stroke: var(--ember);
}

.xp-success-note {
  margin-top: 30px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ——— Contact: centered layout ——— */

.xp-contact-page .experiment-page-hero {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.xp-contact-form {
  margin: 0 auto;
  text-align: left;
}

.xp-contact-form .landing-button {
  align-self: center;
  margin-top: 6px;
}

.xp-contact-form .form-feedback {
  text-align: center;
}

/* ——— Frosted scrim behind the floating nav pill ——— */

.nav-scrim {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 104px;
  z-index: 90;
  pointer-events: none;
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 52%, transparent 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .nav-scrim { transition: opacity 200ms ease; }
}

/* ——— Manifesto distributed across sections (left-margin rail) ——— */

.section-manifesto {
  position: absolute;
  top: 50%;
  left: -30px;
  max-height: 78%;
  margin: 0;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: center;
  opacity: 0.92;
  pointer-events: none;
}

.section-manifesto--right {
  left: auto;
  right: -30px;
  transform: translateY(-50%) rotate(0deg);
}

.landing-opening .section-manifesto {
  left: clamp(16px, 3vw, 56px);
}

.landing-bento .section-manifesto { top: 40%; }
.tester-quote .section-manifesto { top: 56%; }
.landing-faq .section-manifesto { top: 44%; }

.section-manifesto--dark {
  color: rgba(248, 249, 250, 0.78);
}

.section-manifesto--key {
  opacity: 1;
}

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

.section-manifesto--big {
  font-size: 22px;
  font-weight: 800;
  opacity: 1;
}

.section-manifesto--small {
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0.62;
}

/* Horizontal triplet — the rhetorical climax */
.manifesto-triplet {
  position: absolute;
  top: 50%;
  right: 100%;
  margin-right: 44px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  text-align: right;
  pointer-events: none;
}

.manifesto-triplet span {
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0.86;
}

.manifesto-triplet .mt-climax {
  margin-top: 2px;
  color: #3E9E63;
  font-size: 27px;
  font-weight: 800;
  opacity: 1;
}

html[data-theme='dark'] .manifesto-triplet .mt-climax {
  color: var(--amp-green);
}

@media (max-width: 1360px) {
  .manifesto-triplet { display: none; }
}

@media (max-width: 1120px) {
  .section-manifesto {
    display: none;
  }
}


/* ——— Features: 3 heroes + quiet scope band ——— */

.features-heroes {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 12px;
  align-items: start;
}

.features-heroes .bento-planner-card {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
}

.features-hero-stack {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  min-height: 0;
}

.features-hero-stack .bento-card {
  min-height: 0;
}

.features-scope {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 40px;
}

.scope-item strong {
  display: block;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.scope-item span {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.5;
}

.scope-link {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.scope-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms ease;
}

.scope-link:hover svg {
  transform: translateX(3px);
}

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

  .features-heroes .bento-planner-card {
    min-height: 0;
  }

  .features-hero-stack {
    grid-template-rows: auto auto;
  }

  .scope-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
  }
}

@media (max-width: 560px) {
  .scope-list {
    grid-template-columns: 1fr;
  }
}




/* ——— Features page ——— */

.features-page {
  width: min(100% - 64px, 1240px);
  margin: 0 auto;
  padding-bottom: var(--section-space);
}

.features-page .experiment-page-hero {
  padding-bottom: 48px;
}

.features-page .experiment-page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.featgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.featgrid-cat {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
}

.featgrid-cat-head h2 {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.featgrid-cat-head p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

.featgrid-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.featgrid-item {
  padding: 15px 0;
  border-top: 1px solid var(--hairline);
}

.featgrid-item strong {
  display: block;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.featgrid-item span {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

.featgrid-teaser {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background: var(--bg);
  transition: border-color 180ms ease;
}

.featgrid-teaser:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline));
}

.featgrid-teaser-link {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.featgrid-teaser-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms ease;
}

.featgrid-teaser:hover .featgrid-teaser-link svg {
  transform: translateX(3px);
}

.features-page .final-band {
  width: 100%;
  margin-top: 44px;
}

@media (max-width: 900px) {
  .features-page {
    width: min(100% - 40px, 680px);
  }

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

@media (max-width: 560px) {
  .features-page {
    width: calc(100% - 32px);
  }

  .featgrid {
    grid-template-columns: 1fr;
  }
}


/* Planner: battery-on-route mini block */
.pc-battery {
  margin-top: 20px;
}

.pc-battery-label {
  display: block;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pc-battery { margin-top: 18px; }
.pc-battery .battery-route { margin-top: 12px; }
.pc-battery .battery-route svg { width: 100%; height: auto; max-height: 64px; display: block; }
.pc-battery .battery-labels {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
}
.pc-battery .battery-labels strong { color: var(--text); font-weight: 800; }

/* Trip card: map banner on top (like trip detail) */
.bento-trip-card {
  padding: 0;
  overflow: hidden;
}

.trip-map {
  width: 100%;
  aspect-ratio: 900 / 200;
  overflow: hidden;
  background: var(--surface);
}

.trip-map .mapboxgl-map { width: 100%; height: 100%; }
.trip-map .mapboxgl-ctrl-logo, .trip-map .mapboxgl-ctrl-attrib { display: none !important; }

.trip-body {
  display: flex;
  flex-direction: column;
  padding: 22px 28px 24px;
}

.trip-body .trip-head { margin-top: 14px; }
.trip-body .trip-kpi-grid { margin-top: 18px; }


/* Planner: weather-on-route + start button */
.pc-weather { margin-top: 22px; }

.pc-weather-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pc-weather-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.pc-weather-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-weather-item strong {
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pc-weather-item span {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pc-start {
  margin-top: 20px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.pc-start svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}


/* Quirky captions on the highlighted hero cards */
.hero-quip {
  margin: 0 0 20px;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.bento-trip-card .hero-quip { margin-bottom: 16px; }


/* Big trip card is the hero-left now */
.bento-trip-big .trip-map { aspect-ratio: 900 / 300; }
.bento-trip-big .trip-body { padding: 26px 30px 30px; }
.bento-trip-big .tk-value { font-size: 1.5rem; }
.bento-trip-big .trip-kpi-grid { margin-top: 20px; }

/* balance: equal height, big card distributes */
.features-heroes { align-items: stretch; }
.bento-trip-big .trip-body { flex: 1; }
.bento-trip-big .trip-kpi-grid { margin-top: auto; }


/* Compact planner (side stack) */
.bento-planner-compact {
  justify-content: flex-start;
}
.bento-planner-compact .pc-inputs { margin-top: 18px; }
.bento-planner-compact .pc-stats { margin-top: 20px; }
.bento-planner-compact .pc-ferry { margin-top: 16px; }
.bento-planner-compact .pc-options { margin-top: 16px; }
.bento-planner-compact .pc-start { margin-top: auto; }
.bento-planner-compact { display: flex; flex-direction: column; }

/* ═══ V1: portrait phone hero + quiet companions ═══ */
.v1-heroes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
}

/* every column: quip on a shared baseline, then its body */
.hero-col { display: flex; flex-direction: column; }
.hero-col > .hero-quip {
  margin: 0 0 22px;
  min-height: 2.5em;          /* reserves two lines so all bodies start on one line */
  display: flex;
  align-items: flex-end;      /* short quips hug their body instead of floating */
}

.hero-phone-col { align-items: center; }
.hero-phone-col > .hero-quip { text-align: center; justify-content: center; max-width: 300px; }

.phone-frame {
  position: relative;
  width: min(100%, 300px);
  padding: 9px;
  border-radius: 46px;
  background: #0d0d0d;
  box-shadow: 0 30px 70px -30px rgba(26,26,26,0.45);
}

.phone-island {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 88px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0d0d0d;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  /* matches the screenshot's own ratio so `cover` has nothing to crop — a crop
     here eats the app's side margins and pushes its text into the bezel */
  aspect-ratio: 1320 / 2718;
  overflow: hidden;
  border-radius: 38px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.phone-map { height: 41%; flex: 0 0 41%; }
.phone-map .mapboxgl-canvas { filter: saturate(0.72); }

.phone-sheet { flex: 1; min-height: 0; padding: 15px 17px 16px; display: flex; flex-direction: column; overflow: hidden; }

.phone-user { display: flex; align-items: center; gap: 11px; }
.phone-avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: linear-gradient(135deg, #9aa7b4, #6b7c8c 55%, #43535f);
}
.phone-user-meta strong { display: block; color: var(--text); font-size: 13px; font-weight: 600; }
.phone-user-meta span { display: block; margin-top: 1px; color: var(--text-secondary); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.phone-sheet h3 {
  margin: 11px 0 4px;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.phone-desc { margin: 0; color: var(--text); font-size: 12px; font-weight: 600; }

.phone-badges { margin-top: 11px; display: flex; flex-wrap: nowrap; gap: 6px; }
.phone-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; border-radius: 999px;
  font-size: 9.5px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap;
}
.phone-badge svg { width: 11px; height: 11px; flex: 0 0 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-badge-blue { color: var(--range-blue); background: color-mix(in srgb, var(--range-blue) 11%, transparent); }
.phone-badge-green { color: #3E9E63; background: color-mix(in srgb, var(--amp-green) 16%, transparent); }

.phone-insight { margin: 10px 0 0; display: flex; gap: 7px; color: var(--text-secondary); font-size: 10.5px; line-height: 1.4; }
.phone-insight svg { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 1px; fill: none; stroke: var(--ember); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.phone-insight strong { color: var(--ember); font-weight: 700; }

.phone-kpi-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pkg-cell {
  padding: 9px 6px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.pkg-cell:nth-child(odd) { border-right: 1px solid var(--hairline); }
.pkg-cell:nth-last-child(-n+2) { border-bottom: 0; }
.pkg-cell span { display: block; color: var(--text-secondary); font-size: 10px; font-weight: 500; }
.pkg-cell strong { display: block; margin-top: 3px; color: var(--text); font-family: 'Manrope'; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.03em; }
.pkg-cell strong em { margin-left: 3px; color: var(--text-secondary); font-size: 0.58em; font-style: normal; font-weight: 600; }

/* companions — lighter, fills not strokes */
.hero-companions { display: flex; flex-direction: column; gap: 14px; }
.companion-card {
  padding: 26px 28px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--bg);
}
.companion-card .hero-quip { margin-bottom: 18px; }
.companion-card .pc-input {
  border: 0;
  background: color-mix(in srgb, var(--mist-grey) 42%, var(--bg));
}
.companion-card .pc-stats { margin-top: 20px; }
.companion-card .pc-start {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; border-radius: 14px;
  background: var(--accent); color: var(--accent-contrast);
  font-family: 'Manrope'; font-size: 15px; font-weight: 700; text-decoration: none;
}
.companion-card .pc-start svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.companion-card .stat-hero { margin-top: 0; }
.companion-card .stat-hero strong { color: var(--text); font-family: 'Manrope'; font-size: clamp(2.2rem,3vw,2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.companion-card .stat-hero span { color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.companion-card .stat-bars { margin-top: 20px; }
.companion-card .stat-bar-row { color: var(--text); }
.companion-card .stat-bar { background: color-mix(in srgb, var(--text) 10%, transparent); }
.companion-card .stat-bar i { background: var(--accent); }
.companion-card .stat-bar-row-muted { color: var(--text-secondary); }
.companion-card .stat-bar-row-muted .stat-bar i { background: color-mix(in srgb, var(--text) 26%, transparent); }
.companion-card .stat-bar-value { color: inherit; }

@media (max-width: 900px) {
  .v1-heroes { grid-template-columns: 1fr; gap: 40px; width: min(100% - 40px, 420px); }
  .hero-phone-col .hero-quip { align-self: center; text-align: center; }
}

.landing-bento .mapboxgl-ctrl-logo,
.landing-bento .mapboxgl-ctrl-attrib { display: none !important; }

/* ═══ V3: three equal Plan / Drive / Share cards ═══ */
.v3-heroes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  width: min(100% - 64px, 1160px);
  margin: 0 auto;
}
.v3-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--bg);
}
.v3-tag {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.v3-card .hero-quip { margin: 0 0 22px; font-size: 1.05rem; }
.v3-card .pc-input { border: 0; background: color-mix(in srgb, var(--mist-grey) 42%, var(--bg)); }
.v3-card .pc-stats { margin-top: 18px; }
.v3-card .pc-start {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; border-radius: 13px; background: var(--accent); color: var(--accent-contrast);
  font-family: 'Manrope'; font-size: 14px; font-weight: 700; text-decoration: none;
}
.v3-card .pc-start svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }

.v3-drive .v3-map {
  height: 190px; margin-bottom: 18px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hairline);
}
.v3-drive .v3-map .mapboxgl-canvas { filter: saturate(0.72); }
.v3-trip-title { margin: 0 0 3px; color: var(--text); font-family: 'Manrope'; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; }
.v3-drive .phone-kpis { margin-top: auto; padding-top: 18px; }

/* feed post */
.feed-post { display: flex; flex-direction: column; gap: 14px; }
.feed-head { display: flex; align-items: center; gap: 11px; }
.feed-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); font-weight: 800; }
.feed-who strong { display: block; color: var(--text); font-size: 14px; font-weight: 700; }
.feed-who span { display: block; color: var(--text-secondary); font-size: 12px; }
.feed-trip { padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--mist-grey) 42%, var(--bg)); }
.feed-trip strong { display: block; color: var(--text); font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.feed-trip span { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 12.5px; }
.feed-actions { margin-top: auto; display: flex; gap: 20px; }
.feed-act { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.feed-act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .v3-heroes { grid-template-columns: 1fr; width: min(100% - 40px, 420px); }
}


/* Screenshot inside the phone frame */
.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}


/* companion planner: ferry + options + caption (fuller) */
.companion-card .pc-ferry { margin: 18px 0 0; display: flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.companion-card .pc-ferry svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.companion-card .pc-options { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.companion-card .pc-option { padding: 13px 15px; border: 1px solid var(--hairline); border-radius: 13px; background: var(--bg); }
.companion-card .pc-option strong { display: block; color: var(--text); font-size: 13px; font-weight: 700; }
.companion-card .pc-option span { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 11.5px; }
.companion-card .pc-option-active { border-color: var(--accent); }
.companion-card .pc-option-active strong { color: var(--accent); }
.companion-card .stat-caption { margin: 18px 0 0; padding-top: 0; color: var(--text-secondary); font-size: 13px; font-weight: 300; line-height: 1.55; }


/* ——— Legal pages (privacy / terms) ——— */

.legal-hero {
  padding-bottom: 0;
}

.legal-hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
}

.legal-meta {
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Same outer rail as the page hero, so the h1 and the prose share a left edge;
   the prose itself is capped for line length. */
.legal-container {
  width: min(calc(100% - 64px), 1240px);
  margin: 0 auto;
  padding: 56px 0 var(--section-space);
}

.legal-container > * {
  max-width: 760px;
}

.legal-container h2 {
  margin: 56px 0 14px;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.legal-container h2:first-child {
  margin-top: 0;
}

.legal-container h3 {
  margin: 32px 0 8px;
  color: var(--accent);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-container p,
.legal-container li {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

.legal-container p {
  margin: 0 0 16px;
}

.legal-container ul,
.legal-container ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

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

.legal-container strong {
  color: var(--text);
  font-weight: 600;
}

.legal-container em {
  color: var(--text-secondary);
}

.legal-container a {
  color: var(--accent);
  text-decoration: none;
}

.legal-container a:hover {
  text-decoration: underline;
}

.legal-container hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 900px) {
  .legal-container {
    width: min(100% - 40px, 680px);
    padding-top: 40px;
  }
}


/* ——— Efficiency index (Danish-only data page) ——— */

.xp-idx-page .final-band {
  margin-top: var(--section-space);
}

.xp-idx-meta {
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 56px;
}

.xp-idx-meta div {
  padding-right: 56px;
  border-right: 1px solid var(--hairline);
}

.xp-idx-meta div:last-child {
  padding-right: 0;
  border-right: 0;
}

.xp-idx-meta dt {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.xp-idx-meta dd {
  margin: 8px 0 0;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.xp-idx-badge {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin: 40px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.xp-idx-badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xp-idx-section {
  width: min(calc(100% - 64px), 1240px);
  margin: 0 auto;
  padding-bottom: var(--section-space);
}

.xp-idx-section h2 {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.xp-idx-lede {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
}

.xp-idx-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}

.xp-idx-stat {
  padding: 34px 32px 34px 0;
  border-right: 1px solid var(--hairline);
}

.xp-idx-stat:last-child {
  border-right: 0;
}

.xp-idx-stat:not(:first-child) {
  padding-left: 32px;
}

.xp-idx-stat strong {
  display: block;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.xp-idx-stat span {
  display: block;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

.xp-idx-table-wrap {
  margin-top: 48px;
  overflow-x: auto;
}

.xp-idx-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  text-align: left;
}

.xp-idx-table th,
.xp-idx-table td {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  font-weight: 400;
}

.xp-idx-table thead th {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xp-idx-table tbody th {
  color: var(--text);
  font-weight: 700;
}

.xp-idx-table .is-muted { color: var(--text-secondary); }
.xp-idx-table .is-good { color: var(--idx-good); font-weight: 600; }
.xp-idx-table .is-warn { color: var(--ember); font-weight: 600; }

.xp-idx-diff {
  color: var(--text);
  font-weight: 700;
}

.xp-idx-note {
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.xp-idx-bars {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.xp-idx-bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 160px;
  align-items: center;
  gap: 24px;
}

.xp-idx-bar-label strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.xp-idx-bar-label span {
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 300;
}

.xp-idx-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.xp-idx-bar-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

/* Chart-only ramp: these four steps read as a scale, so they are deliberately
   outside the brand palette's accent/ember pair. */
.xp-idx-bar-track i.is-good { background: var(--idx-good); }
.xp-idx-bar-track i.is-ok { background: var(--accent); }
.xp-idx-bar-track i.is-warn { background: var(--ember); }
.xp-idx-bar-track i.is-bad { background: var(--idx-bad); }

.xp-idx-bar-value {
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: right;
}

.xp-idx-bar-value span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.xp-idx-method {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}

.xp-idx-method-card {
  padding: 34px 32px 34px 0;
  border-right: 1px solid var(--hairline);
}

.xp-idx-method-card:last-child { border-right: 0; }
.xp-idx-method-card:not(:first-child) { padding-left: 32px; }

.xp-idx-method-card svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xp-idx-method-card h3 {
  margin: 20px 0 10px;
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.xp-idx-method-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .xp-idx-section {
    width: min(100% - 40px, 680px);
  }

  .xp-idx-stats,
  .xp-idx-method {
    grid-template-columns: 1fr;
  }

  .xp-idx-stat,
  .xp-idx-method-card {
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .xp-idx-stat:not(:first-child),
  .xp-idx-method-card:not(:first-child) {
    padding-left: 0;
  }

  .xp-idx-stat:last-child,
  .xp-idx-method-card:last-child {
    border-bottom: 0;
  }

  .xp-idx-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
  }

  .xp-idx-meta div {
    padding-right: 0;
    border-right: 0;
  }

  .xp-idx-meta div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hairline);
  }

  .xp-idx-bar-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .xp-idx-bar-value {
    text-align: left;
  }
}
