/* Consistent styling with clai app */
:root {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dark theme (default) */
:root[data-theme="dark"],
:root {
  color-scheme: dark;
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --bg-elevated: #111;
  --bg-input: #1a1a1a;
  --bg-hover: #2a2a2a;
  --bg-active: #2a2a2a;
  --bg-modal: #1a1a1a;
  
  --border-primary: #222;
  --border-secondary: #333;
  --border-tertiary: #444;
  --border-focus: #555;
  
  --text-primary: #fff;
  --text-secondary: #e5e5e5;
  --text-tertiary: #ccc;
  --text-muted: #999;
  --text-disabled: #666;
  --text-placeholder: #666;
  
  --accent-primary: #60a5fa;
  --accent-primary-bg: #1e3a5f;
  --accent-primary-border: #2a5080;
  --accent-primary-hover: #3a6090;
  
  --accent-secondary: #c084fc;
  --accent-secondary-bg: #4a1e5f;
  
  --error: #fa6060;
  --error-bg: #5f1e1e;
  --error-border: #803a2a;
  
  --warning: #f59e0b;
  --warning-dark: #d97706;
  
  --success: #60a5fa;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
  
  --backdrop: rgba(0, 0, 0, 0.7);
  --grid-dots: #333;
  
  --border-radius: 8px;
  --border-radius-sm: 6px;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  flex: 1;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
}

.logo svg {
  max-width: 100%;
  height: auto;
}

h1 {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo h2 {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.6;
}

footer {
  width: 100%;
  padding: 2rem 0;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-primary);
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

footer a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

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

.footer-cookie-link {
  background: none;
  border: none;
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.footer-cookie-link:hover {
  color: var(--accent-primary-hover);
  text-decoration: underline;
}

/* Content page styles */
.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  position: relative;
  padding-bottom: 5rem;
}

.content-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-primary);
}

.content-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.content-header .last-updated {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.875rem;
}

.content-body h2 {
  color: var(--accent-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-primary);
}

.content-body h3 {
  color: var(--accent-primary);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2rem 0 1rem 0;
}

.content-body p {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.content-body ul,
.content-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.content-body a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.content-body a:hover {
  color: var(--accent-primary-hover);
  text-decoration: underline;
}

/* Enhanced components */
.highlight {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.steps {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.step {
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-primary);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  color: var(--accent-primary);
  font-weight: 600;
  margin-right: 0.5rem;
}

.important {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-left: 4px solid var(--warning);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Table styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Navigation */
.nav-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
  text-align: center;
}

.nav-footer a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary-bg);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 4rem 2rem 6rem;
  background: var(--bg-primary);
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

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

/* Responsive design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .features-section,
  .download-section {
    padding: 6rem 2rem;
  }
  
  .features-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 3rem 1.5rem 2rem;
  }

  .logo {
    gap: 1.5rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-section {
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .logo-svg {
    width: 140px;
    height: 140px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .features-section,
  .download-section {
    padding: 4rem 1.5rem;
  }

  .features-section {
    padding: 3rem 1.5rem 4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.75rem 1.5rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .download-button {
    min-width: unset;
    width: 100%;
  }

  .waitlist-form {
    flex-direction: column;
    gap: 1rem;
  }

  .waitlist-form button {
    width: 100%;
  }

  .content-container {
    padding: 1.5rem;
    padding-bottom: 5rem;
  }

  .content-header h1 {
    font-size: 2rem;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }

  .footer-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 2rem 1rem 1.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .logo svg {
    max-width: 140px;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .logo-svg {
    width: 120px;
    height: 120px;
  }

  .logo-container {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .features-section,
  .download-section {
    padding: 2.5rem 1rem 3.5rem;
  }
  
  .features-grid {
    gap: 1.25rem;
  }

  .feature-card {
    padding: 1.5rem 1.25rem;
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }
  
  .feature-card p {
    font-size: 0.9rem;
  }

  .download-button {
    padding: 1.25rem 1.5rem;
  }

  .download-icon {
    width: 32px;
    height: 32px;
  }

  .platform-label {
    font-size: 1rem;
  }

  .store-label {
    font-size: 0.8rem;
  }

  .waitlist-container h3 {
    font-size: 1.125rem;
  }

  .waitlist-form input[type="email"],
  .waitlist-form button {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .content-container {
    padding: 1rem;
    padding-bottom: 5rem;
  }

  .content-header h1 {
    font-size: 1.75rem;
  }

  .content-body h2 {
    font-size: 1.25rem;
  }

  .highlight,
  .steps,
  .important {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .data-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.25rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: 1rem 2rem;
  z-index: 1000;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.cookie-banner-content a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-accept-btn,
.cookie-customize-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-accept-btn {
  background: var(--accent-primary-bg);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
}

.cookie-customize-btn {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--backdrop);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-primary);
}

.cookie-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.cookie-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-category-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cookie-category-left {
  flex: 1;
}

.cookie-category-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.cookie-category-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  border-radius: 24px;
  border: 1px solid var(--border-primary);
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-disabled);
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--accent-primary-bg);
  border-color: var(--accent-primary);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(24px);
  background-color: var(--accent-primary);
}

.cookie-switch input:disabled + .cookie-slider {
  cursor: not-allowed;
  opacity: 0.8;
}

.cookie-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-primary);
  display: flex;
  justify-content: flex-end;
}

.cookie-save-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: var(--accent-primary-bg);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
}

/* Responsive cookie banner */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem 1.5rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-content p {
    font-size: 0.85rem;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-accept-btn,
  .cookie-customize-btn {
    flex: 1;
  }

  .cookie-modal-content {
    width: 95%;
  }

  .cookie-modal-header {
    padding: 1.25rem 1.5rem;
  }

  .cookie-modal-header h2 {
    font-size: 1.25rem;
  }

  .cookie-modal-body {
    padding: 1.5rem;
  }

  .cookie-category-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-modal-footer {
    padding: 1.25rem 1.5rem;
  }
}

/* Product grid styles */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  color: var(--accent-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.5rem;
}

.product-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-link {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: var(--accent-primary-bg);
  color: var(--accent-primary) !important;
  border: 1px solid var(--accent-primary-border);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-align: center;
  margin-top: auto;
}

.affiliate-disclaimer {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 3rem 0 2rem 0;
  text-align: center;
}

.affiliate-disclaimer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Responsive adjustments for product grid */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .product-card {
    padding: 1rem;
  }

  .product-card h3 {
    font-size: 1.25rem;
  }

  .product-link {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Waitlist form styles */
.waitlist-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.waitlist-container h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.waitlist-form {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 1.125rem 1.75rem;
  font-size: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-placeholder);
  opacity: 0.6;
}

.waitlist-form button {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent-primary-bg);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: system-ui, -apple-system, sans-serif;
  white-space: nowrap;
}

.waitlist-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.waitlist-message {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.waitlist-message.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.waitlist-message.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #e57373;
}

.waitlist-message.loading {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--accent-primary);
}

/* Download section styles */
.download-section {
  padding: 8rem 2rem;
  background: var(--bg-primary);
  position: relative;
}

.download-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.download-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.download-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  min-width: 220px;
  position: relative;
}

.download-button.highlighted {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
}

.download-button.highlighted::after {
  content: "Recommended";
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--accent-primary-bg);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.download-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.download-icon {
  width: 36px;
  height: 36px;
  fill: var(--accent-primary);
  flex-shrink: 0;
}

.button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.platform-label {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.store-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
