/* A11yLens Static Website Stylesheet
 * Palette & contrast strictly engineered for WCAG 2.1 AAA (>= 7:1 text contrast).
 * Zero external fonts or third-party assets.
 */

:root {
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0b1120;
  --bg-dark-elevated: #0f172a;
  --bg-dark-card: #162036;

  --text-primary: #0f172a;       /* 17.8:1 on #fff (AAA) */
  --text-secondary: #334155;     /* 10.3:1 on #fff (AAA) */
  --text-on-dark: #f8fafc;       /* 18.5:1 on #0b1120 (AAA) */
  --text-on-dark-muted: #cbd5e1; /* 12.6:1 on #0b1120 (AAA) */

  --indigo-900: #312e81;         /* 11.4:1 with #fff (AAA) */
  --indigo-800: #3730a3;         /* 9.4:1 on #fff (AAA) */
  --indigo-950: #1e1b4b;         /* 15.8:1 with #fff (AAA) */
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;

  --emerald-950: #022c22;
  --emerald-900: #064e3b;        /* 8.6:1 on #d1fae5 (AAA) */
  --emerald-400: #34d399;        /* 10.7:1 with #022c22 (AAA) */
  --emerald-300: #6ee7b7;        /* 12.6:1 on #0b1120 (AAA) */
  --emerald-100: #d1fae5;

  --border-light: #cbd5e1;
  --border-dark: #334155;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-dark: 0 24px 56px rgba(2, 6, 23, 0.55);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;

  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--indigo-950);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--emerald-400);
  outline-offset: 2px;
}

a {
  color: var(--indigo-800);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--indigo-950);
}

:focus-visible {
  outline: 3px solid var(--indigo-800);
  outline-offset: 3px;
}

.hero :focus-visible,
.site-footer :focus-visible,
.dark-surface :focus-visible {
  outline-color: var(--emerald-300);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 820px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--indigo-900);
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: var(--indigo-900);
  text-decoration: underline;
}

.site-nav a.nav-cta {
  background: var(--indigo-900);
  color: #ffffff;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.site-nav a.nav-cta:hover {
  background: var(--indigo-950);
  color: #ffffff;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald-400);
  color: var(--emerald-950);
}

.btn-primary:hover {
  background: var(--emerald-300);
  color: var(--emerald-950);
}

.btn-indigo {
  background: var(--indigo-900);
  color: #ffffff;
}

.btn-indigo:hover {
  background: var(--indigo-950);
  color: #ffffff;
}

.btn-outline-dark {
  background: transparent;
  border-color: #94a3b8;
  color: var(--text-on-dark);
}

.btn-outline-dark:hover {
  background: rgba(248, 250, 252, 0.1);
  border-color: var(--text-on-dark);
  color: #ffffff;
}

.btn-outline-light {
  background: #ffffff;
  border-color: var(--indigo-900);
  color: var(--indigo-900);
}

.btn-outline-light:hover {
  background: var(--indigo-100);
  color: var(--indigo-950);
}

/* Hero Section */
.hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(79, 70, 229, 0.28), transparent 46%),
    radial-gradient(circle at 86% 82%, rgba(16, 185, 129, 0.18), transparent 44%),
    var(--bg-dark);
  color: var(--text-on-dark);
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid #1e293b;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 78, 59, 0.72);
  border: 1px solid var(--emerald-300);
  color: var(--emerald-300);
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
}

.hero-accent {
  color: var(--indigo-200);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-on-dark-muted);
  max-width: 58ch;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
}

.hero-trust li::before {
  content: "✓ ";
  color: var(--emerald-300);
  font-weight: 800;
}

/* Static Side Panel Mockup */
.panel-mockup {
  background: var(--bg-dark-elevated);
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
  color: var(--text-on-dark);
}

.panel-mockup__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: #1e1b4b;
  border-bottom: 1px solid #312e81;
}

.panel-mockup__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.98rem;
}

.panel-mockup__pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #064e3b;
  color: #a7f3d0;
  border: 1px solid #34d399;
}

.panel-mockup__body {
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
}

.mockup-card {
  background: var(--bg-dark-card);
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
}

.mockup-score {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.score-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: conic-gradient(var(--emerald-400) 0 338deg, #334155 338deg 360deg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.score-ring__inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-dark-card);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-on-dark);
}

.mockup-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.mockup-meta {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--emerald-300);
}

.contrast-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.7rem;
}

.swatch-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-dark-elevated);
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
}

.swatch-box--pass {
  border-color: var(--emerald-400);
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.swatch--fail {
  background: #7c8492;
}

.swatch--pass {
  background: #374151;
}

.swatch-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.swatch-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.12rem;
}

.swatch-badge--fail {
  background: #450a0a;
  color: #fca5a5;
}

.swatch-badge--pass {
  background: #064e3b;
  color: #a7f3d0;
}

.mockup-arrow {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--indigo-200);
}

.mockup-token-line {
  margin: 0.65rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--indigo-200);
}

.vision-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.vision-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--bg-dark-elevated);
  border: 1px solid #475569;
  color: var(--text-on-dark-muted);
}

.vision-chip--active {
  background: #312e81;
  border-color: var(--indigo-200);
  color: #ffffff;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--subtle {
  background: var(--bg-subtle);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-header {
  max-width: 68ch;
  margin-bottom: 2.75rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--indigo-100);
  color: var(--indigo-900);
  margin-bottom: 0.75rem;
}

.section-tag--emerald {
  background: var(--emerald-100);
  color: var(--emerald-900);
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-header p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.feature-card__badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.9rem;
}

.feature-card__badge--free {
  background: var(--emerald-100);
  color: var(--emerald-900);
}

.feature-card__badge--pro {
  background: var(--indigo-100);
  color: var(--indigo-900);
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

/* Pricing / Free vs Pro */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.75rem;
}

.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.plan-card--pro {
  border-color: var(--indigo-900);
  box-shadow: var(--shadow-md);
}

.plan-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.plan-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.plan-price {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0.4rem 0 0.35rem;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.plan-desc {
  margin: 0 0 1.4rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--emerald-900);
}

.plan-note {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.96rem;
}

caption {
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

th,
td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

thead th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-primary);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

.status-yes {
  font-weight: 700;
  color: var(--emerald-900);
}

.status-pro {
  font-weight: 700;
  color: var(--indigo-900);
}

.status-no {
  color: var(--text-secondary);
}

/* Browser Install Strip */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.install-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.install-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.install-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
  flex: 1;
}

/* Native Accessible FAQ (<details>) */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Prose / Privacy Policy Page */
.prose-hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 3.5rem 0 3rem;
}

.prose-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
}

.prose-hero p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
}

.callout {
  background: var(--emerald-100);
  border-left: 5px solid var(--emerald-900);
  color: var(--emerald-900);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}

.callout strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.prose h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.prose p,
.prose li {
  color: var(--text-secondary);
  font-size: 1rem;
}

.prose ul {
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #f1f5f9;
  color: var(--indigo-950);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 3rem 0;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--emerald-300);
  font-weight: 600;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-brand {
  color: var(--text-on-dark);
  font-weight: 800;
  font-size: 1.05rem;
}

.footer-meta {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }
  .feature-grid,
  .pricing-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }
  .contrast-compare {
    grid-template-columns: 1fr;
  }
  .mockup-arrow {
    text-align: center;
  }
}
