/* ============================================================
   BSLR — shared site stylesheet
   Single source of truth for every page on bslr.app.
   Brand: steel blue #336380 + orange #EC8822 (from the BSLR logo).
   ============================================================ */

:root{
  --brand:#336380;
  --brand-dark:#27506A;
  --brand-tint:#F1F6F9;
  --accent:#EC8822;          /* graphical accents only - fails AA as text on white */
  --accent-text:#A35A12;     /* AA-safe orange for text (5.0:1 on white) */
  --ink:#0F172A;
  --body:#475569;
  --muted:#64748B;
  --border:#E2E8F0;
  --surface:#F8FAFC;
  --maxw:1120px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
section[id],div[id]{scroll-margin-top:88px}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
  .card:hover,.fcard:hover{transform:none}
}
body{
  margin:0;background:#fff;color:var(--body);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;
}
h1,h2,h3{color:var(--ink);line-height:1.2;letter-spacing:-0.02em;margin:0}
p{margin:0}
a{color:var(--brand)}
img{max-width:100%}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* skip link - keyboard users land here first */
.skip{
  position:absolute;left:-9999px;top:0;z-index:60;
  background:var(--brand);color:#fff;padding:12px 20px;border-radius:0 0 8px 0;
  font-weight:600;text-decoration:none;
}
.skip:focus{left:0}

/* ---------- header ---------- */
.site-header{
  border-bottom:1px solid var(--border);position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.93);backdrop-filter:saturate(180%) blur(8px);
}
.header-inner{display:flex;align-items:center;gap:16px;min-height:74px}
.brand{display:flex;align-items:center;text-decoration:none;margin-right:auto}
.brand img{display:block;height:36px;width:auto}
/* Tagline beside the logo. Set like the page's own display type - the same
   weight 800 and tight tracking the H1s use - just small enough to sit under
   the 36px logo without competing with it. The first pass was 13.5px regular
   in --muted, which read as a caption that had drifted into the header rather
   than as the brand line.
   Inside the brand link but aria-hidden, so the link's accessible name stays
   "BSLR home" rather than growing a second phrase. Hidden below 768px so the
   header never crowds on a phone; display:none in a media query means no
   post-load reflow. Existing tokens only. */
.brand-tag{
  margin-left:15px;padding-left:16px;border-left:1px solid var(--border);
  font-size:15.5px;font-weight:800;letter-spacing:-0.02em;
  color:var(--brand-dark);white-space:nowrap;
}
@media (max-width:768px){ .brand-tag{display:none} }
.site-nav{display:flex;align-items:center;gap:30px;margin-right:8px}
.site-nav a{
  font-size:15px;font-weight:500;color:var(--body);text-decoration:none;padding:6px 0;
  border-bottom:2px solid transparent;white-space:nowrap;
  transition:color .15s ease,border-color .15s ease;
}
.site-nav a:hover{color:var(--brand);border-bottom-color:var(--accent)}
.header-cta{display:flex;align-items:center;gap:10px}
.header-link{
  font-size:15px;font-weight:600;color:var(--brand);text-decoration:none;padding:10px 16px;
  border:1px solid var(--border);border-radius:8px;white-space:nowrap;
  transition:border-color .15s ease,background-color .15s ease;
}
.header-link:hover{border-color:var(--brand);background:var(--brand-tint)}
.header-link.solid{background:var(--brand);color:#fff;border-color:var(--brand)}
.header-link.solid:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
@media (max-width:900px){ .site-nav{display:none} .header-link.solid{display:none} }

/* ---------- buttons ---------- */
.cta-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:34px}
.btn{
  display:inline-block;text-decoration:none;font-weight:600;font-size:16px;padding:15px 30px;
  border-radius:10px;border:1px solid transparent;cursor:pointer;font-family:inherit;
  transition:background-color .15s ease,border-color .15s ease;
}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-dark)}
.btn-secondary{background:#fff;color:var(--brand);border-color:var(--border)}
.btn-secondary:hover{border-color:var(--brand);background:var(--brand-tint)}

/* ---------- section furniture ---------- */
section{padding:76px 0}
.section-tint,.tint{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.eyebrow{
  font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent-text);margin-bottom:14px;
}
.section-title{font-size:clamp(26px,3.4vw,36px);font-weight:700;max-width:22ch}
.section-lede{margin-top:16px;max-width:62ch;font-size:17px}

/* ---------- home hero ---------- */
.hero{padding:76px 0 72px}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.hero h1{font-size:clamp(40px,6vw,68px);font-weight:800;letter-spacing:-0.035em;line-height:1.02}
.hero h1 .dot{color:var(--accent)}
.hero-sub{margin-top:24px;font-size:clamp(17px,2.1vw,20px);max-width:52ch}
.hero-sub strong{color:var(--ink);font-weight:600}

/* ---------- hero rotator ---------- */
.stage{position:relative}
.stage-frame{
  position:relative;border:1px solid var(--border);border-radius:14px;background:#fff;
  box-shadow:0 18px 44px rgba(15,23,42,.09);overflow:hidden;
}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .7s ease;padding:22px}
.slide.on{opacity:1;position:relative}
.slide svg{display:block;width:100%;height:auto}
.slide-cap{margin-top:14px;font-size:14px;color:var(--muted);text-align:center;min-height:44px}
.slide-cap b{color:var(--ink);font-weight:600}
.dots{display:flex;justify-content:center;gap:4px;margin-top:12px}
.dots button{  /* 28px hit area, 9px visible dot - WCAG 2.2 target size */
  width:28px;height:28px;padding:0;border:0;background:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;border-radius:6px;
}
.dots button::before{
  content:"";display:block;width:9px;height:9px;border-radius:50%;background:#CBD5E1;
  transition:background-color .2s ease,width .2s ease;
}
.dots button[aria-current="true"]::before{background:var(--accent);width:24px;border-radius:5px}
.illus-note{margin-top:12px;font-size:12.5px;color:var(--muted);text-align:center}

/* ---------- module card grid ---------- */
.grid{display:grid;gap:18px;margin-top:44px;grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.card{
  border:1px solid var(--border);border-radius:12px;background:#fff;padding:24px 24px 26px;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.card:hover{transform:translateY(-4px) scale(1.015);box-shadow:0 14px 32px rgba(15,23,42,.10);border-color:#CBD5E1}
.card h3{font-size:17px;font-weight:700;margin-bottom:9px}
.card p{font-size:15.5px;line-height:1.6;color:var(--muted)}
.card .bar{
  display:block;width:30px;height:3px;border-radius:2px;background:var(--accent);
  margin-bottom:16px;transition:width .2s ease;
}
.card:hover .bar{width:52px}
a.card{display:block;text-decoration:none;color:inherit}
a.card h3{color:var(--brand)}
a.card .more{display:inline-block;margin-top:12px;font-size:14px;font-weight:600;color:var(--brand)}
a.card:hover .more{text-decoration:underline}

/* ---------- how-it-works steps ---------- */
.steps{display:grid;gap:22px;margin-top:44px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.step{border-top:3px solid var(--accent);padding-top:22px}
.step .num{
  font-size:13px;font-weight:700;letter-spacing:.1em;color:var(--accent-text);
  text-transform:uppercase;margin-bottom:10px;
}
.step h3{font-size:19px;font-weight:700;margin-bottom:10px}
.step p{font-size:16px;color:var(--body)}

/* ---------- security ---------- */
.sec-grid{display:grid;gap:30px;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));margin-top:44px}
.sec-col h3{
  font-size:15px;font-weight:700;color:var(--ink);margin-bottom:16px;
  padding-bottom:12px;border-bottom:2px solid var(--accent);display:inline-block;
}
.sec-col ul{list-style:none;margin:0;padding:0}
.sec-col li{display:flex;gap:11px;align-items:flex-start;margin-bottom:13px;font-size:15.5px;line-height:1.55;color:var(--body)}
.sec-col svg{flex:0 0 auto;margin-top:4px}
.sec-note{
  margin-top:38px;padding:20px 22px;border:1px solid var(--border);border-left:4px solid var(--brand);
  border-radius:8px;background:#fff;font-size:15.5px;color:var(--body);max-width:74ch;
}
.sec-note b{color:var(--ink)}

/* ---------- module pages ---------- */
.crumbs{font-size:14px;color:var(--muted);padding:22px 0 0}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--brand);text-decoration:underline}
.mhero{padding:34px 0 66px}
.mhero h1{font-size:clamp(32px,5vw,50px);font-weight:800;max-width:18ch;line-height:1.08}
.mhero .lede{margin-top:22px;font-size:clamp(17px,2.1vw,20px);max-width:60ch}

/* figures - wide interface images */
.figure{
  margin-top:40px;border:1px solid var(--border);border-radius:14px;background:#fff;
  padding:26px;box-shadow:0 14px 34px rgba(15,23,42,.07);
}
.figure svg,.figure img{display:block;width:100%;height:auto;border-radius:8px}
.figcap{margin-top:16px;font-size:14px;color:var(--body);text-align:center}
/* On phones a 1450px-wide interface shot is unreadable when scaled to fit, so it keeps
   a legible width and scrolls horizontally inside its own frame instead. */
.figure .scroll-hint{display:none}
.figure .shot{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:8px}

.feat{display:grid;gap:18px;margin-top:44px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.fcard{
  border:1px solid var(--border);border-radius:12px;background:#fff;padding:24px;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.fcard:hover{transform:translateY(-4px) scale(1.015);box-shadow:0 14px 32px rgba(15,23,42,.10);border-color:#CBD5E1}
.fcard .bar{
  display:block;width:30px;height:3px;border-radius:2px;background:var(--accent);
  margin-bottom:16px;transition:width .2s ease;
}
.fcard:hover .bar{width:52px}
.fcard h3{font-size:17px;font-weight:700;margin-bottom:9px}
.fcard p{font-size:15.5px;line-height:1.6;color:var(--muted)}

.flow{display:flex;flex-wrap:wrap;gap:10px;margin-top:36px}
.pill{
  border:1px solid var(--border);background:#fff;border-radius:999px;padding:9px 18px;
  font-size:14.5px;font-weight:600;color:var(--body);
}
.pill.live{border-color:var(--accent);color:var(--accent-text);background:#FEF6EE}

/* Module maturity badges — three states, deliberately distinct so the reader can
   tell them apart at a glance. Kept in the .pill family (same shape, size and
   weight) but separate from .pill.live, which marks a workflow state inside the
   flow strips and carries no maturity meaning.
     ms-roadmap : specified, not built
     ms-dev     : data layer built, interface in progress
     ms-rollout : shipping to tenants now                                     */
.pill.ms{font-size:10.5px;padding:3px 10px;letter-spacing:.05em}
.pill.ms-roadmap{border-color:#CBD5E1;color:#475569;background:#F1F5F9}
.pill.ms-dev{border-color:#9EC1D4;color:#27506A;background:#EEF4F7}
.pill.ms-rollout{border-color:var(--accent);color:var(--accent-text);background:#FEF6EE}

/* FAQ disclosure list. <details> so the answers are in the DOM for crawlers and
   AI agents whether or not a human has opened them - a JS accordion would hide
   the text from anything that does not execute scripts. */
.qa-list{margin-top:40px;border-top:1px solid var(--border)}
.qa{border-bottom:1px solid var(--border)}
.qa summary{
  list-style:none;cursor:pointer;padding:20px 34px 20px 0;position:relative;
  font-size:17px;font-weight:700;color:var(--ink);line-height:1.45;
}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{
  content:"";position:absolute;right:6px;top:27px;width:9px;height:9px;
  border-right:2px solid var(--brand);border-bottom:2px solid var(--brand);
  transform:rotate(45deg);transition:transform .18s ease;
}
.qa[open] summary::after{transform:rotate(-135deg);top:31px}
.qa summary:hover{color:var(--brand)}
.qa p{padding:0 34px 22px 0;font-size:15.5px;line-height:1.65;color:var(--muted);max-width:78ch}

/* phone-shaped figure (mobile capture) */
.split{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;margin-top:8px}
.phonefig{display:flex;justify-content:center}
.phonefig img{
  width:100%;max-width:320px;height:auto;display:block;border-radius:22px;
  box-shadow:0 18px 44px rgba(15,23,42,.14);
}

/* ---------- prose (policy pages) ---------- */
.prose{max-width:74ch;margin-top:30px}
.prose h2{font-size:22px;font-weight:700;margin:38px 0 12px}
.prose h3{font-size:17px;font-weight:700;margin:26px 0 8px}
.prose p{margin-bottom:14px}
.prose ul{margin:0 0 16px;padding-left:22px}
.prose li{margin-bottom:8px}
.prose table{width:100%;border-collapse:collapse;margin:8px 0 20px;font-size:15.5px}
.prose th,.prose td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:top}
.prose th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.prose .updated{font-size:14px;color:var(--muted)}
.callout{
  border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:8px;
  background:var(--surface);padding:18px 20px;margin:22px 0;font-size:15.5px;
}

/* ---------- contact form ---------- */
.form{max-width:620px;margin-top:34px}
.form .fr{margin-bottom:18px}
.form label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:7px}
.form input,.form select,.form textarea{
  width:100%;font:inherit;font-size:16px;color:var(--ink);background:#fff;
  border:1px solid #CBD5E1;border-radius:10px;padding:12px 14px;
}
.form input:focus,.form select:focus,.form textarea:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px rgba(51,99,128,.15)}
.form textarea{min-height:120px;resize:vertical}
.form .hint{font-size:13px;color:var(--muted);margin-top:6px}
.form .hp{position:absolute;left:-9999px}
.form-msg{margin-top:18px;padding:14px 16px;border-radius:10px;font-size:15px;display:none}
.form-msg.ok{display:block;background:#F0FAF5;border:1px solid #BCE5D2;color:#14603F}
.form-msg.err{display:block;background:#FEF6F6;border:1px solid #F3D9D9;color:#7C2222}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--border);padding:52px 0 34px;background:var(--surface)}
.footer-cols{display:grid;gap:36px;grid-template-columns:1.5fr 2fr .8fr;margin-bottom:38px}
/* The Platform list is 18 modules - a single column made the footer taller
   than most of the pages linking from it. Split with CSS columns rather than
   two <ul>s in the markup, so the split lives in one place instead of being
   duplicated across 21 pages, and the list stays one list for screen readers. */
.footer-cols .fcols{columns:2;column-gap:30px}
.footer-cols .fcols li{break-inside:avoid}
.footer-cols img{height:32px;width:auto;display:block;margin-bottom:16px}
.footer-cols .blurb{font-size:15px;color:var(--muted);max-width:34ch}
.footer-cols h4{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);margin:0 0 14px}
.footer-cols ul{list-style:none;margin:0;padding:0}
.footer-cols li{margin-bottom:10px}
.footer-cols li a{font-size:15px;color:var(--muted);text-decoration:none}
.footer-cols li a:hover{color:var(--brand);text-decoration:underline}
.footer-bar{
  border-top:1px solid var(--border);padding-top:22px;display:flex;flex-wrap:wrap;
  align-items:center;gap:10px 22px;font-size:14px;color:var(--muted);
}
.footer-bar .name{font-weight:700;color:var(--ink)}
.footer-bar a{color:var(--muted);text-decoration:none}
.footer-bar a:hover{color:var(--brand);text-decoration:underline}
.footer-legal{margin-top:12px;font-size:13.5px;color:var(--muted);line-height:1.6}
.dot-sep{color:#CBD5E1}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .hero-grid,.split{grid-template-columns:1fr;gap:40px}
  .hero{padding:56px 0}
}
@media (max-width:640px){
  body{font-size:16px}
  .wrap{padding:0 20px}
  .header-inner{min-height:64px}
  .brand img{height:28px}
  .header-link{padding:11px 14px;font-size:14px}
  .hero{padding:44px 0 48px}
  .mhero{padding:24px 0 48px}
  .cta-row{margin-top:30px}
  .btn{flex:1 1 100%;text-align:center;padding:16px 24px}
  section{padding:56px 0}
  .grid,.feat{gap:14px;margin-top:34px;grid-template-columns:1fr}
  .card,.fcard{padding:22px}
  .card:hover,.fcard:hover{transform:none;box-shadow:none;border-color:var(--border)}
  .card:hover .bar,.fcard:hover .bar{width:30px}
  .slide{padding:14px}
  .figure{padding:14px}
  .figure .scroll-hint{display:block;font-size:12.5px;color:var(--muted);text-align:center;margin-bottom:10px}
  .figure .shot img{min-width:840px}
  .footer-cols{grid-template-columns:1fr;gap:30px;margin-bottom:30px}
  .footer-cols .fcols{column-gap:20px}
  .footer-bar{flex-direction:column;align-items:flex-start;gap:6px}
  .dot-sep{display:none}
}

/* ---------- draft / legal markers (privacy notice) ---------- */
.draft-banner{
  margin-top:8px;border:1px solid #F1E2C0;border-left:4px solid var(--accent);
  background:#FFFBEB;border-radius:8px;padding:18px 20px;font-size:15px;color:#5C4310;
  line-height:1.6;max-width:74ch;
}
.draft-banner b{color:#7C2D12;display:block;margin-bottom:6px}
.todo{
  background:#FEF3C7;border:1px dashed #D97706;border-radius:4px;
  padding:1px 6px;font-size:.92em;font-weight:600;color:#7C2D12;white-space:normal;
}

/* hero rotator now carries real interface images of differing heights:
   crop to one aspect from the top-left so the frame never jumps between slides */
.stage-frame .shot img{
  aspect-ratio:16/10;object-fit:cover;object-position:top left;
  border-radius:8px;width:100%;height:auto;
}

/* hero device mockup — carries its own shadow, so no card frame around it */
.devices img{display:block;width:100%;height:auto}
.devices .illus-note{margin-top:6px;text-align:left}
@media (max-width:900px){ .devices{margin-top:8px} }

/* ---------- radius scale (documented, per taste-skill's consistency rule) ----
   The spread is one value per job, not drift:
     2px    accent rules (.bar) - a 3px-tall bar is a line, not a shape
     4px    focus ring, draft banner - tight utility chrome
     5-6px  small parts inside components (carousel dots, icon buttons)
     8px    image wells (.shot) and the tint corner
     10px   interactive controls: buttons, text inputs, form messages
     12px   feature and module cards
     14px   large surfaces: .figure, device frame, .viz-card
     22px   phone bezel in the capture demo - a physical object, not a card
     999px  pills and badges
     50%    avatars
   Normalised in this pass: text input and .form-msg 9px -> 10px so every
   control matches .btn; one card surface 16px -> 14px to join the surface tier.
   ------------------------------------------------------------------------- */

/* footer freshness stamp. The value is written at deploy time from the file's
   real mtime, the same source as the sitemap <lastmod>, so the two cannot drift. */
.footer-bar .updated{ color:var(--muted) }

/* immutable-cache propagation check, W4-3. If you can read this line in the
   served stylesheet, a content edit reached the browser through a one-year
   immutable Cache-Control, because deploy.py gave it a new URL. */
