/* quiz v6 — single-column multi-step funnel (layout, states, transitions only; palette from theme) */
.quiz-step__app {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.quiz-step__bar {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: center;
    gap: 0.75rem;
    min-height: 3rem;
}

.quiz-step__back {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}

.quiz-step__back[hidden] {
    display: grid !important;
    visibility: hidden;
}

.quiz-step__track {
    height: 0.375rem;
    overflow: hidden;
}

.quiz-step__fill {
    width: 0;
    height: 100%;
    transition: width 0.35s ease;
}

.quiz-step__panel {
    animation: quizIn 0.3s ease both;
}

@keyframes quizIn {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .quiz-step__panel { animation: none; }
    .quiz-step__fill,
    .quiz-step__ring-val,
    .quiz-step__check-dot { transition: none; }
}

/* answer rows / tiles / starts */
.quiz-step__start,
.quiz-step__yesno,
.quiz-step__option,
.quiz-step__tile {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.quiz-step__option:active,
.quiz-step__tile:active { transform: scale(0.99); }

.quiz-step__option.is-chosen,
.quiz-step__tile.is-chosen {
    border-color: currentColor !important;
    box-shadow: inset 0 0 0 1px currentColor;
}

/* selection mark — filled with currentColor when chosen */
.quiz-step__mark {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    border: 1.5px solid currentColor;
    display: grid;
    place-items: center;
    opacity: 0.55;
    transition: opacity 0.15s, background-color 0.15s;
}

.is-chosen .quiz-step__mark {
    opacity: 1;
    background-color: currentColor;
}

/* white tick inside the filled mark when chosen */
.is-chosen .quiz-step__mark::after {
    content: "";
    width: 0.55rem;
    height: 0.3rem;
    border: 0.14rem solid #fff;
    border-top: 0;
    border-right: 0;
    transform: translateY(-0.06rem) rotate(-45deg);
}

/* square mark variant (multi) */
.quiz-step__mark--sq { border-radius: 0.4rem; }

/* radio dot (single · S2) */
.quiz-step__dot {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    border: 1.6px solid currentColor;
    border-radius: 50%;
    opacity: 0.55;
    transition: opacity 0.15s, box-shadow 0.15s;
}

.is-chosen .quiz-step__dot {
    opacity: 1;
    box-shadow: inset 0 0 0 0.3rem currentColor;
}

/* pill option (single · S4 / multi · M3): fills with currentColor when chosen */
.quiz-opt--pill {
    transition: background-color 0.15s, border-color 0.15s;
}

.quiz-opt--pill.is-chosen {
    background-color: currentColor;
    box-shadow: none;
}

.quiz-opt--pill.is-chosen .quiz-step__opt-label { color: #fff !important; }

/* filled row (multi · M5): whole row fills, tick without a box */
.quiz-opt--fill .quiz-step__mark { border-color: transparent; }

.quiz-opt--fill.is-chosen {
    background-color: currentColor;
    box-shadow: none;
}

.quiz-opt--fill.is-chosen .quiz-step__opt-label { color: #fff !important; }
.quiz-opt--fill.is-chosen .quiz-step__mark { background-color: transparent; opacity: 1; }

/* photo tile with label overlay (tiles · T5) */
.quiz-step__tover-label {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* slider (number · N5) */
.quiz-step__range {
    display: block;
    width: 100%;
    cursor: pointer;
}

.quiz-step__bubble {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.1;
}

/* visually hidden native inputs — the row carries the state */
.quiz-step__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.quiz-step__consent-box {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

/* number input */
.quiz-step__num {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
    padding: 0 0.25rem 0.4rem;
}

.quiz-step__num-field {
    min-width: 0;
    width: 100%;
    border: 0;
    background: none;
    text-align: center;
    padding: 0;
    font-weight: 700;
    font-size: clamp(2.2rem, 10vw, 2.9rem);
    line-height: 1.1;
}

.quiz-step__num-field:focus { outline: 0; }

/* statement card */
.quiz-step__statement {
    display: grid;
    gap: 1.1rem;
    justify-items: center;
    text-align: center;
}

/* statement with a full-bleed photo on top — no inner gap (quote carries its own padding) */
.quiz-step__statement.is-topphoto {
    gap: 0;
    padding: 0;
}

/* statement quote — serif, wrapped in guillemets */
.quiz-step__quote {
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.3;
}

.quiz-step__quote::before { content: "\00ab\00a0"; }
.quiz-step__quote::after { content: "\00a0\00bb"; }

/* loader ring */
.quiz-step__ring {
    position: relative;
    width: 10.5rem;
    height: 10.5rem;
    margin: 1.25rem auto 1.5rem;
}

.quiz-step__ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.quiz-step__ring circle {
    fill: none;
    stroke-width: 10;
}

.quiz-step__ring-val {
    stroke-linecap: round;
    transition: stroke-dashoffset 0.12s linear;
}

.quiz-step__ring span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 2.2rem;
}

.quiz-step__check {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.quiz-step__check.is-done { opacity: 1; }

.quiz-step__check-dot {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: 1.5px solid currentColor;
    display: grid;
    place-items: center;
    transition: background-color 0.3s;
}

.quiz-step__check.is-done .quiz-step__check-dot { background-color: currentColor; }

/* white tick inside the dot once the step is done */
.quiz-step__check.is-done .quiz-step__check-dot::after {
    content: "";
    width: 0.4rem;
    height: 0.22rem;
    border: 0.1rem solid #fff;
    border-top: 0;
    border-right: 0;
    transform: translateY(-0.03rem) rotate(-45deg);
}

/* intro · age-start buttons (first-page variant 2) */
.quiz-step__agebtn {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    min-height: 3.25rem;
    transition: border-color 0.15s, background-color 0.15s;
}

.quiz-step__agebtn:hover { border-color: currentColor; }

/* intro · full-bleed overlay (variant 5): legibility gradient over the photo */
.quiz-step__overlay-inner {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1) 70%, transparent);
}

/* loader · linear progress bar (variants 2, 4) */
.quiz-step__lbar { height: 0.6rem; }

.quiz-step__lbar-fill {
    width: 0;
    height: 100%;
    transition: width 0.12s linear;
}

/* loader · percent readouts (variants 2, 4) */
.quiz-step__bigpct {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.6rem, 12vw, 3.4rem);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.quiz-step__hugepct {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(3.6rem, 20vw, 5.5rem);
    line-height: 1;
}

/* loader · step pills (variant 2) */
.quiz-step__lpill { transition: background-color 0.3s, color 0.3s; }

.quiz-step__lpill.is-done {
    background-color: currentColor;
    color: #fff;
}

/* loader · spinner (variant 3) */
.quiz-step__spinner {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: 0.28rem solid rgba(128, 128, 128, 0.2);
    border-top-color: currentColor;
    animation: quizSpin 0.8s linear infinite;
}

@keyframes quizSpin { to { transform: rotate(360deg); } }

/* loader · scan / pulse (variant 5) */
.quiz-step__scan {
    position: relative;
    width: 7.5rem;
    height: 7.5rem;
}

.quiz-step__scan-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.25;
    animation: quizPulse 1.8s ease-out infinite;
}

.quiz-step__scan-ring:nth-child(2) { animation-delay: 0.6s; }
.quiz-step__scan-ring:nth-child(3) { animation-delay: 1.2s; }

@keyframes quizPulse {
    0% { transform: scale(0.5); opacity: 0.5; }
    100% { transform: scale(1.25); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .quiz-step__spinner,
    .quiz-step__scan-ring { animation: none; }
}

/* buttons */
.quiz-step__cta,
.quiz-step__submit,
.quiz-step__age,
.quiz-step__yesno {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}

.quiz-step__cta,
.quiz-step__submit {
    min-height: 3.25rem;
    width: 100%;
    transition: filter 0.15s;
}

.quiz-step__cta[hidden] { display: none !important; }

.quiz-step__cta:hover:not(:disabled),
.quiz-step__submit:hover:not(:disabled),
.quiz-step__age:hover,
.quiz-step__yesno:hover { filter: brightness(1.08); }

.quiz-step__cta:disabled,
.quiz-step__submit:disabled {
    opacity: 0.45;
    cursor: default;
    filter: none;
}

.quiz-step__age { min-height: 3.25rem; }
.quiz-step__yesno { min-height: 3rem; }

.quiz-step__media { overflow: hidden; }

/* --- Bootstrap parity: image sizing (TW constrains via aspect-[*] utilities; BS has none) --- */
.quiz-step__hero img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.quiz-step__split img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.quiz-step__overlay img { aspect-ratio: 3 / 4; max-height: 24rem; width: 100%; object-fit: cover; }
.quiz-step__media img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.quiz-step__stmt-photo { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.quiz-step__avatar { width: 7rem; height: 7rem; }
.quiz-step__avatar img { width: 100%; height: 100%; object-fit: cover; }
.quiz-step__ifull img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.quiz-step__iside img { width: 5.25rem; height: 5.25rem; object-fit: cover; }
.quiz-step__tile img:not(.quiz-step__thumb) { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.quiz-step__tover img { aspect-ratio: 5 / 3; width: 100%; object-fit: cover; }
.quiz-step__thumb { width: 4rem; height: 3rem; object-fit: cover; flex: none; }

/* --- Bootstrap parity: option grids (BS row/col gutters are inner padding, so bordered cards touch) --- */
.quiz-step__opts2,
.quiz-step__opts3,
.quiz-step__agegrid { display: grid !important; gap: 0.625rem; margin-left: 0 !important; margin-right: 0 !important; }
.quiz-step__opts2,
.quiz-step__agegrid { grid-template-columns: 1fr 1fr; }
.quiz-step__opts3 { grid-template-columns: repeat(3, 1fr); }
.quiz-step__opts2 > *,
.quiz-step__opts3 > *,
.quiz-step__agegrid > * { width: auto !important; max-width: none !important; margin: 0 !important; }


/* tiles — make selection obvious on photos: strong primary ring + check badge */
.quiz-step__tile { position: relative; }
.quiz-step__tile.is-chosen { box-shadow: 0 0 0 3px currentColor; border-color: currentColor !important; }
.quiz-step__tile.is-chosen::after {
    content: "";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: currentColor;
    z-index: 2;
}
.quiz-step__tile.is-chosen::before {
    content: "";
    position: absolute;
    top: 0.86rem;
    right: 1.06rem;
    width: 0.38rem;
    height: 0.66rem;
    border: 0.15rem solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    z-index: 3;
}

/* overlay-text-on-photo (info V5-full-bleed, intro V5-overlay) — darken + slight blur so white text reads */
.quiz-step__ifull img,
.quiz-step__overlay img { filter: brightness(0.55) blur(2px); transform: scale(1.06); }


/* ============ intro hero (first screen) ============ */
.hero-x {
    --hx-accent: #3f6b57;
    --hx-accent-2: #d98e5f;
    --hx-ink: #1e2a24;
    --hx-muted: #5e6b64;
    --hx-surface: #fbfaf6;
    --hx-line: rgba(63, 107, 87, 0.14);
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    background: var(--hx-surface);
    border: 1px solid var(--hx-line);
    box-shadow:
        0 1px 2px rgba(20, 30, 25, 0.04),
        0 24px 60px -24px rgba(30, 60, 45, 0.35);
}

.hero-x__media {
    position: relative;
    overflow: hidden;
    height: clamp(9rem, 30vh, 15rem);
}

.hero-x__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.04);
    animation: hxZoom 14s ease-out both;
}

.hero-x__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 30, 25, 0) 45%, rgba(20, 30, 25, 0.35) 80%, var(--hx-surface) 100%),
        linear-gradient(135deg, rgba(217, 142, 95, 0.18), transparent 55%);
}

.hero-x__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(20, 30, 25, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-x__badge .ti { color: #f2c9a9; font-size: 1rem; }

.hero-x__body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.25rem 1.25rem 1.1rem;
    margin-top: -1.25rem;
}

.hero-x__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hx-accent);
}

.hero-x__eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--hx-accent), var(--hx-accent-2));
}

.hero-x__title {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.55rem, 4.6vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--hx-ink);
    text-wrap: balance;
}

.hero-x__title em {
    font-style: italic;
    background: linear-gradient(90deg, var(--hx-accent), var(--hx-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-x__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--hx-muted);
}

.hero-x__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-x__chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hx-ink);
    background: #eef3ef;
    border: 1px solid var(--hx-line);
}

.hero-x__chips .ti { color: var(--hx-accent); font-size: 1.05rem; }

.hero-x__cta {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3.1rem;
    margin-top: 0.1rem;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 1rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #4f8069 0%, var(--hx-accent) 55%, #2e5242 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 12px 28px -10px rgba(63, 107, 87, 0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-x__cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: hxShine 3.6s ease-in-out 1.2s infinite;
}

.hero-x__cta .ti {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.hero-x__cta:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 18px 34px -12px rgba(63, 107, 87, 0.75);
}

.hero-x__cta:hover .ti { transform: translateX(4px); }
.hero-x__cta:active { transform: translateY(0); }

.hero-x__cta:focus-visible {
    outline: 3px solid rgba(217, 142, 95, 0.55);
    outline-offset: 3px;
}

.hero-x__legal {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    padding-top: 0.7rem;
    border-top: 1px dashed var(--hx-line);
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--hx-muted);
}

.hero-x__legal .ti { flex: none; margin-top: 0.1rem; font-size: 1rem; color: var(--hx-accent); }

.hero-x__legal a {
    color: var(--hx-accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(63, 107, 87, 0.35);
    text-underline-offset: 3px;
}

.hero-x__legal a:hover { text-decoration-color: currentColor; }

#quiz:has([data-kind="first"]:not([hidden])) { padding-top: 1rem; padding-bottom: 1rem; }

@media (min-width: 768px) {
    .hero-x__body { padding: 0.25rem 1.75rem 1.4rem; gap: 0.8rem; }
    .hero-x__badge { top: 1rem; left: 1rem; }
}

@keyframes hxZoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }
@keyframes hxShine { 0% { left: -60%; } 45%, 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
    .hero-x__media img,
    .hero-x__cta::before { animation: none; }
}

/* dark theme */
.dark .hero-x {
    --hx-ink: #eef3ef;
    --hx-muted: #b3c2ba;
    --hx-surface: #141c18;
    --hx-line: rgba(143, 193, 169, 0.16);
}

.dark .hero-x__chips li { background: rgba(143, 193, 169, 0.08); }
.dark .hero-x__eyebrow,
.dark .hero-x__legal a,
.dark .hero-x__legal .ti,
.dark .hero-x__chips .ti { color: #8fc1a9; }

/* ============ header ============ */
.site-hd {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 250, 246, 0.82);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.site-hd::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(63, 107, 87, 0.35) 20%, rgba(63, 107, 87, 0.35) 80%, transparent);
}

.site-hd__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.8rem 1.25rem;
}

.site-hd__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #1e2a24;
    text-decoration: none;
}

.site-hd__mark {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(140deg, #4f8069, #3f6b57 55%, #2e5242);
    color: #fff;
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1;
    padding-bottom: 0.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 14px -6px rgba(63, 107, 87, 0.7);
    transition: transform 0.3s ease;
}

.site-hd__brand:hover .site-hd__mark { transform: rotate(-8deg); }

.site-hd__name {
    display: flex;
    flex-direction: column;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

.site-hd__tag {
    margin-top: 0.3rem;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #3f6b57;
}

.site-hd__menu {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    height: 2.6rem;
    padding: 0 0.55rem 0 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(63, 107, 87, 0.25);
    background: #fff;
    color: #1e2a24;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.site-hd__burger {
    display: grid;
    align-content: center;
    gap: 4px;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.42rem;
    border-radius: 50%;
    background: #3f6b57;
    transition: background-color 0.2s;
}

.site-hd__burger i {
    display: block;
    height: 1.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.25s ease;
}

.site-hd__burger i:last-child { width: 60%; justify-self: end; }

.site-hd__menu:hover { border-color: #3f6b57; background: #eef3ef; }
.site-hd__menu:hover .site-hd__burger i:last-child { width: 100%; }
.site-hd__menu:focus-visible { outline: 2px solid rgba(63, 107, 87, 0.5); outline-offset: 2px; }

@media (max-width: 420px) {
    .site-hd__menu-label { display: none; }
    .site-hd__menu { padding: 0 0.4rem; }
}

@media (min-width: 768px) {
    .site-hd__inner { padding: 0.95rem 2rem; }
}

/* menu panel */
.site-mm__veil { background: rgba(20, 30, 25, 0.4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

.site-mm {
    display: flex;
    flex-direction: column;
    width: min(88vw, 24rem);
    padding: 1.25rem 1.75rem 1.75rem;
    background: #fbfaf6;
}

.site-mm__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(63, 107, 87, 0.15);
}

.site-mm__title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #3f6b57;
}

.site-mm__close {
    appearance: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid rgba(63, 107, 87, 0.25);
    background: transparent;
    color: #1e2a24;
    cursor: pointer;
    transition: transform 0.25s, background-color 0.2s;
}

.site-mm__close:hover { background: #eef3ef; transform: rotate(90deg); }

.site-mm__list { margin: 0.5rem 0 0; padding: 0; list-style: none; }

.site-mm__list a {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(63, 107, 87, 0.1);
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #1e2a24;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.25s;
}

.site-mm__list a span {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #8aa598;
}

.site-mm__list a i {
    margin-left: auto;
    font-size: 1.1rem;
    color: #3f6b57;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.2s, transform 0.2s;
}

.site-mm__list a:hover { color: #3f6b57; padding-left: 0.3rem; }
.site-mm__list a:hover i { opacity: 1; transform: none; }

.site-mm__foot {
    margin: auto 0 0;
    padding-top: 2rem;
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: #5e6b64;
}

/* dark */
.dark .site-hd { background: rgba(20, 28, 24, 0.82); }
.dark .site-hd__brand,
.dark .site-hd__menu,
.dark .site-mm__close,
.dark .site-mm__list a { color: #eef3ef; }
.dark .site-hd__menu { background: transparent; border-color: rgba(143, 193, 169, 0.25); }
.dark .site-hd__tag,
.dark .site-mm__title { color: #8fc1a9; }
.dark .site-mm { background: #141c18; }

/* ============ info steps (image + statement) — card in hero style ============ */
.quiz-step__iside {
    display: block !important;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fbfaf6;
    border: 1px solid rgba(63, 107, 87, 0.14);
    box-shadow: 0 1px 2px rgba(20, 30, 25, 0.04), 0 20px 50px -26px rgba(30, 60, 45, 0.35);
}

.quiz-step__iside > span {
    position: relative;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: clamp(8rem, 24vh, 12rem);
}

.quiz-step__iside > span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, #fbfaf6 100%);
}

.quiz-step__iside img,
.quiz-step__iside > span img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center 35%;
}

.quiz-step__iside > div {
    position: relative;
    padding: 0.25rem 1.5rem 1.4rem;
    margin-top: -0.75rem;
}

.quiz-step__iside h3 {
    margin-bottom: 0.6rem !important;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600 !important;
    font-size: clamp(1.35rem, 4vw, 1.7rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em;
    color: #1e2a24 !important;
    text-wrap: balance;
}

.quiz-step__iside p {
    font-size: 0.95rem !important;
    line-height: 1.55;
    color: #5e6b64 !important;
}

@media (min-width: 768px) {
    .quiz-step__iside > div { padding: 0.25rem 1.9rem 1.6rem; }
}

.dark .quiz-step__iside { background: #141c18; border-color: rgba(143, 193, 169, 0.16); }
.dark .quiz-step__iside > span::after { background: linear-gradient(180deg, transparent 55%, #141c18 100%); }
.dark .quiz-step__iside h3 { color: #eef3ef !important; }
.dark .quiz-step__iside p { color: #b3c2ba !important; }

/* ============ thank-you page ============ */
.ty {
    padding: 2rem 1.25rem 3rem;
    background:
        radial-gradient(60rem 26rem at 50% -6rem, rgba(217, 142, 95, 0.14), transparent 70%),
        #fff;
}

.ty__card {
    position: relative;
    max-width: 34rem;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 1.75rem;
    text-align: center;
    border-radius: 1.75rem;
    background: #fbfaf6;
    border: 1px solid rgba(63, 107, 87, 0.14);
    box-shadow: 0 1px 2px rgba(20, 30, 25, 0.04), 0 24px 60px -24px rgba(30, 60, 45, 0.35);
    animation: tyIn 0.5s ease both;
}

.ty__seal {
    width: 4.75rem;
    height: 4.75rem;
    margin: 0 auto 1.25rem;
    padding: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(140deg, #4f8069, #3f6b57 55%, #2e5242);
    box-shadow: 0 0 0 6px #eef3ef, 0 0 0 7px rgba(63, 107, 87, 0.2), 0 14px 28px -10px rgba(63, 107, 87, 0.7);
}

.ty__seal svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.ty__ring { stroke-width: 1.5; opacity: 0.35; stroke-dasharray: 151; stroke-dashoffset: 151; animation: tyDraw 0.7s 0.2s ease-out forwards; }
.ty__tick { stroke-width: 3.2; stroke-dasharray: 36; stroke-dashoffset: 36; animation: tyDraw 0.45s 0.7s ease-out forwards; }

.ty__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3f6b57;
}

.ty__eyebrow::before,
.ty__eyebrow::after {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: rgba(63, 107, 87, 0.45);
}

.ty__title {
    margin: 0.5rem 0 0.75rem;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #1e2a24;
}

.ty__title em {
    font-style: italic;
    background: linear-gradient(90deg, #3f6b57, #d98e5f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ty__lead {
    max-width: 26rem;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #5e6b64;
}

.ty__steps {
    display: grid;
    gap: 0;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    text-align: left;
    border-top: 1px solid rgba(63, 107, 87, 0.12);
}

.ty__steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(63, 107, 87, 0.12);
}

.ty__steps b {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: #eef3ef;
    border: 1px solid rgba(63, 107, 87, 0.25);
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 600;
    color: #3f6b57;
}

.ty__steps span { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.85rem; line-height: 1.4; color: #5e6b64; }
.ty__steps strong { font-size: 0.95rem; font-weight: 600; color: #1e2a24; }

.ty__note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    padding: 0.8rem 1rem;
    border-radius: 0.9rem;
    background: #eef3ef;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #5e6b64;
}

.ty__note .ti { flex: none; font-size: 1.15rem; color: #3f6b57; }

.ty__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 3.2rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    background: linear-gradient(135deg, #4f8069 0%, #3f6b57 55%, #2e5242 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 28px -10px rgba(63, 107, 87, 0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ty__cta .ti { font-size: 1.2rem; transition: transform 0.2s ease; }
.ty__cta:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 34px -12px rgba(63, 107, 87, 0.75); }
.ty__cta:hover .ti { transform: translateX(-4px); }
.ty__cta:focus-visible { outline: 3px solid rgba(217, 142, 95, 0.55); outline-offset: 3px; }

@media (min-width: 768px) {
    .ty { padding: 3.5rem 2rem 4.5rem; }
    .ty__card { padding: 2.75rem 2.5rem 2.25rem; }
}

@keyframes tyIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tyDraw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    .ty__card { animation: none; }
    .ty__ring, .ty__tick { animation: none; stroke-dashoffset: 0; }
}

.dark .ty { background: radial-gradient(60rem 26rem at 50% -6rem, rgba(217, 142, 95, 0.12), transparent 70%), #0e1411; }
.dark .ty__card { background: #141c18; border-color: rgba(143, 193, 169, 0.16); }
.dark .ty__title, .dark .ty__steps strong { color: #eef3ef; }
.dark .ty__lead, .dark .ty__steps span, .dark .ty__note { color: #b3c2ba; }
.dark .ty__note, .dark .ty__steps b { background: rgba(143, 193, 169, 0.08); }
.dark .ty__seal { box-shadow: 0 0 0 6px #141c18, 0 0 0 7px rgba(143, 193, 169, 0.2); }

/* italic + background-clip:text — give the slanted glyphs room so they aren't cut off */
.ty__title em,
.hero-x__title em {
    padding: 0 0.12em 0.06em 0.02em;
    margin-right: -0.1em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ============ all quiz buttons — same look as the intro CTA ============ */
.quiz-step__cta,
.quiz-step__submit {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3.1rem;
    padding: 0 1.5rem !important;
    border: 0 !important;
    border-radius: 1rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #4f8069 0%, #3f6b57 55%, #2e5242 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 12px 28px -10px rgba(63, 107, 87, 0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.quiz-step__cta::before,
.quiz-step__submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: hxShine 3.6s ease-in-out 1.2s infinite;
}

.quiz-step__cta .ti,
.quiz-step__submit .ti {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.quiz-step__cta:hover:not(:disabled),
.quiz-step__submit:hover:not(:disabled) {
    filter: none;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 18px 34px -12px rgba(63, 107, 87, 0.75);
}

.quiz-step__cta:hover:not(:disabled) .ti,
.quiz-step__submit:hover:not(:disabled) .ti { transform: translateX(4px); }

.quiz-step__cta:active:not(:disabled),
.quiz-step__submit:active:not(:disabled) { transform: translateY(0); }

.quiz-step__cta:focus-visible,
.quiz-step__submit:focus-visible {
    outline: 3px solid rgba(217, 142, 95, 0.55);
    outline-offset: 3px;
}

.quiz-step__cta:disabled,
.quiz-step__submit:disabled {
    opacity: 0.45;
    box-shadow: none;
    cursor: default;
}

.quiz-step__cta:disabled::before,
.quiz-step__submit:disabled::before { animation: none; display: none; }

.quiz-step__cta[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .quiz-step__cta::before,
    .quiz-step__submit::before { animation: none; }
}

/* ============ cookie popup ============ */
.ck {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    max-width: 23rem;
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 1.25rem;
    background: #fbfaf6;
    border: 1px solid rgba(63, 107, 87, 0.16);
    box-shadow: 0 1px 2px rgba(20, 30, 25, 0.05), 0 22px 50px -18px rgba(25, 45, 35, 0.4);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ck--in { opacity: 1; transform: none; }

.ck__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }

.ck__icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #eef3ef;
    color: #3f6b57;
    font-size: 1.15rem;
}

.ck__title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e2a24;
}

.ck__text {
    margin: 0 0 0.95rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #5e6b64;
}

.ck__text a {
    color: #3f6b57;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(63, 107, 87, 0.35);
    text-underline-offset: 2px;
}

.ck__actions { display: flex; gap: 0.5rem; }

.ck__btn {
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    min-height: 2.6rem;
    padding: 0 0.75rem;
    border-radius: 0.8rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ck__btn--ghost {
    border: 1px solid rgba(63, 107, 87, 0.3);
    background: transparent;
    color: #1e2a24;
}

.ck__btn--ghost:hover { border-color: #3f6b57; background: #eef3ef; }

.ck__btn--main {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #4f8069 0%, #3f6b57 55%, #2e5242 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -8px rgba(63, 107, 87, 0.7);
}

.ck__btn--main:hover { transform: translateY(-1px); }
.ck__btn:focus-visible { outline: 3px solid rgba(217, 142, 95, 0.55); outline-offset: 2px; }

@media (min-width: 640px) {
    .ck { left: 1.5rem; right: auto; bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ck { transition: none; }
}

.dark .ck { background: #141c18; border-color: rgba(143, 193, 169, 0.16); }
.dark .ck__title, .dark .ck__btn--ghost { color: #eef3ef; }
.dark .ck__text { color: #b3c2ba; }
.dark .ck__icon { background: rgba(143, 193, 169, 0.08); color: #8fc1a9; }
.dark .ck__text a { color: #8fc1a9; }

/* header mark (logo image) */
img.site-hd__mark {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 0.7rem;
    background: none;
    box-shadow: 0 6px 14px -6px rgba(63, 107, 87, 0.7);
}
.site-hd__brand:hover img.site-hd__mark { transform: rotate(-6deg); }

/* refined lockup: light mark + "Mon" / italic "Mois" */
.site-hd__brand { gap: 0.6rem; }
img.site-hd__mark,
.site-hd__mark {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 0.65rem !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.site-hd__brand:hover img.site-hd__mark { transform: rotate(-6deg); }
.site-hd__name {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.site-hd__name em {
    font-style: italic;
    font-weight: 500;
    color: #3f6b57;
    margin-left: 0.04em;
}
.dark .site-hd__name em { color: #8fc1a9; }
.site-hd__name { display: inline-block; white-space: nowrap; }
.site-hd__name em { margin-left: -0.02em; }
.site-hd__name { font-size: 1.6rem; }

/* ============ result: on-screen plan ============ */
.plan {
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fbfaf6;
    border: 1px solid rgba(63, 107, 87, 0.14);
    box-shadow: 0 1px 2px rgba(20, 30, 25, 0.04), 0 20px 50px -26px rgba(30, 60, 45, 0.35);
    padding: 1.5rem 1.25rem 1.25rem;
}

.plan__head { text-align: center; margin-bottom: 1.1rem; }

.plan__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3f6b57;
}

.plan__title {
    margin: 0.35rem 0 0.4rem;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    line-height: 1.15;
    color: #1e2a24;
}

.plan__title em {
    font-style: italic;
    color: #3f6b57;
}

.plan__lead { margin: 0; font-size: 0.9rem; color: #5e6b64; }

.plan__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.plan__stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.6rem;
    border-radius: 0.9rem;
    background: #eef3ef;
    text-align: center;
}

.plan__stat span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #6f7d76; }
.plan__stat strong { font-size: 0.92rem; line-height: 1.25; color: #1e2a24; }

.plan__steps { margin: 0; padding: 0; list-style: none; counter-reset: plan; }

.plan__steps > li {
    position: relative;
    padding: 0.9rem 0 0.9rem 2.6rem;
    border-top: 1px solid rgba(63, 107, 87, 0.12);
    counter-increment: plan;
}

.plan__steps > li::before {
    content: counter(plan);
    position: absolute;
    left: 0;
    top: 0.85rem;
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: 1px solid rgba(63, 107, 87, 0.35);
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 600;
    color: #3f6b57;
}

.plan__steps h4 { margin: 0 0 0.25rem; font-size: 0.98rem; font-weight: 700; color: #1e2a24; }
.plan__steps p,
.plan__steps ul { margin: 0; font-size: 0.88rem; line-height: 1.55; color: #4f5c55; }
.plan__steps ul { padding-left: 1.1rem; list-style: disc; }
.plan__steps ul li { margin-bottom: 0.3rem; }

.plan__note {
    margin: 0.6rem 0 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(63, 107, 87, 0.2);
    font-size: 0.74rem;
    line-height: 1.45;
    color: #7a857f;
}

.plan__print {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(63, 107, 87, 0.3);
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e2a24;
    cursor: pointer;
}

.plan__print:hover { background: #eef3ef; border-color: #3f6b57; }

/* optional email copy */
.plan-mail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: #f6f4ee;
    border: 1px solid rgba(63, 107, 87, 0.12);
}

.plan-mail__title { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; font-weight: 600; color: #1e2a24; }
.plan-mail__title span { font-family: "DM Sans", system-ui, sans-serif; font-size: 0.78rem; font-weight: 500; color: #7a857f; }

.plan-mail__input {
    height: 3.2rem;
    width: 100%;
    padding: 0 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(63, 107, 87, 0.25);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: #1e2a24;
}

.plan-mail__input:focus { outline: 2px solid rgba(217, 142, 95, 0.5); outline-offset: 1px; border-color: #3f6b57; }

.plan-mail__check { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.82rem; line-height: 1.45; color: #4f5c55; cursor: pointer; }
.plan-mail__check input { flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.12rem; accent-color: #3f6b57; }
.plan-mail__check a { color: #3f6b57; font-weight: 600; text-decoration: underline; }
.plan-mail__check em { font-style: normal; color: #7a857f; }

.plan-mail__error {
    margin: 0;
    padding: 0.6rem 0.8rem;
    border-radius: 0.7rem;
    background: #fdecea;
    color: #a3261b;
    font-size: 0.84rem;
}

.plan-mail__fine { margin: 0; text-align: center; font-size: 0.74rem; color: #7a857f; }

.plan-mail__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quiz-step__hint.is-invalid { color: #a3261b; }

@media (min-width: 768px) {
    .plan { padding: 2rem 1.9rem 1.5rem; }
    .plan-mail { padding: 1.5rem 1.9rem; }
}

@media (max-width: 380px) {
    .plan__stats { grid-template-columns: 1fr; }
}

@media print {
    .site-hd, footer, .ck, .plan-mail, .plan__print, [data-quiz-head], .quiz-step__bar { display: none !important; }
    .plan { box-shadow: none; border: 0; }
}

.dark .plan, .dark .plan-mail { background: #141c18; border-color: rgba(143, 193, 169, 0.16); }
.dark .plan__title, .dark .plan__steps h4, .dark .plan__stat strong, .dark .plan-mail__title, .dark .plan__print { color: #eef3ef; }
.dark .plan__stat { background: rgba(143, 193, 169, 0.08); }
.dark .plan__steps p, .dark .plan__steps ul, .dark .plan__lead, .dark .plan-mail__check { color: #b3c2ba; }
.dark .plan-mail__input { background: #0e1411; color: #eef3ef; }

/* legal pages: lists */
article ul.list-disc { list-style: disc; padding-left: 1.25rem; }
article ul.list-disc li { margin-bottom: 0.4rem; }

/* result: email form now sits inside the summary card */
.plan .plan-mail { margin: 1rem 0 0; }
.plan-mail__sub { margin: -0.35rem 0 0.1rem; font-size: 0.85rem; line-height: 1.5; color: #5e6b64; }
.plan__note { margin-bottom: 0; }
.dark .plan-mail__sub { color: #b3c2ba; }

/* result: goal photo with caption */
.plan__goal {
    position: relative;
    margin: -1.5rem -1.25rem 1.25rem;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    max-height: 17rem;
    width: calc(100% + 2.5rem);
}

.plan__goal img { display: block; width: 100%; height: 100%; object-fit: cover; }

.plan__goal::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(12, 22, 17, 0.72) 100%);
}

.plan__goal-cap {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #fff;
}

.plan__goal-cap span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f2c9a9;
}

.plan__goal-cap strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.45rem, 5vw, 1.9rem);
    font-weight: 600;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .plan__goal { margin: -2rem -1.9rem 1.5rem; width: calc(100% + 3.8rem); }
    .plan__goal-cap { left: 1.9rem; right: 1.9rem; bottom: 1.3rem; }
}

/* =====================================================================
   PetitsPas skin — layered on top of the shared quiz styles
   ===================================================================== */
:root {
    --pp-sage: #3f6b57;
    --pp-sage-d: #335a49;
    --pp-sage-50: #eef3ef;
    --pp-sage-100: #dfe9e2;
    --pp-terra: #d98e5f;
    --pp-cream: #f6f4ee;
    --pp-card: #fbfaf6;
    --pp-ink: #1e2a24;
    --pp-muted: #5e6b64;
    --pp-line: rgba(63, 107, 87, 0.16);
}

/* type */
body { font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; background: var(--pp-cream) !important; color: var(--pp-ink); }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, "Times New Roman", serif !important; font-optical-sizing: auto; }
main > section, #quiz { background: transparent !important; }

/* ---------- header: floating pill ---------- */
.site-hd { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0.6rem 0.75rem 0; }
.site-hd::after { display: none; }
.site-hd__inner {
    max-width: 68rem;
    padding: 0.45rem 0.45rem 0.45rem 1.25rem;
    border-radius: 999px;
    background: rgba(251, 250, 246, 0.88);
    border: 1px solid var(--pp-line);
    box-shadow: 0 10px 30px -18px rgba(30, 60, 45, 0.45);
    backdrop-filter: saturate(1.3) blur(12px);
    -webkit-backdrop-filter: saturate(1.3) blur(12px);
}
.site-hd__name { font-size: 1.45rem !important; font-weight: 600; letter-spacing: -0.03em; }
.site-hd__name em { font-style: normal; font-weight: 600; color: var(--pp-sage); }
.site-hd__name::after { content: "."; color: var(--pp-terra); }
.site-hd__menu {
    height: 2.5rem;
    padding: 0 0.95rem 0 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--pp-sage);
    color: #fff;
}
.site-hd__menu:hover { background: var(--pp-sage-d); color: #fff; }
.site-hd__burger { background: rgba(255, 255, 255, 0.18); }
@media (min-width: 768px) { .site-hd { padding: 0.9rem 1.5rem 0; } }

/* menu drawer */
.site-mm { background: var(--pp-card); border-radius: 1.75rem 0 0 1.75rem; }
.site-mm__list a { font-weight: 600; }
.site-mm__list a span { color: var(--pp-terra); }

/* ---------- buttons: solid pills ---------- */
.hero-x__cta,
.quiz-step__cta,
.quiz-step__submit,
.ty__cta {
    border-radius: 999px !important;
    background: var(--pp-sage) !important;
    box-shadow: 0 10px 22px -14px rgba(30, 60, 45, 0.8) !important;
    letter-spacing: 0.01em !important;
}
.hero-x__cta::before,
.quiz-step__cta::before,
.quiz-step__submit::before { display: none; }
.hero-x__cta:hover,
.quiz-step__cta:hover:not(:disabled),
.quiz-step__submit:hover:not(:disabled),
.ty__cta:hover { background: var(--pp-sage-d) !important; }
.hero-x__cta .ti,
.quiz-step__cta .ti,
.quiz-step__submit .ti,
.ty__cta .ti {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-right: -0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.05rem;
}
.ck__btn { border-radius: 999px; }
.ck__btn--main { background: var(--pp-sage); box-shadow: none; }

/* ---------- hero: inset photo card ---------- */
.hero-x { padding: 0.55rem; border-radius: 2rem; background: var(--pp-card); }
.hero-x__media { border-radius: 1.55rem; }
.hero-x__media::after { background: linear-gradient(180deg, transparent 55%, rgba(20, 30, 25, 0.25) 100%); }
.hero-x__body { margin-top: 0; padding: 1.1rem 0.85rem 0.9rem; }
.hero-x__eyebrow {
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--pp-sage-50);
    color: var(--pp-sage);
    letter-spacing: 0.1em;
}
.hero-x__eyebrow::before { display: none; }
.hero-x__title { font-weight: 600; letter-spacing: -0.025em; }
.hero-x__title em { font-style: italic; font-weight: 500; }
.hero-x__chips li { border-radius: 0.7rem; background: var(--pp-sage-50); border-color: transparent; }
.hero-x__badge { background: rgba(251, 250, 246, 0.9); color: var(--pp-ink); border-color: transparent; }
.hero-x__badge .ti { color: var(--pp-terra); }
.hero-x__legal { border-top-style: solid; }
@media (min-width: 768px) { .hero-x__body { padding: 1.3rem 1.4rem 1.1rem; } }

/* ---------- quiz steps ---------- */
.quiz-step__track { height: 0.55rem !important; background: var(--pp-sage-100) !important; }
.quiz-step__fill { background: linear-gradient(90deg, var(--pp-sage), var(--pp-terra)) !important; }
.quiz-step__back { border-color: var(--pp-line) !important; background: var(--pp-card) !important; color: var(--pp-sage) !important; }
[data-quiz-step] {
    display: table !important;
    margin: 0 auto 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--pp-sage-50);
    color: var(--pp-sage) !important;
    letter-spacing: 0.08em;
}
[data-quiz-step][style*="none"] { display: none !important; }
.quiz-step__panel h3 { color: var(--pp-ink) !important; font-weight: 600 !important; letter-spacing: -0.02em; }

.quiz-step__option {
    border-radius: 1.1rem !important;
    border: 1.5px solid var(--pp-line) !important;
    background: var(--pp-card) !important;
    transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}
.quiz-step__option:hover { border-color: rgba(63, 107, 87, 0.45) !important; transform: translateY(-1px); }
.quiz-step__option.is-chosen { border-color: var(--pp-sage) !important; background: var(--pp-sage-50) !important; }

.quiz-step__tile {
    padding: 0.4rem;
    border-radius: 1.35rem !important;
    border: 1.5px solid var(--pp-line) !important;
    background: var(--pp-card) !important;
}
.quiz-step__tile img { border-radius: 1rem; }
.quiz-step__tile.is-chosen { box-shadow: none; border-color: var(--pp-sage) !important; background: var(--pp-sage-50) !important; }

/* info + result cards: inset photos like the hero */
.quiz-step__iside,
.plan { padding: 0.55rem !important; border-radius: 2rem !important; background: var(--pp-card) !important; }
.quiz-step__iside > span { border-radius: 1.55rem !important; overflow: hidden; }
.quiz-step__iside > span::after { background: linear-gradient(180deg, transparent 60%, rgba(20, 30, 25, 0.18) 100%); }
.quiz-step__iside > div { margin-top: 0; padding: 1rem 0.95rem 0.9rem; }
.plan__goal { margin: 0 0 1.1rem !important; width: 100% !important; border-radius: 1.55rem; }
.plan__goal-cap span { color: #fff; opacity: 0.85; }
.plan__head, .plan .plan-mail { margin-left: 0.6rem; margin-right: 0.6rem; }
.plan .plan-mail { margin-bottom: 0.6rem; border-radius: 1.4rem; background: var(--pp-sage-50); border-color: transparent; }
.plan-mail__input { border-radius: 999px; padding: 0 1.25rem; }

/* ---------- thank-you ---------- */
.ty { background: transparent; }
.ty__card { border-radius: 2rem; }
.ty__seal { border-radius: 1.4rem; }

/* ---------- legal pages ---------- */
main article {
    margin-top: 1rem;
    padding: 2rem 1.4rem !important;
    border-radius: 2rem;
    background: var(--pp-card);
    border: 1px solid var(--pp-line);
}
main article h1 { font-weight: 600 !important; letter-spacing: -0.025em; color: var(--pp-ink) !important; }
main article h2 { position: relative; padding-left: 0.9rem; font-weight: 600 !important; color: var(--pp-ink) !important; }
main article h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em;
    bottom: 0.25em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--pp-sage), var(--pp-terra));
}
main article a { color: var(--pp-sage) !important; }
@media (min-width: 768px) { main article { padding: 2.75rem 2.5rem !important; } }

/* ---------- footer ---------- */
footer {
    margin-top: 2rem;
    background: var(--pp-sage-50) !important;
    border-top: 0 !important;
    border-radius: 2rem 2rem 0 0;
}
footer nav a { color: var(--pp-sage) !important; text-decoration-color: rgba(63, 107, 87, 0.35) !important; }

/* ---------- dark ---------- */
.dark body, body.dark { background: #0e1411 !important; }
.dark .site-hd__inner, .dark .hero-x, .dark .quiz-step__option, .dark .quiz-step__tile,
.dark .quiz-step__iside, .dark .plan, .dark main article { background: #141c18 !important; border-color: rgba(143, 193, 169, 0.16) !important; }
.dark footer { background: #141c18 !important; }
.ty__cta .ti { margin-right: 0; margin-left: -0.6rem; }
main article { width: calc(100% - 2rem) !important; margin: 1rem auto 0 !important; }
@media (min-width: 768px) { main article { width: 100% !important; } }
main a.bg-primary-600 { text-transform: none !important; letter-spacing: 0 !important; font-size: 1rem !important; }

/* wider layout than the original template */
.quiz-step__app { max-width: 40rem !important; }
.ty__card { max-width: 40rem; }
main article { max-width: 52rem !important; }
.site-hd__inner { max-width: 72rem; }
@media (min-width: 768px) {
    .quiz-step__opts2 { gap: 0.75rem !important; }
    .hero-x__media { height: clamp(11rem, 34vh, 18rem); }
}
