/* Disqua Website — Custom styles complementing compiled Tailwind (tailwind.css) */

/* ─── Self-hosted Inter (variable) ─────────────────────────────────────────────
   Self-hosted to remove the render-blocking Google Fonts request and the
   visitor-IP leak to Google that contradicts our EU-hosted / GDPR positioning.
   One variable woff2 per subset (weight axis 100–900); the browser downloads
   only the subset a page needs via unicode-range. CJK (ja/ko/zh) is not in Inter
   and falls back to the system font (same as before). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/inter-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/public/fonts/inter-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}

/* ─── Base font ────────────────────────────────────────────────────────────── */
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Navbar scroll effect ──────────────────────────────────────────────────── */
#navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#navbar.scrolled {
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.07);
}

/* ─── Typing dots animation ─────────────────────────────────────────────────── */
.typing-dot {
  animation: typing-bounce 1.2s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ─── Smooth scroll ──────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ─── Custom scrollbar ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ─── Focus ring ──────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* ─── Gradient text utility ──────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Pricing toggle ──────────────────────────────────────────────────────────── */
.pricing-annual { display: block; }
.pricing-monthly { display: none; }
body.billing-monthly .pricing-annual { display: none; }
body.billing-monthly .pricing-monthly { display: block; }

/* ─── FAQ accordion ───────────────────────────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 1000px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s ease;
}

/* ─── Table hover ──────────────────────────────────────────────────────────────── */
.comparison-row:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

/* ─── Hero gradient ────────────────────────────────────────────────────────────── */
.hero-gradient {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent);
}

/* ─── Card hover lift ─────────────────────────────────────────────────────────── */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
}

/* ─── Prose styles for legal pages ────────────────────────────────────────────── */
.prose-legal h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose-legal h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose-legal p {
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose-legal ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #374151;
}

.prose-legal ul li {
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

.prose-legal a {
  color: #6366f1;
  text-decoration: underline;
}

.prose-legal a:hover {
  color: #4f46e5;
}

/* ─── Rich prose for data-driven marketing sections ───────────────────────────── */
/* Section/guide bodies are authored as plain semantic HTML in src/data/seo/*.ts
   (NOT scanned by Tailwind), so styling lives here rather than in utility classes. */
.rich { color: #374151; line-height: 1.75; }
.rich > :first-child { margin-top: 0; }
.rich p { margin-bottom: 1rem; }
.rich h3 { font-size: 1.2rem; font-weight: 700; color: #111827; margin-top: 1.75rem; margin-bottom: 0.6rem; }
.rich h4 { font-size: 1.02rem; font-weight: 600; color: #1f2937; margin-top: 1.25rem; margin-bottom: 0.4rem; }
.rich ul, .rich ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: 0.4rem; }
.rich strong { color: #111827; font-weight: 600; }
.rich a { color: #5B4CF5; text-decoration: underline; text-underline-offset: 2px; }
.rich a:hover { color: #4338ca; }
.rich blockquote { border-left: 3px solid #c7d2fe; padding-left: 1rem; color: #4b5563; font-style: italic; margin: 1.25rem 0; }
.rich code { background: #f3f4f6; padding: 0.1rem 0.35rem; border-radius: 0.25rem; font-size: 0.9em; }

/* Skip-to-content link (revealed on keyboard focus) */
.skip-link {
  position: absolute; left: 0; top: 0; transform: translateY(-120%);
  background: #5B4CF5; color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 0.5rem 0;
  font-size: 0.875rem; font-weight: 600; z-index: 100; transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: -4px; }
