/* Straven rekentool — alle waarden komen uit het originele ontwerp.
   Niets hierin is afgerond of benaderd. */

.strv-calc {
  --strv-ink: #0B1118;
  --strv-light: #F7F7F5;
  --strv-accent: #315CFF;
  --strv-line: #1D242E;
  --strv-line-2: #2A303A;
  --strv-grey: #8A929C;
  --strv-grey-dim: #5E6670;
  --strv-grey-soft: #B4BAC2;
  --strv-ease: cubic-bezier(.16, 1, .3, 1);

  box-sizing: border-box;
  background: rgba(14, 20, 28, .78);
  color: var(--strv-light);
  border: 1px solid var(--strv-line);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 40px 90px -42px rgba(0, 0, 0, .72);
  transition: border-color 520ms var(--strv-ease);
  font-family: Inter, system-ui, sans-serif;
  max-width: 1140px;
  margin: 0 auto;
}
.strv-calc:hover { border-color: var(--strv-line-2); }
.strv-calc *, .strv-calc *::before, .strv-calc *::after { box-sizing: border-box; }

/* kop */
.strv-calc__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap;
  padding: 13px clamp(18px, 5vw, 32px);
  border-bottom: 1px solid var(--strv-line);
}
.strv-calc__kicker { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.strv-calc__sub { font-size: 12px; color: var(--strv-grey); }

/* invoer */
.strv-calc__inputs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  border-bottom: 1px solid var(--strv-line);
}
.strv-calc__field {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px clamp(18px, 4vw, 26px) 22px;
  box-shadow: -1px 0 0 var(--strv-line), 0 -1px 0 var(--strv-line);
  transition: background 420ms var(--strv-ease);
}
.strv-calc__field:hover { background: rgba(247, 247, 245, .045); }
.strv-calc__inputs > .strv-calc__field:first-child { padding-left: clamp(18px, 5vw, 32px); }
.strv-calc__inputs > .strv-calc__field:last-child { padding-right: clamp(18px, 5vw, 32px); }

.strv-calc__label {
  display: flex; align-items: center; height: 15px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--strv-grey);
}
.strv-calc__label--split { justify-content: space-between; gap: 12px; }
.strv-calc__labelVal { font-family: Manrope, sans-serif; font-weight: 700; font-size: 12px; color: var(--strv-light); letter-spacing: 0; }
.strv-calc__control { display: flex; align-items: center; height: 46px; position: relative; }

/* AANGEPAST t.o.v. de bron (verzoek 27 aug 2026): invulknopjes rechts in de
   velden, zodat zichtbaar is dat je hier zelf iets invult. Gedrag in
   straven.js (klik = stapje op of neer, leeg veld start op het voorbeeld). */
.strv-calc__stap {
  position: absolute; right: 1px; top: 1px; bottom: 1px;
  display: flex; flex-direction: column; width: 26px;
  border-left: 1px solid var(--strv-line-2);
  border-radius: 0 8px 8px 0; overflow: hidden;
}
.strv-calc__stapKnop {
  flex: 1; border: 0; background: none; color: var(--strv-grey);
  display: flex; align-items: center; justify-content: center;
  line-height: 1; cursor: pointer; padding: 0;
  transition: color 200ms, background 200ms;
}
.strv-calc__stapKnop svg { width: 9px; height: 9px; display: block; }
.strv-calc__stapKnop:hover { color: var(--strv-light); background: rgba(247, 247, 245, .07); }
.strv-calc__stapKnop + .strv-calc__stapKnop { border-top: 1px solid var(--strv-line-2); }
.strv-calc__control input.strv-calc__num { padding-right: 34px; }
.strv-calc__control .strv-calc__euro { padding-right: 34px; }

.strv-calc__num,
.strv-calc__euro {
  width: 100%;
  background: rgba(11, 17, 24, .5);
  border: 1px solid var(--strv-line-2);
  border-radius: 9px;
  padding: 11px 14px;
  color: var(--strv-light);
  font-family: Manrope, sans-serif; font-weight: 700; font-size: 17px;
  transition: border-color 320ms;
}
.strv-calc__num:focus { outline: none; border-color: var(--strv-accent); }
.strv-calc__euro { display: flex; align-items: baseline; gap: 7px; }
.strv-calc__euro:hover { border-color: var(--strv-light); }
.strv-calc__euro:focus-within { border-color: var(--strv-accent); }
.strv-calc__euroSign { font-family: Manrope, sans-serif; font-weight: 700; font-size: 17px; color: var(--strv-grey); }
.strv-calc__euro input {
  width: 100%; background: none; border: 0; padding: 0; color: var(--strv-light);
  font-family: Manrope, sans-serif; font-weight: 700; font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.strv-calc__euro input:focus { outline: none; }

/* slider */
.strv-calc__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; margin: 0; height: 4px; border-radius: 999px; outline: none;
  background: rgba(247, 247, 245, .16);
}
.strv-calc__range::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: transparent; }
.strv-calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; margin-top: -5.5px; border-radius: 50%;
  background: var(--strv-light); border: 0; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(49, 92, 255, .28);
  transition: box-shadow 320ms var(--strv-ease);
}
.strv-calc__range:hover::-webkit-slider-thumb,
.strv-calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(49, 92, 255, .34); }
.strv-calc__range::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(247, 247, 245, .16); }
.strv-calc__range::-moz-range-thumb {
  width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--strv-light);
  box-shadow: 0 0 0 4px rgba(49, 92, 255, .28); cursor: pointer;
}

/* aannames */
.strv-calc__assumeWrap { border-bottom: 1px solid var(--strv-line); }
.strv-calc__assumeBtn {
  width: 100%; background: none; border: 0; cursor: pointer;
  padding: 14px clamp(18px, 5vw, 32px);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--strv-grey);
  font-family: Inter, sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  transition: color 420ms var(--strv-ease);
}
.strv-calc__assumeBtn:hover { color: var(--strv-light); }
.strv-calc__sign { font-size: 15px; line-height: 1; }
.strv-calc__assume { padding: 0 clamp(18px, 5vw, 32px) 20px; }
.strv-calc__assumeRow { display: flex; flex-wrap: wrap; gap: 18px 34px; }
.strv-calc__assumeField { display: flex; align-items: center; gap: 13px; font-size: 12.5px; color: var(--strv-grey); }
.strv-calc__pct { display: flex; align-items: center; gap: 7px; }
.strv-calc__pct input {
  width: 74px; background: rgba(11, 17, 24, .5); border: 1px solid var(--strv-line-2);
  border-radius: 8px; padding: 9px 10px; font-size: 14px; color: var(--strv-light);
  font-family: Inter, sans-serif; font-variant-numeric: tabular-nums; text-align: right;
  transition: border-color 320ms;
}
.strv-calc__pct input:focus { outline: none; border-color: var(--strv-accent); }

/* uitkomst */
.strv-calc__out {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  border-bottom: 1px solid var(--strv-line);
}
.strv-calc__cell {
  padding: 24px clamp(18px, 4vw, 26px) 26px;
  box-shadow: -1px 0 0 var(--strv-line), 0 -1px 0 var(--strv-line);
  transition: background 420ms var(--strv-ease);
}
.strv-calc__cell:hover { background: rgba(247, 247, 245, .045); }
.strv-calc__out > .strv-calc__cell:first-child { padding-left: clamp(18px, 5vw, 32px); }
.strv-calc__out > .strv-calc__cell:last-child { padding-right: clamp(18px, 5vw, 32px); }
.strv-calc__val {
  font-family: Manrope, sans-serif; font-weight: 700;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: .95;
  font-size: clamp(26px, 2.6vw, 38px);
}
.strv-calc__val--sm { font-size: clamp(18px, 1.85vw, 26px); }
.strv-calc__val--accent { color: var(--strv-accent); }
.strv-calc__cap { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--strv-grey); margin-top: 11px; }
.strv-calc__cap--light { color: var(--strv-light); }

/* omzet + voetnoten */
.strv-calc__revenue {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  padding: 18px clamp(18px, 5vw, 32px) 20px;
  background: rgba(11, 17, 24, .5);
  font-size: 12.5px; color: var(--strv-grey);
}
.strv-calc__revenueVal {
  font-family: Manrope, sans-serif; font-weight: 700; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; font-size: 23px; color: var(--strv-light);
}
.strv-calc__notice {
  padding: 14px clamp(18px, 5vw, 32px) 16px;
  border-top: 1px solid var(--strv-line);
  background: rgba(49, 92, 255, .09);
  font-size: 12.5px; line-height: 1.6; color: var(--strv-grey-soft);
}
.strv-calc__foot {
  padding: 14px clamp(18px, 5vw, 32px) 16px;
  border-top: 1px solid var(--strv-line);
  font-size: 11.5px; line-height: 1.6; color: var(--strv-grey-dim);
}

/* cta + formulier */
.strv-calc__ctaWrap { padding: 0 clamp(18px, 5vw, 32px) 20px; }
.strv-calc__cta {
  background: none; border: 1px solid var(--strv-line-2); border-radius: 9px;
  padding: 13px 19px; cursor: pointer; color: var(--strv-light);
  font-family: Manrope, sans-serif; font-weight: 600; font-size: 13.5px;
  display: flex; align-items: center; gap: 10px;
  transition: border-color 420ms var(--strv-ease);
}
.strv-calc__cta:hover { border-color: var(--strv-light); }
.strv-calc__arrow { display: inline-block; transition: transform 420ms var(--strv-ease); }
.strv-calc__cta:hover .strv-calc__arrow { transform: translateX(6px); }

.strv-calc__form { display: flex; flex-direction: column; gap: 12px; padding: 0 clamp(18px, 5vw, 32px) 22px; position: relative; }
.strv-calc__gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.strv-calc__formLabel { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--strv-grey); }
.strv-calc__formRow { display: flex; gap: 12px; flex-wrap: wrap; }
.strv-calc__form input[type=email] {
  flex: 1 1 220px; min-width: 0;
  background: rgba(11, 17, 24, .5); border: 1px solid var(--strv-line-2); border-radius: 9px;
  padding: 13px 15px; font-size: 14.5px; color: var(--strv-light);
  font-family: Inter, sans-serif; transition: border-color 320ms;
}
.strv-calc__form input[type=email]:focus { outline: none; border-color: var(--strv-accent); }
.strv-calc__form button[type=submit] {
  background: var(--strv-light); color: var(--strv-ink);
  border: 1px solid var(--strv-light); border-radius: 9px;
  padding: 13px 22px; cursor: pointer; white-space: nowrap;
  font-family: Manrope, sans-serif; font-weight: 600; font-size: 13.5px;
  transition: background 380ms, border-color 380ms;
}
.strv-calc__form button[type=submit]:hover { background: #C9CFD5; border-color: #C9CFD5; }
.strv-calc__form button[type=submit][disabled] { opacity: .55; cursor: default; }
.strv-calc__err { font-size: 12.5px; line-height: 1.6; color: #F0A79B; }

.strv-calc__sent { padding: 20px clamp(18px, 5vw, 32px) 24px; border-top: 1px solid var(--strv-line); }
.strv-calc__sentKicker { font-family: Manrope, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .2em; color: var(--strv-accent); margin-bottom: 12px; }
.strv-calc__sentTitle { font-family: Manrope, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -.02em; margin-bottom: 9px; }
.strv-calc__sentBody { font-size: 13.5px; line-height: 1.65; color: var(--strv-grey); margin: 0 0 18px; max-width: 52ch; }
.strv-calc__sentLink {
  display: inline-block; text-decoration: none;
  background: none; color: var(--strv-light);
  border: 1px solid var(--strv-line-2); border-radius: 9px; padding: 12px 19px;
  font-family: Manrope, sans-serif; font-weight: 600; font-size: 13px;
  transition: border-color 420ms var(--strv-ease);
}
.strv-calc__sentLink:hover { border-color: var(--strv-light); }

/* ---------------------------------------------------------------------------
 * AANGEPAST t.o.v. de modelbron (27 aug 2026): tweekoloms-indeling.
 * Invoer links, resultaat rechts met de omzet als climax. De vorm volgt de
 * containerbreedte: breed (branchepagina) twee kolommen, smal (hero-kolom,
 * mobiel) gestapeld met het resultaat direct onder de invoer.
 * ------------------------------------------------------------------------- */
.strv-calc { container-type: inline-size; }

.strv-calc__romp { border-bottom: 1px solid var(--strv-line); }

.strv-calc__invoer {
  padding: 12px clamp(18px, 4cqw, 28px) 0;
  display: flex; flex-direction: column;
}
.strv-calc__invoer .strv-calc__field {
  padding: 0 0 9px;
  gap: 7px;
  box-shadow: none;
}
.strv-calc__invoer .strv-calc__field:hover { background: none; }
.strv-calc__invoer .strv-calc__assumeWrap {
  border-bottom: 0; border-top: 1px solid var(--strv-line);
  margin: 2px calc(-1 * clamp(18px, 4cqw, 28px)) 0;
}
.strv-calc__invoer .strv-calc__assumeBtn { padding: 10px clamp(18px, 4cqw, 28px); }
.strv-calc__invoer .strv-calc__assume { padding: 0 clamp(18px, 4cqw, 28px) 16px; }

.strv-calc__resultaat {
  padding: 16px clamp(18px, 4.5cqw, 32px) 18px;
  border-top: 1px solid var(--strv-line);
  background: rgba(11, 17, 24, .35);
  display: flex; flex-direction: column; justify-content: center;
}
.strv-calc__resKop { font-size: 13px; color: var(--strv-grey); }
.strv-calc__omzet {
  font-family: Manrope, sans-serif; font-weight: 700;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.05;
  font-size: clamp(36px, 10cqw, 70px);
  margin: 5px 0 3px;
}
.strv-calc__klantenRegel { display: flex; align-items: baseline; gap: 9px; }
.strv-calc__klantenGetal {
  font-family: Manrope, sans-serif; font-weight: 700; letter-spacing: -.02em;
  font-size: 27px; color: var(--strv-accent); font-variant-numeric: tabular-nums;
}
.strv-calc__klantenCap {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--strv-light);
}
.strv-calc__trap {
  display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 5cqw, 44px);
  border-top: 1px solid var(--strv-line);
  margin-top: 13px; padding-top: 12px;
}
.strv-calc__trapVal {
  font-family: Manrope, sans-serif; font-weight: 700; letter-spacing: -.02em;
  font-size: 24px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.strv-calc__trap .strv-calc__cap { margin-top: 6px; }
.strv-calc__resultaat .strv-calc__notice {
  margin: 14px calc(-1 * clamp(18px, 4.5cqw, 32px)) -22px;
}

.strv-calc__voet {
  display: flex; flex-wrap: wrap; gap: 12px 22px;
  align-items: center; justify-content: space-between;
  padding: 10px clamp(18px, 4cqw, 28px) 12px;
}
.strv-calc__voet .strv-calc__foot { flex: 1 1 340px; padding: 0; border-top: 0; }
.strv-calc__voet .strv-calc__ctaWrap { padding: 0; }

@container (min-width: 560px) {
  .strv-calc__romp { display: grid; grid-template-columns: 1fr 1.3fr; align-items: stretch; }
  .strv-calc__resultaat { border-top: 0; border-left: 1px solid var(--strv-line); }
}

/* Lege stand (27 aug 2026): tot branche, aantal en klantwaarde alle drie
   gekozen zijn, tonen de uitkomsten een rustig afgerond invulbalkje. */
.strv-calc__leeg {
  display: inline-block;
  height: .5em;
  border-radius: 999px;
  background: #242C37;
  vertical-align: baseline;
}

.strv-calc :focus-visible { outline: 2px solid var(--strv-accent); outline-offset: 3px; }
.strv-calc [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .strv-calc, .strv-calc * { transition-duration: 1ms !important; }
}
