:root {
    --page: #1b1f20;
    --surface: #202526;
    --surface-soft: #15191a;
    --surface-raised: #242a2c;
    --ink: #e7e3dc;
    --ink-soft: #c9d2df;
    --muted: #a5afbd;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(132, 203, 232, 0.36);
    --primary: #58cff8;
    --primary-strong: #8be2ff;
    --primary-fill: #0a5d79;
    --primary-fill-strong: #07485f;
    --accent: #5fc08b;
    --amber: #e2b661;
    --danger: #ff8a80;
    --success: #65d99a;
    --shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

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

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    max-width: 620px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--ink-soft);
    font-weight: 700;
}

#blazor-error-ui .reload {
    color: var(--primary);
    margin-left: 0.5rem;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
    margin-left: 1rem;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-weight: 800;
}

.skip-link:focus {
    top: 1rem;
}

strong {
    color: var(--ink);
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(27, 31, 32, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    gap: 0.7rem;
    align-items: center;
    min-width: 0;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.brand-logo {
    display: block;
    width: 13.5rem;
    max-width: 42vw;
    height: auto;
}

.footer-logo {
    width: 15rem;
    max-width: 100%;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: var(--radius);
    background: var(--ink);
    color: white;
    font-size: 0.82rem;
    font-weight: 900;
}

.links {
    display: flex;
    gap: 1.2rem;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 0.5rem;
    border-radius: var(--radius);
    padding: 0.78rem 1.05rem;
    font: inherit;
    font-weight: 800;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn.primary {
    background: var(--primary-fill);
    color: #ffffff;
    border-color: rgba(88, 207, 248, 0.56);
}

.btn.primary:hover {
    background: var(--primary-fill-strong);
    color: #ffffff;
}

.btn.ghost {
    background: transparent;
    color: var(--ink-soft);
}

.btn.full {
    width: 100%;
    margin-top: 1rem;
}

button.btn {
    border: 0;
}

button.btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.hero,
.page-hero,
.section {
    padding: 5rem 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    text-align: center;
}

.hero-copy {
    max-width: 760px;
    margin: 0 auto;
}

.page-hero {
    max-width: 920px;
    text-align: center;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eyebrow {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    margin: 0 0 1.1rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow span {
    display: none;
}

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

h1 {
    max-width: 820px;
    font-size: 4.65rem;
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 2.65rem;
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.22rem;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 0.55rem;
}

.lead {
    max-width: 680px;
    font-size: 1.16rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

.page-hero .lead {
    margin-left: auto;
    margin-right: auto;
}

.muted {
    color: var(--muted);
    line-height: 1.65;
}

.helper {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0.65rem 0 1.1rem;
}

.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.7rem;
}

.hero .actions,
.actions.center {
    justify-content: center;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.pill,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    padding: 0.48rem 0.64rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.tag {
    margin-bottom: 0.85rem;
    color: var(--primary);
    background: rgba(8, 147, 194, 0.14);
    border-color: rgba(8, 147, 194, 0.34);
}

.tag.blue {
    color: var(--primary);
    background: rgba(8, 147, 194, 0.14);
    border-color: rgba(8, 147, 194, 0.34);
}

.tag.amber {
    color: var(--amber);
    background: rgba(226, 182, 97, 0.14);
    border-color: rgba(226, 182, 97, 0.35);
}

.hero-visual,
.orb {
    display: none;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.7rem;
}

.section-head > p {
    max-width: 570px;
}

.cards,
.feature-grid {
    display: grid;
    gap: 1rem;
}

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

.cards.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards.one {
    grid-template-columns: 1fr;
}

.card,
details,
.feature {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}

.card:hover,
.feature:hover {
    border-color: var(--line-strong);
}

.feature {
    min-height: 215px;
    display: flex;
    flex-direction: column;
}

.feature span {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: auto;
}

.feature p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0;
}

.service-card .icon,
.icon {
    display: none;
}

.price {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0.95rem 0 0.6rem;
}

.price small,
.monthly-total small {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 750;
    letter-spacing: 0;
    margin-left: 0.25rem;
}

.list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.list li {
    padding: 0.55rem 0;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    line-height: 1.45;
}

.list.compact {
    margin-top: 0.6rem;
}

.list.compact li {
    font-size: 0.84rem;
}

.recommended {
    border-color: var(--primary);
}

.recommended h3 {
    padding-right: 7.4rem;
}

.recommended::before {
    content: "Recommended";
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: var(--primary-fill);
    color: #ffffff;
    border-radius: var(--radius);
    padding: 0.38rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 900;
}

.wide {
    grid-column: span 2;
}

.alt {
    max-width: none;
    background: var(--surface-soft);
}

.split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.25rem;
    align-items: center;
}

.band {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.step {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--surface);
}

.step span {
    color: var(--primary);
    font-weight: 950;
    font-size: 0.78rem;
    display: block;
    margin-bottom: 0.7rem;
}

.step p {
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.45;
    font-size: 0.9rem;
}

.cta-band {
    margin-top: 2rem;
    margin-bottom: 5rem;
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #121617;
    color: var(--ink);
    text-align: center;
}

.cta-band h2,
.cta-band strong {
    color: var(--ink);
}

.cta-band .muted {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: var(--ink-soft);
}

.cta-band .eyebrow {
    color: #7bd9ff;
}

.cta-band .btn.ghost {
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.42);
}

.cta-band .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
}

.quote-section,
.request-quote-section {
    scroll-margin-top: 92px;
}

.calculator-shell {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: start;
}

.calculator-panel label {
    display: block;
    margin: 0.95rem 0 0.45rem;
    color: var(--ink-soft);
    font-weight: 850;
}

.text-input,
select,
input[type="range"] {
    width: 100%;
}

.text-input,
select {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 0.9rem 0.95rem;
    color: var(--ink);
    background: var(--surface-raised);
    outline: none;
    font: inherit;
}

.text-input::placeholder,
textarea::placeholder {
    color: rgba(201, 210, 223, 0.58);
}

.text-input:focus,
select:focus,
textarea:focus,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(8, 147, 194, 0.28);
    outline-offset: 2px;
    border-color: var(--primary);
}

.form-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-grid.two {
    grid-template-columns: 1fr 1fr;
}

.check-card {
    display: flex !important;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-raised);
    cursor: pointer;
    margin: 0 !important;
}

.check-card:hover {
    border-color: var(--primary);
}

.check-card span {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
}

.check-card small {
    color: var(--primary);
    font-weight: 850;
    min-width: fit-content;
}

.check-card b {
    font-size: 0.9rem;
}

.range-row {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    margin-bottom: 0.55rem;
}

input[type="range"] {
    accent-color: var(--primary);
}

.quote-result {
    position: sticky;
    top: 6rem;
}

.quote-result h3 {
    font-size: 2rem;
    letter-spacing: 0;
    margin-top: 0.3rem;
}

.total,
.custom-total {
    font-size: 2.8rem;
    font-weight: 950;
    letter-spacing: 0;
    margin: 0.5rem 0;
}

.custom-total {
    color: var(--amber);
    font-size: 2rem;
}

.monthly-total {
    font-size: 1.7rem;
    font-weight: 950;
    color: var(--primary);
    margin-top: 1.1rem;
}

.summary-block {
    margin-top: 1.25rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

details summary {
    cursor: pointer;
    font-weight: 900;
}

details p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0.85rem 0 0;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0;
    color: var(--muted);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
}

.footer a:not(.brand) {
    display: block;
    color: var(--muted);
    margin-top: 0.55rem;
}

.footer a:hover {
    color: var(--primary);
}

.footer-brand {
    margin-bottom: 1rem;
}

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

.small-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.request-quote-shell {
    align-items: flex-start;
}

.request-form textarea,
.quote-textarea {
    width: 100%;
    min-height: 160px;
    resize: vertical;
}

.request-form .form-grid > div {
    min-width: 0;
}

.service-interest-grid {
    margin-top: 10px;
}

.helper.success {
    color: var(--success);
    font-weight: 700;
}

.helper.warning {
    color: var(--danger);
    font-weight: 700;
}

.validation-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 6px;
}

.blazor-error-boundary {
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-soft);
}

.blazor-error-boundary::after {
    content: "This section could not load.";
}

.validation-summary-errors {
    color: var(--danger);
    background: rgba(255, 138, 128, 0.11);
    border: 1px solid rgba(255, 138, 128, 0.34);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 18px;
}

.quote-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

[hidden] {
    display: none !important;
}

.privacy-note {
    margin-bottom: 0;
}

.request-form .service-interest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.request-form .service-interest-grid .check-card {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    min-height: 82px;
}

.request-form .service-interest-grid .check-card input {
    margin-top: 3px;
}

.request-form .service-interest-grid .check-card span {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: auto;
    gap: 4px;
    min-width: 0;
}

.request-form .service-interest-grid .check-card b {
    display: block;
    font-size: 0.86rem;
    line-height: 1.15;
    white-space: normal;
}

.request-form .service-interest-grid .check-card small {
    display: block;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.25;
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 980px) {
    .links {
        display: none;
    }

    .hero,
    .split,
    .calculator-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .section-head {
        display: block;
    }

    .cards.three,
    .cards.four,
    .feature-grid,
    .form-grid.two,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .request-form .service-interest-grid {
        grid-template-columns: 1fr;
    }

    .wide {
        grid-column: auto;
    }

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

    .recommended::before {
        position: static;
        display: inline-flex;
        margin-bottom: 0.8rem;
    }

    .recommended h3 {
        padding-right: 0;
    }

    .quote-result {
        position: static;
    }
}

@media (max-width: 720px) {
    .wrap {
        width: min(100% - 28px, 1160px);
    }

    .nav {
        min-height: 66px;
    }

    .brand {
        font-size: 0.95rem;
    }

    .brand-logo {
        width: 10.75rem;
        max-width: 58vw;
    }

    .nav > .btn {
        display: none;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero,
    .page-hero,
    .section {
        padding: 3.5rem 0;
    }

    .cta-band {
        padding: 1.35rem;
    }

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