/* Loon of eigen BV? — builds on the intake screens in start.css. */

/* Keep Begin close to the short welcome; the explanation remains directly below. */
#calc:has([data-step="intro"]:not([hidden])) .intake-nav { margin-top: 24px; padding-top: 0; }
#calc:has([data-step="intro"][hidden]) .calc-intro-details { display: none; }
.calc-intro-details details { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.calc-intro-details summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.calc-intro-details details .step__note { margin-top: 12px; }
@media (max-width: 767px) {
  .intake:has([data-step="intro"]:not([hidden])) { padding-top: 24px; }
}

.nowrap { white-space: nowrap; }
/* What you gain with a BV, in the colour of the BV bar */
.gain { display: block; margin: 4px 0; font-size: 1.6em; line-height: 1.05; letter-spacing: -.04em; white-space: nowrap; color: var(--accent); }
.step__help strong { color: var(--ink); font-weight: 700; }
.job-choices .choice span { padding: 14px 16px; }
@media (min-width: 600px) { .job-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The line under a BV result, split into short lines so it reads in stages */
.help-line { display: block; }
.help-line + .help-line { margin-top: 10px; }
.help-line--early { font-size: 15px; line-height: 22px; }
.help-line--fine { font-size: 14px; line-height: 20px; }

/* Amount fields: a euro sign inside the field, digits in the display face */
.amount { position: relative; margin-top: 28px; }
.amount > span[aria-hidden] { position: absolute; left: 18px; top: 0; line-height: 62px; font-family: var(--display); font-size: 22px; color: var(--muted); pointer-events: none; }
.amount .field { margin-top: 0; padding-left: 44px; font-family: var(--display); font-size: 24px; line-height: 32px; letter-spacing: -.5px; }
.amount__unit { display: block; margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.amount--sm { margin-top: 0; }
.amount--sm > span[aria-hidden] { left: 14px; line-height: 46px; font-size: 17px; }
.amount--sm .field { padding: 10px 12px 10px 32px; font-size: 18px; line-height: 24px; text-align: right; }

/* Costs: one row per cost, the amount on the right */
.costs { margin-top: 24px; border-top: 1px solid var(--line-2); }
.costs li { display: grid; grid-template-columns: minmax(0, 1fr) 136px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.costs label { font-size: 14px; line-height: 20px; color: var(--muted); }
.costs label strong { display: block; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.costs__total { font-weight: 700; color: var(--ink); }
.costs__total span:last-child { justify-self: end; padding-right: 13px; font-family: var(--display); font-size: 18px; font-weight: 400; }
@media (min-width: 768px) { .costs li { grid-template-columns: minmax(0, 1fr) 160px; } }

.text-btn { margin-top: 16px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px; cursor: pointer; }
.text-btn:hover { text-decoration-color: var(--ink); }

/* Result: the saving is the headline; under it one image, a tear-off page whose content fits the plans answer */
.day { display: flex; align-items: center; gap: 20px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line-2); }
@media (min-width: 768px) { .day { gap: 32px; margin-top: 56px; padding-top: 48px; } }
@media (max-width: 599px) { .day { flex-direction: column; align-items: flex-start; gap: 18px; } }
.leaf { flex: none; min-width: 112px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 8px 16px -6px rgba(16, 24, 40, .14); overflow: hidden; text-align: center; transform: rotate(-3deg); }
@media (min-width: 600px) { .leaf { min-width: 136px; } }
.leaf__top { height: 26px; padding: 0 12px; white-space: nowrap; background: var(--accent); color: #fff; font-size: 13px; line-height: 26px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.leaf__day { display: block; padding: 10px 16px 14px; white-space: nowrap; font-family: var(--display); font-size: 34px; line-height: 40px; letter-spacing: -1.5px; color: var(--ink); }
@media (min-width: 600px) { .leaf__day { font-size: 42px; line-height: 48px; } }
.leaf__sub { display: block; margin-top: -8px; padding: 0 12px 12px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted-2); }
.leaf__sub:empty { display: none; }
/* Five years for someone considering it: one bar per year, the first three lower and lighter */
.day--years { flex-direction: column; align-items: flex-start; gap: 20px; }
.years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; width: 100%; max-width: 420px; height: 170px; }
.years__col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.years__amt { font-size: 13px; line-height: 18px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.years__bar { width: 100%; margin-top: 6px; border-radius: 6px 6px 0 0; background: var(--accent); }
.years__col:nth-child(-n+3) .years__bar { opacity: .45; }
.years__yr { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--muted-2); }
.day__title { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 26px; letter-spacing: -.4px; color: var(--ink); text-wrap: balance; }
@media (min-width: 768px) { .day__title { font-size: 22px; line-height: 28px; } }
.day__text { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--muted-2); }
/* The money flow of their own figures: what the client pays, what goes out, what reaches them */
.flow-more { margin-top: 40px; }
.flow__intro { color: var(--muted-2); }
.flow { margin-top: 12px; border-top: 1px solid var(--line-2); max-width: 520px; }
.flow li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; line-height: 22px; color: var(--ink-3); }
.flow__amt { font-weight: 700; color: var(--ink); white-space: nowrap; text-align: right; }
.flow__you { grid-column: 1 / -1; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.flow__you strong { color: var(--ink); }
.flow .flow__total { border-bottom: 0; font-weight: 700; color: var(--ink); }
.flow__total .flow__amt { font-family: var(--display); font-weight: 400; font-size: 18px; }
.result__main > .text-btn { margin-top: 28px; }

/* Long answers on the optional plans step stay comfortable on a phone. */
.plan-choices .choice span { padding: 14px 16px; font-size: 16px; line-height: 24px; }

/* Result screen in three parts: the answer, how it was worked out, what next.
   On a phone they stack with clear gaps; from 1024px the answer and its workings
   share the left column and what next stays in view on the right. */
.result__more > .text-btn { margin-top: 40px; }
.result__how { margin-top: 40px; }
.result__how .pmore:first-of-type { margin-top: 0; }
.result__how .pmore:last-of-type { border-bottom: 1px solid var(--line-2); }
@media (min-width: 1024px) {
  .intake form:has(.result:not([hidden])) { max-width: 1120px; }
  .result { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "main next" "more next" "how next"; grid-template-rows: auto auto 1fr; align-items: start; column-gap: 80px; }
  .result__main { grid-area: main; }
  .result__more { grid-area: more; }
  .result__more > .text-btn { margin-top: 28px; }
  .result__how { grid-area: how; margin-top: 40px; }
}

.assume { display: grid; gap: 8px; }
.assume li { position: relative; padding-left: 18px; color: var(--ink-3); }
.assume li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--control); }
.assume__fine { margin-top: 14px; color: var(--ink); font-weight: 700; }

/* What next: fits the plans answer; starting straight away is a quiet link, only for someone with an assignment */
.result-next { margin-top: 40px; padding: 24px; border-radius: var(--r-lg); background: var(--surface-2); }
@media (min-width: 1024px) { .result__side { grid-area: next; } .result-next { margin-top: 0; padding: 28px; } }
/* The booking calendar under Jean's card */
.result-agenda:not([hidden]) { margin-top: 16px; min-height: 660px; }
.result-agenda .calendly-inline-widget { height: 660px; }
.result-jean__photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 11%; border-radius: var(--r-md); background: var(--surface); }
/* Who's in the photo: white text with a drop shadow in the bottom-right corner, over a soft dark fade */
.result-jean { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; }
.result-jean::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, rgba(8, 16, 56, 0), rgba(8, 16, 56, .45)); pointer-events: none; }
.result-jean__tag { position: absolute; right: 14px; bottom: 12px; z-index: 1; text-align: right; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 10px rgba(0, 0, 0, .35); }
.result-jean__tag strong { display: block; font-size: 15px; line-height: 20px; font-weight: 800; color: #fff; }
.result-next__q { margin-top: 20px; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 28px; letter-spacing: -.4px; color: var(--ink); text-wrap: balance; }
.result-next__text { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--muted-2); }
.result-next__btn { margin-top: 20px; width: 100%; }
.result-next__fine { margin-top: 10px; text-align: center; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted-2); }
.result-next__start { margin-top: 12px; font-size: 14px; line-height: 20px; }
.result-next__start a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px; }
.result-next__start a:hover { text-decoration-color: var(--ink); }
.result-next__alt { margin-top: 12px; font-size: 14px; line-height: 20px; }
.result-next__alt a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px; }
.result-next__alt a:hover { text-decoration-color: var(--ink); }

/* "aannames" in the line under the result opens the assumptions */
.assume-link { color: inherit; text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px; }
.assume-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* The result by mail: a smaller step than a call, right under the answer. The guide shows as a brochure, so it
   reads as something you get. A dark button, so it holds its own next to the orange one for the call with Jean. */
.mailme { margin-top: 32px; padding: 24px 24px 28px; border-radius: var(--r-lg); background: var(--surface); }
.mailme__ask { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mailme__mockup { display: block; width: min(300px, 100%); height: auto; margin: 0 auto; }
@media (min-width: 600px) {
  .mailme { padding: 28px; }
  .mailme__ask { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
  .mailme__mockup { width: 100%; margin: 4px 0 0 -6px; }
}
.mailme__title { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 28px; letter-spacing: -.4px; color: var(--ink); text-wrap: balance; }
.mailme__title:focus { outline: none; }
/* Under Jean (discussing or holding an assignment): the same offer, stacked and a little smaller */
.mailme--side { margin-top: 16px; }
.mailme--side .mailme__ask { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mailme--side .mailme__mockup { width: min(240px, 100%); margin: 0 auto; }
.mailme--side .mailme__btn { width: 100%; }
@media (min-width: 600px) { .mailme--side { padding: 24px; } }
/* Ready to start: one line with a small brochure, which opens the form */
.mailme__teaser { display: none; }
.mailme--compact { padding: 14px 18px; }
.mailme--compact .mailme__ask { display: none; }
.mailme--compact .mailme__teaser { display: flex; align-items: center; gap: 14px; }
.mailme__thumb { flex: none; width: 64px; height: auto; }
.mailme__teaser-text { font-size: 14px; line-height: 20px; color: var(--muted-2); }
.mailme__open { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; text-align: left; }
.mailme__meta { margin-top: 14px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.mailme__text { margin-top: 12px; font-size: 16px; line-height: 26px; color: var(--muted-2); }
.mailme__field { display: block; margin-top: 28px; max-width: 420px; }
.mailme__field .field { margin-top: 6px; padding: 11px 14px; font-size: 16px; line-height: 24px; }
.mailme__check { display: flex; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 20px; }
.mailme__check input { flex: none; margin-top: 1px; }
.mailme__btn { margin-top: 24px; width: 100%; background: var(--ink); color: #fff; }
.mailme__btn:hover { background: var(--ink-3); }
@media (min-width: 600px) { .mailme__btn { width: auto; } }
.mailme__fine { margin-top: 12px; font-size: 12px; line-height: 17px; color: var(--muted-2); }
.mailme .step__note { margin-top: 12px; }
.mailme__error { margin-top: 14px; }
.mailme__btn:disabled { opacity: .7; cursor: progress; }
/* The bot trap: off-screen, out of the tab order */
.mailme__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* The address can be long: it wraps in the body text instead of running out of the card */
.mailme__to { color: var(--ink); overflow-wrap: anywhere; }
