/* ==========================================================
   WAT KOST HET? · Repetive.ai
   Cost-first page. Three hero treatments share these tokens.
   Calculator + chart styling is reused from roi.css.
   ========================================================== */

/* ---------- COST HERO (shared shell) ---------- */
.kst-hero {
  position: relative;
  padding: 104px 56px 92px;
  background: linear-gradient(180deg, #FAFAF8 0%, #F4F1ED 100%);
  overflow: hidden;
}
.kst-hero::before {
  content: '';
  position: absolute;
  right: -200px; top: -160px;
  width: 700px; height: 700px;
  background: radial-gradient(circle at 50% 50%, rgba(248,60,114,0.16), rgba(248,60,114,0) 60%);
  pointer-events: none;
}
.kst-hero::after {
  content: '';
  position: absolute;
  left: -200px; bottom: -240px;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(77,1,180,0.10), rgba(77,1,180,0) 60%);
  pointer-events: none;
}
.kst-hero-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 2; }

.kst-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 26px;
}
.kst-eyebrow .bar { width: 28px; height: 2px; background: var(--grad-line); border-radius: 1px; }

.kst-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.98; letter-spacing: -0.032em;
  color: var(--ink-1); margin: 0 0 22px; text-wrap: balance;
}
.kst-hero h1 .grad {
  background: var(--grad-full);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kst-hero .kst-lede {
  font-size: 20px; line-height: 1.5; color: var(--ink-3);
  max-width: 600px; margin: 0;
}
.kst-hero .kst-lede strong { color: var(--ink-1); font-weight: 600; }

/* Footnote with the asterisk explanation */
.kst-foot {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  max-width: 640px;
}
.kst-foot .star {
  font-family: var(--font-display); font-weight: 700;
  color: var(--brand-pink); font-size: 18px; line-height: 1.2;
}
.kst-foot p {
  margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-3);
}
.kst-foot p strong { color: var(--ink-1); font-weight: 600; }

/* shared "exclusief BTW" micro note */
.kst-btw {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-5);
}

/* =========================================================
   VARIANT A · two big price cards
   ========================================================= */
.kst-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  margin-top: 52px;
}
.kst-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 26px; padding: 38px 38px 34px;
  box-shadow: 0 24px 60px rgba(28,28,28,0.08), 0 2px 6px rgba(28,28,28,0.04);
}
.kst-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent, var(--grad-warm));
}
.kst-card.is-monthly { --accent: var(--grad-cool); }
.kst-card .kst-card-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 22px;
}
.kst-card .kst-card-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--grad-warm)); }
.kst-card .kst-price {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(54px, 6vw, 82px); line-height: 0.94;
  letter-spacing: -0.04em; color: var(--ink-1);
  font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; gap: 4px;
}
.kst-card .kst-price .star { font-size: 0.42em; color: var(--brand-pink); font-weight: 700; margin-top: 0.15em; }
.kst-card .kst-price .per {
  font-size: 0.30em; font-weight: 600; color: var(--ink-4);
  letter-spacing: -0.01em; align-self: flex-end; margin-bottom: 0.5em;
}
.kst-card .kst-card-desc {
  font-size: 15px; line-height: 1.55; color: var(--ink-3);
  margin: 20px 0 0; max-width: 360px;
}
.kst-card .kst-card-desc strong { color: var(--ink-1); font-weight: 600; }

/* =========================================================
   VARIANT B · one-line price flow / timeline
   ========================================================= */
.kst-flow {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch;
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(28,28,28,0.08), 0 2px 6px rgba(28,28,28,0.04);
}
.kst-flow-step { padding: 44px 48px; position: relative; }
.kst-flow-step .l {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 16px; display: flex; align-items: center; gap: 9px;
}
.kst-flow-step .l .idx {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--grad-warm);
}
.kst-flow-step.is-monthly .l .idx { background: var(--grad-cool); }
.kst-flow-step .price {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(46px, 5vw, 72px); line-height: 0.94;
  letter-spacing: -0.04em; color: var(--ink-1);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: flex-start; gap: 3px;
}
.kst-flow-step .price .star { font-size: 0.42em; color: var(--brand-pink); font-weight: 700; margin-top: 0.12em; }
.kst-flow-step .price .per { font-size: 0.30em; font-weight: 600; color: var(--ink-4); align-self: flex-end; margin-bottom: 0.5em; }
.kst-flow-step .sub { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 320px; }
.kst-flow-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 6px; background: var(--canvas-alt);
  border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline);
  font-family: var(--font-display); color: var(--ink-4);
}
.kst-flow-arrow .glyph {
  font-size: 26px; color: var(--brand-pink); line-height: 1;
}
.kst-flow-arrow .lbl {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 8px; writing-mode: vertical-rl; transform: rotate(180deg);
}

/* =========================================================
   VARIANT C · editorial statement
   ========================================================= */
.kst-statement {
  margin-top: 30px; max-width: 1000px;
}
.kst-statement p {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.2vw, 42px); line-height: 1.28;
  letter-spacing: -0.018em; color: var(--ink-2); margin: 0;
  text-wrap: pretty;
}
.kst-statement .big {
  font-weight: 800; letter-spacing: -0.04em; color: var(--ink-1);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  display: inline-block; line-height: 1.0;
  padding: 0.22em 0.05em 0.26em; margin: -0.22em -0.01em -0.26em;
  vertical-align: baseline;
}
.kst-statement .big.once {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kst-statement .big.monthly {
  background: var(--grad-cool);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kst-statement .star { font-size: 0.5em; color: var(--brand-pink); font-weight: 700; vertical-align: super; line-height: 0; }
.kst-statement-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px;
  max-width: 1000px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline);
}
.kst-statement-meta .item { flex: 0 0 auto; }
/* statement variant: align footnote to the same wide column as the statement */
.kst-hero-statement .kst-foot { max-width: 1000px; }
/* "maandelijks opzegbaar" sticker */
.kst-stamp {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: -0.005em; color: var(--ink-1);
  padding: 9px 18px 9px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--hairline);
  box-shadow: 0 10px 28px rgba(77,1,180,0.10), 0 2px 6px rgba(28,28,28,0.05);
}
.kst-stamp .ico {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-cool); color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.kst-statement-meta .item .l {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px;
}
.kst-statement-meta .item .v {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-1);
  display: inline-flex; align-items: center; gap: 10px;
}
.kst-statement-meta .item .v::before {
  content: '✓'; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-cool); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

/* =========================================================
   "WAT LEVERT HET OP?" section intro
   ========================================================= */
.kst-roi-intro {
  max-width: 1320px; margin: 0 auto;
  padding: 0 0 8px;
}
.kst-roi-intro h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.04;
  letter-spacing: -0.026em; color: var(--ink-1); margin: 0 0 16px; text-wrap: balance;
}
.kst-roi-intro h2 .grad {
  background: var(--grad-full);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.kst-roi-intro p {
  font-size: 18px; line-height: 1.55; color: var(--ink-3); max-width: 620px; margin: 0;
}

/* =========================================================
   "WAT LEVERT HET OP?" · compact / subtle business case
   ========================================================= */
.kst-calc { padding: 72px 56px 84px; }
.kst-roi-intro h2 { font-size: clamp(26px, 3vw, 38px); }
.kst-roi-intro p { font-size: 16px; }

.kst-calc-body {
  max-width: 1320px; margin: 40px auto 0;
  display: flex; flex-direction: column; gap: 18px;
}

/* single FTE control */
.kst-control {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 18px; padding: 24px 26px 20px;
}
/* merged panel: slider strip lives inside the result hero */
.kst-panel-control { margin-bottom: 2px; }
.kst-panel .kst-control-value { background: #fff; }
.kst-panel .kst-field-note { color: var(--ink-3); }
.kst-panel-sep {
  border: 0; height: 1px; background: rgba(28,28,28,0.10);
  margin: 22px 0 24px;
}
.kst-control-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px;
}
.kst-control-label {
  font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink-1); letter-spacing: -0.005em;
}
.kst-control-value {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-1);
  font-variant-numeric: tabular-nums; background: var(--surface-tint-purple);
  padding: 3px 12px; border-radius: 999px; letter-spacing: -0.01em; white-space: nowrap;
}
.kst-field-note {
  font-family: var(--font-body); font-size: 12.5px; line-height: 1.45;
  color: var(--ink-4); margin: 12px 0 0;
}

/* subtler, smaller result hero inside the business case */
.kst-calc .roi-result-hero { padding: 30px 30px 28px; border-radius: 22px; margin-bottom: 18px; box-shadow: 0 14px 36px rgba(248,60,114,0.07); }
/* open / borderless overview — no card chrome, more breathing room */
.kst-calc .kst-panel-open {
  background: transparent; border: 0; box-shadow: none;
  padding: 0; border-radius: 0; overflow: visible; margin-bottom: 0;
}
.kst-calc .kst-panel-open::before,
.kst-calc .kst-panel-open::after { display: none; }
.kst-panel-open .kst-control-value { background: var(--surface-tint-purple); }
/* compact, subtle chart folded into the overview */
.kst-bc-grid { display: flex; flex-direction: column; gap: 26px; }
.kst-bc-chart { display: flex; flex-direction: column; padding-top: 26px; border-top: 1px solid var(--hairline); }
.kst-bc-chart .roi-chart-head { margin-bottom: 12px; }
.kst-bc-chart .roi-chart-head h3 { font-size: 17px; }
.kst-bc-chart .roi-chart-head p { font-size: 12px; margin-top: 2px; }
.kst-bc-chart .roi-chart-legend .item { font-size: 11px; }
.kst-bc-chartwrap { height: 260px; }

@media (min-width: 1000px) {
  .kst-bc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 52px; align-items: start;
  }
  .kst-bc-chart { padding-top: 0; border-top: 0; }
  .kst-bc-chartwrap { height: 330px; }
}
.kst-calc .roi-result-hero .eye { margin-bottom: 20px; }
.kst-calc .roi-result-stat .v { font-size: clamp(26px, 2.2vw, 46px); }
.kst-calc .roi-result-hero hr { margin: 24px 0 20px; }
.kst-calc .roi-result-mini .v { font-size: 19px; }
.kst-calc .roi-perAgent { gap: 12px; margin-bottom: 18px; }
.kst-calc .roi-perAgent-card { padding: 18px 18px 16px; border-radius: 16px; }
.kst-calc .roi-perAgent-card .v { font-size: 21px; }
.kst-calc .roi-chart-card { padding: 26px 26px 22px; border-radius: 20px; }
.kst-calc .roi-chart-head h3 { font-size: 19px; }

/* =========================================================
   REFERENCE CARDS · use case + client case
   (adapted from the kennisbank "verder lezen" pattern)
   ========================================================= */
.kst-refs {
  position: relative; background: var(--canvas-alt);
  border-top: 1px solid var(--hairline);
  padding: 84px 56px 92px; overflow: hidden;
}
.kst-refs::before {
  content: ''; position: absolute; top: -140px; right: -90px;
  width: 480px; height: 480px; pointer-events: none;
  background: radial-gradient(circle, rgba(141,13,156,0.10), transparent 70%);
}
.kst-refs-inner { position: relative; max-width: 1080px; margin: 0 auto; }
.kst-refs .eyebrow-big {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px;
}
.kst-refs .eyebrow-big .bar { width: 28px; height: 2px; background: var(--grad-line); border-radius: 2px; }
.kst-refs-lede {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25;
  letter-spacing: -0.014em; color: var(--ink-1); margin: 0 0 34px; max-width: 720px; text-wrap: pretty;
}
.kst-rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.kst-rel-card {
  --accent: var(--grad-warm); --accent-color: var(--tint-orange); --accent-soft: var(--surface-tint-orange);
  display: flex; flex-direction: column; gap: 12px; position: relative; isolation: isolate;
  background: var(--surface); border: 1px solid var(--ink-7); border-radius: var(--r-2xl);
  padding: 26px 28px 22px; text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), box-shadow .38s, border-color .38s;
}
.kst-rel-card.is-client { --accent: var(--grad-cool); --accent-color: var(--brand-purple); --accent-soft: var(--surface-tint-purple); }
.kst-rel-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.kst-rel-card:hover::before { transform: scaleX(1); }
.kst-rel-card::after {
  content: ''; position: absolute; right: -70px; top: -70px; width: 180px; height: 180px; z-index: -1;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity .45s;
}
.kst-rel-card:hover::after { opacity: .8; }
.kst-rel-card:hover { transform: translateY(-4px); box-shadow: 0 26px 52px -30px rgba(28,28,28,0.42); border-color: var(--ink-6); }
.kst-rel-kind {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-color);
}
.kst-rel-kind .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kst-rel-title {
  font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.24;
  color: var(--ink-1); letter-spacing: -0.012em; text-wrap: pretty;
  padding-left: 15px; border-left: 3px solid var(--accent-color);
}
.kst-rel-one {
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.56; color: var(--ink-3); margin: 0;
}
/* the result metric badge */
.kst-rel-metric {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-top: 4px; padding: 12px 16px; border-radius: 14px;
  background: var(--accent-soft); align-self: flex-start;
}
.kst-rel-metric .num {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  letter-spacing: -0.02em; color: var(--accent-color); font-variant-numeric: tabular-nums;
}
.kst-rel-metric .lbl { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--accent-color); }
.kst-rel-foot {
  margin-top: 4px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.kst-rel-tag {
  font-family: var(--font-display); font-size: 12px; font-weight: 600; padding: 0;
  border-radius: 0; background: none; color: var(--ink-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58%;
}
.kst-rel-go {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.kst-rel-go .arrow {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ink-7);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; color: var(--ink-2);
  transition: transform .38s cubic-bezier(.2,.8,.2,1), background .38s, color .38s, border-color .38s;
}
.kst-rel-card:hover .kst-rel-go .arrow { background: var(--accent); color: #fff; border-color: transparent; transform: translateX(3px); }

.kst-refs-more {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap;
}
.kst-refs-more .lbl {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); margin-right: 4px;
}
.kst-more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color .2s;
}
.kst-more-link .arr { color: var(--ink-5); transition: transform .2s, color .2s; }
.kst-more-link:hover { color: var(--ink-1); }
.kst-more-link:hover .arr { transform: translateX(3px); color: var(--brand-orange); }
.kst-more-sep { color: var(--ink-6); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .kst-hero { padding: 72px 28px 64px; }
  .kst-cards { grid-template-columns: 1fr; gap: 16px; }
  .kst-flow { grid-template-columns: 1fr; }
  .kst-flow-arrow { flex-direction: row; border-left: 0; border-right: 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 12px; }
  .kst-flow-arrow .glyph { transform: rotate(90deg); }
  .kst-flow-arrow .lbl { writing-mode: horizontal-tb; transform: none; margin: 0 0 0 8px; }
  .kst-refs { padding: 64px 28px 72px; }
  .kst-calc { padding: 64px 28px 72px; }
  .kst-rel-grid { grid-template-columns: 1fr; }
  .kst-calc .roi-calc-inner { grid-template-columns: 1fr; }
  .kst-statement p { font-size: clamp(22px, 4.4vw, 34px); }
  .kst-statement-meta { gap: 22px 28px; }
}
@media (max-width: 600px) {
  .kst-hero { padding: 52px 20px 52px; }
  .kst-eyebrow { margin-bottom: 16px; }
  .kst-card { padding: 28px 24px; border-radius: 22px; }
  .kst-flow-step { padding: 32px 26px; }
  .kst-refs { padding: 56px 20px 64px; }
  .kst-calc { padding: 56px 20px 64px; }
  .kst-more-sep { display: none; }
  /* statement variant: tighter + smaller on phones */
  .kst-statement { margin-top: 12px; }
  .kst-statement p { font-size: 21px; line-height: 1.34; }
  .kst-statement-meta { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  /* business case: keep blocks side by side on mobile */
  .kst-calc .roi-result-hero .primary { grid-template-columns: 1fr 1fr; gap: 16px; }
  .kst-calc .roi-result-hero .secondary { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .kst-calc .roi-result-stat .v { font-size: 25px; }
  .kst-calc .roi-result-mini .v { font-size: 16px; }
  .kst-calc .roi-result-mini .l { letter-spacing: 0.04em; }
  .kst-bc-chartwrap { height: 220px; }
}

/* Kosten-kruisverwijzing · subtiele link in de footnote naar de kennisbank-blog */
.kst-foot-link {
  display: block; margin-top: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  color: var(--brand-purple); text-decoration: none;
}
.kst-foot-link:hover { text-decoration: underline; }
/* footnote staat onderin de hero; iets minder onderluchting zodat de link niet
   in een grote leegte hangt vlak boven de calculator */
.kst-hero-statement { padding-bottom: 48px; }

/* zodat #opbrengst-deeplink niet half onder de header valt */
#opbrengst { scroll-margin-top: 90px; }
