/* Spinach shared stylesheet */
:root{
    --navy: #142C46;
    --navy-deep: #0D1F33;
    --yellow: #FFC933;
    --green: #3F9142;
    --red: #E1503A;
    --paper: #FBF7EE;
    --muted: #9FB2C4;
    --line: rgba(251,247,238,0.14);
    --purple: #7C3AED;
  }
  *{ margin:0; padding:0; box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    font-family:'Work Sans', sans-serif;
    background:var(--navy);
    color:var(--paper);
    overflow-x:hidden;
  }
  h1,h2,h3, .display{
    font-family:'Anton', sans-serif;
    font-weight:400;
    text-transform:uppercase;
    letter-spacing:0.5px;
  }
  .eyebrow{
    font-family:'JetBrains Mono', monospace;
    font-size:0.72rem;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:var(--yellow);
  }
  a{ color:inherit; }
  img, svg{ display:block; max-width:100%; }
  :focus-visible{ outline:3px solid var(--yellow); outline-offset:3px; }

  /* stripe bar — matatu livery */
  .livery-bar{
    height:8px;
    width:100%;
    background:repeating-linear-gradient(
      90deg,
      var(--yellow) 0 48px,
      var(--red) 48px 64px,
      var(--green) 64px 112px,
      transparent 112px 128px
    );
  }

  nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:1.6rem 6%;
    border-bottom:1px solid var(--line);
  }
  .logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    font-size:1.6rem;
    color:var(--paper);
  }
  .logo-mark{
    width:26px; height:26px;
    background:var(--green);
    border-radius:6px;
    position:relative;
    transform:rotate(-8deg);
  }
  .logo-mark::after{
    content:"";
    position:absolute;
    inset:5px;
    border-radius:3px;
    background:var(--yellow);
  }
  .nav-links{
    display:flex;
    gap:1.6rem;
    align-items:center;
  }
  .nav-link{
    font-size:0.88rem;
    font-weight:600;
    text-decoration:none;
    color:var(--muted);
    transition:color .2s;
  }
  .nav-link:hover{ color:var(--paper); }
  .contact-btn{
    padding:0.7rem 1.4rem;
    border:2px solid var(--paper);
    border-radius:4px;
    text-decoration:none;
    font-weight:700;
    font-size:0.9rem;
    letter-spacing:0.03em;
    transition:all .2s ease;
  }
  .contact-btn:hover{
    background:var(--yellow);
    border-color:var(--yellow);
    color:var(--navy-deep);
  }

  /* HERO */
  .hero{
    max-width:1240px;
    margin:0 auto;
    padding:4.5rem 6% 3rem;
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    gap:3.5rem;
    align-items:center;
  }
  .hero h1{
    font-size:clamp(2.6rem, 5vw, 4.4rem);
    line-height:0.98;
    margin:1.1rem 0 1.4rem;
  }
  .hero h1 .accent{ color:var(--yellow); }
  .hero p{
    color:var(--muted);
    font-size:1.12rem;
    max-width:34ch;
    margin-bottom:2.2rem;
  }
  .cta-row{ display:flex; gap:1rem; flex-wrap:wrap; align-items:center; }
  .primary-btn{
    padding:1rem 1.9rem;
    background:var(--yellow);
    color:var(--navy-deep);
    border-radius:6px;
    text-decoration:none;
    font-weight:800;
    font-size:1rem;
    display:inline-flex;
    align-items:center;
    gap:0.6rem;
    box-shadow:6px 6px 0 var(--red);
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .primary-btn:hover{
    transform:translate(-2px,-2px);
    box-shadow:8px 8px 0 var(--red);
  }
  .ghost-note{
    font-family:'JetBrains Mono', monospace;
    font-size:0.78rem;
    color:var(--muted);
  }

  /* Destination board */
  .board-wrap{ position:relative; }
  .board{
    background:#0A1725;
    border:3px solid #24405F;
    border-radius:10px;
    padding:1.6rem;
    box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
    transform:rotate(1.5deg);
  }
  .board-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-bottom:0.9rem;
    margin-bottom:0.9rem;
    border-bottom:2px dashed #24405F;
  }
  .board-header span{
    font-family:'JetBrains Mono', monospace;
    font-size:0.72rem;
    color:var(--green);
    letter-spacing:0.1em;
  }
  .board-header .dots{ display:flex; gap:6px; }
  .board-header .dots i{
    width:8px; height:8px; border-radius:50%;
    background:var(--yellow); display:block;
    box-shadow:0 0 8px var(--yellow);
  }
  .route{
    display:flex;
    align-items:center;
    gap:1rem;
    padding:0.85rem 0.4rem;
    border-radius:6px;
    transition:background .15s ease;
  }
  .route:hover{ background:rgba(255,255,255,0.03); }
  .route + .route{ border-top:1px solid #1B3247; }
  .route-num{
    font-family:'JetBrains Mono', monospace;
    font-size:0.85rem;
    color:var(--muted);
    width:26px;
  }
  .route-name{
    font-family:'Anton', sans-serif;
    font-size:1.15rem;
    letter-spacing:0.3px;
    flex:1;
  }
  .route-tag{
    font-family:'JetBrains Mono', monospace;
    font-size:0.68rem;
    padding:0.25rem 0.55rem;
    border-radius:20px;
    white-space:nowrap;
  }
  .tag-live{ background:rgba(63,145,66,0.18); color:var(--green); animation: pulse 2s infinite; }
  .tag-new{ background:rgba(225,80,58,0.18); color:var(--red); }
  @keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
  }

  .sub-route {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    border-top: none !important;
  }
  .sub-route .route-name {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
  }

  .sticker{
    position:absolute;
    background:var(--red);
    color:var(--paper);
    font-family:'Anton', sans-serif;
    font-size:0.8rem;
    padding:0.5rem 0.9rem;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    line-height:1.05;
    width:88px; height:88px;
    transform:rotate(12deg);
    box-shadow:0 10px 25px rgba(0,0,0,0.4);
    top:-24px; right:-20px;
    border:3px solid var(--navy);
  }

  @media (prefers-reduced-motion:no-preference){
    .board{ animation:settle 1s cubic-bezier(.16,1,.3,1); }
  }
  @keyframes settle{
    from{ opacity:0; transform:rotate(1.5deg) translateY(24px); }
    to{ opacity:1; transform:rotate(1.5deg) translateY(0); }
  }

  /* SECTION SHARED */
  .section{
    max-width:1240px;
    margin:0 auto;
    padding:3.5rem 6% 4rem;
  }
  .section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:1rem;
    margin-bottom:2rem;
    flex-wrap:wrap;
  }
  .section-head h2{ font-size:clamp(1.6rem,3vw,2.2rem); }
  .section-divider{
    border:none;
    border-top:1px solid var(--line);
    margin:0;
  }

  /* SERVICES GRID */
  .grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:1.1rem;
  }
  .service-card{
    background:rgba(251,247,238,0.04);
    border:1px solid var(--line);
    border-radius:10px;
    padding:1.5rem;
    position:relative;
  }
  .service-card .mark{
    width:38px; height:38px;
    border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    font-size:1.15rem;
    margin-bottom:1rem;
  }
  .m-yellow{ background:rgba(255,201,51,0.16); }
  .m-green{ background:rgba(63,145,66,0.2); }
  .m-red{ background:rgba(225,80,58,0.18); }
  .m-blue{ background:rgba(159,178,196,0.18); }
  .m-purple{ background:rgba(124,58,237,0.18); }
  .service-card h3{
    font-family:'Work Sans', sans-serif;
    text-transform:none;
    font-weight:700;
    font-size:1.05rem;
    margin-bottom:0.35rem;
  }
  .service-card p{
    color:var(--muted);
    font-size:0.9rem;
  }
  .ride-badge{
    display:inline-block;
    font-family:'JetBrains Mono', monospace;
    font-size:0.6rem;
    padding:0.2rem 0.5rem;
    border-radius:20px;
    background:rgba(255,201,51,0.15);
    color:var(--yellow);
    margin-top:0.5rem;
  }

  /* RIDES SECTION */
  .rides-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:1.1rem;
  }
  .ride-card{
    background:rgba(251,247,238,0.04);
    border:1px solid var(--line);
    border-radius:10px;
    padding:1.5rem;
  }
  .ride-card h3{
    font-family:'Work Sans', sans-serif;
    text-transform:none;
    font-weight:700;
    font-size:1.05rem;
    margin-bottom:0.35rem;
  }
  .ride-card p{ color:var(--muted); font-size:0.9rem; }
  .fare-table{
    margin-top:0.8rem;
    font-family:'JetBrains Mono', monospace;
    font-size:0.72rem;
    color:var(--muted);
    display:flex;
    flex-direction:column;
    gap:0.25rem;
  }
  .fare-row{ display:flex; gap:0.5rem; }
  .fare-label{ color:var(--muted); }
  .fare-value{ color:var(--yellow); }

  /* FAQ */
  .faq-categories{
    display:flex;
    gap:0.6rem;
    flex-wrap:wrap;
    margin-bottom:1.5rem;
  }
  .faq-cat-btn{
    font-family:'JetBrains Mono', monospace;
    font-size:0.7rem;
    padding:0.4rem 0.9rem;
    border-radius:20px;
    border:1.5px solid var(--line);
    background:transparent;
    color:var(--muted);
    cursor:pointer;
    transition:all .15s;
    letter-spacing:0.05em;
  }
  .faq-cat-btn:hover, .faq-cat-btn.active{
    border-color:var(--yellow);
    color:var(--yellow);
    background:rgba(255,201,51,0.08);
  }
  .faq-group{ margin-bottom:2rem; }
  .faq-group-title{
    font-family:'Work Sans', sans-serif;
    font-weight:700;
    font-size:0.95rem;
    text-transform:none;
    letter-spacing:0;
    color:var(--muted);
    margin-bottom:0.75rem;
    display:flex;
    align-items:center;
    gap:0.5rem;
  }
  .faq-group-title::before{
    content:"";
    display:inline-block;
    width:10px; height:10px;
    border-radius:3px;
    background:var(--yellow);
    flex-shrink:0;
  }
  .faq-item{
    background:rgba(251,247,238,0.04);
    border:1px solid var(--line);
    border-radius:8px;
    margin-bottom:0.5rem;
    overflow:hidden;
  }
  .faq-q{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1rem;
    padding:1rem 1.2rem;
    background:transparent;
    border:none;
    color:var(--paper);
    font-family:'Work Sans', sans-serif;
    font-size:0.95rem;
    font-weight:600;
    text-align:left;
    cursor:pointer;
    transition:background .15s;
  }
  .faq-q:hover{ background:rgba(255,255,255,0.03); }
  .faq-q .arrow{
    width:18px; height:18px;
    flex-shrink:0;
    transition:transform .2s;
    color:var(--muted);
  }
  .faq-item.open .faq-q .arrow{ transform:rotate(180deg); }
  .faq-item.open .faq-q{ color:var(--yellow); }
  .faq-a{
    display:none;
    padding:0 1.2rem 1rem;
    color:var(--muted);
    font-size:0.9rem;
    line-height:1.65;
    border-top:1px solid var(--line);
    padding-top:0.8rem;
  }
  .faq-item.open .faq-a{ display:block; }

  /* LEGAL PAGES */
  .legal-tabs{
    display:flex;
    gap:0.5rem;
    margin-bottom:2rem;
    flex-wrap:wrap;
  }
  .legal-tab{
    padding:0.6rem 1.2rem;
    border:2px solid var(--line);
    border-radius:4px;
    background:transparent;
    color:var(--muted);
    font-family:'Work Sans', sans-serif;
    font-weight:700;
    font-size:0.85rem;
    cursor:pointer;
    transition:all .15s;
  }
  .legal-tab:hover, .legal-tab.active{
    border-color:var(--yellow);
    color:var(--yellow);
    background:rgba(255,201,51,0.06);
  }
  .legal-panel{ display:none; }
  .legal-panel.active{ display:block; }
  .legal-hero{
    background:rgba(251,247,238,0.04);
    border:1px solid var(--line);
    border-radius:10px;
    padding:1.8rem;
    margin-bottom:1.5rem;
    text-align:center;
  }
  .legal-hero h3{
    font-family:'Work Sans', sans-serif;
    text-transform:none;
    font-weight:700;
    font-size:1.2rem;
    margin-bottom:0.5rem;
  }
  .legal-hero p{ color:var(--muted); font-size:0.9rem; }
  .legal-badge{
    display:inline-block;
    font-family:'JetBrains Mono', monospace;
    font-size:0.68rem;
    padding:0.3rem 0.7rem;
    border-radius:20px;
    background:rgba(255,201,51,0.12);
    color:var(--yellow);
    margin-top:0.8rem;
  }
  .legal-section-card{
    background:rgba(251,247,238,0.04);
    border:1px solid var(--line);
    border-radius:10px;
    padding:1.4rem;
    margin-bottom:0.75rem;
  }
  .legal-section-card h4{
    font-family:'Work Sans', sans-serif;
    font-weight:700;
    font-size:0.95rem;
    text-transform:none;
    letter-spacing:0;
    margin-bottom:0.6rem;
    color:var(--paper);
  }
  .legal-section-card p{
    color:var(--muted);
    font-size:0.88rem;
    line-height:1.7;
    white-space:pre-line;
  }

  /* HOW IT WORKS – CREATIVE CARDS */
  .section-head-sub {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
  }
  .hiw-category {
    margin-bottom: 2.5rem;
  }
  .hiw-category:last-child {
    margin-bottom: 0;
  }
  .hiw-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.6rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
  }
  .hiw-header--rides {
    background: linear-gradient(135deg, rgba(255,201,51,0.10) 0%, rgba(255,201,51,0.03) 100%);
    border-color: rgba(255,201,51,0.18);
  }
  .hiw-header--services {
    background: linear-gradient(135deg, rgba(63,145,66,0.10) 0%, rgba(63,145,66,0.03) 100%);
    border-color: rgba(63,145,66,0.18);
  }
  .hiw-emoji {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
  }
  .hiw-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.1rem;
  }
  .hiw-header--rides .hiw-title { color: var(--yellow); }
  .hiw-header--services .hiw-title { color: var(--green); }
  .hiw-tagline {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
  }

  /* Steps row */
  .hiw-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
  }
  .hiw-step {
    flex: 1;
    background: rgba(251,247,238,0.04);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.6rem 1.2rem 1.4rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    position: relative;
  }
  .hiw-step:hover {
    transform: translateY(-4px);
    background: rgba(251,247,238,0.06);
  }
  .hiw-category:first-child .hiw-step:hover {
    border-color: rgba(255,201,51,0.3);
  }
  .hiw-category:last-child .hiw-step:hover {
    border-color: rgba(63,145,66,0.3);
  }
  .hiw-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    margin: 0 auto 0.9rem;
  }
  .hiw-num--rides {
    background: rgba(255,201,51,0.15);
    color: var(--yellow);
    box-shadow: 0 0 20px rgba(255,201,51,0.12);
  }
  .hiw-num--services {
    background: rgba(63,145,66,0.15);
    color: var(--green);
    box-shadow: 0 0 20px rgba(63,145,66,0.12);
  }
  .hiw-step strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--paper);
    margin-bottom: 0.4rem;
  }
  .hiw-step p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
  }

  /* Connector between steps */
  .hiw-connector {
    width: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding-top: 0;
    position: relative;
    height: 2px;
    margin-top: -1rem;
  }
  .hiw-connector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      transparent 0 4px,
      var(--muted) 4px 10px
    );
    opacity: 0.4;
  }
  .hiw-connector--rides::before {
    background: repeating-linear-gradient(
      90deg,
      transparent 0 4px,
      var(--yellow) 4px 10px
    );
    opacity: 0.35;
  }
  .hiw-connector--services::before {
    background: repeating-linear-gradient(
      90deg,
      transparent 0 4px,
      var(--green) 4px 10px
    );
    opacity: 0.35;
  }

  @media (max-width: 900px) {
    .hiw-steps {
      flex-direction: column;
      gap: 0;
    }
    .hiw-step {
      text-align: left;
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding: 1.2rem;
    }
    .hiw-num {
      margin: 0;
      flex-shrink: 0;
    }
    .hiw-step strong, .hiw-step p {
      text-align: left;
    }
    .hiw-connector {
      width: 2px;
      min-width: 2px;
      height: 24px;
      margin: 0 0 0 2.4rem;
      align-self: flex-start;
    }
    .hiw-connector::before {
      width: 2px;
      height: 100%;
      left: 0;
      right: auto;
      background: repeating-linear-gradient(
        180deg,
        transparent 0 4px,
        var(--muted) 4px 10px
      ) !important;
    }
    .hiw-connector--rides::before {
      background: repeating-linear-gradient(
        180deg,
        transparent 0 4px,
        var(--yellow) 4px 10px
      ) !important;
    }
    .hiw-connector--services::before {
      background: repeating-linear-gradient(
        180deg,
        transparent 0 4px,
        var(--green) 4px 10px
      ) !important;
    }
  }

  /* FOOTER PROVIDER LINK */
  .footer-provider-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255,201,51,0.06);
    border: 1px solid rgba(255,201,51,0.2);
    border-radius: 40px;
    padding: 0.9rem 1.4rem 0.9rem 1rem;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, gap 0.25s;
    max-width: 340px;
  }
  .footer-provider-link:hover {
    background: rgba(255,201,51,0.12);
    border-color: rgba(255,201,51,0.5);
    gap: 1.2rem;
  }
  .provider-arrow {
    font-size: 1.5rem;
    color: var(--yellow);
    transition: transform 0.25s;
    line-height: 1;
    flex-shrink: 0;
  }
  .footer-provider-link:hover .provider-arrow {
    transform: translateX(4px);
  }
  .provider-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .footer-provider-link .link-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--yellow);
  }
  .footer-provider-link .link-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.4;
  }
  .footer-provider-link .link-sub em {
    font-style: normal;
    color: var(--paper);
  }

  /* FOOTER */
  footer{
    border-top:1px solid var(--line);
    padding:2.5rem 6%;
  }
  .footer-inner{
    max-width:1240px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:1.5rem;
  }
  .footer-left{ display:flex; flex-direction:column; gap:0.5rem; }
  .footer-left--mobile{ display:none; }
  footer .fine{
    font-family:'JetBrains Mono', monospace;
    font-size:0.75rem;
    color:var(--muted);
  }
  .footer-nav{
    display:flex;
    gap:1.5rem;
    flex-wrap:wrap;
    align-items:center;
  }
  .footer-nav a{
    font-size:0.8rem;
    color:var(--muted);
    text-decoration:none;
    transition:color .15s;
  }
  .footer-nav a:hover{ color:var(--paper); }

  @media (max-width:900px){
    .hero{ grid-template-columns:1fr; padding-top:3rem; }
    .grid{ grid-template-columns:repeat(2,1fr); }
    .rides-grid{ grid-template-columns:1fr; }
    .sticker{ width:72px; height:72px; font-size:0.68rem; }
    .contact-btn{ display:none; }
    .nav-links{ flex-wrap: wrap; justify-content: center; gap:1rem; }
    .flows-grid { grid-template-columns: 1fr; gap: 2rem 0; }
    .flow-divider { display: none; }
  }
  @media (max-width:520px){
    .grid{ grid-template-columns:1fr; }
    nav{ padding:1.2rem 5%; flex-direction: column; gap: 1rem; align-items: center; }
    .nav-links{ display:flex; flex-wrap: wrap; justify-content: center; gap: 1rem; width: 100%; }
    .footer-inner{ flex-direction:column; align-items:center; text-align:center; }
    .footer-left{ align-items:center; }
    .footer-left--desktop{ display:none; }
    .footer-left--mobile{ display:flex; align-items:center; }
    .footer-provider-link{ max-width:100%; }
    .footer-nav{ justify-content:center; flex-direction:row; flex-wrap:nowrap; }
  }

  /* page banner (sub-pages) */
  .page-banner{
    background:linear-gradient(135deg,var(--navy-deep) 0%,#1a3554 100%);
    border-bottom:1px solid var(--line);
    padding:3rem 6%;
    text-align:center;
  }
  .page-banner h1{ font-size:clamp(2rem,4vw,3rem); margin-bottom:.6rem; }
  .page-banner p{ color:var(--muted); font-size:1rem; max-width:46ch; margin:0 auto; }
