/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System */
    --color-black: #000000;
    --color-gray-90: #1a1a1a;
    --color-gray-70: #4a4a4a;
    --color-gray-50: #8a8a8a;
    --color-gray-20: #e8e8e8;
    --color-gray-10: #f8f8f8;
    --color-white: #ffffff;
    
    /* Typography Scale - Modular Scale 1.25 */
    --font-size-xs: 0.8rem;      /* 12.8px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-md: 1.125rem;    /* 18px */
    --font-size-lg: 1.25rem;     /* 20px */
    --font-size-xl: 1.5rem;      /* 24px */
    --font-size-2xl: 1.875rem;   /* 30px */
    --font-size-3xl: 2.25rem;    /* 36px */
    --font-size-4xl: 3rem;       /* 48px */
    --font-size-5xl: 3.75rem;    /* 60px */
    --font-size-6xl: 4.5rem;     /* 72px */
    
    /* Spacing Scale - 8px base unit */
    --space-1: 0.5rem;    /* 8px */
    --space-2: 1rem;      /* 16px */
    --space-3: 1.5rem;    /* 24px */
    --space-4: 2rem;      /* 32px */
    --space-5: 2.5rem;    /* 40px */
    --space-6: 3rem;      /* 48px */
    --space-8: 4rem;      /* 64px */
    --space-10: 5rem;     /* 80px */
    --space-12: 6rem;     /* 96px */
    --space-16: 8rem;     /* 128px */
    --space-20: 10rem;    /* 160px */
    
    /* Line Heights */
    --line-tight: 1.2;
    --line-normal: 1.5;
    --line-relaxed: 1.75;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-normal);
    color: var(--color-black);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: var(--line-tight);
    letter-spacing: -0.01em;
    color: var(--color-black);
}

h1 {
    font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-6xl));
    margin-bottom: var(--space-4);
}

h2 {
    font-size: clamp(var(--font-size-3xl), 6vw, var(--font-size-5xl));
    margin-bottom: var(--space-6);
}

h3 {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
    margin-bottom: var(--space-3);
}

h4 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

p {
    font-size: var(--font-size-base);
    line-height: var(--line-relaxed);
    color: var(--color-gray-70);
    margin-bottom: var(--space-4);
}

strong {
    font-weight: 600;
    color: var(--color-black);
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Header */
header {
    padding: var(--space-1) 0;
    border-bottom: 1px solid var(--color-gray-20);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 100;
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-4);
}

.main-nav {
    display: flex;
    gap: var(--space-6);
    align-items: center;
    justify-content: center;
}

.logo {
    height: 24px;
    width: auto;
}

.header-cta {
    justify-self: flex-end;
}


.main-nav a {
    color: var(--color-black);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.main-nav a:hover {
    color: var(--color-gray-70);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--color-black);
}

.header-cta:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-black);
}

.header-cta .material-symbols-outlined {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-cta span {
    display: inline-block;
}

/* Hero Section */
.hero {
    padding: var(--space-12) 0 var(--space-16);
    text-align: center;
}

.hero h1 {
    margin-bottom: var(--space-3);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.hero .tagline {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-gray-70);
    margin-bottom: var(--space-10);
    letter-spacing: 0.01em;
    line-height: var(--line-relaxed);
}

.hero-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 560px;
    margin-top: 0;
    margin-bottom: var(--space-8);
    background: var(--color-gray-10);
    border: none;
    border-top: 1px solid var(--color-gray-20);
    border-bottom: 1px solid var(--color-gray-20);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-50);
    font-size: var(--font-size-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.hero .intro-text {
    max-width: 600px;
    margin: 0 auto;
}

.hero .intro-text p {
    font-size: var(--font-size-lg);
    line-height: var(--line-relaxed);
    color: var(--color-black);
    margin-bottom: 0;
}

/* Sections */
section {
    padding: var(--space-16) 0;
}

section:first-of-type {
    padding-top: var(--space-8);
    padding-bottom: var(--space-4);
}

/* Bring the first content section closer to the hero */
.hero + section {
    padding-top: 0;
}

.section-title {
    font-size: clamp(var(--font-size-3xl), 6vw, var(--font-size-5xl));
    margin-bottom: var(--space-8);
    font-weight: 300;
    text-align: center;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-gray-70);
    font-weight: 400;
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: var(--line-relaxed);
}

.intro-text {
    font-size: var(--font-size-md);
    line-height: var(--line-relaxed);
    color: var(--color-gray-70);
    max-width: 650px;
    margin: 0 auto var(--space-2);
    text-align: center;
}

.intro-text p {
    margin-bottom: var(--space-2);
}

.workflow-section .intro-text {
    margin-bottom: 30px;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin: var(--space-4) 0 0 0;
}

.tool-card {
    padding: 0;
    border: none;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

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

.tool-image {
    width: 100%;
    height: 420px;
    background: var(--color-gray-10);
    border: 1px solid var(--color-gray-20);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.tool-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.tool-card h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0;
    font-weight: 400;
    color: var(--color-black);
    transition: color 0.2s ease;
}

.tool-card:hover h3 {
    color: var(--color-gray-70);
}

.tool-card p {
    font-size: var(--font-size-base);
    line-height: var(--line-relaxed);
    color: var(--color-gray-70);
    margin-bottom: 0;
}

.tool-link {
    font-size: var(--font-size-sm);
    color: var(--color-gray-50);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: var(--space-2);
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.tool-card:hover .tool-link {
    color: var(--color-black);
}

/* Workflow Section */
.workflow-section {
    
    padding: var(--space-12) 0 0 0;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: var(--space-12) 0;
}

.workflow-step {
    font-size: var(--font-size-lg);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-gray-20);
    line-height: var(--line-relaxed);
}

.workflow-step:last-child {
    border-bottom: none;
}

/* Why FLOW Section */
section:has(.why-flow-intro) {
    background: var(--color-gray-10);
}

.why-flow-intro {
    font-size: var(--font-size-xl);
    color: var(--color-black);
    text-align: center;
    margin: 0 auto var(--space-10);
    max-width: 700px;
    line-height: var(--line-relaxed);
    font-weight: 300;
}

.why-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin: var(--space-10) 0;
}

.why-flow-item {
    padding: 0;
}

.why-flow-item h4 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
    font-weight: 400;
    color: var(--color-black);
}

.why-flow-item p {
    font-size: var(--font-size-base);
    color: var(--color-gray-70);
    margin-bottom: 0;
    line-height: var(--line-relaxed);
}

.why-flow-outro {
    font-size: var(--font-size-lg);
    color: var(--color-gray-70);
    text-align: center;
    margin: var(--space-10) auto 0;
    max-width: 600px;
    line-height: var(--line-relaxed);
    font-style: italic;
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-50);
    font-size: var(--font-size-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.workflow-section .image-placeholder {
    margin-top: 0;
    margin-bottom: 0;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

/* Image Zoom Effect */
.image-zoom-container {
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.zoom-image {
    transition: transform 0.3s ease-out;
    transform-origin: center center;
    will-change: transform;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--space-20) 0;
    background: var(--color-black);
    color: var(--color-white);
}

.cta-section h2 {
    font-size: clamp(var(--font-size-3xl), 6vw, var(--font-size-5xl));
    margin-bottom: var(--space-8);
    font-weight: 300;
    color: var(--color-white);
    line-height: var(--line-tight);
}

.cta-section p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    color: rgba(255, 255, 255, 0.7);
}

.cta-button {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.cta-button:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

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

.modal-content {
    background: var(--color-white);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--color-gray-20);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: none;
    border: none;
    font-size: var(--font-size-3xl);
    color: var(--color-gray-70);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-black);
}

.modal-header {
    padding: var(--space-4) 0 var(--space-1);
    max-width: 100%;
}

.modal-form-content {
    padding: 0 var(--space-8) var(--space-4);
    overflow-y: auto;
    flex: 1;
    max-width: 100%;
}

.modal-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-2);
    font-weight: 400;
}

.modal-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-gray-70);
    margin-bottom: var(--space-3);
    line-height: var(--line-relaxed);
}

.modal-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-form-content {
    padding: 0 var(--space-8) var(--space-4);
    overflow-y: auto;
    flex: 1;
}

.included-products {
    margin: var(--space-3) 0;
}

.included-title {
    font-size: var(--font-size-base);
    color: var(--color-gray-70);
    margin-bottom: var(--space-2);
    text-align: center;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--space-3);
}

.product-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-1) 0;
    border-bottom: 1px solid var(--color-gray-20);
}

.product-list-item:last-child {
    border-bottom: none;
}

.product-list-item .product-name {
    font-size: var(--font-size-base);
    color: var(--color-black);
    font-weight: 400;
}

.product-list-item .product-price {
    font-size: var(--font-size-base);
    color: var(--color-gray-70);
}

.suite-pricing {
    margin: var(--space-3) 0;
    padding: var(--space-2);
    background: var(--color-gray-10);
    border: 1px solid var(--color-gray-20);
}

.suite-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.suite-name {
    font-size: var(--font-size-lg);
    color: var(--color-black);
    font-weight: 500;
}

.save-badge {
    font-size: var(--font-size-sm);
    color: var(--color-white);
    background: #2559F4;
    padding: 4px var(--space-2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}


.download-note {
    font-size: var(--font-size-sm);
    color: var(--color-gray-70);
    text-align: center;
    margin: var(--space-2) 0 var(--space-1) 0;
    line-height: var(--line-relaxed);
}

.modal-form-footer {
    padding: var(--space-4) var(--space-8) var(--space-6);
    border-top: 1px solid var(--color-gray-20);
    background: var(--color-white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.checkout-button {
    display: inline-block; /* ensures padding and width behave properly for <a> */
    padding: var(--space-3) var(--space-6);
    background: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-black);
    font-size: var(--font-size-base);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none; /* removes default underline */
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: center;
    box-sizing: border-box; /* ensures consistent sizing */
}

.checkout-button:hover {
    background: var(--color-white);
    color: var(--color-black);
}

a.checkout-button {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: var(--color-black);
    color: var(--color-white) !important; /* override any inherited link color */
    border: 1px solid var(--color-black);
    font-size: var(--font-size-base);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important; /* remove underline no matter what */
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

a.checkout-button:hover,
a.checkout-button:focus {
    background: var(--color-white);
    color: var(--color-black) !important;
    text-decoration: none !important;
}

.checkout-button.is-loading {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.student-discount {
    text-align: center;
    color: var(--color-gray-70);
    text-decoration: none;
    font-size: var(--font-size-sm);
    margin: var(--space-2) 0;
    transition: color 0.2s ease;
    display: block;
    width: 100%;
}

.student-discount:hover {
    color: var(--color-black);
}

.modal-payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-20);
    margin-bottom: var(--space-4);
}

.modal-payment-logos img {
    height: 16px;
    width: auto;
    opacity: 0.6;
}

/* Footer */
.site-footer {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-gray-20);
    background: var(--color-white);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.security-note {
    font-size: var(--font-size-sm);
    color: var(--color-gray-70);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.payment-logos {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: var(--space-6);
    align-items: center;
}

.payment-logos img {
    height: 22px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.payment-logos img:hover {
    opacity: 1;
}

.footer-bottom {
    margin-top: var(--space-6);
    padding: var(--space-4) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-align: center;
    width: 100%;
}

.footer-link {
    color: var(--color-gray-70);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.footer-link:hover {
    color: var(--color-black);
}

.dot {
    color: var(--color-gray-20);
}

@media (max-width: 768px) {
    .payment-logos {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, max-content);
        justify-content: center;
        gap: var(--space-4) var(--space-6);
    }
}
/* Responsive */
@media (max-width: 768px) {
    :root {
        --space-8: 3rem;
        --space-10: 4rem;
        --space-12: 5rem;
        --space-16: 6rem;
        --space-20: 8rem;
    }

    .header-content {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        text-align: center;
    }

    .main-nav {
        gap: var(--space-4);
        flex-wrap: wrap;
        justify-content: center;
        order: 2;
    }

    .logo {
        justify-self: flex-start;
        order: 1;
    }

    .header-cta {
        justify-self: flex-end;
        order: 3;
        margin-top: var(--space-2);
    }

    .hero {
        padding: var(--space-12) 0 var(--space-10);
    }

    section {
        padding: var(--space-10) 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .tool-video {
        height: 300px;
    }

    .why-flow-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .why-flow-intro {
        margin-bottom: var(--space-8);
    }
    
    .why-flow-outro {
        margin-top: var(--space-8);
    }

    .container {
        padding: 0 var(--space-3);
    }

    .hero-image {
        height: 400px;
    }

    .image-placeholder {
        height: 360px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        margin-bottom: var(--space-4);
    }

    .hero .tagline {
        margin-bottom: var(--space-8);
    }

    .section-title {
        margin-bottom: var(--space-6);
    }
}

