    :root {
      --bg: #f3f2f1;
      --surface: #ffffff;
      --ink: #0b0c0c;
      --text: #0b0c0c;
      --muted: #505a5f;
      --line: #b1b4b6;
      --orange: #F97316;
      --orange-dark: #C2410C;
      --orange-light: #fdf0e6;
      --blue: #1d70b8;
      --blue-light: #e8f1f8;
      --navy: #0b1f4d;
      --grey-bg: #f3f2f1;
      --shadow: none;
      --radius: 12px;
    }
    
    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
      background: var(--bg);
      color: var(--ink);
      line-height: 1.6;
    }

    a { color: inherit; text-decoration: none; }
    
    .wrap {
      width: min(1160px, calc(100% - 2rem));
      margin: 0 auto;
    }

    /* Nav */
    nav {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(12px);
      background: rgba(255, 255, 255, 0.95);
      border-bottom: 1px solid var(--line);
    }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 0;
      gap: 2rem;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      font-weight: 700;
      font-size: 1.1rem;
      letter-spacing: -0.01em;
    }

    .logo-mark {
      width: 32px;
      height: 32px;
      border-radius: 0;
      background: linear-gradient(135deg, var(--orange), #ea580c);
      display: grid;
      place-items: center;
      color: white;
      font-size: 1.1rem;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.75rem;
    }

    .nav-links a {
      font-size: 0.95rem;
      color: var(--text);
      font-weight: 500;
      transition: color 0.2s;
    }

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

    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }

    /* Buttons */
    .btn {
      display: inline-block;
      padding: 0.85rem 1.5rem;
      border-radius: 0;
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
    }

    .btn-primary {
      background: var(--orange);
      color: var(--navy);
    }

    .btn-primary:hover {
      background: #fb923c;
      transform: translateY(-1px);
      box-shadow: none;
    }

    .btn-secondary {
      background: transparent;
      color: var(--blue);
      border: 2px solid var(--blue);
    }

    .btn-secondary:hover {
      background: var(--blue-light);
    }

    .btn-white {
      background: white;
      color: var(--navy);
    }

    .btn-white:hover {
      transform: translateY(-1px);
      box-shadow: none;
    }

    /* Sections */
    section { padding: 4rem 0; }

    .section-white { background: white; }
    .section-grey { background: var(--grey-bg); }
    .section-navy { background: var(--navy); color: white; }
    .section-orange { background: var(--orange); color: var(--navy); }
    .section-blue-light { background: var(--blue-light); }

    .section-head {
      max-width: 720px;
      margin-bottom: 2.5rem;
    }

    .section-head h2 {
      font-size: clamp(1.8rem, 3vw, 2.4rem);
      letter-spacing: -0.02em;
      margin-bottom: 0.75rem;
      line-height: 1.15;
    }

    .section-head p { 
      color: var(--text);
      font-size: 1.05rem;
      line-height: 1.65;
    }

    .section-navy .section-head p,
    .section-orange .section-head p {
      color: var(--navy);
    }

    h1 {
      font-size: clamp(2.2rem, 5vw, 3.2rem);
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-bottom: 1.25rem;
      color: var(--ink);
    }

    h2 {
      font-size: clamp(1.8rem, 3vw, 2.4rem);
      letter-spacing: -0.02em;
      margin-bottom: 0.75rem;
      line-height: 1.15;
    }

    h3 {
      font-size: 1.15rem;
      margin-bottom: 0.5rem;
      font-weight: 600;
    }

    p {
      font-size: 1.05rem;
      line-height: 1.65;
      color: var(--text);
      margin-bottom: 1rem;
    }

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

    .lead {
      font-size: 1.15rem;
      color: var(--text);
      margin-bottom: 1.5rem;
      line-height: 1.7;
    }

    /* Hero */
    .hero {
      padding: 3rem 0 4rem;
      background: white;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 3rem;
      align-items: center;
    }

    .hero-checks {
      list-style: none;
      margin: 1.5rem 0 2rem;
    }

    .hero-checks li {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      margin-bottom: 0.75rem;
      font-size: 1rem;
      color: var(--text);
    }

    .hero-checks li::before {
      content: "✓";
      color: var(--orange);
      font-weight: 700;
      font-size: 1.2rem;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem;
      margin-bottom: 2rem;
    }

    .hero-image {
      position: relative;
      border-radius: 0;
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 1px solid var(--line);
    }

    .hero-image img {
      width: 100%;
      height: auto;
      display: block;
    }

    .experience-strip {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-top: 2.5rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--line);
    }

    .experience-label {
      color: var(--muted);
      font-size: 0.9rem;
      font-weight: 500;
      white-space: nowrap;
    }

    .experience-items {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      font-size: 0.9rem;
      color: var(--text);
    }

    .experience-items span {
      white-space: nowrap;
    }

    .experience-items span:not(:last-child)::after {
      content: " ·";
      margin-left: 0.5rem;
      color: var(--muted);
    }

    /* Problem cards */
    .problem-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;
    }

    .problem-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 0;
      padding: 1.75rem;
    }

    .problem-icon {
      width: 56px;
      height: 56px;
      border-radius: 0;
      background: var(--orange-light);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      margin-bottom: 1.25rem;
    }

    .stat-card {
      background: var(--orange-light);
      border: 2px solid #fed7aa;
    }

    .stat-card .big-number {
      font-size: 4rem;
      font-weight: 800;
      color: var(--orange-dark);
      line-height: 1;
      margin-bottom: 0.75rem;
    }

    .stat-card p {
      font-size: 1rem;
      margin-bottom: 0.5rem;
    }

    .stat-source {
      font-size: 0.85rem;
      color: var(--muted);
      font-style: italic;
    }

    .stat-source a {
      color: #c2410c;
      text-decoration: underline;
    }

    /* Timeline */
    .timeline {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1.5rem;
      position: relative;
      margin-top: 3rem;
    }

    .timeline::before {
      content: "";
      position: absolute;
      top: 29px;
      left: 10%;
      right: 10%;
      height: 4px;
      background: #d2e2f1;
      z-index: 0;
    }

    .timeline-step {
      text-align: center;
      position: relative;
      z-index: 1;
    }

    .step-number {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: var(--blue);
      color: white;
      font-weight: 800;
      font-size: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1rem;
    }

    .step-title {
      font-size: 1.05rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--ink);
    }

    .step-desc {
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.5;
    }

    .mapbridge-badge {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: none;
      letter-spacing: 0.03em;
      color: var(--orange-dark);
      background: var(--orange-light);
      border: 1px solid #fed7aa;
      border-radius: 0;
      padding: 0.3rem 0.75rem;
      margin-top: 0.5rem;
    }

    .timeline-cta {
      text-align: center;
      margin-top: 2.5rem;
    }

    .timeline-cta a {
      color: var(--blue);
      font-weight: 600;
      font-size: 1.05rem;
    }

    .timeline-cta a:hover {
      text-decoration: underline;
    }

    /* Case study */
    .case-study-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
    }

    .case-label {
      color: #d2e2f1;
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: none;
      letter-spacing: 0.05em;
      margin-bottom: 1rem;
    }

    .section-navy h2 {
      color: white;
    }

    .case-numbers {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      margin: 2rem 0;
    }

    .case-number .big-number {
      font-size: 3.5rem;
      font-weight: 800;
      color: var(--orange);
      line-height: 1;
      margin-bottom: 0.5rem;
    }

    .case-number p {
      font-size: 0.95rem;
      color: rgba(255, 255, 255, 0.9);
    }

    .case-quote {
      font-style: italic;
      font-size: 1.05rem;
      color: rgba(255, 255, 255, 0.95);
      margin: 1.5rem 0;
      line-height: 1.7;
    }

    .case-link {
      color: #d2e2f1;
      font-weight: 600;
      font-size: 1.05rem;
    }

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

    .case-timeline {
      background: #003078;
      border: 2px solid #5694ca;
      border-radius: 0;
      padding: 2.5rem;
      position: relative;
    }

    /* CTA band */
    .cta-band {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
    }

    .cta-band h2 {
      color: var(--navy);
      margin-bottom: 0.5rem;
    }

    .cta-band p {
      color: var(--navy);
      font-size: 1rem;
    }

    /* MapBridge section */
    .mapbridge-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 2.5rem;
      align-items: center;
      margin-top: 2.5rem;
    }

    .mapbridge-screenshot {
      border-radius: 0;
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 1px solid var(--line);
    }

    .mapbridge-screenshot img {
      width: 100%;
      height: auto;
      display: block;
    }

    .feature-cards {
      display: grid;
      gap: 1rem;
    }

    .feature-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 0;
      padding: 1.25rem;
    }

    .feature-card h3 {
      font-size: 1rem;
      font-weight: 600;
      color: var(--ink);
    }

    .feature-status {
      margin-top: 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--line);
    }

    .feature-status p {
      font-size: 0.95rem;
    }

    .feature-status strong {
      font-weight: 600;
      color: var(--ink);
    }

    .feature-status span {
      color: var(--muted);
    }

    .feature-links {
      margin-top: 1.5rem;
    }

    .feature-links a {
      color: var(--blue);
      font-weight: 600;
      margin-right: 1.5rem;
    }

    .feature-links a:hover {
      text-decoration: underline;
    }

    /* Savings */
    .savings-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
    }

    .savings-chart {
      background: white;
      border: 1px solid var(--line);
      border-radius: 0;
      padding: 2rem;
    }

    .bar-group {
      margin-bottom: 2rem;
    }

    .bar-group:last-child {
      margin-bottom: 0;
    }

    .bar-label {
      font-weight: 600;
      margin-bottom: 0.75rem;
      color: var(--ink);
    }

    .bar {
      height: 32px;
      background: #b1b4b6;
      border-radius: 0;
      position: relative;
      margin-bottom: 0.5rem;
    }

    .bar-fill {
      position: absolute;
      top: 0;
      bottom: 0;
      background: linear-gradient(90deg, #fdba74, var(--orange));
      border-radius: 0;
    }

    .bar-range {
      font-size: 0.9rem;
      color: var(--muted);
    }

    .savings-note {
      font-size: 0.85rem;
      color: var(--muted);
      margin-top: 0.75rem;
    }

    .savings-note a {
      color: var(--blue);
      font-weight: 600;
    }

    /* Data flow */
    .data-flow {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      margin: 2.5rem 0;
    }

    .flow-box {
      flex: 1;
      background: white;
      border: 2px dashed #626a6e;
      border-radius: 0;
      padding: 1.5rem;
      text-align: center;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.5;
    }

    .flow-arrow {
      font-size: 2rem;
      color: var(--blue);
      font-weight: 800;
    }

    .flow-checks {
      margin-top: 1.5rem;
      font-size: 0.95rem;
    }

    .flow-checks span {
      margin-right: 1.5rem;
    }

    .flow-checks span::before {
      content: "✓";
      color: var(--blue);
      font-weight: 700;
      margin-right: 0.5rem;
    }

    .flow-link {
      margin-top: 1.5rem;
    }

    .flow-link a {
      color: var(--blue);
      font-weight: 600;
    }

    .flow-link a:hover {
      text-decoration: underline;
    }

    /* About */
    .about-grid {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 3rem;
      align-items: center;
    }

    .headshot {
      width: 280px;
      height: 280px;
      border-radius: 50%;
      background: var(--grey-bg);
      border: 3px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 4rem;
      font-weight: 700;
      color: var(--muted);
      object-fit: cover;
    }

    .about-bio h2 {
      margin-bottom: 1rem;
    }

    .credentials {
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .credential-box {
      background: var(--grey-bg);
      border: 1px solid var(--line);
      border-radius: 0;
      padding: 0.75rem 1.25rem;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text);
    }

    /* Project Cards */
    .project-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 0;
      padding: 2rem;
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .project-card:hover {
      transform: translateY(-2px);
      box-shadow: none;
    }

    .project-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      line-height: 1;
    }

    .project-card h3 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      color: var(--ink);
    }

    .project-system {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--blue);
      margin-bottom: 0.75rem;
    }

    .project-desc {
      font-size: 0.95rem;
      color: var(--muted);
      margin-bottom: 1rem;
      line-height: 1.5;
    }

    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .tag {
      display: inline-block;
      background: var(--grey-bg);
      color: var(--text);
      font-size: 0.75rem;
      font-weight: 500;
      padding: 0.35rem 0.75rem;
      border-radius: 0;
      border: 1px solid var(--line);
    }

    /* FAQ */
    .faq-list {
      max-width: 820px;
    }

    details {
      border-bottom: 1px solid var(--line);
      padding: 1.25rem 0;
    }

    summary {
      font-weight: 600;
      font-size: 1.05rem;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      list-style: none;
    }

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

    summary::after {
      content: "+";
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--muted);
    }

    details[open] summary::after {
      content: "−";
    }

    details p {
      margin-top: 1rem;
      padding-right: 2rem;
    }

    /* Final CTA */
    .final-cta {
      text-align: center;
    }

    .final-cta h2 {
      color: white;
      margin-bottom: 0.75rem;
    }

    .final-cta > p {
      color: rgba(255, 255, 255, 0.95);
      font-size: 1.1rem;
      margin-bottom: 2.5rem;
    }

    .next-steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2.5rem;
      max-width: 920px;
      margin: 0 auto 2.5rem;
      text-align: left;
    }

    .next-step .step-num {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--orange);
      line-height: 1;
      margin-bottom: 0.75rem;
    }

    .next-step p {
      font-size: 0.95rem;
      color: rgba(255, 255, 255, 0.95);
    }

    .contact-options {
      margin-top: 1.5rem;
      font-size: 0.95rem;
      color: rgba(255, 255, 255, 0.9);
    }

    .contact-options a {
      color: #d2e2f1;
      font-weight: 600;
    }

    .contact-options a:hover {
      text-decoration: underline;
    }

    /* Footer */
    footer {
      background: white;
      border-top: 1px solid var(--line);
      padding: 2rem 0;
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
      color: var(--muted);
      font-size: 0.9rem;
    }

    .footer-links {
      display: flex;
      gap: 1.5rem;
    }

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

    /* Mobile */
    @media (max-width: 900px) {
      .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: none;
        transition: right 0.3s ease;
        z-index: 100;
      }
      
      .nav-links.active {
        right: 0;
      }
      
      .mobile-menu-btn {
        display: block;
        z-index: 101;
      }

      .hero-grid,
      .mapbridge-grid,
      .savings-grid,
      .case-study-grid,
      .about-grid {
        grid-template-columns: 1fr;
      }

      .timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .timeline::before {
        display: none;
      }

      .next-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
      }

      .case-numbers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .data-flow {
        flex-direction: column;
      }
    }

    /* Accessibility */
    .skip-link {
      position: absolute;
      left: -9999px;
      top: 0;
      background: var(--navy);
      color: white;
      padding: 0.75rem 1.25rem;
      border-radius: 0;
      font-weight: 600;
      z-index: 200;
    }

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

    [id] {
      scroll-margin-top: 6.5rem;
    }

    a:focus-visible,
    button:focus-visible,
    summary:focus-visible {
      outline: 3px solid var(--blue);
      outline-offset: 2px;
    }

    /* Case study summary and lesson */
    .nav-links a.btn-primary,
    .nav-links a.btn-primary:hover {
      color: var(--navy);
    }

    .section-navy .case-summary {
      color: rgba(255, 255, 255, 0.95);
      font-size: 1.05rem;
      line-height: 1.7;
      margin-top: 1rem;
    }

    .section-navy .case-lesson {
      color: rgba(255, 255, 255, 0.95);
      font-weight: 600;
      margin-bottom: 1.5rem;
    }

    /* Named proof card */
    .proof-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      align-items: center;
      background: var(--blue-light);
      border: 1px solid var(--line);
      border-radius: 0;
      padding: 2rem 2.5rem;
      margin: 0 0 2rem;
    }

    .proof-stat {
      display: flex;
      align-items: center;
      gap: 1.25rem;
    }

    .proof-stat .big-number {
      font-size: 3.5rem;
      font-weight: 800;
      color: var(--blue);
      line-height: 1;
    }

    .proof-stat p {
      color: var(--ink);
      font-weight: 600;
    }

    .proof-card blockquote p {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 0.35rem;
    }

    .proof-card figcaption {
      color: var(--text);
      font-size: 0.9rem;
    }

    /* Savings working */
    .savings-working {
      margin-top: 1rem;
    }

    .savings-working summary {
      color: var(--blue);
      font-weight: 600;
      cursor: pointer;
    }

    .savings-working p {
      color: var(--text);
      font-size: 0.95rem;
      margin-top: 0.75rem;
    }

    .flow-link a + a {
      margin-left: 1.5rem;
    }

    @media (max-width: 900px) {
      .cta-band {
        flex-direction: column;
        align-items: flex-start;
      }

      .proof-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
      }
    }

    /* Demo link under the hero buttons, and feature card body text */
    .hero-demo-link { margin-top: 0.9rem; }
    .hero-demo-link a { color: var(--blue); font-weight: 600; }
    .hero-demo-link a:hover { text-decoration: underline; }
    .feature-card p { margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted); }
    .mapbridge-video { max-width: 420px; width: 100%; justify-self: center; }

    /* Phones: the hidden slide-in menu sat off the right edge and made every page scroll sideways.
       Keep it out of the layout until it is opened. */
    @media (max-width: 900px) {
      .nav-links { right: 0; display: none; }
      .nav-links.active { display: flex; }
    }
    .footer-links { flex-wrap: wrap; }
    .dpo-two { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
    @media (max-width: 900px) { .dpo-two { grid-template-columns: 1fr; gap: 1.5rem; } }
    .dpo-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
    @media (max-width: 900px) { .dpo-three { grid-template-columns: 1fr; gap: 1.25rem; } }

/* MapBridge product page */
.mb-note { color: #505a5f; font-size: 0.92rem; margin-top: 0.75rem; }
.mb-steps { list-style: none; counter-reset: mb; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.mb-steps li { counter-increment: mb; background: #fff; border: 1px solid #b1b4b6; border-radius: 0; padding: 1.1rem 1rem; }
.mb-steps li::before { content: counter(mb); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #0b4a50; color: #fff; font-weight: 700; margin-bottom: 0.6rem; }
.mb-steps h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.mb-steps p { font-size: 0.93rem; color: #0b0c0c; margin: 0; }
.mb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.mb-two h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.mb-list { list-style: none; padding: 0; margin: 0; }
.mb-list li { padding: 0.6rem 0 0.6rem 1.6rem; border-bottom: 1px solid #b1b4b6; position: relative; }
.mb-list li::before { content: "✓"; position: absolute; left: 0; color: #00703c; font-weight: 700; }
.mb-muted li { color: #505a5f; }
.mb-muted li::before { content: "–"; color: #626a6e; }
.mb-shot { margin: 2.5rem 0 0; }
.mb-shot img { width: 100%; height: auto; border-radius: 0; border: 1px solid #b1b4b6; box-shadow: none; }
.mb-shot figcaption { color: #505a5f; font-size: 0.88rem; margin-top: 0.5rem; text-align: center; }
@media (max-width: 1000px) { .mb-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .mb-steps, .mb-two { grid-template-columns: 1fr; } .mb-two { gap: 2rem; } }

/* ==========================================================================
   GOV.UK Frontend patterns, Foam Works Digital / MapBridge brand
   Square corners, Arial, green action buttons, yellow focus, blue underlined
   links, and dark teal as the only brand colour. Not GOV.UK: no crown, no
   GDS Transport, no GOV.UK blue header.
   ========================================================================== */
:root {
  --bg: #ffffff; --surface: #ffffff; --ink: #0b0c0c; --text: #0b0c0c; --muted: #505a5f; --line: #b1b4b6;
  --orange: #0b4a50; --orange-dark: #08363b; --orange-light: #e3eff0;
  --navy: #0b4a50; --blue: #1d70b8; --blue-light: #f3f2f1; --grey-bg: #f3f2f1;
  --radius: 0; --shadow: none;
  --focus: #ffdd00; --link: #1d70b8; --link-hover: #003078;
}
body { font-size: 1.1875rem; line-height: 1.32; background: #fff; color: #0b0c0c; -webkit-font-smoothing: antialiased; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.04; font-weight: 700; letter-spacing: 0; }
h2 { font-weight: 700; letter-spacing: 0; }
h3 { font-weight: 700; }
.lead { font-size: 1.5rem; line-height: 1.25; color: #0b0c0c; }

/* Links in content: blue and underlined */
main p a, main li a, .feature-links a, footer a, .faq a, details a {
  color: var(--link); text-decoration: underline; text-decoration-thickness: max(1px, .0625rem); text-underline-offset: .1578em;
}
main p a:hover, main li a:hover, .feature-links a:hover, footer a:hover { color: var(--link-hover); text-decoration-thickness: max(3px, .1875rem); }
a:focus-visible, summary:focus-visible { outline: 3px solid transparent; background: var(--focus) !important; color: #0b0c0c !important; box-shadow: 0 -2px var(--focus), 0 4px #0b0c0c !important; text-decoration: none; }

/* Header: brand teal, white links */
nav { background: var(--navy) !important; backdrop-filter: none; border-bottom: 0; }
.logo, .logo:hover { color: #fff; }
.logo-mark { background: #fff !important; color: var(--navy); border-radius: 0; }
.nav-links a { color: #fff; text-decoration: underline; text-underline-offset: .1578em; font-weight: 400; }
.nav-links a:hover { color: #fff; text-decoration-thickness: 3px; }
.nav-links .btn, .nav-links a.btn { text-decoration: none; }
.mobile-menu-btn { color: #fff; }
.mobile-menu-btn svg { stroke: #fff; }

/* Buttons */
.btn { border-radius: 0; font-weight: 400; font-size: 1.1875rem; line-height: 1.1875; padding: 8px 12px 7px; border: 2px solid transparent; transition: none; }
.btn:active { transform: translateY(2px); box-shadow: none !important; }
.btn-primary { background: #00703c; color: #fff; box-shadow: 0 2px 0 #002d18; }
.btn-primary:hover { background: #005a30; color: #fff; }
.btn-secondary { background: #f3f2f1; color: #0b0c0c; border-color: transparent; box-shadow: 0 2px 0 #929191; }
.btn-secondary:hover { background: #dbdad9; color: #0b0c0c; }
.btn-white { background: #fff; color: #0b4a50; box-shadow: 0 2px 0 #08363b; }
.btn-white:hover { background: #f3f2f1; color: #0b4a50; }
.btn:focus-visible { background: var(--focus) !important; color: #0b0c0c !important; box-shadow: 0 2px 0 #0b0c0c !important; border-color: var(--focus); }

/* Sections */
.section-grey, .section-blue-light { background: #f3f2f1; }
.section-navy, .section-orange { background: var(--navy); color: #fff; }
.section-orange h2, .section-orange p, .section-navy h2, .section-navy p, .section-navy h3, .section-navy li { color: #fff; }
.section-navy a, .section-orange a:not(.btn) { color: #fff; text-decoration: underline; }
.hero { background: #fff; }
.hero-checks li::before { color: #00703c; }

/* Cards and panels: hairline borders, no shadow, square */
.problem-card, .proof-card, .feature-card, .faq details, .mb-steps li, .hero-image img, .mb-shot img, .case-card, .stage-card {
  border-radius: 0 !important; box-shadow: none !important; border-color: var(--line) !important;
}
.mb-steps li::before { border-radius: 50%; background: var(--navy); }
.case-label { letter-spacing: 0; text-transform: none; }
/* Figures and numbers on teal bands are white; on white they are brand teal */
.section-navy .case-number .big-number, .section-orange .big-number, .section-navy .step-num, .section-orange .step-num { color: #fff; }
.case-number .big-number, .next-step .step-num { font-weight: 700; }
.bar-fill { background: var(--navy); }
.footer-links a:hover { color: var(--link-hover); }
.case-timeline { background: rgba(255,255,255,0.08) !important; border: 1px solid rgba(255,255,255,0.4); border-radius: 0 !important; }
/* Header call to action: white button on the teal bar */
nav .btn-primary, .nav-links .btn-primary { background: #fff; color: #0b4a50; box-shadow: 0 2px 0 #08363b; }
nav .btn-primary:hover, .nav-links .btn-primary:hover { background: #f3f2f1; color: #0b4a50; }
/* Buttons on teal bands: white, no underline */
.section-navy a.btn, .section-orange a.btn { text-decoration: none; }
.section-navy .btn-primary, .section-orange .btn-primary { background: #fff; color: #0b4a50; box-shadow: 0 2px 0 #08363b; }
.section-navy .btn-primary:hover, .section-orange .btn-primary:hover { background: #f3f2f1; color: #0b4a50; }

/* Route library page */
.lib-hero { padding-bottom: 2.5rem; }
.lib-kicker { color: #505a5f; font-size: 1.1rem; margin: 0 0 0.25rem; }
.lib-hero h1 { margin-bottom: 0.75rem; }
.lib-sub { color: #505a5f; margin: 0 0 1.25rem; max-width: 46rem; }
.lib-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.lib-stat { border-top: 5px solid #0b4a50; background: #f3f2f1; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.lib-stat-number { font-size: 3rem; line-height: 1.05; font-weight: 700; color: #0b0c0c; }
.lib-stat-label { font-size: 1.05rem; color: #0b0c0c; }
.lib-stat-note { font-size: 0.95rem; color: #0b4a50; font-weight: 700; }
.lib-board { width: 100%; border-collapse: collapse; background: #fff; }
.lib-board th, .lib-board td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid #b1b4b6; }
.lib-board thead th { font-size: 1rem; }
.lib-board tbody th { font-weight: 700; padding-left: 0.75rem; }
.lib-board thead th:first-child { padding-left: 0.75rem; }
.lib-status { display: inline-block; font-weight: 700; font-size: 0.95rem; padding: 0.1rem 0.55rem; border: 1px solid; }
.lib-status-ready { background: #cce2d8; color: #005a30; border-color: #005a30; }
.lib-status-planned { background: #e3eff0; color: #0b4a50; border-color: #0b4a50; }
.lib-status-none { background: #f3f2f1; color: #505a5f; border-color: #b1b4b6; }
.lib-muted { color: #505a5f; }
.lib-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.lib-card { border: 1px solid #b1b4b6; padding: 1.25rem; background: #fff; }
.lib-card h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.lib-card p { margin: 0 0 0.6rem; font-size: 0.97rem; }
.lib-card-meta { color: #505a5f; }
.lib-badge { display: inline-block; font-weight: 700; font-size: 0.85rem; padding: 0.05rem 0.5rem; border: 1px solid #505a5f; background: #f3f2f1; color: #0b0c0c; margin-right: 0.4rem; }
.lib-badge-supplier { background: #e3eff0; color: #0b4a50; border-color: #0b4a50; }
.lib-log { list-style: none; padding: 0; margin: 0; }
.lib-log li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #b1b4b6; }
.lib-log time { font-weight: 700; }
.lib-cta h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.lib-cta p { margin: 0 0 0.9rem; }
@media (max-width: 760px) {
  .lib-stats { grid-template-columns: 1fr 1fr; }
  .lib-stat-number { font-size: 2.25rem; }
  .lib-log li { grid-template-columns: 1fr; gap: 0.1rem; }
  .lib-board th, .lib-board td { padding-right: 0.5rem; }
}
.lib-stats { grid-template-columns: repeat(5, 1fr); }
.lib-status-statutory { background: #fff; color: #0b0c0c; border-color: #0b0c0c; border-style: dashed; }
.lib-type { display: inline-block; font-weight: 700; font-size: 0.85rem; padding: 0.05rem 0.5rem; border: 2px solid; margin-right: 0.4rem; background: #fff; }
.lib-type-system { color: #0b4a50; border-color: #0b4a50; }
.lib-type-statutory { color: #0b0c0c; border-color: #0b0c0c; border-style: dashed; }
.lib-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 0 0 2.5rem; }
.lib-kind { border-left: 5px solid #b1b4b6; padding: 0.25rem 0 0.25rem 1.1rem; }
.lib-kind h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.lib-kind p { margin: 0 0 0.5rem; }
.lib-group-title { font-size: 1.5rem; margin: 2rem 0 1rem; }
.lib-empty { border: 1px dashed #b1b4b6; padding: 1rem 1.25rem; color: #505a5f; margin: 0; }
@media (max-width: 1000px) { .lib-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .lib-stats { grid-template-columns: 1fr 1fr; } .lib-kinds { grid-template-columns: 1fr; } }
.lib-board-wrap { overflow-x: auto; }
@media (max-width: 760px) { .lib-board { font-size: 0.9rem; } .lib-board tbody th { padding-left: 0.4rem; } .lib-status { font-size: 0.8rem; } }
.lib-core { border-left: 4px solid #0b4a50; background: #f3f2f1; padding: 0.5rem 0.75rem; font-size: 0.93rem; }

/* Finance page */
.hero-eyebrow { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.85; margin: 0 0 0.5rem; }
.section-grey .mb-two + .mb-two { margin-top: 2.5rem; }
.mb-two h3 { margin-top: 0; }
.mb-list.mb-no li::before { content: "✕"; color: #505a5f; }

/* Route library list pages */
.hero.hero-compact { padding-bottom: 1.5rem; }
.hero-compact + section { padding-top: 1rem; }
.lib-fields th[scope="row"] { white-space: normal; }
.mb-list.lib-next li::before { content: "→"; color: #505a5f; }

/* Tender requirements page */
.req-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.req-controls { position: sticky; top: 1rem; }
.req-controls h2 { font-size: 1.25rem; }
.req-areas { display: grid; gap: 0.5rem; margin: 0.75rem 0 1.25rem; }
.req-area { display: flex; gap: 0.6rem; align-items: center; font-weight: 600; cursor: pointer; }
.req-area input { width: 1.25rem; height: 1.25rem; }
.req-controls .btn { margin: 0 0.5rem 0.5rem 0; }
.req-doc { border: 1px solid #b1b4b6; padding: 2rem; background: #fff; }
.req-section h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.req-list { padding-left: 1.5rem; margin: 0; }
.req-list > li { margin-bottom: 0.6rem; line-height: 1.5; }
.req-list ul { margin: 0.4rem 0 0; padding-left: 1.25rem; }
.req-list ul li { margin-bottom: 0.25rem; }
.req-change { background: #fff7bf; padding: 0 0.15rem; }
@media (max-width: 860px) { .req-wrap { grid-template-columns: 1fr; } .req-controls { position: static; } .req-doc { padding: 1.25rem; } }
@media print {
  nav, footer, .no-print, .hero, .skip-link { display: none !important; }
  .req-wrap { display: block; } .req-doc { border: none; padding: 0; }
  .req-change { background: none; }
}
.faq-group { padding: 2.5rem 0; }
.faq-group h2 { margin-bottom: 1rem; }
.faq-list details ol, .faq-list details ul { padding-left: 1.5rem; margin: 0.5rem 0 1rem; } .faq-list details li { margin-bottom: 0.35rem; }

/* Phones: the slide-out menu is the header's teal, so its white links and
   the close button can be seen. Links are full width and easy to tap. */
@media (max-width: 900px) {
  .nav-links { background: #0b4a50 !important; gap: 0.25rem; box-shadow: -4px 0 16px rgba(0,0,0,0.25) !important; }
  .nav-links a { display: block; width: 100%; padding: 0.75rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .nav-links a.btn, .nav-links a.btn-primary { margin: 1rem 0 0 !important; padding: 0.75rem 1rem; text-align: center; border-bottom: 0; }
  .mobile-menu-btn { position: relative; z-index: 102; color: #fff; }
}

/* Security summary page */
.sec-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 2rem; }
.sec-table th, .sec-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid #b1b4b6; line-height: 1.5; }
.sec-table th { width: 30%; font-weight: 700; }
.req-doc h2 { margin-top: 2rem; } .req-doc h2:first-child { margin-top: 0; }
.req-doc h3 { font-size: 1.05rem; margin: 1.25rem 0 0.35rem; }
@media print { .sec-table th, .sec-table td { padding: 0.35rem 0.5rem 0.35rem 0; } }
.req-doc h3 + p { font-size: 1rem; line-height: 1.55; }
