/* ============================================================================
   autoleaseportaal.nl
   Theme on top of scrollcraft.css: six colour roles, two faces, one mono for
   data. Everything below is page markup styling; the engine devices are not
   restyled here.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* --- the six roles ------------------------------------------------------ */
  --sc-canvas:      #0B0D11;
  --sc-surface:     #13161C;
  --sc-ink:         #EEF0F4;
  --sc-ink-soft:    #9AA3B2;
  --sc-accent:      #4C86FF;
  --sc-accent-ink:  #081120;

  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, monospace;

  --sc-shadow-color: 222 40% 3%;
  --sc-r-sm: 10px; --sc-r-md: 14px; --sc-r-lg: 20px;
  --sc-maxw: 86rem;

  /* raised steps on the dark ground */
  --alp-surface-2: #181C24;
  --alp-surface-3: #1F242E;
  --alp-line:        color-mix(in oklab, var(--sc-ink) 10%, transparent);
  --alp-line-strong: color-mix(in oklab, var(--sc-ink) 18%, transparent);
  --alp-bar-h: 56px;

  /* the partner's colour. Lives ONLY inside the demo surface. JS rewrites it. */
  --alp-brand: #1E9E6A;
  --alp-brand-ink: #FFFFFF;

  /* the partner's (light) surface inside the frame */
  --d-bg:    #F3F5F8;
  --d-panel: #FFFFFF;
  --d-ink:   #161A21;
  --d-soft:  #5E6775;
  --d-line:  #E2E6EC;
}

html { scroll-padding-top: calc(var(--alp-bar-h) + 1rem); }
body { font-weight: 400; }
strong { font-weight: 500; color: var(--sc-ink); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sc-font-display); font-weight: 600; letter-spacing: var(--sc-track-snug); line-height: 1.06; text-wrap: balance; }
h1 { font-stretch: 104%; }
h2 { font-stretch: 102%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.24em; text-decoration-color: color-mix(in oklab, var(--sc-ink) 40%, transparent); transition: text-decoration-color var(--sc-d-fast) var(--sc-ease-out); }
a.link:hover { text-decoration-color: var(--sc-ink); }
.sc-display { font-weight: 600; }
.sc-display--md { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem); }
.sc-display--sm { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); letter-spacing: var(--sc-track-snug); }
.mono { font-family: var(--sc-font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.eyebrow { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-accent); }
.muted { color: var(--sc-ink-soft); }
.small { font-size: var(--sc-t-sm); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.2em; }

/* ------------------------------------------------------------- app chrome -- */
.app-bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--alp-bar-h);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--sc-5);
  padding-inline: var(--sc-gutter);
  background: color-mix(in oklab, var(--sc-canvas) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--alp-line);
}
.mark { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--sc-font-display); font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; font-size: 1rem; }
.mark__glyph { width: 22px; height: 22px; border-radius: 6px; background: var(--sc-accent); position: relative; flex: none; box-shadow: var(--sc-edge); }
.mark__glyph::after { content: ""; position: absolute; inset: 6px 6px 6px 10px; border-radius: 2px; background: var(--sc-accent-ink); opacity: 0.85; }
.mark span span { color: var(--sc-ink-soft); font-weight: 500; }
.app-bar__ws { display: flex; align-items: center; gap: 0.6rem; min-width: 0; font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.app-bar__ws .sep { opacity: 0.4; }
.app-bar__ws b { font-weight: 500; color: var(--sc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 18ch; }
.app-bar__tabs { display: flex; gap: 0.25rem; }
.tab {
  position: relative; padding: 0.5rem 0.7rem; border-radius: var(--sc-r-sm);
  font-size: var(--sc-t-sm); font-weight: 500; color: var(--sc-ink-soft);
  transition: color var(--sc-d-fast) var(--sc-ease-out), background var(--sc-d-fast) var(--sc-ease-out);
}
.tab:hover { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-ink) 6%, transparent); }
.tab[aria-current="page"] { color: var(--sc-ink); }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.15rem; height: 2px; border-radius: 1px; background: var(--sc-accent); }
.app-bar__cta { display: flex; align-items: center; gap: 0.5rem; }
.menu-btn { display: none; }

/* buttons: one radius (10px), press feedback, nested trailing icon */
.btn {
  --btn-bg: var(--sc-accent); --btn-ink: var(--sc-accent-ink);
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.62rem 0.6rem 0.62rem 1rem; border-radius: var(--sc-r-sm); border: 0;
  background: var(--btn-bg); color: var(--btn-ink);
  font: inherit; font-weight: 500; font-size: var(--sc-t-sm); line-height: 1; white-space: nowrap; cursor: pointer;
  box-shadow: var(--sc-e1), inset 0 1px 0 color-mix(in oklab, #fff 22%, transparent);
  transition: transform var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out), background var(--sc-d-fast) var(--sc-ease-out);
}
.btn__ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in oklab, var(--btn-ink) 14%, transparent); transition: transform var(--sc-d-fast) var(--sc-ease-out); }
.btn__ic .icon { width: 14px; height: 14px; vertical-align: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); box-shadow: var(--sc-e2), inset 0 1px 0 color-mix(in oklab, #fff 26%, transparent); }
  .btn:hover .btn__ic { transform: translate(1px, -1px); }
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--alp-line-strong); padding-right: 1rem; }
.btn--ghost .btn__ic { background: color-mix(in oklab, var(--sc-ink) 10%, transparent); }
.btn--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 5%, transparent); }
.btn--lg { padding: 0.8rem 0.7rem 0.8rem 1.2rem; font-size: var(--sc-t-base); }
.btn--lg .btn__ic { width: 28px; height: 28px; border-radius: 7px; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

/* ----------------------------------------------------------------- stage -- */
.stage-pad { padding-top: var(--alp-bar-h); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--sc-ink) 4.5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--sc-ink) 4.5%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
}
.glow {
  position: absolute; pointer-events: none; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--sc-accent) 22%, transparent), transparent 70%);
  filter: blur(10px);
}

/* ------------------------------------------------------------- the frame --
   A browser window: outer shell, then the address bar and tab strip (ours,
   dark), then the partner's own surface (light) as the core. Concentric radii:
   20px outside, 14px inside.                                                 */
.frame {
  position: relative; z-index: 1;
  border-radius: var(--sc-r-lg);
  background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas));
  box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line);
  padding: 6px;
  color: var(--sc-ink);
}
.frame__bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem;
  padding: 0.45rem 0.6rem 0.45rem 0.5rem;
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: var(--sc-ink-soft);
}
.frame__nav { display: flex; gap: 0.15rem; color: color-mix(in oklab, var(--sc-ink) 40%, transparent); }
.frame__nav .icon { width: 16px; height: 16px; vertical-align: 0; }
.frame__url {
  display: flex; align-items: center; gap: 0.5rem; min-width: 0;
  padding: 0.38rem 0.75rem; border-radius: 8px;
  background: color-mix(in oklab, var(--sc-canvas) 70%, transparent); box-shadow: inset 0 0 0 1px var(--alp-line);
  color: var(--sc-ink);
}
.frame__url .icon { width: 13px; height: 13px; color: var(--sc-ink-soft); vertical-align: 0; }
.frame__url span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame__url .scheme { color: var(--sc-ink-soft); }
.frame__note { color: color-mix(in oklab, var(--sc-ink-soft) 80%, transparent); white-space: nowrap; }
.frame__tabs { display: flex; gap: 0.15rem; padding: 0 0.35rem 0.35rem; }
.frame__tab {
  position: relative; padding: 0.4rem 0.7rem; border-radius: 8px 8px 0 0;
  font-size: var(--sc-t-xs); font-weight: 500; color: var(--sc-ink-soft); background: transparent; border: 0; font-family: inherit; cursor: default;
}
.frame__tab::after { content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0; height: 2px; background: var(--alp-brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--sc-d-slow) var(--sc-ease-out); }
.frame__tab.is-active { color: var(--sc-ink); }
.frame__tab.is-active::after { transform: scaleX(1); }
.frame__core {
  position: relative; overflow: clip;
  border-radius: var(--sc-r-md);
  background: var(--d-bg); color: var(--d-ink);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px color-mix(in oklab, #000 18%, transparent);
  font-size: 0.86rem;
}
.frame__foot { display: none; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.6rem 0.2rem; font-family: var(--sc-font-mono); font-size: 0.68rem; color: color-mix(in oklab, var(--sc-ink-soft) 75%, transparent); }
.after-pin { padding-top: clamp(2rem, 4vw, 3.5rem); }
.frame__url [data-sc-reveal] { display: inline-block; }

/* ---- the partner's surface (light) ---------------------------------------- */
.ps { display: grid; grid-template-rows: auto auto 1fr; min-height: 100%; }
.ps-head { display: flex; align-items: center; gap: 1.25rem; padding: 0.75rem 1.1rem; background: var(--d-panel); border-bottom: 1px solid var(--d-line); }
.ps-logo {
  display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0;
  font-family: var(--sc-font-display); font-weight: 700; font-stretch: 104%; letter-spacing: -0.02em; font-size: 1.05rem; color: var(--d-ink);
}
.ps-logo__dot { width: 20px; height: 20px; border-radius: 6px; background: var(--alp-brand); flex: none; }
.ps-logo__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16ch; }
.ps-logo__name:empty::before { content: "Jouw Merk Lease"; color: var(--d-soft); font-weight: 500; }
/* An uploaded logo replaces the wordmark. Height is capped and width is auto,
   so a wide or square logo cannot push the surface around — that cap is what
   keeps the demo header the same size whatever the visitor uploads.
   The neutral plate behind it is deliberate, and not a filter: a filter would
   recolour someone's logo. Every surface that shows a mark happens to be light,
   so the failure mode is a WHITE logo disappearing; the plate carries both. */
.ps-logo--img .ps-logo__dot, .ps-logo--img .ps-logo__name { display: none; }
.ps-logo__img {
  display: block; height: 28px; width: auto; max-width: 11rem; object-fit: contain;
  background: var(--d-bg); border-radius: 6px; padding: 3px 6px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--d-ink) 8%, transparent);
}
.pt-head .ps-logo__img { height: 24px; }
/* a light logo needs the opposite neutral, or it washes out on the white header */
.ps-logo--onink .ps-logo__img { background: #22262E; box-shadow: inset 0 0 0 1px color-mix(in oklab, #fff 14%, transparent); }
.logo-pick__prev.is-onink { background: #22262E; }

/* the picker sits in the brand field, in the same .field idiom as the rest */
.logo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.logo-pick__btn {
  display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer;
  padding: 0.5rem 0.75rem; border-radius: var(--sc-r-sm); font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
  background: color-mix(in oklab, var(--sc-ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--alp-line);
  transition: color var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.logo-pick__btn:hover { color: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--alp-line-strong); }
.logo-pick__btn .icon { width: 16px; height: 16px; }
input[data-alp-logo]:focus-visible + .logo-pick__btn { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.logo-pick__prev { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.25rem 0.25rem 0.45rem; border-radius: var(--sc-r-sm); background: var(--d-bg); box-shadow: inset 0 0 0 1px var(--alp-line); }
.logo-pick__prev[hidden] { display: none; }
.logo-pick__prev img { display: block; height: 22px; width: auto; max-width: 7rem; object-fit: contain; }
.logo-pick__rm { display: grid; place-items: center; width: 24px; height: 24px; border: 0; padding: 0; cursor: pointer; border-radius: 6px; background: transparent; color: var(--d-soft); }
.logo-pick__rm:hover { color: #B3261E; background: color-mix(in oklab, #E4572E 14%, transparent); }
.logo-pick__rm .icon { width: 14px; height: 14px; }
.ps-nav { display: flex; gap: 1rem; margin-left: auto; color: var(--d-soft); font-weight: 500; }
.ps-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.8rem; border-radius: 8px;
  background: var(--alp-brand); color: var(--alp-brand-ink); font-weight: 500; font-size: 0.82rem; white-space: nowrap; border: 0; font-family: inherit;
}
.ps-btn--ghost { background: transparent; color: var(--d-ink); box-shadow: inset 0 0 0 1px var(--d-line); }
.ps-btn .icon { width: 14px; height: 14px; vertical-align: 0; }
.ps-filters { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0.5rem; padding: 0.85rem 1.1rem; background: var(--d-panel); border-bottom: 1px solid var(--d-line); }
.ps-field { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; border-radius: 8px; background: var(--d-bg); box-shadow: inset 0 0 0 1px var(--d-line); color: var(--d-soft); font-weight: 500; }
.ps-field .icon { width: 15px; height: 15px; vertical-align: 0; }
.ps-field .icon:last-child { margin-left: auto; width: 12px; height: 12px; }
.ps-field--ai { color: var(--alp-brand); }
.ps-body { position: relative; padding: 0.9rem 1.1rem 1.1rem; }
.ps-count { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.7rem; color: var(--d-soft); font-size: 0.8rem; }
.ps-count b { font-family: var(--sc-font-mono); font-weight: 500; color: var(--d-ink); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.ps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.ps-card {
  display: grid; gap: 0.35rem; padding: 0.75rem 0.8rem 0.7rem; border-radius: 10px;
  background: var(--d-panel); box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--d-line), 0 6px 14px -8px color-mix(in oklab, var(--d-ink) 20%, transparent);
}
.ps-card__top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-family: var(--sc-font-mono); font-size: 0.66rem; color: var(--d-soft); }
.ps-card__tag { padding: 0.1rem 0.4rem; border-radius: 999px; background: color-mix(in oklab, var(--alp-brand) 12%, #fff); color: var(--alp-brand); font-weight: 500; }
.ps-card__title { font-weight: 600; color: var(--d-ink); line-height: 1.2; font-size: 0.88rem; letter-spacing: -0.01em; }
.ps-card__title small { display: block; font-weight: 400; color: var(--d-soft); font-size: 0.74rem; margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-card__spec { font-family: var(--sc-font-mono); font-size: 0.66rem; color: var(--d-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-card__price { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.2rem; padding-top: 0.45rem; border-top: 1px solid var(--d-line); }
.ps-card__pm { font-family: var(--sc-font-mono); font-weight: 500; color: var(--d-ink); font-size: 0.92rem; }
.ps-card__pm small { font-size: 0.66rem; color: var(--d-soft); font-weight: 400; }
.ps-card__ex { font-family: var(--sc-font-mono); font-size: 0.66rem; color: var(--d-soft); }
.ps-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--d-soft); }
.ps-empty__in { display: grid; gap: 0.5rem; justify-items: center; max-width: 30ch; }
.ps-empty .icon { width: 34px; height: 34px; color: color-mix(in oklab, var(--d-soft) 50%, transparent); }
.ps-empty b { font-weight: 600; color: var(--d-ink); font-size: 1rem; }
.ps-empty p { position: relative; }
.ps-empty .swap { display: grid; }
.ps-empty .swap > * { grid-area: 1 / 1; }
.ps-toasts { position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; width: max-content; max-width: 92%; display: grid; gap: 0.5rem; z-index: 3; pointer-events: none; }
.ps-toast {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.8rem 0.55rem 0.6rem; border-radius: 10px;
  background: var(--d-ink); color: #F4F6FA; font-size: 0.78rem; font-weight: 500; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5);
}
.ps-toast .icon { width: 16px; height: 16px; color: var(--alp-brand); vertical-align: 0; filter: brightness(1.25); }
.ps-toast b { font-family: var(--sc-font-mono); font-weight: 500; }

/* ------------------------------------------------------------------ hero -- */
/* stages keep the engine's 100svh; never set height on them */
.hero { display: grid; align-items: center; overflow: clip; }
.hero__in {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter);
  display: grid; grid-template-columns: minmax(20rem, 30rem) 1fr; align-items: center; gap: 0;
}
.hero__panel {
  position: relative; z-index: 3;
  padding: 1.6rem 1.6rem 1.4rem; border-radius: var(--sc-r-lg);
  background: color-mix(in oklab, var(--alp-surface-2) 88%, var(--sc-canvas));
  box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line);
  display: grid; gap: 1rem;
  margin-right: -3.5rem; margin-top: 6rem;
}
.hero__panel h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); }
.hero__panel .lede { color: var(--sc-ink-soft); font-size: var(--sc-t-base); max-width: 40ch; text-wrap: pretty; }
.hero__frame { position: relative; z-index: 2; margin-left: 0; margin-top: -4rem; }
.hero__frame .frame__core { height: clamp(22rem, 52svh, 34rem); }
.hero .ps-grid { display: none; }
.plane { will-change: transform; }

/* brand field: the signature move */
.brand-field { display: grid; gap: 0.75rem; padding-top: 0.4rem; border-top: 1px solid var(--alp-line); margin-top: 0.2rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--sc-t-sm); font-weight: 500; color: var(--sc-ink); }
.field .hint { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.input {
  width: 100%; padding: 0.68rem 0.85rem; border-radius: var(--sc-r-sm); border: 0;
  background: color-mix(in oklab, var(--sc-canvas) 75%, transparent); color: var(--sc-ink);
  box-shadow: inset 0 0 0 1px var(--alp-line-strong); font: inherit; font-size: var(--sc-t-base);
  transition: box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.input::placeholder { color: color-mix(in oklab, var(--sc-ink-soft) 75%, transparent); }
.input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--sc-accent), 0 0 0 3px color-mix(in oklab, var(--sc-accent) 28%, transparent); }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239AA3B2' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.2rem; }
select.input option { background: var(--alp-surface-3); color: var(--sc-ink); }
textarea.input { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.swatches { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.swatch {
  width: 28px; height: 28px; border-radius: 8px; border: 0; padding: 0; cursor: pointer;
  background: var(--c); box-shadow: inset 0 1px 0 color-mix(in oklab, #fff 25%, transparent), 0 0 0 1px color-mix(in oklab, #000 30%, transparent);
  transition: transform var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.swatch:hover { transform: translateY(-1px); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--sc-canvas), 0 0 0 4px var(--sc-ink); }
.swatch--custom { position: relative; display: grid; place-items: center; background: conic-gradient(from 90deg, #E4572E, #E8B32B, #1E9E6A, #2B5BD7, #6D3BEF, #E4572E); }
.swatch--custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.swatch--custom::after { content: ""; position: absolute; inset: 7px; border-radius: 4px; background: var(--alp-surface-2); }
.brand-field__out { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.brand-field__out b { color: var(--sc-ink); font-weight: 500; }

/* -------------------------------------------------------------- bouwlijst -- */
.todo-wrap { display: grid; grid-template-columns: minmax(0, 28rem) 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.todo { display: grid; gap: 1.4rem; }
.todo__group { display: grid; gap: 0.35rem; }
.todo__group h3 { font-size: var(--sc-t-sm); font-weight: 500; color: var(--sc-ink-soft); font-family: var(--sc-font-text); letter-spacing: 0; padding-bottom: 0.4rem; }
.todo__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem; border-radius: var(--sc-r-sm);
  background: color-mix(in oklab, var(--sc-surface) 90%, transparent); box-shadow: inset 0 0 0 1px var(--alp-line);
}
.todo__box { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--alp-line-strong); }
.todo__item span { font-size: var(--sc-t-sm); }
.chip { font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.02em; padding: 0.22rem 0.55rem; border-radius: 999px; white-space: nowrap; background: color-mix(in oklab, var(--sc-ink) 8%, transparent); color: var(--sc-ink-soft); }
.chip--ok { background: color-mix(in oklab, var(--sc-accent) 16%, transparent); color: var(--sc-accent); }
.todo__turn { margin-top: 0.5rem; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: var(--sc-track-snug); }

/* ------------------------------------------------------------------ peak -- */
.peak { display: grid; align-items: center; overflow: clip; }
.peak__in { position: relative; z-index: 1; width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.peak .frame__core { height: clamp(24rem, 74svh, 46rem); }
.peak .ps-card {
  --at: calc(0.2 + var(--i, 0) * 0.038);
  --o: clamp(0, calc((var(--sc-p, 0) - var(--at)) / 0.07), 1);
  opacity: var(--o);
  transform: translate3d(0, calc((1 - var(--o)) * 18px), 0);
}
.peak .ps-filters { --o: clamp(0, calc((var(--sc-p, 0) - 0.1) / 0.06), 1); opacity: var(--o); transform: translate3d(0, calc((1 - var(--o)) * -6px), 0); }
.peak .ps-count { --o: clamp(0, calc((var(--sc-p, 0) - 0.16) / 0.05), 1); opacity: var(--o); }
.peak .ps-empty { --o: clamp(0, calc((0.13 - var(--sc-p, 0)) / 0.05), 1); opacity: var(--o); }
.peak .ps-empty[style*="--o: 0"] { pointer-events: none; }
.peak .ps-portal { --o: clamp(0, calc((var(--sc-p, 0) - 0.56) / 0.08), 1); opacity: var(--o); }
.setup {
  position: absolute; right: calc(var(--sc-gutter) + 1.5rem); bottom: clamp(1rem, 6svh, 3rem); z-index: 4;
  width: 18.5rem; padding: 1rem 1.1rem 1.1rem; border-radius: var(--sc-r-md);
  background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas));
  box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line);
  display: grid; gap: 0.55rem;
}
.setup h2 { font-size: var(--sc-t-sm); font-family: var(--sc-font-text); font-weight: 500; color: var(--sc-ink-soft); letter-spacing: 0; display: flex; justify-content: space-between; align-items: baseline; }
.setup h2 b { font-family: var(--sc-font-mono); font-weight: 500; color: var(--sc-ink); font-size: var(--sc-t-xs); }
.setup li {
  --o: clamp(0, calc((var(--sc-p, 0) - var(--at)) / 0.05), 1);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.6rem; font-size: var(--sc-t-sm);
  color: color-mix(in oklab, var(--sc-ink-soft) calc((1 - var(--o)) * 100%), var(--sc-ink));
}
.setup .todo__box { position: relative; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--alp-line-strong) calc((1 - var(--o)) * 100%), var(--sc-accent)); background: color-mix(in oklab, transparent calc((1 - var(--o)) * 100%), var(--sc-accent)); }
.setup .todo__box::after { content: ""; position: absolute; inset: 3px 4px 5px 4px; border-left: 2px solid var(--sc-accent-ink); border-bottom: 2px solid var(--sc-accent-ink); transform: rotate(-45deg) scale(0.9); opacity: var(--o); }
.peak__caption {
  position: absolute; left: calc(var(--sc-gutter) + 1.5rem); bottom: clamp(1rem, 6svh, 3rem); z-index: 4;
  max-width: 26rem; padding: 0.9rem 1.1rem; border-radius: var(--sc-r-md);
  background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas)); box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line);
}
.peak__caption p { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); letter-spacing: var(--sc-track-snug); line-height: 1.15; }
.peak__caption p span { color: var(--sc-ink-soft); }

/* ------------------------------------------------------------- portal act -- */
.portal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.phone {
  width: min(100%, 21rem); margin-inline: auto; border-radius: 30px; padding: 8px;
  background: color-mix(in oklab, var(--alp-surface-3) 90%, var(--sc-canvas));
  box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line);
}
.phone__core { border-radius: 23px; background: var(--d-bg); color: var(--d-ink); overflow: clip; min-height: 30rem; font-size: 0.86rem; box-shadow: inset 0 1px 0 #fff; }
.pt-head { display: flex; align-items: center; justify-content: space-between; padding: 1.35rem 1rem 0.8rem; background: var(--d-panel); border-bottom: 1px solid var(--d-line); }
.pt-head .ps-logo { font-size: 0.95rem; }
.pt-head .mono { font-size: 0.66rem; color: var(--d-soft); }
.pt-body { padding: 0.9rem 1rem 1.1rem; display: grid; gap: 0.7rem; }
.pt-card { padding: 0.8rem 0.9rem; border-radius: 12px; background: var(--d-panel); box-shadow: 0 0 0 1px var(--d-line); display: grid; gap: 0.35rem; }
.pt-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.pt-card b { font-weight: 600; }
.pt-card .mono { font-size: 0.68rem; color: var(--d-soft); }
.pt-status { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 500; padding: 0.15rem 0.5rem; border-radius: 999px; background: color-mix(in oklab, var(--alp-brand) 12%, #fff); color: var(--alp-brand); }
.pt-log { display: grid; gap: 0; padding-left: 0.25rem; }
.pt-log li { position: relative; padding: 0.3rem 0 0.3rem 1.1rem; font-size: 0.76rem; color: var(--d-soft); }
.pt-log li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 7px; height: 7px; border-radius: 50%; background: var(--d-line); }
.pt-log li.is-done { color: var(--d-ink); }
.pt-log li.is-done::before { background: var(--alp-brand); }
.pt-log li + li::after { content: ""; position: absolute; left: 3px; top: -0.55rem; height: 0.9rem; width: 1px; background: var(--d-line); }
.portal-copy { display: grid; gap: 1rem; }
.portal-copy .sc-body { color: var(--sc-ink-soft); }

.calc {
  padding: 1.25rem; border-radius: var(--sc-r-lg);
  background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas)); box-shadow: var(--sc-e2), var(--sc-edge), 0 0 0 1px var(--alp-line);
  display: grid; gap: 1rem;
}
.calc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.calc__head h3 { font-size: var(--sc-t-lg); }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.calc .field label { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.calc .input { padding: 0.55rem 0.75rem; font-size: var(--sc-t-sm); }
.calc__out { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--alp-line); }
.calc__out .lab { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.calc__out output { display: block; font-family: var(--sc-font-mono); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--sc-ink); }
.calc__out output small { font-size: 0.9rem; color: var(--sc-ink-soft); }
.calc__meta { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); text-align: right; display: grid; gap: 0.2rem; }
.staffel { display: grid; gap: 0.4rem; }
.staffel__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.staffel__cell { display: grid; gap: 0.2rem; }
.staffel__cell span { font-family: var(--sc-font-mono); font-size: 0.68rem; color: var(--sc-ink-soft); }
.staffel__cell .input { padding: 0.4rem 0.55rem; font-family: var(--sc-font-mono); font-size: var(--sc-t-sm); }

/* -------------------------------------------------------------- pipeline -- */
.rail-stage { display: flex; align-items: center; }
.rail { display: flex; gap: 1rem; align-items: stretch; padding-inline: var(--sc-gutter); padding-top: var(--alp-bar-h); }
.rail__lead { flex: none; width: min(26rem, 80vw); display: grid; gap: 1rem; align-content: center; padding-right: 2rem; }
.rail__lead .sc-body { color: var(--sc-ink-soft); }
.pipe-col { min-height: min(56svh, 30rem);
  flex: none; width: 19rem; display: grid; grid-template-rows: auto 1fr; gap: 0.6rem; padding: 0.75rem; border-radius: var(--sc-r-md);
  background: color-mix(in oklab, var(--sc-surface) 90%, transparent); box-shadow: inset 0 0 0 1px var(--alp-line);
  --o: clamp(0, calc((var(--sc-p, 0) - var(--at, 0)) / 0.08), 1);
}
.pipe-col__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0.2rem 0.3rem; font-size: var(--sc-t-sm); font-weight: 500; }
.pipe-col__head b { font-family: var(--sc-font-mono); font-weight: 500; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); }
.pipe-col__body { display: grid; gap: 0.5rem; align-content: start; }
.deal {
  display: grid; gap: 0.3rem; padding: 0.75rem 0.85rem; border-radius: var(--sc-r-sm);
  background: var(--alp-surface-2); box-shadow: var(--sc-e1), var(--sc-edge), 0 0 0 1px var(--alp-line);
}
.deal b { font-weight: 500; font-size: var(--sc-t-sm); }
.deal .mono { font-size: 0.7rem; color: var(--sc-ink-soft); }
.deal__foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--sc-font-mono); font-size: 0.7rem; color: var(--sc-ink-soft); }
.deal__foot b { font-family: var(--sc-font-mono); color: var(--sc-ink); font-weight: 500; }
.deal--hi { box-shadow: var(--sc-e2), var(--sc-edge), 0 0 0 1px color-mix(in oklab, var(--sc-accent) 45%, transparent); }
.mailcard {
  flex: none; width: 24rem; display: grid; gap: 0; border-radius: var(--sc-r-lg); padding: 6px;
  background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas)); box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line);
  --o: clamp(0, calc((var(--sc-p, 0) - var(--at, 0)) / 0.08), 1);
}
.mailcard__meta { padding: 0.6rem 0.8rem 0.5rem; display: grid; gap: 0.15rem; font-family: var(--sc-font-mono); font-size: 0.7rem; color: var(--sc-ink-soft); }
.mailcard__meta b { color: var(--sc-ink); font-weight: 500; }
.mailcard__core { border-radius: var(--sc-r-md); background: var(--d-panel); color: var(--d-ink); padding: 1.1rem 1.2rem; display: grid; gap: 0.7rem; font-size: 0.86rem; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px color-mix(in oklab, #000 18%, transparent); }
.mailcard__core p { color: var(--d-soft); }
.mailcard__core .ps-btn { justify-self: start; }
.rail__end { flex: none; width: var(--sc-gutter); }
/* the same pipeline as a plain scroll row on /platform: no act, no settle */
.pipe-scroll { display: flex; gap: 1rem; align-items: stretch; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.75rem; scrollbar-width: thin; }
.pipe-scroll > * { scroll-snap-align: start; --o: 1; }
.pipe-scroll .pipe-col { width: 17rem; }
.pipe-scroll .mailcard { width: 22rem; }
.ps-grid--static .ps-card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .pipe-col, .mailcard { opacity: calc(0.55 + 0.45 * var(--o)); transform: translate3d(0, calc((1 - var(--o)) * 22px), 0); }
}

/* ----------------------------------------------------------------- proof -- */
.proof-wrap { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.proof-copy { display: grid; gap: 1rem; }
.proof-copy .sc-body { color: var(--sc-ink-soft); }
.proof-copy .btns { display: flex; gap: 0.6rem; flex-wrap: wrap; padding-top: 0.4rem; }
.proof-scene { position: relative; aspect-ratio: 16 / 11; }
.shot { position: absolute; margin: 0; border-radius: var(--sc-r-lg); padding: 5px; background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas)); box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line); }
.shot img { width: 100%; height: auto; border-radius: calc(var(--sc-r-lg) - 5px); display: block; }
.shot--desktop { inset: 0 8% 10% 0; }
.shot--desktop img { height: 100%; object-fit: cover; object-position: top; }
.shot--mobile { right: 0; bottom: 0; width: 26%; border-radius: 22px; }
.shot--mobile img { border-radius: 17px; height: auto; }
.shot figcaption { position: absolute; left: 0.9rem; bottom: 0.8rem; font-family: var(--sc-font-mono); font-size: 0.7rem; color: #F4F6FA; background: color-mix(in oklab, var(--d-ink) 80%, transparent); padding: 0.25rem 0.5rem; border-radius: 6px; }

/* ----------------------------------------------------------------- close -- */
.close { display: grid; grid-template-rows: 1fr auto; overflow: clip; }
.close__in { position: relative; z-index: 1; width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding: calc(var(--alp-bar-h) + 1.5rem) var(--sc-gutter) 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.close__copy { display: grid; gap: 1rem; }
.close__copy .sc-body { color: var(--sc-ink-soft); }
.form-panel { padding: 1.4rem; border-radius: var(--sc-r-lg); background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas)); box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line); }
.form { display: grid; gap: 0.9rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.3rem; }
.needs { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; min-width: 0; }
.needs legend { padding: 0; font-size: var(--sc-t-sm); font-weight: 500; }
.needs legend .muted { font-weight: 400; font-size: var(--sc-t-xs); }
.needs__grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.need { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.7rem; border-radius: var(--sc-r-sm); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); cursor: pointer; background: color-mix(in oklab, var(--sc-ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--alp-line); transition: color var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out), background var(--sc-d-fast) var(--sc-ease-out); }
.need:hover { color: var(--sc-ink); box-shadow: inset 0 0 0 1px var(--alp-line-strong); }
/* color-scheme keeps the native box dark; without it Chrome paints a white tile on this ground */
.need input { width: 15px; height: 15px; margin: 0; flex: none; color-scheme: dark; accent-color: var(--sc-accent); cursor: pointer; }
.need:has(input:checked) { color: var(--sc-ink); background: color-mix(in oklab, var(--sc-accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-accent) 45%, transparent); }
.need:has(input:focus-visible) { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.form__note { font-size: var(--sc-t-xs); color: var(--sc-ink-soft); max-width: 24ch; }
.form__msg { display: none; padding: 0.7rem 0.9rem; border-radius: var(--sc-r-sm); font-size: var(--sc-t-sm); }
.form__msg.is-ok { display: block; background: color-mix(in oklab, var(--sc-accent) 14%, transparent); color: var(--sc-ink); }
.form__msg.is-err { display: block; background: color-mix(in oklab, #E4572E 16%, transparent); color: var(--sc-ink); }
.field .error { display: none; font-size: var(--sc-t-xs); color: #FF8A65; }
.field.is-invalid .error { display: block; }
.field.is-invalid .input { box-shadow: inset 0 0 0 1px #E4572E; }
.brand-echo { display: flex; gap: 0.5rem; align-items: center; font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); color: var(--sc-ink-soft); }
.brand-echo b { color: var(--sc-ink); font-weight: 500; }
.brand-echo i { width: 12px; height: 12px; border-radius: 3px; background: var(--alp-brand); display: inline-block; flex: none; }
.foot { position: relative; z-index: 1; border-top: 1px solid var(--alp-line); }
.foot__in { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding: 1.1rem var(--sc-gutter) 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.foot__links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot__links a:hover { color: var(--sc-ink); }

/* ------------------------------------------------------- shrink floors ----- */
/* Grid and flex items default to min-width:auto: they refuse to shrink below
   their content's min-content width. Inside the demo surface that floor was
   wider than a phone, so the stage ran past the viewport — and because the
   stages are overflow:clip, the right-hand side was simply cut off instead of
   producing a scrollbar. That is why nothing upstream ever reported it. Every
   composition root below has to be allowed to shrink. */
.hero__in, .peak__in, .close__in,
.frame, .frame__bar, .frame__tabs, .frame__url, .frame__core,
.ps, .ps-head, .ps-filters, .ps-body,
.ps-card, .ps-card__top, .ps-card__title, .ps-card__price, .ps-card__pm,
.phone, .phone__core, .pt-head, .pt-card, .proof-scene,
.form-panel, .form, .field,
.todo-wrap, .todo, .todo__group, .todo__item, .sc-stack { min-width: 0; }
/* these two stay on one line at any width, so they need somewhere to go */
.ps-head .ps-btn { min-width: 0; overflow: hidden; }
.todo__item .chip { min-width: 0; }

/* --------------------------------------------------------- flow pages ------ */
.page { padding-top: var(--alp-bar-h); }
.page-head { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 4rem); display: grid; gap: 1.1rem; max-width: 52rem; }
.page-head h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 4rem); letter-spacing: var(--sc-track-tight); }
.page-head .lede { font-size: var(--sc-t-lg); color: var(--sc-ink-soft); max-width: 46ch; text-wrap: pretty; line-height: 1.45; }
.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--alp-line); }
.section h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
.section .intro { display: grid; gap: 0.9rem; max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.section .intro .sc-body { color: var(--sc-ink-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.speclist { display: grid; gap: 0.6rem; }
.speclist li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: var(--sc-t-base); }
.speclist .icon { width: 20px; height: 20px; color: var(--sc-accent); margin-top: 0.15rem; }
.speclist b { display: block; font-weight: 500; }
.speclist span { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.plate { position: relative; border-radius: var(--sc-r-lg); padding: 6px; background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas)); box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line); }
.plate img { width: 100%; height: auto; border-radius: var(--sc-r-md); display: block; }
.plate--tall img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.cell {
  position: relative; overflow: clip; border-radius: var(--sc-r-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas)); box-shadow: var(--sc-e2), var(--sc-edge), 0 0 0 1px var(--alp-line);
  display: grid; gap: 0.8rem; align-content: start;
}
.cell--tint { background: linear-gradient(160deg, color-mix(in oklab, var(--sc-accent) 18%, var(--alp-surface-2)), var(--alp-surface-2) 70%); }
.cell--brand { background: linear-gradient(160deg, color-mix(in oklab, var(--alp-brand) 26%, var(--alp-surface-2)), var(--alp-surface-2) 70%); }
.cell h3 { font-size: var(--sc-t-xl); }
.cell p { color: var(--sc-ink-soft); }
.cell .chip { justify-self: start; }
.cell .icon--big { width: 30px; height: 30px; color: var(--sc-accent); }
.ledger { display: grid; }
.ledger__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto; gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-top: 1px solid var(--alp-line); }
.ledger__row:last-child { border-bottom: 1px solid var(--alp-line); }
.ledger__row h3 { font-size: var(--sc-t-xl); }
.ledger__row p { color: var(--sc-ink-soft); }
.ledger__row .price { font-family: var(--sc-font-mono); font-size: var(--sc-t-sm); color: var(--sc-ink); white-space: nowrap; padding: 0.4rem 0.7rem; border-radius: var(--sc-r-sm); background: color-mix(in oklab, var(--sc-ink) 6%, transparent); }
/* the FAQ reuses the ledger, minus the price column */
.ledger--faq .ledger__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; }
.ledger--faq .ledger__row h3 { font-size: var(--sc-t-lg); text-wrap: pretty; }
/* a speclist that is too long to read as one column */
.speclist--cols { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem 2rem; }
/* the entry price: the ledger's price cell, at headline size */
.price-lead { gap: 0.7rem; }
.price-lead__fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; }
.price-lead__fig b { color: var(--sc-ink); font-family: var(--sc-font-display); font-weight: 600; font-stretch: 102%; letter-spacing: var(--sc-track-snug); line-height: 1.04; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.price-lead__fig span { font-family: var(--sc-font-mono); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.price-lead h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); max-width: 26ch; }
.price-lead p { max-width: 62ch; }
.price-lead__note { padding-top: 0.8rem; border-top: 1px solid var(--alp-line); font-size: var(--sc-t-sm); }
.gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; }
.gallery:not(.gallery--phones) .plate:nth-child(3) { grid-column: 1 / -1; }
.gallery--phones { grid-template-columns: repeat(4, 1fr); }
.gallery--phones .plate { border-radius: 26px; }
.gallery--phones .plate img { border-radius: 20px; }
.cta-plate { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--sc-r-lg); background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas)); box-shadow: var(--sc-e3), var(--sc-edge), 0 0 0 1px var(--alp-line); }
.cta-plate h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); }
.cta-plate p { color: var(--sc-ink-soft); margin-top: 0.5rem; }
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.calendly { min-height: 24rem; border-radius: var(--sc-r-lg); padding: 6px; background: color-mix(in oklab, var(--alp-surface-2) 92%, var(--sc-canvas)); box-shadow: var(--sc-e2), var(--sc-edge), 0 0 0 1px var(--alp-line); display: grid; }
.calendly__core { border-radius: var(--sc-r-md); background: color-mix(in oklab, var(--sc-canvas) 70%, transparent); display: grid; place-items: center; text-align: center; padding: 2rem; gap: 0.6rem; box-shadow: inset 0 0 0 1px var(--alp-line); }
.calendly__core .icon { width: 30px; height: 30px; color: var(--sc-accent); }
.calendly__core p { color: var(--sc-ink-soft); max-width: 32ch; }
.calendly-inline-widget { width: 100%; min-height: 640px; border-radius: var(--sc-r-md); overflow: hidden; }
.brand-try { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.brand-try .hero__panel { margin: 0; }
.brand-try .frame__core { min-height: 22rem; }

/* ------------------------------------------------------------- mobile menu -- */
.menu {
  position: fixed; inset: 0; z-index: calc(var(--sc-z-chrome) - 1);
  background: color-mix(in oklab, var(--sc-canvas) 92%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: grid; align-content: center; padding: var(--sc-gutter);
  opacity: 0; visibility: hidden; transition: opacity var(--sc-d-slow) var(--sc-ease-out), visibility 0s linear var(--sc-d-slow);
}
.menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu a { display: block; padding: 0.9rem 0; font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.8rem, 8vw, 2.6rem); letter-spacing: var(--sc-track-snug); border-bottom: 1px solid var(--alp-line); opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 500ms var(--sc-ease-out), transform 500ms var(--sc-ease-out); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(1) { transition-delay: 60ms; } .menu.is-open a:nth-child(2) { transition-delay: 120ms; } .menu.is-open a:nth-child(3) { transition-delay: 180ms; } .menu.is-open a:nth-child(4) { transition-delay: 240ms; } .menu.is-open a:nth-child(5) { transition-delay: 300ms; }
.menu-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: var(--sc-r-sm); position: relative; cursor: pointer; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--sc-ink); transition: transform var(--sc-d-base) var(--sc-ease-out), opacity var(--sc-d-base) var(--sc-ease-out); }
.menu-btn i:nth-child(1) { top: 14px; } .menu-btn i:nth-child(2) { top: 19.5px; } .menu-btn i:nth-child(3) { top: 25px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ------------------------------------------------------------ responsive -- */
@media (min-width: 1101px) {
  /* the setup panel sits on the last grid slot; the eighth card would only be hidden under it */
  .peak .ps-card:nth-child(8) { display: none; }
}
@media (max-width: 1100px) {
  .ps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .peak .ps-card:nth-child(n + 7) { display: none; }
  .setup { display: none; }
}
@media (max-width: 860px) {
  .app-bar { grid-template-columns: auto 1fr auto auto; gap: 0.75rem; }
  .app-bar__ws { display: none; }
  .app-bar__tabs { display: none; }
  .menu-btn { display: block; }
  .btn--lg { padding: 0.7rem 0.6rem 0.7rem 1rem; font-size: var(--sc-t-sm); }

  .hero__in { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.9rem; padding-top: 1rem; }
  .hero__panel { margin: 0; padding: 1.15rem 1.15rem 1rem; gap: 0.7rem; }
  .hero__frame { margin-top: 0; }
  .hero__panel h1 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .hero__panel .lede { font-size: var(--sc-t-sm); }
  .brand-field { gap: 0.55rem; }
  .brand-field__out { display: none; }
  .hero__frame .frame__core { height: 17rem; }
  .frame__note, .frame__nav { display: none; }
  .frame__bar { grid-template-columns: 1fr; }
  .ps-head { padding: 0.6rem 0.8rem; gap: 0.6rem; }
  .ps-nav { display: none; }
  .ps-filters { grid-template-columns: 1fr 1fr auto; padding: 0.6rem 0.8rem; gap: 0.4rem; }
  .ps-filters .ps-field:nth-child(3) { display: none; }
  .ps-field { padding: 0.5rem 0.6rem; }
  .brand-field .hint { display: none; }
  .hero__frame .frame__core { height: 16rem; }
  .ps-empty { padding: 0.75rem; }
  .ps-empty__in { gap: 0.3rem; }
  .ps-empty .icon { width: 26px; height: 26px; }
  .ps-empty b { font-size: 0.92rem; }
  .ps-empty p { font-size: 0.78rem; line-height: 1.4; }
  .ps-body { padding: 0.7rem 0.8rem 0.9rem; }
  .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .peak .ps-card:nth-child(n + 5) { display: none; }
  .ps-card { padding: 0.65rem 0.7rem 0.6rem; }
  .ps-card__top span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ps-card__price { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .ps-card__pm { white-space: nowrap; }
  .peak .frame__core { height: min(64svh, 34rem); }
  .peak__caption { position: static; margin-top: 0.8rem; max-width: none; padding: 0.7rem 0.9rem; }
  .peak__caption p { font-size: 1.05rem; }
  .ps-toasts { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; translate: none; width: auto; max-width: none; }
  .frame__foot { display: flex; }
  .ps-toast { font-size: 0.72rem; }

  .todo-wrap { grid-template-columns: 1fr; gap: 1.6rem; }
  .portal-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .phone__core { min-height: 0; }
  .calc__grid { grid-template-columns: 1fr 1fr; }
  .staffel__row { grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
  .rail { gap: 0.75rem; }
  .rail__lead { width: 82vw; padding-right: 0.5rem; }
  .pipe-col { width: 78vw; }
  .mailcard { width: 84vw; }
  .proof-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .proof-scene { aspect-ratio: 4 / 3; }
  .close { grid-template-rows: 1fr auto; }
  .close__in { grid-template-columns: 1fr; gap: 1rem; padding-top: calc(var(--alp-bar-h) + 0.75rem); padding-bottom: 0.75rem; align-content: start; }
  .close__copy h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .close__copy .sc-body { font-size: var(--sc-t-sm); }
  .form-panel { padding: 1rem; }
  .form { gap: 0.6rem; }
  .form__row { grid-template-columns: 1fr; gap: 0.6rem; }
  .form .input { padding: 0.55rem 0.75rem; font-size: var(--sc-t-sm); }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__note { max-width: none; }
  .foot__in { padding-block: 0.8rem; font-size: var(--sc-t-xs); }
  .split, .split--wide, .duo, .contact-wrap, .brand-try { grid-template-columns: 1fr; }
  .ledger__row, .ledger--faq .ledger__row { grid-template-columns: 1fr; gap: 0.5rem; }
  .gallery, .gallery--phones { grid-template-columns: 1fr 1fr; }
  .cta-plate { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery, .gallery--phones { grid-template-columns: 1fr; }
  .calc__grid { grid-template-columns: 1fr; }
}
/* short viewports: the close cannot pin a form taller than the screen, so it
   becomes a plain block there (the engine's inline height is overridden) */
@media (max-width: 860px) and (max-height: 760px) {
  #contact { height: auto !important; }
  .close { height: auto; min-height: 100svh; overflow: visible; }
}
/* compact phones: the hero stage is one viewport, so the panel gives up its lede */
@media (max-width: 860px) and (max-height: 720px) {
  .hero__panel .lede { display: none; }
  .hero__panel .eyebrow { display: none; }
  .hero__frame .frame__tabs { display: none; }
  .hero__frame .frame__core { height: 13rem; }
  .hero .ps-empty .icon { display: none; }
}

/* --------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .peak .ps-card, .peak .ps-filters, .pipe-col, .mailcard { transform: none !important; }
  .plane { transform: none !important; }
  .btn, .btn__ic, .swatch, .tab, .menu a, .menu, .frame__tab::after { transition: none; }
  .menu a { opacity: 1; transform: none; }
}
