/* ============================================================
   OwnAI – External Stylesheet (non-critical CSS)
   Loaded after critical CSS to enable browser caching.
   ============================================================ */

/* Theme Toggle Icons (Unicode sun/moon) */
.header-theme-toggle .theme-icon-sun,
.header-theme-toggle .theme-icon-moon {
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

[data-theme="dark"] .header-theme-toggle .theme-icon-sun { display: inline; }
[data-theme="dark"] .header-theme-toggle .theme-icon-moon { display: none; }
[data-theme="light"] .header-theme-toggle .theme-icon-sun { display: none; }
[data-theme="light"] .header-theme-toggle .theme-icon-moon { display: inline; }

/* Fallback: show sun if no theme attribute set */
.header-theme-toggle .theme-icon-moon { display: none; }

/* Shared Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
  opacity: 0.85;
}

.section-title span {
  color: var(--accent);
}

/* Audience Section */
.audience {
  padding: 3.5rem 0;
}

.audience-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-tertiary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.audience-table th,
.audience-table td {
  padding: 1.2rem 1.5rem;
  text-align: left;
}

.audience-table th {
  background: var(--bg-secondary);
  font-weight: bold;
  color: var(--accent);
  border-bottom: 2px solid var(--border-color);
}

.audience-table td {
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

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

.audience-table tr:hover {
  background: rgba(26, 188, 156, 0.1);
}

/* Comparison Section */
#comparison {
  padding-top: 4rem;
  padding-bottom: 1.5rem;
}

#comparison .section-title {
  margin-bottom: 3rem;
}

#comparison .audience-table {
  margin-bottom: 0;
}

#b2b {
  padding-top: 1rem;
}

#b2b .section-desc {
  margin-bottom: 1rem;
}

.b2b-intro {
  margin-bottom: 0.5rem !important;
}

.b2b-footer-text {
  margin-top: 2rem;
}

#requirements {
  padding-top: 4.5rem;
}

/* Key Benefits */
.key-benefits {
  padding: 3.5rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%), var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .benefit-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(26, 188, 156, 0.15);
}

.benefit-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Social Proof */
.social-proof {
  padding: 3rem 0;
}

.social-proof-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(26, 188, 156, 0.06) 0%, transparent 100%), var(--bg-secondary);
  border: 1px solid rgba(26, 188, 156, 0.18);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.trust-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(26, 188, 156, 0.12);
  border: 1px solid rgba(26, 188, 156, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.social-quote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
}

.social-quote p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  font-style: italic;
}

.trust-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 0;
}

.trust-points li {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-points li::before {
  content: "✓ ";
  color: var(--accent-green);
  font-weight: bold;
}

/* Mid-page CTA */
.mid-cta {
  padding: 2.75rem 0;
  background:
    linear-gradient(180deg, transparent, rgba(26, 188, 156, 0.05)),
    radial-gradient(ellipse at center, rgba(26, 188, 156, 0.08) 0%, transparent 70%);
  border-top: 1px solid rgba(26, 188, 156, 0.15);
  border-bottom: 1px solid rgba(26, 188, 156, 0.15);
}

.mid-cta-inner {
  text-align: center;
}

.mid-cta-text {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.mid-cta .cta-button {
  margin-top: 0;
}

/* CTA section helpers */
.cta-actions-primary {
  margin-bottom: 1rem;
}

.cta-actions-primary .cta-button {
  margin-top: 0;
}

.cta-buy-secondary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.cta-buy-secondary a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cta-buy-secondary a:hover {
  text-decoration: underline;
}

/* Quick FAQ */
.faq-quick {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.faq-more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.faq-more-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.faq-more-link a:hover {
  text-decoration: underline;
}

/* Screenshot card enhancements */
.screenshot-card-logo {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}

.screenshot-card-logo img {
  width: 240px;
  height: auto;
}

.video-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 188, 156, 0.92);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.screenshot-card-video:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: var(--bg-secondary);
  border-top: 1px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.sticky-cta.is-visible {
  display: block;
}

.sticky-cta-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.35);
}

.sticky-cta-btn:hover {
  color: #fff !important;
}

@media (max-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: 72px;
  }

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

  .trust-points {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Screenshots Section */
.screenshots {
  padding: 3.5rem 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.screenshot-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%), var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .screenshot-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 188, 156, 0.2);
}

.placeholder-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 16px 16px 0 0;
}

.screenshot-card h3 {
  padding: 1rem 1.5rem 0.5rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.screenshot-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* CTA Urgency Badge */
.cta-urgency {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.35);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

/* Sticky Mobile CTA Bar */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 97;
  background: var(--bg-secondary);
  border-top: 1px solid var(--accent);
  padding: 0.6rem 1rem;
  gap: 0.75rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-cta-download {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff !important;
}

.mobile-cta-buy {
  background: transparent;
  color: var(--accent) !important;
  border: 2px solid var(--accent);
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
  }

  body {
    padding-bottom: 4rem;
  }
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.checklist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.check-item {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.check-item::before {
  content: "✅";
  margin-right: 0.8rem;
}

/* Download Platforms */
.download-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.platform-card.platform-available {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.platform-card.platform-available:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 188, 156, 0.25);
  border-color: var(--accent);
}

.platform-card.platform-unavailable {
  opacity: 0.6;
  cursor: default;
}

.platform-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.platform-card h3,
.platform-name {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.platform-status {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.status-available {
  color: #22c55e;
}

.status-coming-soon {
  color: var(--accent);
  font-style: italic;
}

.platform-download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  color: white;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: box-shadow 0.3s ease;
}

.platform-card.platform-available:hover .platform-download-btn {
  box-shadow: 0 4px 12px rgba(26, 188, 156, 0.4);
}

.platform-badge {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.3rem 1rem;
  background: rgba(26, 188, 156, 0.15);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 1.5rem 0 2.5rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.copyright-credit {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 0.5rem;
  opacity: 0.75;
}

/* Why OwnAI Section */
.why-ownai {
  padding: 3.5rem 0;
}

.pros-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
}

.pros-intro strong {
  color: var(--accent);
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.category-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  max-height: 200px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, max-height 0.4s ease;
}

.category-card[open] {
  max-height: 2000px;
  overflow: visible;
}

.category-card:hover {
  box-shadow: 0 10px 40px rgba(26, 188, 156, 0.2);
  border-color: var(--accent);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  cursor: pointer;
  user-select: none;
}

.category-header::after {
  content: "▸";
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.category-card[open] .category-header::after {
  content: "▾";
}

.category-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.category-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text-primary);
}

.pro-list {
  list-style: none;
  padding: 0;
}

.pro-list li {
  padding: 0.45rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.pro-list li:last-child {
  border-bottom: none;
}

.pro-list li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* FAQ Section */
.faq {
  padding-top: 4rem;
  padding-bottom: 0.2rem;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.faq-item:last-of-type {
  margin-bottom: 0;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
  cursor: pointer;
  padding: 1rem 1.5rem;
  transition: color 0.3s ease, background 0.3s ease;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+ ";
  font-weight: bold;
  margin-right: 0.3rem;
}

details[open] > .faq-question::before {
  content: "− ";
}

.faq-question:hover {
  color: var(--accent-hover);
  background: rgba(26, 188, 156, 0.05);
}

.faq-answer {
  color: var(--text-secondary);
  padding: 0 1.5rem 1.5rem;
  line-height: 1.7;
}

/* Hero Badge */
.hero-badge {
  display: block;
  width: fit-content;
  margin: 2.5rem auto 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(26, 188, 156, 0.12);
  border: 1px solid rgba(26, 188, 156, 0.35);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
}

/* Hero dual CTA */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-ctas .cta-button {
  margin-top: 0;
}

/* Hero CTA Button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 188, 156, 0.5);
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Outline buy CTA — same frame treatment as nav .buy-btn */
.cta-button.cta-button-buy {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--text-primary) !important;
  box-shadow: none;
  box-sizing: border-box;
}

.cta-button.cta-button-buy:hover {
  background: var(--accent);
  color: var(--accent-text, #ffffff) !important;
  box-shadow: 0 4px 12px var(--accent-glow, rgba(26, 188, 156, 0.4));
}

/* Hero trust chips */
.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  padding: 0;
  margin-top: 2rem;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(26, 188, 156, 0.12);
  border: 1px solid rgba(26, 188, 156, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}

/* Extracted from inline styles */
.table-highlight {
  color: var(--accent-green);
  font-weight: bold;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.model-link {
  color: var(--accent);
  text-decoration: none;
}

.model-link:hover {
  text-decoration: underline;
}

.models-note {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 1.5rem auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-nav-link {
  color: #ffffff;
  text-decoration: none;
}

.footer-nav-link:hover {
  color: #1abc9c;
  text-decoration: underline;
}

.footer-bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* B2B Section */
.b2b-section { padding: 3.5rem 0; background: var(--bg-primary); border-bottom: 1px solid var(--border-color); }
.b2b-title { text-align: center; font-size: 2.2rem; margin-bottom: 0.5rem; }
.b2b-subtitle { text-align: center; color: var(--text-secondary); max-width: 700px; margin: 0 auto 2.5rem; font-size: 1rem; }
.b2b-table-container { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-primary); }
.b2b-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.b2b-table th, .b2b-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.b2b-table th { background: var(--bg-secondary); color: var(--accent); font-weight: bold; }
.b2b-table td:first-child { color: var(--accent); font-weight: 600; }
.b2b-table td:last-child { color: var(--text-primary); font-weight: 500; }
.b2b-table .small-text { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.3rem; }
.b2b-footer-note { text-align: center; margin-top: 1.5rem; color: var(--text-secondary); font-size: 0.95rem; }
.b2b-footer-highlight { text-align: center; padding: 1.5rem; background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--border-color); margin-top: 2rem; }
.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: #1abc9c;
}

.footer-text-group { text-align: center; margin-top: 2rem; }

/* B2B Section — additional helpers */
.b2b-row-header {
  color: var(--accent);
  font-weight: bold;
}

.tool-link {
  color: #ffffff;
  text-decoration: none;
}

.tool-link:hover {
  color: #1abc9c;
}

#b2b .section-title {
  margin-top: 4rem;
}

/* Feedback Form Section */
#feedback {
  padding: 3.5rem 0;
}

.feedback-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Honeypot — visually removed but still in the layout so naive bots fill it.
   Off-screen instead of display:none, which some bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.captcha-question {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
  flex-shrink: 0;
}

.captcha-group input {
  width: 80px;
  padding: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  text-align: center;
}

.captcha-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 188, 156, 0.5);
}

.form-error {
  color: #ef4444;
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1rem;
  display: none;
  font-weight: 600;
}

.form-error.visible {
  display: block;
}

.form-success {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-green);
  border-radius: 12px;
  color: var(--accent-green);
  font-weight: 600;
  display: none;
}

.form-success.visible {
  display: block;
}

/* ============================================================
   Gallery Modal
   ============================================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

.gallery-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-img {
  max-width: 85vw;
  max-height: 75vh;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 188, 156, 0.85);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.gallery-nav:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: -60px; }
.gallery-next { right: -60px; }

.gallery-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
}

.gallery-counter {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   Responsive overrides (non-critical sections)
   ============================================================ */
@media (max-width: 768px) {
  .cta-button {
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    white-space: normal;
    word-break: break-word;
    max-width: 90vw;
    text-align: center;
  }

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

  .audience-table {
    display: block;
    overflow-x: auto;
  }
}
