/* ============================================================================
   SE Worldwide EHS — marketing site design system.
   Standalone (no framework). Brand tokens mirror the app's app.css so the
   marketing site and the product read as one brand.
   ============================================================================ */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Brand — professional blue + slate neutrals (from app.css) */
  --brand:        #1857b8;
  --brand-hover:  #14488f;
  --brand-700:    #103a72;
  --brand-050:    #eef4fd;
  --brand-100:    #dce8fa;

  /* Ink / surfaces */
  --ink:          #111a29;   /* near-black slate for dark sections */
  --ink-2:        #17223a;
  --text:         #1f2a37;
  --text-muted:   #647084;
  --text-invert:  #eaf1fb;
  --text-invert-muted: #a9b8d0;

  --bg:           #ffffff;
  --bg-subtle:    #f6f8fb;
  --bg-tint:      #eef3fa;
  --surface:      #ffffff;
  --border:       #e3e8ef;
  --border-strong:#d3dbe6;

  /* Accents for status/vertical color-coding (accessible on white) */
  --green:        #167c53;
  --amber:        #b45309;
  --red:          #b42318;
  --teal:         #0e7490;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Radius + elevation */
  --radius:     .75rem;
  --radius-sm:  .45rem;
  --radius-lg:  1.1rem;
  --shadow-sm:  0 1px 2px rgba(16,24,40,.06);
  --shadow:     0 2px 8px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md:  0 12px 30px rgba(16,24,40,.12);
  --shadow-lg:  0 24px 60px rgba(16,24,40,.16);

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.2rem);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
:focus-visible { outline: 3px solid rgba(24,87,184,.45); outline-offset: 2px; border-radius: 3px; }

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 780px; }
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section-sm { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.section-tint { background: var(--bg-subtle); }
.section-brand-tint { background: linear-gradient(180deg, var(--brand-050), #fff); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .8rem;
}
.eyebrow-invert { color: #7fb0ff; }
.lede { font-size: 1.2rem; color: var(--text-muted); max-width: 46ch; }
.lede.center { margin-inline: auto; }
.section-head { max-width: 42rem; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .8rem 1.35rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, transform .12s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--brand-050); color: var(--brand-hover); border-color: var(--brand-100); }
.btn-invert { background: #fff; color: var(--brand-700); }
.btn-invert:hover { background: #f0f5ff; color: var(--brand-700); }
.btn-invert-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-invert-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.08rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand .brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { display:block; font-size:.62rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color: var(--text-muted); margin-top:1px; }
.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-links a.nav-link {
  color: var(--text); font-weight: 550; font-size: .97rem; padding: .5rem .7rem; border-radius: var(--radius-sm);
}
.nav-links a.nav-link:hover { color: var(--brand); background: var(--bg-subtle); }
.nav-cta { display: flex; align-items: center; gap: .6rem; margin-left: .6rem; }
.nav-cta .signin { font-weight: 600; font-size: .95rem; padding: .5rem .4rem; }

/* dropdown */
.nav-drop { position: relative; }
.nav-drop > button {
  font: inherit; font-weight: 550; font-size: .97rem; color: var(--text); background: none; border: 0;
  cursor: pointer; padding: .5rem .7rem; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: .3rem;
}
.nav-drop > button:hover { color: var(--brand); background: var(--bg-subtle); }
.nav-drop > button::after { content: ""; width: .42em; height: .42em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .6; }
.nav-menu {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem .6rem; border-radius: var(--radius-sm); color: var(--text); }
.nav-menu a:hover { background: var(--bg-subtle); }
.nav-menu a b { display: block; font-weight: 600; font-size: .95rem; }
.nav-menu a span { display: block; font-size: .82rem; color: var(--text-muted); line-height: 1.35; }
.nav-menu a .ico { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: .2s; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: .6rem var(--gutter) 1.1rem; margin: 0;
    box-shadow: var(--shadow-md); display: none; max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-link, .nav-drop > button { width: 100%; text-align: left; padding: .8rem .4rem; font-size: 1.05rem; }
  .nav-drop { }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; margin: 0 0 .5rem .6rem; padding: 0 0 0 .4rem; min-width: 0; }
  .nav-menu a span { display: none; }
  .nav-cta { margin: .6rem 0 0; flex-direction: column; align-items: stretch; }
  .nav-cta .signin { text-align: center; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: var(--text-invert);
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(45,110,220,.42), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(20,58,114,.6), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #0f1b34 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px; -webkit-mask-image: radial-gradient(1000px 480px at 70% 0%, #000, transparent 75%); mask-image: radial-gradient(1000px 480px at 70% 0%, #000, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.4rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.hero h1 { color: #fff; }
.hero h1 .accent { background: linear-gradient(90deg, #8fc0ff, #cfe0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--text-invert-muted); font-size: 1.25rem; max-width: 40ch; }
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:.5rem; font-size:.82rem; font-weight:600; letter-spacing:.02em;
  color: var(--text-invert); background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  padding:.4rem .8rem; border-radius:999px; margin-bottom:1.4rem;
}
.hero-eyebrow .dot { width:7px; height:7px; border-radius:50%; background:#5ee6a8; box-shadow:0 0 0 3px rgba(94,230,168,.25); }
.hero-trust { margin-top: 1.8rem; font-size: .9rem; color: var(--text-invert-muted); display:flex; flex-wrap:wrap; gap:.4rem 1.3rem; }
.hero-trust b { color:#fff; font-weight:600; }

/* Hero product panel (pure-CSS app mock) */
.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.98), #fff);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--text);
  padding: 1.1rem; border: 1px solid rgba(255,255,255,.5); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
}
@media (max-width: 940px){ .hero-panel { transform: none; } }
.hero-panel .panel-bar { display:flex; align-items:center; gap:.4rem; padding:.2rem .3rem .7rem; }
.hero-panel .panel-bar i { width:9px; height:9px; border-radius:50%; background:#e2e6ee; display:inline-block; }
.hero-panel .panel-title { margin-left:.5rem; font-size:.8rem; color:var(--text-muted); font-weight:600; }
.mini-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:.6rem; margin-bottom:.7rem; }
.mini-kpi { background: var(--bg-subtle); border:1px solid var(--border); border-radius: var(--radius-sm); padding:.6rem .7rem; }
.mini-kpi .n { font-size:1.4rem; font-weight:700; letter-spacing:-.02em; }
.mini-kpi .l { font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); font-weight:600; }
.mini-kpi .n.good { color: var(--green); } .mini-kpi .n.warn { color: var(--amber); }
.mini-row { display:flex; align-items:center; gap:.6rem; padding:.55rem .2rem; border-top:1px solid var(--border); font-size:.85rem; }
.mini-row .tag { font-size:.66rem; font-weight:700; padding:.15rem .45rem; border-radius:999px; }
.tag-green { background:#e6f4ee; color:var(--green);} .tag-amber{ background:#fdf1e3; color:var(--amber);} .tag-blue{ background:var(--brand-050); color:var(--brand);} .tag-red{background:#fdeceb;color:var(--red);}
.mini-row .grow { flex:1; color:var(--text-muted); }

/* ---- Marquee / trust bar ----------------------------------------------- */
.trustbar { border-block: 1px solid var(--border); background:#fff; }
.trustbar .wrap { display:flex; flex-wrap:wrap; align-items:center; gap: .8rem 2.2rem; padding-block: 1.1rem; justify-content:center; }
.trustbar .lbl { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); }
.reg-chip { display:inline-flex; align-items:center; gap:.45rem; font-weight:600; font-size:.92rem; color:var(--text); }
.reg-chip svg { width:18px; height:18px; color:var(--brand); }

/* ---- Cards -------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-strong); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 1rem; }
.card .ico-badge { width: 46px; height: 46px; border-radius: 12px; display:grid; place-items:center; background: var(--brand-050); color: var(--brand); margin-bottom: 1rem; }
.card .ico-badge svg { width: 24px; height: 24px; }
.card-link { display:inline-flex; align-items:center; gap:.35rem; font-weight:600; margin-top:1rem; font-size:.95rem; }
.card-link::after { content:"→"; transition: transform .15s; }
.card-link:hover::after { transform: translateX(3px); }

/* feature list check */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--brand-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231857b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checklist.invert li { color: var(--text-invert); }
.checklist.tight li { margin-bottom: .45rem; font-size: .98rem; }

/* ---- Day-in-the-life timeline ------------------------------------------ */
.timeline { position: relative; margin-top: 2.4rem; }
.timeline::before { content:""; position:absolute; left: 26px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-100), var(--border)); }
@media (max-width: 620px){ .timeline::before { left: 18px; } }
.tl-item { position: relative; padding-left: 4.6rem; margin-bottom: 2rem; }
@media (max-width: 620px){ .tl-item { padding-left: 3.4rem; } }
.tl-item:last-child { margin-bottom: 0; }
.tl-time { position:absolute; left:0; top:0; width: 54px; height: 54px; border-radius: 50%; background:#fff; border:2px solid var(--brand-100); color: var(--brand); display:grid; place-items:center; font-weight:700; font-size:.82rem; box-shadow: var(--shadow-sm); }
@media (max-width: 620px){ .tl-time{ width:38px; height:38px; font-size:.62rem; } }
.tl-item h3 { margin-bottom:.3rem; }
.tl-item p { color: var(--text-muted); margin-bottom:.4rem; }
.tl-item .who { font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--brand); }

/* ---- Split feature rows ------------------------------------------------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items:center; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: 1.6rem; } .split.reverse .split-media { order: 0; } }
.split-media { background: var(--bg-subtle); border:1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); }

/* ---- Stats band --------------------------------------------------------- */
.statband { display:grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align:center; }
@media (max-width: 720px){ .statband { grid-template-columns: repeat(2,1fr); gap:1.6rem; } }
.statband .n { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.statband .l { color: var(--text-muted); font-size: .95rem; margin-top: .2rem; }

/* ---- Big CTA band (dark) ----------------------------------------------- */
.cta-band { color: var(--text-invert); background: linear-gradient(150deg, var(--brand-700), var(--brand) 70%, #2f74d6); border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.6rem); text-align:center; box-shadow: var(--shadow-md); }
.cta-band h2 { color:#fff; } .cta-band p { color: rgba(255,255,255,.85); max-width: 48ch; margin-inline:auto; }

/* ---- Verticals ---------------------------------------------------------- */
.vert-card { display:block; color: var(--text); }
.vert-card .ico-badge { background: var(--brand-050); }
.vert-card:hover { color: var(--text); }

/* ---- Pricing ------------------------------------------------------------ */
.price-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; align-items:stretch; }
@media (max-width: 860px){ .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline:auto; } }
.price-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-md); position:relative; }
.price-card.featured::before { content:"Most popular"; position:absolute; top:-.8rem; left:50%; transform:translateX(-50%); background:var(--brand); color:#fff; font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:.25rem .7rem; border-radius:999px; }
.price-card h3 { margin-bottom:.2rem; }
.price-card .tier-sub { color:var(--text-muted); font-size:.95rem; min-height:2.6em; }
.price-card .price { font-size:1.05rem; font-weight:600; color:var(--text); margin:.6rem 0 1rem; }
.price-card .price b { font-size:1.4rem; }
.price-card .checklist { flex:1; margin-top:.6rem; }
.price-card .checklist li { font-size:.95rem; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline:auto; }
.faq details { border-bottom:1px solid var(--border); padding: 1.1rem 0; }
.faq summary { cursor:pointer; font-weight:600; font-size:1.08rem; list-style:none; display:flex; justify-content:space-between; gap:1rem; align-items:center; color:var(--text); }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size:1.5rem; font-weight:400; color:var(--brand); transition:transform .2s; line-height:1; }
.faq details[open] summary::after { transform:rotate(45deg); }
.faq details p { margin:.9rem 0 0; color:var(--text-muted); }

/* ---- Forms / demo ------------------------------------------------------- */
.form-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.4rem, 4vw, 2.2rem); }
.field { margin-bottom: 1rem; }
.field label { display:block; font-weight:600; font-size:.92rem; margin-bottom:.35rem; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width:100%; font: inherit; font-size:1rem; color:var(--text); background:#fff;
  border:1.5px solid var(--border-strong); border-radius: var(--radius-sm); padding:.7rem .8rem; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24,87,184,.14); }
.field textarea { min-height: 110px; resize: vertical; }
.field-2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:560px){ .field-2 { grid-template-columns:1fr; gap:0; } }
.form-note { font-size:.82rem; color:var(--text-muted); }
.form-status { padding:.9rem 1rem; border-radius:var(--radius-sm); font-weight:500; margin-bottom:1rem; display:none; }
.form-status.err { display:block; background:#fdeceb; color:var(--red); border:1px solid #f4c9c5; }
.form-success { display:none; text-align:center; padding:1rem 0; }
.form-success .tick { width:64px; height:64px; border-radius:50%; background:#e6f4ee; color:var(--green); display:grid; place-items:center; margin:0 auto 1rem; }
.form-success .tick svg { width:32px; height:32px; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-invert-muted); padding-block: 3.2rem 2rem; margin-top: 0; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px){ .footer-grid { grid-template-columns: 1fr 1fr; gap:2rem 1.4rem; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color:#fff; margin-bottom:.9rem; }
.site-footer .brand small { color: var(--text-invert-muted); }
.site-footer p { color: var(--text-invert-muted); font-size:.95rem; max-width: 34ch; }
.footer-col h4 { color:#fff; font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:1rem; }
.footer-col a { display:block; color: var(--text-invert-muted); padding:.28rem 0; font-size:.95rem; }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; margin-top:2.4rem; padding-top:1.4rem; border-top:1px solid rgba(255,255,255,.1); font-size:.85rem; }
.footer-bottom a { color: var(--text-invert-muted); } .footer-bottom a:hover { color:#fff; }

/* ---- Scroll reveal ------------------------------------------------------
   Content is visible by default. Only when JS is confirmed (html.js) do we
   hide-then-reveal, so no-JS / crawlers / slow-JS always see the content. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity:1; transform:none; transition:none; } }

/* ---- Misc utilities ----------------------------------------------------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}
.muted{color:var(--text-muted)}.small{font-size:.9rem}.tiny{font-size:.8rem}
.pill { display:inline-block; font-size:.75rem; font-weight:700; letter-spacing:.03em; padding:.25rem .6rem; border-radius:999px; background:var(--brand-050); color:var(--brand); }
.divider-note { text-align:center; color:var(--text-muted); font-size:.9rem; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; } .prose h3 { margin-top: 1.6rem; }
.anchor { scroll-margin-top: 84px; }

/* ---- Resources / blog --------------------------------------------------- */
.cat-chip { display:inline-block; font-size:.72rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.06em; color:var(--brand); background:var(--brand-050); padding:.32rem .62rem; border-radius:999px; }
.post-meta { color:var(--text-muted); font-size:.9rem; }
.crumbs { color:var(--text-muted); font-size:.9rem; margin-bottom:1rem; }
.crumbs a { color:var(--text-muted); } .crumbs a:hover { color:var(--brand); }
.article-head { max-width: 70ch; margin-bottom: 2rem; }
.article-head .cat-chip { margin-bottom:.9rem; }
.article-head h1 { margin:.2rem 0 .6rem; }
.article-body { margin-top: .5rem; }
.article-body > p:first-of-type { font-size: 1.15rem; color: var(--text); }
.article-body blockquote { margin:1.4rem 0; padding:.2rem 0 .2rem 1.2rem; border-left:3px solid var(--brand);
  color:var(--text-muted); font-size:1.02rem; }
.article-body blockquote p:last-child { margin-bottom:0; }
.article-body ul, .article-body ol { padding-left:1.3rem; } .article-body li { margin-bottom:.4rem; }
.post-disclaimer { margin-top:2.4rem; padding-top:1.2rem; border-top:1px solid var(--border);
  color:var(--text-muted); font-size:.85rem; }
.related { margin-top:3rem; padding-top:2rem; border-top:1px solid var(--border); }
.related h3 { margin-bottom:1.2rem; }
/* index */
.filter-row { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1.8rem; }
.filter-chip { font:inherit; font-size:.9rem; font-weight:600; cursor:pointer; color:var(--text-muted);
  background:#fff; border:1.5px solid var(--border-strong); padding:.42rem .9rem; border-radius:999px; transition:all .15s ease; }
.filter-chip:hover { color:var(--brand); border-color:var(--brand); }
.filter-chip.is-active { color:#fff; background:var(--brand); border-color:var(--brand); }
.resource-card { display:flex; flex-direction:column; align-items:flex-start; gap:.55rem; }
.resource-card .cat-chip { margin-bottom:.2rem; }
.resource-card h3 { margin:0; } .resource-card p { margin:0; color:var(--text-muted); }
.resource-card .card-link { margin-top:auto; }
.resource-card.is-hidden { display:none; }
/* inline CTA band */
.cta-inline { display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
.cta-inline h2 { margin-bottom:.4rem; } .cta-inline .lede { margin-bottom:0; max-width:52ch; }

/* Capability-status badges. Deliberately visible: "built but never run against a live IdP" is a real
   distinction to an enterprise buyer, and burying it is how a marketing page becomes a contract dispute. */
.badge-live, .badge-unproven {
  display:inline-block; vertical-align:middle; margin-left:.5rem;
  font-size:.62rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  padding:.18rem .45rem; border-radius:999px; white-space:nowrap;
}
.badge-live { background:#e6f4ea; color:#1e6b34; border:1px solid #b7e0c4; }
.badge-unproven { background:#fdf3e3; color:#8a5a12; border:1px solid #f0d9ae; }

/* "no" verdict on the straight-answers page. A qualifier you have to hunt for is a qualifier that isn't
   really there — so the honest no is as visible as the yes. */
.badge-no {
  display:inline-block; vertical-align:middle; margin-left:.5rem;
  font-size:.62rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  padding:.18rem .45rem; border-radius:999px; white-space:nowrap;
  background:#fdeaea; color:#992222; border:1px solid #f2c3c3;
}

/* ===================== The product-question agent ==========================
   Unobtrusive but obvious: a pill in the corner that says what it is, rather than a mystery bubble.
   No model behind it — every answer is a card from the published guides, which is why it can afford to
   promise "nothing here is invented". */
.agent-launcher {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand, #1857b8); color: #fff; font: inherit; font-weight: 600; font-size: .9rem;
  box-shadow: 0 6px 24px rgba(24, 87, 184, .28);
}
.agent-launcher:hover { filter: brightness(1.08); }
.agent-launcher-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: rgba(255,255,255,.22); font-weight: 700; font-size: .8rem;
}

/* An author `display:flex` BEATS the [hidden] attribute (which only sets display:none in the UA stylesheet).
   Without this rule the panel was never actually hidden — it sat invisible on top of the launcher and ate the
   click, so the widget could never be opened at all. */
.agent-panel[hidden] { display: none; }

.agent-panel {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 61;
  display: flex; flex-direction: column;
  width: min(28rem, calc(100vw - 2.5rem)); max-height: min(34rem, calc(100vh - 3rem));
  background: #fff; border: 1px solid var(--border, #e3e8ef); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .18); overflow: hidden;
}
.agent-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border, #e3e8ef); background: #f8fafc;
}
.agent-close { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #64748b; }

.agent-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .85rem; }
.agent-msg p { margin: 0; font-size: .92rem; line-height: 1.5; }
.agent-you { align-self: flex-end; max-width: 85%; background: var(--brand, #1857b8); color: #fff;
             padding: .55rem .8rem; border-radius: 12px 12px 2px 12px; }
.agent-bot { align-self: flex-start; max-width: 92%; background: #f1f5f9; color: #0f172a;
             padding: .65rem .85rem; border-radius: 12px 12px 12px 2px; }

/* A point worth stopping on — tinted and edged, so it reads as an aside the reader is meant to actually read. */
.callout {
  background: var(--brand-050);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  max-width: 62rem;
  margin-inline: auto;
}
.callout h3 { margin-bottom: .5rem; }
.callout p { max-width: none; }

/* The capability list — what we cover, when someone asks what we cover. */
.agent-bullets { margin: .6rem 0 0; padding-left: 1.05rem; display: flex; flex-direction: column; gap: .3rem; }
.agent-bullets li { font-size: .87rem; line-height: 1.45; color: #1e293b; }

/* The ask-back. Tinted and edged so it reads as a person asking a question, not as more brochure copy. */
.agent-followup { background: #eef4ff; border-left: 3px solid var(--brand, #1857b8); }
.agent-followup p { font-weight: 500; }

.agent-links { display: flex; flex-direction: column; gap: .3rem; margin-top: .6rem; }
.agent-link { font-size: .85rem; font-weight: 600; color: var(--brand, #1857b8); text-decoration: none; }
.agent-link:hover { text-decoration: underline; }
.agent-link-sub { font-weight: 400; color: #64748b; }

.agent-email { margin-top: .75rem; }
.agent-email-row { display: flex; gap: .4rem; }
.agent-email-input { flex: 1; min-width: 0; padding: .45rem .6rem; font: inherit; font-size: .85rem;
                     border: 1px solid var(--border, #e3e8ef); border-radius: 8px; }
.agent-email-note { margin: .4rem 0 0; font-size: .75rem; color: #64748b; }
.agent-email-done { margin: 0; font-size: .85rem; font-weight: 600; color: #1e6b34; }

.agent-form { display: flex; gap: .4rem; padding: .75rem 1rem; border-top: 1px solid var(--border, #e3e8ef); }
.agent-input { flex: 1; min-width: 0; padding: .5rem .7rem; font: inherit; font-size: .9rem;
               border: 1px solid var(--border, #e3e8ef); border-radius: 8px; }
.agent-foot { margin: 0; padding: 0 1rem .75rem; font-size: .72rem; color: #64748b; }

/* Voice input button. Turns red while recording; the transcript then goes through the brain like typed text. */
.agent-mic { flex: none; width: 38px; border: 1px solid var(--border, #e3e8ef); border-radius: 8px;
             background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.agent-mic:hover { border-color: var(--brand, #1857b8); }
.agent-mic-on { background: #fdeceb; border-color: #d64545; animation: agent-pulse 1.1s ease-in-out infinite; }
@keyframes agent-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(214,69,69,.45); } 50% { box-shadow: 0 0 0 5px rgba(214,69,69,0); } }
@media (prefers-reduced-motion: reduce) { .agent-mic-on { animation: none; } }

/* The "thinking" placeholder shown while the conversational model is phrasing a verified answer. */
.agent-typing p { color: #94a3b8; letter-spacing: .15em; }

@media (max-width: 480px) {
  .agent-launcher-text { display: none; }
  .agent-panel { right: .6rem; left: .6rem; bottom: .6rem; width: auto; }
}
