/* ==================================================================
   CM Interactive shared stylesheet
   Linked by index.html and analytics-for-manufacturing.html.
   Edit here once rather than in each page, or the two will drift.
   Deploy to /css/site.css
   ================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ---- Original CM Interactive palette, unchanged ---- */
    --primary: #50C878;
    --primary-light: #6FD492;
    --primary-dark: #2A7F4F;
    --primary-deep: #1E6039;

    --secondary: #2B2B2B;
    --surface-dark: #383838;
    --accent: #D4AF37;

    --background: #F9F9F9;
    --white: #FFFFFF;
    --text-dark: #2B2B2B;
    --text-mid: #5A5A5A;
    --text-light: #6E6E6E;
    --border: #E5E5E5;
    --muted-on-dark: #AAAAAA;
    --text-on-dark-muted: #AAAAAA;

    /* Tinted panel, so a light section can carry brand colour
       without shouting. Used between the white sections. */
    --mint: #EDF9F1;

    /* ---- Shape ----
       Large radii and pill buttons are the single biggest reason
       a page reads as modern consumer rather than corporate. */
    --r-card: 24px;
    --r-inner: 16px;
    --r-pill: 999px;

    --page-pad: 22px;
    --shadow-card: 0 2px 4px rgba(43, 43, 43, 0.04), 0 12px 32px rgba(43, 43, 43, 0.06);
    --shadow-lift: 0 4px 8px rgba(43, 43, 43, 0.06), 0 20px 44px rgba(43, 43, 43, 0.10);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ledger-value,
.stat-number {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 20px;
    z-index: 10001;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus { left: 0; }


/* Default for links in body copy. Components that set their own colour
   (buttons, nav, footer, breadcrumb) are unaffected. */
main a:not([class]) {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

main a:not([class]):hover { color: var(--secondary); }

/* On dark and green panels the same link needs the light treatment. */
.section-dark a:not([class]),
.section-green a:not([class]),
.page-hero a:not([class]),
.hero a:not([class]) {
    color: var(--white);
}

.section-dark a:not([class]):hover,
.section-green a:not([class]):hover,
.page-hero a:not([class]):hover,
.hero a:not([class]):hover {
    color: var(--primary);
}

/* ===============================================================
   NAV
   =============================================================== */
/* Scoped to .site-nav, NOT the bare nav element. The breadcrumb is
   also a <nav>, and a bare selector here gave it the sticky white
   header background with white breadcrumb text on top of it. */
.site-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0 var(--page-pad);
}

.navbar-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    min-width: 0;
}

.logo:hover { opacity: 0.72; }

.logo-image {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    gap: 6px;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.nav-links {
    display: none;
    gap: 26px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--text-dark); }
.nav-links a.active { color: var(--text-dark); }

.nav-links a.nav-cta {
    background: var(--secondary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--r-pill);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-links a.nav-cta:hover {
    background: #1A1A1A;
    color: var(--white);
    transform: translateY(-1px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    list-style: none;
    padding: 12px 0 20px;
    box-shadow: 0 12px 24px rgba(43, 43, 43, 0.10);
    z-index: 999;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    display: block;
    padding: 15px var(--page-pad);
    font-size: 17px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--primary-dark);
    background: var(--mint);
}

.mobile-menu .menu-cta {
    margin: 12px var(--page-pad) 0;
    padding: 15px 24px;
    background: var(--secondary);
    color: var(--white);
    border-radius: var(--r-pill);
    text-align: center;
}

.mobile-menu .menu-cta:hover {
    background: #1A1A1A;
    color: var(--white);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--page-pad);
}

/* ===============================================================
   BUTTONS
   Pills. Large touch targets. Colour carries hierarchy, not size.
   =============================================================== */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--secondary);
    border: 2px solid var(--primary);
    padding: 17px 34px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    border-radius: var(--r-pill);
    text-align: center;
    text-decoration: none;
    max-width: 100%;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--secondary);
    transform: translateY(-2px);
}

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

.btn-ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-dark {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.btn-dark:hover {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: var(--white);
}

.btn-white {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary-dark);
}

.btn-white:hover {
    background: #F1F1F1;
    border-color: #F1F1F1;
    color: var(--primary-dark);
}

.cta-reassure {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 16px;
}

.on-dark .cta-reassure { color: var(--muted-on-dark); }

/* ===============================================================
   HERO
   One orchestrated entrance on load, nothing else animates
   on scroll anywhere on the page.
   =============================================================== */
.hero {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 76px;
    position: relative;
    overflow: hidden;
}

/* Soft green bloom behind the card, so the charcoal block is not
   flat. Purely atmospheric, sits under everything. */
.hero::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -160px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(80, 200, 120, 0.20) 0%, rgba(80, 200, 120, 0) 68%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    background: rgba(80, 200, 120, 0.16);
    color: var(--primary);
    border-radius: var(--r-pill);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(38px, 9.4vw, 68px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    overflow-wrap: break-word;
}

.hero-lede {
    font-size: clamp(17px, 4.4vw, 21px);
    color: #D2D2D2;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 30ch;
}

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

/* The ledger card. Three systems, three answers, one agreed
   figure. This is the one place the page raises its voice. */
.ledger {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 26px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    color: var(--text-dark);
}

.ledger-caption {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.ledger-source {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-mid);
    min-width: 0;
}

.ledger-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.ledger-flag {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 9px;
    vertical-align: 1px;
}

.ledger-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 18px 18px;
    background: var(--mint);
    border-radius: var(--r-inner);
}

.ledger-total .ledger-source {
    color: var(--primary-dark);
    font-weight: 700;
}

.ledger-total .ledger-value {
    color: var(--primary-dark);
    font-size: 24px;
}

.ledger-foot {
    font-size: 13.5px;
    color: var(--text-light);
    margin-top: 16px;
    line-height: 1.55;
}

/* ===============================================================
   SECTION FURNITURE
   =============================================================== */
.section { padding: 68px 0; }

.section-white { background: var(--white); }
.section-grey  { background: var(--background); }
.section-mint  { background: var(--mint); }

.section-green {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
    color: var(--white);
}

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

.section-head {
    max-width: 620px;
    margin-bottom: 44px;
}

.section-head.centred {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(30px, 7vw, 46px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-head p {
    font-size: clamp(16.5px, 4.2vw, 19px);
    color: var(--text-mid);
    line-height: 1.55;
}

.section-green .section-head p,
.section-dark .section-head p {
    color: rgba(255, 255, 255, 0.86);
}

/* ===============================================================
   STAT BAND
   =============================================================== */
.stat-band {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 44px 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.stat-number {
    font-size: clamp(34px, 9vw, 46px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.5;
    max-width: 28ch;
}

/* ===============================================================
   PROBLEM CARDS
   =============================================================== */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.problem-card {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.problem-card h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.problem-card p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.6;
}

.section-note {
    margin-top: 34px;
    font-size: clamp(17px, 4.2vw, 20px);
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 60ch;
    font-weight: 500;
}

.section-note a {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ===============================================================
   OUTCOMES (green block)
   =============================================================== */
.outcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.outcome-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r-card);
    padding: 30px 26px;
}

.outcome-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: var(--secondary);
    background: var(--primary);
    border-radius: var(--r-pill);
    padding: 6px 14px;
    margin-bottom: 16px;
}

.outcome-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 11px;
}

.outcome-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

/* ===============================================================
   SERVICES
   =============================================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.service-card {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 30px 26px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.service-card h3 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 16.5px;
    color: var(--text-mid);
    line-height: 1.6;
}

.service-plain {
    margin-top: 18px;
    padding: 12px 16px;
    background: var(--background);
    border-radius: var(--r-inner);
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===============================================================
   STEPS
   =============================================================== */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    list-style: none;
}

.step-card {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.6;
}

.step-out {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 15px;
    color: var(--primary-dark);
    font-weight: 700;
}

/* ===============================================================
   FAQ
   =============================================================== */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--r-inner);
    box-shadow: var(--shadow-card);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 24px 56px 24px 26px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.015em;
    position: relative;
    list-style: none;
}

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

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 26px;
    top: 30px;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--text-light);
    border-bottom: 2.5px solid var(--text-light);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
    top: 34px;
}

.faq-answer {
    padding: 0 26px 26px;
    font-size: 16.5px;
    color: var(--text-mid);
    line-height: 1.65;
    max-width: 66ch;
}

.faq-answer a {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ===============================================================
   SAMPLE WORK
   A demonstration build on invented data, not client work. The
   labelling in the markup says so plainly and must stay that
   way until there is a real case study to replace it with.
   =============================================================== */
.sample-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--primary-dark);
    background: var(--mint);
    border-radius: var(--r-pill);
    padding: 7px 15px;
    margin-bottom: 18px;
}

/* Source systems, warehouse, reporting. Stacks on phones,
   runs left to right from tablet up. */
.flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 22px;
}

.flow-stage {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 24px 22px;
    box-shadow: var(--shadow-card);
}

.flow-stage-label {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 14px;
}

.flow-chip {
    display: block;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--r-inner);
    padding: 11px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 9px;
}

.flow-chip:last-child { margin-bottom: 0; }

.flow-stage.is-warehouse {
    background: var(--secondary);
    color: var(--white);
}

.flow-stage.is-warehouse .flow-stage-label { color: var(--primary); }

.flow-stage.is-warehouse .flow-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}

.flow-stage.is-output {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
    color: var(--white);
}

.flow-stage.is-output .flow-stage-label { color: rgba(255, 255, 255, 0.8); }

.flow-stage.is-output .flow-chip {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.sample-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
}

.sample-card {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 26px 24px;
    box-shadow: var(--shadow-card);
}

.sample-card h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.sample-card p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.6;
}

.sample-actions {
    margin-top: 34px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.sample-disclaimer {
    margin-top: 20px;
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 62ch;
}

/* ===============================================================
   CLOSING CTA
   =============================================================== */
.closing { text-align: center; }

.closing h2 {
    font-size: clamp(32px, 8vw, 54px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
}

.closing > .container > p {
    font-size: clamp(17px, 4.2vw, 20px);
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
    max-width: 48ch;
    margin: 0 auto 32px;
}

.closing-list {
    list-style: none;
    max-width: 400px;
    margin: 0 auto 36px;
    text-align: left;
}

.closing-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 13px;
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.5;
}

.closing-list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 8px;
    width: 14px;
    height: 7px;
    border-left: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    transform: rotate(-45deg);
}

/* ===============================================================
   CONTACT
   =============================================================== */
.contact { padding: 68px 0; background: var(--background); }

.contact-intro {
    max-width: 620px;
    margin: 0 auto 36px;
    text-align: center;
}

.contact-intro h2 {
    font-size: clamp(27px, 6.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.contact-intro p {
    font-size: 17px;
    color: var(--text-mid);
}

.contact-content {
    max-width: 620px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 32px 24px;
    box-shadow: var(--shadow-card);
    min-width: 0;
}

.contact-badge {
    display: inline-block;
    padding: 7px 15px;
    border-radius: var(--r-pill);
    background: var(--mint);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-card > p {
    color: var(--text-mid);
    margin-bottom: 26px;
    font-size: 16px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--r-inner);
    color: var(--text-dark);
    padding: 15px 16px;
    font-size: 16px; /* 16px stops iOS Safari auto-zooming on focus */
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: var(--primary);
    background: var(--white);
}

.contact-card input::placeholder,
.contact-card textarea::placeholder { color: #9A9A9A; }

.contact-card label {
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
    font-size: 14.5px;
}

.form-row { margin-bottom: 20px; }

.recaptcha-wrapper {
    margin: 24px 0;
    max-width: 100%;
    overflow: hidden;
}

.verification-box {
    color: var(--text-light);
    font-size: 13.5px;
    margin-bottom: 12px;
}

.form-status {
    margin-top: 16px;
    font-size: 14.5px;
    font-weight: 700;
    min-height: 22px;
}

.form-status.error { color: #B3261E; }
.form-status.success { color: var(--primary-dark); }

/* The reCAPTCHA iframe is a fixed 304px wide and cannot be
   restyled. Scale it proportionally on narrow screens, then trim
   the reserved height so the transform does not leave a gap. */
@media (max-width: 400px) {
    .contact-card { padding: 28px 18px; }
    .g-recaptcha { transform: scale(0.82); transform-origin: 0 0; }
    .recaptcha-wrapper { height: calc(78px * 0.82 + 42px); }
}

@media (max-width: 340px) {
    .g-recaptcha { transform: scale(0.72); }
    .recaptcha-wrapper { height: calc(78px * 0.72 + 42px); }
}

/* ===============================================================
   STICKY MOBILE CTA
   =============================================================== */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 12px var(--page-pad);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 900;
    display: none;
}

.mobile-cta-bar.visible { display: block; }
.mobile-cta-bar .btn { width: 100%; padding: 16px 20px; }

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    padding: 20px var(--page-pad);
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner.hidden { display: none; }

.cookie-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.cookie-text { flex: 1; }
.cookie-text p { margin: 0; color: #CCCCCC; }

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.cookie-text a:hover { text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.cookie-btn {
    padding: 12px 18px;
    border: none;
    border-radius: var(--r-pill);
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex: 1;
    min-height: 46px;
}

.cookie-btn.accept {
    background: var(--primary);
    color: var(--secondary);
}

.cookie-btn.accept:hover { background: var(--primary-light); }

.cookie-btn.decline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===============================================================
   FOOTER
   =============================================================== */
footer {
    padding: 56px 0 40px;
    background: var(--white);
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 44px;
}

.footer-section { text-align: left; }

.footer-section h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.footer-blurb {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 32ch;
}

.footer-logo {
    display: block;
    margin-bottom: 16px;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.footer-logo:hover { opacity: 0.8; }

.footer-logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }

.footer-links a {
    color: var(--text-mid);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 13.5px;
    color: var(--text-light);
    margin: 8px 0;
}

/* ===============================================================
   HERO ENTRANCE
   The page's only load animation. Everything else is static.
   =============================================================== */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rise {
    opacity: 0;
    animation: riseIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.14s; }
.rise-3 { animation-delay: 0.23s; }
.rise-4 { animation-delay: 0.34s; }

/* Tablet (768px) */
@media (min-width: 768px) {
    :root { --page-pad: 32px; }

    .hamburger, .mobile-menu { display: none !important; }
    .nav-links { display: flex !important; }
    .mobile-cta-bar { display: none !important; }

    .hero { padding: 96px 0 112px; }
    .hero-grid { grid-template-columns: 1.06fr 0.94fr; gap: 60px; }
    .hero-lede { max-width: 34ch; }
    .ledger { padding: 34px 30px; }

    .section { padding: 104px 0; }
    .contact { padding: 104px 0; }
    .stat-band { padding: 60px 0; }

    .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .problem-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .outcome-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .steps { grid-template-columns: 1fr 1fr; gap: 20px; }
    .sample-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .flow { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

    .contact-card { padding: 44px 40px; }

    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 26px;
    }

    .cookie-actions { width: auto; }
    .cookie-btn { flex: initial; padding: 12px 24px; }

    .footer-content { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
    :root { --page-pad: 40px; }
    .problem-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .rise {
        opacity: 1;
        animation: none;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .btn:hover,
    .problem-card:hover,
    .service-card:hover,
    .nav-links a.nav-cta:hover { transform: none; }
}

/* ==================================================================
   INTERIOR PAGE COMPONENTS
   Used by analytics-for-manufacturing.html. Kept here so both pages
   share one source of truth for colour, radius and spacing.
   ================================================================== */

/* Breadcrumb, sits above the interior page heading */
.crumbs {
    font-size: 14px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.crumbs a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 600;
}

.crumbs a:hover { color: var(--white); }

.crumbs span { margin: 0 8px; }

/* Interior hero. Shorter than the homepage hero and single column,
   so the page gets to its content faster. */
.page-hero {
    background: var(--secondary);
    color: var(--white);
    padding: 48px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    top: -220px;
    right: -180px;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(80, 200, 120, 0.18) 0%, rgba(80, 200, 120, 0) 68%);
    pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
    font-size: clamp(34px, 8.4vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    max-width: 18ch;
    overflow-wrap: break-word;
}

.page-hero .hero-lede {
    max-width: 52ch;
    margin-bottom: 30px;
}

/* Metric list. The specific numbers manufacturers ask us for. */
.metric-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    overflow: hidden;
    list-style: none;
}

.metric-list li {
    background: var(--white);
    padding: 24px 24px;
}

.metric-list h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 7px;
}

.metric-list p {
    font-size: 15.5px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* Two column prose block with a supporting card beside it */
.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

.split-body p {
    font-size: 17px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 16px;
}

.split-body p:last-child { margin-bottom: 0; }

.split-body strong { color: var(--text-dark); font-weight: 700; }

.aside-card {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
}

.aside-card h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
}

.tick-list { list-style: none; }

.tick-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 13px;
    font-size: 15.5px;
    color: var(--text-mid);
    line-height: 1.55;
}

.tick-list li:last-child { margin-bottom: 0; }

.tick-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 13px;
    height: 6.5px;
    border-left: 2.5px solid var(--primary-dark);
    border-bottom: 2.5px solid var(--primary-dark);
    transform: rotate(-45deg);
}

/* Stack of tool chips, for the platform section */
.stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.stack-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r-card);
    padding: 26px 24px;
}

.stack-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.015em;
    margin-bottom: 9px;
}

.stack-card p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

/* Callout band that points at another page */
.callout {
    background: var(--white);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    padding: 32px 26px;
    text-align: center;
}

.callout h2 {
    font-size: clamp(24px, 5.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.callout p {
    font-size: 17px;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 54ch;
    margin: 0 auto 26px;
}

@media (min-width: 768px) {
    .page-hero { padding: 68px 0 88px; }
    .metric-list { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1.25fr 0.75fr; gap: 48px; }
    .stack-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .callout { padding: 52px 44px; }
}

@media (min-width: 1024px) {
    .metric-list { grid-template-columns: repeat(3, 1fr); }
}
