/* ============================================================================
   ScreenReady design system — sr-*
   Apple-style chrome (true black, frosted glass, pill buttons, SF Pro/Inter)
   with the brand indigo→purple→pink gradient kept as signature on headlines
   and primary CTAs.

   This file is additive: classes are prefixed sr-* and never collide with the
   existing Tailwind utilities still used inside public/index.html. Add sr-*
   classes alongside existing markup — never rename IDs.
   ========================================================================== */

/* ── Tokens ────────────────────────────────────────────────────────────────── */
:root {
  /* Surface */
  --sr-bg:              #000;
  --sr-surface-1:       #0a0a0f;
  --sr-surface-2:       #111;
  --sr-surface-3:       #16161d;
  --sr-surface-4:       #1d1d22;
  --sr-hairline:        rgba(255, 255, 255, 0.08);
  --sr-hairline-strong: rgba(255, 255, 255, 0.15);

  /* Text */
  --sr-text:        #f5f5f7;
  --sr-text-muted:  #c7c7cc;
  --sr-text-subtle: #86868b;

  /* Brand */
  --sr-accent:        #6e6ef5;
  --sr-accent-hover:  #5c5cf0;
  --sr-accent-2:      #8b5cf6;
  --sr-accent-3:      #ec4899;
  --sr-accent-soft:   rgba(110, 110, 245, 0.12);
  --sr-accent-soft-2: rgba(139, 92, 246, 0.12);
  --sr-gradient:      linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);
  --sr-gradient-text: linear-gradient(135deg, #818cf8 18%, #c084fc 60%, #f0abfc 100%);
  --sr-gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.10));

  /* Status */
  --sr-success: #10b981;
  --sr-warning: #f59e0b;
  --sr-danger:  #ef4444;
  --sr-info:    #38bdf8;

  /* Radii */
  --sr-radius-xs:   8px;
  --sr-radius-sm:   12px;
  --sr-radius-md:   16px;
  --sr-radius-lg:   20px;
  --sr-radius-xl:   28px;
  --sr-radius-pill: 980px;

  /* Shadows */
  --sr-shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.4);
  --sr-shadow-md:   0 10px 30px -10px rgba(0, 0, 0, 0.55);
  --sr-shadow-lg:   0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --sr-shadow-glow: 0 0 80px -10px rgba(110, 110, 245, 0.35);
  --sr-shadow-focus: 0 0 0 4px rgba(110, 110, 245, 0.25);

  /* Motion */
  --sr-ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --sr-ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --sr-dur-fast:  150ms;
  --sr-dur-med:   250ms;
  --sr-dur-slow:  450ms;

  /* Typography scale (fluid) */
  --sr-h1: clamp(2.4rem, 5.5vw, 3.8rem);
  --sr-h2: clamp(1.8rem, 3.6vw, 2.6rem);
  --sr-h3: clamp(1.25rem, 2.2vw, 1.6rem);
  --sr-h4: 1.125rem;
  --sr-body:    1rem;
  --sr-body-sm: 0.9375rem;
  --sr-caption: 0.8125rem;
  --sr-eyebrow: 0.75rem;

  /* Layout */
  --sr-container: 1120px;
  --sr-container-wide: 1280px;
  --sr-container-narrow: 880px;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
.sr-font {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
               'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Optional body-level base when a page opts in via class="sr-body-root" */
.sr-body-root {
  background: var(--sr-bg);
  color: var(--sr-text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
               'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Layout helpers ────────────────────────────────────────────────────────── */
.sr-container {
  max-width: var(--sr-container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 28px);
}
.sr-container--wide {
  max-width: var(--sr-container-wide);
}
.sr-container--narrow {
  max-width: var(--sr-container-narrow);
}
.sr-section {
  padding-block: clamp(56px, 9vw, 112px);
}
.sr-section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}
.sr-stack { display: flex; flex-direction: column; }
.sr-stack > * + * { margin-top: var(--sr-stack-gap, 16px); }
.sr-stack--sm { --sr-stack-gap: 8px; }
.sr-stack--md { --sr-stack-gap: 16px; }
.sr-stack--lg { --sr-stack-gap: 24px; }
.sr-stack--xl { --sr-stack-gap: 40px; }

.sr-grid-2,
.sr-grid-3,
.sr-grid-4 {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}
.sr-grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sr-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sr-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ── Typography ────────────────────────────────────────────────────────────── */
.sr-h1, .sr-h2, .sr-h3, .sr-h4 {
  margin: 0;
  color: var(--sr-text);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.sr-h1 { font-size: var(--sr-h1); letter-spacing: -0.035em; }
.sr-h2 { font-size: var(--sr-h2); letter-spacing: -0.03em; }
.sr-h3 { font-size: var(--sr-h3); line-height: 1.2; letter-spacing: -0.02em; }
.sr-h4 { font-size: var(--sr-h4); line-height: 1.3; letter-spacing: -0.01em; }

.sr-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--sr-text-muted);
  line-height: 1.5;
  margin: 0;
}
.sr-body { font-size: var(--sr-body); color: var(--sr-text-muted); line-height: 1.6; margin: 0; }
.sr-body-sm { font-size: var(--sr-body-sm); color: var(--sr-text-subtle); line-height: 1.6; margin: 0; }
.sr-caption { font-size: var(--sr-caption); color: var(--sr-text-subtle); line-height: 1.5; margin: 0; }

.sr-gradient-text {
  background: var(--sr-gradient-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sr-accent-soft);
  border: 1px solid rgba(110, 110, 245, 0.24);
  border-radius: var(--sr-radius-pill);
  padding: 6px 14px;
  font-size: var(--sr-eyebrow);
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 0.02em;
  text-transform: none;
}
.sr-eyebrow--purple {
  background: var(--sr-accent-soft-2);
  border-color: rgba(192, 132, 252, 0.24);
  color: #d8b4fe;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
.sr-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--sr-hairline);
}
.sr-nav__inner {
  max-width: var(--sr-container-wide);
  margin-inline: auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(16px, 3vw, 24px);
  gap: 16px;
}
.sr-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sr-text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.sr-nav__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sr-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.sr-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.sr-btn {
  --sr-btn-bg: rgba(255, 255, 255, 0.08);
  --sr-btn-bg-hover: rgba(255, 255, 255, 0.14);
  --sr-btn-border: rgba(255, 255, 255, 0.14);
  --sr-btn-color: var(--sr-text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--sr-radius-pill);
  border: 1px solid var(--sr-btn-border);
  background: var(--sr-btn-bg);
  color: var(--sr-btn-color);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--sr-dur-fast) var(--sr-ease),
              border-color var(--sr-dur-fast) var(--sr-ease),
              transform var(--sr-dur-fast) var(--sr-ease),
              box-shadow var(--sr-dur-fast) var(--sr-ease),
              opacity var(--sr-dur-fast) var(--sr-ease);
  -webkit-tap-highlight-color: transparent;
}
.sr-btn:hover { background: var(--sr-btn-bg-hover); }
.sr-btn:active { transform: scale(0.97); }
.sr-btn:focus-visible { outline: none; box-shadow: var(--sr-shadow-focus); }
.sr-btn:disabled,
.sr-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.sr-btn--primary {
  --sr-btn-bg: var(--sr-gradient);
  --sr-btn-bg-hover: var(--sr-gradient);
  --sr-btn-border: transparent;
  --sr-btn-color: #fff;
  box-shadow: 0 10px 30px -12px rgba(99, 102, 241, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.sr-btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 40px -12px rgba(99, 102, 241, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sr-btn--solid {
  --sr-btn-bg: var(--sr-accent);
  --sr-btn-bg-hover: var(--sr-accent-hover);
  --sr-btn-border: transparent;
  --sr-btn-color: #fff;
}

.sr-btn--secondary {
  --sr-btn-bg: rgba(255, 255, 255, 0.06);
  --sr-btn-bg-hover: rgba(255, 255, 255, 0.12);
  --sr-btn-border: rgba(255, 255, 255, 0.16);
}

.sr-btn--ghost {
  --sr-btn-bg: transparent;
  --sr-btn-bg-hover: rgba(255, 255, 255, 0.06);
  --sr-btn-border: transparent;
}

.sr-btn--danger {
  --sr-btn-bg: rgba(239, 68, 68, 0.12);
  --sr-btn-bg-hover: rgba(239, 68, 68, 0.2);
  --sr-btn-border: rgba(239, 68, 68, 0.35);
  --sr-btn-color: #fca5a5;
}

.sr-btn--sm { padding: 7px 14px; font-size: 13px; }
.sr-btn--lg { padding: 15px 30px; font-size: 17px; }
.sr-btn--xl { padding: 18px 36px; font-size: 18px; font-weight: 700; }
.sr-btn--block { width: 100%; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.sr-card {
  background: var(--sr-surface-2);
  border: 1px solid var(--sr-hairline);
  border-radius: var(--sr-radius-lg);
  padding: clamp(20px, 2.2vw, 28px);
  transition: border-color var(--sr-dur-fast) var(--sr-ease),
              transform var(--sr-dur-fast) var(--sr-ease),
              background var(--sr-dur-fast) var(--sr-ease);
}
.sr-card--raised {
  background: var(--sr-surface-3);
  box-shadow: var(--sr-shadow-md);
}
.sr-card--accent {
  background: linear-gradient(180deg, rgba(110, 110, 245, 0.10), rgba(110, 110, 245, 0.02));
  border-color: rgba(110, 110, 245, 0.28);
}
.sr-card--soft {
  background: var(--sr-surface-1);
}
.sr-card--hover:hover {
  border-color: var(--sr-hairline-strong);
  transform: translateY(-2px);
}
.sr-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sr-accent-soft);
  border: 1px solid rgba(110, 110, 245, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.sr-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sr-text);
  letter-spacing: -0.01em;
}
.sr-card__body {
  margin: 0;
  font-size: var(--sr-body-sm);
  color: var(--sr-text-subtle);
  line-height: 1.6;
}

/* ── Inputs ────────────────────────────────────────────────────────────────── */
.sr-input,
.sr-textarea,
.sr-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sr-hairline-strong);
  border-radius: var(--sr-radius-sm);
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--sr-text);
  transition: border-color var(--sr-dur-fast) var(--sr-ease),
              background var(--sr-dur-fast) var(--sr-ease),
              box-shadow var(--sr-dur-fast) var(--sr-ease);
  outline: none;
}
.sr-input::placeholder,
.sr-textarea::placeholder {
  color: rgba(245, 245, 247, 0.32);
}
.sr-input:hover,
.sr-textarea:hover,
.sr-select:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.sr-input:focus,
.sr-textarea:focus,
.sr-select:focus {
  border-color: rgba(110, 110, 245, 0.6);
  background: rgba(110, 110, 245, 0.05);
  box-shadow: var(--sr-shadow-focus);
}
.sr-textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.sr-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sr-text-muted);
  letter-spacing: 0.01em;
}

/* ── Chips / pills ─────────────────────────────────────────────────────────── */
.sr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--sr-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sr-hairline-strong);
  color: var(--sr-text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--sr-dur-fast) var(--sr-ease),
              border-color var(--sr-dur-fast) var(--sr-ease),
              color var(--sr-dur-fast) var(--sr-ease);
  cursor: pointer;
}
.sr-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--sr-text);
}
.sr-chip--indigo {
  background: rgba(110, 110, 245, 0.1);
  border-color: rgba(110, 110, 245, 0.28);
  color: #a5b4fc;
}
.sr-chip--indigo:hover {
  background: rgba(110, 110, 245, 0.18);
  border-color: rgba(110, 110, 245, 0.45);
  color: #c7d2fe;
}
.sr-chip--purple {
  background: rgba(192, 132, 252, 0.1);
  border-color: rgba(192, 132, 252, 0.28);
  color: #d8b4fe;
}
.sr-chip--purple:hover {
  background: rgba(192, 132, 252, 0.18);
  border-color: rgba(192, 132, 252, 0.45);
}
.sr-chip--success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.sr-chip--warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}
.sr-chip--danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.sr-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ── FAQ (details/summary) ─────────────────────────────────────────────────── */
.sr-faq {
  border-top: 1px solid var(--sr-hairline);
}
.sr-faq-item {
  border-bottom: 1px solid var(--sr-hairline);
  padding: 20px 0;
}
.sr-faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--sr-text);
  cursor: pointer;
  list-style: none;
  padding-right: 4px;
}
.sr-faq-item > summary::-webkit-details-marker { display: none; }
.sr-faq-item > summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--sr-dur-med) var(--sr-ease);
}
.sr-faq-item[open] > summary::after { transform: rotate(180deg); }
.sr-faq-item > p,
.sr-faq-item__body {
  margin: 12px 0 0;
  padding-right: 30px;
  font-size: var(--sr-body-sm);
  color: var(--sr-text-subtle);
  line-height: 1.7;
}

/* ── CTA section ───────────────────────────────────────────────────────────── */
.sr-cta {
  position: relative;
  background: var(--sr-surface-1);
  border: 1px solid rgba(110, 110, 245, 0.22);
  border-radius: var(--sr-radius-xl);
  padding: clamp(32px, 5vw, 56px);
  overflow: hidden;
  text-align: center;
}
.sr-cta::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 80%;
  background: radial-gradient(ellipse at center,
              rgba(99, 102, 241, 0.18),
              rgba(236, 72, 153, 0.08) 50%,
              transparent 72%);
  pointer-events: none;
  filter: blur(10px);
}
.sr-cta > * { position: relative; }
.sr-cta h2,
.sr-cta .sr-h2 {
  margin: 0 0 12px;
}
.sr-cta p,
.sr-cta .sr-lead {
  margin: 0 auto 28px;
  max-width: 56ch;
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.sr-price-card {
  position: relative;
  background: var(--sr-surface-2);
  border: 1px solid var(--sr-hairline-strong);
  border-radius: var(--sr-radius-xl);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  transition: border-color var(--sr-dur-fast) var(--sr-ease),
              transform var(--sr-dur-fast) var(--sr-ease);
}
.sr-price-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
}
.sr-price-card--featured {
  background: linear-gradient(180deg, rgba(110, 110, 245, 0.10), rgba(110, 110, 245, 0.02));
  border-color: rgba(110, 110, 245, 0.4);
  box-shadow: var(--sr-shadow-glow);
}
.sr-price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sr-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--sr-radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sr-price-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--sr-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.sr-price-amount {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--sr-text);
  letter-spacing: -0.04em;
  line-height: 1;
}
.sr-price-amount small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sr-text-subtle);
  margin-left: 6px;
}
.sr-price-features {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: var(--sr-body-sm);
  color: var(--sr-text-muted);
}
.sr-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.sr-price-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6ef5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── Numbered tip list (used on practice/topic pages) ─────────────────────── */
.sr-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: sr-tip;
}
.sr-tips li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sr-tips li::before {
  counter-increment: sr-tip;
  content: counter(sr-tip);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sr-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(99, 102, 241, 0.6);
}
.sr-tips__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sr-text);
}
.sr-tips__body {
  margin: 0;
  font-size: var(--sr-body-sm);
  color: var(--sr-text-subtle);
  line-height: 1.6;
}

/* ── Question list ────────────────────────────────────────────────────────── */
.sr-questions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.sr-questions li {
  background: var(--sr-surface-2);
  border: 1px solid var(--sr-hairline);
  border-radius: var(--sr-radius-sm);
  padding: 14px 18px;
  font-size: var(--sr-body-sm);
  color: var(--sr-text-muted);
  line-height: 1.5;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.sr-footer {
  border-top: 1px solid var(--sr-hairline);
  background: var(--sr-bg);
  padding-block: 48px;
  color: var(--sr-text-subtle);
}
.sr-footer__inner {
  max-width: var(--sr-container-wide);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 24px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  font-size: var(--sr-caption);
}
.sr-footer a {
  color: var(--sr-text-muted);
  text-decoration: none;
  margin-right: 18px;
  transition: color var(--sr-dur-fast) var(--sr-ease);
}
.sr-footer a:hover { color: var(--sr-text); }

/* ── Divider ───────────────────────────────────────────────────────────────── */
.sr-divider {
  height: 1px;
  background: var(--sr-hairline);
  border: none;
  margin: 0;
}

/* ── Motion ────────────────────────────────────────────────────────────────── */
@keyframes sr-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sr-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
@keyframes sr-shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
.sr-fade-up { animation: sr-fade-up var(--sr-dur-slow) var(--sr-ease-out) both; }

/* ── Responsive niceties ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sr-nav__inner { height: auto; padding-block: 10px; flex-wrap: wrap; }
  .sr-nav__actions { gap: 6px; }
  .sr-btn { padding: 10px 18px; font-size: 14px; }
  .sr-btn--lg { padding: 13px 22px; font-size: 15px; }
}

/* ============================================================================
   Polish-layer for Tailwind-based pages — opt in via <body class="sr-page">
   These rules upgrade the existing markup on SEO/topic/practice pages without
   touching the HTML (beyond adding the body class).
   ========================================================================== */

body.sr-page {
  background: var(--sr-bg) !important;
  color: var(--sr-text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
               'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Top nav — frosted glass */
body.sr-page > nav,
body.sr-page > header > nav,
body.sr-page main > nav,
body.sr-page > div > nav,
body.sr-page > #site-nav,
body.sr-page > .site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--sr-hairline) !important;
}

/* Gradient text refinement */
body.sr-page .gradient-text {
  background: linear-gradient(135deg, #818cf8 18%, #c084fc 60%, #f0abfc 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.025em;
}

/* H1: tighter tracking */
body.sr-page main h1,
body.sr-page main .text-5xl,
body.sr-page main .text-4xl {
  letter-spacing: -0.035em;
  line-height: 1.06;
}
body.sr-page main h2 { letter-spacing: -0.025em; }
body.sr-page main h3 { letter-spacing: -0.015em; }

/* Card surfaces — true black + hairlines */
body.sr-page .bg-gray-900,
body.sr-page .bg-gray-900\/60,
body.sr-page .bg-gray-900\/40,
body.sr-page .bg-gray-800\/40,
body.sr-page .bg-gray-800\/50 {
  background-color: var(--sr-surface-2) !important;
}
body.sr-page .border-gray-800,
body.sr-page .border-gray-700 {
  border-color: var(--sr-hairline) !important;
  transition: border-color var(--sr-dur-fast) var(--sr-ease);
}
body.sr-page .hover\:border-gray-500:hover,
body.sr-page .hover\:border-gray-600:hover {
  border-color: var(--sr-hairline-strong) !important;
}

/* Inputs */
body.sr-page input[type="text"],
body.sr-page input[type="email"],
body.sr-page input[type="url"],
body.sr-page textarea {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--sr-hairline-strong) !important;
  border-radius: 12px !important;
  transition: border-color var(--sr-dur-fast) var(--sr-ease),
              background var(--sr-dur-fast) var(--sr-ease),
              box-shadow var(--sr-dur-fast) var(--sr-ease);
}
body.sr-page input:focus,
body.sr-page textarea:focus {
  border-color: rgba(110, 110, 245, 0.6) !important;
  background-color: rgba(110, 110, 245, 0.05) !important;
  box-shadow: 0 0 0 4px rgba(110, 110, 245, 0.18);
  outline: none;
}

/* Eyebrow pill (indigo-tinted "tagline" badge) */
body.sr-page .bg-indigo-500\/10.border-indigo-500\/20 {
  background: rgba(110, 110, 245, 0.10) !important;
  border-color: rgba(110, 110, 245, 0.24) !important;
  color: #a5b4fc !important;
  padding-block: 7px !important;
  font-weight: 600;
}

/* Primary buttons — pill + refined shadow */
body.sr-page .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%) !important;
  border-radius: 980px !important;
  transition: transform .15s var(--sr-ease), filter .2s var(--sr-ease), opacity .2s, box-shadow .2s var(--sr-ease) !important;
  box-shadow: 0 10px 30px -12px rgba(99, 102, 241, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: -0.005em;
}
body.sr-page .btn-primary:hover {
  filter: brightness(1.08);
  opacity: 1 !important;
  box-shadow: 0 14px 40px -12px rgba(99, 102, 241, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
body.sr-page .btn-primary:active { transform: scale(.97); }

/* Roundness progression */
body.sr-page button.rounded-xl,
body.sr-page a.rounded-xl { border-radius: 14px; }
body.sr-page button.rounded-2xl,
body.sr-page a.rounded-2xl { border-radius: 18px; }

/* Numbered tip badge — use the brand gradient */
body.sr-page .w-8.h-8.rounded-full.bg-indigo-500\/20.text-indigo-300 {
  background: var(--sr-gradient) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px -6px rgba(99, 102, 241, 0.55);
  border: none;
}

/* Indigo accent text */
body.sr-page .text-indigo-400 { color: #a5b4fc !important; }
body.sr-page .text-indigo-300 { color: #c7d2fe !important; }

/* CTA section */
body.sr-page .bg-gradient-to-r.from-indigo-900\/40.to-purple-900\/40,
body.sr-page .bg-gradient-to-br.from-indigo-900\/40.to-purple-900\/40,
body.sr-page .bg-gradient-to-r.from-indigo-900\/60.to-purple-900\/60,
body.sr-page .bg-gradient-to-br.from-indigo-900\/60.to-purple-900\/60 {
  background: var(--sr-surface-1) !important;
  border-color: rgba(110, 110, 245, 0.28) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px -10px rgba(110, 110, 245, 0.18);
}

/* FAQ details summary chevron animation (rotation on open) */
body.sr-page details > summary {
  list-style: none;
  position: relative;
}
body.sr-page details > summary::-webkit-details-marker { display: none; }

/* Footer */
body.sr-page footer.border-t.border-gray-800 {
  border-top-color: var(--sr-hairline) !important;
  background: var(--sr-bg);
  color: var(--sr-text-subtle);
}
body.sr-page footer a { transition: color var(--sr-dur-fast) var(--sr-ease); }

/* Section eyebrow labels */
body.sr-page p.uppercase.tracking-wider.text-gray-500 {
  color: #9ca3af !important;
  letter-spacing: 0.1em;
}

/* Focus rings */
body.sr-page a:focus-visible,
body.sr-page button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(110, 110, 245, 0.28);
  border-radius: 8px;
}
body.sr-page .btn-primary:focus-visible { border-radius: 980px !important; }

/* Selection */
body.sr-page ::selection { background: rgba(110, 110, 245, 0.35); color: #fff; }

/* Related chip links (used on practice pages) */
body.sr-page .bg-gray-900.border.border-gray-700.hover\:border-gray-500 {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--sr-hairline-strong) !important;
  border-radius: 980px !important;
  font-weight: 600;
  padding: 8px 16px !important;
  transition: background var(--sr-dur-fast) var(--sr-ease),
              border-color var(--sr-dur-fast) var(--sr-ease),
              transform var(--sr-dur-fast) var(--sr-ease);
}
body.sr-page .bg-gray-900.border.border-gray-700.hover\:border-gray-500:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px);
}

/* Logo image height/alignment in nav */
body.sr-page > nav img,
body.sr-page main > nav img { display: block; }

/* ── Reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
