/* =============================================================================
   base.css — the fluid foundation. Copy into every site as css/base.css.
   Nothing here is width-locked: type, spacing and layout scale continuously
   from ~360px phones to ultrawide. This file is why sites are dynamic off the bat.
   ============================================================================= */

:root {
  /* COLOURS — from the Markt logo: ink #1F1B31, accent dot #E83340. */
  --brand:      #1F1B31;   /* primary ink */
  --brand-dark: #0F0F12;   /* darker primary (hovers, footer) — neutral, matches the stages */
  --accent:     #E83340;   /* the markt dot */
  --accent-2:   #FF5B66;   /* lighter accent for gradients on dark */
  --ok:         #17A45C;   /* confirmation green — ticks only, never a CTA */
  --muted:      #5B566F;   /* secondary text */
  --muted-dark: #A6A6AE;   /* secondary text on dark */
  --surface:    #F4F4F8;   /* light section background */
  --line:       rgba(31,27,49,.10);
  --line-dark:  rgba(255,255,255,.14);
  --ink:        #1F1B31;   /* body text */
  --white:      #ffffff;

  /* GRADIENT — one system, black/grey, used by every dark stage (hero, reservations
     band, closing CTA card) so the whole page reads as one surface. The wordmark and
     the red dot carry all the colour. */
  --g-1: #08080A;   /* deepest black */
  --g-2: #141417;   /* body of the gradient */
  --g-3: #3C3C44;   /* upper-left grey lift */
  --g-4: #232329;   /* lower-right grey */

  /* TYPE — fluid scale. Never set a size that only looks right at one width. */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-header: clamp(42px, 6.4vw, 84px);
  --t-h1:     clamp(38px, 5.2vw, 68px);
  --t-h2:     clamp(29px, 3.5vw, 46px);
  --t-h3:     clamp(21px, 2.2vw, 27px);
  --t-lg:   clamp(17px, 1.4vw, 20px);
  --t-body: 16px;
  --t-small: 11px;
  --t-cta:   12px;

  /* SPACING */
  --wrap: 1240px;
  --pad:  clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 8.5vw, 136px);
  --measure: 62ch;

  --nav-h: 76px;
  --radius: 14px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── Minimal reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);   /* in-page anchors clear the fixed bar */ }
/* No rubber-band / pull-to-refresh overscroll. Must be on both html and body — only the real
   scroll container (<html>) honours it. Desktop Safari ignores it (system behaviour). */
html, body { overscroll-behavior-y: none; }
body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;                         /* body never gets a horizontal scrollbar */
  overflow-wrap: break-word;                  /* long words wrap instead of overflowing (else clipped by overflow-x) */
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Typography scale ──────────────────────────────────────────────────────── */
h1 { font-size: var(--t-h1); line-height: 1.05; font-weight: 700; }
h2 { font-size: var(--t-h2); line-height: 1.12; font-weight: 700; }
h3 { font-size: var(--t-h3); line-height: 1.2;  font-weight: 700; }
p  { max-width: var(--measure); }
/* Unbreakable tokens (URLs, emails, long single words) break instead of running off narrow screens. */
a, h1, h2, h3, h4, h5, h6, td, li { overflow-wrap: anywhere; }
.eyebrow { font-size: var(--t-cta); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* ── Layout helpers ────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Auto-fit grid that never overflows: cells wrap when they can't hold min width. */
.grid { display: grid; gap: clamp(16px, 3vw, 32px); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

/* Wide content (tables/code/diagrams) scrolls inside its own box, never the page. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; padding: .9em 1.6em; border: 1px solid transparent; border-radius: var(--radius);
  font-size: var(--t-cta); letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-fill    { background: var(--brand); color: var(--white); }
.btn-fill:hover  { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-outline:hover { background: var(--brand); color: var(--white); }

/* ── Hero (100svh so mobile chrome doesn't clip it) ───────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;   /* vh fallback for Safari < 15.4 */
  display: grid; place-items: center; text-align: center;
  color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); z-index: -1; }
.hero__inner { padding: var(--pad); display: grid; gap: 1.2rem; justify-items: center; }
.hero h1 { font-size: var(--t-header); }

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: transform .3s var(--ease), background .3s var(--ease); }
.nav__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--nav-h); }
.nav__logo { font-weight: 800; letter-spacing: .04em; font-size: var(--t-lg); }
.nav__links { display: flex; gap: clamp(12px, 2vw, 28px); margin-left: auto; }
.nav__links a { font-size: var(--t-cta); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.nav__cta { padding-block: .6em; }
/* Homepage bar: transparent over hero, solid once scrolled. Sub-page bar: always solid. */
.nav:not(.nav--static) { background: transparent; color: var(--white); }
.nav.nav--static, .nav.is-scrolled { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.nav.nav--static .nav__cta, .nav.is-scrolled .nav__cta { background: var(--brand); color: var(--white); }

.nav__burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: 0; padding: 8px; min-width: 44px; min-height: 44px; }
.nav__burger span { width: 24px; height: 2px; background: currentColor; }

/* Drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(86vw, 340px);
  background: var(--white); color: var(--ink); z-index: 60; padding: clamp(24px, 6vw, 48px);
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer__close { align-self: flex-end; display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 32px; line-height: 1; background: none; border: 0; color: inherit; }
.drawer__links { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; font-size: var(--t-lg); }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer { background: var(--brand-dark); color: var(--white); padding-block: clamp(40px, 6vw, 72px); }
.footer__inner { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.footer__legal { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; font-size: var(--t-cta); letter-spacing: .06em; text-transform: uppercase; }
.footer__social { display: flex; gap: 1rem; list-style: none; padding: 0; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: background .2s; }
.footer__social a:hover { background: rgba(255,255,255,.12); }
.footer__copy { font-size: 13px; opacity: .8; line-height: 1.8; max-width: none; }
.footer__copy a { text-decoration: underline; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.form label { display: grid; gap: .4rem; font-size: 14px; }
/* Text controls only — a checkbox/radio must never inherit the full-width box. */
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  font: inherit; font-size: 16px; padding: .8em 1em; border: 1px solid #cfcfcf; border-radius: var(--radius); background: var(--white); width: 100%;  /* font-size >=16px so iOS Safari doesn't zoom on focus */
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }

/* Select: drop the native chrome (its arrow hugs the right edge) for our own chevron with room to breathe. */
.form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 2.8em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F1B31' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1em center; background-size: 12px 8px;
}
/* Where supported (Chromium 135+), style the open list too; other browsers keep the native list. */
@supports (appearance: base-select) {
  .form select, .form select::picker(select) { appearance: base-select; }
  .form select::picker-icon { display: none; }   /* the background chevron above already does this job */
  .form select::picker(select) {
    margin-top: .4rem; padding: .35rem; border: 1px solid var(--line); border-radius: 10px;
    background: var(--white); color: var(--ink); box-shadow: 0 18px 40px -18px rgba(8,8,10,.45);
  }
  .form select option { padding: .65em .9em; border-radius: 6px; font-size: 15px; cursor: pointer; }
  .form select option::checkmark { display: none; }
  .form select option:hover, .form select option:focus-visible { background: var(--surface); outline: none; }
  .form select option:checked { font-weight: 700; }
}

/* Consent row: box and text side by side, both left-aligned. This has to out-specify
   `.form label { display: grid }` above, or the box stacks on top of the text. */
.form label.form__consent {
  display: flex; flex-direction: row; align-items: flex-start; gap: .65rem;
  font-size: 13px; text-align: left; line-height: 1.5; cursor: pointer;
}
.form label.form__consent input[type=checkbox] {
  flex: none; width: 18px; height: 18px; margin: .12em 0 0; padding: 0;
  accent-color: var(--accent); cursor: pointer;
}
.form label.form__consent span { flex: 1 1 auto; min-width: 0; }
.form__hp { display: none; }  /* honeypot — display:none, NOT off-screen (iOS autofill fills off-screen fields and kills real leads) */
.form__msg { font-size: 14px; }
.form__msg.is-error { color: #b0261a; }

/* Body offset so fixed nav never covers content on sub-pages. */
.has-static-nav { padding-top: var(--nav-h); }

/* ── Thank-you page ──────────────────────────────────────────────────────────── */
.thanks {
  min-height: calc(100svh - var(--nav-h)); display: grid; place-items: center;
  text-align: center; padding-block: clamp(56px, 9vw, 120px);
}
.thanks__inner { display: grid; justify-items: center; gap: .55rem; max-width: min(100%, 76ch); }
.thanks__inner p { margin-inline: auto; }
/* Held on one line at every width. The vw term is tuned to this exact headline —
   a longer one would need the term reduced, or it will clip rather than wrap. */
.thanks h1 { font-size: clamp(26px, 6.6vw, 62px); font-weight: 600; white-space: nowrap; max-width: 100%; }
/* One line wherever it fits. The line is ~58 characters, so below roughly 620px it
   would have to drop under 11px to hold — it wraps to two lines there instead. */
.thanks .lede { margin-top: .6rem; max-width: none; }
@media (min-width: 620px) { .thanks .lede { white-space: nowrap; } }

.thanks__ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.8rem; }
.thanks__note { margin-top: 2.2rem; font-size: 14px; color: rgba(255,255,255,.5); }
.thanks__note a { text-decoration: underline; text-underline-offset: 3px; }
.thanks__note a:hover { color: var(--accent-2); }

/* ── Legal pages (privacy / terms) — long-form readable typography ─────────────── */
.legal { max-width: var(--measure); }
.legal h1 { font-size: var(--t-h2); }
.legal h2 { font-size: var(--t-h3); margin-top: 2.2rem; }
.legal h3 { font-size: var(--t-lg); margin-top: 1.6rem; }
.legal p, .legal ul, .legal ol { margin-top: 1rem; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li { margin-top: .4rem; }
.legal a { color: var(--brand); text-decoration: underline; }

/* ── Image-layout repertoire — frames, captions, galleries (immersive, not stiff) ── */
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-cap { position: absolute; inset: auto 0 0 0; padding: 1rem 1.2rem; color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); font-weight: 600; pointer-events: none; }
.gallery { display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.gallery-frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ── Reduced motion: every animation must have a no-motion path (spec §1.5). ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =============================================================================
   MARKT — site layer. Everything above is the shared fluid foundation; this
   section is the Markt product-site design: dark gradient stages, light
   content sections, and one accent (the markt dot) used sparingly.
   ============================================================================= */

body { font-weight: 400; letter-spacing: -.005em; }
h1, h2, h3, h4 { letter-spacing: -.025em; font-weight: 700; }
h1 { font-weight: 600; }
h2 { font-weight: 600; }
.eyebrow { color: var(--accent); font-weight: 800; }
.lede { font-size: var(--t-lg); line-height: 1.6; color: var(--muted); font-weight: 400; }
.on-dark .lede, .lede--dark { color: var(--muted-dark); }
.dot { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn { border-radius: 100px; padding: 1.05em 1.9em; letter-spacing: .1em; font-weight: 700; }
.btn-fill { background: var(--accent); color: var(--white); box-shadow: 0 10px 26px -12px rgba(232,51,64,.85); }
.btn-fill:hover { background: #d0202d; transform: translateY(-1px); }
.btn-ink { background: var(--brand); color: var(--white); }
.btn-ink:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); border-color: var(--line-dark); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { border-radius: 100px; }

/* ── Nav ─────────────────────────────────────────────────────────────────────── */
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { width: clamp(96px, 11vw, 124px); height: auto; }
.nav__logo .logo--dark { display: none; }
.nav.nav--static .nav__logo .logo--dark, .nav.is-scrolled .nav__logo .logo--dark { display: block; }
.nav.nav--static .nav__logo .logo--light, .nav.is-scrolled .nav__logo .logo--light { display: none; }
/* Frosted glass once revealed. It is safe to be translucent now that the bar hides on
   the way down — nothing scrolls behind it, so the blur reads as depth, not clutter. */
.nav.nav--static, .nav.is-scrolled {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 8px 28px -20px rgba(8,8,10,.45);
}
/* No backdrop-filter (older Safari/Firefox): fall back to a near-solid bar so the
   text never sits on unreadable see-through white. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.nav--static, .nav.is-scrolled { background: rgba(255,255,255,.97); }
}
/* Scrolling down slides the bar away so nothing ever runs underneath it; scrolling
   up brings it back. JS owns the class, so with JS off the bar simply stays put. */
.nav { transition: transform .38s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease); will-change: transform; }
.nav.is-hidden { transform: translateY(-100%); }
/* While the bar is tracking the hero its transform is set per frame from JS, so the
   transform transition is dropped — otherwise every frame restarts the easing. */
.nav.is-tracking { transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.nav__links a { position: relative; font-weight: 700; letter-spacing: .09em; opacity: .82; transition: opacity .2s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--accent); transition: right .28s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { right: 0; }
.nav__cta { padding: .85em 1.5em; }
.nav.nav--static .nav__cta, .nav.is-scrolled .nav__cta { background: var(--accent); color: var(--white); }
/* Mobile burger: pushed to the right edge, and colour inherited from the bar.
   A <button> does not inherit `color` by default, so without this `currentColor`
   on the bars resolves to the UA's black button text instead of the nav's white. */
.nav__burger { margin-left: auto; color: inherit; }
.nav:not(.nav--static):not(.is-scrolled) .nav__burger { color: var(--white); }
.nav.nav--static .nav__burger, .nav.is-scrolled .nav__burger { color: var(--ink); }
.drawer__links a { font-weight: 700; letter-spacing: -.01em; }
.drawer__links .btn { margin-top: .6rem; }

/* ── Gradient stage (the Blinc gradient, re-pitched) ─────────────────────────── */
.stage {
  position: relative; isolation: isolate; color: var(--white);
  background:
    radial-gradient(115% 85% at 18% 6%,  var(--g-3) 0%, transparent 60%),
    radial-gradient(95% 80% at 88% 90%,  var(--g-4) 0%, transparent 55%),
    linear-gradient(168deg, var(--g-1) 0%, var(--g-2) 52%, var(--g-1) 100%);
  overflow: hidden;
}
/* Soft light rays across the stage — the one flourish carried from the Blinc hero. */
.stage::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none;
  background:
    linear-gradient(102deg, transparent 34%, rgba(255,255,255,.11) 40%, transparent 46%),
    linear-gradient(102deg, transparent 52%, rgba(255,255,255,.06) 58%, transparent 64%),
    linear-gradient(102deg, transparent 66%, rgba(255,255,255,.045) 71%, transparent 76%);
  filter: blur(2px);
}
.stage h1, .stage h2, .stage h3 { color: var(--white); }
.stage p { color: var(--muted-dark); }
.stage a:not(.btn) { color: var(--white); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero { min-height: 100svh; text-align: left; place-items: stretch; }
.hero .wrap { display: grid; align-content: center; min-height: 100svh; padding-block: calc(var(--nav-h) + 4vh) 14vh; }
.hero::after { content: none; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; }
.hero__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: dot-pulse 3.4s ease-in-out infinite;
}
/* Slow breathing halo on the eyebrow dot. Start and end frames are identical, so the
   global reduced-motion rule collapses it to the resting halo rather than a half state. */
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232,51,64,.22); }
  50%      { box-shadow: 0 0 0 10px rgba(232,51,64,.05); }
}
.hero h1 { font-size: var(--t-header); max-width: 14ch; font-weight: 500; }
.hero h1 b { font-weight: 700; }
.hero__sub { max-width: 54ch; margin-top: 1.4rem; font-size: var(--t-lg); color: var(--muted-dark); }
.hero__note { max-width: 60ch; margin-top: 1rem; font-size: 15px; color: rgba(255,255,255,.55); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__scroll { position: absolute; left: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); bottom: clamp(20px, 4vh, 40px); display: inline-flex; align-items: center; gap: .7rem;
  font-size: var(--t-cta); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero__scroll span.ring { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.hero__scroll svg { animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll svg { animation: none; } }

/* ── Section heads ───────────────────────────────────────────────────────────── */
.sec-head { max-width: 44ch; }
.sec-head h2 { margin-top: .7rem; }
.sec-head .lede { margin-top: 1.1rem; }
.sec-head--wide { max-width: 60ch; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lede, .sec-head--center p { margin-inline: auto; }

/* ── The journey chain: MARKETING → LEADS → … → SALES ────────────────────────── */
.chain { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem .35rem; align-items: center; }
.chain li { display: inline-flex; align-items: center; gap: .35rem; }
.chain b {
  display: inline-block; padding: .62em 1.05em; border-radius: 100px; font-size: var(--t-cta);
  letter-spacing: .13em; text-transform: uppercase; font-weight: 800; white-space: nowrap;
  border: 1px solid var(--line); color: var(--ink); background: var(--white);
  transition: border-color .35s var(--ease), color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.stage .chain b, .chain--dark b { border-color: var(--line-dark); color: rgba(255,255,255,.72); background: rgba(255,255,255,.04); }
.chain li.lit b { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.stage .chain li.lit b, .chain--dark li.lit b { background: rgba(232,51,64,.14); color: #FF8A92; }
/* The sweep ends on Sales and stays there: solid red, held. */
.chain li.done b, .stage .chain li.done b, .chain--dark li.done b {
  background: var(--accent); border-color: var(--accent); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(232,51,64,.9);
}
.chain i { font-style: normal; opacity: .35; font-size: 13px; }

/* ── Device / dashboard stage ────────────────────────────────────────────────── */
.showcase { position: relative; display: grid; justify-items: center; }
.showcase img { width: min(100%, 960px); filter: drop-shadow(0 40px 70px rgba(0,0,0,.45)); }
.showcase--framed img { border-radius: var(--radius); box-shadow: 0 30px 70px -24px rgba(8,8,10,.55); border: 1px solid var(--line); filter: none; }

/* ── Split: copy beside media ────────────────────────────────────────────────── */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-media { grid-template-columns: 5fr 7fr; } .split--media-first > :first-child { order: 2; } }

/* ── Tick list ───────────────────────────────────────────────────────────────── */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; align-items: start; line-height: 1.5; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: .12em;
  background: rgba(23,164,92,.13) no-repeat center / 11px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317A45C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.stage .ticks li::before { background-color: rgba(255,255,255,.10); }

/* ── Panels / cards ──────────────────────────────────────────────────────────── */
/* Soft grey fill, no border, no hover — same treatment as the mode cards. */
.panel { background: var(--surface); border: 0; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
/* On a surface-backed section the fill would disappear, so flip the card to white. */
.section--surface .panel { background: var(--white); }
.panel h3 { font-size: var(--t-h3); }
.panel p { margin-top: .7rem; color: var(--muted); }
.panel__num { display: block; font-size: var(--t-cta); letter-spacing: .18em; font-weight: 800; color: var(--accent); margin-bottom: 1rem; }
/* On a dark stage the translucent fill separates the cards on its own, so they carry
   no border in either state. */
.stage .panel, .panel--dark { background: rgba(255,255,255,.045); border: 0; backdrop-filter: blur(8px); }
.stage .panel p, .panel--dark p { color: var(--muted-dark); }

/* Icon chip on a card */
.chip { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(232,51,64,.10); color: var(--accent); }
.stage .chip { background: rgba(255,255,255,.09); color: #FF8A92; }
.chip svg { width: 22px; height: 22px; }

/* ── Signals (engagement signals Markt tracks) — plain stacked list, no chrome ── */
.signals { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.signals li { display: flex; align-items: flex-start; gap: .85rem; font-size: 16px; font-weight: 600;
  color: var(--ink); line-height: 1.5; }
.signals li::before { content: ""; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%;
  background: var(--accent); flex: none; }
.stage .signals li { color: rgba(255,255,255,.86); }

/* ── Indicators (what the live dashboard surfaces) ────────────────────────────────
   A ruled column flow rather than a grid: an odd item count fills the columns
   naturally instead of leaving empty cells on the last row. */
.indicators { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: clamp(32px, 5vw, 88px); }
@media (min-width: 720px)  { .indicators { columns: 2; } }
.indicators li {
  break-inside: avoid; display: flex; align-items: baseline; gap: .9rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.15vw, 17px); font-weight: 600; letter-spacing: -.01em;
}
.indicators li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none; transform: translateY(-2px);
}
.stage .indicators li { border-bottom-color: var(--line-dark); }

/* ── Mode cards — the three ways Markt is deployed ───────────────────────────── */
.modes {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
/* Soft filled cards — the fill gives the row shape without needing a border or a
   hover state. Static by design. */
.mode {
  display: flex; flex-direction: column;
  padding: clamp(28px, 2.8vw, 40px);
  background: var(--surface); border-radius: var(--radius);
}
/* On a surface-backed section the fill would disappear, so flip the card to white. */
.section--surface .mode { background: var(--white); }

.mode__icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand); color: var(--white);
}
.mode__icon svg { width: 23px; height: 23px; }
.mode h3 { margin-top: clamp(20px, 2vw, 30px); font-size: var(--t-h3); text-wrap: balance; }
.mode p { margin-top: .75rem; color: var(--muted); max-width: 34ch; }

/* On mobile the icon sits beside the heading rather than above it, with the copy
   spanning underneath — the stacked version wastes a lot of vertical space on a phone.
   `:has()` scopes this to cards that actually carry an icon; where it is unsupported
   the card simply keeps the stacked layout. */
@media (max-width: 720px) {
  .panel:has(.chip) {
    display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center;
  }
  .panel:has(.chip) .chip { margin-bottom: 0; }
  .panel:has(.chip) p { grid-column: 1 / -1; margin-top: 1rem; }

  .mode {
    display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center;
  }
  .mode h3 { margin-top: 0; }
  .mode p { grid-column: 1 / -1; margin-top: 1rem; max-width: none; }
}

/* Closing note under a card row — matches .lede in size, one weight heavier. */
.note { max-width: 68ch; font-size: var(--t-lg); line-height: 1.6; font-weight: 500; color: var(--muted); }
.stage .note { color: var(--muted-dark); }

/* ── Integrations strip ──────────────────────────────────────────────────────── */
.integrations { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.integrations li {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55em 1.15em .55em .8em; border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; font-weight: 700; color: var(--ink); background: var(--white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.integrations li:hover { border-color: rgba(31,27,49,.28); box-shadow: 0 10px 22px -16px rgba(8,8,10,.55); transform: translateY(-2px); }
.integrations img { width: 20px; height: 20px; flex: none; }
.stage .integrations li { background: rgba(255,255,255,.05); border-color: var(--line-dark); color: rgba(255,255,255,.88); }

/* ── Closing CTA card ────────────────────────────────────────────────────────── */
.cta-card { border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 88px); }
.cta-card .form { max-width: none; }
.cta-card .form input:not([type=checkbox]), .cta-card .form select {
  background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--white); border-radius: 10px;
}
.cta-card .form select option { color: var(--ink); }
.cta-card .form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1em center; background-size: 12px 8px;
}
.cta-card .form select:has(option[value=""]:checked) { color: rgba(255,255,255,.42); }   /* "Select…" reads as a placeholder */
@supports (appearance: base-select) {
  .cta-card .form select::picker(select) { background: var(--g-2); color: var(--white); border-color: var(--line-dark); }
  .cta-card .form select option { color: rgba(255,255,255,.88); }
  .cta-card .form select option:hover, .cta-card .form select option:focus-visible { background: rgba(255,255,255,.08); }
}
.cta-card .form input::placeholder { color: rgba(255,255,255,.42); }
.cta-card .form input:not([type=checkbox]):focus, .cta-card .form select:focus { border-color: var(--accent); background-color: rgba(255,255,255,.1); }
/* The consent box keeps its native control on the dark card, tinted to the accent. */
.cta-card .form label.form__consent input[type=checkbox] { accent-color: var(--accent); background: none; border: 0; }
.cta-card .form label { color: rgba(255,255,255,.72); font-weight: 600; }
.cta-card .form__consent a { text-decoration: underline; }
.cta-card .form__msg.is-error { color: #FF8A92; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer { background: var(--brand-dark); }
.footer__inner { gap: 1.6rem; }
.footer__brand img { width: 173px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center; font-size: 15px; }
.footer__contact a:hover { color: var(--accent-2); }
.footer__tagline { font-size: 13px; opacity: .7; }
/* Copyright and the Rainmaker credit sit on one line, divided by a spaced pipe.
   The divider drops away on narrow screens so the two halves stack without an
   orphaned "|" leading the second line. */
.footer__copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem 1.4rem; line-height: 1.6; }
.footer__sep { opacity: .32; }
@media (max-width: 560px) { .footer__sep { display: none; } }
.footer__legal a:hover, .footer__copy a:hover { color: var(--accent-2); }

/* ── Legal + thank-you pages sit on white with the static nav ────────────────── */
.has-static-nav .section:first-of-type { padding-top: clamp(40px, 6vw, 72px); }
