/* Demo pages (index.html, demo.html): the page around the widget, in the PATrC white and blue.
   The widget and the card style themselves (src/styles); this file is only the showcase page. */

:root {
  --blue: #0046be;
  --blue-dark: #003399;
  --blue-deep: #0b1f4d;
  --blue-light: #e8f0fe;
  --surface: #f8f9fb;
  --page: #f3f6fb;
  --border: #dde1ea;
  --ink: #1a1f2e;
  --muted: #5a6478;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 6px 20px rgba(16, 24, 40, 0.07);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

/* Stays at the top while the page scrolls; above the widget's dropdowns (z-index 1000) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(11, 31, 77, 0.25);
}

/* In-page links (#demo) land below the sticky header instead of under it */
html {
  scroll-padding-top: 80px;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.25);
}

.brand-product strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-product span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.header-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-light) 100%);
  border-bottom: 1px solid var(--border);
}

.hero .wrap {
  padding-top: 48px;
  padding-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero .lead {
  margin: 16px 0 28px;
  max-width: 640px;
  font-size: 1.0625rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14), 0 3px 8px rgba(0, 70, 190, 0.22);
}

.button:hover {
  background: var(--blue-dark);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding: 48px 0 8px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.section-head p {
  margin: 8px 0 0;
  max-width: 680px;
  color: var(--muted);
}

/* Steps and info cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.tile {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tile h3 {
  margin: 14px 0 6px;
  font-size: 1.0625rem;
}

.tile p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue);
}

.step-number {
  float: right;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
}

/* "Why" tiles get a blue edge so they read as the reasons */
.tile--reason {
  border-top: 3px solid var(--blue);
}

/* ── Demo ───────────────────────────────────────────────────────────────── */

.demo-panel {
  margin-bottom: 24px;
}

.demo-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-label b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.status-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 48px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--white);
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ── Print: only the Pre-Assessment Tire Card ───────────────────────────── */

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .hero,
  .no-print,
  .site-footer,
  #widget-card,
  .demo-label,
  .status-pill,
  #steps,
  #who,
  #why,
  #demo .section-head {
    display: none !important;
  }

  .section,
  .wrap {
    padding: 0;
    max-width: none;
  }
}
