:root{
  --bg: #ffffff;
  --bg2: #f7f8fb;
  --panel: #ffffff;
  --panel2: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 12px 30px rgba(17,24,39,0.10);
  --shadow2: 0 10px 24px rgba(17,24,39,0.08);
  --radius: 18px;
  --radius2: 24px;
  --max: 1100px;
  --primary: #0ea5e9;
  --cream: #fff2e9;
  --mustard: #faa21a;
  --raspberry: #ed1a51;
  --font-pixel: 'Silkscreen', 'Courier New', monospace;
}

@font-face{
  font-family:'Silkscreen';
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/silkscreen-latin-400-normal.woff2') format('woff2');
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.muted{ color: var(--muted); }
.tiny{ font-size: 0.85rem; }

/* --- Header / Nav --- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 16px;
}

.nav-logo{
  height: 44px;
  width: auto;
}

.nav-brand{ margin-right: auto; }

.nav-phone{
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #dbeaf7;
  border: 1px solid #9ed0f5;
  color: #0d1830;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}

.nav-phone:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(13,24,48,0.08);
}

.nav-toggle{ order: 3; }

@media (max-width: 420px){
  .nav-phone{
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}

/* Call button above the enquiry form */
.call-cta{
  text-align: center;
  margin: 0 auto 32px;
}

.call-cta p{
  margin: 0 0 10px;
  font-weight: 700;
}

.call-btn{
  font-size: 1.5rem;
  font-weight: 900;
  min-height: 64px;
  padding: 0 32px;
}

.enquiry-privacy{
  text-align: center;
  margin: 16px auto 0;
}

.enquiry-privacy a,
.privacy a{
  text-decoration: underline;
}

.footer-phone{
  font-weight: 800;
  color: var(--text) !important;
}

/* Privacy notice */
.privacy{
  max-width: 760px;
}

.privacy h2{
  margin: 32px 0 8px;
  font-size: 1.4rem;
}

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

.privacy ul{
  color: #5b6b82;
  line-height: 1.75;
  padding-left: 22px;
}

.nav-menu{
  display:flex;
  align-items:center;
  gap: 18px;
}

.nav-menu a{
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.nav-menu a:hover{
  background: rgba(17,24,39,0.04);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-toggle{
  display:none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
}

.burger{
  width: 20px;
  height: 2px;
  background: var(--text);
  display:block;
  position: relative;
}
.burger::before, .burger::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background: var(--text);
}
.burger::before{ top:-6px; }
.burger::after{ top:6px; }

.opening{
  padding: 64px 0 36px;
}

.opening-inner{
  width:min(920px, calc(100% - 40px));
  margin: 0 auto;
  text-align:center;
}

.opening-logo{
  width: 120%;
  max-width: 1575px;
  margin: 10px auto 20px;
  display: block;
  transform: translateX(-90px); /* desktop */
}


@media (max-width: 600px){
  .opening-logo{
    width: 100%;
    transform: translateX(0);
  }
}

.opening-tagline{
  margin: 0 auto 18px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

.opening-actions{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
  margin: 18px 0 28px;
}

.opening-image-wrap{
  margin-top: 22px;
  border-radius: var(--radius2);
  overflow:hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.opening-image{
  width:100%;
  height: 340px;
  object-fit: cover;
  opacity: 1;
}

.opening-hero{
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 20% -10%, rgba(14,165,233,0.10), transparent 30%),
    radial-gradient(900px 500px at 80% 0%, rgba(99,102,241,0.10), transparent 25%),
    #ffffff;
}

/* --- Sections / Cards --- */
.section{ padding: 46px 0; }

.section-alt{
  background: linear-gradient(180deg, transparent, rgba(17,24,39,0.02), transparent);
  border-top: 1px solid rgba(17,24,39,0.06);
  border-bottom: 1px solid rgba(17,24,39,0.06);
}

.section-head{
  margin-bottom: 20px;
}

.section-head h2{
  margin: 0 0 6px;
  font-size: 54px;
}

.section-head p{
  margin:0;
  color: var(--muted);
  line-height:1.6;
}

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

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow2);
}

.card h3{ margin: 0 0 8px; }
.card p{ margin: 0; color: var(--muted); line-height: 1.65; }

.tile{
  display:block;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 18px rgba(17,24,39,0.06);
}

.tile:hover{
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17,24,39,0.10);
}

.tile-title{
  font-weight: 800;
  margin-bottom: 6px;
}

.tile-desc{
  color: var(--muted);
  line-height: 1.6;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-primary{
  background: rgba(14,165,233,0.12);
  border-color: rgba(14,165,233,0.35);
  color: #0b1220;
}

.btn-primary:hover{
  background: rgba(14,165,233,0.18);
}

.btn-ghost{
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover{
  background: rgba(17,24,39,0.04);
}

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

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

label{
  display:block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--muted);
}

input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

input:focus, textarea:focus{
  border-color: rgba(14,165,233,0.55);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
}

/* --- Footer --- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 26px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.footer-logo{ height: 36px; width:auto; opacity: 0.95; }

.footer-right{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-right a{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}

.footer-right a:hover{
  background: rgba(17,24,39,0.04);
  color: var(--text);
}

@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }

  .nav-toggle{ display:inline-flex; }

  .nav-menu{
    display:none;
    position:absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow2);
  }

  .nav-menu a{ width:100%; }
  .nav-menu.is-open{ display:flex; }
}

.enquiry-section{
  padding: 70px 20px;
  text-align: center;
}

.enquiry-section .section-head{
  max-width: 700px;
  margin: 0 auto 30px;
}

.enquiry-iframe{
  display: block;
  width: 640px;
  max-width: 95%;
  height: 550px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 20px;   /* match the td-powered box */
  overflow: hidden;      /* important */
  box-shadow: var(--shadow2);
  background: #ffffff;
}

.offer-split{
  padding: 70px 0;
}

.offer-split-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

/* Left media */
.offer-media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.offer-image{
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: 38% 50%; /* the car sits a little left of centre in the photo */
  display: block;
}

.offer-badge{
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
}

.offer-badge-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}

.offer-badge-number{
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.offer-badge-label{
  font-size: 13px;
  opacity: 0.9;
}

.offer-content{
  text-align: left;
}

.offer-eyebrow{
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.offer-title{
  font-size: 54px;
  margin: 0 0 12px;
  line-height: 1.05;
}

.offer-lead{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
}

.offer-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin: 18px 0 22px;
}

.offer-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.offer-check{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #fff;
  font-size: 14px;
  flex: 0 0 28px;
}

.offer-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

@media (max-width: 980px){
  .offer-split-grid{
    grid-template-columns: 1fr;
  }
  .offer-image{
    height: 360px;
  }
  .offer-title{
    font-size: 40px;
  }
  .offer-list{
    grid-template-columns: 1fr;
  }
}

.td-powered{
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 0;
  text-align: center;
}

.td-logo{
  width: 180px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.td-tagline{
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.td-description{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.page-hero h1{
  font-size: 42px;
  margin-bottom: 12px;
}

.lead{
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

.two-col{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

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

.check-list li{
  margin-bottom: 10px;
  padding-left: 26px;
  position: relative;
  font-weight: 600;
}

.check-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 900;
}

.price-card{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.price-option{
  margin: 20px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.price-option.highlight{
  border: 2px solid #111827;
}

.price-title{
  font-weight: 800;
}

.price-amount{
  font-size: 32px;
  font-weight: 900;
  margin: 6px 0;
}

.price-desc{
  color: var(--muted);
  font-size: 14px;
}

.full-width{
  width: 100%;
  margin-top: 20px;
}

.pass-plus-logo{
  width: 400px;
  height: auto;
  margin: 32px auto 0;
}

.dvsa-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.dvsa-logo{
  width: 240px;
  height: auto;
  border-radius: 12px;
}

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

  .dvsa-logo{
    width: 180px;
  }
}

.update-list{
  display: grid;
  gap: 16px;
  max-width: 800px;
}

.update-card{
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}

a.update-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.08);
}

.update-date{
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.update-list .update-card p{
  margin-bottom: 12px;
}

.update-link{
  font-weight: 700;
  color: #0d1830;
  text-decoration: underline;
}

@media (min-width: 901px){
  .pass-plus-aside{
    margin-top: -110px;
  }
}

.partner-section{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.logo-placeholder{
  height: 160px;
  border: 2px dashed #d1d5db;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-weight: 600;
}

@media (max-width: 900px){
  .two-col{
    grid-template-columns: 1fr;
  }
  .partner-section{
    grid-template-columns: 1fr;
  }
}

.page-hero + .section{
  padding-top: 0px;
}

.intensive-pricing-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:20px;
  margin-top:25px;
}

.intensive-card{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:24px;
  box-shadow:0 10px 24px rgba(0,0,0,0.05);
  transition:all .2s ease;
}

.intensive-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 30px rgba(0,0,0,0.08);
}

.intensive-card.featured{
  border:2px solid #111827;
}

.intensive-hours{
  font-weight:800;
  margin-bottom:8px;
}

.intensive-price{
  font-size:38px;
  font-weight:900;
  margin-bottom:8px;
}

.intensive-desc{
  color:var(--muted);
}

@media(max-width:900px){
  .intensive-pricing-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:600px){
  .intensive-pricing-grid{
    grid-template-columns:1fr;
  }
}

.how-it-works-mini{
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.how-step{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}

.how-step-number{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex: 0 0 34px;
}

.how-step strong{
  display: block;
  margin-bottom: 4px;
}

.how-step p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Pricing cards */

.price-option{
  transition: transform .25s ease, box-shadow .25s ease;
  animation: priceBounce .6s ease;
}

.price-option:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 28px rgba(0,0,0,0.08);
}

.price-option.highlight:hover{
  transform: translateY(-8px) scale(1.03);
}

@keyframes priceBounce{
  0%{
    transform: translateY(12px);
    opacity: 0;
  }
  60%{
    transform: translateY(-4px);
  }
  100%{
    transform: translateY(0);
    opacity: 1;
  }
}

.logo-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:visible;
  width:100vw;
  margin-left:calc(50% - 50vw);
}

.opening-logo{
  width:min(1300px, 92vw);
  height:auto;
  margin:10px auto 20px;
  display:block;

  opacity:0;
  transform:translateY(20px) scale(0.96);
  animation:logoReveal .9s ease forwards;
}

@keyframes logoReveal{
  0%{
    opacity:0;
    transform:translateY(20px) scale(0.96);
  }
  60%{
    transform:translateY(-4px) scale(1.02);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* Idle float: a gentle smooth bob with a faint pulse.
   Starts once the entrance reveal has finished. */
@keyframes logoFloat{
  0%   { transform:translateY(0);    filter:brightness(1); }
  50%  { transform:translateY(-6px); filter:brightness(1.06); }
  100% { transform:translateY(0);    filter:brightness(1); }
}
@media (prefers-reduced-motion: no-preference){
  .opening-logo{ animation:logoReveal .9s ease forwards, logoFloat 1.6s ease-in-out .9s infinite; }
}

@media (max-width:600px){
  .opening-logo{
    width:92vw;
  }
}

.offer-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.offer-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: #0d1830;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  transition: 
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.offer-item:hover .offer-check {
  background: #22c55e;
  transform: scale(1.15);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
}

.offer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.offer-item:hover {
  text-decoration: none;
}

.reviews-section {
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.06), transparent 30%),
    radial-gradient(circle at bottom right, rgba(13, 24, 48, 0.08), transparent 35%),
    #f8f8f8;
}

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

.reviews-eyebrow {
  color: #dc2626;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.reviews-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  color: #0d1830;
}

.reviews-lead {
  margin: 0 auto 28px;
  max-width: 680px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #5b6b82;
}

.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(13, 24, 48, 0.08);
  box-shadow: 0 12px 30px rgba(13, 24, 48, 0.08);
}

.reviews-score {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #0d1830;
}

.reviews-stars,
.review-stars {
  color: #f4b400;
  letter-spacing: 0.08em;
  font-size: 3rem;
}

.reviews-stars-small,
.review-stars-small {
  color: #f4b400;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
}

.reviews-based {
  color: #5b6b82;
  font-size: 0.95rem;
  margin-top: 4px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.review-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(13, 24, 48, 0.08);
  box-shadow: 0 14px 32px rgba(13, 24, 48, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #ff004d, #ffa300);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(13, 24, 48, 0.12);
}

.review-card-featured {
  background: linear-gradient(135deg, #0069f1 0%, #0069f1 100%);
  color: #ffffff;
}

.review-card-featured .review-text,
.review-card-featured .review-meta {
  color: rgba(255, 255, 255, 0.82);
}

.review-card-featured .review-name {
  color: #ffffff;
}

.review-card-featured .review-avatar {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.review-text {
  margin: 18px 0 24px;
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef8;
  color: #0d1830;
  font-weight: 800;
}

.review-name {
  font-weight: 800;
  color: #0d1830;
}

.review-meta {
  font-size: 0.95rem;
  color: #5b6b82;
  margin-top: 3px;
}

@media (max-width: 980px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

section.section {
  padding: 90px 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

h1, h2, h3 {
  letter-spacing: -0.03em;
  color: #0d1830;
}

p {
  color: #5b6b82;
  line-height: 1.75;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0 0 14px;
}

.section-head p {
  max-width: 720px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #dbeaf7;
  color: #0d1830;
  border: 1px solid #9ed0f5;
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(13, 24, 48, 0.08);
}

.offer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-eyebrow {
  color: #dc2626;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.offer-title {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.offer-lead {
  max-width: 640px;
  margin: 0 0 30px;
  font-size: 1.1rem;
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 20px 32px;
}

.offer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #0d1830;
  font-weight: 700;
}

.offer-item span:last-child {
  transition: color 0.25s ease;
}

.offer-item:hover span:last-child {
  color: #0d1830;
}

.offer-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: #0d1830;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-item:hover .offer-check {
  background: #22c55e;
  transform: scale(1.12);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.enquiry-section {
  background: #f8fafc;
}

.td-powered {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 0;
  text-align: center;
}

.td-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  section.section {
    padding: 70px 0;
  }

  .offer-split-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .offer-list {
    grid-template-columns: 1fr;
  }

  .offer-title,
  .reviews-title,
  .section-head h2 {
    line-height: 1.02;
  }

  .opening-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .opening-actions .btn {
    width: 100%;
  }
}

.stats-login{
  max-width: 420px;
  margin: 40px auto;
}

.stats-login input{
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  margin-top: 8px;
}

.stats-error{
  color: #dc2626;
  font-weight: 700;
}

.stats-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 12px;
}

.stats-label{
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-number{
  font-size: 2.6rem;
  font-weight: 900;
  color: #0d1830;
  line-height: 1.1;
  margin: 6px 0 2px;
}

.stats-sub{
  color: var(--muted);
  font-size: 0.9rem;
}

.stats-car{
  margin-top: 10px;
  font-weight: 800;
  color: #0d1830;
}

.stats-table{
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.stats-table th,
.stats-table td{
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

.stats-table td:nth-child(2),
.stats-table td:nth-child(3){
  font-weight: 700;
}

.stats-bar-cell{
  width: 40%;
}

.stats-bar{
  display: block;
  height: 10px;
  min-width: 2px;
  border-radius: 999px;
  background: #9ed0f5;
}

.stats-lists{
  margin-top: 16px;
}

@media (max-width: 900px){
  .stats-grid{
    grid-template-columns: 1fr 1fr;
  }
}

.stats-filtered{
  margin: 20px 0 32px;
  background: #f8fafc;
  box-shadow: none;
}

.stats-filtered h3 span{
  font-weight: 400;
  margin-left: 6px;
}

.stats-filtered-count{
  font-size: 1.6rem;
  font-weight: 900;
  color: #0d1830;
  margin: 8px 0;
}

.stats-filtered-count span{
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.stats-filtered .stats-table td{
  font-size: 0.9rem;
  word-break: break-all;
}


/* Logo power-up reveal */
@keyframes logoPowerUp{
  0%   { opacity:0; transform:translateY(16px) scale(0.96); filter:brightness(1.8) saturate(0.3); }
  40%  { opacity:1; transform:translateY(-4px) scale(1.015); filter:brightness(1.25) saturate(0.75); }
  55%  { filter:brightness(1.5) saturate(0.5); }
  70%  { filter:brightness(1.05) saturate(0.95); }
  100% { opacity:1; transform:none; filter:none; }
}

/* ===== TITLE SCREEN - homepage intro (only when <html class="intro">) ===== */
html.intro:not(.intro-done){ background:#1b1c1e; }
html.intro:not(.intro-done) body{ overflow:hidden; }
html.intro .hero-logo{ animation:none; }
/* .opening-logo starts at opacity 0 and relies on its entrance animation to show,
   so with the animation off it needs its resting state set here */
html.intro .hero-logo{ opacity:1; transform:none; }
html.intro:not(.intro-done) .hero-logo{ visibility:hidden; }
/* Once the coin has cleared, the homepage logo plays its normal entrance, then floats */
@media (prefers-reduced-motion: no-preference){
  html.intro.intro-done .hero-logo{ animation:logoReveal .9s ease forwards, logoFloat 1.6s ease-in-out .9s infinite; }
}

.title-screen{ display:none; }
html.intro .title-screen{
  position:fixed; inset:0; z-index:1000;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:#1b1c1e;
  color:var(--cream);
  overflow:hidden;
  transition:background-color .6s ease;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
html.intro-done .title-screen{ display:none; }

/* CRT scanlines + vignette, confined to the intro */
.title-screen::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:3;
  background-image:repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px);
  transition:opacity .3s ease;
}
.title-screen::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:3;
  background:radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
  transition:opacity .3s ease;
}

.ts-hud{
  position:absolute; top:0; left:0; right:0;
  display:flex; justify-content:space-between;
  padding:18px 22px;
  font-family:var(--font-pixel); font-size:0.7rem; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--mustard);
  transition:opacity .3s ease;
}
.ts-hud .star{ color:var(--mustard); }

.ts-stage{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 20px; }

.ts-logo{
  width:min(720px, 86vw);
  height:auto;
  display:block;
  transform-origin:center center;
  will-change:transform;
  transition:transform .7s cubic-bezier(.45,0,.2,1), opacity .4s ease;
  filter:drop-shadow(0 0 22px rgba(237,26,81,0.28));
}
@media (prefers-reduced-motion: no-preference){
  .ts-logo{ animation:logoPowerUp 1.1s ease .45s both; }
}

.ts-press{
  margin:38px 0 10px;
  font-family:var(--font-pixel); font-size:clamp(0.95rem, 2.6vw, 1.35rem); letter-spacing:0.12em; text-transform:uppercase;
  color:var(--cream);
  background:none; border:0; padding:6px 10px; cursor:pointer;
  animation:tsBlink 1.1s steps(1,end) infinite;
}
@keyframes tsBlink{ 0%,55%{ opacity:1; } 56%,100%{ opacity:0; } }

.ts-hint{
  font-family:var(--font-pixel); font-size:0.6rem; letter-spacing:0.08em; text-transform:uppercase;
  color:rgba(255,242,233,0.45); margin:0;
  transition:opacity .3s ease;
}

.ts-foot{
  position:absolute; left:0; right:0; bottom:88px;
  display:flex; justify-content:center; gap:22px; flex-wrap:wrap;
  font-family:var(--font-pixel); font-size:0.62rem; letter-spacing:0.06em; text-transform:uppercase;
  color:rgba(255,242,233,0.55);
  transition:opacity .3s ease;
}
.ts-foot a{ color:var(--cream); }

/* Scrolling road with a pixel car */
.ts-road{
  position:absolute; left:0; right:0; bottom:0; height:72px; z-index:1;
  background:#2a2b2e;
  border-top:4px solid #3a3b3f;
  transition:opacity .3s ease;
}
.ts-road::before{
  content:""; position:absolute; left:0; right:0; top:50%; height:6px; margin-top:-3px;
  background-image:linear-gradient(90deg, var(--mustard) 0 28px, transparent 28px 56px);
  background-size:56px 6px; background-repeat:repeat-x;
  opacity:0.9;
}
@media (prefers-reduced-motion: no-preference){
  .ts-road::before{ animation:tsRoad .5s linear infinite; }
}
@keyframes tsRoad{ to{ background-position:-56px 0; } }

/* The car: the "drive right" sprite (4 frames of 160x80 in one strip), shown at 168x84.
   One animation flips through the frames, the other drives it across the screen. */
.ts-car{
  position:absolute; left:0; bottom:3px;
  width:168px; height:84px;
  background:url('/assets/img/car-drive-right.png') 0 0 / 672px 84px no-repeat;
  transform:translateX(16vw);
}
@media (prefers-reduced-motion: no-preference){
  .ts-car{ animation:tsCarFrames .4s steps(4) infinite, tsDrive 7.4s linear infinite; }
}
@keyframes tsCarFrames{ to{ background-position:-672px 0; } }
@keyframes tsDrive{
  from{ transform:translateX(-180px); }
  to{ transform:translateX(100vw); }
}
@media (max-width: 600px){
  .ts-car{ animation-duration:.4s, 5s; }
}

/* Start pressed: text flickers fast. The coin toss itself is animated by main.js */
.title-screen.is-starting .ts-press{ animation:tsFlicker .1s steps(1,end) 7; }
@keyframes tsFlicker{ 50%{ opacity:0; } }

.ts-coin{
  position:fixed; left:50%; top:50%; width:64px; height:64px;
  z-index:1003; pointer-events:none;
  perspective:250vmax;
}
.ts-coin svg{ display:block; width:100%; height:100%; }
.ts-coin[hidden]{ display:none; }

/* CRT power-on: everything on the screen sits in .ts-crt, which opens out of a glowing line */
.ts-crt{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  transform-origin:center center;
}
.ts-power{
  position:absolute; left:0; right:0; top:50%; height:4px; margin-top:-2px;
  z-index:6; pointer-events:none; opacity:0;
  background:#fff;
  box-shadow:0 0 18px 6px rgba(255,255,255,0.75), 0 0 60px 22px rgba(255,255,255,0.3);
}
@media (prefers-reduced-motion: no-preference){
  .ts-crt{ animation:tsCrtOn 1.2s cubic-bezier(.2,.8,.2,1) both; }
  .ts-power{ animation:tsPowerLine 1.2s ease-out both; }
}
@keyframes tsCrtOn{
  0%   { transform:scale(0, 0.004); filter:brightness(4) saturate(0); }
  32%  { transform:scale(1, 0.004); filter:brightness(4) saturate(0); }
  62%  { transform:scale(1, 1);     filter:brightness(1.8) saturate(0.6); }
  100% { transform:none;            filter:none; }
}
@keyframes tsPowerLine{
  0%   { opacity:1; transform:scaleX(0); }
  32%  { opacity:1; transform:scaleX(1); }
  62%  { opacity:0; transform:scale(1, 90); }
  100% { opacity:0; transform:scale(1, 90); }
}

/* HUD controls */
.ts-hud{ align-items:center; }
.ts-hiscore{ color:var(--mustard); text-decoration:none; }
.ts-hiscore:hover{ color:var(--cream); }
.ts-sound{
  font:inherit; letter-spacing:inherit; text-transform:inherit; color:inherit;
  background:none; border:0; padding:4px 0; cursor:pointer;
}
.ts-sound:hover{ color:var(--cream); }
.ts-sound[aria-pressed="false"]{ color:rgba(250,162,26,0.45); }

/* Focus rings only for keyboard users (main.js adds .kbd on the first Tab) */
.ts-press:focus, .ts-hiscore:focus, .ts-sound:focus{ outline:none; }
.title-screen.kbd .ts-press:focus-visible,
.title-screen.kbd .ts-hiscore:focus-visible,
.title-screen.kbd .ts-sound:focus-visible{ outline:2px solid var(--mustard); outline-offset:6px; border-radius:2px; }

/* Credit spent when the coin goes in */
.title-screen.is-starting .ts-credit{ color:var(--mustard); animation:tsFlicker .12s steps(1,end) 6; }

/* Dust burst as the car floors it */
.ts-puff{
  position:absolute; bottom:12px; width:8px; height:8px;
  background:#d9dde0;
  box-shadow:8px 0 0 #c3c8cc, 0 -8px 0 #eef0f1, -8px 0 0 #c3c8cc;
  pointer-events:none;
}

@media (max-width: 600px){
  .ts-hud{ font-size:0.58rem; padding:14px 16px; }
  .ts-foot{ bottom:84px; gap:12px; font-size:0.56rem; padding:0 16px; }
}

/* ===== SPAWN-IN ON SCROLL (homepage) =====
   main.js adds .spawn to blocks below the hero and .spawned when they scroll into view.
   They rise into place with a small pop and a brief bright flash, like a game item materialising. */
.spawn:not(.spawned){ opacity:0; }
.spawn.spawned{ animation:spawnIn .6s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes spawnIn{
  0%   { opacity:0; transform:translateY(24px) scale(0.97); filter:brightness(1.6); }
  60%  { opacity:1; transform:translateY(-4px) scale(1.01); filter:brightness(1.2); }
  100% { opacity:1; transform:none; filter:none; }
}
@media print{
  .spawn{ opacity:1 !important; animation:none !important; }
}

/* ===== NFC CARD PAGE (card.php) ===== */
.card-wrap{ display:flex; justify-content:center; }
.contact-card{
  width:100%; max-width:480px;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:28px 24px 24px;
  text-align:center;
}
.contact-card-logo{ width:100%; height:auto; margin:0 auto 6px; }
.contact-card-name{ margin:6px 0 4px; font-size:2rem; line-height:1.15; }
.contact-card-role{ margin:0 0 10px; font-weight:700; color:var(--text); }
.contact-card-blurb{ margin:0 auto 22px; color:var(--muted); line-height:1.55; max-width:36ch; }
.contact-card-save{
  display:flex; align-items:center; justify-content:center;
  min-height:60px; border-radius:16px;
  background:var(--raspberry); color:#fff;
  font-size:1.15rem; font-weight:800; text-decoration:none;
  box-shadow:0 10px 22px rgba(237,26,81,0.28);
  transition:transform .2s ease, box-shadow .2s ease;
}
.contact-card-save:hover{ transform:translateY(-2px); box-shadow:0 14px 28px rgba(237,26,81,0.34); }
.contact-card-save:focus-visible{ outline:3px solid var(--mustard); outline-offset:3px; }
.contact-card-hint{ margin:10px 0 20px; font-size:0.9rem; color:var(--muted); }
.contact-card-actions{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.contact-card-actions .btn{ min-height:50px; padding:0 12px; font-size:0.95rem; }
.contact-card-reviews{ display:inline-block; margin-top:20px; font-size:0.9rem; font-weight:700; color:var(--text); }
.contact-card-reviews:hover{ text-decoration:underline; }
.contact-card-stars{ color:#f5b301; letter-spacing:0.05em; margin-right:4px; }
@media (max-width:380px){
  .contact-card-actions{ grid-template-columns:1fr; }
}
