:root {
    --bg: #f8f6ff;
    --soft: #eef6ff;
    --text: #17245c;
    --muted: #5f6690;
    --accent: #7b4dff;
    --accent2: #9b6dff;
    --cyan: #58d3ff;
    --border: rgba(123, 77, 255, .18);
    --card: rgba(255, 255, 255, .8)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% 10%, rgba(88, 211, 255, .16), transparent 28%), radial-gradient(circle at 90% 12%, rgba(123, 77, 255, .16), transparent 30%), linear-gradient(135deg, var(--bg), var(--soft) 55%, #fff);
    min-height: 100vh
}

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

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 246, 255, .8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border)
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font-weight: 800;
    font-size: 1.35rem
}

.back {
    padding: 10px 16px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--border);
    font-weight: 700
}

.hero {
    padding: 88px 0 50px
}

.eyebrow {
    color: var(--cyan);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 16px 0 22px
}

.lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 24px 0 70px
}

.card,
.demo {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(123, 77, 255, .14);
    backdrop-filter: blur(16px)
}

.card h2 {
    margin-top: 0
}

.card p {
    color: var(--muted);
    line-height: 1.7
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px
}

.chip {
    padding: 7px 11px;
    border-radius: 999px;
    color: #5b3aa8;
    background: rgba(123, 77, 255, .08);
    border: 1px solid rgba(123, 77, 255, .14);
    font-size: .78rem;
    font-weight: 700
}

.section {
    padding: 12px 0 72px
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -.04em
}

.flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: center
}

.step {
    padding: 18px;
    text-align: center;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--border);
    font-weight: 750
}

.arrow {
    text-align: center;
    color: var(--accent);
    font-weight: 900
}

form {
    display: grid;
    gap: 14px;
    max-width: 640px
}

label {
    font-weight: 700
}

input,
textarea {
    width: 100%;
    margin-top: 7px;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid rgba(123, 77, 255, .22);
    background: white;
    font: inherit;
    color: var(--text)
}

textarea {
    min-height: 130px
}

button {
    width: max-content;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: white;
    font-weight: 800;
    cursor: pointer
}

.status {
    min-height: 24px;
    color: var(--muted);
    font-weight: 700
}

.note {
    margin-top: 20px;
    padding: 16px;
    border-left: 4px solid var(--accent);
    background: rgba(123, 77, 255, .06);
    border-radius: 12px;
    color: var(--muted)
}

footer {
    padding: 34px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted)
}

@media(max-width:860px) {
    .grid {
        grid-template-columns: 1fr
    }

    .flow {
        grid-template-columns: 1fr
    }

    .arrow {
        transform: rotate(90deg)
    }
}

/* ==================================================
   SEO PRACTICAL PAGE
================================================== */

.seo-demo-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: stretch;
}

.seo-demo-panel,
.seo-practice-card,
.seo-code-card,
.seo-result-card {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.9),
            rgba(244, 239, 255, 0.8));

    border: 1px solid rgba(123, 77, 255, 0.18);
    border-radius: 24px;

    box-shadow:
        0 24px 70px rgba(123, 77, 255, 0.13);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* Metadata editor and preview */

.seo-demo-panel {
    padding: 28px;
}

.seo-demo-panel h3 {
    margin: 0 0 10px;

    color: #2f235f;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.seo-demo-panel>p {
    margin-bottom: 24px;
    color: #6d6292;
    line-height: 1.65;
}

.seo-form-grid {
    display: grid;
    gap: 8px;
}

.seo-form-grid label {
    margin-top: 8px;

    color: #3c2d73;
    font-size: 0.9rem;
    font-weight: 800;
}

.seo-form-grid input,
.seo-form-grid textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 15px;

    color: #2f235f;
    font: inherit;

    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(123, 77, 255, 0.2);
    border-radius: 14px;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

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

.seo-form-grid input:focus,
.seo-form-grid textarea:focus {
    border-color: rgba(123, 77, 255, 0.7);

    box-shadow:
        0 0 0 4px rgba(123, 77, 255, 0.1);
}

.seo-character-count {
    margin-bottom: 5px;

    color: #8177a6;
    font-size: 0.76rem;
    text-align: right;
}


/* Search result preview */

.seo-serp-preview {
    margin-top: 24px;
    padding: 24px;

    background: #ffffff;
    border: 1px solid rgba(123, 77, 255, 0.14);
    border-radius: 20px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.seo-serp-url {
    color: #554a78;
    font-size: 0.82rem;
}

.seo-serp-title {
    margin: 8px 0 7px;

    color: #6840d1;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.seo-serp-description {
    color: #6d6292;
    font-size: 0.91rem;
    line-height: 1.55;
}

.seo-preview-note {
    margin-top: 15px;

    color: #8177a6;
    font-size: 0.78rem;
}


/* Practical cards */

.seo-practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.seo-practice-card {
    position: relative;
    padding: 28px;
    overflow: hidden;
}

.seo-card-number {
    display: block;
    margin-bottom: 34px;

    color: rgba(123, 77, 255, 0.34);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.seo-practice-card h3 {
    margin: 0 0 13px;

    color: #2f235f;
    font-size: 1.45rem;
    letter-spacing: -0.035em;
}

.seo-practice-card p {
    color: #6d6292;
    font-size: 0.91rem;
    line-height: 1.65;
}

.seo-checklist {
    display: grid;
    gap: 11px;

    margin-top: 22px;
}

.seo-check-item {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #4a3a7a;
    font-size: 0.86rem;
    font-weight: 700;
}

.seo-check-item span {
    width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    color: #ffffff;
    font-size: 0.7rem;

    background:
        linear-gradient(135deg,
            #a98cff,
            #7b4dff);

    border-radius: 50%;
}


/* Code examples */

.seo-code-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.seo-code-card {
    overflow: hidden;
}

.seo-code-header {
    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #4c378a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    background:
        linear-gradient(135deg,
            rgba(216, 200, 255, 0.66),
            rgba(244, 239, 255, 0.9));

    border-bottom: 1px solid rgba(123, 77, 255, 0.16);
}

.seo-code-card pre {
    min-height: 360px;
    margin: 0;
    padding: 24px;

    overflow-x: auto;

    color: #f8f6ff;
    font-family:
        Consolas,
        Monaco,
        "Courier New",
        monospace;

    font-size: 0.8rem;
    line-height: 1.7;

    background:
        linear-gradient(145deg,
            #332568,
            #4b348f);
}


/* Results */

.seo-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.seo-result-card {
    padding: 25px;
}

.seo-result-source {
    display: block;
    margin-bottom: 22px;

    color: #7b4dff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.seo-result-card strong {
    display: block;
    margin-bottom: 13px;

    color: #7b4dff;
    font-size: 3rem;
    line-height: 1;
}

.seo-result-card p {
    margin: 0;

    color: #6d6292;
    font-size: 0.82rem;
    line-height: 1.55;
}

.seo-results-note {
    margin-top: 18px;

    color: #8177a6;
    font-size: 0.78rem;
    text-align: center;
}


/* SEO responsive */

@media (max-width: 950px) {

    .seo-demo-grid,
    .seo-code-grid {
        grid-template-columns: 1fr;
    }

    .seo-practice-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {

    .seo-demo-panel,
    .seo-practice-card,
    .seo-result-card {
        padding: 21px;
    }

    .seo-code-card pre {
        min-height: auto;
        padding: 18px;
        font-size: 0.7rem;
    }

    .seo-results-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   PROJECT LOGO — AUTOMATIC WAVE
================================================== */

.project-page-logo {
    display: inline-flex;
    align-items: center;

    color: #2f235f;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.project-page-logo .logo-char {
    display: inline-block;
    transform: translateY(0);

    animation:
        projectLogoWave 4.8s ease-in-out infinite;
}

.project-page-logo .logo-dot {
    color: #7b4dff;
}

/* Atraso progressivo entre as letras */

.project-page-logo .logo-char:nth-child(1) {
    animation-delay: 0s;
}

.project-page-logo .logo-char:nth-child(2) {
    animation-delay: 0.08s;
}

.project-page-logo .logo-char:nth-child(3) {
    animation-delay: 0.16s;
}

.project-page-logo .logo-char:nth-child(4) {
    animation-delay: 0.24s;
}

.project-page-logo .logo-char:nth-child(5) {
    animation-delay: 0.32s;
}

.project-page-logo .logo-char:nth-child(6) {
    animation-delay: 0.40s;
}

.project-page-logo .logo-char:nth-child(7) {
    animation-delay: 0.48s;
}

@keyframes projectLogoWave {

    0%,
    16%,
    100% {
        transform: translateY(0);
    }

    7% {
        transform: translateY(-7px);
    }
}

/* ==================================================
   PROJECT PAGE HEADER — FINAL OVERRIDE
================================================== */

nav.project-page-nav {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100%;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.94),
            rgba(244, 239, 255, 0.9));

    border-bottom: 1px solid rgba(123, 77, 255, 0.16);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 12px 35px rgba(123, 77, 255, 0.08);
}

.project-page-nav .project-page-nav-inner {
    min-height: 88px;
    padding-top: 12px;
    padding-bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.project-page-nav .project-page-logo {
    display: inline-flex;
    align-items: center;

    color: #2f235f;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
}

.project-page-nav .project-page-logo .logo-char {
    display: inline-block;
    transform: translateY(0);

    animation:
        projectLogoWave 5.5s ease-in-out infinite;
}

.project-page-nav .project-page-logo .logo-dot {
    color: #7b4dff;
}

.project-page-nav .project-page-logo .logo-char:nth-child(1) {
    animation-delay: 0s;
}

.project-page-nav .project-page-logo .logo-char:nth-child(2) {
    animation-delay: 0.08s;
}

.project-page-nav .project-page-logo .logo-char:nth-child(3) {
    animation-delay: 0.16s;
}

.project-page-nav .project-page-logo .logo-char:nth-child(4) {
    animation-delay: 0.24s;
}

.project-page-nav .project-page-logo .logo-char:nth-child(5) {
    animation-delay: 0.32s;
}

.project-page-nav .project-page-logo .logo-char:nth-child(6) {
    animation-delay: 0.40s;
}

.project-page-nav .project-page-logo .logo-char:nth-child(7) {
    animation-delay: 0.48s;
}

@keyframes projectLogoWave {

    0%,
    15%,
    100% {
        transform: translateY(0);
    }

    7% {
        transform: translateY(-7px);
    }
}

.project-page-nav .project-page-back {
    padding: 11px 17px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #5e3cad;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(123, 77, 255, 0.2);
    border-radius: 999px;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.project-page-nav .project-page-back:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(123, 77, 255, 0.44);

    box-shadow:
        0 12px 30px rgba(123, 77, 255, 0.14);
}

@media (max-width: 560px) {

    .project-page-nav .project-page-nav-inner {
        min-height: 76px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .project-page-nav .project-page-logo {
        font-size: 1.25rem;
    }

    .project-page-nav .project-page-back {
        padding: 9px 12px;
        font-size: 0.75rem;
    }
}

/* ==================================================
   SEO — GENERATED METADATA RESULT
================================================== */

.seo-generated-panel {
    margin-top: 24px;
    padding: 30px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.92),
            rgba(244, 239, 255, 0.84));

    border: 1px solid rgba(123, 77, 255, 0.18);
    border-radius: 24px;

    box-shadow:
        0 24px 70px rgba(123, 77, 255, 0.13);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.seo-generated-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.seo-generated-header h3 {
    margin: 8px 0 0;

    color: #2f235f;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.seo-generated-description {
    max-width: 760px;
    margin: 18px 0 22px;

    color: #6d6292;
    line-height: 1.65;
}

.seo-generated-code {
    margin: 0;
    padding: 22px;

    overflow-x: auto;

    color: #e8e3ff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;

    background:
        linear-gradient(145deg,
            #22194b,
            #31256a);

    border: 1px solid rgba(155, 109, 255, 0.35);
    border-radius: 17px;
}

.seo-copy-button {
    flex-shrink: 0;

    padding: 11px 18px;

    color: #ffffff;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;

    background:
        linear-gradient(135deg,
            #9b6dff,
            #7b4dff);

    border: 0;
    border-radius: 999px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
}

.seo-copy-button:not(:disabled):hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(123, 77, 255, 0.25);
}

.seo-copy-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.seo-copy-status {
    min-height: 22px;
    margin: 14px 0 0;

    color: #5e3cad;
    font-size: 0.88rem;
    font-weight: 700;
}

@media (max-width: 680px) {

    .seo-generated-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .seo-generated-panel {
        padding: 24px;
    }
}

/* ==================================================
   ANALYTICS PRACTICAL PAGE
================================================== */

.analytics-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.analytics-stack-card,
.analytics-demo-panel,
.analytics-code-card,
.analytics-comparison-card,
.analytics-result-card {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.92),
            rgba(244, 239, 255, 0.82));

    border: 1px solid rgba(123, 77, 255, 0.18);
    border-radius: 24px;

    box-shadow:
        0 24px 70px rgba(123, 77, 255, 0.13);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* Measurement stack */

.analytics-stack-card {
    position: relative;
    padding: 28px;
    overflow: hidden;
}

.analytics-stack-card::after {
    content: "";

    position: absolute;
    right: -45px;
    bottom: -55px;

    width: 150px;
    height: 150px;

    background:
        radial-gradient(circle,
            rgba(123, 77, 255, 0.13),
            transparent 68%);

    pointer-events: none;
}

.analytics-card-number {
    display: block;
    margin-bottom: 28px;

    color: rgba(123, 77, 255, 0.3);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.analytics-tool-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.analytics-tool-mark {
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;

    background:
        linear-gradient(135deg,
            #58d3ff,
            #7b4dff,
            #9b6dff);

    border-radius: 16px;

    box-shadow:
        0 13px 28px rgba(123, 77, 255, 0.2);
}

.analytics-tool-category {
    display: block;
    margin-bottom: 4px;

    color: #7b4dff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.analytics-tool-heading h3 {
    margin: 0;

    color: #2f235f;
    font-size: 1.4rem;
    letter-spacing: -0.035em;
}

.analytics-stack-card>p {
    margin: 20px 0 0;

    color: #6d6292;
    font-size: 0.91rem;
    line-height: 1.65;
}

.analytics-checklist {
    display: grid;
    gap: 11px;

    margin-top: 22px;
}

.analytics-checklist div {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #4a3a7a;
    font-size: 0.84rem;
    font-weight: 700;
}

.analytics-checklist span {
    width: 21px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    color: #ffffff;
    font-size: 0.65rem;

    background:
        linear-gradient(135deg,
            #a98cff,
            #7b4dff);

    border-radius: 50%;
}


/* Interactive event demo */

.analytics-demo-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr) minmax(0, 1.1fr);

    gap: 24px;
    align-items: stretch;
}

.analytics-demo-panel {
    padding: 28px;
}

.analytics-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.analytics-panel-label {
    display: block;
    margin-bottom: 7px;

    color: #7b4dff;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.analytics-panel-heading h3 {
    margin: 0;

    color: #2f235f;
    font-size: 1.45rem;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.analytics-local-badge {
    flex: 0 0 auto;

    padding: 7px 11px;

    color: #5e3cad;
    font-size: 0.69rem;
    font-weight: 800;

    background: rgba(123, 77, 255, 0.08);
    border: 1px solid rgba(123, 77, 255, 0.18);
    border-radius: 999px;
}

.analytics-panel-description {
    margin: 18px 0 24px;

    color: #6d6292;
    font-size: 0.91rem;
    line-height: 1.65;
}

.analytics-select-label {
    display: grid;
    gap: 9px;

    color: #3c2d73;
    font-size: 0.84rem;
    font-weight: 800;
}

.analytics-select-label select {
    width: 100%;
    padding: 14px 42px 14px 15px;

    color: #2f235f;
    font: inherit;
    font-weight: 700;

    background:
        rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(123, 77, 255, 0.2);
    border-radius: 14px;

    outline: none;
    cursor: pointer;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.analytics-select-label select:focus {
    border-color: rgba(123, 77, 255, 0.7);

    box-shadow:
        0 0 0 4px rgba(123, 77, 255, 0.1);
}

.analytics-event-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-top: 19px;
}

.analytics-event-button {
    width: 100%;
    min-height: 86px;
    padding: 15px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: #2f235f;
    text-align: left;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(123, 77, 255, 0.18);
    border-radius: 17px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.analytics-event-button:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(123, 77, 255, 0.45);

    box-shadow:
        0 14px 30px rgba(123, 77, 255, 0.13);
}

.analytics-event-icon {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;

    background:
        linear-gradient(135deg,
            #9b6dff,
            #7b4dff);

    border-radius: 13px;
}

.analytics-event-button strong {
    display: block;
    margin-bottom: 4px;

    font-size: 0.84rem;
}

.analytics-event-button small {
    display: block;

    color: #8177a6;
    font-size: 0.68rem;
    line-height: 1.4;
}

.analytics-demo-note {
    margin-top: 20px;
    padding: 14px;

    display: flex;
    align-items: flex-start;
    gap: 11px;

    color: #6d6292;

    background: rgba(88, 211, 255, 0.08);
    border: 1px solid rgba(88, 211, 255, 0.2);
    border-radius: 14px;
}

.analytics-demo-note>span {
    width: 23px;
    height: 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;

    background: #58bde5;
    border-radius: 50%;
}

.analytics-demo-note p {
    margin: 0;

    font-size: 0.77rem;
    line-height: 1.55;
}


/* Payload output */

.analytics-copy-button {
    flex: 0 0 auto;

    padding: 10px 15px;

    color: #ffffff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;

    background:
        linear-gradient(135deg,
            #9b6dff,
            #7b4dff);

    border: 0;
    border-radius: 999px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        box-shadow 0.3s ease;
}

.analytics-copy-button:not(:disabled):hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 28px rgba(123, 77, 255, 0.22);
}

.analytics-copy-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.analytics-session-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin: 22px 0 16px;
}

.analytics-session-summary>div {
    padding: 14px 16px;

    background: rgba(255, 255, 255, 0.67);
    border: 1px solid rgba(123, 77, 255, 0.14);
    border-radius: 15px;
}

.analytics-session-summary span {
    display: block;
    margin-bottom: 6px;

    color: #8177a6;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.analytics-session-summary strong {
    color: #5e3cad;
    font-size: 1rem;
}

.analytics-local-status {
    color: #3985a7 !important;
}

.analytics-payload {
    min-height: 270px;
    margin: 0;
    padding: 22px;

    overflow: auto;

    color: #eeeaff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.78rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;

    background:
        linear-gradient(145deg,
            #211848,
            #33266b);

    border: 1px solid rgba(155, 109, 255, 0.36);
    border-radius: 17px;
}

.analytics-copy-status {
    min-height: 20px;
    margin: 10px 0 0;

    color: #5e3cad;
    font-size: 0.76rem;
    font-weight: 700;
}

.analytics-log-heading {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.analytics-log-heading h4 {
    margin: 0;

    color: #3c2d73;
    font-size: 0.87rem;
}

.analytics-reset-button {
    padding: 7px 11px;

    color: #6d6292;
    font: inherit;
    font-size: 0.69rem;
    font-weight: 800;

    background: transparent;
    border: 1px solid rgba(123, 77, 255, 0.18);
    border-radius: 999px;

    cursor: pointer;
}

.analytics-event-log {
    display: grid;
    gap: 9px;

    margin-top: 12px;
}

.analytics-empty-log {
    margin: 0;
    padding: 16px;

    color: #8177a6;
    font-size: 0.76rem;
    line-height: 1.5;

    background: rgba(255, 255, 255, 0.52);
    border: 1px dashed rgba(123, 77, 255, 0.2);
    border-radius: 14px;
}

.analytics-log-item {
    padding: 11px 13px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;

    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(123, 77, 255, 0.13);
    border-radius: 13px;
}

.analytics-log-number {
    color: #7b4dff;
    font-size: 0.7rem;
    font-weight: 800;
}

.analytics-log-item strong {
    display: block;

    color: #3c2d73;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.analytics-log-item small {
    display: block;
    margin-top: 3px;

    color: #8177a6;
    font-size: 0.66rem;
}

.analytics-log-item time {
    color: #8177a6;
    font-size: 0.65rem;
}


/* Measurement plan table */

.analytics-table-wrapper {
    overflow-x: auto;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.92),
            rgba(244, 239, 255, 0.82));

    border: 1px solid rgba(123, 77, 255, 0.18);
    border-radius: 24px;

    box-shadow:
        0 24px 70px rgba(123, 77, 255, 0.12);
}

.analytics-plan-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;
}

.analytics-plan-table th,
.analytics-plan-table td {
    padding: 18px 20px;
    text-align: left;
    vertical-align: middle;

    border-bottom: 1px solid rgba(123, 77, 255, 0.12);
}

.analytics-plan-table th {
    color: #4c378a;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    background: rgba(216, 200, 255, 0.32);
}

.analytics-plan-table td {
    color: #6d6292;
    font-size: 0.8rem;
}

.analytics-plan-table tbody tr:last-child td {
    border-bottom: 0;
}

.analytics-plan-table tbody tr:hover {
    background: rgba(123, 77, 255, 0.035);
}

.analytics-plan-table code {
    color: #5e3cad;
    font-size: 0.75rem;
    font-weight: 700;

    background: rgba(123, 77, 255, 0.07);
    border-radius: 6px;
}

.analytics-status {
    display: inline-flex;
    padding: 6px 10px;

    font-size: 0.67rem;
    font-weight: 800;

    border-radius: 999px;
}

.analytics-status-demo {
    color: #5e3cad;

    background: rgba(123, 77, 255, 0.1);
    border: 1px solid rgba(123, 77, 255, 0.18);
}

.analytics-status-planned {
    color: #397d9d;

    background: rgba(88, 211, 255, 0.1);
    border: 1px solid rgba(88, 211, 255, 0.22);
}


/* Implementation code */

.analytics-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.analytics-code-card {
    overflow: hidden;
}

.analytics-code-header {
    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    color: #4c378a;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    background:
        linear-gradient(135deg,
            rgba(216, 200, 255, 0.66),
            rgba(244, 239, 255, 0.9));

    border-bottom: 1px solid rgba(123, 77, 255, 0.16);
}

.analytics-code-card pre {
    min-height: 360px;
    margin: 0;
    padding: 24px;

    overflow-x: auto;

    color: #f8f6ff;
    font-family:
        Consolas,
        Monaco,
        "Courier New",
        monospace;
    font-size: 0.78rem;
    line-height: 1.7;

    background:
        linear-gradient(145deg,
            #332568,
            #4b348f);
}

.analytics-code-explanation {
    padding: 20px;

    border-top: 1px solid rgba(123, 77, 255, 0.14);
}

.analytics-code-explanation strong {
    color: #3c2d73;
    font-size: 0.84rem;
}

.analytics-code-explanation p {
    margin: 8px 0 0;

    color: #6d6292;
    font-size: 0.79rem;
    line-height: 1.6;
}

.analytics-code-explanation code {
    color: #5e3cad;
    font-weight: 800;
}


/* GA4 and Search Console comparison */

.analytics-comparison-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto minmax(0, 1fr);

    gap: 18px;
    align-items: center;
}

.analytics-comparison-card {
    padding: 28px;
}

.analytics-comparison-name {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 7px 11px;

    color: #5e3cad;
    font-size: 0.7rem;
    font-weight: 800;

    background: rgba(123, 77, 255, 0.08);
    border: 1px solid rgba(123, 77, 255, 0.16);
    border-radius: 999px;
}

.analytics-comparison-card h3 {
    margin: 0;

    color: #2f235f;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.analytics-comparison-card ul {
    display: grid;
    gap: 11px;

    margin: 22px 0 0;
    padding: 0;

    list-style: none;
}

.analytics-comparison-card li {
    position: relative;
    padding-left: 20px;

    color: #6d6292;
    font-size: 0.84rem;
    line-height: 1.55;
}

.analytics-comparison-card li::before {
    content: "";

    position: absolute;
    top: 0.58em;
    left: 0;

    width: 7px;
    height: 7px;

    background: #7b4dff;
    border-radius: 50%;
}

.analytics-comparison-connector {
    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;

    background:
        linear-gradient(135deg,
            #58d3ff,
            #7b4dff);

    border-radius: 50%;

    box-shadow:
        0 14px 30px rgba(123, 77, 255, 0.2);
}

.analytics-search-flow {
    display: grid;
    grid-template-columns:
        1fr auto 1fr auto 1fr auto 1fr;

    gap: 12px;
    align-items: center;

    margin-top: 24px;
}

.analytics-search-flow>div {
    min-height: 82px;
    padding: 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #4a3a7a;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;

    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(123, 77, 255, 0.16);
    border-radius: 17px;
}

.analytics-search-flow div span {
    color: rgba(123, 77, 255, 0.48);
    font-size: 1.1rem;
}

.analytics-flow-arrow {
    color: #7b4dff;
    font-size: 1.1rem;
    font-weight: 900;
}


/* Honest measurement status */

.analytics-results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.analytics-result-card {
    padding: 25px;
}

.analytics-result-source {
    display: block;
    margin-bottom: 22px;

    color: #7b4dff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.analytics-result-text {
    display: block;
    margin-bottom: 14px;

    color: #5e3cad;
    font-size: 1.55rem;
    line-height: 1;
}

.analytics-result-card p {
    margin: 0;

    color: #6d6292;
    font-size: 0.79rem;
    line-height: 1.58;
}

.analytics-results-note {
    margin: 18px 0 0;

    color: #8177a6;
    font-size: 0.76rem;
    text-align: center;
}


/* Analytics responsive */

@media (max-width: 980px) {

    .analytics-stack-grid {
        grid-template-columns: 1fr;
    }

    .analytics-demo-grid,
    .analytics-code-grid {
        grid-template-columns: 1fr;
    }

    .analytics-results-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .analytics-comparison-grid {
        grid-template-columns: 1fr;
    }

    .analytics-comparison-connector {
        margin: auto;
    }

    .analytics-search-flow {
        grid-template-columns: 1fr;
    }

    .analytics-flow-arrow {
        text-align: center;
        transform: rotate(90deg);
    }
}

@media (max-width: 620px) {

    .analytics-stack-card,
    .analytics-demo-panel,
    .analytics-comparison-card,
    .analytics-result-card {
        padding: 22px;
    }

    .analytics-event-actions {
        grid-template-columns: 1fr;
    }

    .analytics-panel-heading {
        flex-direction: column;
    }

    .analytics-session-summary {
        grid-template-columns: 1fr;
    }

    .analytics-results-grid {
        grid-template-columns: 1fr;
    }

    .analytics-code-card pre {
        min-height: auto;
        padding: 18px;
        font-size: 0.7rem;
    }

    .analytics-log-item {
        grid-template-columns: auto 1fr;
    }

    .analytics-log-item time {
        grid-column: 2;
    }
}

/* ==================================================
   EMAIL AUTOMATION — FUNCTIONAL STATES
================================================== */

.email-honeypot {
    position: absolute !important;
    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#demo-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.status {
    min-height: 26px;
    margin: 2px 0 0;

    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.5;
}

.status-loading {
    color: #5e3cad;
}

.status-success {
    color: #287a63;
}

.status-error {
    color: #a13b61;
}

#demo-form input[aria-invalid="true"] {
    border-color: rgba(190, 54, 100, 0.65);

    box-shadow:
        0 0 0 4px rgba(190, 54, 100, 0.08);
}