/* Hallmark · shape: one job followed from planning to invoice · genre: modern-minimal · theme: custom · job: sign up · idea: "Follow one installer's job, Familie de Vries' boiler, from the planning to the invoice, in the app's own screens." · vibe: "utilitarian, heavy, cut corners, two blues"
 * paper: oklch(99.4% 0.002 251) · accent: oklch(51.5% 0.215 259) · display: League Spartan · body: Figtree · hero: white like the app, head and action left, the day planning large right on a blue cut panel like the logo's B · nav: wordmark, three links, one action · footer: navy band, wordmark over contact and links · imagery: the product, screenshots 2 (Playwright, demo company) · signature: the logo's cut corner and its blue B behind the product
 * axes: light/geometric-sans/chromatic-blue · posture: restrained (white with blue accents, as in the app; navy only in the footer) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E2 S2 R1 V2 · weakest: R, the hero repeats the classic split; the cut corners, the navy field and the real planning screen at size make it this product's */
/* waive 77, 78, 58, 44b on the legal pages (.legal): legal prose must be complete, in one readable column with small heads (craft.md § 9, prose pages); the page is not a pitch */
/* waive F4: .button--on-dark repeats the hero's action at the close, on the navy band (the sign-up anatomy ends on it) */
/* waive 41, F4: .button--outline paints the page colour inside a 2px blue layer (::before), so its blue label sits on paper and it is not a filled primary */
@import url("./tokens.css");
@import url("./base.css");

@font-face {
  font-family: "League Spartan";
  src: url("../fonts/league-spartan-latin.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

body { font-synthesis: none; }

/* Glide to Zo werkt het, Prijs and Vragen instead of jumping; reduced motion keeps the jump. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* The logo's cut: top-left and bottom-right corners on a diagonal. */
.cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.cut-l {
  clip-path: polygon(var(--cut-l) 0, 100% 0, 100% calc(100% - var(--cut-l)), calc(100% - var(--cut-l)) 100%, 0 100%, 0 var(--cut-l));
}

/* Buttons: one filled primary style, one typographic secondary. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-lg);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color var(--dur-short) var(--ease-out);
}
.button:hover { background: var(--color-accent-hover); }
.button:active { background: var(--color-accent-active); transform: translateY(1px); }
.button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; clip-path: none; }
.button--small { min-height: 44px; padding: 0 var(--space-md); }
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}
.link:hover { text-decoration-color: currentColor; }
.link:active { opacity: 0.8; }

/* The hero's second action: on hover a light blue cut panel (the logo's corner) slides in
   from the left behind the text, so it reads as a quiet second button. */
.link--panel {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-md);
  text-decoration: none;
  color: var(--color-accent);
}
.link--panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-accent-tint);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-short) var(--ease-out);
}
.link--panel:hover::before, .link--panel:focus-visible::before { transform: scaleX(1); }
.link--panel:active::before { background: var(--color-accent-tint-2); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-paper);
  color: var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.nav__inner { display: flex; align-items: center; gap: var(--space-xl); min-height: 72px; }
.nav__brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; margin-right: auto; }
.nav__brand img { width: 40px; height: 24px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1; }
.wordmark span { color: var(--color-brand); }
.nav__links { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--color-muted); font-size: var(--text-md); }
.nav__links a:hover { color: var(--color-ink); }
.nav__links a:active, .nav__login:active { opacity: 0.8; }
.nav__login { color: var(--color-ink); text-decoration: none; font-weight: 600; }
.nav__login:hover { text-decoration: underline; text-underline-offset: 0.22em; }

/* Hero: the navy field of the logo's P, the planning large beside the head. */
.hero {
  background: var(--color-paper);
  color: var(--color-ink);
  padding-block: var(--space-2xl);
  overflow: clip;
  /* The first screen, and only the first screen. */
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-2xl);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 4vw + 1rem, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: var(--tracking-display);
  max-width: 13ch;
}
.hero__lead { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-ink-2); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__actions .link { color: var(--color-accent); }
.hero__terms { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.hero__visual { position: relative; padding: var(--space-sm) 0 0 var(--space-sm); }
/* The logo's blue B: the same cut shape as the screen, shifted 12px up and left, so only a
   thin blue edge shows along the top and the left. */
.hero__visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - var(--space-sm));
  aspect-ratio: 4 / 3.4;
  background: var(--color-brand);
  clip-path: polygon(var(--cut-l) 0, 100% 0, 100% calc(100% - var(--cut-l)), calc(100% - var(--cut-l)) 100%, 0 100%, 0 var(--cut-l));
}
.hero__visual figure { margin: 0; }
/* Cropped to the planning itself (no sidebar), so it reads at this size. */
.hero__screen { position: relative; aspect-ratio: 4 / 3.4; background: var(--color-paper); }
.hero__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 0; }
.hero__phone {
  position: absolute;
  right: calc(var(--space-lg) * -1);
  bottom: calc(var(--space-2xl) * -1);
  width: 30%;
}
.hero__phone figure {
  position: relative;
  margin: 0;
  aspect-ratio: 390 / 794;
  background: var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-rule);
  outline: 6px solid var(--color-paper);
}
.hero__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Facts bar under the hero: four plain facts, parted by hairlines, each led by the logo's cut. */
.facts { border-block: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); }
.facts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 0;
}
.facts__item { padding: var(--space-xl) var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.facts__item:first-child { padding-left: 0; border-left: 0; }
.facts__item:last-child { padding-right: 0; }
.facts__item dt {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: 1.1;
  white-space: nowrap;
}
.facts__item dt::before {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: var(--color-brand);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}
.facts__item dd { margin: var(--space-xs) 0 0; color: var(--color-muted); font-size: var(--text-md); }

@media (max-width: 60rem) {
  .nav__links { display: none; }
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two columns: the left one flush with the page edge, the right one after a hairline. */
  .facts__item, .facts__item:first-child, .facts__item:last-child { padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-left: 0; }
  .facts__item:nth-child(even) { padding: var(--space-lg) 0 var(--space-lg) var(--space-md); border-left: var(--rule-hair) solid var(--color-rule); }
  .facts__item:nth-child(n + 3) { border-top: var(--rule-hair) solid var(--color-rule); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__phone { right: var(--space-md); width: 34%; }
}
/* Pricing: one price, worked out for three team sizes. Cards carry the logo's cut corner with a
   hairline that follows the diagonal (an outer rule layer, an inner paper layer). */
.pricing { padding-block: var(--section-gap-s); }
.pricing__head { max-width: 46rem; }
.pricing__head h2 {
  font-size: var(--text-section);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
}
.pricing__head p { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--color-ink-2); }
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-columns);
  margin: var(--space-2xl) 0 0;
  padding: 0;
  list-style: none;
}
.price-card {
  --edge: 1px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: var(--edge);
  background: var(--color-rule);
  clip-path: polygon(var(--cut-l) 0, 100% 0, 100% calc(100% - var(--cut-l)), calc(100% - var(--cut-l)) 100%, 0 100%, 0 var(--cut-l));
  transition: background-color var(--dur-short) var(--ease-out);
}
.price-card:hover { background: var(--color-brand); }
.price-card__inner {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: var(--color-paper);
  clip-path: polygon(calc(var(--cut-l) - 0.5px) 0, 100% 0, 100% calc(100% - var(--cut-l) + 0.5px), calc(100% - var(--cut-l) + 0.5px) 100%, 0 100%, 0 calc(var(--cut-l) - 0.5px));
}
.price-card h3 { font-size: var(--text-title); font-weight: 800; line-height: 1.15; }
.price-card__users { margin-top: var(--space-2xs); color: var(--color-muted); }
.price-card__price { margin: var(--space-xl) 0 var(--space-lg); display: flex; align-items: baseline; gap: var(--space-2xs); color: var(--color-muted); font-size: var(--text-lg); }
.price-card__price .num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 2vw + 2rem, 3.5rem);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}
.price-card__calc { margin: var(--space-xs) 0 var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
/* Quiet secondary: a 2px blue edge that follows the cut corners (a blue layer, the page colour
   inside it), the light blue wash on hover. */
.button--outline {
  position: relative;
  isolation: isolate;
  background: var(--color-accent);
  color: var(--color-accent);
}
.button--outline::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--color-paper);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background-color var(--dur-short) var(--ease-out);
}
.button--outline:hover { background: var(--color-accent); }
.button--outline:hover::before { background: var(--color-accent-tint); }
.button--outline:active { transform: translateY(1px); }
.button--outline:active::before { background: var(--color-accent-tint-2); }
.price-card__included {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  color: var(--color-ink-2);
  font-weight: 600;
}
.price-card__included::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--color-brand);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
}
.pricing__note { margin-top: var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); max-width: 60ch; }
.pricing__note .link { color: var(--color-accent); }
.price-card h3 { font-variant-numeric: tabular-nums; }
@media (max-width: 60rem) {
  .pricing__cards { grid-template-columns: minmax(0, 1fr); max-width: 28rem; }
}

/* How a job runs: three phone screens in a row. */
.flow { padding-block: var(--section-gap-s) 0; }
.flow h2, .faq h2, .footer__cta h2 {
  font-size: var(--text-section);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
}
.flow__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-columns);
  margin: var(--space-2xl) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.flow__steps li { counter-increment: step; }
.flow__screen {
  margin: 0;
  aspect-ratio: 390 / 600;
  background: var(--color-paper-2);
  box-shadow: inset 0 0 0 1px var(--color-rule);
}
.flow__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.flow__steps h3 {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  font-size: var(--text-title);
  font-weight: 800;
  line-height: 1.15;
}
.flow__steps h3::before { content: counter(step); color: var(--color-brand); }
.flow__steps p { margin-top: var(--space-xs); color: var(--color-ink-2); }

/* Questions: native disclosure, no script. */
.faq { padding-block: 0 var(--section-gap-s); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap-columns); }
.faq__list { border-top: var(--rule-hair) solid var(--color-rule); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-height: 64px;
  font-weight: 600;
  font-size: var(--text-lg);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: var(--color-brand);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  transition: transform var(--dur-short) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-accent); }
.faq summary:active { opacity: 0.8; }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* Closing and footer: the logo's navy. */
.footer { background: var(--color-field); color: var(--color-field-ink); padding-block: var(--section-gap-s) var(--space-xl); }
.footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.button--on-dark { background: var(--color-on-dark); color: var(--color-ink); }
.button--on-dark:hover { background: var(--color-on-dark-hover); }
.button--on-dark:active { background: var(--color-on-dark-active); transform: translateY(1px); }
.footer__columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-xl) var(--gap-columns);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: var(--rule-hair) solid var(--color-field-rule);
}
.footer__about .nav__brand { margin-right: 0; color: var(--color-field-ink); }
.footer__about p { margin-top: var(--space-md); color: var(--color-field-muted); max-width: 28ch; }
.footer h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--color-field-ink); }
.footer__columns ul { display: grid; gap: var(--space-sm); margin: var(--space-md) 0 0; padding: 0; list-style: none; color: var(--color-field-muted); }
.footer a:not(.button) { color: var(--color-field-muted); text-decoration: none; }
.footer a:not(.button):hover { color: var(--color-field-ink); text-decoration: underline; text-underline-offset: 0.22em; }
.footer a:not(.button):active { opacity: 0.8; }
.footer a.nav__brand, .footer a.nav__brand:hover { color: var(--color-field-ink); text-decoration: none; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-field-rule);
  color: var(--color-field-muted);
  font-size: var(--text-sm);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }

/* Legal pages: one readable column. */
.legal { padding-block: var(--space-3xl) var(--section-gap-s); }
/* Same left edge as the nav and the footer; only the text column is narrow. */
.legal__body > * { max-width: 68ch; }
.legal h1 { font-size: var(--text-display-s); font-weight: 800; line-height: 1.02; letter-spacing: var(--tracking-display); }
.legal h2 { margin-top: var(--space-xl); font-size: var(--text-title); font-weight: 800; }
.legal p, .legal li { margin-top: var(--space-sm); color: var(--color-ink-2); }
.legal .updated { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }
.legal ul { padding-left: var(--space-lg); }
.legal__concept {
  margin-bottom: var(--space-xl);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-tint);
  color: var(--color-ink);
  font-size: var(--text-sm);
}
/* A fact still to be filled in (e.g. the KvK number). */
.fill { padding: 0 var(--space-2xs); outline: 1px dashed var(--color-muted); color: var(--color-muted); }

@media (max-width: 60rem) {
  .flow__steps { grid-template-columns: minmax(0, 1fr); max-width: 24rem; }
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}

/* Phones: footer links get a full thumb-sized tap area; long addresses may wrap. */
@media (max-width: 48rem) {
  .footer__columns ul { gap: 0; }
  .footer__columns ul a, .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__legal { gap: 0 var(--space-lg); }
  .footer__columns a { white-space: nowrap; }
}
@media (max-width: 22rem) {
  .footer__columns { grid-template-columns: minmax(0, 1fr); }
  .nav__inner { gap: var(--space-sm); }
  .button--small { padding: 0 var(--space-sm); }
  .nav__brand .wordmark { display: none; }
}
@media (max-width: 40rem) {
  .facts__list { grid-template-columns: minmax(0, 1fr); }
  .facts__item, .facts__item:first-child, .facts__item:last-child, .facts__item:nth-child(even) { padding-inline: 0; border-left: 0; }
  .facts__item + .facts__item { border-top: var(--rule-hair) solid var(--color-rule); }
  .facts__item dt { white-space: normal; }
  .nav__login { display: none; }
  .hero { padding-block: var(--space-2xl) var(--space-3xl); }
  .wordmark { font-size: 1.25rem; }
}

/* Month / year: radios first, so the switch and the cards can follow their state. */
.billing { margin-top: var(--space-xl); }
.billing__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
/* The logo's cut corner, like the cards: an outer rule layer and an inner fill (::before),
   so the hairline follows the diagonal. The chosen option fills blue, like the buttons. */
.billing__switch {
  --switch-cut: 12px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  gap: var(--space-3xs);
  padding: 3px;
  background: var(--color-rule);
  clip-path: polygon(var(--switch-cut) 0, 100% 0, 100% calc(100% - var(--switch-cut)), calc(100% - var(--switch-cut)) 100%, 0 100%, 0 var(--switch-cut));
}
.billing__switch::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--color-paper-2);
  clip-path: polygon(calc(var(--switch-cut) - 0.5px) 0, 100% 0, 100% calc(100% - var(--switch-cut) + 0.5px), calc(100% - var(--switch-cut) + 0.5px) 100%, 0 100%, 0 calc(var(--switch-cut) - 0.5px));
}
.billing__switch label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 0 var(--space-md);
  color: var(--color-muted);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.billing__switch label:first-child { clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px); }
.billing__switch label:last-child { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.billing__switch label { position: relative; }
/* With scripts/billing.js the chosen option is a blue piece that slides to the other option,
   at that option's own width, with a small overshoot (the wobble). Without it, the chosen
   label itself turns blue. */
.billing__thumb { display: none; }
.billing--js .billing__thumb {
  display: block;
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: var(--thumb-w, 0);
  transform: translateX(var(--thumb-x, 0));
  background: var(--color-accent);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition:
    transform 560ms cubic-bezier(0.34, 1.56, 0.64, 1),
    width 560ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.billing--js .billing__switch--still .billing__thumb { transition: none; }
.billing__switch label:hover { color: var(--color-ink); }
.billing__badge {
  padding: var(--space-3xs) var(--space-xs);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
#billing-month:checked ~ .billing__switch label[for="billing-month"],
#billing-year:checked ~ .billing__switch label[for="billing-year"] {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.billing--js #billing-month:checked ~ .billing__switch label[for="billing-month"],
.billing--js #billing-year:checked ~ .billing__switch label[for="billing-year"] {
  background: transparent;
}
#billing-year:checked ~ .billing__switch .billing__badge {
  background: var(--color-accent-ink);
  color: var(--color-accent);
}
#billing-month:focus-visible ~ .billing__switch label[for="billing-month"],
#billing-year:focus-visible ~ .billing__switch label[for="billing-year"] {
  outline: 2px solid var(--color-focus);
  outline-offset: -4px;
}
.billing .pricing__cards { margin-top: var(--space-xl); }
/* Month to year: the year price is the month price with a 0 behind it (29 → 290). The 0 rolls
   in with a small overshoot, the amount gives a little bounce, and "/m" and "/jaar" cross-fade in
   one fixed slot, so nothing else jumps. Screen readers get the plain text for the chosen one. */
.price-sr--year { display: none; }
#billing-year:checked ~ .pricing__cards .price-sr--month { display: none; }
#billing-year:checked ~ .pricing__cards .price-sr--year { display: inline; }

.price-card__price .num { display: inline-flex; align-items: baseline; transform-origin: 0 100%; }
.price-card__zero {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.35em) scale(0.6);
  transition:
    max-width 380ms var(--ease-out),
    opacity 220ms var(--ease-out),
    transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
#billing-year:checked ~ .pricing__cards .price-card__zero {
  max-width: 1.2ch;
  opacity: 1;
  transform: none;
}
.price-card__per { display: inline-grid; }
.price-card__per > span {
  grid-area: 1 / 1;
  transition: opacity 220ms var(--ease-out), transform 320ms var(--ease-out);
}
.per--year { opacity: 0; transform: translateY(0.4em); }
#billing-year:checked ~ .pricing__cards .per--month { opacity: 0; transform: translateY(-0.4em); }
#billing-year:checked ~ .pricing__cards .per--year { opacity: 1; transform: none; }

/* Two identical bounces: switching the name replays it on every change. */
@keyframes price-bounce-a { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 65% { transform: scale(0.98); } 100% { transform: scale(1); } }
@keyframes price-bounce-b { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 65% { transform: scale(0.98); } 100% { transform: scale(1); } }
#billing-month:checked ~ .pricing__cards .num { animation: price-bounce-a 480ms var(--ease-out); }
#billing-year:checked ~ .pricing__cards .num { animation: price-bounce-b 480ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .price-card__zero, .price-card__per > span, .billing__thumb { transition: none; }
  #billing-month:checked ~ .pricing__cards .num,
  #billing-year:checked ~ .pricing__cards .num { animation: none; }
}

@media (max-width: 40rem) {
  .billing__switch { display: flex; }
  .billing__switch label { flex: 1 1 auto; justify-content: center; padding: 0 var(--space-sm); }
}

/* The smallest phones (320px): no room for the badge; the note under the cards says it already. */
@media (max-width: 22rem) {
  .billing__badge { display: none; }
}

/* Topic pages (e.g. /werkbon-app): the hero shows one phone instead of the planning screen. */
.page-hero__phone { justify-self: center; width: min(100%, 320px); }
.page-hero__phone .flow__screen { aspect-ratio: 390 / 700; }
@media (max-width: 60rem) {
  .page-hero__phone { width: min(70%, 300px); margin-top: var(--space-xl); }
}
/* Topic pages: the questions follow the steps directly, so they need their own top space. */
.flow + .faq { padding-top: var(--section-gap-s); }

/* A step without a screenshot: the number and text in a quiet panel of the same height. */
.flow__step--text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 12rem;
  padding: var(--space-lg);
  background: var(--color-paper-2);
  box-shadow: inset 0 0 0 1px var(--color-rule);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.flow__step--text h3 { margin-top: 0; }
@media (min-width: 60.0625rem) {
  .flow__steps:has(figure) .flow__step--text { align-self: end; }
}

/* Comparison page: a calm table, Probisoft first; scrolls sideways on small phones. */
.compare__intro { max-width: 46rem; }
.compare { padding-block: var(--section-gap-s) 0; }
.compare h2 {
  font-size: var(--text-section);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
}
.compare__scroll { margin-top: var(--space-xl); overflow-x: auto; }
.compare__table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: var(--text-md); }
.compare__table th, .compare__table td {
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  text-align: left;
  vertical-align: top;
}
.compare__table thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  border-bottom-color: var(--color-ink);
}
.compare__table tbody th { font-weight: 600; width: 30%; }
.compare__table td { color: var(--color-ink-2); }
.compare__table td:nth-child(2) { color: var(--color-ink); }
.compare__note { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); max-width: 70ch; }
.compare__when {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-columns);
  margin-top: var(--space-2xl);
}
.compare__when-item h3 { font-size: var(--text-title); font-weight: 800; }
.compare__when-item p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.compare + .faq { padding-top: var(--section-gap-s); }
@media (max-width: 60rem) {
  .compare__when { grid-template-columns: minmax(0, 1fr); }
}

/* Comparison page: no screenshot next to the title, so a shorter intro. */
.hero:has(.compare__intro) { min-height: 0; padding-bottom: 0; }
