/* The stylesheet of smartcompanyflow.com. One file for every block (css isolation does not work for blocks).
   Conventions: flexbox, sizes in em (a 1px line may stay px), few classes, colours as variables. Works from 360px.
   The neutrals are cool grey only: never a warm or pink grey (the Stitch designs had one; it is not ours). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root {
  --green: #0b6b38;
  --green-dark: #08542b;
  --green-soft: #eef6f1;
  --green-logo: #8cc63f;
  --accent: var(--green);
  --accent-dark: var(--green-dark);
  --accent-soft: var(--green-soft);
  --orange: #ea5b0c;
  --orange-text: #c2410c;
  --orange-dark: #7c2d12;
  --orange-soft: #ffedd5;
  --text: #231f20;
  --muted: #64748b;
  --grey: #f5f7fa;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --error: #b00020;
  --white: #ffffff;
  --dark: #1a1c1e;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

/* The IssueOver page: the accent becomes orange; header and footer stay neutral. */
.accent-orange {
  --accent: var(--orange-text);
  --accent-dark: var(--orange-dark);
  --accent-soft: var(--orange-soft);
}

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

[hidden] {
  display: none !important;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-size: 1.0625em;
  line-height: 1.6;
  font-family: var(--font);
  background: var(--white);
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site > .blk-footer {
  margin-top: auto;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  font-size: 2.2em;
}

h2 {
  font-size: 1.75em;
}

h3 {
  font-size: 1.15em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
}

img {
  height: auto;
  max-width: 100%;
  display: block;
}

code, pre {
  font-family: var(--mono);
}

/* ---------- layout ---------- */

.page {
  width: 100%;
  margin: 0 auto;
  padding: 0 1em;
  max-width: 75em;
}

.page.narrow {
  max-width: 50em;
}

.center {
  text-align: center;
}

.blk {
  padding: 3.5em 0;
}

.bg-grey {
  background: var(--grey);
}

.head {
  margin-bottom: 2em;
  max-width: 45em;
}

.head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  margin: 0 0 0.75em;
  color: var(--accent);
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker.pill {
  padding: 0.35em 0.9em;
  display: inline-block;
  background: var(--accent-soft);
  border-radius: 999px;
}

.intro, .lead {
  color: var(--muted);
  font-size: 1.05em;
}

.lead {
  font-size: 1.1em;
}

.small {
  color: var(--muted);
  font-size: 0.85em;
}

.note {
  margin-top: 1.5em;
  color: var(--muted);
  font-size: 0.9em;
}

.message {
  padding: 1em 1.25em;
  color: var(--text);
  background: var(--grey);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.message.example {
  background: var(--warning-soft);
  border-color: #fcd34d;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.large {
  width: 3em;
  height: 3em;
}

.badge {
  padding: 0.2em 0.7em;
  display: inline-block;
  color: var(--accent);
  font-size: 0.75em;
  font-weight: 600;
  background: var(--accent-soft);
  border-radius: 999px;
}

.badge.warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.richtext > :last-child {
  margin-bottom: 0;
}

.richtext ul, .richtext ol {
  padding-left: 1.25em;
}

.richtext table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
}

.richtext th, .richtext td {
  padding: 0.5em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

/* ---------- buttons and links ---------- */

.button {
  padding: 0.75em 1.5em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--white);
  font: inherit;
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.5em;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green-logo);
  outline-offset: 2px;
}

.button.small {
  padding: 0.55em 1em;
}

.button.light {
  color: var(--text);
  background: var(--white);
  border-color: var(--line);
}

.button.light:hover {
  background: var(--grey);
  border-color: var(--line-strong);
}

.button.inverse {
  color: var(--green-dark);
  background: var(--white);
  border-color: var(--white);
}

.accent-orange .button.inverse {
  color: var(--orange-dark);
}

.button.ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}

.textlink {
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.textlink::after {
  content: " →";
  display: inline-block;
  transition: transform 0.15s;
}

button.textlink::after {
  content: none;
}

.textlink:hover::after {
  transform: translateX(0.2em);
}

.actions {
  margin: 1.5em 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em 1.5em;
}

.chip {
  padding: 0.3em 0.8em;
  color: var(--text);
  font-size: 0.85em;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip:hover {
  border-color: var(--line-strong);
}

/* ---------- frames: browser and phone ---------- */

.browser {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
  box-shadow: 0 0.6em 1.5em -0.3em rgba(15, 23, 42, 0.1);
}

.browser .bar {
  height: 2.2em;
  padding: 0 0.9em;
  display: flex;
  align-items: center;
  gap: 0.4em;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.browser .bar i {
  width: 0.5em;
  height: 0.5em;
  background: var(--line);
  border-radius: 50%;
}

.phone {
  width: 100%;
  margin: 0 auto;
  padding: 0.6em;
  max-width: 17em;
  background: var(--dark);
  border-radius: 2em;
  box-shadow: 0 0.8em 2em -0.4em rgba(15, 23, 42, 0.25);
}

.phone .screen {
  overflow: hidden;
  background: var(--white);
  border-radius: 1.5em;
}

.frames {
  position: relative;
  padding-bottom: 2em;
}

.frames .browser {
  margin-right: 4em;
}

.frames .phone {
  right: 0;
  bottom: 0;
  width: 40%;
  position: absolute;
}

/* ---------- header ---------- */

.blk-header {
  top: 0;
  z-index: 10;
  position: sticky;
  padding: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.blk-header .page {
  height: 4.5em;
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.blk-header .logo img {
  height: 2.25em;
  width: auto;
}

.blk-header nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.blk-header nav > ul {
  flex: 1;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5em;
  list-style: none;
}

.blk-header nav a, .blk-header nav button {
  padding: 0;
  color: var(--text);
  font: inherit;
  font-size: 0.95em;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.blk-header nav a:hover, .blk-header nav a.active, .blk-header nav button:hover {
  color: var(--green);
}

.blk-header nav a.button {
  color: var(--white);
}

.blk-header .products {
  position: relative;
}

.blk-header .products > button::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin: 0 0 0.2em 0.5em;
  display: inline-block;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.blk-header .products ul {
  top: 100%;
  left: -1em;
  z-index: 11;
  position: absolute;
  min-width: 14em;
  margin: 0.75em 0 0;
  padding: 0.5em;
  display: none;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
  box-shadow: 0 0.6em 1.5em -0.3em rgba(15, 23, 42, 0.12);
}

.blk-header .products.open ul {
  display: block;
}

.blk-header .products ul a {
  padding: 0.5em 0.75em;
  display: block;
  border-radius: 0.5em;
}

.blk-header .products ul a:hover {
  background: var(--grey);
}

.blk-header .language {
  display: flex;
  gap: 0.25em;
  font-size: 0.85em;
}

.blk-header .language a {
  padding: 0.2em 0.5em;
  color: var(--muted);
  border-radius: 999px;
}

.blk-header .language a.active {
  color: var(--green);
  font-weight: 600;
  background: var(--green-soft);
}

.blk-header .menubutton {
  margin-left: auto;
  padding: 0.5em;
  display: none;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
}

.blk-header .overlay {
  display: none;
}

/* ---------- hero ---------- */

.blk-hero {
  padding: 4em 0;
}

.blk-hero .page {
  display: flex;
  align-items: center;
  gap: 3em;
}

.blk-hero .text {
  flex: 1 1 50%;
}

.blk-hero .visual {
  flex: 1 1 50%;
  min-width: 0;
}

.blk-hero h1 {
  font-size: 2.9em;
  letter-spacing: -0.02em;
}

.blk-hero .productlogo img {
  height: 2.5em;
  width: auto;
  margin-bottom: 1.25em;
}

.facts {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  color: var(--muted);
  font-size: 0.85em;
  list-style: none;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.facts .icon {
  color: var(--accent);
}

/* ---------- cards ---------- */

.cards {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  list-style: none;
}

.cards > li {
  flex: 1 1 calc(33.333% - 1em);
  min-width: 15em;
  display: flex;
  flex-direction: column;
}

.cards.columns-2 > li {
  flex-basis: calc(50% - 0.75em);
}

.cards.columns-4 > li {
  flex-basis: calc(25% - 1.125em);
  min-width: 12em;
}

.style-card > li, .style-compact > li {
  padding: 2em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.style-compact > li {
  padding: 1.25em 1.5em;
}

.style-compact h3 {
  font-size: 1.05em;
}

.cards > li.highlight {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.cards > li.orange {
  --accent: var(--orange-text);
  --accent-soft: var(--orange-soft);
}

.cards p {
  color: var(--muted);
}

.cards .textlink {
  margin-top: auto;
}

.cardtop {
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.cardtop .badge {
  margin-left: auto;
}

.cardtop .label {
  padding: 0.2em 0.7em;
  color: var(--accent);
  font-size: 0.75em;
  font-weight: 600;
  background: var(--accent-soft);
  border-radius: 0.4em;
}

.iconbox {
  width: 2.5em;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 0.6em;
}

.cardimage img {
  height: 2em;
  width: auto;
  margin-bottom: 1em;
}

.checks {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.checks li {
  margin-bottom: 0.5em;
  display: flex;
  gap: 0.6em;
}

.checks .icon {
  margin-top: 0.2em;
  color: var(--accent);
}

.checks li.excluded {
  color: var(--muted);
}

.checks li.excluded .icon {
  color: var(--line-strong);
}

/* ---------- text with image ---------- */

.blk-textimage .page {
  display: flex;
  align-items: center;
  gap: 3.5em;
}

.blk-textimage.image-left .page {
  flex-direction: row-reverse;
}

.blk-textimage .text, .blk-textimage .visual {
  flex: 1 1 50%;
  min-width: 0;
}

.highlight {
  margin: 1.5em 0;
  padding: 1.25em 1.5em;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.highlight h3 {
  margin-top: 0.5em;
}

.highlight p {
  margin: 0;
  color: var(--muted);
}

/* ---------- steps ---------- */

.steps {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  list-style: none;
}

.steps > li {
  flex: 1 1 10em;
  position: relative;
}

.steps .number {
  width: 2.25em;
  height: 2.25em;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85em;
  font-weight: 600;
  background: var(--accent);
  border-radius: 50%;
}

.steps p {
  color: var(--muted);
  font-size: 0.95em;
}

.layout-days .steps > li, .layout-grid .steps > li {
  padding: 1.5em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.layout-days .number {
  width: auto;
  height: auto;
  padding: 0.2em 0.7em;
  display: inline-block;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 0.4em;
}

.layout-grid .steps > li {
  flex-basis: calc(33.333% - 1em);
  min-width: 15em;
}

.blk-steps .visual {
  margin-top: 2.5em;
}

/* ---------- diagram ---------- */

.diagram {
  padding: 2.5em 2em;
  display: flex;
  align-items: center;
  gap: 1em;
  background: var(--grey);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.bg-grey .diagram {
  background: var(--white);
}

.diagram .node {
  padding: 1em 1.25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.6em;
}

.diagram .source, .diagram .hub {
  flex: 1 1 0;
}

.diagram .hub {
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: var(--green);
}

.diagram .node span {
  color: var(--muted);
  font-size: 0.8em;
}

.diagram .node .icon {
  color: var(--green);
}

.diagram .arrows {
  flex: 0 0 5em;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.diagram .arrow {
  height: 1px;
  position: relative;
  display: block;
  background: var(--green);
}

.diagram .arrow::after {
  content: "";
  top: -0.25em;
  right: 0;
  width: 0.5em;
  height: 0.5em;
  position: absolute;
  border-top: 1px solid var(--green);
  border-right: 1px solid var(--green);
  transform: rotate(45deg);
}

.diagram .arrow.back {
  background: var(--muted);
}

.diagram .arrow.back::after {
  left: 0;
  right: auto;
  border-color: var(--muted);
  transform: rotate(-135deg);
}

.diagram .arrow.back span {
  top: 0.4em;
  width: 100%;
  position: absolute;
  color: var(--muted);
  font-size: 0.7em;
  text-align: center;
}

.diagram .targets {
  flex: 1 1 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  list-style: none;
}

.diagram .targets .node {
  padding: 0.6em 1em;
  font-size: 0.9em;
}

.diagram .targets .node.orange {
  color: var(--orange-text);
  border-color: #fdba74;
}

/* ---------- band ---------- */

.blk-band {
  position: relative;
  overflow: hidden;
  padding: 4.5em 0;
  color: var(--white);
  text-align: center;
  background: var(--green-dark);
}

.blk-band.orange {
  background: var(--orange-dark);
}

.blk-band .page {
  position: relative;
  max-width: 50em;
}

.blk-band h2, .blk-band .kicker {
  color: var(--white);
}

.blk-band .kicker.pill {
  background: rgba(255, 255, 255, 0.15);
}

.blk-band p {
  color: rgba(255, 255, 255, 0.85);
}

.blk-band .actions {
  justify-content: center;
}

.blk-band .photo, .blk-band .photo img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.blk-band.with-photo {
  padding: 6em 0;
}

.blk-band.with-photo::before {
  content: "";
  inset: 0;
  z-index: 1;
  position: absolute;
  background: rgba(8, 84, 43, 0.78);
}

.blk-band.orange.with-photo::before {
  background: rgba(124, 45, 18, 0.8);
}

.blk-band.with-photo .page {
  z-index: 2;
}

/* The light spot (variant A for green, the stronger one for orange), in one of the corners. */
.blk-band.green.light-tl { background: radial-gradient(circle at 25% 25%, rgba(190, 214, 90, 0.32) 0%, rgba(140, 198, 63, 0.2) 20%, rgba(11, 107, 56, 0) 52%), var(--green-dark); }
.blk-band.green.light-tr { background: radial-gradient(circle at 75% 25%, rgba(190, 214, 90, 0.32) 0%, rgba(140, 198, 63, 0.2) 20%, rgba(11, 107, 56, 0) 52%), var(--green-dark); }
.blk-band.green.light-bl { background: radial-gradient(circle at 25% 75%, rgba(190, 214, 90, 0.32) 0%, rgba(140, 198, 63, 0.2) 20%, rgba(11, 107, 56, 0) 52%), var(--green-dark); }
.blk-band.green.light-br { background: radial-gradient(circle at 75% 75%, rgba(190, 214, 90, 0.32) 0%, rgba(140, 198, 63, 0.2) 20%, rgba(11, 107, 56, 0) 52%), var(--green-dark); }
.blk-band.orange.light-tl { background: radial-gradient(circle at 25% 25%, rgba(251, 191, 36, 0.45) 0%, rgba(234, 91, 12, 0.35) 24%, rgba(124, 45, 18, 0) 60%), var(--orange-dark); }
.blk-band.orange.light-tr { background: radial-gradient(circle at 75% 25%, rgba(251, 191, 36, 0.45) 0%, rgba(234, 91, 12, 0.35) 24%, rgba(124, 45, 18, 0) 60%), var(--orange-dark); }
.blk-band.orange.light-bl { background: radial-gradient(circle at 25% 75%, rgba(251, 191, 36, 0.45) 0%, rgba(234, 91, 12, 0.35) 24%, rgba(124, 45, 18, 0) 60%), var(--orange-dark); }
.blk-band.orange.light-br { background: radial-gradient(circle at 75% 75%, rgba(251, 191, 36, 0.45) 0%, rgba(234, 91, 12, 0.35) 24%, rgba(124, 45, 18, 0) 60%), var(--orange-dark); }

/* ---------- price teaser ---------- */

.blk-priceteaser {
  background: var(--green-soft);
}

.blk-priceteaser.light-tl { background: radial-gradient(circle at 25% 25%, rgba(255, 251, 214, 0.9) 0%, rgba(255, 255, 255, 0.5) 22%, rgba(238, 246, 241, 0) 55%), var(--green-soft); }
.blk-priceteaser.light-tr { background: radial-gradient(circle at 75% 25%, rgba(255, 251, 214, 0.9) 0%, rgba(255, 255, 255, 0.5) 22%, rgba(238, 246, 241, 0) 55%), var(--green-soft); }
.blk-priceteaser.light-bl { background: radial-gradient(circle at 25% 75%, rgba(255, 251, 214, 0.9) 0%, rgba(255, 255, 255, 0.5) 22%, rgba(238, 246, 241, 0) 55%), var(--green-soft); }
.blk-priceteaser.light-br { background: radial-gradient(circle at 75% 75%, rgba(255, 251, 214, 0.9) 0%, rgba(255, 255, 255, 0.5) 22%, rgba(238, 246, 241, 0) 55%), var(--green-soft); }

.blk-priceteaser .example {
  margin: 1.5em auto 0;
  padding: 1.75em 2em;
  max-width: 24em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.amount {
  margin: 0.25em 0;
  color: var(--green-dark);
  font-size: 2em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.accent-orange .amount {
  color: var(--text);
}

.amount span, .amount small {
  color: var(--muted);
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- price table and packages ---------- */

.tabs {
  margin-bottom: 1.5em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  margin-bottom: -1px;
  padding: 0.6em 1em;
  color: var(--muted);
  font: inherit;
  font-size: 0.95em;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.pricetabs .panel {
  margin: 0 auto;
  max-width: 50em;
}

.blk-pricetable table {
  width: 100%;
  margin-bottom: 1.5em;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.blk-pricetable th, .blk-pricetable td {
  padding: 0.7em 1em;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.blk-pricetable th {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 600;
  background: var(--grey);
}

.blk-pricetable td:last-child, .blk-pricetable th:last-child {
  text-align: right;
  white-space: nowrap;
}

.packages {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.5em;
  list-style: none;
}

.package {
  flex: 1 1 16em;
  position: relative;
  padding: 2em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.package.highlighted {
  border: 2px solid var(--accent);
  box-shadow: 0 0.6em 1.5em -0.3em rgba(15, 23, 42, 0.12);
}

.package > .badge {
  top: -0.9em;
  left: 50%;
  position: absolute;
  color: var(--white);
  background: var(--accent);
  transform: translateX(-50%);
}

.package .amount {
  margin-bottom: 1em;
}

/* ---------- faq ---------- */

.questions details {
  margin-bottom: 0.75em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.questions summary {
  padding: 1em 1.25em;
  display: flex;
  justify-content: space-between;
  gap: 1em;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.questions summary::-webkit-details-marker {
  display: none;
}

.questions summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
}

.questions details[open] summary::after {
  content: "−";
}

.questions .richtext {
  padding: 0 1.25em 1.25em;
  color: var(--muted);
}

/* ---------- developers ---------- */

.blk-developer {
  color: #d6dde6;
  background: var(--dark);
}

.blk-developer h2 {
  color: var(--white);
}

.blk-developer .kicker {
  color: var(--green-logo);
}

.blk-developer .page {
  display: flex;
  align-items: center;
  gap: 3em;
}

.blk-developer .text, .blk-developer .code {
  flex: 1 1 50%;
  min-width: 0;
}

.blk-developer .checks .icon {
  color: var(--green-logo);
}

.blk-developer .code {
  overflow: hidden;
  background: #2d3133;
  border-radius: 0.75em;
}

.blk-developer .tabs {
  margin: 0;
  justify-content: flex-start;
  border-color: #3d4245;
}

.blk-developer .tabs button {
  color: #9aa4ae;
  font-size: 0.8em;
}

.blk-developer .tabs button[aria-selected="true"] {
  color: var(--white);
  border-bottom-color: var(--green-logo);
}

.blk-developer pre {
  margin: 0;
  padding: 1.25em;
  overflow-x: auto;
  color: #e6edf3;
  font-size: 0.8em;
  line-height: 1.6;
}

/* ---------- contact and forms ---------- */

.blk-contact .page {
  display: flex;
  align-items: flex-start;
  gap: 3em;
}

.blk-contact .details {
  flex: 1 1 40%;
}

.blk-contact .formcard {
  flex: 1 1 60%;
}

.panel {
  margin-bottom: 1.25em;
  padding: 1.25em 1.5em;
  background: var(--grey);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.panel p {
  margin-bottom: 0.4em;
}

.address p {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.formcard {
  padding: 2em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
  box-shadow: 0 0.6em 1.5em -0.3em rgba(15, 23, 42, 0.08);
}

.overview {
  margin-bottom: 1.25em;
  padding: 0.9em 1.1em;
  display: flex;
  align-items: center;
  gap: 0.75em;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 0.6em;
}

.overview > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.overview span {
  color: var(--muted);
  font-size: 0.85em;
}

/* The form of BlazingCms (Html.BlazingForm): only the look, the behaviour is form.js of the package. */
.blazing-form label {
  margin-bottom: 0.3em;
  display: block;
  font-size: 0.9em;
  font-weight: 500;
}

.blazing-form input[type="text"], .blazing-form input[type="email"], .blazing-form input[type="tel"],
.blazing-form input[type="number"], .blazing-form select, .blazing-form textarea {
  width: 100%;
  min-height: 2.75em;
  margin-bottom: 1em;
  padding: 0.6em 0.9em;
  color: var(--text);
  font: inherit;
  font-size: 0.95em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.5em;
}

.blazing-form textarea {
  min-height: 8em;
}

.blazing-form input:focus, .blazing-form select:focus, .blazing-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 0.15em var(--green-soft);
}

.blazing-form button[type="submit"] {
  width: 100%;
  padding: 0.85em 1.5em;
  color: var(--white);
  font: inherit;
  font-weight: 600;
  background: var(--green);
  border: 0;
  border-radius: 0.5em;
  cursor: pointer;
}

.blazing-form button[type="submit"]:disabled {
  opacity: 0.6;
}

.blk-form .formcard {
  margin-top: 1em;
}

/* ---------- page title and legal documents ---------- */

.blk-pagetitle {
  padding-bottom: 1.5em;
}

.blk-pagetitle .page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em 2em;
}

.blk-pagetitle .text {
  max-width: 45em;
}

.blk-pagetitle.center .page {
  justify-content: center;
  text-align: center;
}

.blk-pagetitle .date {
  color: var(--muted);
  font-size: 0.9em;
}

.related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  color: var(--muted);
  font-size: 0.85em;
}

.blk-legal {
  padding-top: 1em;
}

.document {
  padding: 2em 2.5em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.document h1 {
  font-size: 1.6em;
}

.document h2 {
  margin-top: 1.75em;
  font-size: 1.2em;
}

.document h3 {
  margin-top: 1.25em;
  font-size: 1.05em;
}

.blk-legal .button {
  margin: 1em 0;
}

/* ---------- calculator ---------- */

.calculator {
  display: flex;
  align-items: flex-start;
  gap: 2em;
}

.calculator .steps {
  flex: 1 1 60%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25em;
}

.step {
  margin: 0;
  padding: 1.5em;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.step legend {
  float: left;
  width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.1em;
  font-weight: 600;
}

.step legend + * {
  clear: both;
}

.step .number {
  width: 1.75em;
  height: 1.75em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8em;
  background: var(--green);
  border-radius: 50%;
}

.step .help {
  color: var(--muted);
  font-size: 0.9em;
}

.step[disabled] {
  display: none;
}

/* Step 3: every application a card. Chosen, its settings open under its tile and join it: one green frame. */
.apps {
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.app > .tiles {
  margin-bottom: 0;
}

.app:has(> .app-settings:not([disabled])) > .tiles label {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.app-settings {
  min-width: 0;
  margin: 0;
  padding: 1.25em 1.25em 0.5em;
  background: var(--white);
  border: 1px solid var(--green);
  border-top: 0;
  border-radius: 0 0 0.6em 0.6em;
}

.app-settings[disabled] {
  display: none;
}

.app-settings > .help:first-of-type {
  margin-top: 0;
}

@media (max-width: 40em) {
  .app-settings {
    padding: 1em 0.75em 0.25em;
  }
}

/* For screen readers only: the title of a part that the layout already makes clear. */
.visually-hidden {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tiles, .numbers, .toggles {
  margin-bottom: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
}

.tiles label {
  flex: 1 1 10em;
  position: relative;
  padding: 0.8em 1em;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.6em;
  cursor: pointer;
}

/* Our own box with a white tick when chosen (as in the Stitch design): friendlier than the dot and the tiny box of
   the browser, and the same in every browser. A radio is round, a checkbox square. */
.tiles input, .module-choice input, .toggles input {
  --tick: var(--green);
  /* As in the Stitch design: 20px with a 2px border, square with rounded corners for a checkbox, round for a
     radio. In rem, so a smaller label text does not make them smaller. */
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  top: 1rem;
  right: 1rem;
  position: absolute;
  appearance: none;
  background: #ffffff center / 0.875rem no-repeat;
  border: 2px solid #cbd5e1;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.tiles input[type="radio"] {
  border-radius: 50%;
}

/* Stacked tiles: the box in the middle of the right side, whatever the length of the text. */
.tiles.stacked input {
  top: 50%;
  transform: translateY(-50%);
}

.tiles.stacked label {
  padding-right: 3em;
}

.tiles input:checked, .module-choice input:checked, .toggles input:checked {
  background-color: var(--tick);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: var(--tick);
}

.tiles input:focus-visible, .module-choice input:focus-visible, .toggles input:focus-visible {
  outline: 2px solid var(--tick);
  outline-offset: 2px;
}

/* Base is always on: shown chosen, but quieter. */
.module-choice input:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Choices with a line of explanation, one under the other (the ERP). */
.tiles.stacked {
  flex-direction: column;
}

.tiles.stacked label {
  flex-basis: auto;
  gap: 0.15em;
}

.tiles.stacked small, .tiles.stacked span {
  padding-right: 0;
}

.tiles label:has(input:checked) {
  background: var(--green-soft);
  border-color: var(--green);
}

.tiles span {
  padding-right: 1.5em;
  font-weight: 500;
}

.tiles small {
  color: var(--muted);
  font-size: 0.8em;
}

.number-field {
  flex: 1 1 8em;
  margin-bottom: 0.5em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  font-size: 0.9em;
}

.number-field input {
  width: 100%;
  max-width: 10em;
  height: 2.6em;
  padding: 0 0.8em;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0.5em;
}

.number-field input[aria-invalid="true"] {
  border-color: var(--error);
}

.toggles label {
  flex: 1 1 100%;
  padding: 0.75em 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  border: 1px solid var(--line);
  border-radius: 0.6em;
  cursor: pointer;
}

/* The same box as the tiles, but in the line instead of in the corner. */
.toggles input {
  order: 2;
  flex: none;
  position: static;
}

.toggles label:has(input:checked) {
  background: var(--green-soft);
  border-color: var(--green);
}

.notice {
  padding: 0.75em 1em;
  color: var(--green-dark);
  font-size: 0.9em;
  background: var(--green-soft);
  border-radius: 0.5em;
}

.summary {
  flex: 1 1 40%;
  top: 6em;
  position: sticky;
  padding: 1.75em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75em;
  box-shadow: 0 0.6em 1.5em -0.3em rgba(15, 23, 42, 0.1);
}

.summary h2 {
  font-size: 1.15em;
}

.summary .amount {
  font-size: 2.4em;
}

.summary p {
  margin: 0;
}

.summary .lines summary {
  padding: 0.5em 0;
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
}

.summary table {
  width: 100%;
  font-size: 0.85em;
  border-collapse: collapse;
}

.summary td {
  padding: 0.35em 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.summary td:last-child {
  padding-left: 1em;
  text-align: right;
  white-space: nowrap;
}

.summary tr.discount td {
  color: var(--green);
}

.summary tr.oneoff td {
  color: var(--muted);
}

.summary .notes {
  margin: 0.75em 0 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 0.8em;
}

.summary .error {
  color: var(--error);
  font-size: 0.9em;
}

.summary .button {
  justify-content: center;
}

.summary .mobilebar {
  display: none;
}

.summary.loading .amount {
  opacity: 0.5;
}

/* ---------- 404 ---------- */

.blk-notfound {
  background: var(--grey);
}

.blk-notfound .page {
  display: flex;
  align-items: center;
  gap: 4em;
}

.blk-notfound .phone {
  flex: 0 0 17em;
}

.blk-notfound .text {
  flex: 1;
}

.scanner .appbar {
  padding: 0.9em 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--white);
  font-size: 0.85em;
  font-weight: 600;
  background: var(--green);
}

.scanner .location {
  margin: 1em;
  padding: 1em;
  border: 1px solid var(--line);
  border-radius: 0.75em;
}

.scanner .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scanner code {
  padding: 0.2em 0.5em;
  font-size: 0.85em;
  background: var(--grey);
  border-radius: 0.3em;
}

.scanner .empty {
  margin: 1em 0;
  padding: 1.5em 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75em;
  color: var(--muted);
  font-size: 0.8em;
  border: 1px dashed var(--line-strong);
  border-radius: 0.5em;
}

.scanner .empty .icon {
  color: var(--orange);
}

.scanner .progress {
  height: 0.35em;
  margin-top: 0.5em;
  background: var(--line);
  border-radius: 999px;
}

.locations {
  margin: 1.5em 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  list-style: none;
}

.locations li {
  flex: 1 1 calc(50% - 0.75em);
  min-width: 13em;
}

.locations a {
  padding: 0.8em 1em;
  display: flex;
  align-items: center;
  gap: 0.75em;
  color: var(--text);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.6em;
}

.locations a:hover {
  border-color: var(--green);
}

.locations a span {
  flex: 1;
}

.locations code {
  padding: 0.15em 0.45em;
  color: var(--muted);
  font-size: 0.8em;
  background: var(--grey);
  border-radius: 0.3em;
}

.blk-notfound .help {
  margin-top: 1.5em;
  padding-top: 1em;
  color: var(--muted);
  font-size: 0.9em;
  border-top: 1px solid var(--line);
}

/* ---------- footer ---------- */

.blk-footer {
  padding: 4em 0 2.5em;
  color: var(--muted);
  font-size: 0.95em;
  background: var(--grey);
  border-top: 1px solid var(--line);
}

.blk-footer .page {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.blk-footer .brand {
  flex: 2 1 18em;
}

.blk-footer .logo img {
  height: 2.25em;
  width: auto;
  margin-bottom: 1em;
}

.blk-footer .column {
  flex: 1 1 10em;
}

.blk-footer h3 {
  font-size: 0.95em;
}

.blk-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blk-footer li {
  margin-bottom: 0.5em;
}

.blk-footer a {
  color: var(--muted);
  text-decoration: none;
}

.blk-footer a:hover {
  color: var(--green);
}

.blk-footer .bottom {
  margin-top: 2.5em;
  padding-top: 1.5em;
  justify-content: space-between;
  font-size: 0.8em;
  border-top: 1px solid var(--line);
}

.blk-footer .bottom p {
  margin: 0;
}

/* ---------- larger screens ---------- */

@media (min-width: 64em) {
  .blk {
    padding: 6em 0;
  }

  .blk-hero {
    padding: 5em 0;
  }

  /* Blocks with their own spacing keep it: the 6em above is only for the ordinary blocks. */
  .blk-band {
    padding: 4.5em 0;
  }

  .blk-pagetitle {
    padding-bottom: 1.5em;
  }

  .blk-legal {
    padding-top: 1em;
  }

  .blk-footer {
    padding: 4em 0 2.5em;
  }

  h1 {
    font-size: 2.6em;
  }

  h2 {
    font-size: 2.1em;
  }

  .page {
    padding: 0 2em;
  }
}

/* ---------- phone and tablet ---------- */

@media (max-width: 60em) {
  .blk-header nav {
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    position: fixed;
    width: 85%;
    max-width: 22em;
    padding: 5em 1.5em 1.5em;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.2s;
  }

  .blk-header nav.visible {
    transform: none;
  }

  .blk-header nav > ul {
    flex: 0 0 auto;
    flex-direction: column;
    gap: 1em;
  }

  .blk-header .products ul {
    position: static;
    margin: 0.5em 0 0;
    display: block;
    border: 0;
    box-shadow: none;
  }

  .blk-header .products > button {
    color: var(--muted);
    font-size: 0.8em;
    cursor: default;
  }

  .blk-header .products > button::after {
    content: none;
  }

  .blk-header .menubutton {
    display: block;
  }

  .blk-header .overlay.visible {
    inset: 0;
    z-index: 15;
    position: fixed;
    display: block;
    background: rgba(15, 23, 42, 0.35);
  }

  .blk-hero .page, .blk-textimage .page, .blk-textimage.image-left .page, .blk-developer .page, .blk-contact .page, .blk-notfound .page {
    flex-direction: column;
    align-items: stretch;
  }

  .blk-hero h1 {
    font-size: 2.1em;
  }

  .blk-notfound .phone {
    flex-basis: auto;
    max-width: 14em;
  }

  .diagram {
    flex-direction: column;
    align-items: stretch;
  }

  .diagram .arrows {
    flex-basis: 2em;
    align-items: center;
  }

  .diagram .arrow {
    width: 1px;
    height: 2em;
  }

  .diagram .arrow::after {
    top: auto;
    left: -0.25em;
    bottom: 0;
    transform: rotate(135deg);
  }

  .diagram .arrow.back {
    display: none;
  }

  .frames .browser {
    margin-right: 0;
  }

  .frames .phone {
    display: none;
  }

  .calculator {
    flex-direction: column;
    align-items: stretch;
  }

  /* On a phone the overview is a bar at the bottom with the amount; the full overview follows the steps. */
  .summary {
    position: static;
  }

  .summary .mobilebar {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    position: fixed;
    padding: 0.75em 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -0.3em 1em rgba(15, 23, 42, 0.08);
  }

  .summary .mobilebar .button {
    margin-left: auto;
  }

  .document {
    padding: 1.25em;
  }
}

/* Step 2: the count in a grey band with − and + (as in the Stitch design). */
.count-row {
  margin-bottom: 1em;
  padding: 1em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  background: var(--grey, #f5f7fa);
  border-radius: 0.75em;
}

.count-row label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

.count-row small {
  color: var(--muted);
  font-size: 0.8em;
  font-weight: 400;
}

.stepper {
  padding: 0.25em;
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.5em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.stepper button {
  width: 2.25em;
  height: 2.25em;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text, #231f20);
  background: none;
  border: 0;
  border-radius: 0.35em;
  cursor: pointer;
}

.stepper button:hover {
  background: var(--grey, #f5f7fa);
}

.stepper button svg {
  width: 1.1em;
  height: 1.1em;
}

.stepper input {
  width: 3.5em;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-align: center;
  background: transparent;
  border: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* Step 3: tiles with an icon, a title and a line of explanation. */
.tiles.with-icons label {
  flex-basis: 11em;
  padding: 1em;
  gap: 0.2em;
}

.tiles.with-icons label > svg {
  width: 1.5em;
  height: 1.5em;
  margin-bottom: 0.4em;
  color: var(--green);
}

/* Stacked tiles with an icon: the icon on the left, the text next to it. */
.tiles.stacked.with-icons label {
  flex-basis: auto;
  padding-left: 3.25em;
}

.tiles.stacked.with-icons label > svg {
  top: 1em;
  left: 1em;
  position: absolute;
}

/* The name of the implementation partner: only when the partner does the setup. */
.partner-name {
  margin-top: 0.25em;
  display: none;
  flex-direction: column;
  gap: 0.3em;
  font-size: 0.9em;
}

.step:has(input[name="implementation"][value="partner"]:checked) .partner-name {
  display: flex;
}

.partner-name input {
  padding: 0.6em 0.75em;
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 0.5em;
}

.partner-name input[aria-invalid="true"] {
  border-color: #b91c1c;
}

/* The name of the count follows the ERP: Exact asks for divisions, AFAS for subadministrations. */
.count-row [data-erp] {
  display: none;
}

.steps:has(input[name="erp"][value="ExactGlobe"]:checked) .count-row [data-erp="ExactGlobe"],
.steps:has(input[name="erp"][value="Afas"]:checked) .count-row [data-erp="Afas"],
.steps:has(input[name="erp"][value="Other"]:checked) .count-row [data-erp="Other"] {
  display: block;
}

/* The number and the title of a step on one middle line: both their own box with the same line height, so the
   centring does not depend on how a legend lays out its text. */
.step legend .title {
  line-height: 1.3;
}

/* No margin: the calculator form is also ".steps", and the number of the steps block has a margin under it. */
.step legend .number {
  flex: none;
  margin: 0;
  line-height: 1;
}

/* Every option keeps its text at least 0.75em from the box on the right (box: 1rem from the edge, 1.25rem wide).
   Last in the file on purpose: it wins over the paddings of the tile variants above. */
.tiles label, .tiles.with-icons label {
  padding-right: calc(1rem + 1.25rem + 0.75em);
}

.tiles span {
  padding-right: 0;
}

/* SmartConnector Hub: a choice under the count, only from two subadministrations on. */
.hub-choice {
  margin-top: 1rem;
}

.hub-choice[hidden] {
  display: none;
}

/* With Exact Globe the batch runs on the server of the customer: no choice to let us run it. */
.steps:has(input[name="erp"][value="ExactGlobe"]:checked) [data-not-exact] {
  display: none;
}

/* The modules of Smart Company Flow in their groups: base, large and small. */
.step .group-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.step .group-title:first-of-type {
  margin-top: 0.25rem;
}

/* The modules: every module a row over the full width. The row is the card; the choice (name, price, a line of
   explanation) is the label, "Meer uitleg" and the counts sit under it in the same card. */
.module-list {
  margin-bottom: 0.75em;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.module {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.6em;
  transition: background-color 0.15s, border-color 0.15s;
}

.module:has(.module-choice input:checked) {
  background: var(--green-soft);
  border-color: var(--green);
}

.module-choice {
  padding: 0.9em calc(1rem + 1.25rem + 0.75em) 0.9em 1em;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  cursor: pointer;
}

.module-choice:has(input:disabled) {
  cursor: default;
}

.module-choice .name {
  font-weight: 600;
}

.module-choice small {
  color: var(--muted);
  font-size: 0.8em;
}

.module-choice .short {
  margin-top: 0.4em;
  color: var(--text);
  font-size: 0.9em;
  line-height: 1.5;
}

/* "Meer uitleg": opens and closes without script, under the line of explanation. */
.module-more {
  margin: -0.35em 0 0;
  padding: 0 1em 0.9em;
  font-size: 0.9em;
}

.module-more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--accent);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.module-more summary::-webkit-details-marker {
  display: none;
}

.module-more summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-bottom: 0.2em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.module-more[open] summary::after {
  margin: 0.2em 0 0;
  transform: rotate(-135deg);
}

.module-more .checks {
  margin: 0.75em 0;
}

.module-more .needs {
  margin: 0 0 0.6em;
  color: var(--muted);
}

/* The counts of a module: only when it is chosen (pricing.js sends them only then). */
.module-numbers {
  padding: 0.9em 1em 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em 1.5em;
  border-top: 1px solid var(--line);
}

.module:not(.general):not(:has(.module-choice input:checked)) .module-numbers {
  display: none;
}

.module-numbers .number-field {
  flex: 1 1 14em;
  margin: 0;
}

.module-numbers .number-field small {
  color: var(--muted);
  font-size: 0.85em;
  line-height: 1.4;
}

/* The input under its explanation, in one line with the input of the field next to it. */
.module-numbers .number-field input {
  margin-top: auto;
}

.module.general .module-numbers {
  border-top: 0;
}
