/* Sweet! CLI - Shared Design System & Grayscale Theme */
:root {
  /* Color Palette - Grayscale Theme */
  --primary: #ffffff;
  --primary-dark: #cccccc;
  --background: #0a0a0a;
  --surface: #171717;
  --surface-light: #262626;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-light: #d4d4d4;
  --muted: #737373;
  --border: #404040;
  --success: #888888;
  --warning: #aaaaaa;
  --error: #888888;

  /* Tool Colors - Grayscale */
  --sweet: #888888;
  --claude: #aaaaaa;
  --gpt: #999999;
  --gemini: #777777;
  /* Aliases for consistent naming across pages */
  --bg: var(--background);
  --fg: var(--text);
  --card: var(--surface);
  --accent: var(--primary-dark);
  --bg-alt: #111111;
  --bg-hover: rgba(255, 255, 255, 0.05);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;
  
  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 40px;
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* Base Styles */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: radial-gradient(1800px 1100px at 50% -5%, #2a2a2a 0%, var(--bg) 75%), var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* Header & Navigation */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo svg {
  display: block;
  width: 36px;
  height: 36px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 20px;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
}

nav a:hover {
  color: var(--fg);
}

nav a.active {
  color: var(--primary);
}

/* Documentation Layout */
.doc-layout,
.docs-layout,
.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  margin: 40px 0;
}

.doc-sidebar,
.docs-sidebar,
.faq-sidebar {
  position: sticky;
  top: 40px;
  height: fit-content;
}

.doc-sidebar h3,
.docs-sidebar h3,
.faq-sidebar h3 {
  color: var(--primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  font-weight: 600;
}

.doc-sidebar ul,
.docs-sidebar ul,
.faq-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.doc-sidebar li,
.docs-sidebar li,
.faq-sidebar li {
  margin-bottom: 8px;
}

.doc-sidebar a,
.docs-sidebar a,
.faq-sidebar a {
  display: block;
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
}

.doc-sidebar a.active,
.docs-sidebar a.active,
.faq-sidebar a.active {
  background: var(--surface-light);
  color: var(--primary);
  font-weight: 500;
  border-left: 3px solid var(--primary);
  padding-left: 13px; /* 16px - 3px border */
}

.doc-sidebar a:hover,
.docs-sidebar a:hover,
.faq-sidebar a:hover {
  background: var(--surface-light);
  color: var(--primary);
  text-decoration: none;
}

.doc-content,
.docs-content,
.faq-content {
  /* content styles */
}

.doc-content h1,
.docs-content h1,
.faq-content h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 16px;
}

.doc-content .description,
.docs-content .description,
.faq-content .description {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 40px;
}

.doc-content h2,
.docs-content h2 {
  font-size: 28px;
  margin: 48px 0 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* FAQ page */
.faq-content h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  padding-top: 0;
  border-top: none;
}

.faq-content .faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
}

.faq-content .faq-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--fg);
}

.faq-content .faq-item p {
  margin: 0 0 12px;
  color: var(--text-light);
}

.faq-content .faq-item ul,
.faq-content .faq-item ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.faq-content .faq-item pre {
  margin: 12px 0;
}

.doc-content h3,
.docs-content h3 {
  font-size: 22px;
  margin: 32px 0 16px;
}

.doc-content p,
.docs-content p {
  margin: 0 0 24px;
}

.doc-content ul,
.doc-content ol,
.docs-content ul,
.docs-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.doc-content li,
.docs-content li {
  margin-bottom: 8px;
}

.doc-content code,
.docs-content code {
  background: rgba(170, 170, 170, 0.1);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.doc-content pre,
.docs-content pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  margin: 16px 0;
}

/* Code block */
.code-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  overflow-x: auto;
}

.code-block code {
  background: transparent;
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  white-space: pre-wrap;
}

/* Command table */
.command-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.command-table th,
.command-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.command-table th {
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
}

.command-table tr:nth-child(even) {
  background: var(--surface-light);
}

/* Diagnostic command */
.diagnostic-command {
  background: var(--surface);
  border-left: 4px solid var(--warning);
  padding: 12px 16px;
  margin: 16px 0;
}

/* Endpoint card */
.endpoint-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.endpoint-card .method {
  display: inline-block;
  padding: 4px 8px;
  background: var(--primary);
  color: var(--background);
  border-radius: 4px;
  font-weight: 600;
  margin-right: 8px;
}

/* Copy button */
.copy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--surface-light);
  color: var(--fg);
}

/* Footer - Compact & Wide */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-section {
  /* Ensure consistent box sizing */
  padding: 0;
  margin: 0;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Copyright footer - Compact */
.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Simple footer for backward compatibility */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.copyright .subtext {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Blog styles */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.post-category {
  display: inline-block;
  background: rgba(170, 170, 170, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 16px;
}

.post-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.post-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.post-meta {
  color: var(--muted);
  font-size: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
}

.pagination a {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--fg);
}

.pagination a.active {
  background: var(--primary);
  color: #111111;
  border-color: var(--primary);
}

/* Article styles */
.article-header {
  margin-bottom: 40px;
}

.article-category {
  display: inline-block;
  background: rgba(170, 170, 170, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 16px;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.conclusion {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  padding: 24px;
  margin: 40px 0;
  border-radius: 8px;
}

/* Callouts (grayscale) */
.tip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 20px;
  margin: 24px 0;
  border-radius: 8px;
}

.warning-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-dark);
  padding: 20px;
  margin: 24px 0;
  border-radius: 8px;
}

.command-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 24px 0;
  overflow: hidden;
}

.command-demo-header {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
}

.command-demo-content {
  padding: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.5;
}

.step-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.step-list li {
  counter-increment: step;
  margin-bottom: 24px;
  position: relative;
  padding-left: 52px;
}

.step-list li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #0a0a0a;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.article-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-navigation a {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
}

.article-navigation a:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.article-content {
  line-height: 1.8;
}

.article-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
}

.article-content h3 {
  font-size: 22px;
  margin: 32px 0 16px;
}

.article-content p {
  margin: 0 0 24px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content pre,
.article-content code {
  background: var(--surface);
  border-radius: 6px;
}

.article-content pre {
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  background: #1a1a1a;
  border-radius: 8px;
}

.article-content code {
  padding: 2px 6px;
  font-size: 14px;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .subscription-panel-wide {
    grid-column: span 1;
  }
  .article-content h2 {
    font-size: 24px;
  }
  .article-content h3 {
    font-size: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
/* Button Components */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Input Components */
.input {
  appearance: none;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.btn.primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn.active {
  background: var(--accent);
  border-color: var(--primary);
}

.btn.active:hover {
  background: var(--primary);
}

.btn-lg {
  font-size: 16px;
  padding: 12px 28px;
}

.btn-xl {
  font-size: 18px;
  padding: 16px 32px;
}

.btn-secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}
/* Card Components */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

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

.subscription-panel-wide {
  grid-column: span 2;
}

/* Billing Components */
.code-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.price-item .label {
  font-weight: 600;
  color: var(--muted);
}

.price-item .value {
  font-weight: 500;
  color: var(--text);
}

.pricing-features {
  margin-top: 12px;
  padding-left: 16px;
}

.pricing-features div {
  margin-bottom: 4px;
  color: var(--text-light);
}

/* Mobile responsiveness for billing */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .subscription-panel-wide {
    grid-column: span 1;
  }
  
  .code-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .code-row .input,
  .code-row .btn {
    width: 100%;
  }
}

/* Feature Components */
.features,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.features-title {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
  font-size: var(--font-size-3xl);
  line-height: 1.15;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  margin: 0 0 var(--space-sm);
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.5;
}

.feature-details ul {
  margin: 0;
  padding-left: var(--space-lg);
  color: var(--text-muted);
}

.feature-details li {
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

/* Responsive feature cards */
@media (max-width: 768px) {
  .features,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================== */
/* Mobile polish           */
/* ====================== */
@media (max-width: 480px) {
  .container {
    padding: 28px 16px 56px;
  }

  header {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
  }

  nav a {
    font-size: 13px;
  }

  .brand-name {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 34px;
    letter-spacing: -0.2px;
  }

  .terminal-splash {
    padding: 12px 14px;
    margin-bottom: 18px;
  }

  .terminal-pre {
    font-size: 10px;
    line-height: 1.15;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: var(--space-lg);
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-autonomy {
    padding: 14px;
  }

  .pricing-card {
    padding: 16px;
  }

  .pricing-card .pricing-features li {
    padding: 8px 0 8px 26px;
  }
}

/* Hero Components */
.hero {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.hero h1 {
  font-size: var(--font-size-4xl);
  margin: 0 0 var(--space-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

/* Homepage: terminal-style hero splash */
.terminal-splash {
  max-width: 880px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.terminal-pre {
  margin: 0;
  white-space: pre;
  display: inline-block;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(10px, 1.35vw, 14px);
  line-height: 1.25;
  color: var(--text-light);
}

.terminal-rainbow {
  display: inline-block;
  background-image: linear-gradient(
    90deg,
    #ff2d55,
    #ff9500,
    #ffd60a,
    #34c759,
    #32ade6,
    #5856d6,
    #ff2d55
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 10s linear infinite, rainbowPulse 10s ease-in-out infinite;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.terminal-cursor {
  display: inline-block;
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.85);
  animation: blink 1.05s steps(2, end) infinite;
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes rainbowPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0.0)); opacity: 0.95; }
  50% { filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.18)); opacity: 1; }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Homepage: hero autonomy block (keeps above-the-fold clean; no testimonials) */
.hero-autonomy {
  margin: var(--space-lg) auto 0;
  max-width: 860px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.hero-autonomy-lede {
  margin: 0 0 var(--space-md);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
}

.hero-autonomy-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-light);
}

.hero-autonomy-list li {
  margin: 10px 0;
  line-height: 1.55;
}

.hero-autonomy-list strong {
  color: var(--text);
}

.hero-autonomy-note {
  margin: var(--space-md) 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Use Cases page */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.use-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
}

.use-case-icon {
  font-size: 34px;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.use-case-card h3 {
  margin: 0 0 var(--space-sm);
  font-size: var(--font-size-xl);
}

.use-case-card p {
  margin: 0 0 var(--space-md);
  color: var(--text-light);
}

.use-case-details ul {
  margin: 0;
  padding-left: 18px;
}

.use-case-details li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.workflow-section {
  margin: var(--space-3xl) 0;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.workflow-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.workflow-step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.workflow-step p {
  margin: 0;
  color: var(--text-light);
}

.cta-section {
  margin: var(--space-3xl) 0;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.cta-section h2 {
  margin: 0 0 var(--space-sm);
}

.cta-section p {
  margin: 0 0 var(--space-lg);
  color: var(--text-light);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

.social-proof {
  margin-top: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.social-proof-highlight {
  color: var(--text-light);
  font-weight: 600;
}

/* Enhanced Social Proof Styles */
.social-proof.enhanced {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.social-proof-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-base);
}

.social-proof-icon {
  color: var(--success);
  font-weight: bold;
  font-size: var(--font-size-lg);
}

.social-proof-testimonial {
  border-left: 2px solid var(--border);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
}

.social-proof-testimonial-author {
  margin-top: var(--space-sm);
  font-weight: 600;
  font-style: normal;
  color: var(--text-light);
}

.social-proof-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  justify-content: center;
}

.social-proof-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.social-proof-badge-icon {
  color: var(--success);
}

/* Pricing Components */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--background);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.pricing-card h3 {
  font-size: var(--font-size-xl);
  margin: 0 0 var(--space-sm);
  color: var(--text);
}

.price {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0 0 var(--space-md);
  color: var(--text);
}

.price span {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.pricing-card .pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  text-align: left;
}

.pricing-card .pricing-features li {
  position: relative;
  padding: 10px 0 10px 28px; /* left room for checkmark */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.45;
}

.pricing-card .pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.95;
}

.pricing-card .pricing-features li:first-child {
  color: var(--text);
  font-weight: 600;
}

.pricing-card .pricing-features li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Content section */
.content-section {
  margin-top: var(--space-2xl); /* 40px */
  margin-bottom: var(--space-2xl);
}

/* Documentation Sidebar (legacy class names) */
/* Benefits section */
.benefits {
  margin: var(--space-3xl) 0;
  padding: var(--space-2xl) 0;
}
.benefits-container {
  max-width: 1000px;
  margin: 0 auto;
}
.benefits-title {
  text-align: center;
  margin: 0 0 var(--space-xl);
  font-size: var(--font-size-3xl);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}
.benefit-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.benefit-card h3 {
  margin: 0 0 var(--space-md);
  font-size: var(--font-size-2xl);
}
.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.sidebar {
  position: sticky;
  top: 40px;
  height: fit-content;
  width: 240px;
  flex-shrink: 0;
}

/* Comparison section */
.comparison {
  margin: var(--space-3xl) 0;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.comparison-title {
  text-align: center;
  margin: 0 0 var(--space-xl);
  font-size: var(--font-size-3xl);
}
.comparison-container {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.comparison-table thead tr {
  border-bottom: 2px solid var(--border);
  background: var(--surface-light);
}
.comparison-table th {
  text-align: left;
  padding: var(--space-md);
  font-weight: 600;
  color: var(--muted);
}
.comparison-table th:first-child {
  color: var(--text-muted);
}
.comparison-table th:nth-child(2) {
  color: var(--primary);
  text-align: center;
}
.comparison-table td {
  padding: var(--space-md);
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}
.comparison-table tr:hover td {
  background-color: rgba(170, 170, 170, 0.05);
}
.comparison-table td:first-child {
  color: var(--text);
  font-weight: 600;
}
.comparison-table td:nth-child(2) {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
}
.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4) {
  text-align: center;
  color: var(--muted);
}

/* Responsive comparison table */
@media (max-width: 768px) {
  .comparison-container {
    margin: 0 -16px;
    padding: 0 16px;
  }
  .comparison-table {
    font-size: var(--font-size-xs);
  }
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-sm);
  }
}

.sidebar-nav {
  /* navigation container */
}

.sidebar-title {
  color: var(--primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  font-weight: 600;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
}

.sidebar-nav a.active {
  background: rgba(170, 170, 170, 0.15);
  color: var(--primary);
  font-weight: 600;
  border-left: 3px solid var(--primary);
  padding-left: 13px; /* 16px - 3px border */
}

.sidebar-nav a:hover {
  background: rgba(170, 170, 170, 0.1);
  color: var(--primary);
  text-decoration: none;
}

.main-content {
  flex: 1;
  max-width: 900px;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--fg);
}

.doc-header {
  margin-bottom: 40px;
}

.doc-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 16px;
}

.doc-header p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}
/* Documentation layout */
.container > .sidebar:first-child {
  float: left;
}
.container > .main-content {
  margin-left: 260px;
  overflow: hidden;
}
/* Responsive */
.container::after {
  content: '';
  display: table;
  clear: both;
}
/* Promo banner removed (subscription-only product) */

@media (max-width: 768px) {
  .doc-layout,
  .docs-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .doc-sidebar,
  .docs-sidebar,
  .faq-sidebar {
    position: static;
  }
  .container > .sidebar:first-child {
    float: none;
    width: auto;
  }
  .container > .main-content {
    margin-left: 0;
  }


/* ====================== */
}
/* UTILITY CLASSES        */
/* ====================== */

/* Flexbox utilities */
.flex { display: flex; }
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-center {
  display: flex;
  align-items: center;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.flex-align-center {
  display: flex;
  align-items: center;
}
.flex-justify-between {
  display: flex;
  justify-content: space-between;
}

/* Spacing utilities */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.my-xl { margin-top: var(--space-xl); margin-bottom: var(--space-xl); }
.my-lg { margin-top: var(--space-lg); margin-bottom: var(--space-lg); }
.mb-60 { margin-bottom: 60px; }
.mb-50 { margin-bottom: 50px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.w-full { width: 100%; }

/* Typography utilities */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-md { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-light { color: var(--text-light); }
.leading-normal { line-height: 1.6; }
.font-semibold { font-weight: 600; }

/* Component utilities */
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.user-status-label {
  font-weight: 600;
  color: var(--text-light);
}
.user-email-label {
  font-size: var(--font-size-sm);
  color: var(--muted);
}
.btn-surface {
  background: var(--surface);
  border-color: var(--border);
}
.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}
.usage-label {
  font-size: var(--font-size-sm);
  color: var(--muted);
}
.usage-percent {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-weight: 600;
}
.meter-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 8px;
  overflow: hidden;
  position: relative;
}
.meter-bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* Layout utilities */
.flex-1 { flex: 1; }

.flex-align-baseline { align-items: baseline; }

/* Additional utility classes for billing page */

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display utilities */
.hidden { display: none; }

/* Font sizes */
.text-12 { font-size: 12px; }
.text-13 { font-size: 13px; }
.text-14 { font-size: 14px; }
.text-15 { font-size: 15px; }
.text-16 { font-size: 16px; }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Margin utilities */
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-24 { margin-top: 24px; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.ml-0 { margin-left: 0; }
.ml-4 { margin-left: 4px; }
.ml-8 { margin-left: 8px; }
.ml-12 { margin-left: 12px; }
.ml-16 { margin-left: 16px; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-8 { padding: 8px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }

/* Border radius */
.rounded-sm { border-radius: 4px; }
.rounded-md { border-radius: 8px; }
.rounded-lg { border-radius: 10px; }
.rounded-xl { border-radius: 12px; }

/* Background and border */
.bg-card { background: var(--card); }
.border-card { border: 1px solid var(--border); }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Pricing panel specific */
.pricing-plan {
  margin-bottom: 20px;
}
.pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pricing-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.pricing-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.pricing-features {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  color: var(--accent);
  line-height: 1.6;
}
.feature-list {
  margin-bottom: 8px;
}
.feature-item {
  margin-left: 12px;
  margin-bottom: 4px;
}
.feature-item:last-child {
  margin-bottom: 0;
}
.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--primary-dark);
}
/* ==========================================================================
   Accessibility & Screen Reader Utilities
   ========================================================================== */

/* Screen reader only - hide visually but available to screen readers */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link - appears on focus */
.skip-link {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  background: var(--primary);
  color: var(--bg);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
  border-radius: var(--radius-md);
  font-weight: 600;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Improved focus styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Remove focus outline for mouse users but keep for keyboard */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Better focus styles for buttons */
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text: #ffffff;
    --text-muted: #d4d4d4;
    --border: #666666;
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Pricing toggle switch */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.pricing-toggle-label {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
}

.pricing-toggle-label.active {
  color: var(--primary);
}

.pricing-toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
}

.pricing-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-light);
  border: 2px solid var(--border);
  border-radius: 34px;
  transition: .3s;
}

.pricing-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: var(--primary);
  border-radius: 50%;
  transition: .3s;
}

.pricing-toggle-switch input:checked + .pricing-toggle-slider {
  background-color: var(--surface);
  border-color: var(--primary);
}

.pricing-toggle-switch input:checked + .pricing-toggle-slider:before {
  transform: translateX(26px);
}

.pricing-savings-badge {
  display: inline-block;
  background-color: var(--success);
  color: var(--background);
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-sm);
}

.pricing-annual-note {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Billing page: improve plan cards */
#pricing-panel {
  margin-top: var(--space-xl);
}

#pricing-panel > h3 {
  margin: 0 0 var(--space-md);
}

#pricing-panel #pro-plan,
#pricing-panel #max-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

#pricing-panel #pro-plan {
  border-color: rgba(255, 255, 255, 0.18);
}

#pricing-panel #max-plan {
  border-color: rgba(255, 255, 255, 0.12);
}

#pricing-panel .pricing-features {
  margin-top: var(--space-md);
  color: var(--text-light);
}

#pricing-panel .text-gray {
  color: var(--text-muted);
}

#pricing-panel .btn {
  white-space: nowrap;
}

/* Billing page layout + cohesion */
.billing-page .container {
  max-width: 1200px;
}

.billing-page .billing-main {
  margin-top: var(--space-lg);
}

.billing-page .billing-hero {
  margin: 0 0 var(--space-lg);
}

.billing-page .title {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.2px;
}

.billing-page .subtitle {
  margin: 0 0 var(--space-lg);
  max-width: 72ch;
  color: var(--text-muted);
  font-size: 16px;
}

.billing-page #user-status-panel {
  margin: var(--space-md) 0 var(--space-lg);
}

.billing-page #user-status-panel .user-status-label {
  color: var(--text-muted);
  font-size: 13px;
}

.billing-page #user-status-panel .user-email-label {
  color: var(--text);
  font-weight: 600;
}

.billing-page .panel h3 {
  margin-top: 0;
}

.billing-page .billing-layout {
  display: grid;
  /* Spread columns wider for better horizontal balance */
  grid-template-columns: minmax(350px, 1fr) minmax(350px, 1fr);
  gap: var(--space-xl);
  align-items: start;
  justify-content: center;
}

.billing-page .billing-left,
.billing-page .billing-right {
  min-width: 0;
}

.billing-page .billing-status {
  margin: var(--space-lg) 0;
}

.billing-page .billing-card + .billing-card {
  margin-top: var(--space-lg);
}

/* Billing: draw attention to sign-in panel when an auth-required action is attempted */
.billing-page .needs-attention {
  animation: billingAttention 0.9s ease-in-out 1;
}

@keyframes billingAttention {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.00); transform: translateY(0); }
  35% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.00); transform: translateY(0); }
}

.billing-page .billing-actions {
  align-items: flex-start;
}

.billing-page .billing-plans {
  position: sticky;
  top: 16px;
}

.billing-page .plan-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 980px) {
  .billing-page .plan-cards-container {
    grid-template-columns: 1fr;
  }
}

.billing-page .plan-cards-container .billing-plan {
  margin-bottom: 0;
}

.billing-page .billing-plan {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  margin-bottom: var(--space-md);
}

.billing-page .billing-plan h4 {
  margin: 0;
}

.billing-page .billing-trial-note {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
}

@media (max-width: 980px) {
  .billing-page .billing-layout {
    grid-template-columns: 1fr;
  }
  .billing-page .billing-plans {
    position: static;
  }
}

/* Billing plans feature list */
#pricing-panel .plan-features {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

#pricing-panel .plan-features li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.45;
}

#pricing-panel .plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
}

#pricing-panel .plan-features li:last-child {
  border-bottom: none;
}

#pricing-panel .plan-features strong {
  color: var(--text);
}

/* Horizontal layout for billing right column on large screens */
@media (min-width: 981px) {
  .billing-page #pricing-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "header header"
      "badges badges"
      "toggle toggle"
      "plans comparison"
      "trial trial"
      "testimonials testimonials"
      "riskfree riskfree";
    gap: var(--space-xl);
  }
  .billing-page #pricing-panel h3 {
    grid-area: header;
  }
  .billing-page #pricing-panel .social-proof-badges {
    grid-area: badges;
  }
  .billing-page #pricing-panel .pricing-toggle {
    grid-area: toggle;
  }
  .billing-page #pricing-panel .plan-cards-container {
    grid-area: plans;
  }
  .billing-page #pricing-panel .billing-trial-note.mt-2xl:first-of-type {
    grid-area: comparison;
  }
  .billing-page #pricing-panel .billing-trial-note:not(.mt-2xl) {
    grid-area: trial;
  }
  .billing-page #pricing-panel .billing-trial-note.mt-2xl:last-of-type {
    grid-area: testimonials;
  }
  .billing-page #pricing-panel .text-center.mt-lg.mb-lg {
    grid-area: riskfree;
  }
}

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

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}

/* ARIA live regions */
[aria-live="polite"],
[aria-live="assertive"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[aria-live="polite"]:not(:empty),
[aria-live="assertive"]:not(:empty) {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}/* Demo section - See it in action */
.demo {
  padding: var(--space-2xl) 0;
  background: var(--bg-alt);
}

.demo-tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.tab-btn {
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: var(--bg-hover);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.terminal-window {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.terminal-header {
  background: #1a1a1a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.terminal-title {
  color: #aaa;
  font-size: 13px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.terminal-body {
  padding: var(--space-lg);
}

.terminal-body pre {
  margin: 0;
  overflow-x: auto;
}

.terminal-body code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #e6e6e6;
}

.demo-note {
  font-size: 14px;
}
/* ==========================================================================
   Tooltips for feature explanations
   ========================================================================== */

[data-tooltip] {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--text-muted);
}

[data-tooltip]:hover::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-light);
  color: var(--text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  z-index: 1000;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  max-width: 300px;
}

[data-tooltip]:hover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--surface-light);
  margin-bottom: -12px;
}

/* For tooltips on the right side to avoid overflow */
[data-tooltip].tooltip-right:hover::before {
  left: auto;
  right: 0;
  transform: none;
}

[data-tooltip].tooltip-right:hover::after {
  left: auto;
  right: 20px;
  transform: none;
}

/* Tooltip icon style */
.tooltip-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  color: var(--bg);
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  font-weight: bold;
  margin-left: var(--space-xs);
  cursor: help;
  vertical-align: middle;
}
