:root {
    --color-primary: #5b1f3b;
    --color-primary-strong: #421429;
    --color-rose: #9f4f68;
    --color-gold: #d8b46a;
    --color-text: #242124;
    --color-muted: #6f666d;
    --color-surface: #ffffff;
    --color-page: #fbf6ef;
    --color-border: #e6dcd5;
    --color-focus: #1d5fd1;
    --shadow-card: 0 24px 70px rgba(67, 33, 47, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-text);
    background:
        linear-gradient(180deg, rgba(251, 246, 239, 0.95), rgba(255, 252, 248, 0.98)),
        radial-gradient(circle at 16% 10%, rgba(216, 180, 106, 0.16), transparent 28%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

.app-shell {
    width: min(100%, 760px);
    min-height: 100svh;
    margin: 0 auto;
    padding: 24px 18px 34px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 28px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(91, 31, 59, 0.16);
}

.brand-kicker,
.brand-name,
.eyebrow {
    margin: 0;
}

.brand-kicker,
.eyebrow {
    color: var(--color-rose);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-name {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 800;
}

.questionnaire-card {
    overflow: hidden;
    min-height: 560px;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(230, 220, 213, 0.86);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2 {
    margin: 14px 0 14px;
    color: var(--color-text);
    font-size: clamp(1.75rem, 7vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(1.55rem, 6vw, 2.65rem);
}

h3 {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 1.12rem;
}

.intro-copy,
.screen-copy,
.question-support,
.completion-section p {
    color: var(--color-muted);
    font-size: 1rem;
}

.intro-points {
    display: grid;
    gap: 10px;
    margin: 24px 0 30px;
    padding: 0;
    list-style: none;
}

.intro-points li {
    position: relative;
    padding-left: 28px;
    color: var(--color-text);
}

.intro-points li::before {
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
    content: "";
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.progress-track {
    height: 8px;
    margin: 14px 0 34px;
    overflow: hidden;
    background: #eee8e2;
    border-radius: 999px;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-rose), var(--color-gold));
    border-radius: inherit;
    transition: width 260ms ease;
}

.progress-fill.is-complete {
    width: 100%;
}

.question-heading {
    margin: 0 0 10px;
    font-size: clamp(1.38rem, 5.6vw, 2.25rem);
}

.answers {
    display: grid;
    gap: 10px;
    margin: 24px 0 24px;
    padding: 0;
    border: 0;
}

.answer-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 72px;
    padding: 14px;
    cursor: pointer;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.answer-card:has(input:checked) {
    background: #fcf3f5;
    border-color: var(--color-primary);
}

.answer-card:focus-within,
.answer-card:has(input:focus-visible) {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

.answer-card:hover {
    transform: translateY(-1px);
    border-color: var(--color-rose);
}

.answer-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--color-primary);
    background: #f7eee9;
    border-radius: 12px;
}

.option-icon svg {
    width: 22px;
    height: 22px;
}

.option-label {
    font-size: 1.02rem;
    font-weight: 700;
}

.nav-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 18px;
    cursor: pointer;
    border: 0;
    border-radius: 16px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.button-primary {
    color: #fff;
    background: var(--color-primary);
    box-shadow: 0 12px 26px rgba(91, 31, 59, 0.2);
}

.button-primary:hover:not(:disabled) {
    background: var(--color-primary-strong);
}

.button-secondary {
    color: var(--color-primary);
    background: #f4ebe7;
}

.button:disabled {
    cursor: not-allowed;
    color: #fff;
    background: #cfc7c2;
    box-shadow: none;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.field label {
    font-weight: 800;
}

.field input {
    width: 100%;
    min-height: 54px;
    padding: 12px 14px;
    color: var(--color-text);
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: 14px;
}

.field-error,
.form-message {
    min-height: 1.35em;
    margin: 0;
    color: #9f1d35;
    font-size: 0.92rem;
    font-weight: 700;
}

.form-message {
    margin-top: 14px;
}

.consent-card {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    color: var(--color-muted);
    border: 2px solid var(--color-border);
    border-radius: 14px;
}

.consent-card input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
}

.success-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fff;
    background: var(--color-primary);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 900;
}

.completion-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}

.reference-panel {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding: 18px;
    background: #fffaf5;
    border: 2px solid var(--color-gold);
    border-radius: 16px;
}

.reference-panel h3,
.reference-panel p {
    margin: 0;
}

.reference-code {
    color: var(--color-primary);
    font-size: clamp(2rem, 10vw, 3.35rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.copy-confirmation {
    min-height: 1.35em;
    color: #315936;
    font-weight: 800;
}

.video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 14px 0 12px;
    aspect-ratio: 16 / 9;
    background: #1f1a1d;
    border-radius: 14px;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: #f8efe8;
    background:
        linear-gradient(135deg, rgba(91, 31, 59, 0.94), rgba(66, 20, 41, 0.96)),
        linear-gradient(90deg, rgba(216, 180, 106, 0.22), transparent);
}

.completion-section .video-placeholder p {
    margin: 0;
    padding: 22px;
    color: #fffaf5;
    font-size: 1.08rem;
    font-weight: 800;
    text-align: center;
}

.youtube-fallback {
    display: inline-flex;
    color: var(--color-primary);
    font-weight: 800;
}

.is-hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.is-transitioning {
    animation: fade-slide 220ms ease;
}

@keyframes fade-slide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    .app-shell {
        padding-top: 44px;
    }

    .questionnaire-card {
        padding: 42px;
        border-radius: 28px;
    }

    .nav-row {
        grid-template-columns: minmax(120px, 0.45fr) 1fr;
    }
}

@media (min-width: 1024px) {
    .app-shell {
        width: min(100%, 820px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
