/* SecureTrak — one stylesheet for the site, the account and admin.
   Tokens: plate yellow is used for the number plate and the brand dot only. */
:root {
    --st-ink: #1B2430;
    --st-ink-soft: #4A5563;
    --st-map: #EEF1EC;        /* OS-map paper */
    --st-map-line: #D3DAD0;
    --st-route: #2357C6;      /* actions and links */
    --st-route-dark: #1A45A0;
    --st-plate: #FFD200;
    --st-white: #FFFFFF;
    --st-display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
    --st-body: "Barlow", Arial, Helvetica, sans-serif;
    --bs-body-font-family: var(--st-body);
    --bs-body-color: var(--st-ink);
    --bs-link-color-rgb: 35, 87, 198;
    --bs-link-hover-color-rgb: 26, 69, 160;
}
body { background: var(--st-map); color: var(--st-ink); font-family: var(--st-body); font-size: 1.0625rem; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
.st-main { flex: 1; }
.st-app .st-main, .st-admin .st-main { padding: 2rem 0 3rem; background: var(--st-white); }
h1, h2, h3, .h5 { font-family: var(--st-display); font-weight: 700; letter-spacing: -0.005em; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); margin-bottom: .9rem; }
h3 { font-size: 1.3rem; font-weight: 600; }
a { color: var(--st-route); }
:focus-visible { outline: 3px solid var(--st-route); outline-offset: 2px; }
.btn-primary { --bs-btn-bg: var(--st-route); --bs-btn-border-color: var(--st-route); --bs-btn-hover-bg: var(--st-route-dark); --bs-btn-hover-border-color: var(--st-route-dark); --bs-btn-active-bg: var(--st-route-dark); font-weight: 600; }
.btn-outline-dark { --bs-btn-color: var(--st-ink); --bs-btn-border-color: var(--st-ink); font-weight: 600; }
.st-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .st-wrap { padding: 0 32px; } }
.st-skip { position: absolute; left: -9999px; }
.st-skip:focus { left: 16px; top: 8px; z-index: 1000; background: var(--st-white); padding: .5rem 1rem; }

/* Brand */
.st-brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--st-ink); text-decoration: none; font-family: var(--st-display); font-weight: 700; font-size: 1.35rem; }
.st-brand-mark { width: 26px; height: 26px; color: var(--st-ink); }

/* Site header / footer */
.st-site-header { padding: 1.1rem 0; }
.st-site-header-row, .st-app-header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.st-site-nav, .st-app-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.st-site-nav a:not(.btn), .st-app-nav a { color: var(--st-ink); text-decoration: none; font-weight: 500; }
.st-site-nav a:not(.btn):hover, .st-app-nav a:hover { text-decoration: underline; }
.st-app-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.st-link-btn { color: var(--st-ink); padding: 0; font-weight: 500; text-decoration: none; }
.st-app-header { background: var(--st-map); border-bottom: 1px solid var(--st-map-line); padding: .8rem 0; }
.st-admin-header { background: var(--st-ink); }
.st-admin-header .st-brand, .st-admin-header .st-brand-mark, .st-admin-header .st-app-nav a, .st-admin-header .st-link-btn { color: var(--st-white); }
.st-admin-badge { background: var(--st-plate); color: var(--st-ink); font-weight: 600; font-size: .8rem; padding: .1rem .55rem; border-radius: 3px; margin-right: auto; }
.st-footer { padding: 2rem 0; color: var(--st-ink-soft); font-size: .95rem; border-top: 1px solid var(--st-map-line); }
.st-footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.st-footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.st-footer a { color: var(--st-ink-soft); }

/* Hero: the number plate is the one bold element */
.st-hero { padding: 2.5rem 0 4rem; }
.st-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.st-hero-grid > *, .st-plan-grid > * { min-width: 0; }
@media (min-width: 992px) { .st-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } .st-hero { padding: 4rem 0 5.5rem; } }
.st-hero h1 { max-width: 15ch; margin-bottom: 1.1rem; }
.st-lede { font-size: 1.2rem; max-width: 34em; color: var(--st-ink-soft); }
.st-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.st-note { font-size: .95rem; color: var(--st-ink-soft); }
.st-hero-plate { margin: 0; }
.st-plate { display: flex; align-items: stretch; background: var(--st-plate); border: 3px solid var(--st-ink); border-radius: 10px; box-shadow: 0 2px 0 var(--st-ink), 0 18px 40px -18px rgba(27, 36, 48, .55); overflow: hidden; transform: rotate(-2deg); }
.st-plate-band { background: #003399; color: var(--st-plate); font-family: var(--st-display); font-weight: 700; font-size: clamp(.9rem, 2vw, 1.2rem); writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; padding: .6rem .45rem; }
.st-plate-code { flex: 1; font-family: var(--st-display); font-weight: 700; color: #000; font-size: clamp(1.5rem, 8vw, 4.4rem); letter-spacing: .04em; text-align: center; padding: .7rem .6rem; white-space: nowrap; }
.st-hero-plate figcaption { margin-top: 1.5rem; color: var(--st-ink-soft); max-width: 30em; }
@media (prefers-reduced-motion: no-preference) {
    .st-plate { animation: st-plate-in .7s cubic-bezier(.2, .8, .2, 1) both .1s; }
    @keyframes st-plate-in { from { transform: rotate(-9deg) translateY(18px); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
}

/* Sections */
.st-section { padding: 3.5rem 0; border-top: 1px solid var(--st-map-line); }
.st-section-plan { background: var(--st-white); }
.st-steps { list-style: none; counter-reset: step; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 768px) { .st-steps { grid-template-columns: repeat(3, 1fr); } }
.st-steps li { counter-increment: step; border-left: 3px solid var(--st-ink); padding-left: 1.1rem; }
.st-steps li::before { content: counter(step); display: block; font-family: var(--st-display); font-weight: 700; font-size: 2.6rem; line-height: 1; margin-bottom: .5rem; color: var(--st-route); }
.st-steps p { color: var(--st-ink-soft); max-width: 32em; }
.st-plan-grid { display: grid; gap: 2rem; }
@media (min-width: 992px) { .st-plan-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.st-plan-list { list-style: none; padding: 0; margin: 0; }
.st-plan-list li { padding: .85rem 0; border-bottom: 1px dashed var(--st-map-line); }
.st-plan-list li:first-child { padding-top: 0; }
.st-faq { max-width: 760px; }
.st-faq details { border-bottom: 1px solid var(--st-map-line); padding: .9rem 0; }
.st-faq summary { font-weight: 600; cursor: pointer; }
.st-faq details p { margin: .6rem 0 0; color: var(--st-ink-soft); }

/* Prose pages */
.st-prose { max-width: 760px; padding-top: 1.5rem; padding-bottom: 3rem; }
.st-prose h1 { margin-bottom: 1.2rem; }
.st-prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.st-draft { background: var(--st-white); border-left: 4px solid var(--st-plate); padding: .75rem 1rem; }
.st-form { max-width: 420px; }

/* Account and admin */
.st-page-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.5rem; }
.st-empty { border: 2px dashed var(--st-map-line); border-radius: 8px; padding: 2rem; max-width: 640px; }
.st-empty h2 { font-size: 1.4rem; }
.st-facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; max-width: 560px; }
.st-facts dt { font-weight: 600; }
.st-facts dd { margin: 0; }
.st-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.st-stats > div { display: flex; flex-direction: column; }
.st-stat-n { font-family: var(--st-display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.st-table { max-width: 100%; }
@media (max-width: 767px) { .st-table { display: block; overflow-x: auto; } }
