/* ============================================================
   MyQbit.com: the company site
   ------------------------------------------------------------
   Two sites, one voice (Scott, brand/MYQBIT-COM-SITE-COPY.md):
   qbit.app is the product, MyQbit.com is the company. A visitor
   moving between them should not feel a seam, so every token
   below is lifted verbatim from webapp/styles.css and the
   primary button is THE button, not a second one.

   Brand law throughout: no em dashes, en dashes or double
   hyphens in copy; Qbit is "she"; assistant, never companion;
   we say protected and private, never the banned adjective; no
   certification,
   accreditation or seal language anywhere.

   Theming is three-state, matching the app: the bare :root is
   light, the media query carries dark for anyone who never
   chose, and the data-theme stamps let a choice win in either
   direction.
   ============================================================ */

:root {
  color-scheme: light;

  /* Brand. The app's #007BC2 measures 3.9:1 behind small uppercase
     eyebrows on --bg-soft, so the marketing site darkens it one step.
     The gradient tokens below stay verbatim. */
  --qbit-brand: #006ba8;
  --focus-ring: #0b62d6;
  --qbit-card-blue: #279dff;
  /* Gradient start for the white-text pill. Kept in lockstep with
     webapp/styles.css: #279dff fails 4.5:1 behind white across the
     left third of the pill, this clears 4.91:1 throughout. */
  --qbit-grad-start: #0f6fd6;
  --qbit-card-indigo: #3659ff;
  --qbit-card-purple: #8e2dff;

  /* Neutrals: a slight blue bias so they sit with the brand
     rather than reading as unconsidered grey. */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #5a6a7d;
  --border: #e2e8f0;
  --hairline: rgb(15 23 42 / 8%);
  --shadow-card: 0 1px 2px rgb(15 23 42 / 4%), 0 8px 24px rgb(15 23 42 / 6%);

  --measure: 66ch;
  --gutter: clamp(20px, 5vw, 48px);
  --section-gap: clamp(64px, 9vw, 128px);

  --step--1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.4rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1628;
    --bg-soft: #0d1b30;
    --bg-card: #10203a;
    --text: #e2e8f0;
    --text-secondary: #a8b7cc;
    --text-muted: #8496ad;
    --border: #1e3050;
    --hairline: rgb(226 232 240 / 10%);
    --shadow-card: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 34%);
  --qbit-brand: #4aa8e8;
  --focus-ring: #8ed8ff;
    --qbit-brand: #4aa8e8;
    --focus-ring: #8ed8ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1628;
  --bg-soft: #0d1b30;
  --bg-card: #10203a;
  --text: #e2e8f0;
  --text-secondary: #a8b7cc;
  --text-muted: #8496ad;
  --border: #1e3050;
  --hairline: rgb(226 232 240 / 10%);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 34%);
  --qbit-brand: #4aa8e8;
  --focus-ring: #8ed8ff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html { scroll-padding-top: 84px; }
img { max-width: 100%; height: auto; }
a { color: var(--qbit-brand); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 0.4em; letter-spacing: -0.015em; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p  { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--qbit-brand);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-lockup img { width: 36px; height: 36px; }
.brand-lockup span { font-size: 1.25rem; font-weight: 700; color: var(--qbit-brand); }
.site-nav { display: none; gap: 26px; }
.site-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.site-nav a:hover { color: var(--text); }
@media (min-width: 900px) { .site-nav { display: flex; } }
.site-header .qbit-btn-primary { width: auto; min-height: 40px; font-size: 15px; padding: 8px 20px; }

/* ---------- THE primary button (do not fork a second one) ---------- */
.qbit-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 28px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(100deg, var(--qbit-grad-start) 0%, var(--qbit-card-indigo) 48%, var(--qbit-card-purple) 100%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background-origin: border-box;
  box-shadow: 0 8px 20px rgb(27 21 136 / 40%);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}
.qbit-btn-primary::before {
  position: absolute; inset: 0; pointer-events: none; content: "";
  background: linear-gradient(115deg, transparent 26%, rgb(255 255 255 / 16%) 48%, transparent 67%);
  transform: translateX(-110%);
  transition: transform 420ms ease;
}
.qbit-btn-primary:hover { box-shadow: 0 11px 26px rgb(48 30 189 / 48%); filter: saturate(1.08) brightness(1.06); transform: translateY(-1px); }
.qbit-btn-primary:hover::before { transform: translateX(110%); }
.qbit-btn-primary:active { transform: translateY(1px) scale(0.995); }

.link-cta { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; text-decoration: none; }
.link-cta::after { content: "\203A"; font-size: 1.3em; line-height: 0.7; }
.link-cta:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { margin-bottom: 0.5em; }
.hero__lede { font-size: var(--step-1); color: var(--text-secondary); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.hero__art { display: flex; justify-content: center; }
.hero__art img { width: min(320px, 72vw); filter: drop-shadow(0 18px 40px rgb(54 89 255 / 22%)); }

/* ---------- Sections ---------- */
section { padding-block: var(--section-gap); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--hairline); }
.section__head { max-width: var(--measure); margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p { font-size: var(--step-1); color: var(--text-secondary); }

.split { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }

.points { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; gap: 4px; }
.points strong { font-size: var(--step-0); font-weight: 700; }
.points p { margin: 0; color: var(--text-secondary); }

.card {
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.pillars { display: grid; gap: 18px; margin: 34px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
/* One tile rule for every tile on this page. Jimmy's standing rule: like
   items look the same BY CONSTRUCTION, so a new tile joins this selector
   list rather than copying these numbers somewhere else. */
.pillars li,
.support-door {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.pillars strong,
.support-door strong {
  display: block;
  margin-bottom: 6px;
}
.pillars span,
.support-door span {
  color: var(--text-secondary);
  font-size: var(--step--1);
}

.support-doors {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .support-doors { grid-template-columns: repeat(2, 1fr); }
}

/* The support doors are the same tile, made clickable. */
.support-door {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, transform 140ms ease;
}
.support-door:hover,
.support-door:focus-visible {
  border-color: var(--qbit-brand);
  transform: translateY(-2px);
}

/* ---------- Council teaser ---------- */
.council__note {
  margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--qbit-brand);
  background: var(--bg-card); border-radius: 0 12px 12px 0; color: var(--text-secondary);
  font-size: var(--step--1);
}

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--hairline); background: var(--bg-soft); }
.site-footer__grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 12px; font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer__legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--text-muted); font-size: var(--step--1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Visually hidden, still read by screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
