/* Eenmanszaak of BV?: on top of loon-of-bv.css. Only what this calculator adds. */

/* The one cost you can change, at the bottom of the folded-away amounts */
.extra { display: grid; grid-template-columns: minmax(0, 1fr) 136px; gap: 16px; align-items: center; max-width: 520px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.extra label { font-size: 14px; line-height: 20px; color: var(--muted); }
.extra label strong { display: block; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ink); }
@media (min-width: 768px) { .extra { grid-template-columns: minmax(0, 1fr) 160px; } }

/* ---------- A BV pays off: the number, two bars, three ways to check it ---------- */
.result--bv .step__q { font-size: 28px; line-height: 34px; }
.result--bv .gain { margin: 2px 0; font-size: 58px; line-height: 64px; }
.result--bv .step__help { max-width: 460px; font-size: 16px; line-height: 24px; color: var(--muted-2); }
.res-how { margin-top: 10px; font-size: 16px; line-height: 24px; }
/* The card with Jean stays for someone who wants to switch (result--talk); the calendar opens for everyone */
.result--bv:not(.result--talk) .result-next { display: none; }
@media (min-width: 768px) {
  .intake form:has(.result--bv:not([hidden])) { max-width: 960px; }
  .result--bv { display: block; }
  .result--bv .result__main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 64px; }
  .result--bv .result__main > * { grid-column: 1 / -1; }
  .result--bv .result__main > .step__q, .result--bv .result__main > .step__help { grid-column: 1; }
  .result--bv .result__main > .bars { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }
  .result--bv .step__q { font-size: 38px; line-height: 46px; }
  .result--bv .gain { font-size: 88px; line-height: 94px; }
  .result--talk .result__side { max-width: 480px; }
}

.bars { margin-top: 28px; }
.bars__title { margin-bottom: 14px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--muted-2); text-align: center; }
.bars__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.bar { text-align: center; }
.bar__amt { font-family: var(--display); font-size: 20px; line-height: 26px; letter-spacing: -.5px; color: var(--ink); }
.bar__col { display: flex; flex-direction: column; margin-top: 8px; border-radius: 12px 12px 0 0; overflow: hidden; }
.bar__base { background: #ffdccf; }
.bar--ez .bar__base { background: #d9dce8; }
.bar__extra { display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 14px; line-height: 18px; font-weight: 800; }
.bar__label { padding-top: 8px; border-top: 2px solid var(--ink); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }

.ask2 { margin-top: 64px; }
.ask2__q { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 30px; letter-spacing: -.6px; color: var(--ink); text-wrap: balance; }
.ask2__sub { margin-top: 6px; font-size: 16px; line-height: 24px; color: var(--muted-2); }
.ask2__list { display: grid; gap: 12px; margin-top: 16px; }
.ask2__talk { margin-top: 20px; font-size: 15px; line-height: 22px; color: var(--muted-2); }
.ask2__talk .text-btn { font-size: 15px; line-height: 22px; text-align: left; }
.ask-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; width: 100%; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: translate .2s, box-shadow .2s; }
.ask-card:hover { translate: 0 -3px; box-shadow: 0 0 0 1px var(--line), 0 18px 32px -12px rgba(16, 24, 40, .2); }
.ask-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ask-card__pic { position: relative; display: block; min-height: 120px; overflow: hidden; background: var(--blue-soft); }
.ask-card__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.ask-card__pic .paper { position: absolute; left: 50%; top: 14px; translate: -50%; }
.ask-card__q { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-family: var(--display); font-size: 17px; line-height: 22px; letter-spacing: -.4px; text-wrap: balance; }
.ask-card__q small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 14px; line-height: 19px; letter-spacing: 0; font-weight: 500; color: var(--muted-2); }
.ask-card__go { flex: none; width: 18px; height: 18px; color: var(--accent); }
.ask-card__pic img.guide, .pop__pic img.guide { object-fit: contain; object-position: 50% 50%; padding: 8px; }
.pop__pic img.guide { padding: 16px; }

/* Two offers: the detailed calculation (a link) and the guide. A label on each picture says what it is about */
a.ask-card { text-decoration: none; }
.ask-card__tag { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 2px 9px; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgba(16, 24, 40, .08); font-family: var(--sans); font-size: 11px; line-height: 18px; font-weight: 800; color: var(--muted-2); }
.ask-card__meta { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; line-height: 18px; letter-spacing: 0; font-weight: 700; color: var(--ink); }
.ask-card__pic .sheet { position: absolute; left: 50%; top: 30px; translate: -50%; }
.sheet { display: block; width: 92px; height: 122px; padding: 9px; border-radius: 3px; background: #fff; box-shadow: 0 6px 18px rgba(16, 24, 40, .16); rotate: -4deg; }
.sheet b { display: block; font-family: var(--display); font-weight: 400; font-size: 8px; line-height: 10px; color: var(--ink); }
.sheet i { display: flex; justify-content: space-between; margin-top: 6px; }
.sheet em { height: 4px; width: 38px; border-radius: 2px; background: #d9dce8; }
.sheet em + em { width: 18px; background: var(--ink); }
.sheet em.o { background: var(--accent); }
.sheet__bars { display: flex; gap: 7px; align-items: flex-end; justify-content: center; height: 36px; margin-top: 8px; border-bottom: 1px solid var(--ink); }
.sheet__bars s { width: 18px; height: 24px; border-radius: 3px 3px 0 0; background: #d9dce8; }
.sheet__bars s.hi { height: 34px; background: linear-gradient(var(--accent) 0 9px, #ffdccf 9px); }
@media (max-width: 767px) { .ask-card__tag { display: none; } }
@media (min-width: 768px) {
  .ask2__list--two { grid-template-columns: repeat(2, 1fr); }
  .ask-card__pic .sheet { scale: 1.35; transform-origin: 50% 0; top: 26px; }
}

/* The sheet for the accountant in small */
.paper { display: block; width: 100px; height: 132px; padding: 9px; border-radius: 3px; background: #fff; box-shadow: 0 6px 18px rgba(16, 24, 40, .16); rotate: -4deg; }
.paper b { display: block; font-family: var(--display); font-weight: 400; font-size: 8px; line-height: 10px; letter-spacing: 0; color: var(--ink); }
.paper i { display: flex; justify-content: space-between; margin-top: 7px; }
.paper em { height: 4px; width: 42px; border-radius: 2px; background: #d9dce8; }
.paper em + em { width: 22px; background: var(--ink); }
.paper i:nth-of-type(3) em + em { background: var(--accent); }
.paper u { display: block; margin-top: 8px; padding-bottom: 5px; border-bottom: 1px solid #d9dce8; font-family: var(--display); font-size: 8px; line-height: 8px; text-decoration: none; color: var(--accent); }

/* The pop-ups: a sheet from the bottom on a phone, a window on a wide screen */
.pop { width: 100%; max-width: 100%; max-height: 100%; max-height: 94dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; overflow: auto; overscroll-behavior: contain; background: #fff; color: var(--ink); }
.pop::backdrop { background: rgba(8, 16, 56, .55); }
.pop [hidden] { display: none; }
.pop__x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(16, 24, 40, .16); cursor: pointer; }
.pop__x svg { width: 16px; height: 16px; }
.pop__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pop__pic { position: relative; height: 210px; overflow: hidden; background: var(--blue-soft); }
.pop__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.pop__pic .paper { position: absolute; left: 50%; top: 26px; translate: -50%; scale: 1.75; transform-origin: 50% 0; }
.pop__body { padding: 24px 24px 28px; }
.intake form.pop__form { display: block; max-width: none; }
.pop h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 32px; letter-spacing: -.7px; text-wrap: balance; }
.pop h2:focus { outline: none; }
.pop p { margin-top: 8px; font-size: 17px; line-height: 25px; color: var(--muted-2); }
.pop .step__error { margin-top: 10px; font-size: 14px; line-height: 20px; color: #c2401f; }
.pop__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pop .field { margin-top: 18px; padding: 14px 16px; font-size: 17px; line-height: 24px; }
.pop__check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 8px; font-size: 15px; line-height: 20px; cursor: pointer; }
.pop__check input { flex: none; width: 18px; height: 18px; accent-color: var(--ink); }
.pop__send { width: 100%; margin-top: 12px; }
.pop__check ~ .pop__send { margin-top: 10px; }
.pop__send:disabled { opacity: .7; cursor: progress; }
.pop p.pop__fine { margin-top: 10px; text-align: center; font-size: 13px; line-height: 18px; }
.pop__done { padding: 36px 24px 40px; text-align: center; }
.pop__tick { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: #fff; }
.pop__tick svg { width: 28px; height: 28px; }
.pop--text .pop__body { padding-top: 32px; }
.pop--text h2 { padding-right: 48px; }
.sum { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; line-height: 21px; font-variant-numeric: tabular-nums; }
.sum th, .sum td { padding: 9px 0 9px 10px; border-bottom: 1px solid var(--line-2); text-align: right; font-weight: 500; white-space: nowrap; }
.sum tbody th { padding-left: 0; text-align: left; white-space: normal; }
.sum thead th { font-weight: 700; }
.sum tbody tr:last-child th, .sum tbody tr:last-child td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 800; }
.sum tbody tr:last-child td:last-child { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .pop[open] { animation: pop-in .28s cubic-bezier(.22, 1, .36, 1); } @keyframes pop-in { from { opacity: 0; translate: 0 40px; } } }
@media (max-width: 767px) { html:has(.pop[open]) { overflow: hidden; } }
@media (min-width: 768px) {
  .ask2 { margin-top: 96px; }
  .ask2__list { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
  .ask-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .ask-card__pic { height: 190px; }
  .ask-card__pic .paper { scale: 1.45; transform-origin: 50% 0; top: 40px; }
  .ask-card__q { padding: 18px 20px; font-size: 19px; line-height: 25px; }
  .pop { width: 760px; margin: auto; border-radius: 24px; }
  .pop--text { width: 560px; }
  .pop[open]:not(.pop--text) { display: grid; grid-template-columns: 320px minmax(0, 1fr); }
  .pop__pic { height: auto; min-height: 420px; }
  .pop__pic img { position: absolute; inset: 0; }
  .pop__pic .paper { top: 50%; translate: -50% -50%; transform-origin: 50% 50%; }
  .pop__body { padding: 64px 40px 40px; align-self: center; }
  .pop--text .pop__body { padding: 44px 40px 36px; }
}
