/* VinPremium.co.uk — plain, white, one blue accent. No framework; small and easy to edit. */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --brand-50: #eef4ff;
  --brand-100: #dbe7ff;
  --brand-600: #0a5cdb;
  --brand-700: #0848b0;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --radius: 8px;
  --container: 1152px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
p { margin: 0; }

.text-muted { color: var(--muted); }
.text-brand { color: var(--brand-600); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 6px; font-weight: 600; font-size: .9rem; padding: .7rem 1.3rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-outline { background: #fff; border-color: #cbd5e1; color: var(--ink); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--muted); border: none; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Nav */
.navbar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.navbar .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; border-radius: 6px; background: var(--brand-600); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand .dim { color: #94a3b8; font-weight: 500; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-links a.active, .nav-links a:hover { color: var(--brand-600); }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; }
.mobile-menu a, .mobile-menu button { display: block; width: 100%; text-align: left; padding: .75rem .25rem; font-size: 1rem; text-decoration: none; color: var(--ink); background: none; border: none; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu.open { display: block; }
}

/* Sections */
section { padding: 3.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.border-top { border-top: 1px solid var(--line); }
.bg-soft { background: var(--bg-soft); }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.5rem; }
.card-tight { padding: 1.25rem; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-12 > [class*="col-"] { grid-column: span 12; }
}

/* Hero search */
.plate-input { display: flex; border: 2px solid #111827; border-radius: 8px; overflow: hidden; background: #f7d117; flex: 1; }
.plate-input .flag { width: 44px; flex-shrink: 0; background: #0b3d91; color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.plate-input input { border: none; background: transparent; width: 100%; padding: .9rem .75rem; font-size: 1.4rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #111827; }
.plate-input input:focus { outline: none; }
.search-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.search-row .btn { padding: 0 1.75rem; }
.tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: .75rem; }
.tabs button { background: none; border: none; padding-bottom: .6rem; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--brand-600); border-color: var(--brand-600); }

.step { display: none; }
.step.active { display: block; }
.vehicle-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.vehicle-opt { border: 1px solid var(--line); border-radius: 6px; padding: .75rem .25rem; text-align: center; background: #fff; cursor: pointer; font-size: .75rem; font-weight: 500; }
.vehicle-opt.selected { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-700); }
.vehicle-opt .icon { font-size: 1.5rem; display: block; margin-bottom: .25rem; }
.scan-list { list-style: none; margin: 1rem 0; padding: 0; }
.scan-list li { display: flex; justify-content: space-between; font-size: .9rem; padding: .35rem 0; color: #94a3b8; }
.scan-list li.done { color: var(--ink); }
.scan-list li .tick { color: #059669; font-weight: 700; }
.progress { height: 6px; border-radius: 4px; background: #f1f5f9; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand-600); width: 0; transition: width .3s; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1rem 0; font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--ink); }
.faq-a { display: none; padding: 0 2rem 1.25rem 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .chev { transform: rotate(180deg); }
.chev { transition: transform .2s; color: #64748b; }

/* Pricing cards */
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; background: #fff; }
.plan-card.featured { border: 2px solid var(--brand-600); }
.plan-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.badge { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px; background: #f1f5f9; color: var(--muted); }
.badge.brand { background: var(--brand-600); color: #fff; }
.price { font-size: 2.2rem; font-weight: 800; }
.price-unit { font-size: .85rem; color: var(--muted); }
.feature-list { list-style: none; margin: 1rem 0 1.5rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; flex: 1; }
.feature-list li { display: flex; gap: .6rem; font-size: .9rem; padding: .3rem 0; }
.feature-list li::before { content: "✓"; color: var(--brand-600); font-weight: 700; }

/* Forms */
label.field { display: block; font-size: .875rem; font-weight: 500; color: #334155; margin-bottom: 1rem; }
label.field input, label.field select, label.field textarea {
  display: block; width: 100%; margin-top: .3rem; border: 1px solid #cbd5e1; border-radius: 6px;
  padding: .6rem .8rem; font-size: .9rem; font-family: inherit; color: var(--ink); background: #fff;
}
label.field input:focus, label.field select:focus, label.field textarea:focus { outline: none; border-color: var(--brand-600); }
.checkbox-row { display: flex; gap: .6rem; align-items: flex-start; background: var(--bg-soft); border-radius: 6px; padding: .75rem; margin: 1rem 0; font-size: .9rem; }
.checkbox-row input { margin-top: .2rem; accent-color: var(--brand-600); }
.alert { border-radius: 6px; padding: .7rem .9rem; font-size: .875rem; margin-bottom: 1rem; }
.alert-error { background: #fef2f2; color: #991b1b; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-info { background: #fffbeb; color: #92400e; }

/* Report viewer */
.score-badge { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; color: #fff; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.status-pill { border: 1px solid var(--line); border-radius: 6px; padding: .75rem .9rem; font-size: .85rem; }
.status-pill.clean { border-color: #bbf7d0; background: #f0fdf4; }
.status-pill.warn { border-color: #fde68a; background: #fffbeb; }
.status-pill.bad { border-color: #fecaca; background: #fef2f2; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th, table.data td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid #f1f5f9; }
table.data th { color: var(--muted); font-weight: 600; }
.locked-panel { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; background: var(--bg-soft); }

/* Footer */
footer { border-top: 1px solid var(--line); }
address { font-style: normal; }

/* Admin */
.admin-header { border-bottom: 1px solid var(--line); background: #fff; }
.admin-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; }
.admin-tabs button { border: none; background: none; padding: .45rem 1rem; border-radius: 4px; font-size: .875rem; font-weight: 500; cursor: pointer; color: var(--muted); }
.admin-tabs button.active { background: #0f172a; color: #fff; }
.stat-card { border: 1px solid var(--line); border-radius: 6px; padding: 1rem; background: #fff; }
.stat-card .label { font-size: .85rem; color: var(--muted); }
.stat-card .value { font-size: 1.6rem; font-weight: 800; margin-top: .2rem; }
.bar-row { font-size: .875rem; margin-bottom: .6rem; }
.bar-row .top { display: flex; justify-content: space-between; margin-bottom: .25rem; }
.bar-track { height: 6px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand-600); }
#chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 220px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
#chart-bars .bar-col { flex: 1; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
#chart-bars .bar { width: 100%; background: var(--brand-600); border-radius: 2px 2px 0 0; min-height: 1px; }
#chart-bars .bar.pv { background: #cbd5e1; }
#chart-labels { display: flex; gap: 4px; margin-top: 6px; font-size: .7rem; color: var(--muted); }
#chart-labels span { flex: 1; text-align: center; }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; margin-right: 6px; }
.text-right { text-align: right; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.small { font-size: .8rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.stat-card .label, .stat-card .value, .stat-card .small { display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; } }

/* Honeypot field for bots: hidden from people and screen readers */
.hp { position:absolute !important; left:-10000px !important; width:1px; height:1px; overflow:hidden; }

/* Blog */
.post-card { display:block; text-decoration:none; color:inherit; transition:border-color .15s; }
.post-card:hover { border-color: var(--brand-600); }
.prose { font-size:1.05rem; line-height:1.75; color:#1e293b; }
.prose h2 { font-size:1.45rem; margin:2rem 0 .6rem; }
.prose h3 { font-size:1.2rem; margin:1.5rem 0 .5rem; }
.prose p { margin:0 0 1rem; }
.prose ul, .prose ol { margin:0 0 1rem 1.25rem; padding:0; }
.prose li { margin:.3rem 0; }
.prose a { color: var(--brand-600); text-decoration: underline; }
.prose img { max-width:100%; height:auto; border-radius:8px; margin:1rem 0; }
.prose blockquote { border-left:4px solid var(--brand-600); margin:1rem 0; padding:.4rem 1rem; background:#f8fafc; }
.prose code { background:#f1f5f9; padding:.1rem .35rem; border-radius:4px; font-size:.92em; }
.breadcrumbs { font-size:.85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
