/* AutoTorque website: one stylesheet for every page. Mobile first.
 * Taken from the Live Chat Monitoring website's site.css (github.com/chiragnm2017/lcm-website), trimmed to what four
 * static pages use: the brand tokens, base, placeholders, buttons, header, home hero, contact, prose, 404 and
 * footer. Everything below the :root block reads tokens, so AutoTorque's own colours, once Gavin sends the logo,
 * change only that block.
 */

/* ==== BRAND TOKENS ===========================================================================================
 * AutoTorque Concierge's brand (Gavin, 19 October 2026): Cobalt Pulse #0047FF for links, eyebrows and solid buttons
 * with white text on it (6.3:1), Concierge Navy #071B4D for the ink and the footer. The other tones are tints of the
 * two, each checked against WCAG AA. The type is Inter, self-hosted: Inter Display for headings and buttons (the
 * font's optical size 32), Inter's text cut for the body.
 */
:root{
  --c-bg:#FFFFFF;
  --c-surface:#FFFFFF;
  --c-tint:#F3F6FC;
  --c-ink:#071B4D;
  --c-text:#2B3550;
  --c-muted:#4C5A78;
  --c-line:#DDE3F0;
  --c-primary:#0047FF;
  --c-primary-hover:#0036C2;
  --c-on-primary:#FFFFFF;
  --c-link:#0047FF;
  --c-link-hover:#071B4D;
  --c-dark:#071B4D;
  --c-on-dark:#FFFFFF;
  --c-on-dark-muted:#C9D3EA;
  --c-on-dark-accent:#8FAEFF;
  --c-focus:#071B4D;
  --c-focus-on-dark:#FFFFFF;
  --c-ph-bg:#FFF3BF;
  --c-ph-ink:#4D3B00;
  --c-ph-line:#B38F00;
  --c-glow:#D6E2FF;
  --c-glow-2:#E6EDFF;
  --c-glow-top:#F7F9FF;
  --c-glow-foot:#EEF3FF;

  --font-sans:'Inter','Inter Fallback',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  --font-display:var(--font-sans);

  /* The LCM family's type scale: only display and h2 change with the screen. */
  --fs-label:.75rem;
  --fs-small:.875rem;
  --fs-base:1rem;
  --fs-lede:1.125rem;
  --fs-title:1.25rem;
  --fs-h2:clamp(1.75rem,.25rem + 3.125vw,2.25rem);
  --fs-display:clamp(2.25rem,4.6875vw,3rem);

  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-5:1.5rem;
  --space-6:2rem; --space-7:3rem; --space-8:4rem; --space-9:6rem;

  --radius-s:8px; --radius-m:12px; --radius-l:16px;
  --shadow-soft:0 8px 24px rgba(45,41,40,.08);
  --max:1200px;
  --header-h:4.5rem;
}

/* ==== fonts ===============================================================================================
 * Inter's Latin subset, one variable file with weight and optical size axes, under the SIL Open Font License
 * (OFL.txt beside it), from Fontsource 5.3.0. The fallback face is Arial sized like Inter, so nothing moves when
 * Inter swaps in. */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter Fallback';src:local('Arial'),local('ArialMT'),local('Liberation Sans'),local('LiberationSans');
  size-adjust:107.06%;ascent-override:90.49%;descent-override:22.56%;line-gap-override:0%}

/* ==== base ================================================================================================ */
*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + 1rem)}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{font-family:var(--font-sans);font-optical-sizing:auto;font-size:var(--fs-base);line-height:1.6;letter-spacing:0;color:var(--c-text);background:var(--c-bg);
  min-height:100vh;display:flex;flex-direction:column;overflow-wrap:break-word}
main{flex:1 0 auto}
img{display:block;max-width:100%;height:auto}
ul,ol{list-style:none}
a{color:var(--c-link);text-underline-offset:.18em}
a:hover{color:var(--c-link-hover)}
/* Links inside running text stay underlined, so colour is never the only cue. */
main p a:not(.btn),main li a:not(.btn),main dd a{text-decoration:underline}
h1,h2,h3,.btn,.eyebrow,.contact-card dt,.contact-card dd{font-variation-settings:'opsz' 32}
h1,h2,h3{font-family:var(--font-display);color:var(--c-ink);line-height:1.15;text-wrap:balance}
h1{font-size:var(--fs-display);font-weight:700;line-height:1.08;letter-spacing:-.025em}
h2{font-size:var(--fs-h2);font-weight:700;letter-spacing:-.02em}
h3{font-size:var(--fs-title);font-weight:600;letter-spacing:-.01em}
p{text-wrap:pretty}
strong{color:var(--c-ink);font-weight:600}
:focus-visible{outline:3px solid var(--c-focus);outline-offset:3px;border-radius:4px}
.site-footer :focus-visible{outline-color:var(--c-focus-on-dark)}
.skip{position:absolute;left:-999px;top:0;z-index:100;background:var(--c-dark);color:var(--c-on-dark);padding:.75rem 1rem;border-radius:var(--radius-s)}
.skip:focus,.skip:hover{left:1rem;top:1rem;color:var(--c-on-dark)}

.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 1rem}
@media(min-width:640px){.wrap{padding:0 1.5rem}}
.section{padding:var(--space-8) 0}
@media(min-width:900px){.section{padding:var(--space-9) 0}}
.section--tint{background:var(--c-tint)}
.eyebrow{font-family:var(--font-display);font-size:var(--fs-label);font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--c-ink);margin-bottom:var(--space-3)}
.eyebrow::before{content:"";display:inline-block;width:1.5rem;height:3px;margin-right:.625rem;vertical-align:middle;
  background:var(--c-primary);border-radius:2px}
.lede{font-size:var(--fs-lede);line-height:1.55;max-width:40rem}
/* Two or three key words of a heading take the brand colour, never a whole line. */
.hl{color:var(--c-primary)}

/* ==== placeholders ========================================================================================
 * Every [[SOURCE: ...]] stays fully visible, so nobody mistakes a gap for copy: the body face, never larger than
 * body size, on a soft tint with a rule at its start. A whole-element slot (ph--slot) is one block under a "To
 * source" label; one inside a sentence stays inline. node scripts/check.mjs --launch fails while any remains.
 */
.ph{background:var(--c-ph-bg);color:var(--c-ph-ink);border-left:3px solid var(--c-ph-line);border-radius:0 3px 3px 0;
  font:400 min(1em,var(--fs-base))/1.5 var(--font-sans);letter-spacing:0;text-transform:none;padding:.0625em .3em;
  overflow-wrap:anywhere}
.ph--slot{display:block;padding:var(--space-2) var(--space-3);text-align:left;border-radius:0 var(--radius-s) var(--radius-s) 0}
.ph--slot::before{content:"To source";content:"To source"/"";display:block;margin-bottom:var(--space-1);font-family:var(--font-display);
  font-size:var(--fs-label);font-weight:600;line-height:1.3;letter-spacing:.12em;text-transform:uppercase}

/* ==== buttons =============================================================================================
 * Rounded rectangles at the small radius, as the LCM family's. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:3rem;padding:.5rem 1.5rem;
  border-radius:var(--radius-s);border:2px solid transparent;font-family:var(--font-display);font-weight:600;font-size:var(--fs-base);
  line-height:1.2;white-space:nowrap;text-decoration:none;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
.btn-primary{background:var(--c-primary);color:var(--c-on-primary)}
.btn-primary:hover{background:var(--c-primary-hover);color:var(--c-on-primary)}
.btn-outline{border-color:var(--c-ink);color:var(--c-ink);background:transparent}
.btn-outline:hover{background:var(--c-ink);color:var(--c-on-dark)}
.btn-lg{min-height:3.375rem;padding:.625rem 1.875rem}
.btn-sm{position:relative;min-height:2.5rem;padding:.375rem 1.125rem}
/* The small button grows its hit area to 44px, not its outline. */
.btn-sm::after{content:"";position:absolute;left:-2px;right:-2px;top:50%;height:max(100% + 4px,2.75rem);transform:translateY(-50%)}
.actions{display:flex;flex-wrap:wrap;gap:var(--space-3);align-items:center}

/* ==== header ==============================================================================================
 * The brand is the name in the heading face until the logo arrives; the logo image then replaces the word in the
 * header and the footer. */
.site-header{position:sticky;top:0;z-index:50;background:var(--c-bg);border-bottom:1px solid var(--c-line)}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);min-height:var(--header-h)}
.brand{display:inline-flex;align-items:center;flex-shrink:1;min-height:2.75rem;min-width:0;text-decoration:none;color:var(--c-ink)}
.brand:hover{color:var(--c-ink)}
.brand-logo{width:auto;height:2rem;max-width:100%}
@media(max-width:30em){.site-header .brand-logo{height:1.375rem}}
@media(max-width:22.5em){.site-header .brand-logo{height:1.125rem}}
/* The logo's navy CONCIERGE needs a light surface, so in the footer it sits on a white plate. */
.site-footer .brand{background:var(--c-surface);padding:.75rem 1rem;border-radius:var(--radius-m)}
.site-footer .brand-logo{height:1.75rem}
.site-nav{display:flex;align-items:center;gap:var(--space-5)}
.site-nav a:not(.btn){display:none;align-items:center;min-height:2.75rem;color:var(--c-text);font-weight:600;text-decoration:none;white-space:nowrap}
.site-nav a:not(.btn):hover,.site-nav a[aria-current="page"]{color:var(--c-ink)}
.site-nav a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--c-primary);text-decoration-thickness:3px;text-underline-offset:.4em}
@media(min-width:40em){.site-nav a:not(.btn){display:inline-flex}}

/* ==== home ================================================================================================ */
.hero{position:relative;isolation:isolate;overflow:hidden;padding:var(--space-8) 0;
  background:radial-gradient(46rem 34rem at 80% 38%,var(--c-glow) 0%,transparent 68%),
    radial-gradient(32rem 26rem at 6% 90%,var(--c-glow-2) 0%,transparent 70%),
    linear-gradient(180deg,var(--c-glow-top) 0%,var(--c-glow-foot) 100%)}
@media(min-width:960px){.hero{padding:var(--space-9) 0 7.5rem}}
.hero-text{max-width:44rem}
.hero-mark{width:auto;height:5rem;margin-bottom:var(--space-6)}
.hero-text h1{margin-bottom:var(--space-5)}
.hero-text .lede{margin-bottom:var(--space-6)}

.contact-grid{display:grid;gap:var(--space-6)}
@media(min-width:900px){.contact-grid{grid-template-columns:1fr 1.2fr;gap:var(--space-8);align-items:start}}
.contact-grid h2{margin-bottom:var(--space-4)}
.contact-list{display:grid;gap:var(--space-4)}
@media(min-width:640px) and (max-width:899px),(min-width:1200px){.contact-list{grid-template-columns:auto 1fr}}
.contact-card{background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--radius-l);padding:var(--space-5);box-shadow:var(--shadow-soft);min-width:0}
.contact-card dt{font-family:var(--font-display);font-size:var(--fs-label);font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--c-muted);margin-bottom:var(--space-2)}
.contact-card dd{font-family:var(--font-display);font-size:var(--fs-lede);font-weight:600;color:var(--c-ink);overflow-wrap:anywhere}
.contact-card dd a{color:var(--c-ink)}
.contact-card dd.contact-note{margin-top:var(--space-1);font-family:var(--font-sans);font-size:var(--fs-small);font-weight:400;color:var(--c-muted);font-variation-settings:normal}
.contact-card dd a:hover{color:var(--c-link)}
.contact-legal{margin-top:var(--space-5);font-size:var(--fs-small);color:var(--c-muted)}

/* ==== legal pages ========================================================================================= */
.page-head{padding:var(--space-7) 0;background:var(--c-tint)}
@media(min-width:960px){.page-head{padding:var(--space-8) 0}}
.page-head h1{margin-bottom:var(--space-4)}
.meta{color:var(--c-muted);font-size:var(--fs-small)}
.prose{max-width:46rem;margin:0 auto}
.prose h2{font-size:var(--fs-title);font-weight:600;letter-spacing:-.01em;margin:var(--space-7) 0 var(--space-3)}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:var(--fs-base);font-weight:600;margin:var(--space-5) 0 var(--space-2)}
.prose p,.prose li{margin-bottom:var(--space-4)}
.prose ul{list-style:disc;padding-left:1.25rem}
.prose li::marker{color:var(--c-primary)}
.prose address{font-style:normal;margin-bottom:var(--space-4)}
.prose a{text-decoration:underline}
.prose-end{margin-top:var(--space-7);padding-top:var(--space-5);border-top:1px solid var(--c-line)}

/* ==== 404 ================================================================================================= */
.lost{padding:var(--space-9) 0;text-align:center}
.lost h1{margin-bottom:var(--space-4)}
.lost p{font-size:var(--fs-lede);line-height:1.55;margin:0 auto var(--space-6);max-width:36rem}
.lost .actions{justify-content:center}

/* ==== footer ============================================================================================== */
.site-footer{background:var(--c-dark);color:var(--c-on-dark-muted);padding:var(--space-8) 0 var(--space-6)}
.site-footer .brand,.site-footer .brand:hover{color:var(--c-on-dark)}
.footer-grid{display:grid;gap:var(--space-6);grid-template-columns:repeat(2,minmax(0,1fr))}
.footer-brand{grid-column:1/-1}
@media(min-width:960px){.footer-grid{grid-template-columns:1.6fr repeat(2,1fr)}.footer-brand{grid-column:auto}}
.footer-contact{margin-top:var(--space-4);display:flex;flex-direction:column;gap:var(--space-2);font-size:var(--fs-small)}
.site-footer h2{font-size:var(--fs-base);font-weight:600;color:var(--c-on-dark);margin-bottom:var(--space-3);letter-spacing:0}
.site-footer a{color:var(--c-on-dark-muted);text-decoration:none}
.site-footer a:hover{color:var(--c-on-dark);text-decoration:underline}
.site-footer li a{display:inline-flex;align-items:center;min-height:2.75rem}
.footer-contact a{color:var(--c-on-dark);text-decoration:underline}
.footer-bottom{margin-top:var(--space-7);padding-top:var(--space-5);border-top:1px solid rgba(255,255,255,.16);
  display:flex;flex-wrap:wrap;gap:var(--space-3) var(--space-6);justify-content:space-between;font-size:var(--fs-small)}

@media(forced-colors:active){.ph{border:1px solid CanvasText}}
