* {
    box-sizing: border-box;
}

:root {
    --page: #30445b;
    --page-deep: #263b52;
    --panel: #3a536d;
    --panel-soft: #425e78;
    --line: #7590aa;
    --line-soft: rgba(210, 231, 246, 0.22);
    --text: #f5fbff;
    --muted: #d2e2ed;
    --mint: #bdeee2;
    --coral: #ff8d72;
    --yellow: #f1d86e;
    --focus: #fff2a8;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    background: var(--page-deep);
    border-bottom: 1px solid var(--line-soft);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-plate {
    position: relative;
    width: 38px;
    height: 30px;
    border: 2px solid var(--mint);
    border-radius: 5px;
    color: var(--mint);
    font-size: 8px;
    line-height: 26px;
    text-align: center;
    letter-spacing: 0;
}

.brand-plate::before,
.brand-plate::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid var(--coral);
    border-radius: 50%;
    top: 9px;
}

.brand-plate::before {
    left: 6px;
}

.brand-plate::after {
    right: 6px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a:active {
    color: var(--mint);
}

.header-buttons,
.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--mint);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--page-deep);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button.coral {
    background: var(--coral);
    border-color: var(--coral);
    color: #283f55;
}

.button.coral:hover {
    background: var(--yellow);
    border-color: var(--yellow);
}

main {
    overflow: hidden;
}

.panel-intro,
.fault-opening,
.offer-opening {
    padding: 62px 0 54px;
    background: var(--page-deep);
    border-bottom: 1px solid var(--line-soft);
}

.panel-intro-shell,
.fault-opening-shell,
.offer-opening-shell {
    position: relative;
    padding-left: 42px;
}

.panel-intro-shell::before,
.fault-opening-shell::before,
.offer-opening-shell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 10px;
    border-left: 2px solid var(--mint);
    border-right: 2px solid var(--coral);
}

.panel-intro-shell::after,
.fault-opening-shell::after,
.offer-opening-shell::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 15px;
    width: 18px;
    height: 18px;
    border: 3px solid var(--yellow);
    border-radius: 50%;
    background: var(--page-deep);
}

.kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 20px;
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.35;
}

p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 16px;
}

p:last-child {
    margin-bottom: 0;
}

.intro-copy {
    max-width: 860px;
}

.intro-copy p {
    max-width: 800px;
}

.panel-section,
.fault-section,
.offer-section {
    padding: 52px 0;
    border-bottom: 1px solid var(--line-soft);
}

.panel-section.alt,
.fault-section.alt,
.offer-section.alt {
    background: var(--panel);
}

.panel-title,
.fault-title,
.offer-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.fastener {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--coral);
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px var(--panel);
    background: var(--yellow);
    color: transparent;
    font-size: 0;
}

.panel-section:not(.alt) .fastener,
.fault-section:not(.alt) .fastener,
.offer-section:not(.alt) .fastener {
    box-shadow: inset 0 0 0 3px var(--page);
}

.panel-title h2,
.fault-title h2,
.offer-title h2 {
    margin-bottom: 0;
}

.prose {
    max-width: 870px;
}

.device-ledger,
.offer-ledger {
    margin: 26px 0 0;
    border-top: 1px solid var(--line);
}

.device-row,
.offer-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
}

.device-row dt,
.offer-row dt {
    color: var(--mint);
    font-weight: 800;
}

.device-row dd,
.offer-row dd {
    margin: 0;
    color: var(--muted);
}

.service-runs {
    margin-top: 24px;
}

.service-run {
    position: relative;
    padding: 0 0 24px 34px;
}

.service-run:last-child {
    padding-bottom: 0;
}

.service-run::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    bottom: -2px;
    width: 1px;
    background: var(--line);
}

.service-run:last-child::before {
    bottom: 14px;
}

.service-run::after {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 13px;
    height: 13px;
    border: 2px solid var(--mint);
    border-radius: 50%;
    background: var(--panel);
}

.service-run h3 {
    color: var(--text);
}

.inline-note {
    margin-top: 26px;
    padding: 18px 20px;
    border-left: 4px solid var(--yellow);
    background: var(--panel-soft);
}

.inline-note p {
    margin-bottom: 0;
    color: var(--text);
}

.hours-band {
    margin-top: 26px;
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.hours-band strong,
.hours-band span {
    padding: 14px 18px;
}

.hours-band strong {
    color: var(--yellow);
    border-right: 1px solid var(--line);
}

.hours-band span {
    color: var(--muted);
}

.contact-sill {
    padding: 42px 0;
    background: var(--panel-soft);
    border-bottom: 1px solid var(--line-soft);
}

.contact-sill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.contact-sill-copy {
    max-width: 720px;
}

.contact-sill-copy h2 {
    margin-bottom: 10px;
}

.prefooter-note {
    padding: 20px 0;
    background: var(--page-deep);
    border-bottom: 1px solid var(--line-soft);
}

.prefooter-note p {
    margin: 0;
    color: #b9cad6;
    font-size: 14px;
}

.site-footer {
    padding: 24px 0 30px;
    background: var(--page-deep);
}

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

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
}

.footer-links a:hover,
.footer-links a:active {
    color: var(--mint);
}

.footer-mark {
    color: #a9bfcd;
    font-size: 14px;
}

.symptom-rails {
    margin-top: 26px;
    border-top: 1px solid var(--line);
}

.symptom-rail {
    padding: 20px 0 20px 28px;
    border-bottom: 1px solid var(--line-soft);
    position: relative;
}

.symptom-rail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 27px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--coral);
}

.symptom-rail h3 {
    color: var(--mint);
}

.visit-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: visit;
}

.visit-list li {
    counter-increment: visit;
    position: relative;
    padding: 0 0 22px 54px;
    color: var(--muted);
}

.visit-list li::before {
    content: counter(visit, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--yellow);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.visit-list li::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 8px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--mint);
    border-radius: 50%;
}

.offer-strip {
    margin-top: 22px;
    padding: 20px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.offer-strip strong {
    color: var(--yellow);
}

.terms-list {
    margin: 22px 0 0;
    padding-left: 22px;
    color: var(--muted);
}

.terms-list li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.terms-list li::marker {
    color: var(--coral);
}

@media (max-width: 1024px) {
    .header-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .primary-nav {
        order: 3;
        width: 100%;
        padding-top: 4px;
        border-top: 1px solid var(--line-soft);
    }

    .panel-intro,
    .fault-opening,
    .offer-opening {
        padding-top: 50px;
    }
}

@media (max-width: 768px) {
    .wrap {
        width: min(100% - 32px, 1120px);
    }

    .header-buttons {
        width: 100%;
    }

    .header-buttons .button {
        flex: 1 1 210px;
    }

    .panel-intro-shell,
    .fault-opening-shell,
    .offer-opening-shell {
        padding-left: 30px;
    }

    .panel-section,
    .fault-section,
    .offer-section {
        padding: 44px 0;
    }

    .device-row,
    .offer-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hours-band,
    .contact-sill-row,
    .footer-row {
        display: block;
    }

    .hours-band strong,
    .hours-band span {
        display: block;
        padding-left: 0;
        padding-right: 0;
    }

    .hours-band strong {
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .contact-sill .action-row {
        margin-top: 20px;
    }

    .footer-links {
        margin-bottom: 12px;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 24px, 1120px);
    }

    .site-header {
        padding-bottom: 2px;
    }

    .header-row {
        gap: 14px;
    }

    .primary-nav {
        gap: 14px;
        overflow-wrap: anywhere;
    }

    .header-buttons,
    .action-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .button {
        width: 100%;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }

    .panel-intro,
    .fault-opening,
    .offer-opening {
        padding: 42px 0 38px;
    }

    .panel-intro-shell,
    .fault-opening-shell,
    .offer-opening-shell {
        padding-left: 24px;
    }

    .panel-intro-shell::before,
    .fault-opening-shell::before,
    .offer-opening-shell::before {
        width: 7px;
    }

    .panel-intro-shell::after,
    .fault-opening-shell::after,
    .offer-opening-shell::after {
        left: -5px;
        width: 16px;
        height: 16px;
    }

    .panel-title,
    .fault-title,
    .offer-title {
        align-items: flex-start;
    }

    .fastener {
        margin-top: 8px;
    }

    .service-run {
        padding-left: 28px;
    }

    .site-footer {
        padding-bottom: 26px;
    }
}
