/* MittAbonemang stylesheet.
 *
 * Organised as tokens, then layout, then components, then motion, because that
 * is the order in which a change is usually made: adjust a value, adjust a
 * rhythm, adjust a component, and only then adjust how something moves.
 *
 * The product's claim is that it measures instead of guessing, so the design
 * leans on instrument metaphors: fields, rings, readouts, and numbers that
 * settle rather than merely appear. Every one of those is expressed as a
 * transform or an opacity, which the compositor can animate without repainting,
 * so the page stays smooth on the mid range Android phone most people read it on.
 */

/* ========================================================================== */
/* Tokens                                                                      */
/* ========================================================================== */

:root {
  color-scheme: light;

  --ink: #071719;
  --ink-soft: #1b3236;
  --muted: #4b6560;
  --paper: #f4faf7;
  --surface: #ffffff;
  --surface-sunk: #eef5f2;
  --line: #cfdedb;
  --line-strong: #9db3ae;

  --mint: #7ff0bd;
  --signal: #58dcf7;
  --energy: #ffd84e;
  --alarm: #ff6b5e;
  --good: #0b8b5b;
  --danger: #b3261e;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Fluid type. One scale, set once, so a heading is the same size in every
   * component that calls itself a heading. */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.4rem);
  --step-4:  clamp(2.6rem, 1.8rem + 4vw, 5.6rem);
  --step-5:  clamp(3rem, 1.9rem + 6vw, 7.5rem);

  --gutter: clamp(1rem, 4vw, 4rem);
  --block: clamp(3.5rem, 9vw, 9rem);
  --measure: 68ch;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-1: 0 1px 2px rgba(7, 23, 25, 0.06), 0 8px 24px rgba(7, 23, 25, 0.06);
  --shadow-2: 0 2px 6px rgba(7, 23, 25, 0.08), 0 28px 70px rgba(7, 23, 25, 0.12);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Pointer position, written by script, read by anything that reacts to it.
   * Defaulting to the centre means the page looks deliberate before the first
   * pointer event and on devices that never send one. */
  --px: 0.5;
  --py: 0.5;
  --pdx: 0;
  --pdy: 0;
  --scroll: 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #eaf6f2;
    --ink-soft: #cfe4de;
    --muted: #9bb3ad;
    --paper: #06110f;
    --surface: #0c1a18;
    --surface-sunk: #101f1d;
    --line: #1e3330;
    --line-strong: #2d4b46;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 28px 70px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-size: var(--step-0);
  line-height: 1.55;
  background:
    radial-gradient(60rem 40rem at calc(var(--px) * 100%) calc(var(--py) * 60%),
                    color-mix(in srgb, var(--signal) 14%, transparent), transparent 70%),
    radial-gradient(50rem 40rem at calc(100% - var(--px) * 60%) 90%,
                    color-mix(in srgb, var(--mint) 12%, transparent), transparent 70%),
    var(--paper);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { max-width: var(--measure); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--good);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed; left: 12px; top: -100px; z-index: 999;
  background: var(--surface); padding: 12px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ========================================================================== */
/* Scroll progress                                                             */
/* ========================================================================== */

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--signal), var(--mint));
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll));
  pointer-events: none;
}

/* ========================================================================== */
/* Header and footer                                                           */
/* ========================================================================== */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
body[data-scrolled="true"] .topbar { box-shadow: var(--shadow-1); }

.wordmark {
  font-weight: 900; letter-spacing: -0.045em; font-size: var(--step-1);
  display: inline-flex; align-items: baseline;
}
.wordmark span { font-weight: 400; opacity: 0.72; }

.topbar nav { display: flex; gap: clamp(0.75rem, 2vw, 1.6rem); align-items: center; }
.topbar nav a, .motion-toggle {
  font-weight: 650; font-size: var(--step--1); letter-spacing: -0.01em;
  position: relative; padding: 0.35rem 0;
}
.topbar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.topbar nav a:hover::after, .topbar nav a:focus-visible::after { transform: scaleX(1); }

.motion-toggle {
  border: 1px solid var(--line-strong); background: transparent;
  border-radius: var(--radius-pill); padding: 0.4rem 0.8rem; cursor: pointer;
}
.lang { border-left: 1px solid var(--line); padding-left: clamp(0.75rem, 2vw, 1.6rem) !important; }

.demo-banner {
  margin: 0; padding: 0.7rem var(--gutter);
  background: color-mix(in srgb, var(--energy) 26%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--energy) 55%, var(--line));
  font-size: var(--step--1); font-weight: 650;
}

footer {
  border-top: 1px solid var(--line); padding: var(--block) var(--gutter) 3rem;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
footer div { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
footer a:hover { text-decoration: underline; }
.market-switch span {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.market-switch a[aria-current] { font-weight: 900; text-decoration: underline; }

/* ========================================================================== */
/* Layout primitives                                                           */
/* ========================================================================== */

.section { padding: var(--block) var(--gutter); max-width: 96rem; margin-inline: auto; }
.narrow { max-width: 56rem; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: end; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head h1, .section-head h2 {
  font-size: var(--step-3); letter-spacing: -0.045em; line-height: 1.02; margin: 0;
  text-wrap: balance;
}
.kicker {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--muted); }

/* ========================================================================== */
/* Buttons                                                                     */
/* ========================================================================== */

.btn {
  --lift: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.4rem; border-radius: var(--radius-pill);
  font-weight: 750; border: 1px solid transparent; cursor: pointer;
  position: relative; isolation: isolate; text-align: center;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, box-shadow 0.3s var(--ease);
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--lift)), 0);
}
.btn:hover { --lift: -2px; box-shadow: var(--shadow-1); }
.btn:active { transform: scale(0.975); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--signal)); }
.btn.ghost { background: transparent; border-color: var(--ink); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.danger {
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); color: var(--danger);
}
.btn.compact { min-height: 2.5rem; padding: 0 1rem; font-size: var(--step--1); }
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; --lift: 0; }

/* ========================================================================== */
/* Hero: the instrument field                                                  */
/* ========================================================================== */

.hero {
  padding: clamp(3rem, 7vw, 7rem) var(--gutter) var(--block);
  min-height: min(86svh, 54rem);
  display: grid; align-items: center;
  position: relative; overflow: clip;
}
.hero-grid {
  display: grid; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  max-width: 92rem; margin-inline: auto; width: 100%;
}
.hero-copy h1 {
  font-size: var(--step-5); line-height: 0.92; letter-spacing: -0.055em;
  margin: 0.6rem 0 1.4rem; text-wrap: balance;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* The field tilts toward the pointer. Two nested transforms rather than one, so
 * the tilt and the drift can have different easing without fighting each other. */
.field {
  position: relative; aspect-ratio: 1; width: min(100%, 34rem);
  margin-inline: auto; display: grid; place-items: center;
  perspective: 1200px;
}
.field-inner {
  position: absolute; inset: 0; display: grid; place-items: center;
  transform: rotateX(calc((var(--py) - 0.5) * -14deg)) rotateY(calc((var(--px) - 0.5) * 18deg));
  transition: transform 0.6s var(--ease);
  transform-style: preserve-3d;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.ring-1 { inset: 4%; animation: spin 26s linear infinite; }
.ring-2 { inset: 19%; animation: spin 17s linear infinite reverse; }
.ring-3 { inset: 34%; border-style: dashed; animation: spin 34s linear infinite; }
.ring::after {
  content: ""; position: absolute; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  top: -0.35rem; left: calc(50% - 0.35rem); background: var(--mint);
  box-shadow: 0 0 1.4rem color-mix(in srgb, var(--mint) 80%, transparent);
}
.ring-2::after { background: var(--signal); box-shadow: 0 0 1.4rem color-mix(in srgb, var(--signal) 80%, transparent); }
.ring-3::after { background: var(--energy); box-shadow: 0 0 1.4rem color-mix(in srgb, var(--energy) 70%, transparent); }

.core {
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; text-align: center; gap: 0.15rem;
  box-shadow: 0 0 0 1.4rem color-mix(in srgb, var(--signal) 10%, transparent),
              0 0 7rem color-mix(in srgb, var(--signal) 34%, transparent);
  transform: translate3d(calc(var(--pdx) * 14px), calc(var(--pdy) * 14px), 60px);
  transition: transform 0.5s var(--ease);
}
.core b { font-size: clamp(1.3rem, 3.5vw, 2rem); letter-spacing: -0.04em; line-height: 1; }
.core span { font-size: 0.6rem; letter-spacing: 0.18em; opacity: 0.75; }

.chip {
  position: absolute; padding: 0.55rem 0.9rem; border-radius: var(--radius-pill);
  border: 1px solid var(--ink); background: var(--surface);
  font-size: 0.66rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  transform: translate3d(calc(var(--pdx) * var(--depth, 20) * -1px),
                         calc(var(--pdy) * var(--depth, 20) * -1px), 80px);
  transition: transform 0.7s var(--ease);
}
.chip-1 { top: 9%; right: 2%; --depth: 30; }
.chip-2 { bottom: 26%; left: -2%; --depth: 44; }
.chip-3 { bottom: 5%; right: 16%; --depth: 22; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================================================== */
/* Trust strip and category cards                                              */
/* ========================================================================== */

.trust-strip {
  display: flex; gap: clamp(1rem, 3vw, 2.5rem); justify-content: center; flex-wrap: wrap;
  padding: 1.1rem var(--gutter);
  border-block: 1px solid var(--line);
  font-size: var(--step--1); font-weight: 700;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.trust-strip span::before { content: "●"; margin-right: 0.6rem; color: var(--good); font-size: 0.6em; vertical-align: middle; }

.category-grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
}
.category-card {
  --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 17rem; padding: 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  display: flex; flex-direction: column; gap: 0.5rem;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.category-card:hover, .category-card:focus-visible {
  box-shadow: var(--shadow-2); border-color: var(--line-strong);
}
.category-card::after {
  content: ""; position: absolute; inset: -30% -30% auto auto;
  width: 16rem; height: 16rem; border-radius: 50%; z-index: -1;
  background: var(--signal); filter: blur(3.5rem); opacity: 0.18;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.category-card:hover::after { opacity: 0.34; transform: translate3d(-1.5rem, 1.5rem, 0); }
.category-card h3 { font-size: var(--step-2); letter-spacing: -0.04em; margin: auto 0 0.2rem; }
.category-card p { color: var(--muted); font-size: var(--step--1); margin: 0; }
.category-orb {
  width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-weight: 900; font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.category-card .arrow {
  position: absolute; right: 1.5rem; bottom: 1.3rem; font-size: 1.5rem;
  transition: transform 0.4s var(--ease);
}
.category-card:hover .arrow { transform: translate3d(0.3rem, -0.3rem, 0); }

/* ========================================================================== */
/* Explainer band                                                              */
/* ========================================================================== */

.dark-section {
  max-width: none; background: var(--ink); color: var(--paper);
  position: relative; overflow: clip;
}
.dark-section .split {
  max-width: 92rem; margin-inline: auto;
  display: grid; gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
}
.dark-section h2 { font-size: var(--step-4); letter-spacing: -0.055em; line-height: 0.98; margin: 0.6rem 0 0; text-wrap: balance; }
.dark-section .kicker { color: var(--mint); }
.logic-stack {
  display: grid; gap: 1px;
  background: color-mix(in srgb, var(--paper) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}
.logic-stack div {
  background: var(--ink); padding: 1.4rem 1.6rem;
  display: flex; align-items: center; gap: 1.2rem;
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.logic-stack div:hover { background: color-mix(in srgb, var(--ink) 88%, var(--mint)); padding-left: 2.1rem; }
.logic-stack b { color: var(--mint); font-size: 0.72rem; letter-spacing: 0.2em; }
.logic-stack span { font-size: var(--step-1); }

.watch-banner {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}
.watch-banner h2 { font-size: var(--step-4); letter-spacing: -0.055em; margin: 0.5rem 0; }
.watch-radar {
  width: min(80%, 26rem); aspect-ratio: 1; border: 1px solid var(--line);
  border-radius: 50%; position: relative; margin-inline: auto; display: grid; place-items: center;
}
.watch-radar i { position: absolute; border: 1px solid var(--line); border-radius: 50%; inset: 15%; }
.watch-radar i:nth-child(2) { inset: 30%; }
.watch-radar i:nth-child(3) { inset: 45%; }
.watch-radar b {
  background: var(--mint); color: var(--ink); padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill); font-size: var(--step--1); letter-spacing: 0.1em;
}

/* ========================================================================== */
/* Category, results and offers                                                */
/* ========================================================================== */

.category-hero, .results-head, .connect-hero, .account-hero {
  padding: clamp(3rem, 6vw, 5.5rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.category-hero {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
}
.category-hero h1, .results-head h1, .connect-hero h1 {
  font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.05em; margin: 0.7rem 0;
  text-wrap: balance;
}
.category-symbol { font-size: clamp(6rem, 16vw, 15rem); text-align: center; opacity: 0.5; line-height: 1; }
.back { font-weight: 750; font-size: var(--step--1); display: inline-block; margin-bottom: 0.5rem; }
.back:hover { text-decoration: underline; }

.theme-signal { background: linear-gradient(135deg, color-mix(in srgb, var(--signal) 12%, var(--paper)), var(--paper)); }
.theme-air { background: linear-gradient(135deg, color-mix(in srgb, var(--signal) 8%, var(--paper)), var(--paper)); }
.theme-energy { background: linear-gradient(135deg, color-mix(in srgb, var(--energy) 16%, var(--paper)), var(--paper)); }
.theme-home { background: linear-gradient(135deg, color-mix(in srgb, var(--mint) 12%, var(--paper)), var(--paper)); }
.theme-mobility { background: linear-gradient(135deg, color-mix(in srgb, #6f7dff 10%, var(--paper)), var(--paper)); }
.theme-care { background: linear-gradient(135deg, color-mix(in srgb, #ff8fc4 10%, var(--paper)), var(--paper)); }
.theme-security { background: linear-gradient(135deg, color-mix(in srgb, var(--ink) 6%, var(--paper)), var(--paper)); }
.theme-media { background: linear-gradient(135deg, color-mix(in srgb, #b48bff 12%, var(--paper)), var(--paper)); }
.theme-charge { background: linear-gradient(135deg, color-mix(in srgb, var(--mint) 16%, var(--paper)), var(--paper)); }

.journey-shell {
  max-width: 74rem; margin: var(--block) auto; padding-inline: var(--gutter);
  display: grid; gap: 2.5rem; grid-template-columns: 7rem minmax(0, 1fr);
}
.journey-progress { display: flex; flex-direction: column; align-items: center; position: sticky; top: 6rem; height: max-content; }
.journey-progress span {
  width: 2.4rem; height: 2.4rem; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; background: var(--surface);
}
.journey-progress span.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.journey-progress b { width: 1px; height: 3.5rem; background: var(--line); }
.journey-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3.5rem); box-shadow: var(--shadow-1);
}
.form-head h2 { font-size: var(--step-2); letter-spacing: -0.04em; margin-top: 0; }
.field-row { display: grid; gap: 0.5rem; margin: 1.6rem 0; }
.field-row label { font-weight: 750; }
.field-row input, .field-row select {
  width: 100%; min-height: 3.25rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 0 1rem; background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-row input:focus, .field-row select:focus {
  border-color: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent);
  outline: none;
}
.field-error { color: var(--danger); font-weight: 700; font-size: var(--step--1); }
.has-error input, .has-error select { border-color: var(--danger); }
.confirmations { background: var(--surface-sunk); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.8rem 0; }
.confirmations p { margin: 0.4rem 0; }
.confirmations .risk { color: #7c3f12; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.warn { background: color-mix(in srgb, var(--energy) 28%, var(--surface)); }

.result-layout {
  display: grid; gap: 1.6rem; grid-template-columns: minmax(15rem, 17rem) minmax(0, 1fr);
  padding: 2.5rem var(--gutter) var(--block); max-width: 96rem; margin-inline: auto;
}
.filter-panel {
  position: sticky; top: 6rem; height: max-content;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem;
  background: var(--surface);
}
.source-note { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: var(--step--1); }
.offer-list { display: grid; gap: 1rem; min-width: 0; }

.offer-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.offer-card.best { border-color: var(--ink); box-shadow: var(--shadow-2); }
.offer-brand { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.offer-brand img {
  width: 3.4rem; height: 3.4rem; object-fit: contain; padding: 0.45rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.offer-brand h2, .offer-brand h3 { margin: 0; font-size: var(--step-2); letter-spacing: -0.035em; }
.offer-brand p { margin: 0.2rem 0 0; color: var(--muted); font-size: var(--step--1); }
.compare-check { margin-left: auto; font-weight: 700; font-size: var(--step--1); display: inline-flex; gap: 0.4rem; align-items: center; }
.fit-score {
  margin-left: auto; background: var(--ink); color: var(--paper);
  border-radius: var(--radius-pill); padding: 0.5rem 0.95rem; font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.offer-money {
  display: grid; gap: 0.6rem; margin: 1.4rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
}
.offer-money > div { background: var(--surface-sunk); padding: 1rem 1.1rem; border-radius: var(--radius-sm); }
.offer-money span, .offer-money small { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 650; }
.offer-money strong {
  display: block; font-size: var(--step-2); margin: 0.25rem 0; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.trust-badges { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 1rem; }
.trust-badges span {
  font-size: 0.72rem; font-weight: 700; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 0.4rem 0.7rem; background: var(--surface-sunk);
}
.challenge {
  display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem;
}
.challenge.now { background: color-mix(in srgb, var(--mint) 30%, var(--surface)); }
.challenge.wait { background: color-mix(in srgb, var(--energy) 28%, var(--surface)); }
.challenge.keep { background: var(--surface-sunk); }
.challenge span, .challenge small { display: block; font-size: 0.74rem; }
.challenge strong, .challenge b { font-size: var(--step-1); }
.feature-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.feature-row > span { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.85rem; font-size: var(--step--1); }
.feature-row small { display: block; color: var(--muted); font-size: 0.72rem; }
.feature-row > span.warn { background: color-mix(in srgb, var(--energy) 28%, var(--surface)); border-color: color-mix(in srgb, var(--energy) 50%, var(--line)); }
.offer-footer {
  display: flex; justify-content: space-between; gap: 1.2rem; align-items: end; flex-wrap: wrap;
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.terms-mini { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); }
.verification { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 1rem; color: var(--muted); font-size: 0.74rem; }
.verification a { text-decoration: underline; }

.compare-bar {
  position: sticky; top: 5.5rem; z-index: 20;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 0.8rem 1rem; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; box-shadow: var(--shadow-2);
}
.compare-bar[hidden] { display: none; }
.compare-bar .btn.compact { background: var(--paper); color: var(--ink); }
.current-benchmark {
  display: inline-flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.8rem 1.3rem; border-radius: var(--radius-pill); margin-top: 1rem;
}

.watch-cta {
  max-width: 74rem; margin: 0 auto var(--block); padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}
.watch-cta h2 { font-size: var(--step-3); margin: 0; letter-spacing: -0.04em; }
.watch-cta form { display: grid; gap: 0.6rem; }
.watch-cta input { min-height: 3.25rem; border-radius: var(--radius-pill); border: 0; padding: 0 1.2rem; }

.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 44rem; }
.compare-table th, .compare-table td { padding: 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--surface-sunk); position: sticky; top: 0; }
.compare-table thead img { width: 3rem; height: 3rem; object-fit: contain; display: block; margin-bottom: 0.6rem; }
.compare-table thead strong, .compare-table thead small { display: block; }

.prose { font-size: var(--step-1); line-height: 1.7; }
.prose h1 { font-size: var(--step-4); letter-spacing: -0.05em; }
.watch-card {
  display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.8rem 0;
}
.actions-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.actions-row form { margin: 0; }
.empty-state { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.empty-state h2 { margin-top: 0; }

.network-state {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line);
  padding: 0.65rem 1rem; border-radius: var(--radius-pill); display: none; z-index: 100;
  box-shadow: var(--shadow-2);
}
.network-state.show { display: block; }

/* ========================================================================== */
/* Connect journey                                                             */
/* ========================================================================== */

.connect-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; max-width: 72rem; }
.connect-step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2.1rem);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.connect-step[data-state="done"] { border-color: var(--good); }
.connect-step h2 {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: var(--step-1); letter-spacing: -0.03em; margin: 0 0 1.3rem;
}
.connect-step h2 span {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: var(--step--1); flex: none;
}
.connect-step[data-state="done"] h2 span { background: var(--good); }

.route-grid, .operator-grid, .identity-grid {
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
}
.operator-grid { max-height: 26rem; overflow-y: auto; padding-right: 0.3rem; }
.operator-option, .identity-option, .route-option {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.9rem 1rem; display: grid; gap: 0.25rem; cursor: pointer;
  background: var(--surface-sunk);
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.operator-option:hover, .identity-option:hover, .route-option:hover { transform: translateY(-2px); background: var(--surface); }
.operator-option:has(input:checked), .identity-option:has(input:checked), .route-option:has(input:checked) {
  border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface);
}
.operator-option b, .identity-option b, .route-option b { font-size: var(--step-0); }
.operator-option small, .identity-option small, .route-option small { color: var(--muted); font-size: 0.76rem; }
.operator-option input, .identity-option input, .route-option input { margin: 0 0 0.3rem; }
.assurance, .route-badge {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--good);
}
.route-badge.needs { color: var(--muted); }

.consent-card { display: grid; gap: 1rem; }
.consent-yes, .consent-no { margin: 0; line-height: 1.5; }
.consent-no b { color: var(--danger); }
.scope-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  font-family: var(--font-num); font-size: 0.8rem;
}
.scope-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; background: var(--surface-sunk); }
.consent-note { color: var(--muted); margin: 0; font-size: var(--step--1); }
.paste-area {
  width: 100%; min-height: 11rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 0.9rem 1rem; background: var(--surface);
  font-family: var(--font-num); font-size: 0.82rem; line-height: 1.5; resize: vertical;
}
.connect-status {
  margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; max-width: 72rem;
}
.connect-status.ok { background: color-mix(in srgb, var(--mint) 26%, var(--surface)); border-color: var(--good); }
.connect-status.bad { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.qr-holder { display: grid; place-items: center; gap: 0.8rem; margin-top: 1rem; }
.qr-code { width: min(14rem, 60vw); aspect-ratio: 1; display: grid; place-items: center; }
.qr-code svg { width: 100%; height: auto; }

/* ========================================================================== */
/* Account                                                                     */
/* ========================================================================== */

.account-hero h1 { font-size: var(--step-3); letter-spacing: -0.05em; margin: 0.6rem 0 1.8rem; }
.account-money { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.account-money > div {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; min-width: min(12rem, 100%); flex: 1 1 12rem;
}
.account-money span { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 700; }
.account-money strong {
  display: block; font-size: var(--step-3); letter-spacing: -0.045em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.account-money small { color: var(--muted); }
.account-money .saving { background: color-mix(in srgb, var(--mint) 26%, var(--surface)); border-color: var(--good); }
.split-note { display: block; margin-top: 0.4rem; font-weight: 700; color: var(--muted); }

.verdict-section { padding-top: 3rem; padding-bottom: 0; }
.verdict-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--surface); }
.verdict-card.now { background: color-mix(in srgb, var(--mint) 24%, var(--surface)); border-color: var(--good); }
.verdict-card.wait { background: color-mix(in srgb, var(--energy) 24%, var(--surface)); border-color: color-mix(in srgb, var(--energy) 55%, var(--line)); }
.verdict-card.keep { background: var(--surface-sunk); }
.verdict-card h2 { font-size: var(--step-3); letter-spacing: -0.045em; margin: 0.5rem 0 0.9rem; text-wrap: balance; }
.verdict-notes { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.verdict-notes li { font-size: var(--step-1); line-height: 1.5; }
.basis { color: var(--muted); font-size: var(--step--1); margin: 0; }

.usage-grid, .contract-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
}
.usage-grid > div, .contract-grid > div {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem;
}
.usage-grid span, .contract-grid span { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 700; }
.usage-grid strong, .contract-grid strong {
  display: block; font-size: var(--step-2); letter-spacing: -0.035em; margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.usage-grid small { color: var(--muted); }
.warning-list { margin: 1.2rem 0 0; padding-left: 1.2rem; color: #7c3f12; }
.privacy-actions .actions-row { margin-top: 1.2rem; }

/* A usage bar that reads like an instrument rather than a decoration. */
.usage-meter { margin-top: 0.6rem; height: 0.5rem; border-radius: var(--radius-pill); background: var(--surface-sunk); overflow: hidden; }
.usage-meter i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--signal), var(--mint));
  transform-origin: 0 50%; transform: scaleX(var(--fill, 0));
  transition: transform 1.1s var(--ease);
}
.usage-meter.over i { background: linear-gradient(90deg, var(--energy), var(--alarm)); }

/* ========================================================================== */
/* Motion                                                                      */
/* ========================================================================== */

/* Scroll driven reveal. Where the browser supports scroll timelines this costs
 * no script at all; the IntersectionObserver path below is the fallback. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html[data-motion="full"] [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; transform: translate3d(0, 1.6rem, 0); }
  to { opacity: 1; transform: none; }
}

[data-reveal] { opacity: 1; transform: none; }
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js[data-motion="full"] [data-reveal] {
      opacity: 0; transform: translate3d(0, 1.6rem, 0);
      transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    }
    html.js[data-motion="full"] [data-reveal].visible { opacity: 1; transform: none; }
  }
}

.count-up { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .ring { animation: none !important; }
  .field-inner, .core, .chip { transform: none !important; }
}
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important; scroll-behavior: auto !important;
}
html[data-motion="reduced"] .field-inner,
html[data-motion="reduced"] .core,
html[data-motion="reduced"] .chip,
html[data-motion="reduced"] .category-card { transform: none !important; }
html[data-motion="reduced"] body { background-attachment: scroll; }

@media (forced-colors: active) {
  .btn, .category-card, .offer-card, .connect-step { border: 1px solid ButtonText; }
  .field { display: none; }
}

/* ========================================================================== */
/* Responsive                                                                  */
/* ========================================================================== */

@media (max-width: 62rem) {
  .hero-grid, .category-hero, .result-layout, .journey-shell { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .field { width: min(80%, 24rem); }
  .filter-panel, .journey-progress, .compare-bar { position: static; }
  .journey-progress { display: none; }
  .category-symbol { display: none; }
}

@media (max-width: 46rem) {
  .topbar { min-height: 3.75rem; }
  .topbar nav a:not(.lang) { display: none; }
  .offer-footer { align-items: stretch; }
  .offer-footer .btn { width: 100%; }
  .compare-check { margin-left: 0; width: 100%; }
  .account-money > div { flex-basis: 100%; }
  .operator-grid { max-height: 20rem; }
  .watch-cta { margin-inline: var(--gutter); }
}

@media (min-width: 100rem) {
  :root { --measure: 72ch; }
}

@media print {
  .topbar, footer, .scroll-progress, .network-state, .demo-banner, .btn { display: none !important; }
  body { background: #fff; }
}

/* ========================================================================== */
/* Knowledge and FAQ                                                           */
/* ========================================================================== */

.knowledge h2 { font-size: var(--step-3); letter-spacing: -0.045em; }
.knowledge-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}
.knowledge-grid article { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.knowledge-grid h3 { margin: 0 0 0.4rem; font-size: var(--step-1); letter-spacing: -0.03em; }
.knowledge-grid p { color: var(--muted); }

.faq-list { display: grid; gap: 0.6rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 0 1.2rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  cursor: pointer; font-weight: 750; font-size: var(--step-1);
  padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-weight: 400; font-size: 1.4em; line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.2rem; color: var(--muted); }
