/* ==========================================================================
   Marketing pages (WEB-601 site update)
   Loaded after style.css on the public marketing pages. Reuses the brand
   orange (#FF6B00), Segoe UI stack and 1200px container from style.css.
   ========================================================================== */

/* Brand guide 313-0326 (2026): Orange #FF6B00, Black #231F20, Grey #E5E5E5, font Inter. */
:root {
    --brand: #FF6B00;
    --brand-dark: #e65c00;
    --ink: #231F20;
    --ink-soft: #4a4648;
    --muted: #6e6a6b;
    --line: #E5E5E5;
    --paper: #ffffff;
    --paper-alt: #EFEFEF;
    --grey: #E5E5E5;
    --dark: #231F20;
    --dark-2: #2e2a2b;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(35, 31, 32, 0.08);
    --font: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.marketing,
body.marketing .btn,
body.marketing input,
body.marketing button {
    font-family: var(--font);
}

.site-header,
.site-header .btn,
.site-footer-rich {
    font-family: var(--font);
}

body.marketing {
    color: var(--ink);
    background: var(--paper);
}

body.marketing h1,
body.marketing h2,
body.marketing h3,
body.marketing h4 {
    letter-spacing: -0.01em;
}

/* Pill buttons per the brand web mockup. Never underline a button label. */
body.marketing .btn,
.site-header .btn,
body.marketing .btn:hover,
.site-header .btn:hover {
    border-radius: 999px;
    text-decoration: none;
}

/* Weight is set once and never changes on hover, or the label reflows and the pill shrinks */
body.marketing .btn,
.site-header .btn {
    font-weight: 600;
}

/* Heavier label so white reads on the brand orange */
body.marketing .btn-primary,
.site-header .btn-primary,
body.marketing .btn-primary:hover,
.site-header .btn-primary:hover {
    font-weight: 700;
}

body.marketing main {
    flex: 1 0 auto;
}

/* ---------- Header + nav ---------- */

.site-header {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.site-header .logo {
    width: 180px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    justify-content: center;
}

.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--ink);
    border-bottom-color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-actions .contact-number {
    font-size: 15px;
}

.btn-nav {
    padding: 10px 18px;
    font-size: 15px;
    height: auto;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 42px;
    height: 38px;
    cursor: pointer;
    color: var(--ink);
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: absolute;
    left: 11px;
    top: 17px;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: absolute;
    left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */

.btn-light {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--paper);
}

.btn-light:hover {
    background: #f0f0f0;
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-outline-light {
    background: transparent;
    color: var(--paper);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--paper);
}

.btn-lg {
    font-size: 17px;
    padding: 15px 34px;
    height: auto;
}

/* ---------- Page hero ---------- */

.page-hero {
    position: relative;
    background: var(--dark);
    color: var(--paper);
    overflow: hidden;
}

.page-hero-media {
    position: absolute;
    inset: 0;
}

.page-hero-media img,
.page-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.page-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 24, 29, 0.92) 0%, rgba(20, 24, 29, 0.62) 55%, rgba(20, 24, 29, 0.35) 100%);
}

.page-hero.centered .page-hero-media::after {
    background: rgba(20, 24, 29, 0.68);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 96px 0 88px;
    max-width: 720px;
}

.page-hero.centered .page-hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.page-hero.compact .page-hero-content {
    padding: 64px 0 56px;
}

/* Homepage hero per brand web mockup: full image left, dark angled panel right */
.brand-hero .page-hero-media img,
.brand-hero .page-hero-media video {
    opacity: 1;
}

.brand-hero .page-hero-media::after {
    background: linear-gradient(90deg, rgba(35, 31, 32, 0.15) 0%, rgba(35, 31, 32, 0.35) 100%);
}

.brand-hero .container {
    display: flex;
    justify-content: flex-end;
}

.brand-hero .hero-panel {
    background: rgba(35, 31, 32, 0.94);
    padding: 64px 56px;
    margin: 72px 0;
    max-width: 600px;
    border-radius: 24px;
}

.brand-hero .hero-panel .hero-title {
    font-size: 44px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 860px) {
    .brand-hero .hero-panel {
        padding: 40px 28px;
        margin: 24px 0;
        max-width: none;
    }

    .brand-hero .hero-panel .hero-title {
        font-size: 34px;
    }
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
}

.page-hero .hero-title {
    color: var(--paper);
    font-size: 50px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: none;
}

.hero-lede {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.page-hero.centered .hero-actions {
    justify-content: center;
}

.hero-note {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Stat band ---------- */

.stat-band {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.stat-band .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.stat {
    text-align: center;
    padding: 0 12px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: none;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 15px;
    color: var(--ink-soft);
}

.stat-band.on-dark {
    background: var(--dark-2);
    border-bottom: none;
}

.stat-band.on-dark .stat { border-right-color: rgba(255, 255, 255, 0.12); }
.stat-band.on-dark .stat-label { color: rgba(255, 255, 255, 0.75); }

/* ---------- Trusted-by strip ---------- */

.trusted-strip {
    padding: 36px 0;
    background: var(--grey);
    border-bottom: 1px solid var(--line);
}

.trusted-label {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.trusted-names {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}

.trusted-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-soft);
    padding: 8px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Hover: invert to black on white, nothing moves */
.trusted-name:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}


/* ---------- Sections ---------- */

.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--paper-alt);
}

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

body.marketing .section-dark .section-title,
.section-dark .card-title,
.section-dark .step-title { color: var(--paper); }
.section-dark .section-lede,
.section-dark .card-text,
.section-dark p { color: rgba(255, 255, 255, 0.8); }

.section-header {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-header.left {
    margin-left: 0;
    text-align: left;
}

body.marketing .section-title {
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.section-lede {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 28px;
}

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

/* ---------- Cards ---------- */

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.section-alt .card {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.section-dark .card {
    background: var(--dark-2);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Brand icon style: thin orange line icons, no container */
.card-icon {
    width: 44px;
    height: 44px;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}

.card-text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.card-text + .check-list {
    margin-top: 16px;
}

/* Product cards */

body.marketing .product-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

body.marketing .product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #f0f0f0;
}

body.marketing .product-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.marketing .product-card-body .card-title {
    font-size: 26px;
}

.product-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 22px;
}

/* ---------- Split (image + text) ---------- */

.split {
    display: flex;
    align-items: center;
    gap: 64px;
}

.split.reverse {
    flex-direction: row-reverse;
}

.split-media,
.split-content {
    flex: 1;
    min-width: 0;
}

.split-media img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}

.split-media.contain img {
    object-fit: contain;
    max-height: 460px;
}

.split + .split {
    margin-top: 96px;
}

body.marketing .split-content .section-title {
    font-size: 32px;
}

.split-content p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

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

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 12.5l3 3 7-7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat;
}

.section-dark .check-list li { color: rgba(255, 255, 255, 0.9); }

.check-list.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
}

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step {
    position: relative;
    padding: 32px 28px 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.section-alt .step {
    border-color: transparent;
    box-shadow: var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--paper);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    color: var(--ink-soft);
    line-height: 1.65;
}

/* ---------- Tables ---------- */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.compare-table,
.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 15.5px;
}

.compare-table th,
.compare-table td,
.spec-table th,
.spec-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
}

.compare-table thead th {
    background: var(--paper-alt);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.compare-table thead th.is-us {
    color: var(--brand);
}

.compare-table tbody th {
    font-weight: 700;
    color: var(--ink);
    width: 18%;
}

.compare-table td {
    color: var(--ink-soft);
}

.compare-table td.is-us {
    color: var(--ink);
    font-weight: 600;
    background: rgba(255, 107, 0, 0.05);
}

.compare-table tr:last-child td,
.compare-table tr:last-child th,
.spec-table tr:last-child td,
.spec-table tr:last-child th {
    border-bottom: none;
}

.spec-table th {
    width: 28%;
    color: var(--ink);
    font-weight: 700;
    background: var(--paper-alt);
    white-space: nowrap;
}

/* A spec table inside a split column must shrink to the column */
.split .spec-table {
    min-width: 0;
    font-size: 15px;
}

.split .spec-table th,
.split .spec-table td {
    padding: 12px 16px;
}

.spec-table td {
    color: var(--ink-soft);
}

/* ---------- Screenshots ---------- */

.screenshot {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    background: var(--paper);
}

.screenshot-caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

.placeholder-note {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    background: #fff4ec;
    border: 1px dashed #ffb27a;
    border-radius: 6px;
    padding: 3px 8px;
}

/* ---------- Testimonials / case studies ---------- */

.testimonial {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.testimonial p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
}

.testimonial-source {
    font-size: 14px;
    color: var(--muted);
}

.testimonial-source strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
}

.case-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.section-alt .case-card {
    border-color: transparent;
    box-shadow: var(--shadow);
}

.case-card .case-metric {
    font-size: 34px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 6px;
}

.case-card .case-metric-label {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
}

.case-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.case-card p {
    color: var(--ink-soft);
    line-height: 1.6;
    flex: 1;
}

.case-card a {
    margin-top: 18px;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.case-card a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */

.faq-group {
    max-width: 860px;
    margin: 0 auto 48px;
}

.faq-group h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.faq {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    text-align: center;
    line-height: 24px;
    color: var(--brand);
    font-weight: 700;
}

.faq[open] summary::after {
    content: "\2013";
}

.faq p,
.faq ul {
    padding: 0 22px 20px;
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 16px;
}

.faq ul {
    padding-left: 44px;
}

/* ---------- Pricing ---------- */

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.price-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid var(--brand);
    box-shadow: var(--shadow);
}

.price-card .badge-promo,
.price-card .badge {
    align-self: flex-start;
    margin-bottom: 14px;
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.price-card .price-sub {
    color: var(--muted);
    margin-bottom: 22px;
}

.price-tag {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 6px;
}

.price-tag small {
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.price-note {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.price-card .check-list {
    margin-bottom: 28px;
    flex: 1;
}

.badge,
.badge-promo {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 6px;
}

.badge { background: var(--paper-alt); color: var(--ink-soft); }
.badge-promo { background: var(--brand); color: var(--paper); }

/* ---------- CTA band ---------- */

/* Closing CTA: full-width charcoal (#302C2C), lighter than the footer, orange used only as
   the accent. Hierarchy: white heading, light-gray copy, orange button, small secondary link. */
.cta-band {
    background: #302C2C;
    color: var(--paper);
    padding: 64px 0;
    text-align: center;
}

.cta-band .container {
    max-width: 760px;
}

.cta-band .cta-band-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    color: var(--paper);
}

.cta-band p {
    font-size: 17px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 26px;
    color: #E0DDDD;
}

.cta-band .btn-light {
    background: var(--brand);
    color: var(--paper);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 32px;
    height: auto;
}

.cta-band .btn-light:hover {
    background: var(--brand-dark);
}

.cta-band .btn-light:focus-visible {
    outline: 3px solid var(--paper);
    outline-offset: 3px;
}

.cta-band .cta-alt {
    display: block;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #C9C4C4;
}

.cta-band .cta-alt a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cta-band .cta-alt a:hover,
.cta-band .cta-alt a:focus-visible {
    color: #FF8A33;
    text-decoration-thickness: 2px;
    outline: none;
}

@media (max-width: 860px) {
    .cta-band { padding: 48px 40px; }
    .cta-band .cta-band-title { font-size: 26px; }
    .cta-band p { font-size: 16px; }
}

/* ---------- Footer ---------- */

.site-footer-rich {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 28px;
    margin-top: 0;
    border-top: none;
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h3 {
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col a,
.footer-bottom a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-col a:hover,
.footer-bottom a:hover {
    color: var(--paper);
    text-decoration: none;
}

.footer-brand img {
    width: 200px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 340px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 22px;
}

.footer-bottom a { margin: 0; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Misc ---------- */

.inline-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.inline-link:hover { text-decoration: underline; }

.lead-in {
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 800px;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill-list span {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

.section-dark .pill-list span {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
}

/* Contact page */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.contact-info .card { margin-bottom: 20px; }
.contact-info .card a { color: var(--brand); font-weight: 700; text-decoration: none; font-size: 18px; }
.contact-info .card a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .site-nav { gap: 18px; }
    .site-nav a { font-size: 14px; }
    .header-actions .contact-number { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-band .container { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .stat:nth-child(2) { border-right: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        left: -20px;
        right: -20px;
        top: calc(100% + 14px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px;
        box-shadow: var(--shadow);
    }

    .site-nav.open { display: flex; }

    .site-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
    }

    .site-nav a.active { border-bottom-color: var(--line); color: var(--brand); }

    .page-hero .hero-title { font-size: 36px; }
    .hero-lede { font-size: 18px; }
    .page-hero-content { padding: 64px 0 56px; }
    .section { padding: 60px 0; }
    body.marketing .section-title { font-size: 28px; }
    body.marketing .split-content .section-title { font-size: 26px; }

    /* Customer pills: one swipeable row on small screens instead of a ragged wrap */
    .trusted-strip .container { padding: 0; }
    .trusted-label { padding: 0 20px; font-size: 12px; }
    .trusted-names {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 10px;
        padding: 4px 20px 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .trusted-names::-webkit-scrollbar { display: none; }
    .trusted-name { flex: 0 0 auto; white-space: nowrap; font-size: 14px; }

    .grid-2, .grid-3, .steps, .pricing-cards { grid-template-columns: 1fr; }
    .split, .split.reverse { flex-direction: column; gap: 32px; }
    .split + .split { margin-top: 64px; }
    .check-list.two-col { grid-template-columns: 1fr; }
    body.marketing .product-card img { height: 220px; }
    .cta-band .cta-band-title { font-size: 28px; }
}

@media (max-width: 560px) {
    .site-header .logo { width: 150px; }
    .btn-nav { padding: 9px 14px; font-size: 14px; }
    .stat-band .container { grid-template-columns: 1fr 1fr; }
    .stat { border-right: none; }
    .stat-number { font-size: 32px; }
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Homepage layout (Option A): proof band, timeline, featured case study
   ========================================================================== */

.proof-band {
    background: var(--grey);
    border-bottom: 1px solid var(--line);
    padding: 52px 0 48px;
}

/* Headline numbers: four across, large */
.proof-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.proof-stats .stat {
    text-align: center;
    padding: 0 12px;
    border-right: 1px solid rgba(35, 31, 32, 0.15);
}

.proof-stats .stat:last-child { border-right: none; }

.proof-stats .stat-number {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.proof-stats .stat-label {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
}

/* Trusted-by logo marquee: page width, heading kept */
.logo-band {
    padding: 40px 0 44px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
}

.logo-band .trusted-label {
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 1.4px;
    margin-bottom: 28px;
    padding: 0 20px;
}

.logo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 72px;
    width: max-content;
    padding: 6px 36px;
    animation: logo-scroll 45s linear infinite;
}

.logo-marquee:hover .logo-track { animation-play-state: paused; }

.logo-track img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* Stacked marks (A1 Organics, Veransa) need more height to stay legible */
.logo-track img.tall {
    height: 64px;
}

/* Text stand-in for a company with no usable logo file */
.logo-track .logo-text {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--muted);
    opacity: 0.85;
    white-space: nowrap;
}

@keyframes logo-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 32px 48px; }
    .logo-track .dup { display: none; }
    .logo-marquee { -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 1024px) {
    .proof-stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .proof-stats .stat:nth-child(2) { border-right: none; }
    .proof-stats .stat-number { font-size: 46px; }
}

@media (max-width: 560px) {
    .proof-stats .stat { border-right: none; }
    .proof-stats .stat-number { font-size: 40px; }
    .proof-stats .stat-label { font-size: 16px; }
    .logo-track { gap: 48px; }
    .logo-track img { height: 34px; max-width: 150px; }
    .logo-track img.tall { height: 50px; }
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.18);
}

.timeline-step {
    position: relative;
    padding-right: 24px;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--paper);
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 0 0 8px var(--dark);
}

.timeline-step .step-title {
    color: var(--paper);
    margin-bottom: 10px;
}

.timeline-step p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.timeline-more {
    text-align: center;
    margin-top: 44px;
}

/* Proven at scale: three equal plain white cards, orange only on metric and link */
.proven {
    padding-bottom: 64px;
}

.proven-header {
    margin-bottom: 40px;
}

.proof-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.proof-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E6E3E1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    padding: 30px;
}

.proof-card-metric {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.proof-card-label {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
}

.proof-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.3;
}

.proof-card-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 20px;
    flex: 1;
}

.proof-card-link {
    align-self: flex-start;
    color: var(--brand);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.proof-card-link:hover,
.proof-card-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1024px) {
    .proof-cards { grid-template-columns: 1fr; gap: 18px; }
    .proof-card { padding: 24px; }
    .proof-card-metric { font-size: 34px; }
}

@media (max-width: 860px) {
    .proof-band { padding: 36px 0; overflow: hidden; }
    .proof-band .container { padding: 0 20px; }
    .timeline { grid-template-columns: 1fr; gap: 28px; }
    .timeline::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
    .timeline-step { padding-left: 68px; padding-right: 0; }
    .timeline-marker { position: absolute; left: 0; top: 0; margin: 0; }
}


/* ==========================================================================
   Homepage: one white canvas. Sections separate by rules, labels, composition
   changes and two grid-breaking images, not by background fills.
   ========================================================================== */

body.marketing .section {
    padding: 72px 0;
}

body.marketing .section-rule .container {
    position: relative;
}

body.marketing .section-rule .container::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: -72px;
    height: 1px;
    background: var(--line);
}

/* Proof band on white, framed by content-width rules */
body.marketing .proof-band {
    background: var(--paper);
    border-bottom: none;
    padding: 72px 0 56px;
}

@media (max-width: 860px) {
    body.marketing .proof-band { padding: 44px 0 36px; }
}

/* Why Reotemp: the probe rises above and below its text block */
body.marketing .why-section {
    overflow: hidden;
}

body.marketing .split-media.breakout-up img {
    max-height: 620px;
    margin: -56px 0 -40px;
}

/* The dashboard sits partly outside the content width on the right */
body.marketing .split.reverse .split-media.bleed-right {
    flex: 1.15;
    margin-right: -120px;
}

body.marketing .split-media.bleed-right img {
    border-radius: 12px 0 0 12px;
}

/* Timeline on white */
body.marketing .timeline-section .timeline::before {
    background: var(--line);
}

body.marketing .timeline-section .timeline-marker {
    box-shadow: 0 0 0 8px var(--paper);
}

body.marketing .timeline-section .step-title {
    color: var(--ink);
}

body.marketing .timeline-section .timeline-step p {
    color: var(--ink-soft);
}

body.marketing .timeline-more.left {
    text-align: left;
    margin-top: 36px;
}

/* Tighter header rhythm inside the canvas */
body.marketing .section-header.left {
    margin-bottom: 40px;
}

body.marketing .proven {
    padding-bottom: 72px;
}

@media (max-width: 860px) {
    body.marketing .section { padding: 56px 0; }
    body.marketing .section-rule .container::before { top: -56px; }
    body.marketing .split-media.breakout-up img { max-height: 380px; margin: 0; }
    body.marketing .split.reverse .split-media.bleed-right { margin-right: 0; flex: 1; }
    body.marketing .split-media.bleed-right img { border-radius: 12px; }
}


/* ==========================================================================
   Site-wide white canvas: former grey sections become white with a rule
   ========================================================================== */

body.marketing .section-alt {
    background: var(--paper);
}

body.marketing .section-alt .container {
    position: relative;
}

body.marketing .section-alt .container::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: -72px;
    height: 1px;
    background: var(--line);
}

body.marketing .section-alt .card,
body.marketing .section-alt .step,
body.marketing .section-alt .case-card,
body.marketing .section-alt .testimonial {
    border-color: #E6E3E1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

body.marketing .card,
body.marketing .step {
    border-color: #E6E3E1;
}

/* The stat band and pill strip on inner pages also sit on white */
body.marketing .stat-band {
    border-bottom: none;
}

body.marketing .stat-band .container {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* Legacy inner-page pill strip (compostwatch bottom, etc.) */
body.marketing .trusted-strip {
    background: var(--paper);
    border-bottom: none;
}

/* ---------- Tables: contrast and hierarchy ---------- */

.table-scroll {
    border: none;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(35, 31, 32, 0.08);
}

.compare-table,
.spec-table {
    font-size: 15.5px;
}

.compare-table thead th,
.spec-table thead th {
    background: var(--dark);
    color: var(--paper);
    font-size: 13px;
    letter-spacing: 1.2px;
    padding: 18px 22px;
    border-bottom: none;
}

.compare-table thead th:first-child {
    border-top-left-radius: 14px;
}

.compare-table thead th:last-child {
    border-top-right-radius: 14px;
}

.compare-table thead th.is-us {
    background: var(--dark);
    color: var(--paper);
    border-bottom: 4px solid var(--brand);
    vertical-align: middle;
}

.compare-table tbody th {
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    width: 18%;
    border-right: 1px solid var(--line);
}

.compare-table tbody tr:nth-child(even) td,
.compare-table tbody tr:nth-child(even) th {
    background: #FAFAFA;
}

.compare-table td {
    color: var(--ink-soft);
    padding: 18px 22px;
}

.compare-table td.is-us {
    background: #FFF4EC;
    color: var(--ink);
    font-weight: 600;
    border-left: 3px solid var(--brand);
}

.compare-table tbody tr:nth-child(even) td.is-us {
    background: #FFEEDF;
}

.compare-table td.neg {
    color: var(--muted);
}

/* Spec tables (single product): black header cells with white text */
.spec-table th {
    background: var(--dark);
    color: var(--paper);
    font-weight: 600;
    width: 30%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.spec-table tr:first-child th {
    border-top-left-radius: 14px;
}

.spec-table tr:last-child th {
    border-bottom-left-radius: 14px;
}

.spec-table td {
    color: var(--ink);
}

/* Two-product spec comparison on How It Works: same header, neutral columns */
.compare-table.spec-compare thead th {
    background: var(--dark);
}

/* Why Reotemp: the comparison is the page, give it room and weight */
.compare-hero {
    font-size: 16px;
}

.compare-hero thead th {
    font-size: 14px;
    padding: 22px 24px;
}

.compare-hero tbody th {
    font-size: 16px;
    width: 16%;
}

.compare-hero td {
    padding: 22px 24px;
    line-height: 1.55;
}

.compare-hero td.is-us {
    font-weight: 600;
    position: relative;
    padding-left: 48px;
}

.compare-hero td.is-us::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 26px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 12.5l3 3 7-7' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat;
}

@media (max-width: 860px) {
    body.marketing .section-alt .container::before { top: -56px; }
    .compare-hero td.is-us { padding-left: 44px; }
}


/* ---------- Terms & Conditions ---------- */

.legal-body {
    max-width: 820px;
    margin: 0 auto;
    color: var(--ink);
}

.legal-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 14px;
    color: var(--ink);
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.legal-body strong {
    color: var(--ink);
}

.legal-body hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 32px 0;
}

/* The hero already separates the title; no rule above the first heading */
.legal-body > hr:first-child {
    display: none;
}

.legal-body a {
    color: var(--brand);
}

.sticky-return-button a {
    border-radius: 999px;
}

/* Small qualifier under a table column heading */
.compare-table thead th .th-note {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.8;
}


/* ==========================================================================
   Emilio: the primary call to action. Card, CTA band variant, hero note link.
   ========================================================================== */

.hero-note-link {
    color: var(--paper);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 6px;
}

.emilio-card {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 32px;
    align-items: center;
    background: var(--paper);
    border: 1px solid #E6E3E1;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    padding: 28px 32px;
}

.emilio-photo {
    width: 160px;
    height: 160px;
    border-radius: 14px;
    object-fit: cover;
    object-position: top;
}

.emilio-body .eyebrow {
    margin-bottom: 6px;
}

.emilio-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.emilio-title {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 12px;
}

.emilio-contact a {
    display: block;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 4px;
}

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

.emilio-actions {
    display: flex;
    gap: 28px;
}

.emilio-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.emilio-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emilio-action:nth-child(2) .emilio-icon {
    background: var(--paper);
    color: var(--brand);
    border: 2px solid var(--brand);
}

.emilio-icon svg {
    width: 38px;
    height: 38px;
}

.emilio-action .btn {
    white-space: nowrap;
}

.emilio-wrap {
    margin-top: 36px;
}

/* Compact variant inside a pricing card */
.emilio-card.compact {
    grid-template-columns: 96px 1fr;
    gap: 20px;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-top: 8px;
}

.emilio-card.compact .emilio-photo {
    width: 96px;
    height: 96px;
}

.emilio-card.compact .emilio-name {
    font-size: 20px;
}

.emilio-card.compact .emilio-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 12px;
}

.emilio-card.compact .emilio-icon {
    display: none;
}

/* Closing CTA with Emilio */
.cta-band .cta-emilio {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    max-width: 960px;
}

.cta-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 4px solid rgba(255, 255, 255, 0.12);
}

.cta-band .cta-emilio p {
    margin-left: 0;
    max-width: 640px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-band .btn-outline-light {
    border-radius: 25px;
    padding: 13px 32px;
    font-size: 16px;
    height: auto;
}

/* Why Reotemp: Reotemp column on the left */
.compare-table.us-left thead th.is-us {
    padding: 14px 24px;
}

.th-logo {
    width: 170px;
    display: block;
}

.compare-table.us-left tbody th {
    border-right: 1px solid var(--line);
}

.compare-table.us-left td.is-us {
    border-left: none;
    border-right: 3px solid var(--brand);
}

/* How It Works: benefits grid */
.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 56px;
}

.benefit {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 22px;
    align-items: start;
}

.benefit-icon {
    grid-row: 1 / span 2;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--brand);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
}

.benefit-title {
    grid-column: 2;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-text {
    grid-column: 2;
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 15.5px;
}

@media (max-width: 1024px) {
    .site-nav { gap: 14px; }
    .site-nav a { font-size: 13.5px; }
    .emilio-card { grid-template-columns: 120px 1fr; }
    .emilio-photo { width: 120px; height: 120px; }
    .emilio-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 860px) {
    .benefits { grid-template-columns: 1fr; gap: 28px; }
    .cta-band .cta-emilio { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 20px; }
    .cta-actions { justify-content: center; }
    .emilio-card { grid-template-columns: 1fr; padding: 22px; text-align: center; justify-items: center; }
    .emilio-actions { justify-content: center; gap: 20px; }
    .emilio-card.compact { grid-template-columns: 1fr; }
    .emilio-card.compact .emilio-actions { justify-content: center; }
    .th-logo { width: 110px; }
}


/* ---------- Header width safety ---------- */

/* The page must never scroll sideways because of a bleed image or a wide header */
body.marketing,
body.marketing main {
    overflow-x: hidden;
}

/* Tighten the nav before it can overflow the 1200px container */
@media (max-width: 1500px) {
    .site-nav { gap: 18px; }
    .site-nav a { font-size: 14px; }
    .header-actions { gap: 12px; }
    .header-actions .contact-number { display: none; }
}

@media (max-width: 1280px) {
    .site-nav { gap: 14px; }
    .site-nav a { font-size: 13.5px; }
    .btn-nav { padding: 9px 14px; font-size: 14px; }
    .site-header .logo { width: 160px; }
}

/* Collapse the nav into the hamburger below 1180px, before it can crowd the header */
@media (max-width: 1180px) {
    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        left: -20px;
        right: -20px;
        top: calc(100% + 14px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px;
        box-shadow: var(--shadow);
    }

    .site-nav.open { display: flex; }

    .site-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        font-size: 16px;
    }

    .site-nav a.active { border-bottom-color: var(--line); color: var(--brand); }
    .header-actions .contact-number { display: inline; }
    .site-header .logo { width: 170px; }
}

/* Base header sizing so eight links, the phone and the button fit inside 1200px */
/* The header gets a wider container than the page so the nav can breathe */
.site-header .header-container { max-width: 1340px; gap: 48px; }
.site-header .logo { width: 170px; }
.site-nav { gap: 26px; min-width: 0; }
.site-nav a { font-size: 14.5px; }
.header-actions { gap: 22px; }
.header-actions .contact-number { font-size: 14.5px; }
.btn-nav { padding: 10px 18px; font-size: 14px; }

@media (max-width: 1400px) {
    .site-header .header-container { gap: 32px; }
    .header-actions .contact-number { display: none; }
}

/* ==========================================================================
   Mobile header and menu
   ========================================================================== */

.nav-extra { display: none; }

@media (max-width: 1180px) {
    /* Header row must fit a phone: smaller logo, compact button, toggle always visible */
    .site-header { padding: 10px 0; }
    .site-header .header-container { gap: 12px; }
    .site-header .logo { width: 150px; }
    .header-actions { gap: 10px; }
    .btn-nav { padding: 9px 14px; font-size: 13.5px; }

    /* Menu panel */
    .site-header .site-nav {
        gap: 0;
        left: 0;
        right: 0;
        top: 100%;
        padding: 8px 0 16px;
        border-top: 1px solid var(--line);
        border-bottom: none;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 16px 32px rgba(35, 31, 32, 0.12);
    }

    .site-header .site-nav a {
        display: block;
        padding: 13px 24px;
        border-bottom: none;
        font-size: 16px;
        font-weight: 600;
        color: var(--ink);
        border-radius: 0;
        line-height: 1.3;
    }

    .site-nav a:hover { background: var(--paper-alt); }
    .site-nav a.active { color: var(--brand); border-bottom: none; }

    .nav-extra {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 12px;
        padding: 14px 24px 4px;
        margin-top: 8px;
        border-top: 1px solid var(--line);
    }

    .site-header .site-nav .nav-extra .btn {
        display: inline-flex;
        padding: 10px 18px;
        font-size: 14px;
        height: auto;
        border-radius: 999px;
    }

    .site-header .site-nav .nav-extra .btn-primary { color: var(--paper); }
    .site-header .site-nav .nav-extra .btn-outline { border: 1.5px solid var(--ink); }
    .site-header .site-nav .nav-extra .btn-outline:hover { background: var(--ink); color: var(--paper); }

    .site-header .site-nav .nav-extra .nav-phone {
        flex-basis: 100%;
        padding: 8px 0 0;
        font-size: 14px;
        font-weight: 600;
        color: var(--ink-soft);
    }

    .site-header .site-nav .nav-extra .nav-phone:hover { background: none; color: var(--brand); }

    /* Toggle turns into a close mark when the menu is open */
    .nav-toggle[aria-expanded="true"] span { background: transparent; }
    .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
    .nav-toggle span::before, .nav-toggle span::after { transition: transform 0.2s ease, top 0.2s ease; transform-origin: 50% 50%; }
}

@media (max-width: 520px) {
    /* The hero button is one scroll below; the header button would not fit */
    .site-header .btn-nav { display: none; }
    .site-header .logo { width: 150px; }
    .site-header .header-container { gap: 16px; }
}
