/* ReoCell landing. Mobile first: phones (design 460), tablets from 768px, desktop from 1024px (design 1440,
   content 1200px). Sections: template-parts/sections/*.php */

/* Montserrat (SIL Open Font License), variable 400–700, served from the theme: assets/fonts.
   Cyrillic and latin are preloaded in <head> (functions.php). */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/montserrat-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/montserrat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --c-accent: #c80000;
    --c-accent-soft: #fbe9e9;
    --c-accent-tint: #fbe6e6;
    --c-ink: #111;
    --c-text: #505050;
    --c-muted: #bdbdbd;
    --c-placeholder: #757575;
    --c-border: #e4e4e4;
    --c-gray: #f0f2f4;
    --c-dark: #111;
    --c-dark-card: #1e1e1e;
    --c-white: #fff;

    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --pad: 20px;
    --section-y: 48px;
    --container: 1200px;
    --radius: 16px;
    --shadow-btn: 0 8px 10px rgba(200, 0, 0, .25);
    --shadow-card: 0 8px 24px rgba(199, 0, 0, .08);
}

@media (min-width: 768px) {
    :root {
        --pad: 40px;
        --section-y: 72px;
    }
}

@media (min-width: 1024px) {
    :root {
        --section-y: 96px;
    }
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--c-white);
    color: var(--c-ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

fieldset {
    border: 0;
    min-width: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--c-accent);
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(var(--container), 100% - 2 * var(--pad));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-y);
}

.section--gray {
    background: var(--c-gray);
}

.section--pink {
    background: var(--c-accent-soft);
}

.stack-40 > * + * {
    margin-top: 40px;
}

.stack-48 > * + * {
    margin-top: 48px;
}

/* Headings */
.section-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eyebrow {
    color: var(--c-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.section-text {
    color: var(--c-text);
    font-size: 16px;
}

.section-head--lead .section-text {
    margin-top: 6px;
    font-size: 17px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 36px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 16px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, box-shadow .2s, opacity .2s;
}

.btn--primary {
    background: var(--c-accent);
    color: var(--c-white);
    box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
    background: #a80000;
}

.btn--primary:disabled {
    background: #d9d9d9;
    box-shadow: none;
    cursor: not-allowed;
}

.btn--outline {
    border-color: var(--c-border);
    background: var(--c-white);
    color: var(--c-ink);
}

.btn--outline:hover {
    border-color: var(--c-ink);
}

.btn--sm {
    min-height: 0;
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.btn--block {
    width: 100%;
}

.btn__icon {
    flex: none;
}

@media (min-width: 768px) {
    .btn--primary:not(.btn--sm) {
        font-size: 17px;
    }
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--c-border);
    background: var(--c-white);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
}

.site-title {
    line-height: 0;
}

.site-title a {
    display: inline-block;
}

.site-logo {
    width: 119px;
    height: auto;
}

.site-nav ul {
    display: flex;
    gap: 24px;
}

.site-nav a {
    color: var(--c-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.site-header .btn {
    margin-left: auto;
}

@media (max-width: 767px) {
    .site-nav {
        display: none;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        padding-block: 16px;
    }
}

/* Two-column layout: heading (+ extra content) on the left, main content on the right. Phones and tablets
   stack it as heading, main, extra. */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "main" "extra";
    gap: 24px;
}

.split__head {
    grid-area: head;
}

.split__main {
    grid-area: main;
    min-width: 0;
}

.split__extra {
    grid-area: extra;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.split__extra:empty {
    display: none;
}

@media (min-width: 1024px) {
    .split {
        --aside: 440px;
        grid-template-columns: var(--aside) minmax(0, 1fr);
        grid-template-areas: "head main" "extra main";
        grid-template-rows: auto 1fr;
        column-gap: 80px;
        row-gap: 24px;
    }

    .split--center {
        grid-template-areas: ". main" "head main" "extra main" ". main";
        grid-template-rows: 1fr auto auto 1fr;
        row-gap: 0;
    }

    .split--center .split__extra {
        margin-top: 24px;
    }

    .split--top {
        align-items: start;
    }
}

/* Callout: text with a red bar on the left */
.callout {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
}

.callout::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: 3px;
    background: var(--c-accent);
}

.callout strong {
    font-weight: 600;
}

.callout--thin {
    padding: 2px 4px 2px 16px;
    color: var(--c-text);
}

.callout--thin::before {
    width: 2px;
    border-radius: 0;
}

@media (min-width: 1024px) {
    .callout {
        font-size: 16px;
    }

    .callout--thin {
        font-size: 15px;
    }
}

/* Play button of video cards */
.play-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 0 8px rgba(200, 0, 0, .25);
    transition: transform .2s;
}

.play-btn--sm {
    width: 42px;
    height: 42px;
    box-shadow: none;
}

/* Hero */
.hero {
    padding-block: 0 48px;
    background: var(--c-dark);
    color: var(--c-white);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero__media {
    position: relative;
    order: -1;
    margin-inline: calc(-1 * var(--pad));
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0) 62%, var(--c-dark) 100%);
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__badge {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 16px;
    padding: 7px 11px;
    border-radius: 20px;
    background: rgba(17, 17, 17, .7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: -20px;
}

.hero__heading {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.hero__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.hero__subtitle {
    color: var(--c-accent);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 8px;
    text-align: center;
}

.hero__fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 8px;
    border-radius: var(--radius);
    background: var(--c-dark-card);
}

.hero__fact-title {
    font-size: 15px;
    font-weight: 600;
}

.hero__fact-text {
    color: var(--c-muted);
    font-size: 11px;
}

.hero__btn {
    justify-content: space-between;
    padding-inline: 24px;
}

.hero__btn .btn__label {
    flex: 1;
}

.hero__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline: calc(-1 * var(--pad));
    padding: 20px var(--pad) 0;
    border-top: 1px solid #2a2a2a;
    color: var(--c-muted);
    font-size: 13px;
}

.hero__note img {
    flex: none;
}

@media (min-width: 768px) {
    .hero__text {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-block: 64px;
    }

    .hero__inner {
        flex-direction: row;
        align-items: center;
        gap: 64px;
    }

    .hero__content {
        flex: 1;
        gap: 24px;
        margin-top: 0;
    }

    .hero__media {
        order: 0;
        flex: none;
        width: 560px;
        height: 620px;
        margin: 0;
        aspect-ratio: auto;
        border-radius: 24px;
    }

    .hero__title {
        font-size: 52px;
    }

    .hero__subtitle {
        font-size: 24px;
    }

    .hero__text {
        font-size: 17px;
    }

    .hero__fact {
        padding: 16px;
    }

    .hero__fact-title {
        font-size: 16px;
    }

    .hero__fact-text {
        font-size: 12px;
    }

    .hero__btn {
        padding-inline: 40px;
    }

    .hero__note {
        margin-inline: 0;
        padding-inline: 0;
    }
}

/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 336 / 460;
    padding: 12px;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: #1d1d1d;
    color: var(--c-white);
    text-align: left;
}

.review-card__poster,
.answer-card__poster,
.why__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card--poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .85) 100%);
}

.review-card .play-btn {
    z-index: 1;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.review-card:hover .play-btn,
.answer-card:hover .play-btn,
.why__video:hover .play-btn {
    transform: scale(1.08);
}

.review-card__caption {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-card__title {
    font-size: 15px;
    font-weight: 600;
}

.review-card__label {
    color: #a8a8a8;
    font-size: 12px;
}

@media (min-width: 1024px) {
    .review-card {
        padding: 20px;
    }
}

/* Pains */
.pains__quotes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pains__quote {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--c-white);
    box-shadow: 0 1px 0 var(--c-border);
    font-size: 15px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .pains__quote {
        font-size: 16px;
    }
}

/* Compare */
.compare__table {
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}

.compare__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--c-gray);
    color: var(--c-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.4;
    text-transform: uppercase;
}

.compare__head span:last-child {
    color: var(--c-ink);
    text-align: right;
}

.compare__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
}

.compare__row + .compare__row {
    border-top: 1px solid var(--c-border);
}

.compare__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
}

.compare__name {
    font-size: 16px;
}

.compare__duration {
    color: var(--c-text);
    font-size: 13px;
    text-align: right;
}

.compare__text {
    color: var(--c-text);
    font-size: 15px;
}

.compare__bar {
    display: block;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--c-gray);
}

.compare__bar span {
    display: block;
    height: 100%;
    background: var(--c-text);
}

.compare__row--accent {
    border-top-color: var(--c-accent) !important;
    background: var(--c-accent);
    color: var(--c-white);
}

.compare__row--accent .compare__duration {
    color: var(--c-white);
}

.compare__row--accent .compare__text {
    color: #ffe0e0;
}

.compare__row--accent .compare__bar {
    background: rgba(255, 255, 255, .25);
}

.compare__row--accent .compare__bar span {
    background: var(--c-white);
}

.compare__note {
    color: var(--c-text);
    font-size: 15px;
}

/* Results */
.timeline {
    display: flex;
    flex-direction: column;
}

.timeline__item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0 12px;
    padding-block: 18px;
    border-top: 1px solid var(--c-border);
}

.timeline__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.timeline__when {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline__value {
    color: var(--c-accent);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.timeline__label {
    color: var(--c-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline__text {
    color: var(--c-text);
    font-size: 15px;
}

.timeline__text strong {
    color: var(--c-ink);
    font-weight: 600;
}

.timeline__item.is-active .timeline__text {
    color: var(--c-ink);
}

.timeline__item.is-active .timeline__text strong {
    font-weight: 600;
}

.timeline__text span {
    color: var(--c-text);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.benefit {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--c-white);
}

.benefit__title {
    font-size: 15px;
    font-weight: 600;
}

.benefit__text {
    color: var(--c-text);
    font-size: 14px;
}

.results__subtitle {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 16px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
}

.stat__top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat__value {
    color: var(--c-accent);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.stat__value small {
    margin-left: 4px;
    font-size: 15px;
}

.stat__text {
    font-size: 13px;
}

.stat__source {
    color: var(--c-text);
    font-size: 12px;
}

@media (min-width: 768px) {
    .timeline__item {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .timeline {
        flex-direction: row;
        gap: 24px;
    }

    .timeline__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px 0 0;
        border-top: 3px solid #d9dce0;
    }

    .timeline__item:first-child {
        padding-top: 20px;
        border-top: 3px solid #d9dce0;
    }

    .timeline__item.is-active {
        border-top-color: var(--c-accent);
    }

    .timeline__value {
        font-size: 24px;
    }

    .card-grid {
        gap: 24px;
    }

    .card-grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .benefit {
        padding: 20px;
    }

    .benefit__title {
        font-size: 16px;
    }

    .benefit__text {
        font-size: 15px;
    }

    .results__subtitle {
        font-size: 17px;
    }

    .stat {
        min-height: 150px;
        padding: 24px 20px 20px;
    }

    .stat__value {
        font-size: 52px;
    }
}

/* Doctor */
.doctor__card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.doctor__photo {
    flex: none;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: #ccc;
    box-shadow: 0 0 0 3px var(--c-white), 0 0 0 5px var(--c-accent);
    margin: 5px;
}

.doctor__info {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.doctor__name {
    margin-top: 3px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

.doctor__position {
    color: var(--c-text);
    font-size: 15px;
}

.doctor__videos {
    display: flex;
    gap: 10px;
    margin: 22px calc(-1 * var(--pad)) 0;
    padding: 0 var(--pad) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
}

.doctor__videos::-webkit-scrollbar {
    display: none;
}

.answer-card {
    position: relative;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 263px;
    height: 380px;
    padding: 14px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #222;
    color: var(--c-white);
    text-align: left;
    scroll-snap-align: start;
}

.answer-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .85) 100%);
}

.answer-card .play-btn {
    z-index: 1;
    top: 14px;
    left: 14px;
}

.answer-card__caption {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 85px;
}

.answer-card__label {
    color: #ff7a7a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.answer-card__title {
    font-size: 16px;
    font-weight: 600;
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--c-text);
    font-size: 12px;
}

@media (min-width: 1024px) {
    .doctor__videos {
        gap: 16px;
        margin-inline: 0;
        padding-inline: 0;
        scroll-padding-inline: 0;
    }

    .scroll-hint {
        margin-top: 40px;
    }
}

/* Quiz */
.quiz-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    background: var(--c-white);
    box-shadow: var(--shadow-card);
}

.quiz-card__progress {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--c-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.quiz-card__percent {
    color: var(--c-accent);
    font-weight: 600;
}

.quiz-card__bar {
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--c-gray);
}

.quiz-card__bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--c-accent);
    transform-origin: left center;
    transition: transform .3s;
}

.quiz-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-step__question {
    float: left;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.quiz-step__question + * {
    clear: both;
}

.quiz-step__hint {
    margin-top: -8px;
    color: var(--c-text);
    font-size: 13px;
    line-height: 1.4;
}

.quiz-step__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-white);
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.quiz-option:hover {
    border-color: var(--c-muted);
}

.quiz-option > input:not(.quiz-option__input) {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-option__indicator {
    flex: none;
    width: 22px;
    height: 22px;
    background: url("../img/quiz-radio.svg") center / contain no-repeat;
}

.quiz-option--checkbox .quiz-option__indicator {
    background-image: url("../img/quiz-check.svg");
}

.quiz-option:has(input:checked) {
    padding: 11.5px 15.5px;
    border: 1.5px solid var(--c-accent);
    background: var(--c-accent-soft);
    font-weight: 500;
}

.quiz-option:has(input:checked) .quiz-option__indicator {
    background-image: url("../img/quiz-radio-on.svg");
}

.quiz-option--checkbox:has(input:checked) .quiz-option__indicator {
    background-image: url("../img/quiz-check-on.svg");
}

.quiz-option:has(input:focus-visible) {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

.quiz-option--custom {
    border-color: transparent;
    background: var(--c-gray);
}

.quiz-option__input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    outline: 0;
}

.quiz-option__input::placeholder {
    color: #8a8a8a;
}

.quiz-nav {
    display: flex;
    gap: 10px;
}

.quiz-nav .btn {
    flex: 1;
    min-height: 56px;
    font-size: 16px;
}

.quiz-back {
    flex: none;
    width: 56px;
    height: 56px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white) url("../img/quiz-back.svg") center / 18px no-repeat;
}

.quiz-back:hover {
    border-color: var(--c-ink);
}

@media (min-width: 1024px) {
    .split.quiz .split,
    .quiz .split {
        --aside: 480px;
    }

    .quiz .section-head .section-text {
        margin-top: 0;
    }

    .quiz-card > .quiz-step:first-of-type .quiz-step__question {
        font-size: 20px;
    }
}

/* Contact Form 7 */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpcf7-form > p {
    margin: 0;
}

.wpcf7 .hidden-fields-container {
    display: none;
}

.wpcf7-form-control-wrap {
    display: block;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    color: var(--c-text);
    font-size: 13px;
    font-weight: 600;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-white);
    font-size: 17px;
    line-height: 1.45;
    transition: border-color .15s;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--c-placeholder);
}

.wpcf7 input:focus {
    border-color: var(--c-ink);
    outline: 0;
}

.wpcf7 .wpcf7-not-valid {
    border-color: var(--c-accent) !important;
}

.wpcf7-not-valid-tip {
    margin-top: 4px;
    color: var(--c-accent);
    font-size: 12px;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--c-accent-soft);
    color: var(--c-ink);
    font-size: 13px;
}

.wpcf7 form.sent .wpcf7-response-output {
    display: none;
}

.wpcf7-submit {
    width: 100%;
    cursor: pointer;
}

.wpcf7-submit:disabled {
    opacity: .7;
}

/* Sending: the button keeps its colour, its label gives way to a white ring in the middle of it.
   CF7's own grey dot is not used. */
.wpcf7 .wpcf7-spinner {
    display: none;
}

.wpcf7 form.submitting .wpcf7-spinner {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    padding: 0;
    border: 2px solid rgb(255 255 255 / .35);
    border-top-color: var(--c-white);
    border-radius: 50%;
    background: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    animation: btn-spin .7s linear infinite;
}

.wpcf7 form.submitting .wpcf7-spinner::before {
    content: none;
}

.wpcf7 form.submitting .wpcf7-submit,
.wpcf7 form.submitting .wpcf7-submit:disabled {
    background: var(--c-accent);
    box-shadow: var(--shadow-btn);
    color: transparent;
    opacity: 1;
    cursor: progress;
    pointer-events: none;
}

/* In the quiz the button sits right of the 56px back button with a 10px gap */
.quiz-nav {
    position: relative;
}

.quiz-nav .wpcf7-spinner {
    left: calc(50% + 33px);
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.form-submit {
    position: relative;
}

.form-privacy {
    color: var(--c-text);
    font-size: 12px;
    text-align: center;
}

/* Segmented radio buttons (booking form: preferred messenger) */
.segmented {
    display: flex;
    gap: 8px;
}

.segmented .wpcf7-list-item {
    flex: 1;
    margin: 0;
}

.segmented label {
    display: block;
    height: 100%;
    cursor: pointer;
}

.segmented input {
    position: absolute;
    opacity: 0;
}

.segmented .wpcf7-list-item-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px 8px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-white);
    font-size: 15px;
    text-align: center;
    transition: border-color .15s, background-color .15s;
}

.segmented input:checked + .wpcf7-list-item-label {
    border-color: var(--c-accent);
    background: var(--c-accent-tint);
}

.segmented input:focus-visible + .wpcf7-list-item-label {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

/* Quiz contact step */
.quiz-form .wpcf7-form {
    gap: 16px;
}

.quiz-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-form input[type="text"],
.quiz-form input[type="tel"] {
    padding: 16px;
    border-color: transparent;
    background: var(--c-gray);
    font-size: 15px;
    line-height: 1.4;
}

.quiz-form input::placeholder {
    color: #8a8a8a;
}

.phone-field {
    display: flex;
    gap: 8px;
}

.phone-field .wpcf7-form-control-wrap {
    flex: 1;
    min-width: 0;
}

.phone-field__prefix {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 16px 14px;
    border-radius: 12px;
    background: var(--c-gray);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.phone-field__prefix::before {
    content: "";
    width: 22px;
    height: 16px;
    background: url("../img/flag-ua.svg") center / contain no-repeat;
}

.quiz-agree {
    color: var(--c-text);
    font-size: 12px;
    line-height: 1.4;
}

.quiz-agree .wpcf7-list-item {
    margin: 0;
}

.quiz-agree label {
    display: flex;
    gap: 10px;
    cursor: pointer;
}

.quiz-agree input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid var(--c-muted);
    border-radius: 5px;
    background: var(--c-white);
    appearance: none;
    cursor: pointer;
}

.quiz-agree input[type="checkbox"]:checked {
    border: 0;
    background: url("../img/agree-check.svg") center / contain no-repeat;
}

.quiz-agree a {
    color: var(--c-accent);
    text-decoration: none;
}

.quiz-agree a:hover {
    text-decoration: underline;
}

/* The long label ("Записатися на консультацію", ~15.3 font sizes wide) stays on one line next to the back
   button on a phone: the font shrinks with the screen. The room for the text is the screen minus 166px
   (page and card paddings, back button, gap, button paddings); 16px from a 430px screen up, 12.5px at 360px.
   A longer label wraps instead of pushing the button out of the card. */
.quiz-form .quiz-nav .wpcf7-submit {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
    font-size: clamp(12px, calc((100vw - 170px) / 15.5), 16px);
    white-space: normal;
}

.quiz-form .quiz-nav {
    align-items: center;
}

/* Quiz contact step: title and the grey line under it */
.quiz-step__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-step__sub {
    color: var(--c-text);
    font-size: 13px;
    line-height: 1.45;
}

/* Quiz result screen (the stop screens are plain thank-you cards) */
.quiz-result__btn {
    width: 100%;
}

/* Thank-you card */
.thanks-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 0 8px;
    text-align: center;
    outline: 0;
}

.thanks-card__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.thanks-card__text {
    color: var(--c-text);
    font-size: 15px;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: var(--c-gray);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.info-box__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.info-box dt {
    color: var(--c-text);
}

.info-box dd {
    font-weight: 600;
    text-align: right;
}

/* Why */
.why__video {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 640 / 400;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: repeating-linear-gradient(132deg, #ececec 0 12px, #f4f4f4 12px 24px);
}

.why__video .play-btn {
    position: relative;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--c-gray);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--c-white);
}

.feature__title {
    font-size: 16px;
    font-weight: 600;
}

.feature__text {
    margin-top: -4px;
    color: var(--c-text);
    font-size: 13px;
}

@media (min-width: 1024px) {
    .why__top {
        --aside: 480px;
    }

    .why__features {
        gap: 16px;
    }

    .feature {
        min-height: 195px;
        padding: 20px;
    }

    .feature__icon {
        margin-bottom: 0;
    }
}

/* Steps */
.steps__list {
    display: flex;
    flex-direction: column;
}

.step {
    display: flex;
    gap: 16px;
}

.step__badge {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--c-accent);
    border-radius: 50%;
    background: var(--c-white);
    color: var(--c-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.step:not(:last-child) .step__badge::after {
    content: "";
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    width: 2px;
    height: 10px;
    border-radius: 1px;
    background: #e0e0e0;
    translate: -50% 0;
}

.step.is-active .step__badge {
    border-color: var(--c-accent);
    background: var(--c-accent);
    color: var(--c-white);
}

.step__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 5px;
}

.step:not(:last-child) .step__body {
    padding-bottom: 28px;
}

.step__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.step__text {
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .step__title {
        font-size: 18px;
    }

    .step__text {
        font-size: 16px;
    }
}

/* Price */
.price__row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border: 2px solid var(--c-ink);
    border-radius: 22px;
    background: var(--c-white);
}

.price-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.price-card__value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.price-card__unit {
    color: var(--c-text);
    font-size: 17px;
    font-weight: 600;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
}

.check-list__icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--c-accent);
}

.price-card__extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0 10px;
    border-top: 1px dashed var(--c-border);
    font-size: 15px;
}

.price-card__extra strong {
    font-size: 18px;
    white-space: nowrap;
}

.price-card__note {
    color: var(--c-text);
    font-size: 12px;
}

.booking {
    padding: 24px 20px;
    border-radius: 22px;
    background: var(--c-white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
}

.booking__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    scroll-margin-top: 24px;
}

.booking__text {
    color: var(--c-text);
    font-size: 13px;
    line-height: 1.45;
}

.booking.is-sent {
    display: flex;
    align-items: center;
    padding-top: 36px;
    box-shadow: var(--shadow-card);
}

@media (min-width: 1024px) {
    .price__row {
        flex-direction: row;
        align-items: stretch;
        gap: 32px;
    }

    .price-card,
    .booking {
        flex: 1;
        min-width: 0;
    }

    .price-card__value {
        font-size: 52px;
    }

    .check-list li {
        font-size: 16px;
    }

    .booking__title {
        font-size: 20px;
    }
}

/* FAQ */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
}

.faq-item__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-accent-tint);
}

.faq-item__question {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.faq-item__toggle {
    position: relative;
    flex: none;
    width: 14px;
    height: 14px;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 2px;
    margin-top: -1px;
    border-radius: 1px;
    background: var(--c-accent);
    transition: transform .2s;
}

.faq-item__toggle::after {
    transform: rotate(90deg);
}

.faq-item[open] .faq-item__toggle::after {
    transform: rotate(0);
}

.faq-item__answer {
    padding: 0 16px 18px 64px;
    color: var(--c-text);
    font-size: 15px;
}

.faq-item__answer p + p {
    margin-top: 8px;
}

/* Footer */
.site-footer {
    padding-block: 30px;
    background: var(--c-gray);
    font-size: 15px;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.site-footer__name {
    font-weight: 600;
}

.site-footer__address {
    color: var(--c-text);
}

.site-footer__note {
    color: var(--c-text);
    font-size: 12px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-nav a {
    color: var(--c-text);
    font-size: 13px;
}

/* Footer contacts card (template-parts/footer-contacts.php): name on red, details, Google map */
.site-footer:has(.contact-card) {
    padding-top: 40px;
}

.site-footer:has(.contact-card) .site-footer__inner {
    gap: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: var(--c-white);
}

.contact-card__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--c-accent);
    color: var(--c-white);
}

.contact-card__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--c-white);
    border-radius: 50%;
}

.contact-card__icon img {
    width: 26px;
    height: auto;
}

.contact-card__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.contact-card__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
}

.contact-card__text {
    color: var(--c-text);
    font-size: 15px;
    line-height: 1.6;
}

.contact-card__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--c-text);
    font-size: 15px;
    line-height: 1.4;
}

.contact-card__item::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    background: center / contain no-repeat;
}

.contact-card__item--phone::before {
    background-image: url("../img/contact-phone.svg");
}

.contact-card__item--hours::before {
    background-image: url("../img/contact-schedule.svg");
}

.contact-card__item--address::before {
    background-image: url("../img/contact-address.svg");
}

.contact-card__item a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.contact-card__item a:hover {
    color: var(--c-accent);
}

.contact-card__map {
    height: 300px;
    background: var(--c-gray);
}

.contact-card__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 1024px) {
    .site-footer:has(.contact-card) {
        padding-top: 72px;
    }

    .contact-card {
        flex-direction: row;
        min-height: 300px;
    }

    .contact-card__brand {
        flex: 0 0 25%;
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
        padding: 40px;
    }

    .contact-card__icon {
        width: 70px;
        height: 70px;
    }

    .contact-card__icon img {
        width: 35px;
    }

    .contact-card__title {
        font-size: 22px;
    }

    .contact-card__info {
        flex: 1;
        padding: 36px 40px;
    }

    .contact-card__text,
    .contact-card__item {
        font-size: 16px;
    }

    .contact-card__map {
        flex: 0 0 25%;
        height: auto;
        min-height: 300px;
    }
}

/* Sticky button on phones */
.sticky-cta {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 18px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 40%);
}

.sticky-cta__btn {
    width: 100%;
    min-height: 52px;
    border-radius: 30px;
    font-weight: 700;
}

@media (max-width: 767px) {
    body:has(.sticky-cta) {
        padding-bottom: 70px;
    }
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

/* Video modal: the frame takes the video's proportions (--video-ratio, set by main.js) and fits the screen */
.video-modal {
    --video-ratio: 1.7778;
    width: min(960px, 100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.video-modal.is-vertical {
    width: min(100vw - 32px, (100vh - 100px) * var(--video-ratio));
}

.video-modal::backdrop {
    background: rgba(0, 0, 0, .85);
}

.video-modal__frame {
    width: min(100%, (100vh - 100px) * var(--video-ratio));
    margin-inline: auto;
    aspect-ratio: var(--video-ratio);
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-modal__frame iframe,
.video-modal__frame video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
}

/* Regular pages */
.entry {
    padding-block: var(--section-y);
}

.entry-title {
    margin-bottom: 24px;
    font-size: 32px;
    line-height: 1.2;
}

.entry-content > * + * {
    margin-top: 1em;
}

.entry-content ul {
    padding-left: 1.2em;
    list-style: disc;
}

/* Reveal: blocks fade and rise into place as they scroll into view. <html class="has-reveal"> is set in
   <head> (functions.php); assets/js/main.js adds .is-visible and a staggered --reveal-delay. Keep this list
   in sync with REVEAL_SELECTOR in main.js. The first screen is not in it. */
:root {
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

.has-reveal :is(.section-head, .split__extra > *, .review-card, .pains__quote,
    .compare__table, .timeline__item, .benefit, .stat, .callout, .doctor__card, .answer-card, .scroll-hint,
    .quiz-card, .why__video, .feature, .step, .price-card, .booking, .faq-item) {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

/* The first screen is never hidden (it is the page's main paint, LCP); its photo only eases in from a
   slight zoom, which does not delay the paint */
.hero__image {
    animation: hero-zoom 1.6s var(--ease-out) both;
}

@keyframes hero-zoom {
    from {
        transform: scale(1.06);
    }
}

.has-reveal .answer-card,
.has-reveal .review-card {
    transform: translate3d(0, 40px, 0) scale(.97);
}

.has-reveal .is-visible:is(*) {
    opacity: 1;
    transform: none;
}

/* Scales of the methods table fill from the left once the table is in view */
.has-reveal .compare__bar span {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.1s var(--ease-out);
}

.has-reveal .compare__row:nth-child(2) .compare__bar span { transition-delay: .15s; }
.has-reveal .compare__row:nth-child(3) .compare__bar span { transition-delay: .3s; }
.has-reveal .compare__row:nth-child(4) .compare__bar span { transition-delay: .45s; }
.has-reveal .compare__row:nth-child(n+5) .compare__bar span { transition-delay: .6s; }

.has-reveal .compare__table.is-visible .compare__bar span {
    transform: none;
}

/* Timeline: the red top line of the first step draws in (desktop) */
@media (min-width: 1024px) {
    .timeline__item {
        position: relative;
    }

    .timeline__item.is-active {
        border-top-color: #d9dce0;
    }

    .timeline__item.is-active::before {
        content: "";
        position: absolute;
        top: -3px;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--c-accent);
        transform-origin: left center;
    }

    .has-reveal .timeline__item.is-active::before {
        transform: scaleX(0);
        transition: transform 1s var(--ease-out) .35s;
    }

    .has-reveal .timeline__item.is-active.is-visible::before {
        transform: none;
    }
}

/* Play buttons: a soft ring pulses around them */
.play-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(200, 0, 0, .45);
    animation: play-ring 2.4s var(--ease-out) infinite;
    pointer-events: none;
}

.play-btn--sm::after {
    border-color: rgba(255, 255, 255, .5);
}

@keyframes play-ring {
    0% {
        opacity: .9;
        transform: scale(1);
    }
    70%, 100% {
        opacity: 0;
        transform: scale(1.7);
    }
}

/* Video posters zoom a little on hover */
.answer-card__poster,
.review-card__poster,
.why__poster {
    transition: transform .6s var(--ease-out);
}

.answer-card:hover .answer-card__poster,
.review-card:hover .review-card__poster,
.why__video:hover .why__poster {
    transform: scale(1.05);
}

.play-btn {
    transition: transform .35s var(--ease-out);
}

/* Buttons lift a little on hover */
/* Longhands, so a button that is also a reveal target keeps its fade-in and delay */
.btn--primary:not(:disabled) {
    transition-property: background-color, box-shadow, transform, opacity;
    transition-duration: .2s, .3s, .5s, .8s;
    transition-timing-function: ease, var(--ease-out), var(--ease-out), var(--ease-out);
}

.btn--primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 18px rgba(200, 0, 0, .3);
}

.btn--primary:not(:disabled):active {
    transform: translateY(0);
    box-shadow: var(--shadow-btn);
}

/* Quiz: each new step slides in; the thank-you card pops up */
.quiz-step.is-entering {
    animation: step-in .45s var(--ease-out) both;
}

.quiz-step.is-entering.is-back {
    animation-name: step-in-back;
}

@keyframes step-in {
    from {
        opacity: 0;
        transform: translate3d(24px, 0, 0);
    }
}

@keyframes step-in-back {
    from {
        opacity: 0;
        transform: translate3d(-24px, 0, 0);
    }
}

.thanks-card:not([hidden]) {
    animation: thanks-in .6s var(--ease-out) both;
}

.thanks-card:not([hidden]) .thanks-card__icon {
    animation: thanks-icon .7s var(--ease-out) .1s both;
}

@keyframes thanks-in {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
}

@keyframes thanks-icon {
    from {
        opacity: 0;
        transform: scale(.4) rotate(-20deg);
    }
}

.quiz-option {
    transition: border-color .15s, background-color .15s, transform .2s var(--ease-out);
}

.quiz-option:active {
    transform: scale(.985);
}

.quiz-option:has(input:checked) .quiz-option__indicator {
    animation: tick .3s var(--ease-out);
}

@keyframes tick {
    50% {
        transform: scale(1.18);
    }
}

/* FAQ: the answer fades in when an item opens */
.faq-item[open] .faq-item__answer {
    animation: answer-in .4s var(--ease-out);
}

@keyframes answer-in {
    from {
        opacity: 0;
        transform: translate3d(0, -6px, 0);
    }
}

.faq-item {
    transition-property: border-color, box-shadow, opacity, transform;
    transition-duration: .2s, .3s, .8s, .8s;
    transition-timing-function: ease, var(--ease-out), var(--ease-out), var(--ease-out);
}

.faq-item:hover {
    border-color: #d5d5d5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.faq-item__toggle::after {
    transition: transform .3s var(--ease-out);
}

/* Mobile sticky button slides up shortly after the page loads */
.sticky-cta {
    animation: sticky-in .7s var(--ease-out) .9s both;
}

@keyframes sticky-in {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
}

/* No motion for people who asked for less */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    /* The sending ring still turns, slowly: it is the only sign the form is being sent */
    .wpcf7 form.submitting .wpcf7-spinner {
        animation-duration: 1.6s !important;
        animation-iteration-count: infinite !important;
    }

    .play-btn::after {
        display: none;
    }
}
