/* ==========================================================================
   Palette, sizes and fonts
   ========================================================================== */

/* Site palette, sizes and fonts. Change them here. */
:root {
    /* Text */
    --text: #090a0a;            /* body text */
    --muted: #575047;           /* small secondary text */
    --on-dark: #fafbfe;         /* text on navy bands */
    --on-dark-muted: #d6d8e0;   /* secondary text on navy bands */

    --gutter-left: max(16px, env(safe-area-inset-left));
    --gutter-right: max(16px, env(safe-area-inset-right));

    /* Backgrounds */
    --bg-page: #f8f5ef;         /* page background behind everything that isn't a band */
    --bg-light: #fff;           /* white section bands */
    --bg-grey: #f3ece0;         /* tan section bands and panels */
    --dark: #191f2b;            /* hero, bottom address band, price bar */
    --footer: #11151e;          /* nav and footer, a shade darker than --dark */
    --card-hover: #faf6ee;      /* hover on cards and list rows */
    --quote-bg: #faf6ee;        /* review quote cards */

    /* Brand */
    --brand: #1f3a68;           /* buttons, links, ticks, Recommended */
    --brand-hover: #162b4f;     /* button hover */
    --brand-light: #d4b483;     /* hover on dark backgrounds */
    --icon-fg: #9a7a45;         /* icons in the "Why Provost chooses" row, a darker tan that shows on white */
    --stars: #e0a526;
    --featured-shadow: rgba(25, 31, 43, 0.12); /* Recommended card glow */

    /* Tan buttons on dark bands ("Check availability", Sign up) */
    --cta: #d4b483;
    --cta-hover: #c4a06a;
    --cta-text: #191f2b;

    /* Lines */
    --line: #e6dccb;            /* card and badge borders */
    --input-border: #7d7466;    /* text box outlines */
    --line-strong: #cfc6b5;     /* borders that must show on the page background: inputs, buttons, maps */
    --dark-line: #2c3445;       /* hairline above the footer */

    /* Status */
    --error: #b42318;
    --error-bg: #fdeceb;
    --error-text: #7a1a12;
    --success: #2f7d4a;
    --success-bg: #e9f4ec;
    --success-text: #1e4d2b;
    --warning: #a16207;         /* part-paid invoices, degraded-service banner */

    /* Shape and type */
    --radius-sm: 6px;           /* buttons and inputs */
    --radius: 10px;             /* cards, badges, photos, maps */
    --body-font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --heading-font: "Space Grotesk", var(--body-font);
}

@font-face {
    font-family: "Space Grotesk";
    src: url("/static/SpaceGrotesk.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}

/* ==========================================================================
   Base elements
   ========================================================================== */

html {
    scrollbar-gutter: stable;
    word-break: break-word;
    background-color: var(--footer);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text);
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    background-color: var(--bg-page);
}

body, button, input, optgroup, select, textarea {
    font-family: var(--body-font);
}

h4 {
    font-weight: 600;
}

a {
    color: inherit;
}

a:visited {
    color: inherit;
}

a:hover {
    color: var(--brand);
}

p, ul, ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

::selection {
    color: #fff;
    background-color: var(--brand);
}

h1, h2, h3,
.pricing-card__mbps,
.pricing-card__dollar,
#recommended-banner {
    font-family: var(--heading-font);
}

/* ==========================================================================
   Layout and text containers
   ========================================================================== */

main {
    flex: auto;
}

section {
    padding-left: var(--gutter-left);
    padding-right: var(--gutter-right);
    box-sizing: border-box;
}

section h2.heading {
    margin-top: 2em;
}

.dark-section {
    background-color: var(--bg-grey);
}

section.dark-section {
    padding-top: 64px;
    padding-bottom: 64px;
    margin-bottom: 0;
}

/* Inside a tan band, the band's padding does the spacing */
.dark-section > .main-left {
    margin-top: 0;
    margin-bottom: 0;
}

.main-width {
    display: flex;
    flex-direction: column;
    max-width: 1250px;
    margin: 0 auto;
}

/* More space above than below, so a heading sits with the text it introduces */
.heading {
    margin: 1.6em 0 0.5em;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* At the top of a tan band, the band's padding already spaces it */
.dark-section .heading:first-child {
    margin-top: 0;
}

.side-width {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

.side-width p, .side-width ul {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 0.9em;
}

/* Body copy: 18px, lines capped at about 72 characters. Only text is capped,
   so images, tables, forms and cards in the same container stay full width. */
.main-left, .side-width, .main-text, .answer {
    line-height: 1.6;
}

.main-left p, .side-width p, .answer p,
.main-left li, .side-width li, .answer li {
    max-width: 44rem;
}

.main-left p, .answer p {
    margin-top: 0;
    margin-bottom: 0.9em;
}

/* Narrower centred text column. .main-left.text-width beats .main-left's max-width, which comes later. */
.text-width, .main-left.text-width {
    max-width: 46rem;
}

h1.heading,
h2.heading {
    font-size: 2.25rem;
    line-height: 1.15; /* rem, so section headings are the same size whatever container they sit in */
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3.heading {
    font-size: 1.35em;
}

.main-text {
    font-size: 1.125rem;
    margin-left: 100px;
    margin-right: 100px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.main-left {
    max-width: 1050px;
    width: 100%;
    font-size: 1.125rem;
    margin: 3em auto;
}

details {
    box-sizing: border-box;
    margin-left: 0.2em;
    border: 1px solid transparent;
}

details[open] {
    border-color: var(--line-strong);
    margin-bottom: 18px;
}

summary {
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 10px;
}

details[open] > summary {
    padding-bottom: 14px;
}

.answer {
    margin-left: 1em;
    margin-right: 1em;
    font-size: 1.125rem;
}

/* Links inside body text: brand navy with a little space under the underline */
main p a, main li a {
    color: var(--brand);
    text-underline-offset: 2px;
}

main p a:visited, main li a:visited {
    color: var(--brand);
}

@media (max-width: 850px) {
    .main-text {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.banner {
    max-width: 1182px; /* 1150px of content plus padding, lined up with the page below */
    width: 100%;
    box-sizing: border-box;
    padding: 0 var(--gutter-right) 0 var(--gutter-left);
}

.banner, footer {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--on-dark);
    background-color: var(--footer);
    line-height: 1;
}

#logo {
    font-weight: 500;
    margin-left: 6px;
    padding: 5px;
    display: flex;
    align-items: center;
}

#logo > img {
    margin-right: 10px;
    height: 2em;
    width: 2em;
}

#logo:hover {
    color: var(--brand-light);
}

nav h2 {
    margin: 0;
}

.banner-links {
    box-sizing: border-box;
    display: flex;
    flex: auto;
    justify-content: flex-end;
    align-items: center;
}

#header-always {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#menu-button {
    display: flex;
    white-space: nowrap;
    padding: 14px 8px;
    margin-right: 6px;
    align-items: center;
}

/* Nav uses the darker footer colour, so it reads as a separate header bar above the hero */
nav {
    display: flex;
    justify-content: center;
    background-color: var(--footer);
}

nav a {
    text-decoration: none;
}

.nav-link {
    padding: 6px 0;
    margin: 12px;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

#nav-toggle {
    display: none;
}

#hamburger {
    display: none;
}

#bar-wrapper {
    margin-left: 14px;
}

.bar {
    width: 32px;
    height: 4px;
    background-color: var(--on-dark);
    margin: 5px 0;
}

a.nav-link:hover {
    color: inherit;
    border-bottom: 3px solid var(--brand-light);
}

/* Tan "Sign up" nav button. "a." and :visited beat the site-wide a:visited and nav link hover rules;
   no border in any state, so it doesn't shift on hover like the underlined nav links. */
a.nav-link--signup,
a.nav-link--signup:visited {
    margin-left: 12px; /* same 24px gap as between the other links */
    padding: 9px 20px; /* 34px tall, the same as the other links' tap area */
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    background-color: var(--cta);
    color: var(--cta-text);
}

a.nav-link--signup:hover {
    border: 0;
    background-color: var(--cta-hover);
    color: var(--cta-text);
}

@media (max-width: 850px) {
    .banner {
        flex-direction: column;
    }

    #hamburger {
        display: block;
    }

    #header-always {
        width: 100%;
    }

    .banner-links {
        display: none;
        flex-direction: column;
        margin: 0;
        padding: 0 6px;
        align-items: stretch;
        width: 100%;
    }

    #nav-toggle:checked ~ .banner-links {
        display: flex;
    }

    #nav-toggle:checked ~ .banner-links > .nav-link {
        font-size: 1.2em;
        padding: 14px;
        margin: 4px 10px;
        border: none;
    }

    /* In the phone menu, Sign up is a centred button at the bottom instead of a tan list row */
    #nav-toggle:checked ~ .banner-links > .nav-link--signup {
        margin: 12px 10px 16px;
        text-align: center;
    }
}

/* ==========================================================================
   Service status banner
   ========================================================================== */

.notification {
    padding: 12px;
    font-weight: 500;
}

div.notification-info {
    background-color: var(--brand-light);
}

div.notification-degraded {
    background-color: var(--warning);
    color: #fff;
}

div.notification-outage {
    background-color: var(--error);
    color: #fff;
}

div.notification-resolved {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.notification > span {
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
    user-select: none;
}

/* ==========================================================================
   Hero (all pages) and the address check
   ========================================================================== */

.hero {
    background-color: var(--dark);
    color: var(--on-dark);
    padding: 112px var(--gutter-right) 112px var(--gutter-left);
}

.hero__inner {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.45em;
    text-wrap: balance;
}

.hero__sub {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--on-dark-muted);
    margin: 0 0 32px;
    max-width: 560px; /* same width as the address form */
    text-wrap: balance; /* two even lines */
}

/* No stray gap under the last line (subhead on pages without the address form) */
.hero__text > :last-child {
    margin-bottom: 0;
}

/* Address box and button on one row; stacks on phones */
.hero__form {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0;
}

.hero__form input {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.1rem;
    padding: 0.85em 1em;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--text);
    background-color: #fff;
}

.hero__form button {
    width: auto;
    margin: 0;
    padding: 0 1.4em;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--cta-text);
    background-color: var(--cta);
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.hero__form button::after {
    content: '❯';
    margin-left: 0.5em;
}

.hero__form button:hover {
    background-color: var(--cta-hover);
}

.hero__note,
.hero__trust {
    font-size: 1rem;
    color: var(--on-dark-muted);
}

.hero__note {
    margin: 12px 0 0;
}

/* Hero links: same colour as the text around them, white on hover. :visited beats the navy "main p a" rule. */
.hero a,
.hero a:visited {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero a:hover {
    color: #fff;
}

.hero__trust {
    margin: 1.4em 0 0;
}

.hero__trust a,
.hero__trust a:visited {
    color: inherit;
    text-decoration: none;
}

.hero__trust a:hover {
    color: #fff;
    text-decoration: underline;
}

.hero__stars {
    color: var(--stars);
    letter-spacing: 0.05em;
}

/* 3:2 crop anchored high: keeps the building, truck and fibre reels, trims the gravel lot */
.hero__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.hero__photo:not(.hero__photo--illustration) img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 25%;
    border-radius: var(--radius);
}

/* Tall photos (WiFi router, gaming): centred crop instead of anchored high, so the subject stays in frame */
.hero__photo.hero__photo--tall img {
    object-position: center;
}

/* SVG illustrations: whole picture, no crop. No aspect-ratio: the img's width/height
   attributes reserve the space before it loads, so nothing shifts. */
.hero__photo--illustration img {
    max-height: 380px;
    object-fit: contain;
}

.hero__form input:focus-visible {
    outline: 2px solid var(--cta);
    outline-offset: 2px;
}

/* Address check on a light background (service area page) */
.hero__form--light {
    margin-top: 0.5em;
}

.hero__form--light input {
    border: 1px solid var(--input-border);
}

.hero__form--light input:focus-visible {
    outline-color: var(--brand);
}

.hero__form--light button {
    color: #fff;
    background-color: var(--brand);
}

.hero__form--light button:hover {
    background-color: var(--brand-hover);
}

@media (max-width: 850px) {
    .hero {
        padding: 40px var(--gutter-right) 48px var(--gutter-left);
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    /* Wider, shorter crop under the text so the address box stays near the top */
    .hero__photo:not(.hero__photo--illustration) img {
        aspect-ratio: 16 / 9;
    }

    .hero__photo--illustration img {
        max-height: 260px;
    }

    /* Tall photos lose too much in a 16:9 crop: use 4:3 on phones */
    .hero__photo.hero__photo--tall img {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 520px) {
    .hero__form {
        flex-direction: column;
    }

    .hero__form button {
        padding: 0.85em 1.4em;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

button {
    width: 100%;
    margin-top: 1em;
    padding: 0.5em;
    font-size: 1.1em;
    font-family: inherit;
    font-weight: 500;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--dark);
    background-color: #fff;
    cursor: pointer;
}

button:hover {
    border-color: var(--muted);
    background-color: var(--card-hover);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

button.btn-primary,
a.btn-primary,
a.btn-primary:visited {
    display: inline-block;
    align-self: flex-start;
    text-decoration: none;
    width: auto;
    margin: 1.5em 0 0;
    padding: 0.8em 1.6em;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--brand);
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

button.btn-primary::after,
a.btn-primary::after {
    content: '❯';
    margin-left: 0.5em;
}

button.btn-primary:hover,
a.btn-primary:hover {
    color: #fff;
    text-decoration: none;
    background-color: var(--brand-hover);
}

button.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 1;
    color: #fff;
    background-color: #9aa3b5;
}

button.btn-primary:focus-visible,
a.btn-primary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    button.btn-primary,
    a.btn-primary {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* ==========================================================================
   Forms
   ========================================================================== */

form div.formelement, fieldset {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
    margin-top: 1em;
}

/* Checkbox lines up with the first line of its label */
form div.formelement-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 1em;
    margin-top: 1em;
}

form label, legend {
    font-size: 1em;
    font-weight: 500;
    color: inherit;
    margin-bottom: 0.5rem;
}

/* At least 16px, so iOS Safari doesn't zoom in when a box is tapped */
form input, form textarea {
    font-size: max(1rem, 16px);
    padding: 0.65em 0.75em;
    max-width: 100%;
    box-sizing: border-box;
}

form input[type="checkbox"], form input[type="radio"] {
    height: 24px;
    width: 24px;
    min-height: 24px;
    min-width: 24px;
    margin-right: 0.5em;
    accent-color: var(--brand);
}

/* :where() keeps these weak, so boxes styled elsewhere (homepage address form) keep their own look */
form :where(input:not([type="checkbox"], [type="radio"], [type="hidden"]), textarea) {
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: inherit;
}

form :where(input, textarea):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
    border-color: var(--brand);
}

form :where(input, textarea)::placeholder {
    color: var(--muted);
}

/* margin-left 0: checkboxes line up with the text boxes above them */
form div.formelement-row input {
    margin-top: 0.05em;
    margin-left: 0;
}

form div.formelement-row label {
    margin-bottom: 0;
}

textarea {
    min-height: 2.6em;
    resize: vertical;
}

fieldset > div:not(:last-child) {
    margin-bottom: 0.25em;
}

fieldset > legend {
    display: flex;
    align-items: center;
}

/* "(optional)" after a label; fields without it are required */
label .optional {
    font-weight: 400;
    color: var(--muted);
}

/* ==========================================================================
   Error and success messages
   ========================================================================== */

/* Tinted box with a coloured bar on the left */
.error-message {
    background-color: var(--error-bg);
    border-left: 4px solid var(--error);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--error-text);
}

.success-message {
    background-color: var(--success-bg);
    border-left: 4px solid var(--success);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--success-text);
}

.warning-button {
    color: var(--error);
    background-color: var(--error-bg);
    border-color: var(--error-bg);
}

/* ==========================================================================
   Pricing cards and fine print
   ========================================================================== */

/* A link on the homepage and wireless page, a <button> on the order page (border: 0 clears the site-wide button border) */
.pricing-card .btn-availability {
    box-sizing: border-box;
    min-width: 100%;
    margin-top: 1.5em;
    padding: 0.65em 0;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: var(--brand);
}

.pricing-card .btn-availability::after {
    content: '❯';
    margin-left: 0.5em;
}

.pricing-card .btn-availability:hover {
    background-color: var(--brand-hover);
}

/* "Pricing details" disclosure under the order page cards */
.pricing-faqs {
    margin: 1.2em 0;
}

.pricing-note {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0.6em 0 0.4em;
}

/* Full width (no align-self: center) so the fixed-width cards fit side by side;
   a shrink-to-fit container sizes from the cards' content and wraps the third card. */
.pricing-container {
    display: flex;
    flex-wrap: wrap;
    font-size: 1.2em;
    flex-direction: row;
    justify-content: center;
}

/* Cards inside a narrow text column (order page) break out to the full page width
   so three fit on one row, while the heading and text stay in the column. */
.side-width > .pricing-container {
    width: min(1250px, calc(100vw - 32px));
    align-self: center;
}

/* Extra top margin leaves room for the "Recommended" tab above a card. */
.pricing-container > * {
    margin: 36px 8px 24px;
}

.pricing-container ul {
    list-style-type: none;
    margin: 1.2em 0;
    padding: 0;
    font-size: 0.95em;
}

.pricing-container li {
    padding-top: 0.35em;
}

/* Same width for every card, sized to the longest feature line ("Available in select areas only"); shrinks on narrow phones */
.pricing-card {
    position: relative;
    box-sizing: border-box;
    flex: 0 1 19em;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 2em;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Recommended card: navy outline joined to its tab, lifted above the others */
.pricing-card:has(#recommended-banner) {
    border: 2px solid var(--brand);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: calc(2em - 1px); /* thicker border, so trim padding to keep text level with the other cards */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 16px 40px var(--featured-shadow);
}

/* Plan name is a small label; the speed is the headline */
.pricing-card h2,
.pricing-card h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.7em;
}

.pricing-card__speed {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1;
}

.pricing-card__mbps {
    font-size: 2.3em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-card__speed-sub {
    font-size: 0.85em;
    color: var(--muted);
    margin: 0.4em 0 1.1em;
}

.pricing-card__price {
    font-weight: 500;
}

.pricing-card__dollar {
    font-size: 2em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pricing-card__per {
    font-size: 0.9em;
    margin-left: 0.1em;
    color: var(--muted);
}

/* "Simple pricing" line under the homepage pricing heading */
.pricing-simple {
    font-size: 1.1rem;
    margin: 0 auto 1.2em;
    max-width: 44rem;
    text-wrap: balance; /* even line lengths for a short centred line */
}

.pricing-card__points {
    align-self: stretch;
    flex-grow: 1;
}

/* "Recommended" tab sitting on top of a pricing card. Positioned outside the card
   so the card's title and price stay level with the cards next to it. */
#recommended-banner {
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 100%;
    text-align: center;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 4px;
    color: #fff;
    background-color: var(--brand);
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Navy tick before each feature; hanging indent so wrapped lines line up */
.pricing-card__points li {
    padding-left: 1.3em;
    text-indent: -1.3em;
}

.pricing-card__points li::before {
    content: "\2713";
    display: inline-block;
    width: 1.3em;
    text-indent: 0;
    color: var(--brand);
    font-weight: 700;
}

/* Selling points under the cards: dots, not ticks, so it doesn't compete with the cards */
.trust-strip {
    list-style: none;
    margin: 1.4em auto 0.2em;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3em 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
}

.trust-strip li + li::before {
    content: "\00B7";
    margin: 0 0.7em;
    color: var(--muted);
}

/* Pricing details and promotions side by side */
.main-left.details-cols {
    max-width: 1150px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0 56px;
}

/* Homepage pricing band: same 96px padding as the white band */
#pricing.dark-section {
    padding-top: 96px;
    padding-bottom: 96px;
}

/* Pricing details and promotions as fine print under the cards */
.dark-section > .main-left.pricing-fine {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    font-size: 1.0625rem; /* 17px, just under the 18px body text */
    line-height: 1.6;
}

/* No "Recommended" tab on any card: drop the 36px kept free above the cards for it */
.pricing-container:not(:has(#recommended-banner)) > * {
    margin-top: 16px;
}

/* Fine print under the order page cards: GST line in body colour, the rest muted */
.side-width p.pricing-note {
    font-size: 1rem;
    margin-bottom: 0.3em;
}

.side-width p.pricing-note--main {
    color: inherit;
}

/* Lines up with the text; no bigger than body copy */
.pricing-faqs summary {
    font-size: 1.125rem;
    padding-left: 0;
}

.pricing-faqs[open] {
    border-color: transparent;
}

.pricing-faqs .answer {
    margin-left: 0;
}

/* So wrapped bullets don't run together */
.pricing-fine li + li {
    margin-top: 0.3em;
}

@media (max-width: 520px) {
    /* Selling points as a centred list: separator dots would start wrapped lines */
    .trust-strip {
        flex-direction: column;
        align-items: center;
        gap: 0.35em 0;
        font-size: 1rem;
    }

    .trust-strip li + li::before {
        content: none;
    }

    /* Pricing cards: less padding, same 16px edge as the rest of the page */
    .pricing-container {
        font-size: 1.1em;
    }

    .pricing-container > * {
        margin: 36px 0 16px;
    }

    .pricing-card {
        padding: 1.5em;
    }

    .pricing-card:has(#recommended-banner) {
        padding: calc(1.5em - 1px);
    }

    .pricing-container ul {
        margin: 0.9em 0;
    }

    /* Tighter section spacing: 96px bands read as dead space on a phone */
    #pricing.dark-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .dark-section > .main-left.pricing-fine {
        margin-top: 40px;
        padding-top: 28px;
    }
}

/* ==========================================================================
   Homepage sections: feature rows, icon row, reviews, address band
   ========================================================================== */

.card {
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.card:hover {
    background-color: var(--card-hover);
}

.card > h3 {
    font-size: 1.2em;
    font-weight: 500;
    text-align: center;
}

.card > a {
    text-decoration: none;
    border-bottom: 2px solid var(--brand);
    padding: 0.2em 0;
}

/* Review cards: the whole card is the link (uses .card's hover background) */
.review-card,
.review-card:visited,
.review-card:hover {
    color: inherit;
    text-decoration: none;
}

.review-card > h3 {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
}

.review-card__stars {
    padding: 0.2em 0;
    letter-spacing: 0.05em;
    color: var(--stars);
}

.review-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* White homepage band between tan ones. flow-root keeps the children's margins inside it. */
.light-band {
    display: flow-root;
    background-color: var(--bg-light);
    padding: 96px 0;
}

#reviews .heading {
    margin-top: 0;
}

/* Facebook and Google review badges */
.review-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 1.2em;
}

.review-row .review-card {
    flex-direction: row;
    gap: 0.7em;
    padding: 0.8em 1.4em;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.review-row .review-card svg {
    width: 28px;
    height: 28px;
}

/* Text and photo side by side, alternating sides; stacked on phones */
.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    max-width: 1182px; /* 1150px of content, same as the hero */
    margin: 0 auto 96px;
    padding: 0 var(--gutter-right) 0 var(--gutter-left);
}

.feature-row__text {
    font-size: 1.125rem;
    line-height: 1.6;
}

.feature-row__text .heading {
    margin-top: 0;
}

.feature-row__text p {
    margin: 0 0 0.9em;
}

.feature-row__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.feature-row--flip .feature-row__img {
    order: -1;
}

/* "Why Provost chooses" row: 2x2 grid, one column on phones */
.icon-row {
    display: grid;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 96px;
    padding: 0 var(--gutter-right) 0 var(--gutter-left);
    box-sizing: border-box;
    gap: 40px 32px;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.icon-row .card {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 0;
}

.icon-row .card:hover {
    background-color: transparent;
}

.icon-row .card svg {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    color: var(--icon-fg);
    fill: currentColor; /* the game controller's buttons have no fill of their own and would draw black */
}

.icon-row .card > h3 {
    text-align: left;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 0.5em;
}

.icon-row .card > a {
    justify-self: start;
    align-self: end;
    border-bottom: 0;
    padding: 0.5em 0; /* bigger tap area without moving the link */
    margin: -0.5em 0;
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Address check repeated at the bottom of the homepage, joined to the footer */
.home-cta {
    background-color: var(--dark);
    color: var(--on-dark);
    padding: 64px var(--gutter-right) 64px var(--gutter-left);
    text-align: center;
}

.home-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.8em;
}

.home-cta .hero__form {
    margin: 0 auto;
    text-align: left;
}

.icon-row__title {
    margin: 0 0 1em;
}

.review-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    width: 100%; /* it sits in a flex column; without this it sizes to its content and overflows on phones */
    gap: 20px;
    max-width: 1150px;
    margin: 1.2em auto 0;
    padding: 0 8px;
    box-sizing: border-box;
}

/* Thin border so they don't float; column so the reviewer's name sits at the bottom */
.review-quotes blockquote {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 1.4em 1.6em;
    background-color: var(--quote-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1.05rem;
    line-height: 1.6;
}

.review-quotes blockquote::before {
    content: "\2605\2605\2605\2605\2605";
    display: block;
    color: var(--stars);
    letter-spacing: 0.05em;
    margin-bottom: 0.5em;
}

.review-quotes p {
    margin: 0;
}

/* 28px, smaller than the 36px section headings */
.feature-row__text h2.heading {
    font-size: 1.75rem;
}

.review-quotes cite {
    margin-top: auto;
    padding-top: 0.9em;
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 800px) {
    .feature-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-bottom: 56px;
    }

    .feature-row--flip .feature-row__img {
        order: 0;
    }

    .feature-row__img--wide {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 520px) {
    .light-band {
        padding: 64px 0;
    }

    .icon-row {
        margin-bottom: 64px;
    }

    .home-cta {
        padding: 48px 16px;
    }

    /* Facebook and Google review badges the same width */
    .review-row .review-card {
        width: 100%;
        max-width: 22rem;
        box-sizing: border-box;
        justify-content: center;
    }
}

/* ==========================================================================
   Form pages (login, order steps) and maps
   ========================================================================== */

.order-confirm form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Short forms (login, check availability, your details, check your email): one white card on a
   tan field. On white, the input outlines read clearly. */
main:has(> .form-card) {
    padding: 48px var(--gutter-right) 72px var(--gutter-left);
    background-color: var(--bg-grey);
}

.form-card {
    box-sizing: border-box;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.form-card--wide {
    max-width: 650px;
}

main:has(> .form-card--wide) {
    background-color: transparent;
}

/* Two fields on one line: street address (wider) and unit */
.form-card__row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 0 16px;
}

.form-card h1 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    line-height: 1.2;
}

/* No intro line between the heading and the form (check availability): same 24px gap as with one */
.form-card h1 + form {
    margin-top: 24px;
}

/* :where() keeps this weak, so .step-label and the message classes keep their own spacing */
:where(.form-card) p {
    margin: 0 0 24px;
    font-size: 1.0625rem;
}

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

.form-card .formelement {
    margin: 0 0 20px;
}

.form-card label {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.form-card .formelement-row label {
    font-weight: 400;
}

.form-card input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.form-card textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 0 14px;
    font-size: 1.0625rem;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
}

.form-card textarea {
    padding: 12px 14px;
}

.form-card :where(input, textarea):focus-visible {
    border-color: var(--brand);
    outline: 3px solid rgba(31, 58, 104, 0.25);
    outline-offset: 0;
}

.form-card .btn-primary {
    display: block;
    width: 100%;
    min-height: 52px;
    margin-top: 24px;
    font-size: 1.125rem;
    text-align: center;
}

/* Agreement checkboxes and captcha under a hairline */
.form-card__agree {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.form-card__agree .formelement-row {
    margin: 0 0 12px;
}

/* Hold the reCAPTCHA widget's space (304x78 iframe) so the page doesn't shift when its script loads */
#recaptcha {
    min-height: 78px;
}

.form-card .error-message {
    margin: 16px 0 0;
}

/* Radio choices (site survey or waitlist), each with an optional hint line */
.form-card__choices {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.form-card__choices legend {
    margin-bottom: 10px;
    padding: 0;
    font-weight: 600;
}

.form-card__choices .formelement-row {
    margin: 0 0 12px;
}

.form-card__hint {
    display: block;
    margin-top: 2px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* A card inside a normal page (waitlist option under the plans), left-aligned with the text */
.form-card--inline {
    margin: 1em 0 0;
}

/* Small help links under the button, one per line */
.form-card__links {
    margin-top: 20px;
}

.form-card__links p {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: var(--muted);
}

/* "Step 1 of 5" above the heading on the signup pages */
.step-label {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--icon-fg);
}

.form-page .step-label {
    margin-top: 1.6em;
}

.form-page .step-label + .heading {
    margin-top: 0;
}

/* Less space above the heading so Continue stays above the fold on a 768px-tall laptop */
.form-page .heading {
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

/* The address they typed, so they can check it before placing the pin */
.side-width p.form-page__address {
    margin-bottom: 0.4em;
    font-family: var(--heading-font);
    font-size: 1.35rem;
    font-weight: 600;
}

/* "3704 56 ave" shows as "3704 56 Ave" */
.form-page__street {
    text-transform: capitalize;
}

.form-page__address a {
    margin-left: 0.5em;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 400;
}

.order-confirm .error-message {
    align-self: stretch;
    font-size: 1.125rem;
}

/* Map frame: rounded with a tan border (order address map, service area maps) */
.area-map {
    align-self: stretch;
    margin: 1.5em 0 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    overflow: hidden;
}

.area-map img {
    display: block;
    width: 100%;
    height: auto;
}

.order-confirm__map {
    position: relative;
    margin-top: 0.6em;
}

/* Grey box with "Loading map…" until Google draws the map (or if it never loads) */
#map {
    height: clamp(300px, 50vh, 520px);
    width: 100%;
    display: grid;
    place-items: center;
    background-color: var(--bg-grey);
    color: var(--muted);
}

/* Bottom tip of the pin on the centre of the map; shadow keeps it visible on any imagery */
.order-confirm__pin {
    position: absolute;
    top: calc(50% - 58px);
    left: calc(50% - 22.5px);
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

/* Order plans page: smaller headings for "Option 1 / Option 2" */
.form-page h3.heading {
    font-size: 1.5rem;
    margin-top: 1.6em;
}

/* Same 32rem width for every box, not the full column */
.form-page form :where(input[type="text"], input[type="email"], input[type="tel"], textarea) {
    max-width: 32rem;
}

@media (max-width: 520px) {
    /* Phones: the card becomes the page, so the 304px captcha fits a 360px screen */
    main:has(> .form-card) {
        padding: 0;
        background-color: #fff;
    }

    .form-card {
        max-width: none;
        padding: 24px 16px 40px;
        border: 0;
        border-radius: 0;
    }

    .form-card h1 {
        font-size: 1.5rem;
    }

    /* Inline card on phones: no side padding, so the 304px captcha fits beside the page's own padding */
    .form-card--inline {
        padding: 20px 0 0;
    }

    .form-card__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-page .heading {
        margin-top: 0.75em;
    }

    #map {
        height: 42vh;
    }
}

/* ==========================================================================
   Client area: payments and invoices
   ========================================================================== */

.subscription-setup {
    display: flex;
    align-items: center;
    padding-top: 24px;
    margin-bottom: 2em;
}

.subscription-setup > img {
    max-width: 400px;
    padding-right: 20px;
}

.subscription-setup button {
    width: inherit;
    font-size: 0.9rem;
    padding: 3px 6px;
}

.opposite-ends {
    display: flex;
    justify-content: space-between;
}

.opposite-ends form {
    margin: 0;
}

.opposite-ends button {
    margin-top: 0.2em;
}

.all-cap-header {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1.5em;
}

/* Invoice status badges (class from ucrm_api InvoiceStatus::css_name) */
td.invoice-paid, td.invoice-partial, td.invoice-unpaid {
    display: inline-block;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 0.95em;
    color: #fff;
}

td.invoice-paid {
    background-color: var(--success);
}

td.invoice-partial {
    background-color: var(--warning);
}

td.invoice-unpaid {
    background-color: var(--error);
}

@media (max-width: 850px) {
    .subscription-setup {
        flex-direction: column;
    }
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
    width: 100%;
}

thead {
    font-weight: 500;
}

thead td {
    border-bottom: 2px solid var(--dark);
}

td {
    padding: 4px;
}

th {
    text-align: start;
    padding: 4px;
    background-color: var(--bg-grey);
}

tr:nth-child(odd) {
    background-color: var(--quote-bg);
}

/* ==========================================================================
   Blog posts
   ========================================================================== */

article h1, article h2, article h3, article h4 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

article h2 {
    font-size: 1.5em;
    margin: 1.4em 0 0.5em;
}

article h3 {
    font-size: 1.25em;
    margin: 1.3em 0 0.4em;
}

article h4 {
    font-size: 1.05em;
    margin: 1.2em 0 0.3em;
}

article p {
    margin: 0 0 0.9em;
}

article ul, article ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

article li + li {
    margin-top: 0.3em;
}

article figure {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

article figure > figcaption {
    display: block;
    width: 100%;
    text-align: center;
    font-style: italic;
    font-size: 0.95em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    background-color: var(--bg-grey);
    border-radius: 0 0 var(--radius) var(--radius);
}

article figure img {
    border-radius: var(--radius);
}

article figure:has(figcaption) img {
    border-radius: var(--radius) var(--radius) 0 0;
}

article figure > :not(figcaption) {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

article picture {
    display: flex;
    justify-content: center;
    margin-top: 2em;
    width: fit-content;
}

a:has(> picture) {
    display: block;
}

picture {
    display: block;
}

picture > img {
    max-width: 100%;
    display: block;
    height: 100%;
}

/* Two-column grid: everything spans both columns except runs of back-to-back figures,
   which fill the columns as tiles. Margins don't collapse in a grid, so text elements
   only use bottom margins (headings add a top margin for separation). */
article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
    margin-top: 3em;
    max-width: 48rem;
    margin-inline: auto;
    font-size: 1.125rem;
    line-height: 1.6;
}

article > * {
    grid-column: 1 / -1;
}

article > figure:has(+ figure),
article > figure + figure {
    grid-column: auto;
}

article .title {
    font-size: 2.2em;
    margin: 0 0 0.2em;
}

article .subtitle {
    font-size: 0.9em;
    color: var(--muted);
    margin: 0 0 1.5em;
}

/* Figure tiles: full width of their column, white card, every image letterboxed to the
   same 4:3 shape so captions line up across a row. */
article > figure {
    display: block;
    width: auto;
    margin: 0 0 16px;
}

article > figure:has(+ figure) img,
article > figure + figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: #fff;
}

/* The 2em gap above standalone blog images shouldn't apply inside a figure. */
article figure picture {
    margin: 0;
    width: 100%;
}

article .footnote-definition {
    display: flex;
    flex-direction: row;
}

article .footnote-reference {
    padding-left: 3px;
}

article .footnote-reference > a {
    color: var(--brand);
    font-size: 0.9em;
    text-decoration: none;
}

article .footnote-reference > a:hover {
    text-decoration: underline;
}

article .footnote-reference > a::before {
    content: "[";
}

article .footnote-reference > a::after {
    content: "]";
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Hairline so the footer stands apart from the address band above it */
footer {
    margin-top: 80px;
    border-top: 1px solid var(--dark-line);
    padding-bottom: env(safe-area-inset-bottom);
}

.footer-links {
    box-sizing: border-box;
    width: 100%;
    max-width: 1182px;
    margin: 0 auto;
    padding: 50px var(--gutter-right) 50px var(--gutter-left);
    justify-content: space-between;
    gap: 0 3em;
    line-height: 1.8;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--brand-light);
}

.footer-offset {
    padding-left: 0.6rem;
}

.footer-col {
    margin: 2em 0;
    display: flex;
    flex-direction: column;
}

.footer-col > h2 {
    margin-top: 0;
}

footer a {
    text-decoration: none;
    padding: 0.4rem;
    margin: 0.2rem;
    line-height: 1;
}

footer a:hover {
    text-decoration: underline;
}

.footer-col > h3 {
    margin: 0 0 0.6em 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-light);
}

/* No pale 80px strip between the footer and a band that ends the page (homepage address band, streaming notes) */
body:has(.home-cta) footer,
body:has(.form-card) footer,
body:has(main > section.dark-section:last-child) footer {
    margin-top: 0;
}

@media (max-width: 520px) {
    /* Footer: address across the top, the two link lists side by side, taller tap targets */
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
        padding: 32px 16px 40px;
    }

    .footer-col {
        margin: 1em 0;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    footer a {
        padding: 0.55rem 0.4rem;
    }
}

/* ==========================================================================
   Small utilities
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img.cover {
    object-fit: cover;
}

img.contain {
    object-fit: contain;
}

.center-text {
    text-align: center;
}

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

.nowrap {
    white-space: nowrap;
}
