:root {
    color: #12211f;
    background: #f7f8f5;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-width: 320px;
    background: #f7f8f5;
}

a {
    color: #0b5d56;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #f2b84b;
    outline-offset: 3px;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 5vw, 4rem);
    background: #ffffff;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.brand {
    color: #12211f;
    font-weight: 800;
    text-decoration: none;
}

.hero {
    min-height: 78vh;
    display: grid;
    align-items: center;
    padding: clamp(2rem, 6vw, 5rem);
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(12, 34, 31, .92), rgba(12, 34, 31, .64)),
        url('https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=80') center/cover;
}

.hero__content {
    max-width: 760px;
}

.hero--product,
.hero--agency {
    min-height: 72vh;
}

.seo-hero {
    padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
    color: #ffffff;
    background: #123b36;
}

.seo-hero h1 {
    max-width: 16ch;
    margin: .25rem 0 1rem;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
}

.hero h1 {
    margin: .25rem 0 1rem;
    max-width: 12ch;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: .92;
    letter-spacing: 0;
}

.hero p {
    max-width: 680px;
    font-size: 1.125rem;
}

.hero__proof {
    margin-top: 1.25rem;
    color: #d6e9e3;
    font-size: .9375rem !important;
    font-weight: 700;
}

.eyebrow {
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.scan-form {
    margin-top: 2rem;
    max-width: 720px;
}

.scan-form label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 700;
}

.scan-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
}

input,
button {
    min-height: 48px;
    border-radius: 6px;
    font: inherit;
}

input {
    border: 1px solid #cfd8d3;
    padding: 0 .875rem;
}

button {
    border: 0;
    padding: 0 1rem;
    color: #102421;
    background: #f2b84b;
    font-weight: 800;
}

.nav-form {
    margin: 0;
}

.nav-link-button {
    min-height: 0;
    border-radius: 0;
    padding: 0;
    color: #0b5d56;
    background: transparent;
    font-weight: 400;
    text-decoration: underline;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 6px;
    padding: 0 1rem;
    color: #102421;
    background: #f2b84b;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.button-link--secondary {
    border: 1px solid #cfd8d3;
    background: #ffffff;
}

.button-row,
.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.report-actions {
    margin-top: 1.5rem;
}

.field-error {
    color: #b42318;
}

.section {
    padding: clamp(2rem, 5vw, 4rem);
}

.section--muted {
    background: #eaf1ed;
}

.section--dark {
    color: #ffffff;
    background: #123b36;
}

.section--dark .eyebrow,
.section--dark p {
    color: #d6e9e3;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #cbdad4;
}

.trust-strip div {
    display: grid;
    gap: .25rem;
    padding: 1.25rem clamp(1rem, 5vw, 4rem);
    background: #ffffff;
}

.trust-strip strong {
    font-size: 1.15rem;
}

.trust-strip span,
.section-heading__note {
    color: #55706b;
}

.feature-grid article,
.audience-grid article {
    padding: 1.5rem;
}

.feature-number,
.price-card__label {
    color: #0b756b;
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.audience-grid article {
    border-left: 4px solid #0b756b;
}

.audience-grid a {
    display: inline-block;
    margin-top: .5rem;
    font-weight: 800;
}

.price-card--featured {
    border: 2px solid #0b756b;
}

.price-card__label {
    margin: 0 0 .75rem;
}

.narrow-copy {
    width: min(760px, 100%);
}

.article-meta {
    margin-top: 2rem;
    color: #55706b;
    font-size: .9375rem;
}

.related-links {
    display: grid;
    gap: .5rem;
    padding-left: 1.25rem;
}

.error-page {
    min-height: 55vh;
}

.button-link--light {
    color: #123b36;
    background: #ffffff;
}

.check-list {
    display: grid;
    gap: .75rem;
    margin: 1.5rem 0 2rem;
    padding-left: 1.25rem;
}

.check-list li::marker {
    color: #0b756b;
}

.section--flash {
    padding-top: 1rem;
    padding-bottom: 0;
}

.grid,
.pricing,
.issue-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

article,
.price-card {
    border: 1px solid #d9e2dd;
    border-radius: 8px;
    padding: 1.25rem;
    background: #ffffff;
}

.price {
    font-size: 2rem;
    font-weight: 800;
}

.summary-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.summary-list div {
    padding: 1rem;
    border-left: 4px solid #0b5d56;
    background: #ffffff;
}

.summary-list dt {
    font-weight: 800;
}

.report-scope__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 1.5rem 0;
}

.report-scope__grid article {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    background: #fff;
}

.report-scope__grid strong,
.report-scope__grid span {
    display: block;
}

.report-scope__grid strong {
    font-size: 2rem;
}

.scope-warning {
    border-left: 4px solid #b45309;
    background: #fff7ed;
    padding: 1rem;
}

.issue-details {
    border-top: 1px solid #d9e2df;
    margin-top: 1rem;
    padding-top: 1rem;
}

.issue-details summary {
    cursor: pointer;
    font-weight: 700;
}

.occurrence-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.occurrence-list article {
    border-left: 3px solid #9bb5ae;
    padding-left: 1rem;
    min-width: 0;
}

.occurrence-list a,
.occurrence-list code {
    display: block;
    overflow-wrap: anywhere;
}

.occurrence-list pre {
    overflow: auto;
    white-space: pre-wrap;
    max-height: 14rem;
    background: #f4f7f6;
    padding: .75rem;
}

.manual-review-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .report-scope__grid,
    .manual-review-list {
        grid-template-columns: 1fr;
    }
}

.report-hero {
    color: #ffffff;
    background: #123b36;
}

.report-hero__inner,
.report-section {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 3rem);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #d4e8e2;
    font-weight: 700;
    text-decoration: none;
}

.back-link--light {
    color: #0b5d56;
}

.report-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.report-heading h1 {
    margin: .25rem 0;
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.report-url {
    margin-bottom: 0;
    color: #d4e8e2;
    overflow-wrap: anywhere;
}

.status-badge,
.impact,
.result-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .875rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge {
    color: #123b36;
    background: #d9f4e8;
}

.status-badge--failed {
    color: #8b1e1e;
    background: #fee4e2;
}

.report-section {
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.report-section--muted {
    width: 100%;
    max-width: none;
    padding-left: max(clamp(1rem, 5vw, 3rem), calc((100% - 1120px) / 2 + 3rem));
    padding-right: max(clamp(1rem, 5vw, 3rem), calc((100% - 1120px) / 2 + 3rem));
    background: #eaf1ed;
}

.processing-panel,
.error-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid #cbdad4;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(18, 59, 54, .08);
}

.processing-panel h2,
.error-panel h2,
.score-copy h2,
.section-heading h2 {
    margin: .25rem 0 .75rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #d9e7e2;
    border-top-color: #0b756b;
    border-radius: 50%;
    animation: spin .9s linear infinite;
}

.progress-track {
    height: 8px;
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 4px;
    background: #dce8e4;
}

.progress-track span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: #0b756b;
    animation: progress 1.8s ease-in-out infinite alternate;
}

.processing-note {
    color: #49635f;
    font-size: .9375rem;
}

.error-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-left: 5px solid #c4322b;
}

.score-overview {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) minmax(220px, .7fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.score-ring {
    --ring-color: #0b756b;
    display: grid;
    width: 176px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) calc(var(--score) * 1%), #dce6e2 0);
}

.score-ring::before {
    content: "";
    width: 136px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #f7f8f5;
    grid-area: 1 / 1;
}

.score-ring > div {
    z-index: 1;
    display: flex;
    align-items: baseline;
    grid-area: 1 / 1;
}

.score-ring strong {
    font-size: 3.25rem;
    line-height: 1;
}

.score-ring span {
    color: #55706b;
    font-weight: 700;
}

.score-ring--warning {
    --ring-color: #c47b16;
}

.score-ring--danger {
    --ring-color: #c4322b;
}

.report-stats {
    margin: 0;
    border-left: 1px solid #cfdad6;
    padding-left: 2rem;
}

.report-stats div + div {
    margin-top: 1rem;
}

.report-stats dt {
    color: #55706b;
    font-size: .875rem;
}

.report-stats dd {
    margin: .2rem 0 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-count {
    color: #344f4a;
    background: #ffffff;
}

.issue-list {
    grid-template-columns: 1fr;
}

.issue-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.issue-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    color: #55706b;
    font-size: .875rem;
}

.issue-card h3 {
    margin: 1rem 0 .5rem;
    font-size: 1.25rem;
}

.impact {
    min-height: 28px;
    color: #29413d;
    background: #e4ebe8;
}

.impact--critical,
.impact--serious {
    color: #8b1e1e;
    background: #fee4e2;
}

.impact--moderate {
    color: #724607;
    background: #fff0cf;
}

.empty-result {
    padding: 2rem;
    border: 1px solid #bcd8cd;
    border-radius: 8px;
    background: #ffffff;
}

.flash-message,
.inline-notice {
    padding: 1rem 1.25rem;
    border: 1px solid #d6c28c;
    border-radius: 8px;
    background: #fff5da;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 1.25rem;
    align-items: start;
}

.checkout-card {
    border: 1px solid #d9e2dd;
    border-radius: 8px;
    padding: 1.5rem;
    background: #ffffff;
}

.checkout-card--summary {
    position: sticky;
    top: 1rem;
}

.feature-list {
    padding-left: 1.1rem;
}

.order-summary-grid dd {
    margin: .35rem 0 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

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

@keyframes progress {
    from { transform: translateX(-20%); }
    to { transform: translateX(180%); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner,
    .progress-track span {
        animation: none;
    }
}

.table-wrap {
    overflow-x: auto;
}

.admin-stats {
    margin-bottom: 2rem;
}

.admin-stats article p {
    margin: .25rem 0 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.admin-panel {
    margin-top: 2rem;
}

.admin-create-scan {
    display: grid;
    grid-template-columns: minmax(220px, .5fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: end;
    padding: 1.25rem;
    border: 1px solid #d9e2dd;
    border-radius: 8px;
    background: #ffffff;
}

.scan-form--compact {
    margin-top: 0;
    max-width: none;
}

.admin-processing {
    margin-top: 1.5rem;
}

.admin-error {
    margin-top: 1.5rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.auth-panel {
    max-width: 560px;
}

.stack-form {
    display: grid;
    gap: .75rem;
}

.check-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: .75rem;
    border-bottom: 1px solid #d9e2dd;
    text-align: left;
}

@media (max-width: 680px) {
    .scan-form__row {
        grid-template-columns: 1fr;
    }

    .site-header {
        gap: .75rem;
        padding: .9rem 1rem;
    }

    .site-header nav {
        justify-content: flex-end;
        gap: .75rem;
        font-size: .9375rem;
    }

    .trust-strip,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .report-heading,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .score-overview {
        grid-template-columns: 1fr;
    }

    .score-ring {
        width: 148px;
    }

    .score-ring::before {
        width: 114px;
    }

    .report-stats {
        border-top: 1px solid #cfdad6;
        border-left: 0;
        padding-top: 1.5rem;
        padding-left: 0;
    }

    .processing-panel,
    .error-panel,
    .admin-create-scan,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-card--summary {
        position: static;
    }
}

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}
