:root {
    --primary: #2a7eff;
    --primary-dark: #135bf9;
    --primary-soft: #eff6ff;
    --ink: #0d1529;
    --ink-soft: #43546a;
    --muted: #667085;
    --faint: #98a2b3;
    --line: #eef2f6;
    --line-soft: #f0f2f5;
    --surface: #ffffff;
    --canvas: #f7f9fa; /* Notion-style off-white */
    --success: #01df72;
    --success-soft: #ecfdf3;
    --yellow: #FEDE1C;
    --shadow: 0 4px 24px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .02);
    --max: 1180px;

    --font-display: 'Onest', -apple-system, sans-serif;
    --font-body: 'Google Sans Flex', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background: var(--canvas);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    /* clip, not hidden: hidden makes body a scroll container, which stops
       position:sticky descendants (the plans table header) sticking. */
    overflow-x: clip;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    font-weight: 600;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; }

.container {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

/* ================= SECTIONS ================= */
.section {
    padding: 64px 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.section-alt {
    background: var(--canvas);
}

.section-head {
    margin-bottom: 48px;
    max-width: 680px;
}

.section-head h1,
.section-head h2 {
    font-size: clamp(28px, 4vw, 36px);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--ink);
}

.section-head p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

/* ================= BUTTONS & PILLS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 14px;
    corner-shape: squircle;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn .btn-icon {
    margin-left: 6px;
    margin-right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid color-mix(in srgb, var(--primary) 25%, white);
    border-radius: 999px;
    corner-shape: squircle;
    padding: 6px 10px 6px 8px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .02em;
    margin-bottom: 24px;
}

.eyebrow-dot {
    width: 6px; 
    height: 6px; 
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 87, 213, .12);
}

/* ================= NAVIGATION ================= */
.nav {
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid var(--line);
    
    /* NEW: Triggers the drop-down on load */
    animation: slideDownReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto;
}

.nav-menu { display: contents; }
.nav-toggle { display: none; background: transparent; color: var(--ink); }

.nav-links { display: flex; gap: 12px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color 0.15s; padding: 6px 10px; transition: all 0.15s ease;}
.nav-links a:hover { color: var(--ink); background: var(--line-soft); border-radius: 8px;  }
.nav-actions { display: flex; gap: 12px; }

/* ================= HERO ================= */
.hero {
    padding: 42px 0 64px;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto 48px;
}

h1 {
    font-size: clamp(34px, 5.5vw, 64px);
    line-height: 1.05;
    letter-spacing: -.05em;
    margin-bottom: 20px;
}

h1 .accent {
    color: var(--primary);
    position: relative;
    white-space: nowrap;
    z-index: 1; /* Fix: creates a local stacking context */
}

h1 .accent::after {
    content: "";
    position: absolute;
    height: 6px; /* Slightly thicker for visibility */
    left: -2px; /* Extends just a tiny bit past the text */
    right: -2px;
    bottom: 3px; /* Lifts it up to sit behind the text rather than below it */
    border-radius: 8px;
    background: var(--yellow);
    opacity: 0.8;
    z-index: -1; /* Stays behind the blue text, but above the background */
    transform: rotate(-1.5deg); /* The hand-drawn angle */
}

h2 .accent {
    color: var(--primary);
    position: relative;
    white-space: nowrap;
    z-index: 1; /* Fix: creates a local stacking context */
}

h2 .accent::after {
    content: "";
    position: absolute;
    height: 4px; /* Slightly thicker for visibility */
    left: -2px; /* Extends just a tiny bit past the text */
    right: 0px;
    bottom: 0px; /* Lifts it up to sit behind the text rather than below it */
    border-radius: 8px;
    background: var(--yellow);
    opacity: 0.8;
    z-index: -1; /* Stays behind the blue text, but above the background */
    transform: rotate(-1.5deg); /* The hand-drawn angle */
}

.hero-description {
    font-size: 18px;
    color: var(--ink-soft);
    margin: 0 auto 32px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ================= PRODUCT WINDOW & CAROUSEL ================= */
.preview-area { 
    position: relative; 
    max-width: 1000px; 
    margin: 0 auto; 
}

.product-window {
    width: 100%; 
    border: 1px solid var(--line); 
    border-radius: 16px;
    corner-shape: squircle;
    background: var(--surface); 
    box-shadow: var(--shadow); 
    overflow: hidden;
    text-align: left;
}

.hero-carousel {
    position: relative;
    width: 100%;
    background: var(--surface);
}

.hero-carousel .app-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto; /* Allows natural scaling, preventing horizontal cropping */
    display: block; /* Removes the bottom text-descender gap */
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel .app-screenshot:first-of-type {
    position: relative;
}

.hero-carousel .app-screenshot.active {
    opacity: 1;
    z-index: 2;
}

/* (Leave your .carousel-nav CSS exactly as it is below this) */

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 999px;
    corner-shape: squircle;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.05);
}

.nav-pill {
    width: 20px;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    transition: all 0.3s ease;
}

.nav-pill:hover {
    background: var(--faint);
}

.nav-pill.active {
    background: var(--primary);
    width: 32px;
}

/* ================= LOGOS ================= */
.logos-wrapper {
    display: flex; 
    justify-content: center; 
    gap: 48px; 
    opacity: 0.5; 
    filter: grayscale(100%); 
    flex-wrap: wrap; 
    margin-top: 48px;
}

.logos-wrapper span { 
    font-size: 18px; 
    font-weight: 700; 
    font-family: var(--font-display); 
}

/* ================= FEATURES (3-CARD GRID) ================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: linear-gradient(160deg, #ffffff 0%, var(--canvas) 100%);
    border: 1px solid var(--primary-soft);
    border-radius: 20px;
    corner-shape: squircle;
    padding: 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 16, 48, 0.02);
    /* Notice: removed 'transform' from the transition entirely */
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card.is-visible {
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card.is-visible:hover {
    /* Creates a beautiful, diffused bluish glow using your primary color */
    box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 8%, transparent),
                0 4px 12px color-mix(in srgb, var(--primary) 4%, transparent);
                
    /* Smoothly darkens the border */
    border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--primary-dark); /* Note: this might need offsets like '0 4px 12px var(--primary-dark)' to work properly */
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.feature-icon {
    width: 44px; 
    height: 44px;
    background: var(--primary-soft);
    border: 1px solid color-mix(in srgb, var(--primary) 25%, white);
    border-radius: 12px;
    corner-shape: squircle;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
    color: var(--ink);
}

.feature-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.premium-addon {
    /* Mixes your variable with 50% transparency */
    background: color-mix(in srgb, var(--primary-soft) 25%, transparent);
    
    border-top: 1px solid var(--primary-soft);
    margin: 0 -32px -32px -32px;
    padding: 24px 32px;
    border-radius: 0 0 20px 20px;
    corner-shape: squircle;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-addon span:last-child {
    font-size: 13.5px;
    color: var(--primary);
    line-height: 1.5;
}

.addon-badge {
    align-self: flex-start;
    /* background: var(--canvas); */
    color: var(--primary-dark);
    /* border: 1px solid var(--primary); */
    /* padding: 4px 10px; */
    /* border-radius: 999px; */
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}


/* ================= PROCESS ================= */
.process-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Makes the video slightly wider than the text */
    gap: 48px;
    align-items: center;
}

.process-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.process-step {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 16px;
    corner-shape: squircle;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.5;
    position: relative; /* Needed for the absolute progress bar */
    overflow: hidden; /* Keeps the progress bar contained within the rounded corners */
}

/* New Progress Bar Styling */
.step-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Thin, elegant line */
    background: transparent;
}

.process-step.active .step-progress {
    background: var(--line); /* Shows the empty track only on the active card */
}

.step-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    /* No CSS transition on width, the JS updates it smoothly via video time update */
}

.process-step:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--surface) 50%, transparent);
}

.process-step.active {
    opacity: 1;
    background: var(--surface);
    border-color: var(--primary-soft);
    box-shadow: 0 4px 20px rgba(0, 16, 48, 0.04);
}

.step-num {
    flex-shrink: 0;
    width: 32px; 
    height: 32px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    transition: all 0.25s ease;
}

/* Highlight the number pill when active */
.process-step.active .step-num {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.step-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
    margin-top: 4px;
    color: var(--ink);
}

.step-content p {
    font-size: 14.5px;
    color: var(--muted);
}

/* Video Container Styles */
.process-visuals {
    position: relative;
    width: 100%;
    aspect-ratio: 1664 / 1080; /* Maintains your native video ratio */
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 20px;
    corner-shape: squircle;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.process-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease; /* Smooth crossfade between videos */
    pointer-events: none;
}

.process-video.active {
    opacity: 1;
    z-index: 2;
}


/* ================= PRICING ================= */
/* Constrain max-width so the 2 columns don't stretch too wide */
.pricing-cards { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    align-items: stretch; 
    max-width: 760px; 
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;corner-shape: squircle;
    padding: 32px 28px; display: flex; flex-direction: column; position: relative;
}

.pricing-card.featured { border: 1.5px solid var(--primary); box-shadow: var(--shadow); }
.card-badge {
    position: absolute; top: -13px; left: 26px; background: var(--primary); color: #fff;
    font-size: 11.5px; font-weight: 500; padding: 5px 12px; border-radius: 99px;corner-shape: squircle;
}

.card-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.card-desc { margin-top: 6px; font-size: 13.5px; color: var(--muted); min-height: 40px; }

.card-price { margin-top: 24px; display: flex; align-items: baseline; gap: 6px; }
.card-price .amount { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--ink); }
.card-price .amount.small { font-size: 24px; }
.card-price .period { font-size: 13.5px; color: var(--muted); }
.card-price-note { margin-top: 4px; font-size: 12.5px; color: var(--faint); }

.pricing-card .btn { width: 100%; margin-top: 24px; }

.card-features { list-style: none; margin: 24px 0 0; padding: 0; flex: 1; }
.card-features li {
    font-size: 13.5px; 
    color: var(--ink-soft); 
    padding: 10px 0; 
    display: flex; 
    gap: 10px; 
    align-items: flex-start;
    border-top: 1px solid var(--line-soft);
}
.card-features li:first-child { border-top: none; }
.card-features li .tick { color: var(--faint); font-weight: 600; flex: none; font-size: 12px; margin-top: 2px;}
.card-features li .tick-premium { color: var(--primary); font-weight: 600; flex: none; font-size: 12px; margin-top: 2px;}

/* ================= ENTERPRISE MINIMAL ================= */
.pricing-enterprise-minimal {
    text-align: center;
    max-width: 460px;
    margin: 80px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-enterprise-minimal svg {
    color: var(--ink);
    margin-bottom: 12px;
}

.enterprise-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.enterprise-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
    margin-top: 8px;
}

.enterprise-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--line);
    transition: color 0.15s ease;
}

.enterprise-link:hover {
    color: var(--primary);
    text-decoration-color: var(--primary-soft);
}

/* ================= FAQ ================= */
.faq-container { max-width: 680px; }

details {
    border-bottom: 1px solid var(--line);
}
details:last-child { border-bottom: none; }

summary {
    padding: 24px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+";
    font-size: 20px;
    color: var(--muted);
    font-weight: 400;
}
details[open] summary::after { content: "−"; }

.faq-content {
    padding: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}


/* ================= CTA SECTION ================= */
.cta-container {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 64px 0 16px; /* Adds extra breathing room before the footer */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: clamp(36px, 5vw, 48px);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--ink);
}

.cta-desc {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.5;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

/* Ensure the buttons scale up slightly for the hero-like CTA */
.cta-actions .btn {
    padding: 10px 20px;
    font-size: 15px;
}

/* ================= FOOTER ================= */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col strong { font-family: var(--font-display); font-size: 13px; color: var(--ink); font-weight: 600; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--faint);
}

.footer-social { display: flex; align-items: flex-end; gap: 8px; }
.footer-social a { transition: color 0.15s; }
.footer-social a:hover { color: var(--ink); }


/* ================= SUBTLE UI ANIMATIONS ================= */

/* 1. Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    /* High-end easing: starts fast, settles gently */
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Staggered Loading (for grids and process steps) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* 3. Button Micro-interactions (Physics-based press) */
.btn {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:active {
    transform: scale(0.96); /* Subtle physical press effect */
}

/* 4. Smooth FAQ Expansion (Animates the native <details> tag) */
details .faq-content {
    opacity: 0;
    transform: translateY(-8px);
}
details[open] .faq-content {
    animation: smoothExpand 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Applied to the real nav items: .nav-menu is display:contents and has no box. */
.nav-container > a,
.nav-toggle,
.nav-links,
.nav-actions {
    opacity: 0; /* Keep them hidden until their delay starts */
    animation: navItemDrop 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

/* Stagger the delays left-to-right */
.nav-container > a { animation-delay: 0.15s; }  /* Logo */
.nav-links      { animation-delay: 0.25s; }     /* Centre links */
.nav-toggle,
.nav-actions    { animation-delay: 0.35s; }     /* Right-hand controls */

/* ================= WORD SCROLLER ================= */
.word-scroller {
    display: inline-grid;
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em; 
    margin-left: -0.8em; /* Prevents the first letter from clipping */
    vertical-align: bottom;
    /* 1. Color removed to inherit the default h1 color (--ink) */
    
    /* 3. Adds a tiny buffer to stop the 'e' from clipping */
    padding-right: 0.02em; 
}

.scroller-word {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(100%);
    will-change: transform, opacity;
    
    /* 2. Forces all words to sit flush against the right edge of the grid */
    justify-self: end; 
}

.scroller-word.is-active {
    opacity: 1;
    transform: translateY(0);
    /* Smooth entry */
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroller-word.is-exiting {
    opacity: 0;
    transform: translateY(-100%); /* Exits to the top */
    /* Smooth, slightly faster exit */
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accessibility: Stop the animation for reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .scroller-word {
        transition: none !important;
    }
}

@keyframes smoothExpand {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownReveal {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navItemDrop {
    0% {
        opacity: 0;
        transform: translateY(-8px); /* A tiny secondary drop */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. Accessibility: Respect System Preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none !important;
    }
    .btn:active {
        transform: none;
    }
    .nav-container > a,
    .nav-toggle,
    .nav-links,
    .nav-actions {
        opacity: 1;
        animation: none;
    }
    .nav {
        animation: none;
    }
}



/* ================= LEGAL PAGES (terms, privacy) ================= */
/* Shared by both pages. Lived as a duplicated inline <style> in each, which
   also outranked this file's responsive rules. */
.legal-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}
.legal-header {
    margin-bottom: 64px;
}
.legal-header h1,
.legal-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}
.legal-header .meta-data {
    color: var(--muted);
    font-size: 15px;
    display: flex;
    gap: 16px;
}
.legal-content h2 {
    font-size: 22px;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}
.legal-content h3 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--ink);
}
.legal-content p {
    margin-bottom: 16px;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 16px;
}
.legal-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--ink-soft);
}
.legal-content li {
    margin-bottom: 12px;
    line-height: 1.6;
    list-style-type: disc;
}
.legal-content strong {
    color: var(--ink);
    font-weight: 600;
}
.legal-divider {
    height: 1px;
    background: var(--line);
    margin: 80px 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
    
    /* Pricing collapses to single column on mobile */
    .pricing-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    
    /* Enterprise banner collapses to standard vertical card */
    .pricing-tier-enterprise {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        max-width: 420px;
        padding: 32px 28px;
    }
    
    .footer-content { flex-direction: column; gap: 40px; }
    .footer-links { flex-wrap: wrap; gap: 28px 40px; }
    .footer-bottom { flex-wrap: wrap; gap: 12px; }

    .process-layout { 
        grid-template-columns: 1fr; 
        gap: 32px;
    }
    
    .process-visuals {
        grid-row: 1; /* Puts the video on top for mobile */
    }

    /* --- Mobile navigation ---
       The links and CTAs move into a disclosure panel under the bar. Above this
       breakpoint .nav-menu is display:contents, so the desktop bar is untouched:
       .nav-links and .nav-actions stay direct flex items of .nav-container. */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: -10px; /* keeps the glyph on the container's edge */
        border-radius: 12px;
        corner-shape: squircle;
        transition: background 0.15s ease;
    }
    .nav-toggle:hover { background: var(--line-soft); }
    .nav-toggle .icon-close { display: none; }
    .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
    .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

    .nav-menu {
        display: none;
        position: absolute;   /* anchored to .nav, the nearest positioned ancestor */
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 8px 24px 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(16, 24, 40, .06);
    }
    .nav-menu.is-open { display: flex; }

    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 10px;
        font-size: 15px;
        border-radius: 10px;
    }

    .nav-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--line-soft);
    }
    .nav-actions .btn { width: 100%; }

    /* Comfortable touch targets throughout. */
    .btn { min-height: 44px; }

    /* The word scroller overhangs its container by -0.8em, which on a phone puts
       the first letter in the gutter. Centre the words instead. */
    .word-scroller { margin-left: 0; }
    .scroller-word { justify-self: center; }

    .hero-ctas { flex-wrap: wrap; }

    /* The visible pill stays 20x6; the hit area is a full 44px tall. */
    .carousel-nav { padding: 0 12px; }
    .nav-pill {
        height: 44px;
        padding: 19px 0;
        background-clip: content-box;
    }
}

@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .section-head { margin-bottom: 32px; }
    .section-head p { font-size: 16px; }

    .hero { padding: 32px 0 48px; }
    .hero-content { margin-bottom: 32px; }
    .hero-description { font-size: 17px; }

    .feature-card { padding: 24px; }
    .premium-addon { margin: 0 -24px -24px; padding: 20px 24px; }

    .process-step { padding: 20px; gap: 16px; }

    .pricing-card { padding: 28px 22px; }
    .pricing-enterprise-minimal { margin-top: 56px; }

    .cta-container { padding: 24px 0 8px; }
    .cta-desc { font-size: 17px; }

    .footer { padding: 40px 0; }
    .footer-bottom { margin-top: 32px; }

    summary { padding: 20px 0; font-size: 15.5px; gap: 16px; }

    /* Legal pages (terms, privacy) */
    .legal-container { padding: 48px 24px 80px; }
    .legal-header { margin-bottom: 40px; }
    .legal-header .meta-data { flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
    .legal-divider { margin: 56px 0; }
}

/* ================= PLANS & FEATURES TABLE ================= */
/* Functional, not decorative: a near-invisible lane keeps the eye on the
   Premium column across ~40 rows of comparison. */
:root {
    --lane: rgba(42, 126, 255, .03);
    --nav-h: 65px;          /* sticky site nav */
    --plans-thead-h: 75px;  /* plan header row, measured */
}

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

.plans-head { max-width: 680px; margin-bottom: 32px; }
.plans-head h2 { font-size: clamp(24px, 3.2vw, 30px); letter-spacing: -0.03em; margin-bottom: 8px; }
.plans-head p { color: var(--muted); font-size: 15px; }

/* Horizontal scroll rather than hiding a plan on small screens. Applied only
   below the breakpoint that needs it: an overflow container would otherwise
   capture the sticky header and stop it sticking to the viewport. */
.plans-table-wrap { overflow-x: visible; }

.plans-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
    text-align: left;
}

.plans-table th, .plans-table td { padding: 10px 16px; vertical-align: middle; }
.plans-table thead th:not(.feature-col) { width: 15%; }

/* --- Sticky plan header --- */
.plans-table thead th {
    position: sticky;
    top: var(--nav-h); /* clears the sticky site nav */
    z-index: 4;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-top: 16px;
    padding-bottom: 14px;
}

.plans-table thead th:nth-child(3) { background: linear-gradient(var(--lane), var(--lane)), var(--surface); }

.plan-col-name {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.plan-col-price { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* --- Sticky feature-label column --- */
.plans-table th[scope="row"],
.plans-table .feature-col {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    font-weight: 400;
    color: var(--ink-soft);
    border-right: 1px solid var(--line-soft);
    min-width: 260px;
}

.plans-table thead th.feature-col { z-index: 5; }

/* --- Group heading rows --- */
/* The row sticks, not the cell: a sticky <th> is bounded by its own <tr> and
   so has nowhere to travel. Chrome bounds a sticky <tr> to the table rather
   than its <tbody>, so headings stack at the pin line instead of pushing each
   other out — invisible here, since each is the same height and opaque. */
.plans-table tr.group {
    position: sticky;
    top: calc(var(--nav-h) + var(--plans-thead-h));
    z-index: 3;
}

.plans-table tr.group th {
    position: static;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: var(--canvas);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-right: none;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* --- Comparison cells --- */
.plans-table tbody td {
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink-soft);
}

.plans-table tbody th[scope="row"] { border-bottom: 1px solid var(--line-soft); }
.plans-table tbody td:nth-child(3) { background: var(--lane); }

.cell-yes { color: var(--primary); font-weight: 600; font-size: 13px; }
.cell-yes-muted { color: var(--faint); font-weight: 600; font-size: 13px; }
.cell-no { color: #cdd4de; font-weight: 600; }
.cell-num { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.cell-note { display: inline-block; max-width: 13ch; font-size: 12px; line-height: 1.35; color: var(--muted); }

.plans-footnotes {
    margin-top: 28px;
    display: grid;
    gap: 8px;
    max-width: 680px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
}

.plans-scroll-hint { display: none; }

@media (max-width: 900px) {
    .plans-table-wrap { overflow-x: auto; }
}

@media (max-width: 760px) {
    .plans-table th[scope="row"], .plans-table .feature-col { min-width: 210px; }
    .plans-table th, .plans-table td { padding: 10px 12px; }
    .plans-scroll-hint {
        display: block;
        margin-bottom: 12px;
        font-size: 12.5px;
        color: var(--faint);
    }
}

/* On a phone the label column must leave room for at least one plan, or the
   table opens on feature names with no answers beside them. */
@media (max-width: 560px) {
    .plans-table { min-width: 540px; font-size: 12.5px; }
    .plans-table th[scope="row"], .plans-table .feature-col { min-width: 150px; }
    .plans-table th, .plans-table td { padding: 10px; }
    .plans-table thead th:not(.feature-col) { width: 24%; }
    .plan-col-name { font-size: 14px; }
    .cell-note { max-width: 11ch; font-size: 11.5px; }
}

.pricing-compare-cta { margin-top: 40px; text-align: center; }

/* Keyboard focus: the site had no focus style at all, so the UA default was
   doing the work. Outline follows each element's own border-radius. */
:where(a, button, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
