:root {
    color-scheme: light;
    --bg: #f6f7f9;
    --panel: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #d9e1ec;
    --accent: #185abc;
    --accent-2: #008f7a;
    --accent-3: #b86b15;
    --danger: #b42318;
    --ok: #067647;
    --warn: #b54708;
    --ink: #071323;
    --soft: #f4f7fb;
    --shadow: 0 18px 48px rgba(16, 42, 67, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--accent);
}

.site-body {
    background: #fff;
    color: var(--ink);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 0 clamp(18px, 4vw, 58px);
    border-bottom: 1px solid rgba(217, 225, 236, 0.92);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 8px;
    background: #102a43;
    color: #fff;
    font-size: 13px;
}

.site-brand-mark::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(25deg);
}

.site-brand-mark span {
    position: relative;
    z-index: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}

.site-nav a,
.site-footer a {
    color: #344054;
    font-weight: 760;
    text-decoration: none;
}

.site-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
}

.site-nav a:hover {
    background: #eef4ff;
    color: var(--accent);
}

.site-nav .site-nav-cta {
    margin-left: 4px;
    background: var(--ink);
    color: #fff;
}

.site-nav .site-nav-cta:hover {
    background: var(--accent);
    color: #fff;
}

.hero-canvas {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 45%, rgba(255,255,255,0.74) 100%),
        linear-gradient(135deg, #f7fbff 0%, #eef8f5 48%, #fff6e7 100%);
}

.hero-canvas::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 26%;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 6;
    max-width: 790px;
    padding: 130px clamp(20px, 5vw, 72px) 70px;
}

.site-kicker {
    margin: 0 0 13px;
    color: var(--accent-2);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
    margin: 0;
    max-width: 920px;
    color: var(--ink);
    font-size: 72px;
    line-height: 1.02;
    letter-spacing: 0;
}

.site-lead,
.page-hero p:last-child {
    max-width: 720px;
    margin: 24px 0 0;
    color: #344054;
    font-size: 19px;
    line-height: 1.58;
}

.site-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(24, 90, 188, 0.18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.site-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(24, 90, 188, 0.22);
}

.site-button.ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--accent);
    box-shadow: none;
}

.trust-chips,
.safety-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-chips span,
.safety-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #344054;
    font-weight: 800;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.radar-core {
    position: absolute;
    right: clamp(150px, 22vw, 420px);
    top: 195px;
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #102a43;
    color: #fff;
    box-shadow: 0 24px 64px rgba(16, 42, 67, 0.23);
}

.radar-core strong {
    position: relative;
    z-index: 3;
    font-size: 24px;
}

.radar-ring {
    position: absolute;
    inset: -44px;
    border: 1px solid rgba(0, 143, 122, 0.26);
    border-radius: 50%;
}

.radar-ring.two {
    inset: -86px;
    border-color: rgba(24, 90, 188, 0.2);
}

.radar-sweep {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 143, 122, 0.45), rgba(0, 143, 122, 0) 38%);
    animation: radarSweep 7s linear infinite;
}

.source-chip {
    position: absolute;
    z-index: 3;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(217, 225, 236, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #344054;
    font-weight: 850;
    box-shadow: 0 12px 32px rgba(16, 42, 67, 0.08);
    animation: chipDrift 7s ease-in-out infinite alternate;
}

.chip-ads { right: clamp(330px, 36vw, 670px); top: 155px; }
.chip-merchant { right: clamp(70px, 12vw, 260px); top: 120px; animation-delay: .8s; }
.chip-ga4 { right: clamp(360px, 33vw, 580px); top: 355px; animation-delay: 1.3s; }
.chip-sheets { right: clamp(70px, 8vw, 170px); top: 355px; animation-delay: 1.8s; }

.hero-dashboard {
    position: absolute;
    right: clamp(-260px, -6vw, -70px);
    top: 440px;
    z-index: 2;
    width: min(890px, 66vw);
    min-height: 300px;
    padding: 18px;
    border: 1px solid rgba(154, 164, 178, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.browser-dots {
    display: flex;
    gap: 7px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfd8e6;
}

.browser-dots span:nth-child(2) { background: #7bc4b8; }
.browser-dots span:nth-child(3) { background: #e7b86b; }

.dashboard-label {
    margin: 15px 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric-tile,
.brief-card,
.report-preview,
.flow-source,
.flow-middle,
.flow-output {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.metric-tile {
    min-height: 112px;
    padding: 16px;
}

.metric-tile small,
.brief-card small,
.report-header span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.metric-tile strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 27px;
}

.metric-tile em {
    display: block;
    margin-top: 7px;
    color: var(--accent-2);
    font-style: normal;
    font-weight: 800;
}

.float-card {
    animation: floatCard 5.5s ease-in-out infinite;
}

.delay-1 { animation-delay: .8s; }
.delay-2 { animation-delay: 1.5s; }

.brief-card {
    margin-top: 12px;
    padding: 16px;
}

.brief-card p {
    margin: 8px 0 0;
    color: #344054;
}

.site-section {
    padding: 76px clamp(20px, 5vw, 72px);
}

.site-section.band {
    background: var(--soft);
    border-block: 1px solid var(--line);
}

.site-section.compact {
    padding-block: 58px;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading p:not(.site-kicker) {
    margin: 16px 0 0;
    color: #475467;
    font-size: 17px;
}

.feature-grid,
.explain-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.explain-grid article,
.contact-grid article {
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-grid article:hover,
.explain-grid article:hover,
.contact-grid article:hover,
.source-detail-list article:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 90, 188, 0.34);
    box-shadow: 0 14px 34px rgba(16, 42, 67, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    margin-bottom: 18px;
    border-radius: 6px;
    background: #eff8f6;
    color: var(--accent-2);
    font-weight: 900;
}

.feature-grid h3,
.explain-grid h3,
.contact-grid h2,
.source-detail-list h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 20px;
}

.feature-grid p,
.explain-grid p,
.contact-grid p,
.source-detail-list p,
.source-detail-list dd {
    color: #475467;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.workflow-steps article {
    position: relative;
    min-height: 250px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.workflow-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #102a43;
    color: #fff;
    font-weight: 900;
}

.workflow-steps h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 21px;
}

.workflow-steps p {
    margin: 0;
    color: #475467;
}

.flow-animation {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 1.2fr 1.2fr;
    gap: 12px;
    align-items: center;
    min-height: 130px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.flow-line {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,143,122,.55), rgba(24,90,188,.55), transparent);
    animation: flowLine 3.6s linear infinite;
}

.flow-source,
.flow-middle,
.flow-output {
    position: relative;
    z-index: 2;
    min-height: 52px;
    display: grid;
    place-items: center;
    padding: 10px;
    color: #344054;
    font-weight: 850;
    text-align: center;
}

.flow-middle {
    background: #eff8f6;
    color: var(--accent-2);
}

.flow-output {
    background: #eef4ff;
    color: var(--accent);
}

.source-marquee {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeMove 28s linear infinite;
}

.marquee-track span {
    min-width: 210px;
    padding: 15px 22px;
    border-right: 1px solid var(--line);
    color: #344054;
    font-weight: 850;
}

.report-preview {
    max-width: 850px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.report-header strong {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff6e7;
    color: var(--accent-3);
    font-size: 12px;
}

.report-preview h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 25px;
}

.report-preview p,
.report-preview li {
    color: #475467;
    font-size: 16px;
}

.faq-list {
    max-width: 900px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.faq-item + .faq-item {
    margin-top: 10px;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 850;
}

.faq-item p {
    margin: 0;
    padding: 0 20px 20px;
    color: #475467;
}

.page-hero {
    padding: 84px clamp(20px, 5vw, 72px) 56px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(110deg, rgba(255,255,255,.98), rgba(245,247,251,.9)),
        var(--soft);
}

.source-detail-list {
    display: grid;
    gap: 16px;
    max-width: 1040px;
}

.source-detail-list article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.source-detail-list dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 16px;
    margin: 18px 0 0;
}

.source-detail-list dt {
    color: var(--ink);
    font-weight: 850;
}

.source-detail-list dd {
    margin: 0;
}

.legal-content {
    max-width: 920px;
    padding: 58px clamp(20px, 5vw, 72px) 82px;
}

.legal-content.narrow {
    max-width: 900px;
    padding: 0;
}

.legal-content h2 {
    margin: 34px 0 10px;
    color: var(--ink);
    font-size: 24px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: #344054;
    font-size: 16px;
}

.legal-content a,
.contact-grid a {
    color: var(--accent);
    font-weight: 850;
}

.contact-grid {
    max-width: 1100px;
}

.contact-grid article {
    min-height: 170px;
}

.contact-grid a {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 17px;
}

.contact-note {
    max-width: 880px;
    margin-top: 26px;
    color: #475467;
    font-size: 16px;
}

.site-footer {
    padding: 44px clamp(20px, 5vw, 72px) 28px;
    background: var(--ink);
    color: #d0d5dd;
}

.site-footer-main {
    max-width: 460px;
}

.footer-brand {
    color: #fff;
}

.site-footer-main p {
    margin: 12px 0 0;
}

.site-footer-contact a,
.site-footer a {
    color: #d0d5dd;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 28px;
    margin-top: 34px;
}

.footer-columns nav {
    display: grid;
    gap: 9px;
    align-content: start;
}

.footer-columns h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: #98a2b3;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

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

@keyframes radarSweep {
    to { transform: rotate(360deg); }
}

@keyframes chipDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(12px, -8px, 0); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes flowLine {
    from { transform: translateX(-10%); opacity: .55; }
    to { transform: translateX(10%); opacity: .95; }
}

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

/* Application styles */
.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.panel {
    width: min(100%, 420px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.app {
    min-height: 100vh;
}

.topbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

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

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.stack-top {
    margin-top: 16px;
}

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

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.textarea {
    width: 100%;
    min-height: 82px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
}

.select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    font: inherit;
}

.notice {
    margin: 0 0 14px;
    color: var(--ok);
    font-weight: 700;
}

.card h2,
.panel h1 {
    margin: 0 0 16px;
    font-size: 18px;
}

.metric {
    font-size: 24px;
    font-weight: 700;
}

.muted {
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status.ok { background: #dcfae6; color: var(--ok); }
.status.warn { background: #fef0c7; color: var(--warn); }
.status.danger { background: #fee4e2; color: var(--danger); }

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    font: inherit;
}

.checkrow {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 14px 0;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: #eef2f6;
    color: var(--text);
}

.error {
    margin: 0 0 14px;
    color: var(--danger);
    font-weight: 700;
}

@media (max-width: 1020px) {
    .hero-dashboard {
        right: -360px;
        width: 860px;
        opacity: .7;
    }

    .radar-core {
        right: 180px;
    }

    .workflow-steps,
    .feature-grid,
    .feature-grid.three,
    .explain-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .flow-line {
        display: none;
    }
}

@media (max-width: 760px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        padding-block: 14px;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .site-nav a {
        padding-inline: 0;
        margin-right: 12px;
    }

    .site-nav .site-nav-cta {
        padding-inline: 12px;
    }

    .hero-canvas {
        min-height: 860px;
    }

    .hero-content {
        padding-top: 58px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 40px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .site-lead,
    .page-hero p:last-child {
        font-size: 17px;
    }

    .radar-core {
        right: 56px;
        top: 460px;
        transform: scale(.78);
    }

    .chip-ads { right: 205px; top: 455px; }
    .chip-merchant { right: 20px; top: 410px; }
    .chip-ga4 { right: 230px; top: 610px; }
    .chip-sheets { right: 20px; top: 610px; }

    .hero-dashboard {
        right: -460px;
        top: 585px;
        width: 760px;
        opacity: .58;
    }

    .feature-grid,
    .feature-grid.three,
    .explain-grid,
    .workflow-steps,
    .contact-grid,
    .grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .source-detail-list dl {
        grid-template-columns: 1fr;
    }

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

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .marquee-track {
        animation: none !important;
        flex-wrap: wrap;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
