/* ============================================================
   DESIGN TOKENS & FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* vanilla-cookieconsent brand overrides */
#cc-main {
    --cc-font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --cc-btn-primary-bg: hsl(270, 91%, 55%);
    --cc-btn-primary-hover-bg: hsl(270, 91%, 48%);
    --cc-btn-primary-color: #ffffff;
    --cc-btn-secondary-bg: #f3f4f6;
    --cc-btn-secondary-hover-bg: #e5e7eb;
    --cc-btn-secondary-color: #111827;
    --cc-toggle-on-bg: hsl(270, 91%, 55%);
    --cc-toggle-on-knob-bg: #ffffff;
    --cc-cookie-category-block-bg: #f8f9fa;
    --cc-cookie-category-block-border: #e5e7eb;
    --cc-modal-border-radius: 16px;
    --cc-btn-border-radius: 10px;
    --cc-z-index: 9999;
}

:root {
    /* ── Brand colours ── */
    --brand-blue:          hsl(224, 76%, 33%);    /* deep indigo-blue */
    --brand-blue-light:    hsl(217, 91%, 68%);
    --brand-purple:        hsl(270, 91%, 55%);    /* vivid purple */
    --brand-purple-light:  hsl(270, 77%, 71%);

    /* ── Semantic tokens ── */
    --primary:        hsl(270, 91%, 55%);
    --primary-hover:  hsl(270, 91%, 48%);
    --primary-light:  hsl(270, 77%, 71%);
    --secondary:      hsl(215, 24%, 26%);
    --accent:         hsl(38, 92%, 50%);

    /* ── Surface colours ── */
    --bg-light:   hsl(270, 30%, 98%);    /* near-white with subtle purple cast */
    --bg-surface: hsl(270, 30%, 99%);
    --white:      #ffffff;

    /* ── Text ── */
    --text-main:  hsl(270, 25%, 15%);
    --text-muted: hsl(270, 15%, 40%);

    /* ── Borders ── */
    --border: hsl(270, 20%, 88%);

    /* ── Status ── */
    --error:   hsl(0, 72%, 51%);
    --success: hsl(142, 76%, 36%);
    --warning: hsl(38, 92%, 50%);

    /* ── Gradients ── */
    --gradient-hero:  linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
    --gradient-hero-r: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%);
    --gradient-btn:   linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
    --gradient-text:  linear-gradient(135deg, var(--brand-blue-light) 0%, var(--brand-purple-light) 100%);
    --gradient-card:  linear-gradient(180deg, #ffffff 0%, hsl(270, 20%, 98%) 100%);

    /* ── Shadows ── */
    --shadow-sm:  0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg:  0 10px 25px -5px rgba(109,40,217,0.12), 0 4px 10px -3px rgba(0,0,0,0.06);
    --shadow-xl:  0 20px 50px -10px rgba(109,40,217,0.18), 0 8px 20px -5px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px hsl(270 91% 55% / 0.25);

    /* ── Misc ── */
    --radius:     16px;
    --radius-sm:  8px;
    --radius-lg:  24px;
    --font-main:  'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ============================================================
   BASE RESET & BODY
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hidden { display: none !important; }

/* ── Utility animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    10%,30%,50%,70%,90% { transform: translateX(-5px); }
    20%,40%,60%,80%     { transform: translateX(5px); }
}
@keyframes slideIn {
    from { transform: translateX(400px); }
    to   { transform: translateX(0); }
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes ping {
    75%,100% { transform: scale(1.8); opacity: 0; }
}
@keyframes float {
    0%,100% { transform: translateY(0px); }
    50%      { transform: translateY(-14px); }
}
@keyframes pulseSlow {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

.fade-in  { animation: fadeIn 0.45s ease-out forwards; }
.fade-up  { animation: fadeUp 0.55s ease-out forwards; }
.shake    { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }


/* ============================================================
   LANDING PAGE HERO SECTION
   ============================================================ */
#homePage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Top navigation bar ── */
.hero-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    padding: 1.5rem 2rem;
}

.hero-nav-inner {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}

.hero-logo-name {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.hero-logo-name svg {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    margin: 0 0.025em;
    transform: translateY(0.06em) rotate(-90deg);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.3));
}

.hero-logo-sub {
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.025em;
    text-transform: none;
    align-self: flex-end;
}

@media (min-width: 640px) {
    .hero-logo-sub { font-size: 0.75rem; }
}

.hero-nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.hero-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.hero-nav-links a:hover { color: #fff; }

@media (min-width: 768px) {
    .hero-nav-links { display: flex; }
}

/* ── Hero section ── */
.hero-section {
    background: var(--gradient-hero);
    padding: 0;
    position: relative;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Background glow orbs */
.hero-section::before {
    content: '';
    position: absolute;
    top: 25%; left: 20%;
    width: 40vw; height: 40vw;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 10rem 2rem 8rem;
    max-width: 900px;
    width: 100%;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 0.45rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    animation: fadeUp 0.6s ease-out both;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s 0.08s ease-out both;
}

.hero-title span {
    color: var(--brand-purple-light);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
    font-weight: 400;
    animation: fadeUp 0.6s 0.16s ease-out both;
}

/* ── Hero trust strip ── */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-top: 2rem;
    animation: fadeUp 0.6s 0.28s ease-out both;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.hero-trust-item span.material-symbols-outlined {
    font-size: 1.1rem;
}

/* ── Wave separator ── */
.hero-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    line-height: 0;
    pointer-events: none;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* ── Cookie gate notice ── */
.cookie-gate-notice {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin-top: 12px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    animation: fadeUp 0.4s ease-out both;
}
.cookie-gate-notice.visible { display: flex; }

/* ── Primary CTA button ── */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--white);
    color: var(--brand-purple);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeUp 0.6s 0.22s ease-out both;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.28);
}


/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
    background: var(--white);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, hsl(270 91% 55% / 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-inner {
    max-width: 1152px;
    margin: 0 auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    background: hsl(270 91% 55% / 0.08);
    color: var(--brand-purple);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-title .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ── Feature flow grid ── */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 2.5rem;
    }
}

.features-col-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.features-col-label-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Input channels */
.feature-channel-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-channel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.feature-channel:hover {
    border-color: hsl(270 91% 55% / 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-channel-info { min-width: 0; flex: 1; }

.feature-channel-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
}

.feature-channel-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.feature-channel-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.feature-icon-chip {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-channel-pulse {
    position: absolute;
    top: 8px; right: 8px;
    width: 8px; height: 8px;
}

.feature-channel-pulse::before,
.feature-channel-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #10b981;
}

.feature-channel-pulse::before {
    animation: ping 1.6s cubic-bezier(0,0,0.2,1) infinite;
    opacity: 0.5;
}

.feature-channel-pulse::after {
    width: 6px; height: 6px;
    top: 1px; left: 1px;
}

/* Engine orb (center) */
.features-engine {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.features-orb {
    position: relative;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-purple) 0%, #c026d3 50%, var(--brand-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 0 8px rgba(255,255,255,0.6), 0 20px 50px hsl(270 91% 55% / 0.4), var(--shadow-glow);
    flex-shrink: 0;
}

/* Score progress ring around the orb */
.features-orb-score-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
    z-index: 1;
}

.orb-score-progress {
    stroke-dashoffset: 339.29;
    animation: orbScoreGrow 2s ease-out 0.4s forwards;
}

@keyframes orbScoreGrow {
    from { stroke-dashoffset: 339.29; }
    to   { stroke-dashoffset: 61.07; }   /* ~82% of the circle filled */
}

/* Sparkle accent — floats outside, top-right */
.features-orb-sparkles {
    position: absolute;
    top: -14px; right: -10px;
    display: flex;
    align-items: flex-end;
    z-index: 3;
    pointer-events: none;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.45));
}

.features-orb-sparkles svg { fill: currentColor; }
.features-orb-sparkles svg:first-child { width: 34px; height: 34px; }
.features-orb-sparkles svg:last-child  { width: 20px; height: 20px; opacity: 0.9; margin-left: -6px; margin-bottom: 4px; }

.features-orb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 2;
    line-height: 1.2;
}

.features-orb-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.features-orb-name {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

@media (min-width: 900px) {
    .features-orb { width: 200px; height: 200px; }
    .features-orb-name { font-size: 1.3rem; }
    .features-orb-label { font-size: 0.7rem; }
}

/* Output list */
.feature-output-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-output {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid hsl(270 91% 55% / 0.18);
    background: hsl(270 91% 55% / 0.03);
    transition: box-shadow 0.25s, transform 0.2s;
}

.feature-output:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-output-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-output-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.feature-output-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.feature-output-check {
    margin-left: auto;
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.feature-output.featured {
    border-color: hsl(38 92% 50% / 0.35);
    background: hsl(38 92% 50% / 0.04);
}

.feature-output-pdf-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Google-branded chip ── */
.g-chip {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.g-chip svg { width: 20px; height: 20px; }


/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    background: var(--bg-light);
    padding: 6rem 2rem;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.open {
    border-color: hsl(270 91% 55% / 0.35);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s;
}

.faq-trigger:hover { color: var(--brand-purple); }

.faq-item.open .faq-trigger { color: var(--brand-purple); }

.faq-chevron {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: hsl(270 91% 55% / 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s, background 0.2s;
    color: var(--brand-purple);
}

.faq-chevron .material-symbols-outlined {
    font-size: 1rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-chevron { background: var(--brand-purple); color: #fff; }
.faq-item.open .faq-chevron .material-symbols-outlined { transform: rotate(180deg); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
    padding: 0 1.5rem;
}

.faq-item.open .faq-content {
    max-height: 400px;
    padding-bottom: 1.25rem;
}

.faq-content p {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.7;
}

/* ── Landing footer ── */
.landing-footer {
    padding: 2rem 2rem;
    text-align: center;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.landing-footer-inner {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .landing-footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.landing-footer a {
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.landing-footer a:hover { color: var(--brand-purple); }

.landing-footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
}


/* ============================================================
   WIZARD – SHARED SHELL
   ============================================================ */
.wizard-wrapper {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    min-height: 80vh;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}
.back-link:hover { color: var(--brand-purple); }


/* ============================================================
   STEPPER
   ============================================================ */
.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 3rem;
    position: relative;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.stepper-line {
    display: none; /* replaced per-item by connectors */
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

/* connector line between steps */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: var(--border);
    z-index: 1;
    transition: background 0.4s;
}

.step-item.completed:not(:last-child)::after {
    background: var(--gradient-hero);
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    z-index: 2;
}

.step-item.active .step-circle {
    border: 2px solid var(--brand-purple);
    background: hsl(270 91% 55% / 0.08);
    color: var(--brand-purple);
    box-shadow: 0 0 0 5px hsl(270 91% 55% / 0.12);
}

.step-item.completed .step-circle {
    background: var(--gradient-hero);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s;
}

.step-item.active .step-label   { color: var(--brand-purple); font-weight: 700; }
.step-item.completed .step-label { color: var(--brand-blue); }


/* ============================================================
   WIZARD CARD
   ============================================================ */
.wizard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid hsl(270 20% 90%);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out both;
}

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

.wizard-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.wizard-desc {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}


/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.input-wrapper { position: relative; }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.9rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.975rem;
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px hsl(270 91% 55% / 0.1);
    background: var(--white);
}

.form-input.error {
    border-color: var(--error);
    background: hsl(0 84% 60% / 0.04);
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: none;
    font-weight: 500;
}

.form-input.error ~ .error-msg { display: block; }


/* ============================================================
   COMPETITOR CHIPS
   ============================================================ */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
    min-height: 40px;
    justify-content: center;
}

.comp-chip {
    background: hsl(270 91% 55% / 0.08);
    color: var(--brand-purple);
    padding: 7px 16px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    border: 1px solid hsl(270 91% 55% / 0.25);
}

.comp-chip .close-btn {
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.55;
    transition: opacity 0.15s;
}
.comp-chip .close-btn:hover { opacity: 1; }

.comp-input-group {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.comp-input-wrapper { flex: 1; }

.comp-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.975rem;
    font-family: var(--font-main);
    background: var(--bg-surface);
    color: var(--text-main);
    transition: border-color 0.2s;
}
.comp-input:focus {
    outline: none;
    border-color: var(--brand-purple);
    background: var(--white);
    box-shadow: 0 0 0 4px hsl(270 91% 55% / 0.1);
}

.btn-add-comp {
    width: 52px;
    height: 52px;
    background: var(--gradient-btn);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-add-comp:hover { opacity: 0.9; transform: scale(1.05); }
.btn-add-comp:disabled { background: #d1d5db; cursor: not-allowed; transform: none; }


/* ============================================================
   AUTH CARDS (Step 3 – Connect)
   ============================================================ */
.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

.auth-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    background: var(--bg-surface);
}

.auth-card:hover {
    border-color: hsl(270 91% 55% / 0.35);
    box-shadow: var(--shadow-md);
}

.auth-card.connected {
    border-color: var(--brand-purple);
    background: hsl(270 91% 55% / 0.03);
    box-shadow: 0 0 0 3px hsl(270 91% 55% / 0.1);
}

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

.platform-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.auth-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2px;
}

.auth-card.connected .auth-status {
    color: var(--brand-purple);
    font-weight: 600;
}

.connect-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.2s, transform 0.15s;
    font-family: var(--font-main);
}
.connect-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-google { background: #4285F4; color: white; }
.btn-meta   { background: #1877F2; color: white; }

.btn-connected {
    background: var(--white);
    border: 2px solid var(--brand-purple) !important;
    color: var(--brand-purple);
    pointer-events: none;
}


/* ============================================================
   ACCOUNT SELECTION (Step 4)
   ============================================================ */
.account-section {
    text-align: left;
    margin-bottom: 2rem;
}

.account-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.account-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.account-item {
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem 1.125rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
}

.account-item:hover {
    border-color: hsl(270 91% 55% / 0.4);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.account-item.selected {
    border-color: var(--brand-purple);
    background: hsl(270 91% 55% / 0.04);
    box-shadow: 0 0 0 3px hsl(270 91% 55% / 0.1);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.account-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.account-details { display: flex; flex-direction: column; }
.account-name { font-weight: 700; font-size: 0.95rem; }
.account-id { font-size: 0.8rem; color: var(--text-muted); }

.account-checkbox {
    width: 22px; height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    color: transparent;
}

.account-item.selected .account-checkbox {
    background: var(--gradient-hero);
    border-color: transparent;
    color: white;
}

.loading-spinner {
    display: inline-block;
    width: 22px; height: 22px;
    border: 3px solid hsl(270 91% 55% / 0.15);
    border-top: 3px solid var(--brand-purple);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}


/* ============================================================
   WIZARD ACTIONS / BUTTONS
   ============================================================ */
.wizard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 2rem;
}

.btn-next {
    background: var(--gradient-btn);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.975rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 15px hsl(270 91% 55% / 0.3);
}
.btn-next:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px hsl(270 91% 55% / 0.38);
}
.btn-next:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-back {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-main);
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.975rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: border-color 0.2s, color 0.2s;
}
.btn-back:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
}


/* ============================================================
   ANALYSIS LOADER (Step 5) – REDESIGNED
   ============================================================ */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* Data-stream scene */
.analyze-orb-scene {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analyze-streams-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.analyze-orb-group {
    position: relative;
    z-index: 2;
}

@keyframes analyzeDataPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes analyzeGlow {
    0%,100% { box-shadow: 0 0 0 12px hsl(270 91% 55% / 0.08), 0 0 50px hsl(270 91% 55% / 0.3); }
    50%      { box-shadow: 0 0 0 18px hsl(270 91% 55% / 0.15), 0 0 70px hsl(270 91% 55% / 0.55); }
}

.analyze-orb {
    position: relative;
    width: 128px; height: 128px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: analyzeGlow 1.8s ease-in-out infinite;
}

/* Ripple rings that expand outward */
.analyze-data-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid hsl(270 91% 55% / 0.45);
    animation: analyzeDataPulse 1.8s ease-out infinite;
    pointer-events: none;
}
.analyze-data-ring:nth-child(2) { animation-delay: 0.6s; }
.analyze-data-ring:nth-child(3) { animation-delay: 1.2s; }

.analyze-spinner-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.analyze-spinner-inner {
    width: 18px; height: 18px;
    border: 2.5px solid hsl(270 91% 55% / 0.2);
    border-top: 2.5px solid var(--brand-purple);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Progress bar */
.analyze-progress-wrap {
    width: 100%;
}

.analyze-progress-track {
    height: 10px;
    background: hsl(270 20% 92%);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.analyze-progress-fill {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 50px;
    width: var(--analyze-progress, 5%);
    transition: width 0.6s ease;
}

/* Steps: hidden by default, shown as chip (done) or active text (current) */
.analyze-steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    width: 100%;
}

.analysis-step {
    display: none; /* hidden until current or done */
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
}

.analysis-step.current {
    display: flex;
    width: 100%;
    justify-content: center;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0;
}

.analysis-step.done {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: hsl(270 91% 55% / 0.1);
    color: var(--brand-purple);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Legacy spinner (keep for JS run-audit button) */
.spinner {
    display: none; /* replaced by .analyze-orb */
}


/* ============================================================
   RESULTS (Step 6)
   ============================================================ */
.results-container {
    max-width: 1000px;
    margin: 0 auto;
}

.score-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.donut-chart {
    width: 220px; height: 220px;
    border-radius: 50%;
    background: conic-gradient(var(--accent, var(--brand-purple)) var(--deg, 0deg), hsl(270 20% 92%) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1.5rem;
    transition: --deg 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 10px rgba(0,0,0,0.04), var(--shadow-glow);
}

.donut-chart::before {
    content: '';
    width: 175px; height: 175px;
    background: white;
    border-radius: 50%;
    position: absolute;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}

.score-display {
    position: relative;
    z-index: 2;
    text-align: center;
}

.score-number {
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent, var(--brand-purple));
    transition: color 0.5s;
}

.score-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.35;
    margin-top: 6px;
    max-width: 130px;
    text-align: center;
}

.score-overall-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* Metric card score coloring */
.metric-val.score-green { color: #10b981; -webkit-text-fill-color: #10b981; }
.metric-val.score-yellow { color: #f59e0b; -webkit-text-fill-color: #f59e0b; }
.metric-val.score-orange { color: #f97316; -webkit-text-fill-color: #f97316; }
.metric-val.score-red { color: #ef4444; -webkit-text-fill-color: #ef4444; }

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

.metric-card {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1.5px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    border-color: hsl(270 91% 55% / 0.3);
    box-shadow: var(--shadow-md);
}

.metric-val {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-name {
    font-size: 0.825rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

.priority-header {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.action-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 0.875rem;
    border-left: 4px solid var(--brand-purple);
    transition: box-shadow 0.2s;
}

.action-card:hover { box-shadow: var(--shadow-md); }

.action-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.action-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.tag-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tag-high   { background: #fee2e2; color: #991b1b; }
.tag-med    { background: #fef3c7; color: #92400e; }
.tag-low    { background: #e0f2fe; color: #0369a1; }
.tag-effort { background: hsl(270 91% 55% / 0.1); color: var(--brand-purple); }


/* ============================================================
   MODALS
   ============================================================ */

/* Email report modal */
.email-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.email-modal-overlay.hidden { display: none; }

.email-modal-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem;
    max-width: 440px;
    width: 92%;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: fadeIn 0.3s ease-out;
}

.email-modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px;
}

.email-modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.55;
}

.email-modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.975rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.email-modal-input:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px hsl(270 91% 55% / 0.1);
}

.email-modal-error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 500;
}
.email-modal-error.hidden { display: none; }

.email-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.5rem;
}


/* ── "Remember these accounts" (wizard step 4) ── */
.remember-accounts {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: hsl(270 91% 55% / 0.05);
    border: 1px solid hsl(270 91% 55% / 0.25);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin: 1.5rem 0 0.5rem;
    cursor: pointer;
    text-align: left;
}
.remember-accounts input[type="checkbox"] {
    width: 17px; height: 17px;
    accent-color: var(--brand-purple);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.remember-accounts span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.remember-accounts strong {
    display: block;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 2px;
}
.remember-accounts a { color: var(--brand-purple); font-weight: 600; }


/* ============================================================
   AUTH — nav button + login/register modal
   ============================================================ */
.nav-login-btn {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.nav-login-btn:hover {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.6);
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.nav-user.hidden { display: none; }

.nav-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.nav-user-name:hover { border-bottom-color: rgba(255,255,255,0.6); }

.nav-logout-btn {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.85);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.nav-logout-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Auth modal ── */
.auth-modal-box {
    position: relative;
    max-width: 420px;
    max-height: 92vh;
    overflow-y: auto;
}

.auth-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.auth-modal-close:hover { background: var(--bg-light); color: var(--text-main); }

.auth-oauth-group { margin-bottom: 0.25rem; }

.auth-oauth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    margin-bottom: 0.6rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-oauth-btn:hover {
    border-color: hsl(270 91% 55% / 0.45);
    box-shadow: var(--shadow-md);
}
.auth-oauth-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-field { margin-bottom: 0.9rem; }
.auth-field .form-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.auth-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.45;
}

.auth-success {
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.5;
}
.auth-success.hidden { display: none; }

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}
.auth-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.auth-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-main);
    font-size: 0.825rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.auth-link:hover { color: var(--brand-purple); }
.auth-link strong { color: var(--brand-purple); font-weight: 700; }

/* Email-verification banner (shown in the wizard when unverified) */
.verify-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: hsl(38 92% 50% / 0.08);
    border: 1px solid hsl(38 92% 50% / 0.35);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
}
.verify-banner.hidden { display: none; }
.verify-banner button {
    background: none;
    border: none;
    color: var(--brand-purple);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* ── Privacy policy overlay ── */
.pp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.pp-overlay.hidden { display: none; }

.pp-box {
    background: var(--white);
    border-radius: var(--radius);
    width: min(760px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.pp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    background: hsl(270 30% 98%);
    flex-shrink: 0;
}
.pp-header-icon { color: var(--brand-purple); font-size: 1.6rem; }
.pp-header-title { font-weight: 700; font-size: 1rem; color: var(--text-main); }

.pp-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    scroll-behavior: smooth;
}

.pp-h1 { font-size: 1.4rem; font-weight: 900; color: var(--text-main); margin: 0 0 4px; }
.pp-h2 { font-size: 1.05rem; font-weight: 700; color: var(--brand-purple); margin: 24px 0 8px; border-top: 1px solid var(--border); padding-top: 16px; }
.pp-h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-main); margin: 14px 0 6px; }
.pp-p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin: 0 0 10px; }
.pp-list { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin: 4px 0 10px 20px; padding: 0; }
.pp-list li { margin-bottom: 4px; }

.pp-footer {
    border-top: 1px solid var(--border);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--bg-light);
    flex-shrink: 0;
}

.pp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-main);
    line-height: 1.5;
}
.pp-checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-purple);
    flex-shrink: 0;
    cursor: pointer;
}

.pp-accept-btn {
    padding: 12px 24px;
    white-space: nowrap;
    flex-shrink: 0;
}
.pp-accept-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Locked state */
.pp-locked {
    pointer-events: none;
    opacity: 0.4;
    user-select: none;
}


/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-left: 4px solid var(--error);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    font-family: var(--font-main);
    font-weight: 500;
}

.toast.success { border-left-color: var(--success); }


/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 640px) {
    .stepper { gap: 0; }
    .step-label { display: none; }
    .step-item.active .step-label { display: block; }
    .wizard-actions { flex-direction: column-reverse; align-items: stretch; }
    .btn-next, .btn-back { width: 100%; justify-content: center; }
    .auth-grid { grid-template-columns: 1fr; }
    .features-grid { gap: 1.5rem; }
    .features-section, .faq-section { padding: 4rem 1.25rem; }
}


/* ============================================================
   FEATURES – ANIMATED FLOW SVG OVERLAY
   ============================================================ */
.features-grid { position: relative; }

/* Grid columns sit above the SVG so text is never covered */
.features-grid > div {
    position: relative;
    z-index: 2;
}

.features-flow-svg {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

@media (min-width: 900px) {
    .features-flow-svg { display: block; }
}

/* Engine orb – pulse rings */
.features-orb { position: relative; }

.orb-ring-pulse,
.orb-ring-pulse-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.orb-ring-pulse {
    inset: 0;
    background: hsl(270 91% 55% / 0.15);
    animation: ping 2.6s cubic-bezier(0,0,0.2,1) infinite;
}

.orb-ring-pulse-2 {
    inset: -16px;
    background: hsl(270 91% 55% / 0.10);
    animation: ping 3.2s cubic-bezier(0,0,0.2,1) 0.6s infinite;
}

/* Hero geometric decorations */
.hero-deco {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    opacity: 0.07;
    display: none;
}

@media (min-width: 768px) { .hero-deco { display: block; } }

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-it-works-section {
    background: var(--bg-light);
    padding: 6rem 2rem;
}

.hiw-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .hiw-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .hiw-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.hiw-card-wrap { position: relative; }

@media (min-width: 1024px) {
    .hiw-card-wrap:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 3rem;
        left: calc(100% + 1px);
        width: calc(2rem - 2px);
        height: 2px;
        background: var(--border);
        z-index: 1;
    }
    .hiw-card-wrap:not(:last-child)::before {
        content: '';
        position: absolute;
        top: calc(3rem - 4px);
        right: 0;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--gradient-hero);
        z-index: 2;
    }
}

.hiw-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hiw-card:hover {
    border-color: hsl(270 91% 55% / 0.3);
    box-shadow: var(--shadow-lg);
}

.hiw-step-num {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.hiw-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.hiw-step-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hiw-step-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hiw-step-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-main);
}

.hiw-check-icon {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: hsl(270 91% 55% / 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hiw-check-icon .material-symbols-outlined {
    font-size: 0.7rem;
    color: var(--brand-purple);
}

.hiw-safety {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: hsl(142 76% 36% / 0.06);
    border: 1px solid hsl(142 76% 36% / 0.25);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.hiw-safety .material-symbols-outlined {
    color: var(--success);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hiw-safety-text {
    font-size: 0.75rem;
    color: #166534;
    line-height: 1.5;
}


/* ============================================================
   AUDIENCE BENEFITS SECTION
   ============================================================ */
.audience-section {
    background: var(--white);
    padding: 6rem 2rem;
}

.audience-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .audience-cards { flex-direction: row; min-height: 360px; }
}

.audience-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s,
                border-color 0.4s,
                transform 0.3s;
    flex: 1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .audience-card.active {
        flex: 3;
        border-color: transparent;
        box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    }
    .audience-card:not(.active):hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }
}

.audience-card-bar {
    height: 6px;
    width: 100%;
    transition: height 0.5s;
    flex-shrink: 0;
}
.audience-card.active .audience-card-bar { height: 10px; }

.audience-card-bar-1 { background: linear-gradient(90deg,#a855f7,#d946ef,#ec4899); }
.audience-card-bar-2 { background: linear-gradient(90deg,#7c3aed,#6d28d9,#3730a3); }
.audience-card-bar-3 { background: linear-gradient(90deg,#6366f1,#2563eb,#1e40af); }
.audience-card-bar-4 { background: linear-gradient(90deg,#38bdf8,#3b82f6,#06b6d4); }

.audience-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.audience-card.active .audience-card-bg { opacity: 1; }

.audience-card-overlay-1 { background: linear-gradient(135deg,#a855f7,#d946ef,#ec4899); }
.audience-card-overlay-2 { background: linear-gradient(135deg,#7c3aed,#6d28d9,#3730a3); }
.audience-card-overlay-3 { background: linear-gradient(135deg,#6366f1,#2563eb,#1e40af); }
.audience-card-overlay-4 { background: linear-gradient(135deg,#38bdf8,#3b82f6,#06b6d4); }

.audience-card-content {
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(100% - 6px);
}
.audience-card.active .audience-card-content { height: calc(100% - 10px); }

/* Icon stays at the top, text block is pushed to the bottom of the card */
.audience-card-content > div:last-child { margin-top: auto; }

.audience-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: hsl(270 91% 55% / 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
    flex-shrink: 0;
}
.audience-card.active .audience-icon-wrap {
    background: rgba(255,255,255,0.15);
    width: 64px; height: 64px;
    border-radius: 18px;
}

.audience-icon-wrap .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--brand-purple);
    transition: all 0.5s;
}
.audience-card.active .audience-icon-wrap .material-symbols-outlined {
    color: #fff;
    font-size: 2rem;
}

.audience-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.5s;
    margin-bottom: 0.25rem;
}
.audience-card.active .audience-label { color: rgba(255,255,255,0.75); }

.audience-benefit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    transition: all 0.5s;
}
@media (min-width: 1024px) {
    .audience-card.active .audience-benefit {
        font-size: 2rem;
        color: #fff;
    }
}

.audience-cta-line {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.audience-card.active .audience-cta-line { display: flex; }

.audience-cta-line .aud-line {
    height: 3px; width: 64px;
    border-radius: 2px;
    background: rgba(255,255,255,0.8);
}
.audience-cta-line .material-symbols-outlined {
    color: #fff;
    font-size: 1.2rem;
}


/* ============================================================
   TRUST BADGES SECTION
   ============================================================ */
.trust-badges-section {
    background: var(--bg-light);
    padding: 5rem 2rem;
}

.trust-badges-inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 24px;
    border: 2px solid hsl(270 91% 55% / 0.2);
    background: linear-gradient(135deg, var(--white), hsl(270 20% 99%));
    padding: 3rem 2rem;
    box-shadow: 0 8px 40px hsl(270 91% 55% / 0.08);
    overflow: hidden;
}

.trust-badges-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 40%;
    background: radial-gradient(ellipse, hsl(270 91% 55% / 0.08), transparent 70%);
    pointer-events: none;
}

.trust-badges-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.trust-badges-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    color: var(--text-main);
    margin: 0.75rem 0;
    letter-spacing: -0.03em;
}

.trust-badges-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.65;
}

.trust-badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    position: relative;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    background: var(--white);
    border: 2px solid var(--border);
    transition: all 0.25s;
    cursor: default;
}

.trust-badge-item:hover {
    border-color: hsl(270 91% 55% / 0.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.trust-badge-text-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}
.trust-badge-text-main {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.trust-badge-logo { flex-shrink: 0; }

/* Google wordmark next to the G icon */
.trust-badge-wordmark {
    font-family: 'Inter', 'Product Sans', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}


/* ============================================================
   ABOUT PERFORMAGIC SECTION
   ============================================================ */
.about-section {
    background: var(--white);
    padding: 6rem 2rem;
}

.section-badge-blue {
    background: hsl(224 76% 33% / 0.08);
    color: var(--brand-blue);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
    .about-photo { order: 2; }
}

.about-photo {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.about-text a {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}
.about-text a:hover { color: var(--brand-purple); text-decoration: underline; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .about-stats { grid-template-columns: repeat(3, 1fr); }
}

.about-stat {
    border: 2px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.about-stat:hover {
    border-color: hsl(270 91% 55% / 0.4);
    box-shadow: var(--shadow-lg);
}

.about-stat-value {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.about-industries {
    text-align: center;
    margin-bottom: 3.5rem;
}

.about-industries-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-marquee-mask {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.about-marquee {
    display: flex;
    width: max-content;
    gap: 0.5rem;
    animation: aboutMarquee 25s linear infinite;
}
.about-marquee:hover { animation-play-state: paused; }

@keyframes aboutMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.about-industry-chip {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
}

.about-quote-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

.about-quote {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 500;
    font-style: italic;
    color: #fff;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-blue);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.about-quote-btn:hover { opacity: 0.92; transform: translateY(-1px); }
