/* CSS Variables for Clean Minimalist Light Design System */
:root {
  --bg-primary: #f8f9fa; /* Sleek light off-white */
  --bg-secondary: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-border-hover: rgba(0, 0, 0, 0.1);
  --glass-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.01);
  
  --color-primary: #111827; /* Deep Slate/Charcoal for text and primary controls */
  --color-primary-glow: rgba(17, 24, 39, 0.05);
  --color-secondary: #4b5563; /* Medium Slate */
  --color-accent: #e5e7eb; /* Light Gray */
  --color-text-main: #1f2937;
  --color-text-muted: #6b7280;
  --color-text-dark: #111827;
  --color-success: #059669;
  --color-error: #dc2626;
  
  --font-family-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%);
  color: var(--color-text-main);
  font-family: var(--font-family-body);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Visually Hidden Helper (Accessibility-first) */
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* Animated Ambient White/Light-Gray Blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ffffff 0%, #f3f4f6 70%, #e5e7eb 100%);
  top: -15%;
  left: -15%;
  animation: floatBlob 20s infinite alternate;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ffffff 0%, #f9fafb 70%, #f3f4f6 100%);
  bottom: -10%;
  right: -10%;
  animation: floatBlob 25s infinite alternate-reverse;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f9fafb 0%, #e5e7eb 100%);
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatBlob 18s infinite alternate 2s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, 6%) scale(1.05); }
  100% { transform: translate(-3%, -3%) scale(0.97); }
}

/* Container & Typography */
.app-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.app-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.5rem 1.15rem;
  border-radius: 99px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: #111827;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.logo-text {
  font-family: var(--font-family-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #111827;
}

.app-title {
  font-family: var(--font-family-title);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.app-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 400;
}

/* Glassmorphism Light Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.01);
}

/* Inputs and Forms */
#screenshot-form {
  display: grid;
  gap: 2rem;
}

.input-group {
  display: grid;
  gap: 0.75rem;
}

.input-label {
  font-family: var(--font-family-title);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.url-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.url-prefix-icon {
  position: absolute;
  left: 1.15rem;
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

#url-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 3.15rem;
  color: var(--color-text-main);
  font-family: var(--font-family-body);
  font-size: 1.05rem;
  outline: none;
  min-height: 52px;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

#url-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.05);
  background: #ffffff;
}

#url-input:focus + .url-prefix-icon,
#url-input:not(:placeholder-shown) + .url-prefix-icon {
  color: var(--color-primary);
}

.error-message {
  color: var(--color-error);
  font-size: 0.85rem;
  min-height: 1.25rem;
  margin-top: -0.25rem;
}

/* Viewport Fieldset & Choices */
.viewport-fieldset {
  border: none;
  display: grid;
  gap: 0.75rem;
}

.viewport-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.viewport-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.viewport-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.card-content {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-bounce);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.device-icon {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
}

.device-meta {
  display: flex;
  flex-direction: column;
}

.device-name {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text-main);
}

.device-dims {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

/* Selection and Hover Logic */
.viewport-card:hover .card-content {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-2px);
}

.viewport-card input[type="radio"]:checked + .card-content {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px) scale(1.02);
}

.viewport-card input[type="radio"]:checked + .card-content .device-icon {
  color: var(--color-primary);
  transform: scale(1.15);
}

/* Accessibility Focus States */
.viewport-card input[type="radio"]:focus-visible + .card-content {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 4px;
}

/* Ad Block Toggle Switch */
.ad-block-group {
  display: grid;
  gap: 0.75rem;
}

.toggle-switch-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toggle-switch-wrapper:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.toggle-label-text {
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  font-weight: 500;
}

.toggle-switch-container {
  position: relative;
  width: 50px;
  height: 28px;
}

.toggle-switch-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 99px;
  transition: var(--transition-smooth);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition-bounce);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

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

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

/* Accessibility Focus States for Toggle Switch */
.toggle-switch-container input:focus-visible + .toggle-slider {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Premium White Gradient Submit Button styling */
.submit-button {
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  border: 1.5px solid #d1d5db;
  color: #111827;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 54px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-bounce);
}

.submit-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 100%);
  border-color: #9ca3af;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:focus-visible {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
}

.submit-button:hover .btn-shine {
  left: 125%;
}

/* Status / Loader Card */
.status-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-color: #e5e7eb;
  background: rgba(255, 255, 255, 0.8);
}

.loading-animation {
  position: relative;
}

.spinner {
  width: 48px;
  height: 48px;
  position: relative;
}

.spinner-circle {
  width: 100%;
  height: 100%;
  border: 4px solid #f3f4f6;
  border-top-color: var(--color-primary);
  border-right-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-core {
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #e5e7eb;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.status-content {
  flex-grow: 1;
  display: grid;
  gap: 0.4rem;
}

.status-title {
  font-family: var(--font-family-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
}

.status-message {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.status-progress-track {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.status-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #4b5563, #111827);
  border-radius: 99px;
  width: 15%;
  transition: width 0.4s ease-out;
}

/* Error Card */
.error-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(220, 38, 38, 0.02);
}

.error-icon {
  color: var(--color-error);
  margin-top: 0.2rem;
}

.error-content {
  flex-grow: 1;
}

.error-title {
  font-family: var(--font-family-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-error);
  margin-bottom: 0.25rem;
}

.error-description {
  color: #b91c1c;
  font-size: 0.95rem;
}

.error-close-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.error-close-btn:hover {
  color: black;
  background: rgba(0, 0, 0, 0.05);
}

/* Result Card & Mockup Frame */
.result-card {
  display: grid;
  gap: 1.5rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.result-title {
  font-family: var(--font-family-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
}

.result-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.download-button {
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  color: #374151;
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.download-button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Browser Frame Container */
.preview-frame-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.browser-chrome {
  background: #f3f4f6;
  height: 40px;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

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

.chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; opacity: 0.9; }
.dot-yellow { background: #ffbd2e; opacity: 0.9; }
.dot-green { background: #27c93f; opacity: 0.9; }

.chrome-address-bar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.8rem;
  padding: 0.25rem 1rem;
  border-radius: 6px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-viewport-window {
  position: relative;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f9fafb;
  /* Custom Scrollbar for viewport mockup */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.preview-viewport-window::-webkit-scrollbar {
  width: 8px;
}

.preview-viewport-window::-webkit-scrollbar-track {
  background: transparent;
}

.preview-viewport-window::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 99px;
}

.preview-viewport-window::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

.screenshot-img {
  width: 100%;
  display: block;
  height: auto;
  background: #ffffff;
}

.preview-zoom-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #d1d5db;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
  transition: var(--transition-smooth);
}

.preview-zoom-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
  border-color: #111827;
  color: #111827;
}

/* Lightbox Dialog Styles */
.lightbox-dialog {
  border: none;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  outline: none;
  z-index: 9999;
}

.lightbox-dialog::backdrop {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lightbox-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1.5rem 1.5rem 1.5rem;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lightbox-close:hover {
  background: var(--color-error);
  border-color: var(--color-error);
  color: white;
  transform: rotate(90deg);
}

.lightbox-scrollable {
  width: 100%;
  max-width: 1100px;
  height: calc(100vh - 4.5rem);
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.lightbox-scrollable img {
  width: 100%;
  height: auto;
  display: block;
}

/* Utility visibility classes */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    padding: 1rem 0.5rem;
  }
  
  .app-title {
    font-size: 2rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .viewport-options {
    grid-template-columns: 1fr;
  }
  
  .result-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .download-button {
    justify-content: center;
  }
  
  .seo-title {
    font-size: 1.4rem;
  }

  .seo-card {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }

  .faq-item summary {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1rem 1rem 1rem;
  }
}

/* SEO and FAQ Section Styling */
.seo-card {
  margin-top: 1.5rem;
  display: grid;
  gap: 2rem;
}

.seo-title {
  font-family: var(--font-family-title);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
  line-height: 1.25;
}

.seo-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: -1.25rem;
}

.seo-article-body {
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-main);
  display: grid;
  gap: 1.25rem;
}

.seo-article-body strong {
  color: var(--color-text-dark);
  font-weight: 600;
}

.seo-subheading {
  font-family: var(--font-family-title);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-dark);
  margin-top: 0.5rem;
  border-left: 3px solid var(--color-primary);
  padding-left: 0.75rem;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.seo-feature {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  transition: var(--transition-bounce);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.seo-feature:hover {
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.seo-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.seo-feature h4 {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.seo-feature p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Accordion FAQ Styling */
.faq-group {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  background: #ffffff;
}

.faq-item summary {
  list-style: none; /* Hide default chevron in chrome/safari */
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none; /* Hide default chevron in safari */
}

.faq-chevron {
  color: var(--color-text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  border-top: 1px solid transparent;
  animation: slideDown 0.3s ease-out;
}

.faq-item[open] .faq-answer {
  border-color: #f3f4f6;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* App Footer Styling */
.app-footer {
  margin-top: 3rem;
  padding: 2.5rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.footer-links a {
  font-family: var(--font-family-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  opacity: 0.8;
}

/* Generic Layout for Sub-pages */
.page-container {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  gap: 2rem;
}

.page-header {
  text-align: center;
}

.page-title {
  font-family: var(--font-family-title);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.content-card {
  display: grid;
  gap: 1.5rem;
}

.content-card h2 {
  font-family: var(--font-family-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-top: 0.75rem;
  border-left: 3px solid var(--color-primary);
  padding-left: 0.75rem;
}

.content-card p, .content-card li {
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-main);
}

.content-card ul {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.content-card strong {
  color: var(--color-text-dark);
}

/* Contact Form Styling */
.contact-form {
  display: grid;
  gap: 1.5rem;
}

.textarea-wrapper {
  position: relative;
  display: flex;
}

#message-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--color-text-main);
  font-family: var(--font-family-body);
  font-size: 1.05rem;
  outline: none;
  min-height: 150px;
  resize: vertical;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

#message-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.05);
}

.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  font-family: var(--font-family-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text-dark);
}

.success-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Spacing and margins */
body {
  padding-top: 3rem !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    padding-top: 1rem !important;
  }

  .page-title {
    font-size: 2rem;
  }
  
  .app-footer {
    padding: 2rem 0.5rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
}

/* Error Pages Custom Styling */
.error-container {
  text-align: center;
  max-width: 550px;
  margin: 4rem auto;
  display: grid;
  gap: 1.5rem;
}

.error-code-badge {
  font-family: var(--font-family-title);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.03));
}

.error-card-title {
  font-family: var(--font-family-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
}

.error-card-desc {
  font-family: var(--font-family-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

