/* ===================================
   Google Ads page templates and the shared quote form (inc/ads-pages.php).
   Loads after page-30x40-texas.css, which already styles the form, sections, gallery,
   reviews and FAQ (.lp-*). This file adds:
     1. The base that sheet scopes to its own body class, for .ads-lp and .ads-scope
     2. New pieces: price boxes, sizes, options, states, comparison table, checklist
     3. The form inside pages that keep the site header (comparison, Size Cost Page)
   =================================== */

/* 1. Base. .ads-lp is the body of a standalone page; .ads-scope wraps ads markup on a
   page that keeps the site header and styles. */
.ads-lp,
.ads-scope {
    --lp-red: #FF2400;
    --lp-ink: #111;
    --lp-muted: #5b5b5b;
    --lp-line: #e6e6e6;
    --lp-bg: #f6f5f2;

    color: var(--lp-ink);
    line-height: 1.5;
}

.ads-lp {
    background: #fff;
}

.ads-lp *,
.ads-lp *::before,
.ads-lp *::after,
.ads-scope *,
.ads-scope *::before,
.ads-scope *::after {
    box-sizing: border-box;
}

.ads-lp img,
.ads-scope .lp-gallery img {
    display: block;
    max-width: 100%;
}

/* Library photos carry their own height; let the 4:3 crop decide instead. */
.ads-lp .lp-gallery img,
.ads-scope .lp-gallery img {
    height: auto;
}

.ads-lp a {
    color: inherit;
}

.ads-lp h1,
.ads-lp h2,
.ads-lp h3,
.ads-scope h1,
.ads-scope h2,
.ads-scope h3 {
    text-wrap: balance;
}

.ads-lp p,
.ads-lp li,
.ads-scope p,
.ads-scope li {
    text-wrap: pretty;
}

.ads-lp .lp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ads-lp a.lp-btn,
.ads-scope a.lp-btn {
    color: #fff;
}

.ads-lp .lp-or a {
    color: #fff;
    font-weight: 700;
}

.ads-lp .lp-footer a {
    color: #bbb;
}

/* A hero with no Featured image is plain dark, so the white text still reads. */
.ads-hero--no-image::after {
    display: none;
}

/* Sections alternate white and warm grey by position, so a section left empty (and so
   not printed) never puts two of the same together. The closing section stays dark. */
.ads-sections > .lp-section:nth-of-type(even) {
    background-color: var(--lp-bg);
}

.ads-sections > .lp-section.lp-final {
    background-color: #111;
}

/* 2. New pieces */

/* Price boxes in the hero */
.ads-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 520px;
    margin: 0 0 10px;
}

.ads-price {
    padding: 12px 14px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
}

.ads-price b {
    display: block;
    font-size: 21px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.ads-price span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    opacity: .85;
}

.ads-fine {
    margin: 0 0 20px;
    color: var(--lp-muted);
    font-size: 13px;
}

.lp-hero .ads-fine {
    max-width: 520px;
    color: #fff;
    opacity: .8;
}

.lp-section .ads-fine {
    margin: 18px 0 0;
}

/* "What you get" with fewer than four boxes */
.lp-get.ads-get--3 {
    grid-template-columns: repeat(3, 1fr);
}

.lp-get.ads-get--2 {
    grid-template-columns: repeat(2, 1fr);
}

.lp-get.ads-get--1 {
    grid-template-columns: minmax(0, 420px);
}

/* Popular sizes */
.ads-sizes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

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

.ads-sizes--2,
.ads-sizes--1 {
    grid-template-columns: repeat(2, 1fr);
}

.ads-size {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
}

.ads-size h3 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--lp-red);
    font-size: 24px;
    line-height: 1.1;
}

.ads-size dl {
    margin: 0;
}

.ads-size dl div + div {
    margin-top: 10px;
}

.ads-size dt {
    color: var(--lp-muted);
    font-size: 13px;
    font-weight: 600;
}

.ads-size dd {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ads-size a {
    display: inline-block;
    margin-top: 14px;
    color: var(--lp-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

/* Options */
.ads-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ads-options li {
    padding: 14px 0;
    border-top: 1px solid var(--lp-line);
}

.ads-options b {
    display: block;
    font-size: 17px;
}

.ads-options span {
    display: block;
    margin-top: 2px;
    color: var(--lp-muted);
    font-size: 15px;
}

/* Where we build */
.ads-states {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ads-states li {
    position: relative;
    padding: 9px 0 9px 20px;
    border-bottom: 1px solid var(--lp-line);
    font-size: 16px;
    font-weight: 600;
}

.ads-states li::before {
    content: "";
    position: absolute;
    top: 1.15em;
    left: 0;
    width: 10px;
    height: 3px;
    background: var(--lp-red);
}

/* Comparison table */
.ads-table {
    width: 100%;
    margin: 0;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-collapse: collapse;
    font-size: 16px;
}

.ads-table th,
.ads-table td {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--lp-line);
    text-align: left;
    vertical-align: top;
}

.ads-table thead th {
    color: #fff;
    background: #111;
    font-size: 14px;
    font-weight: 700;
}

.ads-table thead th:nth-child(2) {
    box-shadow: inset 0 4px 0 var(--lp-red);
}

.ads-table tbody th {
    width: 24%;
    font-weight: 700;
}

.ads-table tbody td:nth-child(2) {
    width: 40%;
    background: #fffaf8;
}

.ads-table tbody td:nth-child(3) {
    color: var(--lp-muted);
}

.ads-table tbody tr:last-child th,
.ads-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Checklist */
.ads-checklist {
    max-width: 800px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ads-check;
}

.ads-checklist li {
    position: relative;
    padding: 14px 0 14px 46px;
    border-bottom: 1px solid var(--lp-line);
    font-size: 18px;
    font-weight: 600;
}

.ads-checklist li::before {
    counter-increment: ads-check;
    content: counter(ads-check);
    position: absolute;
    top: 13px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--lp-red);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
}

/* 3. Inside the site header and styles (comparison page, Size Cost Page).
   The site's own form and heading styles are loaded here, so the form's are restated
   under .ads-scope to win. */
.ads-scope .lp-card {
    border: 1px solid var(--lp-line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    /* Clears the site's sticky header when "Get a quote" links jump here. */
    scroll-margin-top: 110px;
    text-align: left;
}

.ads-scope .lp-card h2 {
    margin: 0 0 16px;
    padding: 0;
    color: var(--lp-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.ads-scope .lp-step-count {
    margin: 0 0 2px;
    font-size: 13px;
    line-height: 1.5;
}

.ads-scope .lp-field label,
.ads-scope .lp-choice legend {
    color: var(--lp-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.ads-scope .lp-field input[type="text"],
.ads-scope .lp-field input[type="tel"],
.ads-scope .lp-field input[type="email"] {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 11px 12px;
    color: var(--lp-ink);
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.5;
}

.ads-scope .lp-field--bad input[type="text"],
.ads-scope .lp-field--bad input[type="tel"],
.ads-scope .lp-field--bad input[type="email"] {
    border-color: #b00020;
}

.ads-scope .lp-options label {
    margin: 0;
}

.ads-scope .lp-options span {
    color: var(--lp-ink);
}

.ads-scope .lp-btn {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 15px;
    color: #fff;
    background: var(--lp-red);
    border: 0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
}

.ads-scope .lp-back {
    width: auto;
    color: var(--lp-muted);
    background: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
}

.ads-scope .lp-consent {
    font-weight: 400;
}

.ads-scope .lp-consent a {
    color: inherit;
    text-decoration: underline;
}

.ads-scope .lp-title {
    margin: 0 0 10px;
    color: var(--lp-ink);
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
}

.ads-scope .lp-final h2 {
    color: #fff;
}

.ads-scope .lp-final-call {
    color: #fff;
}

.ads-scope .lp-trust {
    margin: 14px 0 0;
    color: var(--lp-muted);
    font-size: 14px;
}

.ads-scope .lp-trust b {
    color: var(--lp-ink);
}

/* Comparison page: breadcrumb and hero */
.ads-crumbs {
    padding: 14px 0;
    color: var(--lp-muted);
    background: var(--lp-bg);
    font-size: 14px;
}

.ads-crumbs a {
    color: var(--lp-muted);
    text-decoration: none;
}

.ads-crumbs a:hover {
    color: var(--lp-ink);
    text-decoration: underline;
}

.ads-crumbs span {
    color: var(--lp-ink);
}

.ads-compare-hero {
    padding: 24px 0 56px;
    background: var(--lp-bg);
}

.ads-compare-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: start;
}

.ads-compare-hero h1 {
    margin: 0 0 16px;
    color: var(--lp-ink);
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-align: left;
}

.ads-compare-intro {
    max-width: 560px;
    margin: 0 0 20px;
    font-size: 19px;
}

/* Size Cost Page: the form in the hero, in place of the two buttons */
.scp-form {
    margin-top: 20px;
}

.scp-form .lp-card {
    padding: 20px;
    box-shadow: none;
}

.scp-form-call {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 600;
}

.scp-form-call a {
    color: var(--lp-ink);
    font-weight: 700;
    white-space: nowrap;
}

/* Tablets and phones */
@media (max-width: 900px) {
    /* The photo sits above the copy instead of behind it, so nothing covers it. */
    .ads-lp .lp-hero-img {
        position: static;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .ads-lp .lp-final {
        padding: 28px 0 32px;
    }

    /* Room for the Call and quote buttons fixed to the bottom of the screen. */
    .ads-lp {
        padding-bottom: 70px;
    }

    .ads-sizes,
    .ads-sizes--3 {
        grid-template-columns: 1fr 1fr;
    }

    .lp-get.ads-get--3 {
        grid-template-columns: 1fr 1fr;
    }

    .ads-options {
        grid-template-columns: 1fr 1fr;
    }

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

    .ads-compare-hero {
        padding: 12px 0 36px;
    }

    .ads-compare-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ads-compare-intro {
        font-size: 17px;
    }
}

/* Phones: each table row becomes its own block, with the column name over each answer,
   so nothing scrolls sideways. */
@media (max-width: 640px) {
    .ads-table,
    .ads-table tbody,
    .ads-table tr,
    .ads-table th,
    .ads-table td {
        display: block;
        width: auto;
    }

    .ads-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .ads-table tbody th,
    .ads-table tbody td:nth-child(2) {
        width: auto;
    }

    .ads-table tbody th {
        padding: 12px 14px;
        color: #fff;
        background: #111;
        border-bottom: 0;
    }

    .ads-table tbody td {
        padding: 12px 14px;
    }

    .ads-table tbody tr:last-child td:nth-child(2) {
        border-bottom: 1px solid var(--lp-line);
    }

    .ads-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--lp-muted);
        font-size: 12px;
        font-weight: 700;
    }

    .ads-checklist li {
        font-size: 17px;
    }
}

@media (max-width: 520px) {
    .ads-prices {
        gap: 8px;
    }

    .ads-price {
        padding: 10px 12px;
    }

    .ads-price b {
        font-size: 18px;
    }

    .ads-sizes,
    .ads-sizes--3,
    .ads-sizes--2,
    .ads-sizes--1,
    .lp-get.ads-get--3,
    .lp-get.ads-get--2,
    .ads-options {
        grid-template-columns: 1fr;
    }

    .ads-states {
        grid-template-columns: 1fr 1fr;
    }
}

/* 4. Round 2: comparison hero without the form, fit box, form section, related links,
   "how it works" steps. */
.ads-compare-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding-top: 20px;
    border-top: 3px solid var(--lp-red);
}

.ads-scope .ads-compare-cta .lp-btn {
    display: inline-block;
    width: auto;
    padding: 15px 28px;
    text-decoration: none;
}

.ads-compare-cta p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ads-compare-cta p a,
.ads-form-call a {
    color: var(--lp-ink);
    font-weight: 700;
    white-space: nowrap;
}

.ads-fit {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-top: 4px solid var(--lp-red);
    text-align: left;
}

.ads-scope .ads-fit h2 {
    margin: 0 0 4px;
    padding: 0;
    color: var(--lp-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.ads-scope .ads-fit h3 {
    margin: 18px 0 8px;
    padding: 0;
    color: var(--lp-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.ads-fit-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ads-fit-list li {
    position: relative;
    margin: 0;
    padding: 6px 0 6px 22px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.ads-fit-list li::before {
    content: "";
    position: absolute;
    top: .95em;
    left: 0;
    width: 10px;
    height: 3px;
    background: var(--lp-red);
}

.ads-fit-list--no li {
    color: var(--lp-muted);
    font-weight: 400;
}

.ads-fit-list--no li::before {
    background: #b5b5b5;
}

.ads-checked {
    margin: 12px 0 0;
    color: var(--lp-muted);
    font-size: 14px;
}

.ads-form-grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 460px);
    gap: 48px;
    align-items: start;
}

.ads-form-call {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ads-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ads-step;
}

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

.ads-steps--2,
.ads-steps--1 {
    grid-template-columns: repeat(2, 1fr);
}

.ads-steps li {
    margin: 0;
    padding-top: 14px;
    border-top: 3px solid var(--lp-ink);
    font-size: 16px;
}

.ads-steps b {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

@media (max-width: 900px) {
    .ads-form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

@media (max-width: 520px) {
    .ads-scope .ads-compare-cta .lp-btn {
        display: block;
        width: 100%;
    }

    .ads-steps,
    .ads-steps--3,
    .ads-steps--2,
    .ads-steps--1 {
        grid-template-columns: 1fr;
    }
}

/* 5. Round 3: closing banner and trust band inside the site styles, state map. */
.ads-scope .lp-final .lp-btn {
    display: inline-block;
    width: auto;
    padding: 15px 34px;
    text-decoration: none;
}

.ads-scope .lp-final h2 {
    margin: 0 0 10px;
    padding: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.ads-scope .lp-final-call {
    text-decoration: none;
}

.ads-scope .lp-card-after p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.ads-scope .lp-card-after .lp-trust {
    margin: 0 0 0 auto;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}

.ads-scope .lp-card-after .lp-trust b,
.ads-scope .lp-card-after .lp-or a {
    color: #fff;
}

.ads-scope .lp-card-after .lp-or a {
    font-weight: 700;
}

.ads-where {
    display: grid;
    grid-template-columns: 1fr minmax(0, 470px);
    gap: 48px;
    align-items: start;
}

.ads-where .ads-states {
    grid-template-columns: 1fr 1fr;
}

.ads-map {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 4px;
}

.ads-map span {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    color: #a3a3a3;
    background: #efefef;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ads-map span.is-on {
    color: #fff;
    background: var(--lp-red);
}

@media (max-width: 900px) {
    .ads-where {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ads-map {
        max-width: 470px;
    }

    .ads-scope .lp-card-after .lp-trust {
        margin: 10px 0 0;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .16);
        font-size: 12.5px;
    }

    .ads-scope .lp-final h2 {
        font-size: 26px;
    }
}

@media (max-width: 520px) {
    .ads-map {
        gap: 3px;
    }

    .ads-map span {
        font-size: 9px;
    }
}

/* 6. Round 4: photos beside sections, line icons, a builds grid with no holes, the
   "where we build" block without a state list. */

/* A section's content with its optional photo beside it. */
.ads-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 40px;
    align-items: center;
}

.ads-split--flip {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.ads-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
}

.ads-lp .ads-photo img,
.ads-scope .ads-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Beside a photo the boxes and options sit two across, not four. */
.ads-split .lp-get,
.ads-split .lp-get.ads-get--3,
.ads-split .ads-options {
    grid-template-columns: 1fr 1fr;
}

/* Three (or two) boxes beside a photo stack in one column, icon to the left, so the
   grid never has an empty corner. */
.ads-split .lp-get.ads-get--3,
.ads-split .lp-get.ads-get--2,
.ads-split .lp-get.ads-get--1 {
    grid-template-columns: 1fr;
    gap: 12px;
}

.ads-split .lp-get.ads-get--3 > div,
.ads-split .lp-get.ads-get--2 > div,
.ads-split .lp-get.ads-get--1 > div {
    position: relative;
    padding: 16px 20px 16px 64px;
}

.ads-split .lp-get.ads-get--3 .ads-icon,
.ads-split .lp-get.ads-get--2 .ads-icon,
.ads-split .lp-get.ads-get--1 .ads-icon {
    position: absolute;
    top: 18px;
    left: 20px;
    margin: 0;
}

/* Line icons: on "What you get" boxes (in place of the red bar) and on the steps. */
.ads-icon {
    display: block;
    width: 28px;
    height: 28px;
    color: var(--lp-red);
}

.lp-get.ads-get > div::before {
    display: none;
}

.lp-get.ads-get .ads-icon {
    margin-bottom: 14px;
}

.ads-steps li {
    position: relative;
}

.ads-steps .ads-icon {
    margin-bottom: 10px;
}

/* Photo on a size card */
.ads-lp .ads-size img,
.ads-scope .ads-size img {
    display: block;
    width: calc(100% + 40px);
    max-width: none;
    height: auto;
    margin: -20px -20px 16px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 11px 11px 0 0;
}

/* Real builds: the photo count decides the grid, so 3, 4 or 5 never leave an L shape. */
.lp-gallery.ads-gallery--1 {
    grid-template-columns: minmax(0, 640px);
}

.lp-gallery.ads-gallery--2,
.lp-gallery.ads-gallery--4 {
    grid-template-columns: repeat(2, 1fr);
}

.lp-gallery.ads-gallery--5 {
    grid-template-columns: repeat(6, 1fr);
}

.lp-gallery.ads-gallery--5 figure {
    grid-column: span 2;
}

.lp-gallery.ads-gallery--5 figure:nth-child(-n+2) {
    grid-column: span 3;
}

.lp-gallery.ads-gallery--5 figure:nth-child(-n+2) img,
.lp-gallery.ads-gallery--2 img,
.lp-gallery.ads-gallery--4 img {
    aspect-ratio: 3 / 2;
}

/* Where we build */
.ads-where {
    align-items: center;
}

.ads-where .lp-lead {
    margin-bottom: 20px;
}

.ads-where-stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 14px 0 12px;
    padding-top: 14px;
    border-top: 3px solid var(--lp-red);
}

.ads-where-stat b {
    font-size: clamp(56px, 7vw, 84px);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.ads-where-stat span {
    font-size: 18px;
    font-weight: 600;
}

.ads-where .ads-states {
    margin-bottom: 20px;
}

.ads-where-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ads-lp .ads-where-cta .lp-btn {
    display: inline-block;
    width: auto;
    padding: 13px 26px;
    text-decoration: none;
}

.ads-where-cta span a {
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .ads-split,
    .ads-split--flip {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* The photo leads on a phone: people look at it first. */
    .ads-split > .ads-photo {
        order: -1;
    }

    .ads-lp .ads-photo img,
    .ads-scope .ads-photo img {
        aspect-ratio: 16 / 9;
    }

    /* Two across. With an odd number the first photo takes the full row. */
    .lp-gallery.ads-gallery--5 {
        grid-template-columns: 1fr 1fr;
    }

    .lp-gallery.ads-gallery--5 figure,
    .lp-gallery.ads-gallery--5 figure:nth-child(-n+2) {
        grid-column: auto;
    }

    .lp-gallery.ads-gallery--3 figure:first-child,
    .lp-gallery.ads-gallery--5 figure:first-child {
        grid-column: 1 / -1;
    }

    .lp-gallery.ads-gallery--3 figure:first-child img,
    .lp-gallery.ads-gallery--5 figure:first-child img {
        aspect-ratio: 16 / 9;
    }

    .lp-gallery.ads-gallery--5 figure:nth-child(2) img {
        aspect-ratio: 4 / 3;
    }

    .lp-gallery.ads-gallery--1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ads-split .lp-get,
    .ads-split .lp-get.ads-get--3,
    .ads-split .ads-options {
        grid-template-columns: 1fr;
    }

    .ads-where-stat span {
        font-size: 16px;
    }
}

/* 7. Round 5 */

/* Less room between sections; short ones (steps, questions, related, checklist, where
   we build) get less still. The hero is not touched. */
.ads-sections > .lp-section {
    padding: 52px 0;
}

.ads-sections > .lp-section.lp-section--tight {
    padding: 40px 0;
}

.ads-sections > .lp-section .lp-lead {
    margin-bottom: 24px;
}

/* Hero price boxes: room for the label on one or two even lines. */
.ads-prices {
    max-width: 600px;
}

.ads-price span {
    font-size: 12.5px;
    line-height: 1.35;
    text-wrap: balance;
}

/* Call and quote buttons fixed to the bottom of a phone. ".ads-lp a" made the Call text
   inherit the dark page colour on a dark button; say the colours outright. */
.ads-lp .lp-mobile-cta a {
    color: #fff;
}

.ads-lp .lp-mobile-cta .lp-mobile-call {
    color: var(--lp-ink);
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--lp-ink);
}

/* Options as cards with an icon */
.ads-options {
    gap: 12px;
}

.ads-options li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
}

.ads-options .ads-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 1px;
}

.ads-options b {
    font-size: 16px;
    line-height: 1.3;
}

.ads-options span {
    font-size: 14px;
}

/* The options photo is as tall as the list beside it. */
.ads-split--flip {
    align-items: stretch;
}

.ads-split--flip .ads-photo {
    position: relative;
    min-height: 260px;
}

/* Absolute, so the list sets the row's height and the photo fills it. */
.ads-lp .ads-split--flip .ads-photo img,
.ads-scope .ads-split--flip .ads-photo img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.ads-options {
    align-content: start;
}

/* Steps: icon, then "1. Title" */
.ads-steps .ads-icon {
    color: var(--lp-red);
}

/* FAQ: left-aligned like every other section */
.ads-sections .lp-faq details {
    max-width: 860px;
}

/* Comparison hero with a photo */
.ads-compare-hero {
    position: relative;
}

.ads-compare-hero > .lp-wrap {
    position: relative;
    z-index: 1;
}

.ads-scope .ads-compare-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.ads-compare-hero--photo {
    padding: 56px 0;
    background: #111;
}

.ads-compare-hero--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    /* The same darkening as the hero of the standalone pages. */
    background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .25) 100%);
}

.ads-compare-hero--photo h1,
.ads-compare-hero--photo .ads-compare-intro,
.ads-compare-hero--photo .ads-compare-cta p,
.ads-compare-hero--photo .ads-compare-cta p a {
    color: #fff;
}

/* Form section: what happens next, beside the form */
.ads-formsec .ads-form-grid {
    align-items: center;
}

.ads-next {
    max-width: 520px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.ads-next li {
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid var(--lp-line);
    font-size: 17px;
    font-weight: 600;
}

.ads-next li:last-child {
    border-bottom: 1px solid var(--lp-line);
}

.ads-formsec .ads-form-call {
    font-size: 18px;
}

.ads-scope .ads-formsec .lp-trust {
    margin-top: 8px;
}

/* Related pages as cards with the page's own photo */
.ads-related {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.ads-related--2,
.ads-related--1 {
    grid-template-columns: repeat(2, minmax(0, 360px));
}

.ads-related li {
    margin: 0;
    padding: 0;
}

.ads-related a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: var(--lp-ink);
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    text-decoration: none;
}

.ads-related a:hover {
    border-color: var(--lp-ink);
}

.ads-related-img {
    display: block;
}

.ads-scope .ads-related-img img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ads-related-text {
    display: block;
    padding: 14px 16px 16px;
    border-top: 3px solid var(--lp-red);
}

.ads-related-text b {
    display: block;
    font-size: 17px;
    line-height: 1.3;
}

.ads-related-text small {
    display: block;
    margin-top: 6px;
    color: var(--lp-muted);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .ads-sections > .lp-section {
        padding: 38px 0;
    }

    .ads-sections > .lp-section.lp-section--tight {
        padding: 30px 0;
    }

    .ads-related,
    .ads-related--3 {
        grid-template-columns: 1fr 1fr;
    }

    .ads-split--flip .ads-photo {
        min-height: 0;
    }

    .ads-lp .ads-split--flip .ads-photo img,
    .ads-scope .ads-split--flip .ads-photo img {
        position: static;
        aspect-ratio: 16 / 9;
    }

    /* As on the standalone pages: the photo sits above the copy, not behind it. */
    .ads-compare-hero--photo {
        padding: 0 0 36px;
        background: #222;
    }

    .ads-scope .ads-compare-img {
        position: static;
        height: auto;
        margin-bottom: 24px;
        aspect-ratio: 3 / 2;
    }

    .ads-compare-hero--photo::after {
        display: none;
    }
}

@media (max-width: 520px) {
    .ads-related,
    .ads-related--3,
    .ads-related--2,
    .ads-related--1 {
        grid-template-columns: 1fr;
    }

    /* Photo beside the text, so four cards don't fill two screens. */
    .ads-related a {
        flex-direction: row;
        align-items: stretch;
    }

    .ads-related-img {
        position: relative;
        flex: 0 0 38%;
        min-height: 96px;
    }

    /* Absolute, so the text sets the card's height and the photo fills its side. */
    .ads-scope .ads-related-img img {
        position: absolute;
        inset: 0;
        height: 100%;
        aspect-ratio: auto;
    }

    .ads-related-text {
        flex: 1;
        border-top: 0;
        border-left: 3px solid var(--lp-red);
    }
}

/* Phones: one price box per row, so its label stays on one or two lines. */
@media (max-width: 520px) {
    .ads-prices {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ads-price {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 10px;
        padding: 9px 12px;
    }

    .ads-price span {
        margin-top: 0;
    }
}
