@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --primary-dark: #1e293b;
    --primary-light: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.logo img {
    display: block;
    width: min(216px, 58vw);
    height: auto;
}

.logo:hover {
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-logo {
    display: inline-flex;
    align-items: center;
}

.mobile-menu-logo img {
    display: block;
    width: min(190px, 58vw);
    height: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu-nav ul {
    list-style: none;
}

.mobile-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.mobile-menu-nav a:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-nexus {
    display: block;
    color: var(--text-primary);
}

.hero-flow {
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
}

/* Stats Section */
.stats {
    padding: 80px 2rem;
    background: var(--white);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: var(--primary-light);
    animation: fadeInUp 0.8s ease-out;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 80px 2rem;
    background: var(--white);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Pricing Section */
.pricing {
    padding: 80px 2rem;
    background: var(--primary-light);
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    padding: 2rem;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.plan-period {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓ ';
    color: var(--primary-blue);
    font-weight: 600;
    margin-right: 0.5rem;
}

.pricing-card a {
    align-self: flex-start;
    width: 100%;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 80px 2rem;
    background: var(--white);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper {
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.contact-form {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-links a,
.footer-contact a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    transform: translateY(-2px);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.footer-credit {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll reveal trigger */
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-links,
    .footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stats, .features, .pricing, .contact {
        padding: 60px 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================
   Mobile refinements (appended)
   ========================================================== */

/* The global "nav" rule was also applying to the mobile menu's
   inner <nav>, pinning it to the top of the screen. Reset it here. */
.mobile-menu-nav {
    position: static;
    background: none;
    box-shadow: none;
    border: none;
    z-index: auto;
}

.mobile-menu-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    padding: 0.9rem 1.25rem;
}

/* Mobile menu open state (toggled by the script in index.html) */
.mobile-menu {
    width: min(82vw, 300px);
    max-width: none;
    height: 100vh;
    height: 100dvh;
}

.mobile-menu.is-open,
.mobile-menu-overlay.is-open {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* 16px inputs stop iPhone Safari from zooming in on focus */
.form-group input,
.form-group textarea {
    font-size: 16px;
    min-height: 48px;
}

.form-group textarea {
    min-height: 120px;
}

/* Fluid type so headings scale smoothly between phone and desktop */
.hero-title {
    font-size: clamp(1.9rem, 6vw + 0.5rem, 3.5rem);
}

.section-title {
    font-size: clamp(1.6rem, 4.5vw + 0.5rem, 2.5rem);
}

/* Tap targets */
.btn-primary,
.btn-secondary,
.btn-submit {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-button {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close {
    min-width: 44px;
    min-height: 44px;
}

details summary {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Hover lifts look stuck on touch screens, so only use them with a mouse */
@media (hover: none) {
    .feature-card:hover,
    .pricing-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .nav-links a:hover,
    .logo:hover,
    .footer-links a:hover,
    .mobile-menu-nav a:hover {
        transform: none;
    }
}

/* Phones and small tablets */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }

    .nav-container {
        padding: 0.75rem 1.25rem;
    }

    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 56px;
    }

    .hero-container {
        padding: 0 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats,
    .features,
    .pricing,
    .contact {
        padding: 56px 1.25rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .feature-card,
    .pricing-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 320px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem 1rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero {
        padding-top: 84px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: clamp(1.2rem, 5.5vw, 1.75rem);
        word-break: break-word;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .plan-price {
        font-size: 2.2rem;
    }

    .footer {
        padding: 2.5rem 1.25rem;
    }
}
/* ==========================================================
   Motion and transitions (appended)
   Short, subtle, and fully disabled for reduced-motion users.
   ========================================================== */

:root {
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.18s;
    --dur-base: 0.3s;
}

/* Smooth, quick color and shadow changes on interactive elements */
a,
button {
    transition: color var(--dur-fast) ease,
                background-color var(--dur-fast) ease,
                border-color var(--dur-fast) ease,
                box-shadow var(--dur-base) ease,
                transform var(--dur-base) var(--ease-out);
}

/* Buttons */
.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: #e0e9fb;
    box-shadow: var(--shadow-sm);
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

/* Nav underline grows on hover and keyboard focus */
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

/* Cards lift slightly with a soft shadow */
.feature-card,
.pricing-card {
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) ease,
                border-color var(--dur-base) ease;
}

.feature-card:hover,
.pricing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

/* Scroll reveal: sections fade up as they enter the viewport.
   Requires the IntersectionObserver in core.js (adds the "visible" class). */
.fade-up {
    animation: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

/* Cards inside a revealed section rise in one after another */
.fade-up .feature-card,
.fade-up .pricing-card {
    animation: none;
    opacity: 0;
}

.fade-up.visible .feature-card,
.fade-up.visible .pricing-card {
    opacity: 1;
    animation: riseIn 0.6s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 90ms);
}

.feature-card:nth-child(1),
.pricing-card:nth-child(1) { --i: 0; }
.feature-card:nth-child(2),
.pricing-card:nth-child(2) { --i: 1; }
.feature-card:nth-child(3),
.pricing-card:nth-child(3) { --i: 2; }
.feature-card:nth-child(4),
.pricing-card:nth-child(4) { --i: 3; }
.feature-card:nth-child(5),
.pricing-card:nth-child(5) { --i: 4; }
.feature-card:nth-child(6),
.pricing-card:nth-child(6) { --i: 5; }

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu: slide in and fade the overlay instead of snapping */
.mobile-menu {
    display: block;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), visibility 0.35s ease;
}

.mobile-menu.is-open {
    transform: none;
    visibility: visible;
}

.mobile-menu-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Menu links fade in one after another when the menu opens */
.mobile-menu.is-open .mobile-menu-nav li {
    animation: slideIn 0.35s var(--ease-out) backwards;
}

.mobile-menu.is-open .mobile-menu-nav li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu-nav li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu-nav li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu-nav li:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu-nav li:nth-child(5) { animation-delay: 0.3s; }

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

/* Hamburger morphs into an X when the menu is open */
.hamburger span {
    transition: transform 0.3s var(--ease-out), opacity 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-button[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Logo and nav shadow stay put; only the hero gets a gentle entrance */
.hero-title {
    animation: riseIn 0.8s var(--ease-out) backwards;
}

.hero-subtitle,
.hero-buttons {
    animation: riseIn 0.8s var(--ease-out) backwards;
    animation-delay: 0.15s;
}

.hero-buttons {
    animation-delay: 0.3s;
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-up,
    .fade-up.visible,
    .fade-up .feature-card,
    .fade-up.visible .feature-card,
    .fade-up .pricing-card,
    .fade-up.visible .pricing-card,
    .hero-title,
    .hero-subtitle,
    .hero-buttons,
    .mobile-menu.is-open .mobile-menu-nav li {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================
   Multi-step form and progress (appended)
   ========================================================== */

[hidden] {
    display: none !important;
}

.visual-hide {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.quest-progress {
    margin-bottom: 1.75rem;
}

.quest-progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

#quest-percent {
    color: var(--primary-blue);
}

.quest-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.quest-bar-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--primary-blue), #60a5fa);
    border-radius: 999px;
    transition: width 0.45s var(--ease-out);
}

.quest-dots {
    display: flex;
    justify-content: space-between;
    margin-top: 0.85rem;
}

.quest-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: var(--white);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}

.quest-dot.is-current {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    transform: scale(1.08);
}

.quest-dot.is-done {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.quest-step {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    animation: riseIn 0.4s var(--ease-out) backwards;
}

.quest-step legend {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
    padding: 0;
}

.quest-optional {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    min-height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--white);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.quest-summary {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.quest-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.quest-nav button {
    flex: 1;
}

.quest-success {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--primary-light);
    text-align: center;
}

.quest-success h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.quest-success p {
    margin: 0;
    color: var(--text-secondary);
}

.quest-status {
    margin-top: 1rem;
    color: #b91c1c;
    font-weight: 600;
    text-align: center;
}

.confetti-burst {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    top: -12px;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    animation-name: confetti-fall;
    animation-timing-function: ease-in;
    animation-fill-mode: both;
}

@keyframes confetti-fall {
    to {
        transform: translate3d(var(--confetti-drift), 110vh, 0) rotate(var(--confetti-rotation));
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .quest-dot {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .quest-nav {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    .confetti-piece {
        animation: none;
    }
}
