/* Google Fonts removed for CN deploy; use fonts-kanit.css */
html:has(body.secondary-page) {
  background: #0c0c0c !important;
}

body.secondary-page {
  position: relative;
  isolation: isolate;
  padding-top: 70px;
  background: #0c0c0c !important;
  color: #d7e2ea !important;
  font-family: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* Homepage-matching dark grid atmosphere */
body.secondary-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(215, 226, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 226, 234, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
}

body.secondary-page > * {
  position: relative;
  z-index: 1;
}

body.secondary-page .hero-heading,
body.secondary-page .hero.feature-hero .hero-title,
body.secondary-page .about-hero h1,
body.secondary-page .privacy-hero h1,
body.secondary-page .legal-hero h1,
body.secondary-page .statistics-hero h1,
body.secondary-page .changelog-hero .hero-title {
  background: linear-gradient(180deg, #f5f9fb 0%, #aebfca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.secondary-page .navbar {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 226, 234, 0.12);
  box-shadow: none;
}

body.secondary-page .navbar.scrolled {
  background: rgba(12, 12, 12, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

body.secondary-page .logo-text,
body.secondary-page .nav-link {
  color: #d7e2ea;
  font-family: 'Kanit', sans-serif;
  letter-spacing: 0.04em;
}

body.secondary-page .nav-link:hover,
body.secondary-page .nav-link.active {
  color: #f4f8f6;
}

body.secondary-page .nav-link::after {
  background: #aebfca;
}

body.secondary-page .nav-toggle .bar {
  background: #d7e2ea;
}

body.secondary-page .breadcrumb {
  background: #0c0c0c;
  border-bottom: 1px solid rgba(215, 226, 234, 0.1);
  color: #9ca8a0;
}

body.secondary-page .breadcrumb a {
  color: #aeb9b2;
}

body.secondary-page .breadcrumb a:hover {
  color: #f4f8f6;
}

body.secondary-page .breadcrumb .separator {
  color: rgba(215, 226, 234, 0.35);
}

body.secondary-page .breadcrumb span:last-child,
body.secondary-page .breadcrumb .breadcrumb-current {
  color: #d7e2ea !important;
  font-weight: 600;
}

body.secondary-page .hero.feature-hero,
body.secondary-page .about-hero,
body.secondary-page .privacy-hero,
body.secondary-page .legal-hero,
body.secondary-page .statistics-hero,
body.secondary-page .hero-section.stats-hero,
body.secondary-page .hero-section.sitemap-hero,
body.secondary-page .hero-section.legal-hero,
body.secondary-page .hero-section.privacy-hero,
body.secondary-page .hero-section.changelog-hero {
  position: relative;
  overflow: hidden;
  background: #0c0c0c !important;
  color: #d7e2ea !important;
}

body.secondary-page .hero.feature-hero::before,
body.secondary-page .about-hero::before,
body.secondary-page .privacy-hero::before,
body.secondary-page .hero-section.stats-hero::before,
body.secondary-page .hero-section.sitemap-hero::before,
body.secondary-page .hero-section.legal-hero::before,
body.secondary-page .hero-section.privacy-hero::before,
body.secondary-page .hero-section.changelog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(215, 226, 234, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 226, 234, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  pointer-events: none;
}

body.secondary-page .hero.feature-hero .hero-container,
body.secondary-page .hero.feature-hero .feature-content {
  position: relative;
  z-index: 1;
}

body.secondary-page .hero.feature-hero .hero-title,
body.secondary-page .hero-section .hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: 'Kanit', sans-serif;
}

body.secondary-page .hero-section .hero-title .highlight {
  background: linear-gradient(180deg, #f5f9fb 0%, #aebfca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.secondary-page .hero-section .hero-subtitle {
  color: #aeb9b2 !important;
}

body.secondary-page .hero.feature-hero .hero-title .highlight {
  background: linear-gradient(180deg, #f5f9fb 0%, #aebfca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.secondary-page .hero.feature-hero .hero-description,
body.secondary-page .about-hero p,
body.secondary-page .privacy-hero p {
  color: #aeb9b2 !important;
  opacity: 1 !important;
}

body.secondary-page .hero.feature-hero .primary-btn,
body.secondary-page .download-btn.primary-btn {
  border-radius: 999px;
  background: linear-gradient(123deg, #18011f 7%, #b600a8 37%, #7621b0 72%, #be4c00 100%) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 4px rgba(181, 1, 167, 0.25), 4px 4px 12px #7721b1 inset;
}

body.secondary-page .hero.feature-hero .secondary-btn,
body.secondary-page .btn-secondary {
  border-radius: 999px;
  border: 2px solid #d7e2ea !important;
  color: #d7e2ea !important;
  background: transparent !important;
}

body.secondary-page .hero.feature-hero .secondary-btn:hover,
body.secondary-page .btn-secondary:hover {
  background: rgba(215, 226, 234, 0.1) !important;
  color: #f4f8f6 !important;
}

body.secondary-page .hero-image img {
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

body.secondary-page section,
body.secondary-page section.features,
body.secondary-page section.about,
body.secondary-page section.technology,
body.secondary-page section.testimonials,
body.secondary-page .about-content,
body.secondary-page .key-stats-section,
body.secondary-page .feature-usage-section,
body.secondary-page .demographics-section,
body.secondary-page .health-impact-section,
body.secondary-page .app-store-stats-section,
body.secondary-page .main-pages-section,
body.secondary-page .feature-pages-section,
body.secondary-page .legal-pages-section,
body.secondary-page .quick-nav-section,
body.secondary-page .seo-info-section,
body.secondary-page .privacy-content,
body.secondary-page .legal-content,
body.secondary-page .about-section,
body.secondary-page .features,
body.secondary-page .about,
body.secondary-page .technology {
  background: transparent !important;
  color: #d7e2ea !important;
}

body.secondary-page section.features:nth-of-type(even),
body.secondary-page section.technology,
body.secondary-page .feature-usage-section,
body.secondary-page .health-impact-section,
body.secondary-page .feature-pages-section,
body.secondary-page .quick-nav-section {
  background: rgba(215, 226, 234, 0.03) !important;
}

body.secondary-page .section-header h2,
body.secondary-page .about-text h2,
body.secondary-page .about-text h3,
body.secondary-page .tech-text h3,
body.secondary-page .feature-list,
body.secondary-page section:not(.feature-hero):not(.marketing-hero):not(.download) h2,
body.secondary-page section:not(.feature-hero):not(.marketing-hero):not(.download) h3 {
  color: #f4f8f6 !important;
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.secondary-page .section-header p,
body.secondary-page .about-text p,
body.secondary-page .about-text li,
body.secondary-page .tech-text p,
body.secondary-page .feature-list li,
body.secondary-page section:not(.feature-hero):not(.marketing-hero):not(.download) p,
body.secondary-page section:not(.feature-hero):not(.marketing-hero):not(.download) li {
  color: #aeb9b2 !important;
}

body.secondary-page .feature-card,
body.secondary-page .testimonial-card,
body.secondary-page .tech-item,
body.secondary-page .stat-item,
body.secondary-page .usage-item,
body.secondary-page .demographic-card,
body.secondary-page .impact-card,
body.secondary-page .store-stat,
body.secondary-page .page-category,
body.secondary-page .seo-item,
body.secondary-page .quick-nav-item,
body.secondary-page .privacy-section,
body.secondary-page .legal-section,
body.secondary-page .feature-highlight,
body.secondary-page .ai-feature-card,
body.secondary-page .factor-item {
  background: rgba(215, 226, 234, 0.06) !important;
  border: 1px solid rgba(215, 226, 234, 0.12) !important;
  border-radius: 28px;
  box-shadow: none;
  color: #d7e2ea;
}

body.secondary-page .feature-card:hover,
body.secondary-page .testimonial-card:hover {
  transform: translateY(-6px);
  background: rgba(215, 226, 234, 0.1) !important;
  border-color: rgba(215, 226, 234, 0.22) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

body.secondary-page .feature-card h3,
body.secondary-page .testimonial-author h4,
body.secondary-page .stat-item .stat-label,
body.secondary-page .usage-header h3,
body.secondary-page .page-category h3,
body.secondary-page .seo-item h3,
body.secondary-page .store-stat h3,
body.secondary-page .feature-highlight h3,
body.secondary-page .feature-highlight h4,
body.secondary-page .ai-feature-card h4 {
  color: #f4f8f6 !important;
}

body.secondary-page .stat-item .stat-number,
body.secondary-page .usage-percentage,
body.secondary-page .count-number {
  color: #f4f8f6 !important;
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
}

body.secondary-page .page-category a,
body.secondary-page .quick-nav-link,
body.secondary-page .feature-link {
  color: #aebfca !important;
  font-weight: 600;
}

body.secondary-page .page-category a:hover,
body.secondary-page .quick-nav-link:hover,
body.secondary-page .feature-link:hover {
  color: #f4f8f6 !important;
}

body.secondary-page .download {
  background:
    radial-gradient(circle at 80% 20%, rgba(182, 0, 168, 0.22), transparent 30%),
    radial-gradient(circle at 15% 90%, rgba(190, 76, 0, 0.18), transparent 34%),
    #0c0c0c !important;
  color: #d7e2ea !important;
  text-align: center;
}

body.secondary-page .download .cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

body.secondary-page .download .cta-content h2 {
  color: #f4f8f6;
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  text-align: center;
  width: 100%;
}

body.secondary-page .download .cta-content > p,
body.secondary-page .qr-code p {
  color: #aeb9b2 !important;
  text-align: center;
}

body.secondary-page .download .note-disclaimer {
  width: 100%;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

body.secondary-page .footer {
  background: #080a09;
  color: #d7e2ea;
  border-top: 1px solid rgba(215, 226, 234, 0.12);
}

body.secondary-page .footer-section h3,
body.secondary-page .footer-logo span {
  color: #f4f8f6;
}

body.secondary-page .footer-section p,
body.secondary-page .footer-section a,
body.secondary-page .footer-bottom p,
body.secondary-page .footer-bottom a {
  color: #9ca8a0;
}

body.secondary-page .footer-section a:hover,
body.secondary-page .footer-bottom a:hover {
  color: #f4f8f6;
}

/* Homepage-aligned site footer — high specificity to beat style.css / guides / tools / dark-theme */
body.secondary-page .footer.landing-site-footer,
body.guide-page .footer.landing-site-footer,
body.guide-article-page .footer.landing-site-footer,
body.tool-hub-page .footer.landing-site-footer,
body.tool-page .footer.landing-site-footer,
body.news-shell .footer.landing-site-footer,
.landing-site-footer {
  position: relative !important;
  isolation: isolate;
  margin-top: 0;
  border-top: 1px solid rgba(215, 226, 234, 0.12) !important;
  background: #080a09 !important;
  color: #d7e2ea !important;
  padding: clamp(3.5rem, 8vw, 5rem) 0 !important;
  text-align: center !important;
}

body.secondary-page .footer.landing-site-footer .container,
body.guide-page .footer.landing-site-footer .container,
body.guide-article-page .footer.landing-site-footer .container,
body.tool-hub-page .footer.landing-site-footer .container,
body.tool-page .footer.landing-site-footer .container,
body.news-shell .footer.landing-site-footer .container,
.landing-site-footer .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.25rem !important;
  width: min(64rem, calc(100% - 2rem)) !important;
  max-width: 64rem !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.secondary-page .landing-footer-nav,
body.guide-page .landing-footer-nav,
body.guide-article-page .landing-footer-nav,
body.tool-hub-page .landing-footer-nav,
body.tool-page .landing-footer-nav,
body.news-shell .landing-footer-nav,
.landing-footer-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem 1.75rem !important;
}

body.secondary-page .landing-footer-nav a,
body.guide-page .landing-footer-nav a,
body.guide-article-page .landing-footer-nav a,
body.tool-hub-page .landing-footer-nav a,
body.tool-page .landing-footer-nav a,
body.news-shell .landing-footer-nav a,
body.secondary-page .footer.landing-site-footer a,
.landing-footer-nav a {
  color: #aeb9b2 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

body.secondary-page .landing-footer-nav a:hover,
body.guide-page .landing-footer-nav a:hover,
body.guide-article-page .landing-footer-nav a:hover,
body.tool-hub-page .landing-footer-nav a:hover,
body.tool-page .landing-footer-nav a:hover,
body.news-shell .landing-footer-nav a:hover,
.landing-footer-nav a:hover {
  color: #f5f5f7 !important;
}

body.secondary-page .landing-footer-email,
.landing-footer-email {
  color: #86868b !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

body.secondary-page .landing-footer-email:hover,
.landing-footer-email:hover {
  color: #d7e2ea !important;
}

body.secondary-page .landing-footer-copy,
.landing-footer-copy {
  margin: 0 !important;
  color: #6e6e73 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.08em;
}

body.secondary-page .landing-footer-social-label,
.landing-footer-social-label {
  margin: 0.35rem 0 0 !important;
  color: #6e6e73 !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.secondary-page .landing-footer-social,
.landing-footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem 1.35rem !important;
}

body.secondary-page .landing-footer-social a,
body.secondary-page .landing-footer-social button,
body.guide-page .landing-footer-social a,
body.guide-page .landing-footer-social button,
body.guide-article-page .landing-footer-social a,
body.guide-article-page .landing-footer-social button,
body.tool-hub-page .landing-footer-social a,
body.tool-hub-page .landing-footer-social button,
body.tool-page .landing-footer-social a,
body.tool-page .landing-footer-social button,
body.news-shell .landing-footer-social a,
body.news-shell .landing-footer-social button,
.landing-footer-social a,
.landing-footer-social button {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  color: #aeb9b2 !important;
  font: inherit !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease;
}

body.secondary-page .landing-footer-social a:hover,
body.secondary-page .landing-footer-social button:hover,
.landing-footer-social a:hover,
.landing-footer-social button:hover {
  color: #f5f5f7 !important;
}

/* Keep chrome above the fixed grid */
body.secondary-page .navbar {
  z-index: 1000;
}

.footer-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 10, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-qr-card {
  position: relative;
  width: min(100%, 360px);
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 24px;
  background: #f5f5f7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.footer-qr-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: #6e6e73;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.footer-qr-close:hover {
  color: #1d1d1f;
}

.footer-qr-title {
  margin: 0 0 0.85rem;
  color: #1d1d1f;
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-qr-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
}

.footer-qr-hint {
  margin: 0.85rem 0 0;
  color: #6e6e73;
  font-size: 0.88rem;
}

/* News pages under secondary theme */
body.secondary-page.news-shell .news-list-container,
body.secondary-page.news-shell .news-page {
  color: #d7e2ea;
}

body.secondary-page.news-shell .news-header h1 {
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  background: linear-gradient(180deg, #f5f9fb 0%, #aebfca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

body.secondary-page.news-shell .news-header p {
  color: #aeb9b2;
}

body.secondary-page.news-shell .news-card {
  background: rgba(215, 226, 234, 0.06);
  border: 1px solid rgba(215, 226, 234, 0.12);
  box-shadow: none;
}

body.secondary-page.news-shell .news-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  border-color: rgba(215, 226, 234, 0.22);
}

body.secondary-page.news-shell .news-card-title,
body.secondary-page.news-shell .news-card-title a {
  color: #f4f8f6;
}

body.secondary-page.news-shell .news-card-summary,
body.secondary-page.news-shell .news-card-date,
body.secondary-page.news-shell .news-card-views,
body.secondary-page.news-shell .pagination-info {
  color: #9ca8a0;
}

body.secondary-page.news-shell .news-card-category {
  background: rgba(215, 226, 234, 0.12);
  color: #d7e2ea;
}

body.secondary-page.news-shell .news-card-read-more {
  color: #aebfca;
}

body.secondary-page.news-shell .pagination-btn,
body.secondary-page.news-shell .pagination-page {
  background: rgba(215, 226, 234, 0.06);
  border-color: rgba(215, 226, 234, 0.22);
  color: #d7e2ea;
}

body.secondary-page.news-shell .pagination-btn:hover:not(.disabled),
body.secondary-page.news-shell .pagination-page:hover:not(.active) {
  background: rgba(215, 226, 234, 0.14);
  border-color: rgba(215, 226, 234, 0.4);
  color: #f4f8f6;
}

body.secondary-page.news-shell .pagination-page.active {
  background: #d7e2ea;
  border-color: #d7e2ea;
  color: #0c0c0c;
}

body.secondary-page.news-shell .pagination-btn.disabled {
  border-color: rgba(215, 226, 234, 0.12);
  color: #6e6e73;
}

body.secondary-page.news-shell .no-articles {
  color: #aeb9b2;
}

body.secondary-page.news-shell .article-container,
body.secondary-page.news-shell .sidebar-widget {
  background: rgba(215, 226, 234, 0.06);
  border: 1px solid rgba(215, 226, 234, 0.12);
  box-shadow: none;
  color: #d7e2ea;
}

body.secondary-page.news-shell .article-title,
body.secondary-page.news-shell .sidebar-widget h3,
body.secondary-page.news-shell .sidebar-widget h4 {
  color: #f4f8f6;
  font-family: 'Kanit', sans-serif;
}

body.secondary-page.news-shell .article-summary,
body.secondary-page.news-shell .article-content,
body.secondary-page.news-shell .article-content p,
body.secondary-page.news-shell .article-meta,
body.secondary-page.news-shell .article-date,
body.secondary-page.news-shell .sidebar-widget p {
  color: #aeb9b2;
}

body.secondary-page.news-shell .article-header,
body.secondary-page.news-shell .article-footer {
  border-color: rgba(215, 226, 234, 0.12);
}

body.secondary-page.news-shell .article-category {
  background: rgba(215, 226, 234, 0.14);
  color: #f4f8f6;
}

body.secondary-page.news-shell .article-back-link,
body.secondary-page.news-shell .back-home,
body.secondary-page.news-shell .more-articles,
body.secondary-page.news-shell .related-articles a {
  color: #aebfca;
}

body.secondary-page.news-shell .news-breadcrumb,
body.secondary-page.news-shell .news-breadcrumb a {
  color: #9ca8a0;
}

body.secondary-page.news-shell .news-breadcrumb a:hover {
  color: #f4f8f6;
}

body.secondary-page .legal-content,
body.secondary-page .privacy-content,
body.secondary-page .about-section {
  background: transparent !important;
  color: #d7e2ea !important;
}

body.secondary-page .legal-content h2,
body.secondary-page .privacy-content h2,
body.secondary-page .about-section h2 {
  color: #f4f8f6 !important;
}

body.secondary-page .legal-content p,
body.secondary-page .legal-content li,
body.secondary-page .privacy-content p,
body.secondary-page .privacy-content li {
  color: #aeb9b2 !important;
}

body.secondary-page .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: opacity, transform;
}

body.secondary-page .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  body.secondary-page .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== Homepage-aligned chrome (nav / CTAs / H5) ========== */

body.secondary-page .navbar.landing-chrome-nav,
body.secondary-page .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  min-height: 64px;
  background: rgba(12, 12, 12, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 226, 234, 0.1);
  box-shadow: none !important;
}

body.secondary-page .nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  height: auto;
  min-height: 64px;
}

body.secondary-page .nav-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

body.secondary-page .logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

body.secondary-page .logo-text {
  color: #f4f8f6 !important;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

body.secondary-page .nav-menu {
  gap: clamp(1rem, 2.5vw, 2rem);
}

body.secondary-page .nav-link {
  color: #d7e2ea !important;
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.secondary-page .nav-link::after {
  display: none;
}

body.secondary-page .nav-link:hover,
body.secondary-page .nav-link.active {
  color: #f5f5f7 !important;
  opacity: 0.75;
}

body.secondary-page .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

body.secondary-page .nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #d7e2ea;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.secondary-page .nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.secondary-page .nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

body.secondary-page .nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Kill legacy dark-theme overrides that fight the homepage look */
body.secondary-page[data-theme="dark"] .navbar,
html[data-theme="dark"] body.secondary-page .navbar,
body.secondary-page .navbar {
  background: rgba(12, 12, 12, 0.88) !important;
}

body.secondary-page .breadcrumb {
  margin-top: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

body.secondary-page .hero.feature-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

body.secondary-page .hero.feature-hero .hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

body.secondary-page .hero.feature-hero .hero-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

body.secondary-page .hero.feature-hero .primary-btn,
body.secondary-page .download-btn.primary-btn,
body.secondary-page .hero.feature-hero .secondary-btn,
body.secondary-page .secondary-btn.secondary-cta,
body.secondary-page a.secondary-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  width: fit-content;
  min-width: 0;
  min-height: 52px;
  padding: 0.9rem 1.55rem !important;
  border-radius: 999px !important;
  font-family: 'Kanit', sans-serif;
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  flex: 0 1 auto;
}

body.secondary-page .primary-btn .download-label,
body.secondary-page .download-btn .download-label {
  display: inline-block;
  font-size: inherit !important;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: 1;
  opacity: 1 !important;
}

/* Apple logo follows button text color via mask */
body.secondary-page .download-btn i.icon-apple,
body.secondary-page .primary-btn i.icon-apple,
body.secondary-page i.icon-apple {
  position: relative;
  display: inline-block !important;
  width: 1.15em !important;
  height: 1.15em !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  color: inherit;
  vertical-align: middle;
  overflow: visible;
  background-color: currentColor !important;
  background-image: none !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='black' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 50.4 29.5 104.8c21.9 40.5 49.2 84.5 88.4 84.1 24.3-.2 41.5-17 75.1-17 32.7 0 49.1 17 76.4 16.7 39.9-.3 65.7-40.2 86.5-80.7 10.6-20.6 14.9-31.2 23.2-54.5-61.1-23.2-70.5-107.1-64.4-157.5zM251.2 80.5c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='black' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 50.4 29.5 104.8c21.9 40.5 49.2 84.5 88.4 84.1 24.3-.2 41.5-17 75.1-17 32.7 0 49.1 17 76.4 16.7 39.9-.3 65.7-40.2 86.5-80.7 10.6-20.6 14.9-31.2 23.2-54.5-61.1-23.2-70.5-107.1-64.4-157.5zM251.2 80.5c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

body.secondary-page i.icon-apple::before {
  content: none !important;
  display: none !important;
}

body.secondary-page .download-btn svg.icon-apple,
body.secondary-page .primary-btn svg.icon-apple,
body.secondary-page svg.icon-apple {
  display: inline-block !important;
  width: 1.15em !important;
  height: 1.15em !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  overflow: visible;
  color: inherit;
  fill: currentColor;
  background: none !important;
  vertical-align: middle;
}

body.secondary-page .hero.feature-hero .secondary-btn,
body.secondary-page .secondary-btn.secondary-cta,
body.secondary-page a.secondary-btn {
  border: 2px solid #d7e2ea !important;
  color: #d7e2ea !important;
  background: transparent !important;
}

body.secondary-page .hero.feature-hero .primary-btn,
body.secondary-page .download-btn.primary-btn {
  background: linear-gradient(123deg, #18011f 7%, #b600a8 37%, #7621b0 72%, #be4c00 100%) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: 0 4px 4px rgba(181, 1, 167, 0.25), 4px 4px 12px #7721b1 inset;
}

body.secondary-page .hero.feature-hero .secondary-btn:hover,
body.secondary-page a.secondary-btn:hover {
  background: rgba(215, 226, 234, 0.12) !important;
  color: #f4f8f6 !important;
}

body.secondary-page .hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.secondary-page .hero-image img,
body.secondary-page .split-feature img,
body.secondary-page .phone-shots img,
body.secondary-page .tech-image img,
body.secondary-page .about-image img,
body.secondary-page .feature-poster img {
  display: block;
  width: 100%;
  height: auto;
  max-width: min(100%, 420px);
  margin-inline: auto;
  border-radius: 28px;
  background: #151515;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

body.secondary-page .feature-poster img,
body.secondary-page .phone-shots img {
  max-width: 100%;
  border-radius: 18px;
  box-shadow: none;
}

body.secondary-page .phone-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

body.secondary-page .phone-shots figure {
  background: rgba(215, 226, 234, 0.06);
  border: 1px solid rgba(215, 226, 234, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
}

body.secondary-page .phone-shots figcaption {
  color: #aeb9b2;
  padding: 0.85rem 1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.secondary-page .download .download-section {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 1.5rem;
  width: 100%;
  margin: 1.5rem auto 0;
}

body.secondary-page .download .download-section .download-btn.primary-btn {
  width: auto !important;
  min-width: 11rem;
  flex: 0 0 auto;
  margin: 0;
}

body.secondary-page .download .qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
}

body.secondary-page .download .qr-code img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: #fff;
  margin: 0 0 0.65rem;
}

/* Marketing pages brought under secondary chrome */
body.secondary-page .marketing-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(182, 0, 168, 0.22), transparent 30%),
    radial-gradient(circle at 15% 90%, rgba(190, 76, 0, 0.18), transparent 34%),
    #0c0c0c !important;
  color: #d7e2ea !important;
  padding: clamp(4.5rem, 12vw, 7rem) 1.25rem clamp(3rem, 8vw, 4.5rem) !important;
  min-height: auto !important;
}

body.secondary-page .marketing-hero h1 {
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #f5f9fb 0%, #aebfca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.secondary-page .marketing-hero .subtitle,
body.secondary-page .marketing-hero p {
  color: #aeb9b2 !important;
}

body.secondary-page .note-disclaimer,
body.secondary-page .lifespan-box,
body.secondary-page .cta-box,
body.secondary-page .warning-card,
body.secondary-page .stats-card {
  background: rgba(215, 226, 234, 0.06) !important;
  border: 1px solid rgba(215, 226, 234, 0.12) !important;
  color: #aeb9b2 !important;
}

body.secondary-page .note-disclaimer {
  background: rgba(215, 226, 234, 0.05) !important;
  color: #9ca8a0 !important;
}

@media (max-width: 900px) {
  body.secondary-page .hero.feature-hero .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  body.secondary-page .hero.feature-hero .hero-image {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }

  body.secondary-page .hero.feature-hero .hero-title {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  body.secondary-page .hero.feature-hero .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  body.secondary-page .hero.feature-hero .primary-btn,
  body.secondary-page .hero.feature-hero .secondary-btn,
  body.secondary-page .secondary-btn.secondary-cta,
  body.secondary-page .hero.feature-hero a.secondary-btn {
    width: 100%;
    white-space: normal;
    padding: 0.95rem 1.25rem !important;
  }

  body.secondary-page .download .download-section {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.35rem;
  }

  body.secondary-page .download .download-section .download-btn.primary-btn {
    width: auto !important;
    max-width: 100%;
  }

  body.secondary-page .nav-toggle {
    display: flex;
  }

  body.secondary-page .nav-menu {
    position: fixed !important;
    inset: 64px 0 auto 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 64px !important;
    width: 100% !important;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1.25rem;
    background: rgba(12, 12, 12, 0.98) !important;
    border-top: 1px solid rgba(215, 226, 234, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: translate3d(0, -110%, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1100;
  }

  body.secondary-page .nav-menu.active,
  body.secondary-page.nav-open .nav-menu {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  body.secondary-page .nav-menu .nav-link {
    padding: 0.95rem 1.5rem;
    letter-spacing: 0.14em;
    border-bottom: 1px solid rgba(215, 226, 234, 0.06);
  }

  body.secondary-page .phone-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.secondary-page .download .download-section {
    flex-direction: column;
  }

  body.secondary-page .split-feature {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  body.secondary-page {
    padding-top: 60px;
  }

  body.secondary-page .nav-container {
    padding: 0.65rem 1rem;
    min-height: 60px;
  }

  body.secondary-page .nav-menu {
    top: 60px;
  }

  body.secondary-page .logo-text {
    font-size: 0.95rem;
  }

  body.secondary-page .phone-shots {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  body.secondary-page .phone-shots figcaption {
    font-size: 0.78rem;
    padding: 0.65rem 0.7rem 0.85rem;
  }

  body.secondary-page .landing-footer-nav {
    gap: 0.65rem 1.1rem !important;
  }
}

/* ========== Full-page dark surface — kill leftover light panels ========== */
body.secondary-page,
body.guide-page,
body.guide-article-page,
body.tool-hub-page,
body.tool-page {
  background: #0c0c0c !important;
  color: #d7e2ea !important;
}

html:has(body.guide-page),
html:has(body.guide-article-page),
html:has(body.tool-hub-page),
html:has(body.tool-page) {
  background: #0c0c0c !important;
}

body.secondary-page .features,
body.secondary-page .about,
body.secondary-page .technology,
body.secondary-page .testimonials,
body.secondary-page .tech-content,
body.secondary-page .tech-text,
body.secondary-page .about-content,
body.secondary-page .container {
  background: transparent !important;
  box-shadow: none !important;
}

/* Solid dark cards — avoid white corner halos from light parents / anti-alias */
body.secondary-page .feature-card,
body.secondary-page .tech-item,
body.secondary-page .testimonial-card,
body.secondary-page .phone-shots figure,
body.secondary-page .feature-poster,
body.secondary-page .feature-highlight,
body.secondary-page .ai-feature-card,
body.secondary-page .factor-item,
body.secondary-page .lifespan-box,
body.secondary-page .privacy-section,
body.secondary-page .legal-section,
body.secondary-page .about-section,
body.secondary-page .stat-item,
body.secondary-page .page-category,
body.secondary-page .seo-item,
body.secondary-page .quick-nav-item,
body.secondary-page .demographic-card,
body.secondary-page .impact-card,
body.secondary-page .store-stat,
body.secondary-page .usage-item,
body.secondary-page .algorithm-item,
body.secondary-page .screenshot-item,
body.secondary-page .research-item,
body.secondary-page .feature-section,
body.secondary-page .split-feature > div {
  background: #151715 !important;
  background-color: #151715 !important;
  border: 1px solid rgba(215, 226, 234, 0.12) !important;
  border-radius: 22px !important;
  box-shadow: none !important;
  overflow: hidden;
  isolation: isolate;
}

body.secondary-page .feature-card,
body.secondary-page .tech-item,
body.secondary-page .testimonial-card,
body.secondary-page .feature-highlight,
body.secondary-page .algorithm-item,
body.secondary-page .research-item,
body.secondary-page .privacy-section,
body.secondary-page .legal-section {
  padding: 1.35rem 1.4rem !important;
}

body.secondary-page .tech-item {
  margin-bottom: 1rem !important;
}

body.secondary-page .algorithm-section,
body.secondary-page .research-section,
body.secondary-page .screenshot-section,
body.secondary-page .feature-section,
body.secondary-page .cta-section {
  background: transparent !important;
  color: #d7e2ea !important;
}

body.secondary-page .algorithm-title,
body.secondary-page .screenshot-caption,
body.secondary-page .research-item h3,
body.secondary-page .research-item h4 {
  color: #f4f8f6 !important;
}

body.secondary-page .algorithm-description,
body.secondary-page .research-item p {
  color: #aeb9b2 !important;
}

body.secondary-page .note-disclaimer {
  background: #151715 !important;
  color: #9ca8a0 !important;
  border: 1px solid rgba(215, 226, 234, 0.1) !important;
  border-radius: 16px !important;
}

body.secondary-page .section-title,
body.secondary-page .about-text h2,
body.secondary-page .about-text h3,
body.secondary-page .tech-item h3,
body.secondary-page .feature-card h3 {
  color: #f4f8f6 !important;
}

body.secondary-page .section-subtitle,
body.secondary-page .about-text p,
body.secondary-page .about-link,
body.secondary-page .tech-item p,
body.secondary-page .feature-card p {
  color: #aeb9b2 !important;
}

body.secondary-page .about-link:hover {
  color: #f4f8f6 !important;
}

body.secondary-page .phone-shots {
  background: transparent !important;
}

body.secondary-page .phone-shots figure {
  padding: 0 !important;
}

body.secondary-page .phone-shots figcaption {
  background: #151715 !important;
  color: #aeb9b2 !important;
}

body.secondary-page .feature-poster {
  padding: 0 !important;
  background: #111311 !important;
}

/* Marketing page light leftovers */
body.secondary-page .marketing-hero + section,
body.secondary-page section.features .feature-highlight,
body.secondary-page .prediction-factors,
body.secondary-page .ai-features,
body.secondary-page .warning-levels,
body.secondary-page .stats-grid,
body.secondary-page .lifespan-box {
  background-color: transparent !important;
}

body.secondary-page .lifespan-box,
body.secondary-page .feature-highlight,
body.secondary-page .ai-feature-card,
body.secondary-page .factor-item {
  background: #151715 !important;
}

body.secondary-page [style*="background: white"],
body.secondary-page [style*="background:#fff"],
body.secondary-page [style*="background: #fff"],
body.secondary-page [style*="background:#ffffff"],
body.secondary-page [style*="background: #ffffff"],
body.secondary-page [style*="background:white"],
body.secondary-page [style*="background: #f8f9fa"],
body.secondary-page [style*="background:#f8f9fa"],
body.secondary-page [style*="background: #f4f6f3"],
body.secondary-page [style*="background:#f4f6f3"],
body.secondary-page [style*="background: #eef1ec"],
body.secondary-page [style*="background:#eef1ec"] {
  background: transparent !important;
  background-color: transparent !important;
}

/* Tools / guides sharing secondary chrome */
body.guide-page,
body.guide-article-page,
body.tool-hub-page,
body.tool-page {
  background: #0c0c0c !important;
}

body.guide-page .guide-hero,
body.guide-article-page .guide-hero,
body.tool-hub-page .tool-hero,
body.tool-page .tool-hero,
body.guide-page main,
body.guide-article-page main,
body.tool-hub-page main,
body.tool-page main,
body.guide-page .guide-content,
body.guide-article-page .guide-article,
body.tool-page .tool-main,
body.tool-hub-page .tools-hub {
  background: transparent !important;
  color: #d7e2ea !important;
}

body.tool-page .tool-main,
body.tool-page .tool-faq details,
body.tool-page .related-tools,
body.tool-hub-page .tools-hub-card,
body.guide-page .guide-card,
body.guide-article-page .guide-card,
body.guide-article-page article {
  background: #151715 !important;
  border: 1px solid rgba(215, 226, 234, 0.12) !important;
  color: #d7e2ea !important;
  box-shadow: none !important;
}

body.tool-page .tool-form input:not([type="radio"]):not([type="checkbox"]),
body.tool-page .tool-form select,
body.tool-page .tool-form textarea {
  background: #0c0c0c !important;
  border-color: rgba(215, 226, 234, 0.2) !important;
  color: #f4f8f6 !important;
}

body.tool-page .tool-result,
body.tool-page .tool-seo-content,
body.guide-article-page .guide-body {
  background: #151715 !important;
  color: #d7e2ea !important;
}

body.tool-page .tool-result.warning {
  background: rgba(190, 76, 0, 0.18) !important;
  border-color: rgba(190, 76, 0, 0.45) !important;
  color: #f4f8f6 !important;
}
