/* Flowback Modern Design System - macOS Native Aesthetic */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, -system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #0a0d14;
  --bg-secondary: #10141e;
  --bg-card: #151a26;
  --bg-card-hover: #1c2233;
  --bg-elevated: #22293d;
  --border-subtle: #232a3b;
  --border-bright: #38435d;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverted: #0a0d14;

  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 32px rgba(56, 189, 248, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --max-width: 1200px;
  --header-height: 64px;
  --container-padding: clamp(1rem, 3.5vw, 1.5rem);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #e2e8f0;
  --border-subtle: #e2e8f0;
  --border-bright: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverted: #ffffff;

  /* WCAG AA/AAA compliant Deep Focus Blue for Light Mode per Brand Guidelines */
  --accent-cyan: #0284c7;
  --accent-blue: #0369a1;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 32px rgba(2, 132, 199, 0.12);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.nav-open {
  overflow: hidden;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  background: var(--accent-cyan);
  color: #000000;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-blue);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  max-width: 75ch;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.35rem); }

/* Code & Pre */
code, pre {
  font-family: var(--font-mono);
}

code {
  background-color: var(--bg-secondary);
  color: var(--accent-cyan);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  border: 1px solid var(--border-subtle);
  overflow-wrap: break-word;
  word-break: break-word;
}

pre {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  padding-top: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

/* Copy Button for Code Blocks */
.copy-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 11px;
  min-height: 28px;
  min-width: 48px;
  padding: 4px 10px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 2;
}

.copy-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-bright);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

[data-theme="light"] .site-header {
  background-color: rgba(248, 250, 252, 0.85);
}

.header-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text-primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.mobile-nav-actions {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1rem);
  flex-shrink: 0;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.15s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-bright);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all 0.15s ease;
}

.mobile-menu-btn:hover {
  background-color: var(--bg-card);
  border-color: var(--border-bright);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.5);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-bright);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-bmc {
  background-color: #FFDD00;
  color: #0D0C22 !important;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 10px rgba(255, 221, 0, 0.3);
}

.btn-bmc:hover {
  background-color: #ffd000;
  color: #0D0C22 !important;
  box-shadow: 0 4px 18px rgba(255, 221, 0, 0.5);
  transform: translateY(-1px);
}

.bmc-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  min-height: 48px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.badge-supported {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-partial {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-planned {
  background-color: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-neutral {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Layout Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--container-padding);
  width: 100%;
}

.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem) auto;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--container-padding) clamp(2rem, 4vw, 3rem) var(--container-padding);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 850px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.05rem, 2vw + 0.3rem, 1.25rem);
  max-width: 680px;
  margin: 0 auto 2rem auto;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-highlights {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-preview {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border-bright);
}

.hero-preview img,
.hero-preview svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.grid-2 > *,
.grid-3 > * {
  min-width: 0;
  max-width: 100%;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 1.75rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.card > * {
  min-width: 0;
  max-width: 100%;
}

.card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-featured {
  max-width: 850px;
  margin: 0 auto 3rem auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.intent-card {
  flex: 1 1 200px;
  min-width: 0;
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.download-action-btn {
  flex: 1 1 220px;
  min-width: 0;
  width: 100%;
}

/* Comparison Table */
.table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
}

.table-container:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

th {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  min-height: 48px;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--container-padding) max(2rem, env(safe-area-inset-bottom)) var(--container-padding);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.2rem 0;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Support Page Styles */
.support-card-featured {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid rgba(255, 221, 0, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(26, 32, 48, 0.95) 100%);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 221, 0, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .support-card-featured {
  border-color: rgba(217, 119, 6, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(217, 119, 6, 0.06);
}

.support-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 221, 0, 0.12);
  border: 1px solid rgba(255, 221, 0, 0.3);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .support-badge {
  background-color: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.25);
  color: #b45309;
}

.support-card-featured h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

.support-card-featured p.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 680px;
  margin: 0 auto 2rem auto;
  color: var(--text-secondary);
}

.support-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
  text-align: left;
}

.support-tier-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-tier-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.support-tier-badge {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.support-tier-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

[data-theme="light"] .support-tier-title {
  color: var(--accent-blue);
}

.support-tier-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
  flex-grow: 1;
}

.support-canonical-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.support-canonical-note a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.support-impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.support-impact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.support-impact-item .check {
  color: var(--accent-emerald);
  font-weight: bold;
  flex-shrink: 0;
}

/* Membership Levels Grid */
.membership-levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
  text-align: left;
}

.membership-level-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.membership-level-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.membership-level-card.featured-level {
  border-color: rgba(255, 221, 0, 0.45);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(255, 221, 0, 0.04) 100%);
}

[data-theme="light"] .membership-level-card.featured-level {
  border-color: rgba(217, 119, 6, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, rgba(217, 119, 6, 0.04) 100%);
}

.membership-level-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.membership-level-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

[data-theme="light"] .membership-level-price {
  color: var(--accent-blue);
}

.membership-level-price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.membership-level-yearly {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.membership-level-benefits {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0;
}

.membership-level-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
}

.membership-level-benefits li span.check {
  color: var(--accent-emerald);
  font-weight: bold;
  flex-shrink: 0;
}

.thank-you-card {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) var(--container-padding);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.thank-you-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.thank-you-card blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
  border: none;
  font-style: normal;
}

.thank-you-author {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Responsive Media Queries */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 13, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.5rem var(--container-padding) 3rem var(--container-padding);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.5rem;
    z-index: 99;
  }

  [data-theme="light"] .nav-links.open {
    background-color: rgba(248, 250, 252, 0.96);
  }

  .nav-links.open li {
    width: 100%;
  }

  .nav-links.open a {
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    min-height: 48px;
    border: 1px solid transparent;
  }

  .nav-links.open a:hover,
  .nav-links.open a.active {
    background-color: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--accent-cyan);
  }

  .mobile-nav-actions {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
  }

  .mobile-nav-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Compact Header Navigation (1025px - 1180px) */
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-links a {
    font-size: 0.88rem;
    padding: 0.4rem 0.2rem;
  }
  .header-cta.btn-secondary {
    display: none !important;
  }
}

/* Tablet Portrait & Large Mobile Header CTA Adaptation */
@media (min-width: 681px) and (max-width: 1024px) {
  .header-cta.btn-secondary {
    display: none !important;
  }
}

/* Mobile Devices (<= 680px) */
@media (max-width: 680px) {
  .header-cta {
    display: none !important;
  }

  .grid-2,
  .grid-3,
  .support-tiers,
  .membership-levels-grid {
    grid-template-columns: 1fr;
  }

  .card .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .support-card-featured .btn-lg,
  .thank-you-card .btn-lg {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .brand span {
    font-size: 1.1rem;
  }
}

/* Very Narrow Mobile Screens (<= 360px) */
@media (max-width: 360px) {
  .hero-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  .btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
  }

  .support-card-featured {
    padding: 1.25rem 0.75rem;
  }
}

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

  .card:hover,
  .btn:hover {
    transform: none !important;
  }
}
