:root {
    color-scheme: light;
    font-family: "Playfair Display", "Times New Roman", serif;
    --background: #fdf7f2;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(247, 217, 229, 0.42);
    --primary: #2b1d1a;
    --muted: #705c58;
    --accent: #ec88a8;
    --accent-dark: #d46e92;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(247, 217, 229, 0.55), transparent 55%),
        radial-gradient(circle at bottom left, rgba(248, 224, 210, 0.5), transparent 45%),
        var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(32px, 5vw, 72px) 20px;
    color: var(--primary);
    font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(253, 247, 242, 0.92);
    border-bottom: 1px solid rgba(236, 136, 168, 0.2);
    width: 100%;
}

.site-nav {
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.site-nav__brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 16px 32px rgba(188, 140, 160, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 0.04em;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(236, 136, 168, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 32px rgba(188, 140, 160, 0.24);
    outline: none;
}

.site-nav__link.is-active {
    background: linear-gradient(135deg, #f7c6d7, #ec88a8);
    color: #2b1d1a;
    box-shadow: 0 20px 38px rgba(188, 140, 160, 0.26);
    border-color: transparent;
}

main {
    width: 100%;
    max-width: 960px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 217, 229, 0.42));
    border-radius: 44px;
    box-shadow:
        0 38px 88px rgba(198, 150, 168, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    padding: clamp(32px, 7vw, 64px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(236, 136, 168, 0.22);
}

.intro-header {
    margin-bottom: clamp(28px, 5vw, 40px);
}

.intro-header .brand-lockup {
    flex-direction: column;
    text-align: center;
}

.intro-header .brand-copy h1 {
    font-size: clamp(2.1rem, 5vw, 3rem);
}

.results-header {
    margin-bottom: 36px;
}

.brand-lockup {
    display: flex;
    gap: clamp(20px, 4vw, 32px);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.logo {
    width: clamp(110px, 18vw, 150px);
    height: clamp(110px, 18vw, 150px);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(236, 136, 168, 0.28);
    object-fit: cover;
    flex-shrink: 0;
}

.brand-copy {
    text-align: center;
    max-width: 520px;
}

.brand-copy h1 {
    margin: 0;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(2.35rem, 5vw, 3.2rem);
    letter-spacing: -0.02em;
    color: var(--primary);
}

.brand-copy p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.fast-track-card {
    margin-top: 48px;
    padding: clamp(24px, 4vw, 32px);
    border-radius: 28px;
    border: 1px dashed rgba(236, 136, 168, 0.6);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 35px rgba(188, 140, 160, 0.15);
}

.fast-track-card h2 {
    margin-top: 0;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.fast-track-copy {
    margin: 10px 0 20px;
    color: var(--muted);
    max-width: 600px;
}

.fast-track-form {
    display: grid;
    gap: 18px;
}

.fast-track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.fast-track-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
}

.fast-track-grid input {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(236, 136, 168, 0.35);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.fast-track-grid input:focus-visible {
    outline: 2px solid rgba(236, 136, 168, 0.6);
}

.quiz-form {
    display: grid;
    gap: 32px;
}

.question {
    padding: 26px clamp(16px, 4vw, 30px);
    border-radius: 26px;
    background: linear-gradient(140deg, rgba(251, 239, 240, 0.9), rgba(255, 250, 246, 0.92));
    border: 1px solid rgba(229, 154, 178, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.question h2 {
    margin: 0 0 18px;
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-family: "Playfair Display", "Times New Roman", serif;
    color: var(--primary);
}

.options {
    display: grid;
    gap: 12px;
}

label.option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(236, 136, 168, 0.18);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

label.option:hover {
    border-color: rgba(229, 154, 178, 0.6);
    box-shadow: 0 16px 34px rgba(236, 136, 168, 0.22);
    transform: translateY(-2px);
}

label.option input {
    height: 20px;
    width: 20px;
    accent-color: var(--accent);
    margin: 0;
}

label.option span {
    font-size: 1rem;
    line-height: 1.48;
    color: var(--primary);
}

.actions {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.actions button {
    background: linear-gradient(120deg, #ffb1c9, #ff7fa9);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 24px 46px rgba(236, 136, 168, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 55px rgba(236, 136, 168, 0.32);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.button.subtle {
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary);
    box-shadow: none;
    border: 1px solid rgba(236, 136, 168, 0.14);
}

.button.subtle:hover {
    box-shadow: 0 16px 32px rgba(236, 136, 168, 0.22);
}

.results {
    margin-top: 32px;
    padding: clamp(28px, 6vw, 46px);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(254, 239, 245, 0.95), rgba(250, 224, 234, 0.96));
    border: 1px solid rgba(236, 189, 205, 0.45);
    box-shadow:
        0 26px 70px rgba(150, 90, 110, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.result-shell {
    position: relative;
    display: grid;
    gap: clamp(28px, 6vw, 56px);
}

.result-logo {
    position: absolute;
    bottom: clamp(14px, 3.5vw, 22px);
    right: clamp(14px, 3.5vw, 22px);
    width: clamp(52px, 10vw, 68px);
    height: clamp(52px, 10vw, 68px);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(179, 118, 140, 0.26);
    display: grid;
    place-items: center;
    pointer-events: none;
    border: 1px solid rgba(236, 136, 168, 0.22);
    z-index: 3;
}

.result-logo img {
    width: 68%;
    height: 68%;
    object-fit: cover;
    border-radius: 12px;
}

.result-visual {
    width: min(420px, 100%);
    margin: 0 auto;
    background: linear-gradient(145deg, #feeef4, #f7dde5);
    padding: clamp(28px, 3vw, 36px);
    border-radius: 36px;
    box-shadow: 0 32px 48px rgba(179, 118, 140, 0.24);
    position: relative;
}

.result-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.result-details {
    text-align: center;
    display: grid;
    gap: 20px;
    justify-items: center;
}

.download-row {
    margin: 32px 0 0;
    display: flex;
    justify-content: center;
}

.download-row .button {
    background: linear-gradient(120deg, #ffb1c9, #ff7fa9);
    color: var(--white);
    box-shadow: 0 20px 40px rgba(255, 127, 169, 0.32);
}


.download-card[disabled] {
    opacity: 0.6;
    cursor: wait;
}
.button.pill.download-card {
    padding: 12px 28px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.type-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(229, 154, 178, 0.45);
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent-dark);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.results h3 {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-family: "Playfair Display", "Times New Roman", serif;
    color: var(--primary);
    text-align: center;
}

.result-description {
    margin: 0 0 18px;
    color: var(--primary);
    line-height: 1.6;
    text-align: center;
    max-width: 520px;
}

.charms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.charms a {
    padding: 8px 18px;
    background: rgba(255, 214, 226, 0.35);
    border: 1px solid rgba(255, 170, 204, 0.45);
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #7e4a54;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.charms a:hover,
.charms a:focus {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 12px rgba(125, 74, 84, 0.14);
}

.error {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(199, 117, 145, 0.45);
    background: rgba(199, 117, 145, 0.12);
    color: #802940;
    font-weight: 600;
    text-align: center;
}

footer {
    margin-top: 56px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .site-nav {
        justify-content: center;
    }

    .site-nav__links {
        justify-content: center;
    }

    main {
        padding: 32px 20px;
    }

    label.option {
        gap: 12px;
        align-items: flex-start;
    }

    label.option input {
        margin-top: 4px;
    }

    .result-shell {
        grid-template-columns: 1fr;
    }

    .result-details {
        text-align: center;
        justify-items: center;
        align-items: center;
    }

    .result-description {
        text-align: center;
    }

    .charms {
        justify-content: center;
    }

    .actions button {
        width: 100%;
        justify-content: center;
    }

    .download-row {
        width: 100%;
    }

    .download-row .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 24px 12px 56px;
    }

    main {
        border-radius: 28px;
    }

    .result-visual {
        padding: 24px;
    }
}

@media (min-width: 900px) {
    .brand-lockup {
        justify-content: space-between;
    }

    .brand-copy {
        text-align: left;
    }

    .result-shell {
        grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
        align-items: center;
    }

    .result-visual {
        margin: 0;
    }

    .result-details {
        text-align: left;
        justify-items: flex-start;
        align-items: flex-start;
    }

    .result-description {
        text-align: left;
    }

    .charms {
        justify-content: flex-start;
    }
}
