/* ScanSmart v5.0 — Shared brand chrome
   Brand canon per Bible §5 + §10. Used by every page on scansmart.uk
   so design changes are made once, not 13 times.
   30 April 2026 */

:root {
  --navy: #0A1628;
  --navy-deep: #060F1C;
  --navy-soft: #14253D;
  --cream: #F5F0E8;
  --cream-dim: #E8E1D4;
  --red: #C0392B;
  --red-soft: #D85645;
  --green: #1D9E75;
  --green-soft: #2BB888;
  --amber: #E67E22;
  --yellow: #F5C518;
  --muted: #8899AA;
  --muted-dim: #5C6B7C;
  --line: rgba(245, 240, 232, 0.08);
  --line-strong: rgba(245, 240, 232, 0.16);
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--navy); color: var(--cream);
  font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: opacity 0.18s ease; }
a:hover { opacity: 0.78; }
img { max-width: 100%; display: block; height: auto; }
::selection { background: var(--red); color: var(--cream); }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 22, 40, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-lockup { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); letter-spacing: -0.01em; }
.brand-lockup .ss { font-size: 1.35rem; font-weight: 800; color: var(--cream); }
.brand-lockup .tag { font-size: 0.72rem; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* Marque v1 — primary brand banner in the nav (desktop + mobile).
   Per CLAUDE.md banked 27 April 2026 (Marque footer rule + version-numbering).
   Marque is the compact horizontal brand badge; sized to fit alongside primary nav.
   On mobile the marque shrinks rather than disappears — the brand mark always stays. */
.marque-banner { display: inline-flex; align-items: center; line-height: 0; padding: 2px 0; transition: opacity 0.18s ease; }
.marque-banner img, .marque-banner svg { display: block; height: 38px; width: auto; }
.marque-banner:hover { opacity: 0.9; }
.marque-banner:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 820px) {
  .marque-banner img, .marque-banner svg { height: 34px; }
}
@media (max-width: 420px) {
  .marque-banner img, .marque-banner svg { height: 30px; }
  .site-nav-inner { padding: 12px var(--gutter); }
}
.nav-doors { display: flex; gap: 4px; align-items: center; }
.nav-doors a { padding: 8px 14px; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--cream-dim); transition: background 0.18s ease, color 0.18s ease; }
.nav-doors a:hover { background: var(--line-strong); color: var(--cream); opacity: 1; }
.nav-doors a[aria-current="page"] { background: var(--line-strong); color: var(--cream); }
.nav-doors a.cta { background: var(--red); color: var(--cream); font-weight: 700; }
.nav-doors a.cta:hover { background: var(--red-soft); }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }
@media (max-width: 820px) {
  .nav-doors { display: none; }
  .nav-toggle { display: block; }
  .nav-doors.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--navy-deep); padding: 12px var(--gutter); border-bottom: 1px solid var(--line); gap: 4px; }
  .nav-doors.open a { padding: 12px 14px; }
}

/* buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 1rem; font-family: var(--font-body); letter-spacing: 0.01em; text-decoration: none; transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary:hover { background: var(--red-soft); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--line-strong); }

/* page hero */
.page-hero { padding: clamp(56px, 10vw, 120px) var(--gutter) clamp(40px, 7vw, 80px); max-width: var(--max-width); margin: 0 auto; text-align: center; }
.page-hero .door-tag { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.page-hero .door-tag.kip { color: var(--red-soft); }
.page-hero .door-tag.i500 { color: var(--green-soft); }
.page-hero .door-tag.partner { color: var(--yellow); }
.page-hero .door-tag.checkout { color: var(--amber); }
.page-hero .door-tag.support { color: var(--muted); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; color: var(--cream); margin-bottom: 22px; max-width: 880px; margin-left: auto; margin-right: auto; }
.page-hero h1 .accent { color: var(--red-soft); }
.page-hero h1 .accent-green { color: var(--green-soft); }
.page-hero h1 .accent-yellow { color: var(--yellow); }
.page-hero h1 .accent-amber { color: var(--amber); }
.page-hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--cream-dim); max-width: 680px; margin: 0 auto 32px; }
.hero-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* section */
.section { max-width: var(--max-width); margin: 0 auto; padding: clamp(48px, 8vw, 100px) var(--gutter); }
.section-narrow { max-width: 820px; }
.section-eyebrow { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.section h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--cream); margin-bottom: 18px; }
.section h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--cream); margin-bottom: 10px; margin-top: 24px; }
.section p { font-size: 1.02rem; color: var(--cream-dim); margin-bottom: 18px; line-height: 1.65; }
.section p strong { color: var(--cream); font-weight: 700; }
.section ul, .section ol { padding-left: 1.2rem; margin-bottom: 18px; color: var(--cream-dim); }
.section li { margin-bottom: 8px; line-height: 1.6; }
.section a { color: var(--yellow); border-bottom: 1px solid var(--line-strong); }
.section a:hover { border-bottom-color: var(--yellow); opacity: 1; }

/* feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.feature-card { background: linear-gradient(180deg, var(--navy-soft) 0%, rgba(20, 37, 61, 0.4) 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-card .ico { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-soft); margin-bottom: 10px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--cream); margin-bottom: 8px; margin-top: 0; }
.feature-card p { font-size: 0.92rem; color: var(--cream-dim); margin: 0; line-height: 1.55; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, rgba(192, 57, 43, 0.12) 0%, rgba(216, 86, 69, 0.06) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; }
.cta-band .section { text-align: center; padding-top: clamp(56px, 8vw, 80px); padding-bottom: clamp(56px, 8vw, 80px); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 580px; margin-left: auto; margin-right: auto; margin-bottom: 28px; }

/* form */
.form-wrap { max-width: 580px; margin: 36px auto 0; background: var(--navy-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-size: 0.82rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.form-row input, .form-row textarea, .form-row select { background: var(--navy); border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 14px; font-family: var(--font-body); font-size: 0.98rem; color: var(--cream); transition: border-color 0.18s ease; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: var(--yellow); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-msg { font-size: 0.92rem; color: var(--muted); margin-left: 8px; }
.form-msg.ok { color: var(--green-soft); }
.form-msg.err { color: var(--red-soft); }

/* footer */
.site-footer { background: var(--navy-deep); padding: clamp(48px, 8vw, 80px) var(--gutter) 32px; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-lockup { margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; color: var(--muted); line-height: 1.55; max-width: 280px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--muted); }
.footer-col a:hover { color: var(--cream); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.84rem; color: var(--muted-dim); }
.footer-bottom a { color: var(--muted); }
.marque-placeholder { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--cream); padding: 8px 14px; background: var(--navy-soft); border: 1px dashed var(--line-strong); border-radius: 6px; }
.marque-placeholder code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.1em; }

/* utility */
.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; }
*:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* table — used on subscription pricing */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 28px; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { font-family: var(--font-display); font-weight: 700; color: var(--cream); background: var(--navy-soft); font-size: 0.95rem; }
.compare-table td { color: var(--cream-dim); }
.compare-table .tier-name { font-family: var(--font-display); font-weight: 700; color: var(--cream); font-size: 1.05rem; }
.compare-table .tier-price { font-family: var(--font-display); font-weight: 800; color: var(--yellow); font-size: 1.4rem; }
.compare-table .tier-audience { color: var(--muted); font-size: 0.85rem; }

/* checkout entry */
.checkout-entry { background: var(--navy-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 28px; }
.checkout-entry .date { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.checkout-entry h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--cream); margin-bottom: 16px; line-height: 1.25; margin-top: 0; }
.checkout-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.checkout-table th, .checkout-table td { padding: 10px 12px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--line); color: var(--cream-dim); }
.checkout-table th { color: var(--muted); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.tl-dot.red { background: var(--red); }
.tl-dot.amber { background: var(--amber); }
.tl-dot.green { background: var(--green); }

/* library entry */
.lib-entry { padding: 24px 0; border-bottom: 1px solid var(--line); }
.lib-entry:last-child { border-bottom: 0; }
.lib-entry .lib-headline { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.lib-entry .lib-citation { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.lib-entry .lib-summary { font-size: 0.95rem; color: var(--cream-dim); line-height: 1.6; margin-bottom: 10px; }
.lib-entry .lib-link { font-size: 0.85rem; color: var(--yellow); border: 0; }

/* shell notice */
.shell-notice { background: linear-gradient(135deg, rgba(245, 197, 24, 0.08) 0%, rgba(230, 126, 34, 0.04) 100%); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 24px; margin: 32px 0; color: var(--cream-dim); font-size: 0.95rem; }
.shell-notice strong { color: var(--yellow); display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--navy); padding: 12px 18px; font-weight: 700; font-family: var(--font-body); border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; outline: 2px solid var(--cream); outline-offset: 2px; }
