/* ============================================================
   Tezox Theme — Design Tokens & Components
   Ported from Tailwind config + globals.css
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --ink:          #222222;
  --ink-soft:     #575760;
  --ink-muted:    #94a3b8;
  --surface:      #ffffff;
  --surface-soft: #f8fafc;
  --surface-muted:#f0f9ff;
  --brand-navy:   #0f172a;
  --brand-teal:   #0ea5e9;
  --brand-teal-light: #f0f9ff;
  --brand-teal-mid:   #7dd3fc;
  --border:       #e2e8f0;
  --border-soft:  #f1f5f9;

  /* Typography */
  --font-sans: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --container-wide: 80rem;   /* 1280px */
  --container-narrow: 56rem; /* 896px */
  --px: 1.5rem;              /* 24px */
  --px-lg: 2rem;             /* 32px */
}

/* --- Base --- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-teal); text-decoration: none; }
a:hover { text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { color: var(--ink-soft); }

ul { list-style: none; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
}

/* --- Layout --- */
.container-wide {
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

@media (min-width: 1024px) {
  .container-wide,
  .container-narrow {
    padding-left: var(--px-lg);
    padding-right: var(--px-lg);
  }
}

.section     { padding: 4rem 0; }
.section-sm  { padding: 2.5rem 0; }

@media (min-width: 768px) {
  .section    { padding: 6rem 0; }
  .section-sm { padding: 4rem 0; }
}

/* --- Grid --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* --- Components: Labels --- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-teal);
}

.section-label-light {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-teal-mid);
}

.section-label-muted {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* --- Components: Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card-soft {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card-hover {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* --- Components: Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
  font-family: var(--font-sans);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}

.btn-sm  { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
.btn-md  { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-lg  { padding: 0.875rem 1.75rem; font-size: 1rem; }

.btn-primary {
  background: var(--brand-teal);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-primary:hover { background: rgba(14, 165, 233, 0.9); color: #fff; }

.btn-secondary {
  background: var(--brand-navy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-secondary:hover { background: rgba(15, 23, 42, 0.9); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--brand-teal);
  border: 1px solid var(--brand-teal);
}
.btn-ghost:hover { background: var(--brand-teal-light); color: var(--brand-teal); }

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--ink-soft);
  background: var(--surface-soft);
  color: var(--ink);
}

.btn-full { width: 100%; }

/* --- Components: Icon badge --- */
.icon-badge {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge-teal {
  background: var(--brand-teal-light);
  color: var(--brand-teal);
}

.icon-badge-teal-dark {
  background: rgba(14, 165, 233, 0.3);
  color: var(--brand-teal-mid);
}

/* --- Components: Step number --- */
.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-teal);
  margin-bottom: 0.75rem;
}

/* --- Components: Finding badge --- */
.finding-number {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Backgrounds --- */
.bg-white     { background-color: var(--surface); }
.bg-soft      { background-color: var(--surface-soft); }
.bg-muted     { background-color: var(--surface-muted); }
.bg-navy      { background-color: var(--brand-navy); }
.bg-navy .section-label { color: var(--brand-teal-mid); }

.border-top    { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-y      { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* --- Text utilities --- */
.text-ink       { color: var(--ink); }
.text-ink-soft  { color: var(--ink-soft); }
.text-ink-muted { color: var(--ink-muted); }
.text-white     { color: #fff; }
.text-white-75  { color: rgba(255,255,255,0.75); }
.text-white-70  { color: rgba(255,255,255,0.70); }
.text-white-65  { color: rgba(255,255,255,0.65); }
.text-teal      { color: var(--brand-teal); }
.text-teal-mid  { color: var(--brand-teal-mid); }

.text-xs  { font-size: 0.75rem; line-height: 1rem; }
.text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.font-bold     { font-weight: 700; }

.leading-relaxed { line-height: 1.625; }
.leading-snug    { line-height: 1.375; }
.leading-tight   { line-height: 1.25; }

.tracking-tight  { letter-spacing: -0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* --- Spacing utilities --- */
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.pt-8  { padding-top: 2rem; }
.p-5   { padding: 1.25rem; }
.p-6   { padding: 1.5rem; }
.p-8   { padding: 2rem; }

.max-w-prose { max-width: 65ch; }
.max-w-xs    { max-width: 20rem; }
.max-w-2xl   { max-width: 42rem; }
.max-w-3xl   { max-width: 48rem; }
.max-w-4xl   { max-width: 56rem; }
.mx-auto     { margin-left: auto; margin-right: auto; }
.w-full      { width: 100%; }
.shrink-0    { flex-shrink: 0; }
.flex-1      { flex: 1; }

/* --- Misc utilities --- */
.rounded-xl  { border-radius: 0.75rem; }
.rounded-lg  { border-radius: 0.5rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}

.site-header nav {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1.5rem;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 1.75rem;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.nav-dropdown-btn:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.nav-dropdown-btn svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-btn svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.375rem;
  width: 14rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  padding: 0.5rem;
  z-index: 60;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown-menu a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.nav-dropdown-menu .dropdown-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.nav-dropdown-menu .dropdown-footer a {
  font-weight: 500;
  color: var(--brand-teal);
}

.nav-dropdown-menu .dropdown-footer a:hover {
  background: var(--brand-teal-light);
}

/* Header CTA */
.header-cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta .book-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.header-cta .book-link:hover {
  color: var(--ink);
}

/* Mobile toggle */
.mobile-toggle {
  display: block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--ink);
}

.mobile-toggle:hover {
  background: var(--surface-soft);
}

.mobile-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem var(--px);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .mobile-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding: 0.5rem 0.75rem;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.mobile-menu .mobile-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.625rem 1rem;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

.mobile-divider {
  border-top: 1px solid var(--border-soft);
  margin: 0.5rem 0;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .header-cta { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

@media (min-width: 1024px) {
  .site-header nav {
    padding: 0 var(--px-lg);
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand { grid-column: span 1; }
}

.footer-brand img {
  height: 1.75rem;
  width: auto;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.625;
  max-width: 20rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-links a,
.footer-bottom-links span {
  font-size: 0.75rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--ink);
}

/* --- Hero section (homepage) --- */
.hero {
  position: relative;
  background: var(--surface);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(#374151 1px, transparent 1px),
    linear-gradient(90deg, #374151 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 4rem var(--px) 5rem;
}

@media (min-width: 768px) {
  .hero-inner { padding: 6rem var(--px) 7rem; }
}

@media (min-width: 1024px) {
  .hero-inner {
    padding: 6rem var(--px-lg) 7rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.hero-text .section-label { margin-bottom: 1.25rem; }
.hero-text h1 { margin-bottom: 1.5rem; }
.hero-text .hero-body {
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.625;
  margin-bottom: 2rem;
  max-width: 65ch;
}

@media (min-width: 768px) {
  .hero-text .hero-body { font-size: 1.25rem; }
}

.hero-text .hero-note {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hero-preview {
  position: relative;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .hero-preview { margin-top: 0; }
}

.hero-preview-bg {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(135deg, var(--brand-teal-light), var(--surface-soft));
  border-radius: 1.5rem;
  z-index: 0;
}

/* --- Case study preview card --- */
.case-preview {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.case-preview-header {
  margin-bottom: 1.25rem;
}

.case-preview h3 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .case-preview h3 { font-size: 1.875rem; }
}

.case-preview-body {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.625;
  margin-bottom: 1rem;
}

.case-preview-idea {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.case-preview-idea .idea-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-teal);
  margin-bottom: 0.25rem;
}

.case-preview-idea p {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-style: italic;
}

.case-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.case-stat {
  text-align: center;
}

.case-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 768px) {
  .case-stat .stat-value { font-size: 1.875rem; }
}

.case-stat .stat-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.case-stat .stat-sub {
  font-size: 0.625rem;
  color: var(--ink-muted);
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
}

.case-meta .meta-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.case-meta .meta-value {
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 500;
}

/* --- Navy interpretation block --- */
.interpretation-block {
  background: var(--brand-navy);
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
}

.interpretation-block .section-label-light { margin-bottom: 0.75rem; }

.interpretation-block h3 {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.375;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .interpretation-block h3 { font-size: 1.5rem; }
  .interpretation-block { padding: 2rem 2.5rem; }
}

.interpretation-block p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* --- White paper gate --- */
.white-paper-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.white-paper-card .wp-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-teal-mid);
  margin-bottom: 0.75rem;
}

.white-paper-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.375rem;
}

.white-paper-card .wp-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.white-paper-card .wp-description {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1rem;
}

.white-paper-card .wp-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.white-paper-card .wp-meta span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.white-paper-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .white-paper-form {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .white-paper-form input { flex: 1; min-width: 8rem; }
}

.white-paper-form input {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-sans);
}

.white-paper-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.white-paper-form input:focus {
  outline: none;
  border-color: var(--brand-teal);
}

.white-paper-form button {
  white-space: nowrap;
}

/* --- Comparison cards --- */
.comparison-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
}

.comparison-card.featured {
  border-color: var(--brand-teal);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comparison-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.comparison-item svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* --- Steps grid (how it works on homepage) --- */
.steps-grid {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  background: var(--surface);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .step-card {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .step-card:nth-child(4) { border-right: none; border-bottom: 1px solid var(--border); }
  .step-card:last-child { border-right: none; }
}

.step-card:last-child { border-bottom: none; }

.step-card h4 { margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; line-height: 1.625; }

/* --- Pricing cards --- */
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--brand-teal);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.pricing-card .tier-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.pricing-card .tier-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pricing-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.pricing-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand-teal);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* --- Trust card (navy bg) --- */
.trust-card {
  background: rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.trust-card h4 {
  color: #fff;
  margin-bottom: 0.375rem;
}

.trust-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.625;
}

/* --- Security safeguard card --- */
.safeguard-card {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.safeguard-card h4 { margin-bottom: 0.75rem; }
.safeguard-card p { font-size: 0.875rem; line-height: 1.625; }

/* --- Application card --- */
.app-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  color: inherit;
}

.app-card .app-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-teal);
  margin-bottom: 0.5rem;
}

.app-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.app-card:hover h3 { color: var(--brand-teal); }

.app-card .app-tagline {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.625;
  margin-bottom: 1rem;
}

.app-card .app-question {
  background: var(--surface-soft);
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.app-card .app-question .q-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.app-card .app-question p {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-style: italic;
}

/* --- Resource card --- */
.resource-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.resource-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  color: inherit;
}

.resource-card .resource-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-teal);
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.375;
  transition: color 0.2s;
}

.resource-card:hover h3 { color: var(--brand-teal); }

.resource-card .resource-desc {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.625;
  margin-bottom: 1rem;
}

.resource-card .read-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-teal);
}

/* --- Video embed --- */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Forms --- */
.form-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-input::placeholder {
  color: var(--ink-muted);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

textarea.form-input {
  resize: vertical;
  min-height: 6rem;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--ink-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--ink-muted); }
.breadcrumb .current { color: var(--ink-soft); }

/* --- Detail page sections --- */
.detail-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-child { border-bottom: none; }

.detail-section h3 { margin-bottom: 0.75rem; }

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.625;
}

.detail-list li svg {
  width: 1rem;
  height: 1rem;
  color: var(--brand-teal);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* --- Sample findings --- */
.finding-card {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  padding: 1rem;
}

.finding-card .finding-text {
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.confidence-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.confidence-high   { background: #dcfce7; color: #166534; }
.confidence-medium { background: #fef3c7; color: #92400e; }
.confidence-low    { background: #fee2e2; color: #991b1b; }

/* --- Calendly embed --- */
.calendly-embed {
  min-height: 700px;
  border-radius: 0.75rem;
  overflow: hidden;
}

/* --- SVG icons inline --- */
.icon-check, .icon-x, .icon-question, .icon-shield, .icon-chevron, .icon-arrow {
  display: inline-block;
  vertical-align: middle;
}

/* --- Visibility --- */
.hidden-mobile  { display: none; }
.hidden-desktop { display: block; }

@media (min-width: 640px) {
  .hidden-mobile  { display: block; }
}

@media (min-width: 768px) {
  .hidden-desktop { display: none; }
}
