/* Bouw365 — bouwsoftware voor aannemers en zzp'ers.
   =====================================================================
   The page has one job: make a builder believe this thing was made by
   someone who has actually stood on a scaffold with a phone in one hand.
   Everything here serves that — the tabular figures, the hairline rules,
   the quote card that shows real regels with real money in them.

   Two typefaces, both self-hosted, both already paid for elsewhere in
   this house: Space Grotesk carries the headings and every number (its
   figures are the reason it is here), Inter carries the reading.
   ===================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/spacegrotesk-var.woff2") format("woff2-variations"),
       url("/assets/fonts/spacegrotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------ tokens -- */
:root {
  /* Navy and green, from the current Bouw365 mark
     (assets/brand/social/bouw365-avatar-512.png) — not invented. The
     logo's own green (#4FA88A) reads beautifully at logo size but only
     clears 2.8:1 against paper, so --signal is that same hue and
     saturation darkened until it passes text/button contrast;
     --signal-lit stays at the logo's true brightness for decorative
     use on dark ink only. */
  --ink:        #16283A;   /* headings, the dark sections — new logo navy */
  --ink-2:      #4E6178;   /* body on paper — navy-tinted, 5.6:1     */
  --ink-3:      #7C90A5;   /* captions, navy-tinted, never load-bearing */
  --paper:      #F8FAFC;   /* near-white with a navy whisper, not cream */
  --card:       #FFFFFF;
  --line:       #E1E7F0;   /* navy-tinted border, not warm tan       */
  --line-soft:  #EEF2F7;

  --signal:     #377661;   /* 5.3:1 with white — safe as a button   */
  --signal-lit: #4FA88A;   /* logo's true green — decorative only   */
  --signal-bg:  #E9F7F2;   /* light tint of the same brand hue      */

  --on-dark:    #E7ECF3;   /* navy-tinted off-white, not warm cream  */
  --on-dark-2:  #96A9C0;
  --line-dark:  rgba(231, 236, 243, 0.16);

  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut:  clamp(20px, 5vw, 40px);
  --max:  1180px;
  --r:    14px;
  --r-sm: 9px;

  --shadow:    0 1px 2px rgba(11, 35, 64, .05), 0 12px 32px -12px rgba(11, 35, 64, .16);
  --shadow-lg: 0 2px 4px rgba(11, 35, 64, .06), 0 28px 60px -20px rgba(11, 35, 64, .28);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 6.4vw, 66px); letter-spacing: -0.034em; }
h2 { font-size: clamp(29px, 3.9vw, 43px); letter-spacing: -0.028em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.014em; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a  { color: inherit; }
strong { color: var(--ink); font-weight: 600; }

/* Every price, quantity and percentage on this page lines up in a column.
   Space Grotesk is monospaced in the figures, which is most of the reason
   the quote card looks like software instead of a mockup. */
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

section { padding-block: clamp(64px, 9vw, 118px); }

.eyebrow {
  font-family: var(--display);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 18px;
}

/* The one differentiator on the page that gets its own badge instead of
   a checkmark in a list — neither competitor we checked offers English,
   and that's worth seeing before the headline, not after it. */
.lang-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 13.5px; font-weight: 600;
  color: var(--signal); background: var(--line-soft);
  border: 1px solid rgba(55, 118, 97, .22);
  border-radius: 100px; padding: 7px 14px 7px 12px;
  margin: 0 0 20px;
}
.lang-badge svg { flex: none; }
.lang-badge em { font-style: normal; color: var(--ink); }
.lede { font-size: clamp(18px, 2vw, 20.5px); line-height: 1.55; max-width: 60ch; }
.trades { font-size: 14px; color: var(--ink-3); margin: 18px 0 0; max-width: 50ch; }

.section-head { max-width: 62ch; margin-bottom: clamp(38px, 5vw, 62px); }
/* One thin rule under every major section heading — the page's one
   piece of editorial punctuation, repeated exactly the same way each
   time rather than varied, so it reads as a system and not decoration. */
.section-head h2 { margin-bottom: 14px; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 16px;
  background: var(--signal-lit); border-radius: 2px;
}

/* ----------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
  padding: 14px 24px; border-radius: var(--r-sm);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease,
              color .16s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
/* Elevation is a privilege, not a default — the only shadow on this page
   that isn't a card lift belongs to the one button we actually want the
   eye to land on. */
/* True vivid logo green, not a darkened text-safe tint — navy text
   instead of white clears 5.2:1, so the button gets to be the actual
   brand color instead of a muted stand-in for it. */
.btn-primary {
  background: var(--signal-lit); color: var(--ink);
  box-shadow: 0 6px 18px -4px rgba(79, 168, 138, .5);
}
.btn-primary:hover { background: #3E836C; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-on-dark { background: var(--on-dark); color: var(--ink); }
.btn-on-dark:hover { background: #fff; }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.btn-ghost-dark:hover { border-color: var(--on-dark); }
.btn-sm { padding: 10px 17px; font-size: 15px; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------- preview-gate -- */
/* An honest interstitial, not a UI decision to fake: the product this
   markets isn't live, and saying so on arrival beats a visitor
   discovering it themselves at the signup form. Dismissible and
   remembered for the session (preview-v1.js) — this is a notice, not
   a wall. */
.preview-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gut);
  background: rgba(22, 40, 58, .6);
  backdrop-filter: blur(3px);
}
.preview-gate[hidden] { display: none; }
.preview-card {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 38px);
  text-align: center;
}
.preview-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: none; background: transparent; color: var(--ink-3);
  border-radius: 50%; cursor: pointer;
}
.preview-close:hover { background: var(--line-soft); color: var(--ink); }
.preview-badge {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--signal); background: var(--signal-bg);
  padding: 5px 12px; border-radius: 100px;
}
.preview-card h2 { font-size: 22px; margin-bottom: 10px; }
.preview-card p { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; }
.preview-card .btn { width: 100%; }

/* ------------------------------------------------------------ topbar -- */
/* Navy, permanently — not a light bar that happens to sit on a navy
   hero. That combination put the muted, contrast-safe green (logo
   "365") directly beside the vivid green (hero eyebrow) in the same
   glance, which read as the exact two-green mismatch already fixed
   once elsewhere. One dark surface for the whole top of the page means
   every green near it can be the one true vivid tone, always. */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.stuck { border-bottom-color: var(--line-dark); }
.topbar-in {
  max-width: var(--max); margin-inline: auto; padding: 13px var(--gut);
  display: flex; align-items: center; gap: 28px;
}
.logo {
  font-family: var(--display); font-size: 24px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--on-dark); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo b { font-weight: 700; color: var(--signal-lit); }
/* The mark carries its own navy tile, so it reads the same wherever it
   sits — only the wordmark text next to it ever needed to adapt, and
   now the topbar, hero and footer all share one dark surface it never
   has to adapt for. */
.logo-icon { display: block; flex: none; width: 33px; height: 33px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 15.5px; text-decoration: none; color: var(--on-dark-2);
  transition: color .15s ease;
}
.nav a:hover { color: var(--on-dark); }
.topbar-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
/* The topbar is always navy now (not just while over the hero), so the
   ghost "Inloggen" button needs the dark-surface treatment permanently
   too — .btn-ghost's default (navy text) was invisible on it. */
.topbar-cta .btn-ghost { color: var(--on-dark); border-color: var(--line-dark); }
.topbar-cta .btn-ghost:hover { border-color: var(--on-dark); background: rgba(231, 236, 243, .08); }

/* Only rendered on pages that actually have a translation; sending someone
   to a page that isn't in their language is worse than not offering it. */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-dark); border-radius: 100px;
  overflow: hidden; font-family: var(--display);
  font-size: 12.5px; font-weight: 600; line-height: 1; flex: none;
}
.lang-switch a {
  padding: 7px 10px; color: var(--on-dark-2); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.lang-switch a[aria-current] { background: var(--signal-lit); color: var(--ink); }
.lang-switch a:not([aria-current]):hover { background: rgba(231, 236, 243, .1); color: var(--on-dark); }

@media (max-width: 940px) {
  .nav { display: none; }
  .topbar-cta { margin-left: auto; }
}
@media (max-width: 460px) {
  .topbar-cta .btn-ghost { display: none; }
  /* Logo grew, and .btn's white-space: nowrap stopped "Gratis proberen"
     wrapping into a taller two-line button — good on their own, but
     together they overflowed a 390px row once Inloggen was hidden and
     it was still too much. Everything left in the bar gets smaller
     instead of wrapping or spilling off the edge. */
  .topbar-in { gap: 14px; padding-block: 11px; }
  .logo { font-size: 21px; gap: 8px; }
  .logo-icon { width: 30px; height: 30px; }
  .lang-switch { font-size: 11px; }
  .lang-switch a { padding: 6px 8px; }
  .topbar-cta .btn-primary { padding: 9px 14px; font-size: 13.5px; }
}

/* -------------------------------------------------------------- hero -- */
/* Navy, not white — the dominant logo color gets the first thing a
   visitor sees, not a thin accent on a pale page. The quote card is a
   bright island on it instead of a card among cards, and the true
   vivid logo green (--signal-lit) finally gets to be text, because
   white-on-navy for the label and navy-on-green for the emphasis both
   clear contrast easily — the paper-background limits that pushed
   green toward a muted, muddy tone everywhere else don't apply here. */
.hero {
  background: var(--ink); color: var(--on-dark-2);
  padding-top: clamp(52px, 7vw, 88px); padding-bottom: clamp(64px, 9vw, 116px);
  position: relative; overflow: hidden;
}

/* Ambient "365": one continuous line drawing itself into three digits,
   glowing softly, tumbling gently in 3D. Lives only in .merk365 now —
   removed from the hero entirely (it competed with the quote card).
   pathLength="1" on each <path> means the dash math is 0..1 regardless
   of the actual curve length, so the draw-in speed reads as even
   across three differently-sized digits without measuring anything
   in JS.
   filter and the pulse animation live on the <svg> itself, not the
   inner <g> — a CSS drop-shadow filter applied straight to an SVG
   group renders with a visible rectangular vignette in Chromium (the
   filter region gets composited with a tint inside its own bounding
   box). Same filter one element up, on the svg root, is fully clean —
   verified by rendering both in isolation before wiring this in. */
/* No rotation animation — a continuously rotating 3D transform forces
   the browser to keep resampling the shape's edges every frame, which
   on a real GPU compositor (unlike a static screenshot) reads as a
   persistent soft/out-of-focus line. Reported twice against two
   different fixes aimed at the glow before landing on the actual
   cause: it was never the glow, it was the tumble. Flat and static,
   the stroke rasterizes once and stays crisp. Opacity stays near-full
   for the same reason — the glow lives entirely in the drop-shadow
   below, not in fading the line itself. */
.snake365-svg {
  width: min(78vw, 980px); height: auto; opacity: .96;
  filter: drop-shadow(0 0 1.5px rgba(79, 168, 138, .55))
          drop-shadow(0 0 7px rgba(79, 168, 138, .3));
  animation: snake365-pulse 5.2s ease-in-out infinite;
}
.snake365-digit {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: snake365-draw 5.2s cubic-bezier(.5, 0, .3, 1) infinite;
}

@keyframes snake365-draw {
  0%   { stroke-dashoffset: 1; opacity: 1; }
  32%  { stroke-dashoffset: 0; opacity: 1; }
  78%  { stroke-dashoffset: 0; opacity: 1; }
  92%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}
@keyframes snake365-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 1.5px rgba(79, 168, 138, .5))
            drop-shadow(0 0 6px rgba(79, 168, 138, .25));
  }
  50% {
    filter: drop-shadow(0 0 2.5px rgba(79, 168, 138, .65))
            drop-shadow(0 0 10px rgba(79, 168, 138, .4));
  }
}

@media (max-width: 900px) {
  .snake365-svg { width: min(88vw, 480px); }
}
@media (prefers-reduced-motion: reduce) {
  .snake365-svg { animation: none; transform: none; }
  .snake365-digit { animation: none; stroke-dashoffset: 0; opacity: .55; }
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(44px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
}
.hero .eyebrow { color: var(--signal-lit); }
.hero h1 { color: var(--on-dark); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--signal-lit); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-ghost { color: var(--on-dark); border-color: var(--line-dark); }
.hero .btn-ghost:hover { border-color: var(--on-dark); background: rgba(231, 236, 243, .06); }

.hero-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 26px 0 0; padding: 0;
  font-size: 14.5px; color: var(--on-dark-2);
}
.hero-facts li { display: flex; align-items: center; gap: 7px; }
.hero-facts svg { flex: none; color: var(--signal-lit); }
.hero .trades { color: var(--on-dark-2); }

.hero .lang-badge {
  background: rgba(79, 168, 138, .14); color: var(--signal-lit);
  border-color: rgba(79, 168, 138, .32);
}
.hero .lang-badge em { color: var(--on-dark); }

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

/* ------------------------------------------- the quote card (hero art) -- */
/* The card tilts toward the cursor on desktop (tilt-v1.js) — a few
   degrees of real perspective, not a hover-scale. perspective lives on
   the wrapper so the card's own shadow and the stamp badge tilt as one
   object instead of the card appearing to float free of them. */
.art { position: relative; perspective: 1400px; }
.tilt {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.phone-persp { perspective: 1400px; }
@media (prefers-reduced-motion: reduce) {
  .tilt { transition: none; }
}

.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quote-head {
  padding: 17px 20px 15px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: flex-start; gap: 14px;
}
.quote-head h4 {
  margin: 0 0 2px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.012em;
}
.quote-head p { margin: 0; font-size: 13px; color: var(--ink-3); }
.chip {
  margin-left: auto; flex: none;
  font-family: var(--display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px;
  background: var(--signal-bg); color: var(--signal);
}

.regels { margin: 0; padding: 6px 0; list-style: none; }
.regel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 84px;
  gap: 12px; align-items: baseline;
  padding: 9px 20px;
  font-size: 14.5px;
}
.regel + .regel { border-top: 1px solid var(--line-soft); }
.regel span:first-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.regel .qty   { text-align: right; color: var(--ink-3); font-size: 13.5px; }
.regel .money { text-align: right; color: var(--ink); font-weight: 500; }

.regel-optie { background: #F5F8FC; }
.regel-optie span:first-child::after {
  content: "optioneel";
  font-family: var(--display); font-size: 10.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--signal); background: var(--line-soft);
  padding: 2px 6px; border-radius: 4px; margin-left: 8px;
}
/* html lang="en" on the English pages switches this generated label —
   it lives in CSS, not markup, so build_en.py's string swap can't reach it. */
:lang(en) .regel-optie span:first-child::after { content: "optional"; }

.quote-foot { border-top: 1px solid var(--line); background: #F6F9FC; padding: 4px 0 6px; }
.quote-foot .regel { padding-block: 7px; }
.quote-foot .regel + .regel { border-top: 0; }
.regel-totaal span:first-child,
.regel-totaal .money { font-weight: 600; font-size: 15.5px; }
.regel-marge span:first-child,
.regel-marge .qty,
.regel-marge .money { color: var(--signal); font-weight: 600; }

/* The small card that overlaps the corner is the whole argument of the
   page in one object: this happened on the phone, on site, at 14:26. */
/* Orange, not navy — on the old white hero this was ink-on-white and
   read fine; on the navy hero a navy stamp would disappear into the
   background it overlaps. Vivid green bg with navy text/icon clears
   6.7:1 easily and reads as a second brand mark, not a lost corner. */
.stamp {
  position: absolute; right: -14px; bottom: -26px;
  display: flex; align-items: center; gap: 11px;
  background: var(--signal-lit); color: var(--ink);
  border-radius: var(--r-sm); padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  max-width: 262px;
}
.stamp svg { flex: none; color: var(--ink); }
.stamp p { margin: 0; font-size: 13.2px; line-height: 1.42; color: var(--ink); font-weight: 500; }
.stamp p span { display: block; color: #1F362D; font-size: 12.2px; }

@media (max-width: 900px) {
  .stamp { right: 0; bottom: -20px; }
}
@media (max-width: 560px) {
  .regel { grid-template-columns: minmax(0, 1fr) 52px 74px; padding-inline: 14px; font-size: 13.5px; }
  .stamp { position: static; margin-top: 16px; max-width: none; }
}

/* -------------------------------------------------------- strip/quote -- */
/* Four real selling points, not a line of fine print — each one used
   to be a plain icon+text pair in a thin strip and got missed. Now
   each is its own card: an icon in a filled circle, bold dark text,
   a hairline border and a lift on hover, same visual weight as the
   feature cards further down the page. */
.strip {
  border-block: 1px solid var(--line);
  background: #F5F8FB;
  padding-block: clamp(28px, 4vw, 40px);
}
.strip-in {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: 14px;
}
.strip-in span {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 100px; padding: 12px 20px 12px 14px;
  font-family: var(--display); font-size: 15.5px; font-weight: 600;
  color: var(--ink); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.strip-in span:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.strip-in svg {
  flex: none; color: var(--signal);
  width: 30px; height: 30px; padding: 7px; box-sizing: border-box;
  border-radius: 50%; background: var(--line-soft);
}

/* ---------------------------------------------------------------- taal -- */
/* Second design pass — the centered pills+paragraph block read as a
   claim. This is a split layout instead: copy on the left, and on the
   right, the actual proof — the product's own terms, in both
   languages, side by side. Not a statement to take on faith. */
.taal { background: var(--line-soft); border-bottom: 1px solid var(--line); }
.taal-in {
  display: grid; gap: clamp(36px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
}

.taal-proof {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.taal-proof-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
}
.taal-proof-switch {
  display: inline-flex; flex: none;
  border-radius: 100px; overflow: hidden;
  font-family: var(--display); font-size: 12px; font-weight: 700;
  border: 1px solid var(--line);
}
.taal-proof-switch span { padding: 5px 11px; color: var(--ink-3); }
.taal-proof-switch span:first-child { background: var(--signal); color: #fff; }
.taal-proof-label { font-size: 13.5px; color: var(--ink-3); }

.taal-proof-rows { list-style: none; margin: 0; padding: 6px 0; }
.taal-proof-rows li {
  display: grid; grid-template-columns: 1fr 20px 1fr;
  align-items: center; gap: 10px;
  padding: 12px 18px; font-family: var(--display); font-size: 16px; font-weight: 600;
}
.taal-proof-rows li + li { border-top: 1px solid var(--line-soft); }
.taal-proof-rows li span:first-child { color: var(--ink-2); font-weight: 500; }
.taal-proof-rows li span:last-child { color: var(--ink); text-align: right; }
.taal-proof-rows svg { color: var(--signal); justify-self: center; }

@media (max-width: 760px) {
  .taal-in { grid-template-columns: 1fr; }
  .taal-proof { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ------------------------------------------------------------ problem -- */
.problem { background: var(--ink); color: var(--on-dark-2); }
.problem h2, .problem h3 { color: var(--on-dark); }
.problem .eyebrow { color: var(--signal-lit); }

.gripes { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.gripe {
  display: grid; grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px; padding: 22px 0;
  border-top: 1px solid var(--line-dark);
}
.gripe:last-child { border-bottom: 1px solid var(--line-dark); }
.gripe-n {
  font-family: var(--display); font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--on-dark-2); padding-top: 3px;
}
.gripe h3 { font-size: 18.5px; margin: 0 0 5px; }
.gripe p { margin: 0; font-size: 15.5px; line-height: 1.55; max-width: 68ch; }

.flip {
  margin-top: clamp(38px, 5vw, 56px);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--signal-lit);
  border-radius: var(--r-sm);
  padding: clamp(24px, 3.4vw, 34px);
  background: rgba(231, 236, 243, .04);
}
.flip h3 { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 18px; }

/* Each row answers the numbered gripe with the same number above it —
   the table is the resolution, not a second, separate argument. */
.compare { display: grid; gap: 0; }
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(10px, 2.4vw, 28px);
  padding-block: 16px;
  border-top: 1px solid var(--line-dark);
}
.compare-row:last-child { border-bottom: 1px solid var(--line-dark); }
.compare-label {
  font-family: var(--display); font-size: 13.5px; font-weight: 600;
  color: var(--on-dark-2); letter-spacing: -0.01em;
  display: flex; align-items: center;
}
.compare-them, .compare-us {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 15px; line-height: 1.4;
}
.compare-them { color: var(--on-dark-2); }
.compare-us { color: var(--on-dark); font-weight: 500; }
.compare-them svg { color: #A65A4A; flex: none; margin-top: 2px; }
.compare-us svg { color: var(--signal-lit); flex: none; margin-top: 2px; }
.compare-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(10px, 2.4vw, 28px);
  padding-bottom: 10px;
}
.compare-head span {
  font-family: var(--display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2);
}
.compare-head span:last-child { color: var(--signal-lit); }

@media (max-width: 640px) {
  .compare-label { display: none; }
  .compare-row, .compare-head {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----------------------------------------------------------- features -- */
.feats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.feat {
  background: var(--card); padding: clamp(24px, 3vw, 32px);
  position: relative; z-index: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}
.feat:hover {
  transform: translateY(-4px); z-index: 1;
  box-shadow: 0 16px 32px -12px rgba(11, 35, 64, .18);
}
.feat-ico {
  width: 34px; height: 34px; margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: 8px; background: var(--line-soft); color: var(--signal);
  transition: transform .22s ease;
}
.feat:hover .feat-ico { transform: scale(1.1); }
.feat h3 { margin-bottom: 7px; }
.feat p { margin: 0; font-size: 15.4px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) {
  .feat, .feat:hover, .feat-ico, .feat:hover .feat-ico { transition: none; transform: none; }
}

/* ------------------------------------------------------------ merk365 -- */
/* The same glowing "365" from the hero, but as the whole point of a
   section rather than ambient texture behind other content — a
   deliberate pause in the middle of the page, brand mark first,
   three words under it instead of another block of copy. */
.merk365 {
  background: var(--ink);
  padding-block: clamp(56px, 8vw, 96px);
  display: flex; flex-direction: column; align-items: center;
}
.merk365-glow { width: min(70vw, 760px); }
.merk365-glow .snake365-svg { width: 100%; }

/* One line at every width, including a real 390px phone — three short
   words don't need to become three stacked lines just because the
   viewport is narrow. font-size and the separator's margin both scale
   down together so it keeps fitting instead of wrapping. */
.merk365-tagline {
  margin: clamp(20px, 3vw, 34px) 0 0;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: clamp(6px, 2vw, 22px);
  font-family: var(--display); font-size: clamp(14px, 4.2vw, 28px);
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--on-dark);
  white-space: nowrap;
}
.merk365-tagline span:nth-child(3) { color: var(--signal-lit); }
.merk365-tagline span + span::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  margin-right: clamp(6px, 2vw, 22px); border-radius: 50%;
  background: var(--on-dark-2); vertical-align: middle; flex: none;
}

/* ------------------------------------------------------------- mobiel -- */
.mobiel { background: #F5F8FB; border-block: 1px solid var(--line); }
.mobiel-grid {
  display: grid; gap: clamp(40px, 5vw, 66px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
}
.doet { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.doet li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 16px; color: var(--ink);
}
.doet li:last-child { border-bottom: 1px solid var(--line); }
.doet svg { flex: none; color: var(--signal); transform: translateY(2px); }
.doet em { font-style: normal; color: var(--ink-2); }

/* the phone */
.phone {
  width: min(300px, 100%); margin-inline: auto;
  background: var(--ink); border-radius: 30px; padding: 9px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: var(--card); border-radius: 23px; overflow: hidden;
  min-height: 460px; display: flex; flex-direction: column;
}
.phone-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 15px 11px; border-bottom: 1px solid var(--line-soft);
}
.phone-bar strong { font-family: var(--display); font-size: 14.5px; }
.phone-bar .chip { margin-left: auto; font-size: 10.5px; padding: 4px 8px; }
.phone-body { padding: 14px 15px; display: grid; gap: 11px; flex: 1; }
/* A line-art illustration of the actual job (a distribution board),
   not a gradient standing in for a photo — the PDF brief was explicit
   that placeholders should never imply a feature or an asset that
   isn't really there, and a photo-toned gradient with a caption on it
   read too much like a claimed screenshot. */
.shot {
  position: relative;
  border: 1px solid var(--line); border-radius: 9px;
  aspect-ratio: 4 / 3; background: var(--line-soft);
  display: grid; place-items: end start; padding: 9px;
  overflow: hidden;
}
.shot-illus { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot span {
  position: relative;
  font-family: var(--display); font-size: 11px; font-weight: 600;
  background: rgba(22, 40, 58, .78); color: #fff;
  padding: 3px 7px; border-radius: 4px;
}
.phone-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; color: var(--ink);
}
.phone-row .num { color: var(--ink); }
.phone-act {
  margin-top: auto; padding: 12px 15px 15px;
}
.phone-act .btn { width: 100%; padding: 12px; font-size: 14.5px; }
.phone-note {
  text-align: center; font-size: 11.5px; color: var(--ink-3); margin: 8px 0 0;
}

/* App store badges — this is a phone-native product, said in the one
   language a screenshot can't: two real platform marks, not a claim. */
.stores { display: flex; gap: 10px; margin: 22px 0 0; }
.store-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-size: 13.5px; font-weight: 600;
  color: var(--ink); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 14px; background: var(--card);
}
.store-badge svg { color: var(--ink-2); flex: none; }

/* The chip breathes gently — a signed document is not a static fact,
   it just happened. Skipped entirely under reduced-motion below. */
.chip-pulse { animation: chip-breathe 2.6s ease-in-out infinite; }
@keyframes chip-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 101, 63, .28); }
  50%      { box-shadow: 0 0 0 5px rgba(20, 101, 63, 0); }
}

/* The one animation on the page that is not decoration: it shows the
   actual product claim (send from the phone) happening, on a loop,
   instead of asking the reader to imagine it from a still screenshot. */
.btn-send { position: relative; overflow: hidden; }
.btn-send-label, .btn-send-sent {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  grid-area: 1 / 1;
}
.btn-send { display: grid; }
.btn-send-sent { opacity: 0; transform: translateY(6px); }
.btn-send-label { opacity: 1; transform: translateY(0); }
.btn-send-label, .btn-send-sent {
  transition: opacity .32s ease, transform .32s ease;
}
.btn-send.sent { background: var(--signal-lit); }
.btn-send.sent .btn-send-label { opacity: 0; transform: translateY(-6px); }
.btn-send.sent .btn-send-sent { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .chip-pulse { animation: none; }
  .btn-send-label, .btn-send-sent { transition: none; }
}

@media (max-width: 880px) {
  .mobiel-grid { grid-template-columns: 1fr; }
  .phone { order: -1; }
}

/* ------------------------------------------------------------- prijzen -- */
.prijs-grid {
  display: grid; gap: clamp(24px, 3vw, 34px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
}
.prijskaart {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: clamp(26px, 3.4vw, 36px);
}
.bedrag { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.bedrag .num {
  font-size: clamp(46px, 6vw, 62px); font-weight: 600;
  color: var(--ink); letter-spacing: -0.04em; line-height: 1;
}
.bedrag small { font-size: 15.5px; color: var(--ink-2); }
.prijskaart .sub { font-size: 14.5px; color: var(--ink-3); margin-bottom: 22px; }
.inbegrepen { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; }
.inbegrepen li { display: flex; align-items: baseline; gap: 10px; font-size: 15.4px; }
.inbegrepen svg { flex: none; color: var(--signal); transform: translateY(2px); }
.prijskaart .btn { width: 100%; }
.prijs-klein { margin-top: 14px; font-size: 13.2px; color: var(--ink-3); text-align: center; }

.vergelijk { display: grid; gap: 14px; }
.vergelijk-item {
  border-left: 2px solid var(--line); padding: 2px 0 2px 18px;
}
.vergelijk-item strong { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 3px; }
.vergelijk-item p { margin: 0; font-size: 15px; }

@media (max-width: 860px) { .prijs-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- faq -- */
.faq-list { border-top: 1px solid var(--line); max-width: 78ch; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 19px 34px 19px 0;
  position: relative;
  font-family: var(--display); font-size: 17.5px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.015em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .18s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details > div { padding: 0 0 20px; font-size: 16px; max-width: 68ch; }

/* ---------------------------------------------------------------- auth -- */
.auth-wrap {
  min-height: calc(100vh - 65px);
  display: flex; align-items: center; justify-content: center;
  padding-block: clamp(40px, 6vw, 72px);
}
.authcard {
  width: 100%; max-width: 420px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 40px);
}
.authcard .eyebrow { margin-bottom: 10px; }
.authcard h1 { font-size: 30px; margin-bottom: 8px; }
.authcard .lede { font-size: 15.5px; margin-bottom: 28px; }

.field { display: block; margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--display); font-size: 13.5px; font-weight: 600;
  color: var(--ink); margin-bottom: 7px;
}
.field input {
  width: 100%; font-family: var(--body); font-size: 16px;
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { border-color: var(--ink); outline: none; background: var(--card); }

.auth-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: -6px 0 22px; font-size: 13.8px;
}
.auth-row a { color: var(--signal); text-decoration: none; }
.auth-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

.authcard .btn { width: 100%; }

/* Frank's platform has no login backend yet — see PROJECT.md. The form
   stays real (so wiring it up later is one action= attribute), but
   submitting it today can only ever be honest about that, never a
   silent dead POST. */
.auth-note {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--line-soft); font-size: 13.8px; color: var(--ink-2);
  text-align: center; line-height: 1.5;
}
.auth-note a { color: var(--signal); font-weight: 600; text-decoration: none; }
.auth-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-foot {
  text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--ink-2);
}
.auth-foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- slot -- */
/* The page's three-band color architecture: white base, this one true
   green ("de meeste anderen" never risks a full-bleed brand-color
   section), navy for "waarom" and the footer. Dark ink on the bright
   fill reads at 6.7:1 — checked, not eyeballed. */
.slot { background: var(--signal-lit); color: var(--ink); text-align: center; }
.slot h2 { color: var(--ink); }
.slot .lede { margin-inline: auto; }

.capture {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 32px auto 0; max-width: 470px;
}
.capture input[type="email"] {
  flex: 1 1 230px; min-width: 0;
  font-family: var(--body); font-size: 16px;
  padding: 14px 16px; border-radius: var(--r-sm);
  border: 1px solid rgba(11, 35, 64, .18);
  background: var(--card); color: var(--ink);
}
.capture input::placeholder { color: var(--ink-3); }
.capture input:focus { border-color: var(--ink); outline: none; }
.capture .btn { background: var(--ink); color: var(--on-dark); }
.capture .btn:hover { background: #0F1C29; }
.form-note { margin: 14px auto 0; font-size: 14.5px; max-width: 52ch; color: #521212; }
.form-note.ok { color: var(--ink); }
.consent { margin: 16px auto 0; font-size: 13.4px; max-width: 54ch; color: var(--ink); }
.consent a { color: var(--ink); }

/* ------------------------------------------------------------- footer -- */
.foot { background: var(--ink); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); }
.foot-in { padding-block: 44px; display: grid; gap: 30px; grid-template-columns: 1.4fr 1fr 1fr; }
.foot .logo { color: var(--on-dark); }
/* Same green as the icon SVG (hardcoded #377661 in the markup) — the
   icon can't switch color for light vs dark context, so nothing next
   to it can either, or the two-green mismatch comes right back. */
.foot .logo b { color: var(--signal); }
.foot p { font-size: 14.4px; margin: 12px 0 0; max-width: 38ch; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line-dark);
  color: var(--on-dark-2); transition: color .15s ease, border-color .15s ease;
}
.foot-social a:hover { color: var(--signal-lit); border-color: var(--signal-lit); }
.foot h4 {
  font-family: var(--display); font-size: 12.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2);
  margin: 0 0 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot ul a { font-size: 15px; text-decoration: none; color: var(--on-dark); opacity: .82; }
.foot ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-bot {
  border-top: 1px solid var(--line-dark); padding-block: 18px;
  display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.4px;
}
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr 1fr; gap: 30px 20px; } }
@media (max-width: 460px) {
  .foot-in { grid-template-columns: 1fr; gap: 34px; }
}

/* ------------------------------------------------------------- reveal -- */
.r { opacity: 0; transform: translateY(14px); }
.r.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }
html:not(.js) .r { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .r, .r.in { opacity: 1; transform: none; transition: none; }
}
