/*
 * OhanaSecure Brand Library
 * Canonical design system for all subpages
 * Version: 2.0 — July 2026
 * Linear-inspired: scroll reveals, clean hierarchy, dark-first
 *
 * TEMPLATE TYPES:
 *   .page-type-guide     — tool setup guides (guides/*.html)
 *   .page-type-checklist — interactive checklists
 *   .page-type-utility   — city/SEO/landing subpages
 *   .page-type-confirm   — confirmation/success pages
 */

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── DESIGN TOKENS ───────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --brand-coral:   #f08769;
  --brand-rose:    #e17896;
  --brand-mauve:   #c87ab4;
  --brand-indigo:  #8c87dc;
  --brand-teal:    #5ab4d2;

  /* Gradients */
  --gradient:      linear-gradient(135deg, #f08769 0%, #e17896 35%, #c87ab4 65%, #8c87dc 100%);
  --gradient-text: linear-gradient(135deg, #f0a569 0%, #e17896 40%, #b478c8 70%, #7878dc 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(240,135,105,0.12) 0%, rgba(140,135,220,0.12) 100%);

  /* Surfaces */
  --bg:            #0c0b0f;
  --surface:       #121118;
  --surface-card:  #1a1924;
  --surface-hover: #1f1d2b;
  --border:        #2a2836;
  --border-subtle: #1f1d2a;

  /* Text */
  --text:          #e8e6f0;
  --text-muted:    #8b8a9e;
  --text-faint:    #5a5870;

  /* Semantic */
  --check-color:   #5ab4d2;
  --accent:        #c87ab4;
  --accent-glow:   rgba(200,122,180,0.15);

  /* Typography */
  --font-display:  'Sora', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --duration: 200ms;
}

/* ── BODY BASE ───────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ── LAYOUT UTILITIES ────────────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}
.container--narrow { max-width: 700px; }
.container--wide   { max-width: 1100px; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 11, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}
.nav--scrolled {
  background: rgba(12, 11, 15, 0.96);
  box-shadow: 0 1px 24px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img { width: 28px; height: 28px; object-fit: contain; }
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration), background var(--duration);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--duration), border-color var(--duration), background var(--duration);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.06); }
.btn-github {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color var(--duration), border-color var(--duration), background var(--duration);
}
.btn-github:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.375rem;
  margin-left: auto;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem 1.5rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(12,11,15,0.97);
}
.nav-mobile-menu.is-open { display: flex; }
.nav-mobile-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration), background var(--duration);
}
.nav-mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-mobile-github {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.nav-progress {
  height: 2px;
  background: var(--gradient);
  width: 0%;
  transition: width 80ms linear;
  position: absolute;
  bottom: 0;
  left: 0;
}

@media (max-width: 720px) {
  .nav-links, .btn-github { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-wordmark { font-size: 0.9rem; }
}

/* ── BREADCRUMB ──────────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.breadcrumb-inner a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration);
}
.breadcrumb-inner a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text-faint); }
.breadcrumb-current { color: var(--text-muted); }

/* ── PAGE HERO ───────────────────────────────────────────────────────────── */
/* Guide-style gradient hero */
.page-hero {
  background: var(--gradient);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.page-hero::before {
  content: '';
  position: absolute;
  left: -100px; bottom: -120px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.page-hero-inner { position: relative; z-index: 1; }

.category-badge {
  display: inline-block;
  background: rgba(12,11,15,0.28);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #0c0b0f;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.page-hero .page-tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  color: rgba(12,11,15,0.82);
  max-width: 600px;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0c0b0f;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform var(--duration) var(--ease-out), background var(--duration);
}
.hero-cta-btn:hover { background: #221f2c; transform: translateY(-1px); }
.why-box {
  margin-top: 1.75rem;
  background: rgba(12,11,15,0.22);
  border: 1px solid rgba(12,11,15,0.28);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  max-width: 680px;
}
.why-box strong {
  font-family: var(--font-display);
  color: #0c0b0f;
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.why-box p { color: rgba(12,11,15,0.85); font-size: 0.93rem; font-weight: 500; }

/* Dark hero variant for checklists/utility */
.page-hero--dark {
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2rem;
}
.page-hero--dark::before,
.page-hero--dark::after { display: none; }
.page-hero--dark .category-badge {
  background: var(--gradient-subtle);
  border: 1px solid rgba(200,122,180,0.3);
  color: var(--brand-mauve);
}
.page-hero--dark h1 {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.page-hero--dark .page-tagline { color: var(--text-muted); }

/* ── STAT CARDS ──────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: -2rem 0 2.5rem;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  text-align: center;
}
.stat-card .stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.25;
}
@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); margin: 1.5rem 0; }
}

/* ── SECTION BLOCKS ──────────────────────────────────────────────────────── */
.section-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.section-block:last-child { border-bottom: none; }
.section-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.section-block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

/* ── SETUP STEPS ─────────────────────────────────────────────────────────── */
.step {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color var(--duration), box-shadow var(--duration);
}
.step:hover {
  border-color: rgba(200,122,180,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.step-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.875rem;
}
.step-badge {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}
.step-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  padding-top: 0.25rem;
}
.step p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Screenshot container */
.screenshot-wrap {
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.screenshot-caption {
  font-size: 0.75rem;
  color: var(--text-faint);
  padding: 0.5rem 0.875rem;
  font-style: italic;
  border-top: 1px solid var(--border-subtle);
}

/* ── CHECKLIST COMPONENT ─────────────────────────────────────────────────── */
.checklist-wrap {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.checklist-header {
  background: var(--gradient);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}
.checklist-header::after {
  content: '';
  position: absolute;
  right: -50px; top: -50px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.checklist-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(12,11,15,0.65);
  margin-bottom: 0.6rem;
  position: relative; z-index: 1;
}
.checklist-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #0c0b0f;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  position: relative; z-index: 1;
  letter-spacing: -0.02em;
}
.checklist-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(12,11,15,0.78);
  position: relative; z-index: 1;
  line-height: 1.5;
}
.checklist-header-logo {
  position: absolute;
  right: 2rem; bottom: 1.5rem;
  width: 52px; height: 52px;
  opacity: 0.18;
}

/* Progress bar */
.progress-bar-wrap { padding: 1.25rem 1.75rem 0.5rem; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 400ms var(--ease-out);
}

/* Checklist items */
.checklist-list {
  list-style: none;
  padding: 0.5rem 0;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--duration);
}
.checklist-item:hover { background: var(--surface-hover); }
.checklist-item:last-child { border-bottom: none; }
.check-box {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  transition: border-color var(--duration), background var(--duration);
}
.check-icon { opacity: 0; transition: opacity var(--duration); }
.checklist-item.checked .check-box {
  border-color: var(--check-color);
  background: var(--check-color);
}
.checklist-item.checked .check-icon { opacity: 1; }
.item-step {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}
.item-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  transition: opacity var(--duration), text-decoration var(--duration);
}
.checklist-item.checked .item-title { text-decoration: line-through; opacity: 0.45; }
.item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.item-desc a { color: var(--brand-teal); text-decoration: none; }
.item-desc a:hover { text-decoration: underline; }

/* Guide chip inside checklist */
.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  background: rgba(90,180,210,0.1);
  border: 1px solid rgba(90,180,210,0.25);
  color: var(--brand-teal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  transition: background var(--duration), border-color var(--duration);
}
.guide-chip:hover { background: rgba(90,180,210,0.18); }

/* Risk badges */
.item-risk {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-left: 0.4rem;
  vertical-align: middle;
}
.item-risk-high { background: rgba(240,135,105,0.15); color: var(--brand-coral); }
.item-risk-med  { background: rgba(200,122,180,0.15); color: var(--brand-mauve); }

/* Checklist card actions */
.checklist-actions {
  padding: 1.25rem 1.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient);
  color: #0c0b0f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--duration), transform var(--duration);
}
.btn-download:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color var(--duration), background var(--duration);
}
.btn-secondary:hover { color: var(--text); background: var(--surface-hover); }
.checklist-footer {
  padding: 1rem 1.75rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

/* ── SETUP GUIDE SECTION (inside checklists) ─────────────────────────────── */
.setup-guide-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.setup-guide-section .section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.setup-guide-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.setup-guide-section .section-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 600px;
}

/* Tool cards grid */
.tool-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.tool-guide-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration), box-shadow var(--duration), transform var(--duration) var(--ease-out);
}
.tool-guide-card:hover {
  border-color: rgba(200,122,180,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.tool-card-badge {
  background: var(--gradient);
  height: 6px;
  flex-shrink: 0;
}
.tool-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tool-card-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.tool-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.tool-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}
.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-teal);
}

/* Mini setup steps (inside checklist pages) */
.mini-steps { list-style: none; }
.mini-step {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mini-step:last-child { border-bottom: none; }
.mini-step-num {
  width: 26px; height: 26px;
  flex-shrink: 0;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  color: #fff;
  margin-top: 0.05rem;
}
.mini-step-content h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.mini-step-content p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.mini-step-screenshot {
  margin-top: 0.875rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mini-step-screenshot img { width: 100%; height: auto; }

/* ── CONTENT CARDS ───────────────────────────────────────────────────────── */
.content-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.info-item {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.info-item .info-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}
.info-item .info-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.3;
}

/* ── CTA / CONTACT SECTION ───────────────────────────────────────────────── */
.cta-section {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.5rem 0 3rem;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.cta-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}
.cta-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.cta-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}
.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient);
  color: #0c0b0f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity var(--duration), transform var(--duration) var(--ease-out);
}
.cta-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.footer-logo-img { width: 24px; height: 24px; object-fit: contain; }
.footer-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-tagline {
  font-size: 0.83rem;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* ── UTILITY ─────────────────────────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── PRINT STYLES ────────────────────────────────────────────────────────── */
@media print {
  .nav, .breadcrumb, .checklist-actions, .cta-section, .footer { display: none !important; }
  body { background: #fff; color: #000; }
  .checklist-wrap { border: none; box-shadow: none; }
  .checklist-header { background: #f5f5f5 !important; color: #000 !important; }
  .checklist-item.checked .item-title { text-decoration: none !important; opacity: 1 !important; }
}

/* ── MOBILE ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .checklist-header { padding: 2rem 1.5rem 1.5rem; }
  .checklist-item { padding: 0.875rem 1.25rem; }
  .checklist-actions { padding: 1rem 1.25rem; }
  .tool-guide-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 2rem 1.25rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 1.25rem; }
}

/* ─── AI Fluency Checklist Enhancements ─────────────────────────────────── */

/* Phase jump nav strip */
.phase-jump-nav {
  display: flex;
  gap: 0.4rem;
  padding: 0.875rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--surface-card);
  position: sticky;
  top: 64px;
  z-index: 10;
}
.phase-jump-nav::-webkit-scrollbar { display: none; }
.phase-jump-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: var(--surface);
  color: var(--text-muted);
  transition: background var(--duration), color var(--duration), border-color var(--duration);
  white-space: nowrap;
  text-decoration: none;
}
.phase-jump-pill:hover { background: var(--surface-hover); color: var(--text); }
.phase-jump-pill.pj1 { border-color: rgba(240,135,105,0.3); }
.phase-jump-pill.pj2 { border-color: rgba(225,120,150,0.3); }
.phase-jump-pill.pj3 { border-color: rgba(200,122,180,0.3); }
.phase-jump-pill.pj4 { border-color: rgba(140,135,220,0.3); }
.phase-jump-pill.pj5 { border-color: rgba(90,180,210,0.3); }
.phase-jump-pill.pjs { border-color: rgba(200,122,180,0.25); }
.phase-jump-pill.active.pj1 { background: rgba(240,135,105,0.14); color: var(--brand-coral); border-color: var(--brand-coral); }
.phase-jump-pill.active.pj2 { background: rgba(225,120,150,0.14); color: var(--brand-rose); border-color: var(--brand-rose); }
.phase-jump-pill.active.pj3 { background: rgba(200,122,180,0.14); color: var(--brand-mauve); border-color: var(--brand-mauve); }
.phase-jump-pill.active.pj4 { background: rgba(140,135,220,0.14); color: var(--brand-indigo); border-color: var(--brand-indigo); }
.phase-jump-pill.active.pj5 { background: rgba(90,180,210,0.14); color: var(--brand-teal); border-color: var(--brand-teal); }
.phase-jump-pill.active.pjs { background: rgba(200,122,180,0.12); color: var(--brand-mauve); border-color: var(--brand-mauve); }

/* Responsive pill label — short/full variants */
.pjl-short { display: none; }
.pjl-full  { display: inline; }
@media (max-width: 500px) {
  .pjl-short { display: inline; }
  .pjl-full  { display: none; }
  .phase-jump-pill { padding: 0.35rem 0.65rem; font-size: 0.73rem; }
}

.phase-jump-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pj1 .phase-jump-dot { background: var(--brand-coral); }
.pj2 .phase-jump-dot { background: var(--brand-rose); }
.pj3 .phase-jump-dot { background: var(--brand-mauve); }
.pj4 .phase-jump-dot { background: var(--brand-indigo); }
.pj5 .phase-jump-dot { background: var(--brand-teal); }
.pjs .phase-jump-dot { background: var(--brand-mauve); }

/* Where-are-you self-assessment callout */
.self-assess-card {
  margin: 0 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(140,135,220,0.06);
  border: 1px solid rgba(140,135,220,0.18);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--brand-indigo);
}
.self-assess-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-indigo);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  word-break: break-word;
}
.self-assess-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.self-assess-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}
@media (max-width: 540px) {
  .self-assess-grid { grid-template-columns: 1fr; }
}
.self-assess-q {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
}
.self-assess-q::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-indigo);
  font-size: 0.75rem;
}
.self-assess-hint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
}

/* Phase header (enhanced) */
.phase-header {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 0.85rem;
  row-gap: 0;
  padding: 1.25rem 1.75rem 0.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
  scroll-margin-top: 120px;
}
.phase-badge {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}
.phase-badge.p1 { background: rgba(240,135,105,0.15); color: var(--brand-coral); }
.phase-badge.p2 { background: rgba(225,120,150,0.15); color: var(--brand-rose); }
.phase-badge.p3 { background: rgba(200,122,180,0.15); color: var(--brand-mauve); }
.phase-badge.p4 { background: rgba(140,135,220,0.15); color: var(--brand-indigo); }
.phase-badge.p5 { background: rgba(90,180,210,0.15); color: var(--brand-teal); }
.phase-badge.ps { background: rgba(200,122,180,0.12); color: var(--brand-mauve); font-size: 1rem; }
.phase-header-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.phase-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}
.phase-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.2rem;
}
.phase-risk-tag {
  grid-column: 3;
  grid-row: 1;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  align-self: start;
  margin-top: 2px;
}
.risk-med  { background: rgba(200,122,180,0.12); color: var(--brand-mauve); }
.risk-high { background: rgba(240,135,105,0.12); color: var(--brand-coral); }
.risk-ok   { background: rgba(90,180,210,0.12);  color: var(--brand-teal); }

/* Phase detail panel */
.phase-detail {
  margin: 0 1.75rem 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
}
@media (max-width: 600px) {
  .phase-detail { grid-template-columns: 1fr; gap: 0.6rem; }
}
.phase-detail-col {}
.phase-detail-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.45rem;
}
.phase-detail-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.phase-detail-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding-left: 0.85rem;
  position: relative;
}
.phase-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border);
}
.phase-detail-list li.signal::before { background: var(--brand-indigo); }
.phase-detail-list li.advance::before { background: var(--brand-teal); }

/* Phase resource row */
.phase-resources {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 1.75rem 1rem;
}
.phase-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  transition: background var(--duration), color var(--duration), border-color var(--duration);
  white-space: nowrap;
}
.phase-resource-link:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border); }
.phase-resource-link.star {
  background: rgba(90,180,210,0.08);
  border-color: rgba(90,180,210,0.25);
  color: var(--brand-teal);
}
.phase-resource-link.star:hover { background: rgba(90,180,210,0.15); }

/* Slide download button (header area) */
.btn-slide-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.18);
  color: #0c0b0f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(12,11,15,0.2);
  text-decoration: none;
  transition: background var(--duration), border-color var(--duration);
  position: relative; z-index: 1;
  white-space: nowrap;
}
.btn-slide-dl:hover { background: rgba(255,255,255,0.28); border-color: rgba(12,11,15,0.35); }
.checklist-header-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  position: relative; z-index: 1;
}

/* checklist-item label color variants */
.item-label-p1 { color: var(--brand-coral); }
.item-label-p2 { color: var(--brand-rose); }
.item-label-p3 { color: var(--brand-mauve); }
.item-label-p4 { color: var(--brand-indigo); }
.item-label-p5 { color: var(--brand-teal); }
.item-label-ps { color: var(--brand-mauve); }

/* item-label base */
.item-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

@media (max-width: 600px) {
  /* Phase header: drop risk tag below on small screens */
  .phase-header {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    padding: 1rem 1.25rem 0.75rem;
  }
  .phase-badge { grid-column: 1; grid-row: 1; align-self: start; margin-top: 2px; }
  .phase-header-text { grid-column: 2; grid-row: 1; }
  .phase-risk-tag { grid-column: 2; grid-row: 2; margin-top: 0.45rem; align-self: start; }
}

@media (max-width: 480px) {
  .phase-jump-nav { padding: 0.75rem 1rem; gap: 0.3rem; }
  .phase-detail { margin: 0 1rem 0.25rem; padding: 0.875rem 1rem; }
  .phase-resources { padding: 0.4rem 1rem 0.875rem; }
  .self-assess-card { margin: 0 1rem 0; }
  .checklist-header-actions { gap: 0.45rem; }
}
