/* ============================================
   CSS Reset & Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    animation: pageLoad 0.6s ease-out forwards;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

/* ============================================
   CSS Variables - Design System
   ============================================ */

:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 20%, 10%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 20%, 10%);
    --primary: hsl(215, 25%, 35%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 20%, 96%);
    --secondary-foreground: hsl(220, 20%, 10%);
    --muted: hsl(210, 20%, 96%);
    --muted-foreground: hsl(220, 10%, 40%);
    --border: hsl(210, 20%, 90%);
    --input: hsl(210, 20%, 90%);
    --ring: hsl(215, 25%, 35%);

    --btn-primary-bg: hsl(215, 25%, 35%);
    --btn-primary-fg: hsl(0, 0%, 100%);

    --radius: 0.75rem;
    --hero-gradient: linear-gradient(135deg, hsl(210, 20%, 92%), hsl(220, 15%, 94%));
    --card-gradient: linear-gradient(180deg, hsl(0, 0%, 98%), hsl(0, 0%, 100%));
    --glow: 0 0 30px hsl(215 25% 35% / 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark {
    --background: hsl(220, 20%, 6%);
    --foreground: hsl(210, 20%, 98%);
    --card: hsl(220, 18%, 8%);
    --card-foreground: hsl(210, 20%, 98%);
    --primary: hsl(215, 30%, 45%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(220, 15%, 12%);
    --secondary-foreground: hsl(210, 20%, 98%);
    --muted: hsl(220, 15%, 15%);
    --muted-foreground: hsl(215, 15%, 65%);
    --border: hsl(220, 15%, 15%);
    --input: hsl(220, 15%, 15%);
    --ring: hsl(215, 30%, 45%);

    --btn-primary-bg: hsl(215, 25%, 35%);
    --btn-primary-fg: hsl(0, 0%, 100%);

    --hero-gradient: linear-gradient(135deg, hsl(215, 20%, 12%), hsl(220, 18%, 10%));
    --card-gradient: linear-gradient(180deg, hsl(220, 18%, 10%), hsl(220, 18%, 8%));
    --glow: 0 0 30px hsl(215 30% 45% / 0.15);
}

body {
    background-color: var(--background);
    color: var(--foreground);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Layout & Container
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Scroll Progress Bar
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), hsl(215, 30%, 55%));
    z-index: 100;
    transition: width 0.1s ease-out;
}

/* ============================================
   Contact Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--glow);
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: calc(var(--radius) - 4px);
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--secondary);
    color: var(--foreground);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-description {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--background);
    color: var(--foreground);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: 2px solid var(--ring);
    outline-offset: 0;
    border-color: var(--primary);
}

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

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Header
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background-color: var(--background);
    backdrop-filter: blur(10px);
    background-color: rgba(var(--background) / 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
}

.icon-sun,
.icon-moon {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Show the "switch-to" icon: in light mode show moon, in dark mode show sun */
body:not(.dark) .icon-sun {
    position: absolute;
    transform: rotate(-90deg);
    opacity: 0;
}

body:not(.dark) .icon-moon {
    transform: rotate(0deg);
    opacity: 1;
}

/* Ensure the theme toggle button has a white background in light mode
   and the moon icon is dark for visibility on the index page. */
body:not(.dark) .theme-toggle {
    background-color: #fff;
    /* solid white background */
    padding: 0.25rem;
    border-radius: 0.5rem;
}

body:not(.dark) .theme-toggle .icon-moon {
    color: #000;
    /* dark moon icon */
}

body.dark .icon-sun {
    transform: rotate(0deg);
    opacity: 1;
}

/* Ensure the theme toggle button has a black background in dark mode
   and the sun icon is white for visibility on the index page. */
body.dark .theme-toggle {
    background-color: #000;
    /* solid black background */
    padding: 0.25rem;
    border-radius: 0.5rem;
}

body.dark .theme-toggle .icon-sun {
    color: #fff;
    /* white sun icon */
}

body.dark .icon-moon {
    position: absolute;
    transform: rotate(90deg);
    opacity: 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--radius) - 2px);
    transition: var(--transition);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--glow);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon {
    padding: 0.5rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-cta {
    padding: 0.75rem 3rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: var(--hero-gradient);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content>*+* {
    margin-top: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid hsl(215 25% 35% / 0.3);
    color: var(--primary);
    border-radius: var(--radius);
    background-color: var(--background);
}

.badge-icon {
    width: 1rem;
    height: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 42rem;
}

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

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.feature-icon {
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 4rem 1.5rem;
    background-color: hsl(var(--secondary) / 0.3);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

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

.card {
    background: var(--card-gradient);
    background-color: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card {
    padding: 1.5rem;
}

.feature-card:hover {
    border-color: hsl(215 25% 35% / 0.5);
    box-shadow: var(--glow);
}

.feature-icon-wrapper {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    background-color: hsl(var(--primary) / 0.1);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: hsl(var(--primary) / 0.2);
}

.feature-svg {
    color: var(--primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ============================================
   Contact Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: calc(var(--radius) - 4px);
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--secondary);
    color: var(--foreground);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.modal-description {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
    font-size: 0.9375rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--background);
    color: var(--foreground);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(215 25% 35% / 0.1);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq {
    padding: 4rem 1.5rem;
    background-color: hsl(var(--secondary) / 0.3);
}

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: hsl(215 25% 35% / 0.5);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin: 0;
}

.faq-contact {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    background-color: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.faq-contact p {
    margin: 0.5rem 0;
    color: var(--foreground);
    font-size: 1rem;
}

.faq-contact p:first-child {
    font-weight: 500;
}

.faq-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.faq-contact a:hover {
    text-decoration: underline;
}

/* ============================================
   Get Started Section
   ============================================ */

.get-started {
    padding: 4rem 1.5rem;
}

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

.step-card {
    position: relative;
    padding: 2rem;
}

.step-card:hover {
    border-color: hsl(215 25% 35% / 0.5);
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3.75rem;
    font-weight: 700;
    color: hsl(var(--primary) / 0.1);
    transition: var(--transition);
}

.step-card:hover .step-number {
    color: hsl(var(--primary) / 0.2);
}

.step-content {
    position: relative;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.cta-wrapper {
    text-align: center;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ============================================
   Privacy Section
   ============================================ */

.privacy {
    padding: 4rem 1.5rem;
    background-color: hsl(var(--secondary) / 0.3);
}

.privacy-grid {
    display: grid;
    /* Force a 2x2 layout on larger viewports to match design requirement */
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.privacy-card {
    padding: 2rem;
}

.privacy-card:hover {
    border-color: hsl(215 25% 35% / 0.5);
}

.privacy-content {
    display: flex;
    gap: 1.5rem;
}

.privacy-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.privacy-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 4rem 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background-color: var(--card);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    max-width: 400px;
}

.footer-description {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

.footer-links li {
    display: inline-block;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .nav {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

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

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

    .footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-social {
        gap: 1.5rem;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

/* ============================================
   Utility Classes
   ============================================ */

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

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

/* ============================================
   Pricing Section
   ============================================ */

.pricing-section {
    padding: 4rem 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.pricing-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), hsl(215, 30%, 55%));
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.pricing-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.price-period {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.pricing-description {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

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

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--foreground);
    font-size: 0.9375rem;
}

.feature-check {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-cta {
    width: 100%;
}

/* Pricing FAQ */
.pricing-faq {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

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

.faq-item-simple {
    padding: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.faq-item-simple:hover {
    border-color: hsl(215 25% 35% / 0.5);
}

.faq-question-simple {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.faq-answer-simple {
    color: var(--muted-foreground);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ============================================
   User Progress Section (Horizontal)
   ============================================ */

.user-progress-section {
    padding: 2rem 1.5rem;
    background-color: hsl(var(--secondary) / 0.3);
}

.user-progress-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    background: var(--card-gradient);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--glow);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, hsl(215, 30%, 45%), hsl(215, 30%, 55%));
    border-radius: 50%;
    flex-shrink: 0;
}

.progress-icon svg {
    color: white;
    width: 18px;
    height: 18px;
}

.progress-text {
    flex: 1;
}

.progress-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--foreground);
}

.progress-subtitle {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.progress-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--muted-foreground);
}

.horizontal-progress-wrapper {
    margin-bottom: 1rem;
}

.horizontal-progress-bar {
    position: relative;
}

.progress-track {
    width: 100%;
    height: 20px;
    background-color: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, hsl(215, 30%, 45%), hsl(215, 30%, 55%));
    border-radius: 9999px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 20px hsl(215 30% 45% / 0.4);
}

.progress-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 9999px 9999px 0 0;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.progress-markers-horizontal {
    display: flex;
    justify-content: space-between;
    margin-top: 0.375rem;
    padding: 0 0.25rem;
}

.marker {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.progress-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.spots-remaining {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.spots-remaining svg {
    color: var(--primary);
    flex-shrink: 0;
}

.spots-remaining strong {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

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

    .pricing-section {
        padding: 3rem 1rem;
    }

    .user-progress-card {
        padding: 1.25rem 1.5rem;
    }

    .progress-header {
        flex-direction: column;
        text-align: center;
    }

    .progress-title {
        font-size: 1rem;
    }

    .progress-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .progress-stats-row {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .price-amount {
        font-size: 2.75rem;
    }

    .pricing-plan-name {
        font-size: 1.25rem;
    }

    .user-progress-card {
        padding: 1rem 1.25rem;
    }

    .progress-icon {
        width: 2rem;
        height: 2rem;
    }

    .progress-icon svg {
        width: 16px;
        height: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .progress-track {
        height: 16px;
    }

    .progress-stats-row {
        gap: 0.75rem;
    }

    .marker {
        font-size: 0.625rem;
    }

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

/* =======
=====================================
   Login Page
   ============================================ */

.login-section {
    padding: 4rem 1.5rem;
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper-centered {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.login-card {
    background: var(--card-gradient);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--glow);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.login-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.login-body {
    margin-bottom: 2rem;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: white;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google:active {
    background-color: #f1f3f4;
}

body.dark .btn-google {
    background-color: var(--card);
    color: var(--foreground);
    border-color: var(--border);
}

body.dark .btn-google:hover {
    background-color: var(--secondary);
    border-color: var(--primary);
}

.google-icon {
    flex-shrink: 0;
}

.login-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.login-privacy {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.login-privacy a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.login-privacy a:hover {
    text-decoration: underline;
}

/* Responsive Login */
@media (max-width: 640px) {
    .login-section {
        padding: 2rem 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

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

/* 
User Menu */
.user-menu {
    position: relative;
}

.user-avatar {
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: var(--glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Checkout Section */
.checkout-section {
    min-height: calc(100vh - 80px);
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.checkout-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.checkout-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glow);
}

.checkout-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.order-summary {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-summary h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

#payment-form {
    margin-top: 2rem;
}

#payment-element {
    margin-bottom: 1.5rem;
}

.payment-message {
    color: #df1b41;
    font-size: 0.875rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(223, 27, 65, 0.1);
    border-radius: 8px;
    display: none;
}

/* Success Section */
.success-section,
.failure-section {
    min-height: calc(100vh - 80px);
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.success-wrapper,
.failure-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.success-card,
.failure-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: var(--glow);
    text-align: center;
}

.success-icon {
    color: #10b981;
    margin-bottom: 1.5rem;
}

.failure-icon {
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.success-icon svg,
.failure-icon svg {
    margin: 0 auto;
}

.success-title,
.failure-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-description,
.failure-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.success-details,
.failure-details {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.success-details p,
.failure-details p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.success-details p:last-child,
.failure-details p:last-child {
    margin-bottom: 0;
}

.success-details strong,
.failure-details strong {
    color: var(--text-primary);
}

.success-actions,
.failure-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .checkout-card,
    .success-card,
    .failure-card {
        padding: 1.5rem;
    }

    .checkout-title,
    .success-title,
    .failure-title {
        font-size: 1.5rem;
    }

    .success-actions,
    .failure-actions {
        flex-direction: column;
    }

    .success-actions .btn,
    .failure-actions .btn {
        width: 100%;
    }
}
