/* HappyWe quiz styles: UI-kit structure ("step" controls; HappyWe_2 text font PT Sans) in the owner-approved "warm heart" palette:
   cream screen, white cards with a one-colour line, coral actions (UI-kit Accent.coral), yellow only in the logo.
   Every pressable surface is two-coloured: a flat face and a flat 2D step of a darker colour. The step is an
   inset shadow (it follows the corner radius, no outline, no blur); outer drop shadows are not used. */

main[data-step] {
  --hw-primary: #FF7F6E;
  --hw-primary-step: #E0604F;
  --hw-ink: #2D3436;
  --hw-muted: #8C7F78;
  --hw-card-edge: #F3E3DA;
  --hw-card-step: #F3E3DA;
  --hw-hover: #FFF4F1;
  --hw-quote: #FFE8E3;
  --hw-field: #FFFFFF;
  --hw-off: #F3E3DA;
  --hw-off-step: #E6CFC4;
  --hw-error: #E05454;
  --hw-ok: #58CC02;
  --hw-ok-step: #46A302;
  --hw-dur: .18s;
  --hw-gray: #FFFFFF;
  --hw-gray-hover: #FFF4F1;
  --hw-gray-step: #F3E3DA;
  --hw-btn: #FF7F6E;
  --hw-btn-step: #E0604F;
  --hw-head: #FF7F6E;
  --hw-btn-text: #FFFFFF;
  --hw-accent: #F0675A;
  --hw-logo: #F3B530;
  --hw-line: #F3E3DA;
  --hw-track: #F3E3DA;
  --hw-sel: #FFE8E3;
  --hw-sel-line: #FF7F6E;
  --hw-off-text: #B9A69C;
  --hw-tile-step: #F6CFC6;
  font-family: "HappyWe Sans", system-ui, sans-serif;
  color: var(--hw-ink);
}

/* ---------------------------------------------------------------- header */
/* Wordmark "Happy" + "We" in the accent: the brand is one text node, so the colour split is a hard-stop
   gradient at the measured width of "Happy" in "HappyWe" (Nunito 800). */
main[data-step] .bf-brand {
  --hw-brand-split: 65.7%;
  width: max-content;
  justify-self: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--hw-ink);
  background: linear-gradient(90deg, var(--hw-ink) 0 var(--hw-brand-split, 64%), var(--hw-accent) var(--hw-brand-split, 64%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

main[data-step] .bf-back-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hw-track);
}

main[data-step] .bf-back-button svg {
  stroke: var(--hw-ink);
  width: 8px;
  height: 14px;
}

main[data-step] .bf-progress-seg {
  background: var(--hw-track);
}

main[data-step] .bf-progress-seg [data-progress-seg-bar] {
  background: var(--hw-head);
}

/* ---------------------------------------------------------------- titles */
main[data-step] > h1[data-type="title"],
main[data-step] .bf-element-group > h1[data-type="title"] {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  color: var(--hw-ink);
}

main[data-step] h2[data-type="subtitle"] {
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: var(--hw-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* ---------------------------------------------------------------- option cards */
main[data-step] .bf-options:is([data-layout="icon_list"], [data-layout="list"]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

main[data-step] .bf-options:is([data-layout="icon_list"], [data-layout="list"]) .bf-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 10px 16px 14px 10px;
  background: var(--hw-gray);
  border: 2px solid var(--hw-line);
  border-radius: 20px;
  box-shadow: inset 0 -4px 0 var(--hw-gray-step);
  cursor: pointer;
  transition: background-color var(--hw-dur) ease, border-color var(--hw-dur) ease, box-shadow var(--hw-dur) ease;
}

main[data-step] .bf-options[data-layout="list"] .bf-option-card {
  min-height: 72px;
  padding: 12px 18px 16px;
}

@media (hover: hover) {
  main[data-step] .bf-options:is([data-layout="icon_list"], [data-layout="list"], [data-layout="chips"]) .bf-option-card:not(.is-selected):not(:active):hover {
    background: var(--hw-gray-hover);
  }
}

/* Answers: white card with a line, the picked one gets a coral tint and a coral line (owner decision).
   Only the newly picked card fades in; the previous one clears at once. */
main[data-step] .bf-options .bf-option-card.is-selected {
  background: var(--hw-sel);
  border-color: var(--hw-sel-line);
  box-shadow: inset 0 -4px 0 var(--hw-sel-line);
  transition: background-color var(--hw-dur) ease, box-shadow var(--hw-dur) ease, transform var(--hw-dur) ease;
}

main[data-step] .bf-options .bf-option-card.is-selected .bf-option-label {
  color: var(--hw-ink);
}

main[data-step] .bf-options .bf-option-card.is-selected .bf-option-desc {
  color: var(--hw-muted);
}

main[data-step] .bf-options[data-layout="icon_list"] .bf-option-image {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 12px;
  object-fit: contain;
}

main[data-step] .bf-options .bf-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

main[data-step] .bf-options .bf-option-label {
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  color: var(--hw-ink);
}

main[data-step] .bf-options .bf-option-desc {
  font-size: 14px;
  line-height: 19px;
  font-weight: 400;
  color: var(--hw-muted);
}

main[data-step] .bf-options:not([data-multiple="true"]) .bf-option-check {
  display: none;
}

/* ---------------------------------------------------------------- start: hero + gender DuoButtons */
/* Hero image bleeds to the column edges (the step column has 16px side padding). */
main[data-step="start"] figure[data-type="image"] {
  width: calc(100% + 32px);
  max-width: none;
  margin-inline: -16px;
}

main[data-step="start"] figure[data-type="image"] img,
main[data-step="start"] img[data-type="image"] {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

main[data-step="start"] h1[data-type="title"] {
  text-align: center;
}

main[data-step="start"] h2[data-type="subtitle"] {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--hw-ink);
}

main[data-step="start"] .bf-options[data-layout="list"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Gender choice: same white cards as the answers, the picked one turns coral-tinted. */
html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card {
  --hw-step: var(--hw-gray-step);
  justify-content: center;
  min-height: 64px;
  padding: 12px 12px 17px;
  background: var(--hw-gray);
  border: 2px solid var(--hw-line);
  border-radius: 20px;
}

@media (hover: hover) {
  html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card:not(.is-selected):not(:active):hover {
    background: var(--hw-gray-hover);
  }
}

html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card:is(.is-selected, :active) {
  --hw-step: var(--hw-sel-line);
  background: var(--hw-sel);
  border-color: var(--hw-sel-line);
}

html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card .bf-option-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--hw-ink);
  text-align: center;
}

/* ---------------------------------------------------------------- scales 1-5 */
main[data-step^="ocenka-"] h2[data-type="subtitle"] {
  position: relative;
  margin-top: 8px;
  padding: 16px 18px;
  background: var(--hw-quote);
  border-radius: 16px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  color: var(--hw-ink);
  text-align: left;
}

main[data-step^="ocenka-"] h2[data-type="subtitle"]::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -10px;
  border: 10px solid transparent;
  border-top-color: var(--hw-quote);
  border-bottom: 0;
}

main[data-step] .bf-options[data-layout="chips"] {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

main[data-step] .bf-options[data-layout="chips"] .bf-option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  padding: 0 0 4px;
  background: var(--hw-gray);
  border: 2px solid var(--hw-line);
  border-radius: 16px;
  box-shadow: inset 0 -4px 0 var(--hw-gray-step);
}

main[data-step] .bf-options[data-layout="chips"] .bf-option-card.is-selected {
  background: var(--hw-sel);
  border-color: var(--hw-sel-line);
  box-shadow: inset 0 -4px 0 var(--hw-sel-line);
}

main[data-step] .bf-options[data-layout="chips"] .bf-option-label {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

main[data-step] .hw-scale-ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 17px;
  color: var(--hw-muted);
}

main[data-step] .hw-scale-ends span:last-child {
  text-align: right;
}

/* ---------------------------------------------------------------- buttons */
main[data-step] :is(a, button)[data-type="button"],
main[data-step] .bf-auth-form button[type="submit"],
main[data-step] .bf-success-cta,
main[data-step] .bf-cta-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 18px 4px;
  text-align: center;
  background: var(--hw-btn);
  color: var(--hw-btn-text);
  border: 0;
  border-radius: 20px;
  box-shadow: inset 0 -4px 0 var(--hw-btn-step);
  font-family: "HappyWe Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform var(--hw-dur) ease, background-color var(--hw-dur) ease;
}

/* UI-kit disabled DuoButton: solid grey face and step (opacity stays 1, see the parity block). */
html body main[data-step] :is(a, button)[aria-disabled="true"],
html body main[data-step] button:disabled {
  background: var(--hw-off) !important;
  box-shadow: inset 0 -4px 0 var(--hw-off-step);
  color: var(--hw-off-text);
}

main[data-step] .bf-input-unknown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--hw-accent);
  font-family: "HappyWe Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
}

main[data-step] .bf-input-unknown::after {
  content: "";
  width: 7px;
  height: 12px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 1.2 5.8 6l-4.6 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 12' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 1.2 5.8 6l-4.6 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------------- inputs */
main[data-step] :is(input[type="text"], input[type="email"], .bf-city-input, .bf-date-select, .bf-time-select) {
  font-family: "HappyWe Sans", system-ui, sans-serif;
  font-size: 17px;
  color: var(--hw-ink);
  background: var(--hw-field);
  border: 2px solid var(--hw-line);
  border-radius: 16px;
}

main[data-step] :is(input[type="text"], input[type="email"], .bf-city-input) {
  min-height: 56px;
}

/* Focus is a calm warm grey: the coral brand reads as an error on a field. */
main[data-step] :is(input[type="text"], input[type="email"], .bf-city-input, .bf-date-select, .bf-time-select):focus {
  border-color: var(--hw-muted);
  background: var(--hw-field);
  outline: none;
}

/* The runtime marks the e-mail invalid on every keystroke; red appears only after a rejected submit (as in Coddi). */
html body main[data-step="email"] .bf-email-control > input[aria-invalid="true"] {
  background: var(--hw-field);
  box-shadow: none !important;
}

html body main[data-step="email"] .bf-auth-form:has(.bf-form-error:not([hidden])) .bf-email-control > input[aria-invalid="true"] {
  border-color: var(--hw-error);
  background: color-mix(in srgb, var(--hw-error) 6%, #FFFFFF);
}

/* E-mail title on the left in four lines: the accent phrase starts its own line. */
main[data-step="email"] h1 {
  text-align: left;
}

main[data-step="email"] h1 .bf-accent {
  display: block;
}

/* ---------------------------------------------------------------- loader: checklist rows + gate buttons */
/* Pending rows are white cards with the line, the running fill and the done row take the picked tint. */
html body main[data-step="plan-loading"] .bf-processing-step {
  background: #FFFFFF;
  border: 2px solid var(--hw-line);
}

html body main[data-step="plan-loading"] .bf-processing-step .bf-processing-fill,
html body main[data-step="plan-loading"] .bf-processing-step[data-status='done'],
html body main[data-step="plan-loading"] .bf-processing-step[data-status='done'] .bf-processing-fill {
  background: var(--hw-sel);
}

html body main[data-step="plan-loading"] .bf-processing-step[data-status='done'] {
  border-color: var(--hw-tile-step);
}

html body main[data-step="plan-loading"] .bf-processing-step[data-status='done'] .bf-processing-icon {
  background: var(--hw-btn);
}

/* Both gate buttons stand on a 4px step, so the labels sit on one line in the middle of the faces. */
html body main[data-step="plan-loading"] .bf-gate .bf-options .bf-option-card {
  justify-content: center;
  min-height: 60px;
  padding: 0 18px 4px;
  border-radius: 20px;
  box-shadow: none;
  transition: background-color var(--hw-dur) ease, border-color var(--hw-dur) ease, box-shadow var(--hw-dur) ease;
}

html body main[data-step="plan-loading"] .bf-gate .bf-options .bf-option-card[data-option-value="no"] {
  --hw-step: var(--hw-line);
  background: #FFFFFF;
  border: 2px solid var(--hw-line);
}

html body main[data-step="plan-loading"] .bf-gate .bf-options .bf-option-card[data-option-value="yes"] {
  background: var(--hw-btn);
  border: 0;
  box-shadow: inset 0 -4px 0 var(--hw-btn-step);
}

html body main[data-step="plan-loading"] .bf-gate .bf-options .bf-option-card .bf-option-label {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
  color: var(--hw-ink);
}

html body main[data-step="plan-loading"] .bf-gate .bf-options .bf-option-card[data-option-value="yes"] .bf-option-label {
  color: #FFFFFF;
}

html body main[data-step="plan-loading"] .bf-gate .bf-gate-card .bf-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

html body main[data-step="plan-loading"] .bf-gate .bf-option-check {
  display: none;
}

/* The answer-card hover and press colours (grey, yellow) never reach the popup buttons. */
html body main[data-step="plan-loading"] .bf-gate .bf-gate-card .bf-options .bf-option-card.bf-option-card[data-option-value="yes"]:is(:hover, :active, .is-selected) {
  background: var(--hw-btn);
}

html body main[data-step="plan-loading"] .bf-gate .bf-gate-card .bf-options .bf-option-card.bf-option-card[data-option-value="no"]:is(:hover, :active, .is-selected) {
  background: var(--hw-hover);
}

@media (hover: hover) {
  html body main[data-step="plan-loading"] .bf-gate .bf-gate-card .bf-options .bf-option-card.bf-option-card[data-option-value="yes"]:not(:active):hover {
    background: #FF8F80;
  }
}

/* FAQ comes with the "pilates" variant; its open question is red, the kit uses the primary step colour. */
html body main[data-step="offer"] .bf-faq .bf-faq-item[data-open='true'] :is(.bf-faq-question-text, .bf-faq-chevron) {
  color: var(--hw-primary-step);
}

html body main[data-step="offer"] .bf-faq {
  background: var(--hw-field);
  color: var(--hw-ink);
}

html body main[data-step="offer"] .bf-faq :is(.bf-faq-title, .bf-faq-q) {
  color: var(--hw-ink);
}

html body main[data-step="offer"] .bf-faq .bf-faq-a {
  color: var(--hw-muted);
}

/* ---------------------------------------------------------------- reviews: elevated Card */
main[data-step] .bf-review-card {
  background: #FFFFFF;
  border: 2px solid var(--hw-card-edge);
  border-radius: 20px;
  box-shadow: none;
}

main[data-step] .bf-reviews-rating,
main[data-step] .bf-reviews-rating span ~ span {
  color: var(--hw-muted);
}

main[data-step] .bf-reviews-rating > b {
  color: var(--hw-ink);
}

main[data-step] :is(.bf-reviews-rating, .bf-review-card) .bf-review-stars {
  color: var(--hw-logo);
}

main[data-step] .bf-review-heading {
  color: var(--hw-ink);
}

main[data-step] .bf-review-like {
  color: var(--hw-primary-step);
}

/* ---------------------------------------------------------------- post-payment */
main[data-step="customer-name"] .hw-paid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--hw-ok);
}

main[data-step="customer-name"] .hw-paid-check {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--hw-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

main[data-step="customer-name"] .hw-paid-note {
  margin: 4px 0 8px;
  font-size: 15px;
  color: var(--hw-muted);
  text-align: center;
}

main[data-step="finish"] .bf-success-title {
  font-size: 26px;
  line-height: 34px;
  font-weight: 800;
  color: var(--hw-ink);
}

main[data-step="finish"] .bf-success-message {
  font-size: 17px;
  color: var(--hw-muted);
}

/* ---------------------------------------------------------------- paywall */
/* Sections are 30px apart (FitnessLab_4 rhythm). */
main[data-step="offer"] > [data-type="paywall_header"],
main[data-step="special-offer"] > [data-type="paywall_header"], main[data-step="upsell-offer"] > [data-type="paywall_header"] {
  margin-bottom: 0;
}

main[data-step="offer"] .bf-dt-price,
main[data-step="special-offer"] .bf-dt-price, main[data-step="upsell-offer"] .bf-dt-price {
  fill: #e01116;
}

main[data-step="offer"] .bf-dt-plate,
main[data-step="special-offer"] .bf-dt-plate, main[data-step="upsell-offer"] .bf-dt-plate {
  fill: #FFFFFF;
  stroke: #e01116;
  stroke-width: 1.8;
}

/* The reviews title is a paywall section title: same type as .hw-pw-title, 32px from the block above. */
main[data-step="offer"] .bf-reviews-title,
main[data-step="special-offer"] .bf-reviews-title, main[data-step="upsell-offer"] .bf-reviews-title {
  margin-top: 8px;
  font-size: 24px;
  line-height: 31px;
  font-weight: 800;
  color: var(--hw-ink);
  text-wrap: balance;
}

main[data-step="offer"] .hw-pw-title,
main[data-step="special-offer"] .hw-pw-title, main[data-step="upsell-offer"] .hw-pw-title {
  margin: 0;
  font-size: 24px;
  line-height: 31px;
  font-weight: 800;
  color: var(--hw-ink);
  text-align: center;
}

main[data-step="offer"] .hw-why { margin-bottom: 36px; }

main[data-step="offer"] .hw-pw-lead {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 23px;
  color: var(--hw-ink);
  text-align: center;
}

/* Marker doodles stand on the page without a tile (owner decision). */
main[data-step="offer"] .bf-benefit-media {
  background: none;
  box-shadow: none;
}

main[data-step="offer"] .bf-benefit-media img {
  object-fit: contain;
}

main[data-step="offer"] .bf-benefit-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--hw-ink);
}

main[data-step="offer"] .bf-benefit-sub {
  font-size: 14px;
  color: var(--hw-muted);
}

/* "ПОЛУЧИТЬ МОЙ ПЛАН" in Nunito 800 is 11.8em wide: header fit k = 11.8 + 0.35 (quiz defaults §12). */
main[data-step="offer"],
main[data-step="special-offer"], main[data-step="upsell-offer"] {
  --bf-pwh-cta-k: 12.2;
  --bf-pwh-cta-max: 18px;
}

main[data-step="offer"] :is(path, circle).bf-dt-brand,
main[data-step="special-offer"] :is(path, circle).bf-dt-brand, main[data-step="upsell-offer"] :is(path, circle).bf-dt-brand {
  fill: var(--hw-btn);
  stroke: var(--hw-btn);
}

main[data-step="offer"] .bf-pwh-cta,
main[data-step="special-offer"] .bf-pwh-cta, main[data-step="upsell-offer"] .bf-pwh-cta {
  background: var(--hw-btn);
  color: var(--hw-btn-text);
  border: 0;
  border-radius: 16px;
  box-shadow: inset 0 -4px 0 var(--hw-btn-step);
  padding-block: 11px 15px;
  font-weight: 800;
  text-transform: uppercase;
}

main[data-step="offer"] :is(.bf-pwh-digits, .bf-pwh-digits span),
main[data-step="special-offer"] :is(.bf-pwh-digits, .bf-pwh-digits span), main[data-step="upsell-offer"] :is(.bf-pwh-digits, .bf-pwh-digits span) {
  color: var(--hw-ink);
  font-variant-numeric: tabular-nums;
}

main[data-step="offer"] .bf-pwh-digits .bf-pwh-colon,
main[data-step="special-offer"] .bf-pwh-digits .bf-pwh-colon, main[data-step="upsell-offer"] .bf-pwh-digits .bf-pwh-colon {
  color: var(--hw-btn);
}

main[data-step="offer"] .bf-dt-num,
main[data-step="special-offer"] .bf-dt-num, main[data-step="upsell-offer"] .bf-dt-num {
  fill: #FFFFFF;
}

/* ---------------------------------------------------------------- paywall before/after (_qa/paywall-v2/mock.html)
   Images are backgrounds of .hw-img spans: rich_text html carries no asset paths. Answer variants are
   [data-visible-if] spans; the runtime sets [hidden] on the ones that do not match. */
main[data-step="offer"] [data-visible-if][hidden],
main[data-step="special-offer"] [data-visible-if][hidden], main[data-step="upsell-offer"] [data-visible-if][hidden] {
  display: none !important;
}

main[data-step="offer"] .hw-img,
main[data-step="special-offer"] .hw-img, main[data-step="upsell-offer"] .hw-img {
  display: block;
  flex: none;
  background: center / contain no-repeat;
}

main[data-step="offer"] .hw-img--before { background-image: url("../Generated/photo/paywall/before.webp"); }
main[data-step="offer"] .hw-img--after { background-image: url("../Generated/photo/paywall/after.webp"); }
main[data-step="offer"][data-hw-age="a1"] .hw-img--before { background-image: url("../Generated/photo/paywall/a1-before.webp"); }
main[data-step="offer"][data-hw-age="a1"] .hw-img--after { background-image: url("../Generated/photo/paywall/a1-after.webp"); }
main[data-step="offer"][data-hw-age="a2"] .hw-img--before { background-image: url("../Generated/photo/paywall/a2-before.webp"); }
main[data-step="offer"][data-hw-age="a2"] .hw-img--after { background-image: url("../Generated/photo/paywall/a2-after.webp"); }
main[data-step="offer"][data-hw-age="a4"] .hw-img--before { background-image: url("../Generated/photo/paywall/a4-before.webp"); }
main[data-step="offer"][data-hw-age="a4"] .hw-img--after { background-image: url("../Generated/photo/paywall/a4-after.webp"); }
main[data-step="offer"][data-hw-age="a5"] .hw-img--before { background-image: url("../Generated/photo/paywall/a5-before.webp"); }
main[data-step="offer"][data-hw-age="a5"] .hw-img--after { background-image: url("../Generated/photo/paywall/a5-after.webp"); }
main[data-step="offer"] .hw-img--calendar,
main[data-step="special-offer"] .hw-img--calendar, main[data-step="upsell-offer"] .hw-img--calendar { background-image: url("../Generated/ink/brand/calendar.webp"); }
main[data-step="offer"] .hw-img--hearts,
main[data-step="special-offer"] .hw-img--hearts, main[data-step="upsell-offer"] .hw-img--hearts { background-image: url("../Generated/ink/brand/hearts.webp"); }
main[data-step="offer"] .hw-img--balloon,
main[data-step="special-offer"] .hw-img--balloon, main[data-step="upsell-offer"] .hw-img--balloon { background-image: url("../Generated/ink/brand/balloon.webp"); }
main[data-step="special-offer"] .hw-img--letter, main[data-step="upsell-offer"] .hw-img--letter { background-image: url("../Generated/ink/brand/letter.webp"); }
main[data-step="special-offer"] .hw-img--sprout, main[data-step="upsell-offer"] .hw-img--sprout { background-image: url("../Generated/ink/brand/sprout.webp"); }
main[data-step="special-offer"] .hw-img--crown, main[data-step="upsell-offer"] .hw-img--crown { background-image: url("../Generated/ink/brand/crown.webp"); }
main[data-step="special-offer"] .hw-img--heroine-ava, main[data-step="upsell-offer"] .hw-img--heroine-ava { background-image: url("../Generated/ink/brand/heroine-ava.webp"); }
main[data-step="special-offer"] .hw-img--chat-host, main[data-step="upsell-offer"] .hw-img--chat-host { background-image: url("../Generated/ink/brand/chat-host.webp"); }
main[data-step="special-offer"] .hw-img--icon-plan, main[data-step="upsell-offer"] .hw-img--icon-plan { background-image: url("../Generated/ink/brand/icon-plan.webp"); }
main[data-step="special-offer"] .hw-img--game, main[data-step="upsell-offer"] .hw-img--game { background-image: url("../Generated/ink/brand/game.webp"); }

main[data-step="offer"] .hw-ba {
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Two polaroids on the table, as in the social-proof collage: square photo, paper frame, caption on the bottom strip. */
main[data-step="offer"] .hw-pol {
  display: flex;
  justify-content: center;
  padding: 18px 0 6px;
}

main[data-step="offer"] .hw-pol-card {
  display: block;
  width: 50%;
  padding: 10px 10px 0;
  border-radius: 0;
  background: #FDFBF7;
  box-shadow: 3px 5px 12px rgba(0, 0, 0, .2);
}

main[data-step="offer"] .hw-pol-card:first-child {
  margin: 10px -14px 0 0;
  transform: rotate(-4deg);
}

main[data-step="offer"] .hw-pol-card:last-child {
  position: relative;
  transform: rotate(3deg);
}

main[data-step="offer"] .hw-pol-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}

main[data-step="offer"] .hw-pol-cap {
  display: block;
  padding: 12px 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--hw-muted);
  text-align: center;
}

main[data-step="offer"] .hw-pol-card:last-child .hw-pol-cap {
  color: var(--hw-accent);
}

/* ---------------------------------------------------------------- special offer: HappyWe chat style */
main[data-step="special-offer"] [data-el$="-hero"], main[data-step="upsell-offer"] [data-el$="-hero"] {
  position: relative;
  margin: 0 -16px;
  padding: 22px 16px 6px;
  background: linear-gradient(180deg, #A9CFF4 0%, #D6E8FA 38%, var(--bf-bg, #FFF8F2) 100%);
}

main[data-step="special-offer"] .hw-so-kick, main[data-step="upsell-offer"] .hw-so-kick {
  margin: 0 0 8px;
  color: #C9463F;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

main[data-step="special-offer"] .hw-so-title, main[data-step="upsell-offer"] .hw-so-title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 31px;
  font-weight: 800;
  color: var(--hw-ink);
  text-align: center;
  text-wrap: balance;
}

main[data-step="special-offer"] .bf-offer-lead, main[data-step="upsell-offer"] .bf-offer-lead {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--hw-ink);
  text-align: center;
}

@media (max-width: 380px) {
  main[data-step="special-offer"] .bf-offer-lead, main[data-step="upsell-offer"] .bf-offer-lead { font-size: 22px; }
}

main[data-step="special-offer"] .bf-offer-lead .bf-accent, main[data-step="upsell-offer"] .bf-offer-lead .bf-accent {
  font-weight: 900;
  white-space: nowrap;
}

main[data-step="special-offer"] .hw-so-sub, main[data-step="upsell-offer"] .hw-so-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
  color: #4B4B4B;
  text-align: center;
}

main[data-step="special-offer"] .hw-balloon, main[data-step="upsell-offer"] .hw-balloon {
  position: absolute;
  width: 30px;
  height: 43px;
}

main[data-step="special-offer"] .hw-balloon--1, main[data-step="upsell-offer"] .hw-balloon--1 {
  top: 330px;
  right: 22px;
}

main[data-step="special-offer"] .hw-balloon--2, main[data-step="upsell-offer"] .hw-balloon--2 {
  top: 420px;
  right: 44px;
  width: 20px;
  height: 29px;
}

main[data-step="special-offer"] .hw-chat, main[data-step="upsell-offer"] .hw-chat {
  position: relative;
  margin-top: 18px;
  padding-right: 70px;
}

main[data-step="special-offer"] .hw-chat-card, main[data-step="upsell-offer"] .hw-chat-card {
  position: relative;
  z-index: 1;
  padding: 12px 12px 14px;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 14px 34px rgba(16, 52, 112, .16);
}

main[data-step="special-offer"] .hw-chat-h, main[data-step="upsell-offer"] .hw-chat-h {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #EAEFF5;
}

main[data-step="special-offer"] .hw-chat-ava, main[data-step="upsell-offer"] .hw-chat-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #FFE7A3;
  background-size: cover;
}

main[data-step="special-offer"] .hw-chat-h b, main[data-step="upsell-offer"] .hw-chat-h b {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #22303D;
}

main[data-step="special-offer"] .hw-online, main[data-step="upsell-offer"] .hw-online {
  font-size: 12px;
  font-weight: 800;
  color: #24875A;
}

main[data-step="special-offer"] .hw-online::before, main[data-step="upsell-offer"] .hw-online::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #3DDC84;
  vertical-align: 1px;
}

main[data-step="special-offer"] .hw-mb, main[data-step="upsell-offer"] .hw-mb {
  max-width: 88%;
  margin: 0 0 6px;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

main[data-step="special-offer"] .hw-mb--me, main[data-step="upsell-offer"] .hw-mb--me {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: #FFE7A3;
  color: #3D3220;
}

main[data-step="special-offer"] .hw-mb--ai, main[data-step="upsell-offer"] .hw-mb--ai {
  border-bottom-left-radius: 5px;
  background: #E3EEFB;
  color: #1A2A33;
}

main[data-step="special-offer"] .hw-mb--typing, main[data-step="upsell-offer"] .hw-mb--typing {
  width: max-content;
  padding: 6px 12px;
  color: #8FA6C0;
  font-weight: 900;
  letter-spacing: 3px;
}

main[data-step="special-offer"] .hw-chat-host, main[data-step="upsell-offer"] .hw-chat-host {
  position: absolute;
  right: -14px;
  bottom: -14px;
  z-index: 2;
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 8px 14px rgba(16, 52, 112, .18));
}

main[data-step="special-offer"] .hw-chips, main[data-step="upsell-offer"] .hw-chips {
  display: flex;
  gap: 7px;
  margin: 8px -16px 0;
  padding: 0 16px;
  overflow: hidden;
}

main[data-step="special-offer"] .hw-chips span, main[data-step="upsell-offer"] .hw-chips span {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px #EAEFF5, 0 3px 0 #EAEFF5;
  font-size: 13px;
  font-weight: 800;
  color: #22303D;
}

main[data-step="special-offer"] .hw-perks, main[data-step="upsell-offer"] .hw-perks {
  margin-top: 14px;
}

main[data-step="special-offer"] .hw-perk, main[data-step="upsell-offer"] .hw-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1.5px solid var(--hw-card-edge);
}

main[data-step="special-offer"] .hw-perk:last-child, main[data-step="upsell-offer"] .hw-perk:last-child {
  border-bottom: 0;
}

main[data-step="special-offer"] .hw-perk .hw-img, main[data-step="upsell-offer"] .hw-perk .hw-img {
  width: 46px;
  height: 46px;
}

main[data-step="special-offer"] .hw-perk b, main[data-step="upsell-offer"] .hw-perk b {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #22303D;
}

main[data-step="special-offer"] .hw-perk b + span, main[data-step="upsell-offer"] .hw-perk b + span {
  display: block;
  font-size: 14px;
  line-height: 1.38;
  font-weight: 600;
  color: #5B6B7B;
}

main[data-step="special-offer"] .hw-incl-title, main[data-step="upsell-offer"] .hw-incl-title {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

main[data-step="special-offer"] .hw-incl, main[data-step="upsell-offer"] .hw-incl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

main[data-step="special-offer"] .hw-incl > span, main[data-step="upsell-offer"] .hw-incl > span {
  padding: 10px 6px 9px;
  border-radius: 16px;
  background: #FFFFFF;
  border-bottom: 4px solid var(--hw-card-edge);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  color: #22303D;
  text-align: center;
}

main[data-step="special-offer"] .hw-incl .hw-img, main[data-step="upsell-offer"] .hw-incl .hw-img {
  width: 52px;
  height: 52px;
  margin: 0 auto 6px;
  border-radius: 12px;
  background-size: cover;
}

main[data-step="special-offer"] .hw-incl .hw-incl-ava, main[data-step="upsell-offer"] .hw-incl .hw-incl-ava {
  border-radius: 50%;
}

main[data-step="special-offer"] .hw-incl em, main[data-step="upsell-offer"] .hw-incl em {
  font-style: normal;
  color: var(--hw-accent);
}

/* The upsell copy of the special offer: discount heading on the quiz type scale (add-upsell sets 19.5px). */
html body main[data-step^="upsell"] .bf-dt-heading {
  font-size: 19px;
}

/* Upsell decline: a readable secondary action (add-upsell draws it 15px grey). */
html body main[data-step^="upsell"] [data-el$="-decline"][data-type="button"]:not(#bf-hw) {
  min-height: 52px;
  margin-top: 8px !important;
  color: var(--hw-muted) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

/* ---------------------------------------------------------------- press state
   Every pressable surface stands on its 2D step (--hw-step colour, --hw-step-h height). Nothing moves on press
   (owner's call, mouse and touch alike): a pressed or picked surface only takes its colour, face and step together. */
html body main[data-step] :is(.bf-options .bf-option-card, :is(a, button)[data-type="button"], .bf-auth-form button[type="submit"], .bf-success-cta, .bf-cta-scroll, .bf-pwh-cta) {
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 calc(-1 * var(--hw-step-h, 4px)) 0 var(--hw-step, var(--hw-gray-step)) !important;
  transition: background-color var(--hw-dur) ease, border-color var(--hw-dur) ease, box-shadow var(--hw-dur) ease;
}

html body main[data-step] :is(:is(a, button)[data-type="button"], .bf-auth-form button[type="submit"], .bf-success-cta, .bf-cta-scroll, .bf-pwh-cta) {
  --hw-step: var(--hw-btn-step);
}

html body main[data-step] .bf-options .bf-option-card.is-selected {
  --hw-step: var(--hw-sel-line);
}

html body main[data-step="start"] .bf-options .bf-option-card.is-selected {
  --hw-step: var(--hw-sel-line);
}

html body main[data-step="start"] .bf-options .bf-option-card {
  --hw-step-h: 5px;
}

/* Gender choice in pastel pair colours (owner's pick A): blue for him, pink for her; picked or pressed is a deeper tint. */
html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card[data-option-value="male"] {
  --hw-step: #8CC4E8;
  background: #E4F2FC;
  border-color: #8CC4E8;
}

html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card[data-option-value="female"] {
  --hw-step: #F0A3C6;
  background: #FFE6F0;
  border-color: #F0A3C6;
}

@media (hover: hover) {
  html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card[data-option-value="male"]:not(.is-selected):not(:active):hover {
    background: #D8ECFA;
  }

  html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card[data-option-value="female"]:not(.is-selected):not(:active):hover {
    background: #FFDAE9;
  }
}

html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card[data-option-value="male"]:is(.is-selected, :active) {
  --hw-step: #5BA8D4;
  background: #CCE6F8;
  border-color: #5BA8D4;
}

html body main[data-step="start"] .bf-options[data-layout="list"] .bf-option-card[data-option-value="female"]:is(.is-selected, :active) {
  --hw-step: #E585B3;
  background: #FFD1E4;
  border-color: #E585B3;
}

html body main[data-step="plan-loading"] .bf-gate .bf-options .bf-option-card[data-option-value="yes"] {
  --hw-step: var(--hw-btn-step);
}

html body main[data-step] :is(a, button)[aria-disabled="true"] {
  --hw-step: var(--hw-off-step) !important;
}

html body main[data-step] :is(.bf-options .bf-option-card, :is(a, button)[data-type="button"], .bf-auth-form button[type="submit"], .bf-success-cta, .bf-cta-scroll, .bf-pwh-cta):active {
  transform: none !important;
}

html body main[data-step] :is(:is(a, button)[data-type="button"], .bf-auth-form button[type="submit"], .bf-success-cta, .bf-cta-scroll, .bf-pwh-cta):active:not([aria-disabled="true"]) {
  background-color: var(--hw-accent) !important;
}

html body main[data-step] .bf-options:is([data-layout="icon_list"], [data-layout="list"], [data-layout="chips"]) .bf-option-card:active {
  --hw-step: var(--hw-sel-line);
  background: var(--hw-sel);
  border-color: var(--hw-sel-line);
}

@media (prefers-reduced-motion: reduce) {
  main[data-step] *,
  main[data-step] *::before,
  main[data-step] *::after {
    transition: none !important;
  }}

/* BlackFox donor parity v1 (docs/quiz-quality-baseline.md §11, quality-audit ICON_CLIPPED,
   STICKER_FIXED_WIDTH, DISABLED_OPACITY). Appended by `quizkit new`; values come from the
   original quiz, only the sizing behaviour is fixed here. */

/* Line icons are shown whole: no circle crop, no cover crop. */
main [data-type="plan_summary"] .bf-ps-icon {
  border-radius: 0 !important;
  overflow: visible !important;
}

main [data-type="plan_summary"] .bf-ps-icon img,
main img.bf-auth-privacy-icon {
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* The price plaque follows the block width, so it does not shrink on the 480px desktop column. */
main .bf-dt-sticker {
  width: min(186px, 48%) !important;
  flex: 0 0 auto !important;
}

/* Disabled CTA keeps a solid colour; the runtime opacity makes it look washed out. */
main :is(button, .bf-btn, .bf-button, [data-action])[aria-disabled="true"],
main :is(button, .bf-btn, .bf-button):disabled {
  opacity: 1 !important;
  background: color-mix(in srgb, var(--bf-accent) 50%, #ADADA7) !important;
}

/* BlackFox quiz defaults v1 (docs/quiz-quality-baseline.md §12, quality-audit PAYWALL_TITLE_SIZE,
   PAYWALL_BUTTON_SIZE, PAYWALL_BUTTON_WRAP, CTA_BOTTOM_GAP). Appended by `quizkit new`.
   A label longer than "ПОЛУЧИТЬ МОЙ ПЛАН" sets its own fit on main, measured in quality-audit:
   --bf-pwh-cta-max (18px for long labels), --bf-pwh-cta-k and --bf-cta-scroll-k (label width / font size + 0.35). */

/* "Your plan is ready" title on the paywall: 24px. */
main:has(> [data-type="paywall_header"]) .fl4-ready-title {
  font-size: 24px !important;
}

/* Paywall, special offer and upsell buttons: 20px caps without letter spacing. */
html body main[data-step] :is(.bf-pwh-cta, .bf-cta-scroll) {
  font-size: 20px !important;
  letter-spacing: 0 !important;
}

/* Header button stays on one line next to the timer, smaller only where the label would wrap. */
html body main[data-step] .bf-pwh-cta {
  padding-inline: 12px !important;
  white-space: nowrap;
  font-size: min(var(--bf-pwh-cta-max, 20px), calc((100vw - 160px) / var(--bf-pwh-cta-k, 10.4))) !important;
}

html body main[data-step] .bf-cta-scroll {
  white-space: nowrap;
  font-size: min(20px, calc((100vw - 68px) / var(--bf-cta-scroll-k, 14))) !important;
}

/* ---------------------------------------------------------------- ink and marker theme (owner decision)
   Paper screen, black ink lines, solid ink buttons with a coral offset shadow, serif headings, accent words
   underlined with a yellow marker; images are the ink doodles in Generated/ink. Checkout keeps the engine skin. */
html, body {
  background: #FAF6EF;
}

html body main[data-step][data-step] {
  --hw-ink: #1E1A17;
  --hw-muted: #6B625C;
  --hw-paper: #FAF6EF;
  --hw-marker: #F0675A;
  --hw-marker-soft: #FBE3DC;
  --hw-hl: #FCE8A8;
  --hw-rule: #E6DED3;
  --hw-btn-step: transparent;
  --hw-off-step: transparent;
  --hw-gray-step: transparent;
  --bf-bg: #FAF6EF;
  background: var(--hw-paper);
  color: var(--hw-ink);
}

html body main[data-step][data-step] :is(h1, .hw-pw-title, .bf-reviews-title, .bf-faq-title, .hw-so-title, .hw-incl-title) {
  font-family: "HappyWe Serif", Georgia, serif !important;
  font-weight: 700 !important;
  color: var(--hw-ink) !important;
}

html body main[data-step][data-step] :is(h1, h2, p, b, span) .bf-accent,
html body main[data-step][data-step] .bf-accent {
  color: var(--hw-ink) !important;
  -webkit-text-fill-color: var(--hw-ink) !important;
  background: linear-gradient(transparent 58%, var(--hw-hl) 58% 92%, transparent 92%) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

html body main[data-step][data-step] .bf-brand {
  font-family: "HappyWe Serif", Georgia, serif;
  background: none;
  color: var(--hw-ink);
  -webkit-text-fill-color: var(--hw-ink);
}

html body main[data-step][data-step] .bf-back-button {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--hw-ink);
}

html body main[data-step][data-step] .bf-progress-seg {
  background: var(--hw-rule);
}

html body main[data-step][data-step] .bf-progress-seg [data-progress-seg-bar] {
  background: var(--hw-ink);
}

/* Answers: white paper with a thin ink line, no step; the picked one gets the marker tint and an ink offset. */
html body main[data-step][data-step] .bf-options .bf-option-card.bf-option-card {
  background: #FFFFFF !important;
  border: 1.5px solid var(--hw-ink) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

html body main[data-step][data-step] .bf-options .bf-option-card.bf-option-card:is(.is-selected, :active) {
  background: var(--hw-marker-soft) !important;
  box-shadow: 3px 3px 0 var(--hw-ink) !important;
}

html body main[data-step][data-step] .bf-options .bf-option-label {
  color: var(--hw-ink) !important;
}

html body main[data-step][data-step="start"] figure[data-type="image"],
html body main[data-step][data-step="start"] :is(figure[data-type="image"] img, img[data-type="image"]) {
  background: transparent !important;
  mix-blend-mode: multiply;
}

/* Buttons: solid ink, flat (the checkout pay button keeps the engine skin). */
html body main[data-step][data-step] :is(a, button)[data-type="button"],
html body main[data-step][data-step] .bf-auth-form button[type="submit"],
html body main[data-step][data-step] .bf-cta-scroll,
html body main[data-step][data-step] .bf-pwh-cta,
html body main[data-step][data-step] .bf-success-cta {
  background: var(--hw-ink) !important;
  color: #FFFFFF !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body main[data-step][data-step] :is(a, button)[data-type="button"]:is(:disabled, [aria-disabled="true"]),
html body main[data-step][data-step] .bf-auth-form button[type="submit"]:is(:disabled, [aria-disabled="true"]),
html body main[data-step][data-step] .bf-success-cta:is(:disabled, [aria-disabled="true"]) {
  background: #D9D1C6 !important;
  box-shadow: none !important;
}

html body main[data-step][data-step] :is(input[type="text"], input[type="email"], .bf-city-input, .bf-date-select, .bf-time-select) {
  background: #FFFFFF !important;
  border: 1.5px solid var(--hw-ink) !important;
  box-shadow: none !important;
}

/* The base theme pads controls 4-5px more at the bottom for the step; without the step the label sits high,
   so the same height is split evenly. */
html body main[data-step][data-step] :is(a, button)[data-type="button"],
html body main[data-step][data-step] .bf-auth-form button[type="submit"],
html body main[data-step][data-step] .bf-cta-scroll,
html body main[data-step][data-step] .bf-options[data-layout="chips"] .bf-option-card {
  padding-top: 2px;
  padding-bottom: 2px;
}

html body main[data-step][data-step] .bf-options[data-layout="icon_list"] .bf-option-card {
  padding-top: 12px;
  padding-bottom: 12px;
}

html body main[data-step][data-step] .bf-options[data-layout="list"] .bf-option-card {
  padding-top: 14px;
  padding-bottom: 14px;
}

html body main[data-step][data-step="start"] .bf-options[data-layout="list"] .bf-option-card {
  padding-top: 14.5px;
  padding-bottom: 14.5px;
}

html body main[data-step][data-step] .bf-pwh-cta {
  padding-block: 13px;
}

html body main[data-step][data-step="plan-loading"] .bf-gate .bf-options .bf-option-card {
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Mirror screens (answer reflected back): the answer's own doodle, a readable lead and the challenge line. */
html body main[data-step][data-step^="mirror-"] figure[data-type="image"] {
  width: 168px;
  max-width: 48vw;
  margin: 12px auto 8px;
}

html body main[data-step][data-step^="mirror-"] figure[data-type="image"] img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

html body main[data-step][data-step^="mirror-"] .hw-mirror-lead {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--hw-ink);
  text-align: center;
}

html body main[data-step][data-step^="mirror-"] .hw-mirror-plan {
  margin: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--hw-ink);
  border-radius: 14px;
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.45;
  color: var(--hw-ink);
}

html body main[data-step][data-step^="mirror-"] .hw-mirror-plan b {
  background: linear-gradient(transparent 58%, var(--hw-hl) 58% 92%, transparent 92%);
}

/* Multiple choice: ink ring, solid ink when picked. */
html body main[data-step][data-step] .bf-option-check {
  box-shadow: inset 0 0 0 1.5px var(--hw-ink) !important;
}

html body main[data-step][data-step] .bf-option-card.is-selected .bf-option-check {
  background: var(--hw-ink) !important;
  box-shadow: none !important;
}

/* Social proof after the start: counter, what the challenge is, the couples doodle on the paper. */
html body main[data-step][data-step="social-proof"] [data-type="title"] {
  margin-top: 8px;
  font-size: 32px !important;
}

html body main[data-step][data-step="social-proof"] [data-type="paragraph"] {
  font-size: 18px;
  line-height: 1.45;
  color: var(--hw-ink);
  text-align: center;
}

html body main[data-step][data-step="social-proof"] figure[data-type="image"] {
  margin: 16px -8px 0;
}

html body main[data-step][data-step="social-proof"] figure[data-type="image"] img {
  width: 100%;
  height: auto;
}

/* The PT Serif e-mail title wraps on its own: a block accent left "свой" alone on a line. */
html body main[data-step][data-step="email"] h1 .bf-accent {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Start: the third answer takes the whole row under the two genders. */
html body main[data-step][data-step="start"] .bf-option-card[data-option-value="other"] {
  grid-column: 1 / -1;
}

html body main[data-step][data-step] .hw-nowrap {
  white-space: nowrap;
}

/* Birth data screens: date, time and city of one person with small labels above the fields. */
html body main[data-step][data-step] .hw-field-label {
  margin: 14px 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hw-ink);
  text-align: left;
}

html body main[data-step][data-step] .hw-field-label span {
  font-weight: 400;
  color: var(--hw-muted);
}

/* Loader checklist and the gate popup. */
html body main[data-step][data-step="plan-loading"] .bf-processing-step {
  background: #FFFFFF !important;
  border: 1.5px solid var(--hw-ink) !important;
  box-shadow: none !important;
}

html body main[data-step][data-step="plan-loading"] .bf-gate .bf-gate-card {
  border: 1.5px solid var(--hw-ink);
  box-shadow: 4px 4px 0 var(--hw-ink);
}

html body main[data-step][data-step="plan-loading"] .bf-gate .bf-gate-card .bf-options .bf-option-card.bf-option-card[data-option-value="yes"] {
  background: var(--hw-ink) !important;
  box-shadow: none !important;
}

html body main[data-step][data-step="plan-loading"] .bf-gate .bf-options .bf-option-card[data-option-value="yes"] .bf-option-label {
  color: #FFFFFF !important;
}

/* Reviews, paywall timer and snapshots. */
html body main[data-step][data-step] .bf-review-card {
  background: #FFFFFF !important;
  box-shadow: inset 0 0 0 1.5px var(--hw-ink) !important;
}

html body main[data-step][data-step] :is(.bf-pwh-digits, .bf-pwh-digits span) {
  color: var(--hw-ink) !important;
}

html body main[data-step][data-step] .bf-pwh-digits .bf-pwh-colon {
  color: var(--hw-marker) !important;
}

/* Special offer: paper instead of the sky, ink-lined chat. */
html body main[data-step][data-step="special-offer"] [data-el$="-hero"], html body main[data-step][data-step="upsell-offer"] [data-el$="-hero"] {
  background: var(--hw-paper);
}

html body main[data-step][data-step="special-offer"] .hw-so-kick, html body main[data-step][data-step="upsell-offer"] .hw-so-kick {
  color: var(--hw-ink);
}

html body main[data-step][data-step="special-offer"] .hw-chat-card, html body main[data-step][data-step="upsell-offer"] .hw-chat-card {
  box-shadow: inset 0 0 0 1.5px var(--hw-ink), 4px 4px 0 var(--hw-ink);
}

html body main[data-step][data-step="special-offer"] :is(.hw-chat-h b, .hw-perk b, .hw-incl > span, .hw-chips span), html body main[data-step][data-step="upsell-offer"] :is(.hw-chat-h b, .hw-perk b, .hw-incl > span, .hw-chips span) {
  color: var(--hw-ink);
}

html body main[data-step][data-step="special-offer"] .hw-mb--me, html body main[data-step][data-step="upsell-offer"] .hw-mb--me {
  background: var(--hw-hl);
  color: var(--hw-ink);
}

html body main[data-step][data-step="special-offer"] .hw-mb--ai, html body main[data-step][data-step="upsell-offer"] .hw-mb--ai {
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--hw-ink);
  color: var(--hw-ink);
}

html body main[data-step][data-step="special-offer"] .hw-chips span, html body main[data-step][data-step="upsell-offer"] .hw-chips span {
  box-shadow: inset 0 0 0 1.5px var(--hw-ink);
}

html body main[data-step][data-step="special-offer"] .hw-chat-ava, html body main[data-step][data-step="upsell-offer"] .hw-chat-ava {
  background-color: var(--hw-marker-soft);
}

/* one-click upsell (scripts/quiz/add-upsell.py) */
main[data-step^="upsell-offer"] .bf-upsell-paid {
  display: block;
  margin: 0;
  padding: 10px 14px;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, #2e9e5b 12%, var(--bf-bg, #fff));
  color: #23804a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

main[data-step^="upsell-offer"] .bf-upsell-paid::before {
  content: "\2713";
  margin-inline-end: 8px;
}

main[data-step^="upsell-offer"] [data-el$="-paid_notice"] + [data-type="rich_text"] {
  margin-top: 18px;
  margin-bottom: 30px;
}

main[data-step^="upsell-offer"] [data-type="rich_text"] h1 {
  color: var(--bf-accent);
  font-size: 26px;
  margin-bottom: 8px;
}

main[data-step^="upsell-offer"] .bf-dt-heading {
  font-size: 19.5px;
}

main[data-step^="upsell-offer"] button[data-action="purchase"] {
  position: static !important;
}

main[data-step^="upsell-offer"] [data-el$="-decline"][data-type="button"]:not(#bf-upsell) {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 4px !important;
  padding: 10px 16px;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #8a8a8f !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
