:root {
    --ink: #0a1f33;
    --ink-soft: #23415b;
    --night: #07192f;
    --blue: #0d7bea;
    --blue-deep: #0758bd;
    --orange: #f58220;
    --orange-soft: #fff1e5;
    --mint: #15a581;
    --paper: #f5f8fc;
    --panel: #ffffff;
    --line: #dbe5f1;
    --muted: #63758c;
    --soft-blue: #eaf4ff;
    --soft-green: #e8f8f2;
    --soft-red: #fff1f1;
    --shadow: 0 18px 55px rgba(7, 25, 47, 0.12);
    --shadow-soft: 0 10px 28px rgba(7, 25, 47, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-page,
.dashboard-page,
.auth-page {
    min-height: 100vh;
}

.site-page {
    background:
        linear-gradient(135deg, rgba(13, 123, 234, 0.08), transparent 34%),
        linear-gradient(315deg, rgba(245, 130, 32, 0.10), transparent 36%),
        var(--paper);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(219, 229, 241, 0.9);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.site-nav,
.section-inner,
.hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 190px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-wordmark {
    width: min(280px, 44vw);
    height: auto;
    object-fit: contain;
}

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

.nav-links a,
.btn,
.text-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a {
    padding: 9px 12px;
    color: var(--ink-soft);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--soft-blue);
    color: var(--blue-deep);
}

.btn {
    border: 0;
    cursor: pointer;
    padding: 12px 17px;
    font-size: 15px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    box-shadow: 0 12px 28px rgba(13, 123, 234, 0.24);
}

.btn-dark {
    color: #fff;
    background: var(--night);
}

.btn-ghost {
    color: var(--night);
    background: #fff;
    border: 1px solid var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: rgba(13, 123, 234, 0.35);
    box-shadow: 0 10px 22px rgba(13, 123, 234, 0.10);
}

.btn-light {
    color: var(--blue-deep);
    background: #fff;
    border: 1px solid rgba(13, 123, 234, 0.20);
}

.btn-orange {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #dd6909);
    box-shadow: 0 12px 28px rgba(245, 130, 32, 0.22);
}

.btn:hover,
.btn:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 34px;
    align-items: center;
    padding: 58px 0 44px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 26px auto auto -36px;
    width: min(420px, 42vw);
    height: 230px;
    pointer-events: none;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(13, 123, 234, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 123, 234, 0.14) 1px, transparent 1px);
    background-size: 28px 28px;
    transform: rotate(-4deg);
}

.landing-hero {
    width: 100%;
    max-width: none;
    min-height: min(690px, calc(100svh - 92px));
    margin: 0;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(7, 25, 47, 0.94) 0%, rgba(7, 25, 47, 0.82) 36%, rgba(7, 25, 47, 0.30) 68%, rgba(7, 25, 47, 0.12) 100%),
        url("../img/hero-arizona-awareness.png") center / cover no-repeat;
}

.landing-hero::before {
    content: none;
}

.landing-hero .hero-copy {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    padding: 58px 0 48px;
    color: #fff;
}

.landing-hero .hero-lede {
    color: rgba(255, 255, 255, 0.84);
}

.landing-hero .eyebrow {
    color: #ffbe7a;
}

.landing-hero .pill {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.hero-search-dock {
    width: min(860px, 100%);
    margin-top: 24px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.hero-search-dock label {
    color: rgba(255, 255, 255, 0.74);
}

.hero-search-dock .small-note {
    color: rgba(255, 255, 255, 0.72);
}

.hero-copy,
.hero-product {
    position: relative;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.04;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.15;
}

.hero-lede {
    width: min(700px, 100%);
    margin-bottom: 24px;
    color: var(--ink-soft);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.trust-row,
.city-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 800;
}

.status-pill.active {
    color: #117457;
    background: var(--soft-green);
    border-color: rgba(21, 165, 129, 0.20);
}

.status-pill.approved {
    color: #0758bd;
    background: var(--soft-blue);
    border-color: rgba(13, 123, 234, 0.20);
}

.status-pill.failed {
    color: #9d2323;
    background: var(--soft-red);
    border-color: #ffd1d1;
}

.hero-product {
    display: grid;
    gap: 16px;
}

.product-card,
.quick-search,
.plan-card,
.feature-card,
.metric-card,
.dashboard-panel,
.auth-card,
.business-card {
    border: 1px solid rgba(219, 229, 241, 0.98);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.product-card {
    overflow: hidden;
}

.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7, 25, 47, 0.94), rgba(7, 25, 47, 0.82)),
        linear-gradient(90deg, rgba(13, 123, 234, 0.55), rgba(245, 130, 32, 0.35));
}

.product-top img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.pulse-line {
    position: relative;
    height: 4px;
    overflow: hidden;
    background: rgba(13, 123, 234, 0.14);
}

.pulse-line::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -35%;
    width: 35%;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    animation: pulse-line 2.4s ease-in-out infinite;
}

@keyframes pulse-line {
    0% { transform: translateX(0); }
    100% { transform: translateX(390%); }
}

.case-list {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.case-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.case-code {
    color: var(--blue-deep);
    font-weight: 900;
}

.case-title {
    margin: 0;
    font-weight: 900;
}

.case-meta,
.muted,
.small-note {
    color: var(--muted);
}

.quick-search {
    padding: 18px;
}

.quick-search form,
.business-search-form {
    display: grid;
    gap: 12px;
}

.control-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 10px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd8e6;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 11px 12px;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(13, 123, 234, 0.18);
    border-color: var(--blue);
}

.section {
    padding: 54px 0;
}

.sample-feed-section {
    padding-top: 26px;
}

.section-header {
    width: min(780px, 100%);
    margin-bottom: 24px;
}

.section-header p {
    color: var(--ink-soft);
    font-size: 18px;
}

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

.metric-card {
    padding: 18px;
}

.metric-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--night);
    font-size: 30px;
    line-height: 1;
}

.metric-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.feature-grid,
.pricing-grid,
.action-grid {
    display: grid;
    gap: 16px;
}

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

.feature-card,
.plan-card,
.business-card {
    padding: 20px;
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--blue);
    font-weight: 900;
}

.feature-card:nth-child(2n) .feature-icon {
    background: var(--orange);
}

.feature-card:nth-child(3n) .feature-icon {
    background: var(--mint);
}

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

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-card.featured {
    border-color: rgba(245, 130, 32, 0.52);
    box-shadow: 0 18px 45px rgba(245, 130, 32, 0.14);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--night);
}

.plan-price strong {
    font-size: 42px;
    line-height: 1;
}

.plan-features {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
}

.plan-features li::before {
    content: "+ ";
    color: var(--mint);
    font-weight: 900;
}

.paypal-form {
    margin-top: auto;
}

.paypal-form .btn {
    width: 100%;
}

.business-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

.business-card.source-card {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7, 25, 47, 0.96), rgba(10, 31, 51, 0.9)),
        linear-gradient(120deg, rgba(13, 123, 234, 0.34), rgba(245, 130, 32, 0.3));
}

.business-card.source-card .muted,
.business-card.source-card p {
    color: rgba(255, 255, 255, 0.78);
}

.footer {
    padding: 30px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer .section-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-page {
    background: #f3f7fb;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7, 25, 47, 0.98), rgba(10, 31, 51, 0.92)),
        linear-gradient(90deg, rgba(13, 123, 234, 0.35), rgba(245, 130, 32, 0.28));
    box-shadow: 0 10px 35px rgba(7, 25, 47, 0.18);
}

.topbar-inner {
    width: min(1500px, calc(100% - 36px));
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}

.topbar .brand-link {
    color: #fff;
}

.topbar .brand-wordmark {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.18));
}

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

.topbar nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 8px 11px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 800;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dashboard-wrap {
    width: min(1500px, calc(100% - 36px));
    margin: 24px auto 42px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.dashboard-intro,
.usage-card {
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.dashboard-intro h1 {
    margin-bottom: 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}

.usage-card {
    min-width: 260px;
}

.usage-card strong {
    display: block;
    font-size: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.stat b {
    display: block;
    color: var(--night);
    font-size: 27px;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-panel {
    padding: 16px;
    margin-bottom: 18px;
}

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr auto;
    gap: 10px;
}

.tablewrap {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px;
    color: var(--ink-soft);
    background: #f8fbff;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.case {
    color: var(--blue-deep);
    font-weight: 900;
    text-decoration: none;
}

.meaning {
    max-width: 310px;
    color: var(--ink-soft);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}

.pagination a {
    min-width: 38px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.pagination a.current {
    color: #fff;
    background: var(--night);
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(7, 25, 47, 0.94), rgba(10, 31, 51, 0.88)),
        linear-gradient(120deg, rgba(13, 123, 234, 0.42), rgba(245, 130, 32, 0.28));
}

.auth-card {
    width: min(440px, 100%);
    padding: 30px;
}

.auth-logo {
    width: 240px;
    margin-bottom: 18px;
}

.auth-card h1 {
    margin-bottom: 6px;
    font-size: 28px;
    line-height: 1.1;
}

.auth-card label {
    display: block;
    margin: 15px 0 6px;
    color: var(--ink-soft);
    font-weight: 900;
}

.auth-card button {
    width: 100%;
    margin-top: 22px;
}

.alert {
    padding: 11px 12px;
    border-radius: 8px;
    font-weight: 800;
}

.alert-error {
    color: #9d2323;
    background: var(--soft-red);
    border: 1px solid #ffd1d1;
}

.alert-ok {
    color: #117457;
    background: var(--soft-green);
    border: 1px solid rgba(21, 165, 129, 0.20);
}

.business-results {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.result-row {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.empty-state {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(13, 123, 234, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(13, 123, 234, 0.08), rgba(21, 165, 129, 0.07)),
        #fff;
}

.empty-state strong {
    color: var(--night);
    font-size: 20px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

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

.detail-item {
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.detail-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline {
    display: grid;
    gap: 12px;
    border-left: 3px solid var(--line);
    padding-left: 16px;
}

.event {
    position: relative;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.event::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -25px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-soft);
}

@media (max-width: 1040px) {
    .hero,
    .business-panel,
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .metrics-grid,
    .feature-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .usage-card {
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .site-nav,
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links,
    .topbar nav {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 34px;
    }

    h1 {
        font-size: 44px;
    }

    .hero-lede {
        font-size: 18px;
    }

    .control-grid,
    .metrics-grid,
    .feature-grid,
    .pricing-grid,
    .stats,
    .filters,
    .detail-grid,
    .case-row {
        grid-template-columns: 1fr;
    }

    .case-row {
        align-items: start;
    }

    .brand-wordmark {
        width: 240px;
    }
}
