/* Shared stylesheet for every page of www.logicm8.co.uk - the sidebar
   nav, hero, about, products and contact treatments all live here once
   so every page (index/about/automate/rotam8/contact) stays visually
   consistent and only needs editing in one place.

   Cache-busting note (added 2026-08-16): every page links this file as
   assets/style.css?v=N. Browsers cache CSS aggressively and won't
   always notice it changed on a re-visit even after the HTML changes -
   this bit us once (new button classes added but invisible on a live
   load until a hard refresh). Bump the ?v=N query string on every page
   whenever this file changes, so visitors always get the current CSS
   without needing to know to hard-refresh. */

:root{
  --dark:#0c0c0e;
  --dark2:#1a1a1d;
  --dark3:#232326;
  --red:#e30613;
  --red2:#8f050d;
  --grey-panel:#eceeef;
  --grey-text:#4a4f57;
  --white:#ffffff;

  /* Same subtle honeycomb texture used behind RotaM8's nav rail, ported
     to CSS as one tileable SVG so every page background can share it -
     a neutral grey stroke reads as a faint texture whether the page
     underneath it is dark (Home/AutoM8/RotaM8/Contact) or light
     (About), rather than needing a separate light/dark variant. */
  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23999999' stroke-opacity='0.16' stroke-width='1.5'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23999999' stroke-opacity='0.16' stroke-width='1.5'/%3E%3C/svg%3E");
}
*{margin:0;padding:0;box-sizing:border-box;}
html,body{height:100%;}
body{font-family:'Oswald',Arial,sans-serif;background:var(--dark);color:var(--white);}
a{text-decoration:none;color:inherit;}
.heading{font-family:'Archivo Black','Oswald',sans-serif;text-transform:uppercase;letter-spacing:1px;}

/* Brand names (LogicM8/AutoM8/RotaM8) are always bold with the "M8"
   part in red, wherever they appear in running text - e.g.
   <b>Logic<span class="brand-m8">M8</span></b>. On a nav link's active
   (solid red) state the M8 span switches to white instead, since red
   text on a red background would disappear. */
.brand-m8{color:var(--red);}
.sidebar-nav a.active .brand-m8{color:#fff;}

.layout{display:flex;min-height:100vh;}

/* SIDEBAR */
.sidebar{
  width:300px;flex-shrink:0;
  background:linear-gradient(180deg,#161618,#0c0c0e);
  border-right:1px solid #222;
  display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;
}
.sidebar-logo{background:#fff;padding:22px 20px;display:flex;align-items:center;}
.sidebar-logo img{width:100%;max-width:250px;}
.sidebar-nav{padding:26px 18px;display:flex;flex-direction:column;gap:6px;}
.sidebar-nav a{
  display:flex;align-items:center;gap:8px;
  font-weight:600;font-size:16px;letter-spacing:.5px;color:#d7d9dc;
  padding:10px 14px;border-radius:3px;transition:background .2s,color .2s;
}
.sidebar-nav a:hover{color:#fff;}
.sidebar-nav a.active{background:var(--red);color:#fff;font-weight:700;}
/* YouTube link lives in the nav alongside the page links, sized to
   match them exactly (not an oversized icon button) - the play mark is
   just an inline glyph at the same font-size as the label text. */
.sidebar-nav a.youtube-link .play-mark{font-size:1em;line-height:1;color:var(--red);}
.sidebar-nav a.youtube-link.active .play-mark{color:#fff;}
.sidebar-nav .nav-divider{border-top:1px solid #26262a;margin:10px 14px;}
/* Driver-app CTA, pinned at the bottom of the sidebar nav on every
   page (below the YouTube link) so a driver landing on any page of the
   site can always find the direct link into the app without needing
   to read page copy or scroll a product page (2026-08-16 - replaces
   the two in-page "Open the app" buttons on drivem8.html, which were
   reported as not rendering visibly on a live/cached load). Deliberately
   larger and more visually separated than the plain nav links above it. */
.sidebar-app-cta{
  margin-top:14px;
  padding:16px 14px;
  background:rgba(255,255,255,.05);
  border:1px solid #2a2a2d;
  border-radius:10px;
  text-align:center;
}
.sidebar-app-cta .app-cta-label{
  display:block;
  color:#c9c9cc;
  font-size:12.5px;
  font-weight:600;
  margin-bottom:10px;
}
.sidebar-app-cta .btn-app{
  display:block;
  background:linear-gradient(135deg,var(--red),var(--red2));
  color:#fff;font-weight:700;font-size:14px;
  padding:12px 10px;
  border-radius:22px;
  font-family:'Oswald',sans-serif;
  box-shadow:0 6px 16px rgba(227,6,19,.3);
}
.sidebar-app-cta .btn-app:hover{filter:brightness(1.1);}
.sidebar-app-cta .app-qr{
  display:block;
  width:124px;
  margin:12px auto 0;
  padding:6px;
  background:#fff;
  border-radius:6px;
  line-height:0;
}
.sidebar-app-cta .app-qr img{display:block;width:100%;height:auto;}

/* Keep the logo visible while allowing a longer sidebar menu (including
   the app QR code) to scroll within the available browser height. */
@media(min-width:901px){
  .sidebar-nav{
    flex:1;min-height:0;overflow-y:auto;
    -ms-overflow-style:none;
    scrollbar-width:none;
  }
  .sidebar-nav::-webkit-scrollbar{display:none;}
}

/* MAIN */
.main{flex:1;min-width:0;}

/* HERO */
.hero{
  position:relative;overflow:hidden;
  background:
    var(--hex-pattern) repeat,
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 26px),
    radial-gradient(ellipse at 30% 20%, #232326, #0c0c0e 65%);
  padding:90px 60px 70px;text-align:center;
}
.hero h1{
  font-size:52px;line-height:1.15;color:#fff;margin-bottom:22px;
}
.hero h1 .slash{color:var(--red);margin:0 14px;}
.tagline{
  font-style:italic;font-weight:600;font-size:15px;letter-spacing:.5px;color:#dcdcde;
  margin-bottom:36px;
}
.tagline .slash{color:var(--red);margin:0 6px;}
.btn-red{
  display:inline-block;background:linear-gradient(135deg,var(--red),var(--red2));
  color:#fff;font-weight:700;font-size:16px;padding:14px 34px;border-radius:26px;
  box-shadow:0 10px 26px rgba(227,6,19,.35);
  font-family:'Oswald',sans-serif;
}
/* .brand-m8's red text is illegible on this button's own red background —
   force it back to white here specifically (found 2026-08-16 reviewing
   the DriveM8 page's "Apply for DriveM8" button). */
.btn-red .brand-m8{color:#fff;}

/* Teaser cards used on the Home page to point at the other pages */
.teasers{background:var(--hex-pattern) repeat, var(--dark);padding:60px;}
/* auto-fit/minmax instead of a fixed 3-column count, so a future 4th
   (or 5th...) app teaser card just reflows into the grid instead of
   needing this rule edited every time a new app is added. */
.teaser-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;max-width:1080px;margin:0 auto;}
/* The whole card is the link (not just the "Explore" text) - display:
   block since <a> is inline by default, and box-shadow instead of
   border-color on hover so the whole card lifts/glows rather than just
   its edge, making it read clearly as one clickable unit. */
.teaser-card{
  display:block;background:var(--dark2);border:1px solid #2a2a2d;border-radius:10px;
  padding:26px;transition:.15s;cursor:pointer;
}
.teaser-card:hover{
  border-color:var(--red);transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(0,0,0,.35);
}
.teaser-card .tag{color:var(--red);font-size:11px;font-weight:700;letter-spacing:2px;margin-bottom:8px;}
.teaser-card h3{font-family:'Archivo Black';font-size:19px;margin-bottom:10px;}
.teaser-card p{color:#b8bac0;font-size:14px;font-family:Arial,sans-serif;line-height:1.6;margin-bottom:14px;}
.teaser-card .more{color:var(--red);font-size:13px;font-weight:700;}

/* ABOUT */
.about-page{background:var(--hex-pattern) repeat, linear-gradient(180deg,#f2f3f4,var(--grey-panel));padding:70px 60px;min-height:100vh;}
.about-page .inner{max-width:820px;margin:0 auto;}
.about-page h1{font-size:38px;color:#0c0c0e;margin-bottom:26px;}
.about-page h1 .slash{color:var(--red);}
.about-page p{color:var(--grey-text);font-size:16px;font-weight:400;line-height:1.8;margin-bottom:20px;font-family:Arial,sans-serif;}
.about-page h2{font-size:20px;color:#0c0c0e;margin:34px 0 14px;}
/* Reuses .feature-list (defined under PRODUCT PAGES below) for the app
   list here too, so adding a future app is just another <li> - but that
   list was designed for the dark product pages, so it needs light-mode
   colours on this light background. */
.about-page .feature-list li{background:#fff;border-color:#dcdde0;color:var(--grey-text);}
.about-page .feature-list li b{color:#0c0c0e;}
.about-page .feature-list li a{color:inherit;}

/* PRODUCT PAGES (AutoM8 / RotaM8) */
.product-page{background:var(--hex-pattern) repeat, var(--dark);padding:70px 60px;min-height:100vh;}
.product-page.alt{background:var(--hex-pattern) repeat, var(--dark2);}
.product-page .inner{max-width:820px;margin:0 auto;}
.product-page .tag{color:var(--red);font-size:12px;font-weight:700;letter-spacing:2px;margin-bottom:12px;font-family:'Oswald',sans-serif;}
.product-page h1{font-family:'Archivo Black';font-size:38px;margin-bottom:20px;}

/* Header row (DriveM8) — h1 plus a quick "already have an account, just
   open the app" link for drivers who don't need the full pitch, sitting
   right next to the product name so it's visible without scrolling. */
.product-header-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:20px;}
.product-header-row h1{margin-bottom:0;}
.btn-small{padding:8px 18px;font-size:12.5px;}

.product-page > .inner > p.lead{color:#e2e2e4;font-size:17px;font-weight:400;font-family:Arial,sans-serif;line-height:1.7;margin-bottom:30px;}
.product-page h2{font-size:20px;margin:30px 0 14px;color:#fff;}
.feature-list{list-style:none;display:grid;gap:12px;margin-bottom:10px;}
.feature-list li{
  background:rgba(255,255,255,.04);border:1px solid #2a2a2d;border-radius:8px;
  padding:14px 18px;color:#c9c9cc;font-size:14.5px;font-family:Arial,sans-serif;line-height:1.5;
}
.product-page.alt .feature-list li{background:rgba(0,0,0,.15);}
.feature-list li b{color:#fff;}
/* Small inline line-icon (e.g. the "works on a PC too" monitor glyph) —
   a simple stroke SVG rather than an emoji/pictorial icon, to match the
   site's existing minimal-shape language (the CSS-drawn nav dot, the
   plain ▶/↗/→ text glyphs used elsewhere) rather than introducing a new
   visual style. */
.feature-list li .li-icon{display:inline-block;vertical-align:-3px;margin-right:8px;color:var(--red);}
.product-page .cta-row{margin-top:34px;display:flex;gap:14px;flex-wrap:wrap;align-items:center;}
.btn-outline{
  display:inline-block;border:1px solid #3a3a3f;color:#d7d9dc;font-weight:600;font-size:15px;
  padding:13px 30px;border-radius:26px;font-family:'Oswald',sans-serif;
}
.btn-outline:hover{border-color:#666;color:#fff;}

/* Bright white CTA — used for the "open the app" links specifically, so
   they visually pop against the dark page rather than blending in with
   the muted .btn-outline treatment used for secondary/escape-hatch links
   like "Back to Home". Brand wordmark inside keeps the usual black
   "Drive" + red "M8" treatment (.brand-m8 already wins on specificity
   over this button's own text color). */
.btn-white{
  display:inline-block;background:#fff;color:#0c0c0e;font-weight:700;font-size:15px;
  padding:13px 30px;border-radius:26px;font-family:'Oswald',sans-serif;border:none;
}
.btn-white:hover{background:#eceeef;}

/* CONTACT */
.contact-page{
  background:
    var(--hex-pattern) repeat,
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 26px),
    #0c0c0e;
  text-align:center;padding:100px 40px;min-height:100vh;display:flex;flex-direction:column;justify-content:center;
}
.contact-page .contact-logo{
  background:#fff;display:inline-block;padding:14px 22px;border-radius:8px;
  margin:0 auto 28px;
}
.contact-page .contact-logo img{height:48px;display:block;}
.contact-page h1{color:var(--red);font-size:34px;margin-bottom:16px;}
.contact-page p{color:#e2e2e4;font-size:16px;margin-bottom:34px;font-family:Arial,sans-serif;font-weight:400;max-width:520px;margin-left:auto;margin-right:auto;}

/* FOOTER */
footer{background:#0c0c0e;border-top:1px solid #1e1e21;padding:26px 40px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;}
footer .foot-logo{background:#fff;padding:10px 16px;border-radius:4px;}
footer .foot-logo img{height:40px;display:block;}
footer .copy{color:#9a9a9e;font-size:13px;text-align:right;line-height:1.5;font-family:Arial,sans-serif;}

/* SETUP / REGISTRATION (DriveM8) — a lightweight form page reusing the
   product-page dark treatment so it doesn't feel like a separate site,
   but centered and narrower since it's a single task, not reading. */
.setup-page{
  background:var(--hex-pattern) repeat, var(--dark2);
  padding:70px 40px;min-height:100vh;
  display:flex;align-items:center;justify-content:center;
}
.setup-card{
  width:100%;max-width:440px;background:rgba(0,0,0,.2);
  border:1px solid #2a2a2d;border-radius:14px;padding:36px 32px;
}
.setup-card .tag{color:var(--red);font-size:12px;font-weight:700;letter-spacing:2px;margin-bottom:10px;font-family:'Oswald',sans-serif;}
.setup-card h1{font-family:'Archivo Black';font-size:28px;margin-bottom:10px;}
.setup-card .sub{color:#c9c9cc;font-size:14.5px;font-family:Arial,sans-serif;line-height:1.6;margin-bottom:28px;}
.form-group{margin-bottom:18px;}
.form-group label{display:block;color:#d7d9dc;font-size:13px;font-weight:600;font-family:'Oswald',sans-serif;letter-spacing:.3px;margin-bottom:7px;}
.form-group input{
  width:100%;background:#1a1a1d;border:1px solid #33333a;border-radius:8px;
  padding:12px 14px;color:#fff;font-size:15px;font-family:Arial,sans-serif;
}
.form-group input:focus{outline:none;border-color:var(--red);}
.form-group .hint{color:#8a8d93;font-size:12px;margin-top:6px;font-family:Arial,sans-serif;}
.form-row{display:flex;gap:14px;}
.form-row .form-group{flex:1;}
.btn-red.full{display:block;width:100%;text-align:center;border:none;cursor:pointer;font-size:16px;}
.form-error{
  background:rgba(227,6,19,.12);border:1px solid rgba(227,6,19,.4);color:#ff9aa1;
  border-radius:8px;padding:10px 14px;font-size:13.5px;font-family:Arial,sans-serif;
  margin-bottom:18px;display:none;
}
.form-error.visible{display:block;}
.setup-success{display:none;text-align:center;}
.setup-success.visible{display:block;}
.setup-success .check{
  width:56px;height:56px;border-radius:50%;background:var(--red);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:26px;margin:0 auto 18px;
}
.setup-success h2{font-size:20px;margin-bottom:8px;}
.setup-success p{color:#c9c9cc;font-size:14.5px;font-family:Arial,sans-serif;line-height:1.6;margin-bottom:24px;}
.setup-success .driver-chip{
  display:inline-block;background:#1a1a1d;border:1px solid #33333a;border-radius:999px;
  padding:8px 18px;color:#fff;font-size:14px;font-weight:600;margin-bottom:24px;
}
.setup-form.hidden{display:none;}
.setup-note{color:#7a7c81;font-size:12px;font-family:Arial,sans-serif;line-height:1.6;margin-top:22px;text-align:center;}

@media(max-width:900px){
  .layout{flex-direction:column;}
  .sidebar{width:100%;height:auto;position:relative;flex-direction:row;flex-wrap:wrap;}
  .sidebar-nav{flex-direction:row;flex-wrap:wrap;}
  .nav-divider{display:none;}
  .hero{padding:50px 24px 40px;}
  .hero h1{font-size:34px;}
  .about-page,.product-page,.teasers,.contact-page{padding:40px 24px;}
  .teaser-grid{grid-template-columns:1fr;}
  footer{padding:22px 24px;justify-content:center;text-align:center;}
  footer .copy{text-align:center;}
  .setup-page{padding:40px 20px;}
  .setup-card{padding:28px 22px;}
  .form-row{flex-direction:column;gap:0;}
}
