/* ============================================================
   Before You Say — Components CSS
   Single source of truth for all reusable WordPress theme components.
   Font: Plus Jakarta Sans (loaded via functions.php)
   All colors via CSS custom properties — zero hardcoded hex in components.
   ============================================================ */


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg: #F8F7F5;
  --bg-white: #FDFCFA;
  --bg-card: #FFFFFF;

  /* Brand */
  --primary: #1A6B5A;
  --primary-light: #E8F5F0;
  --primary-dark: #0F4F42;
  --accent: #E8866A;
  --accent-light: #FFF0EB;
  --tertiary: #B8B0D0;
  --tertiary-light: #EEEAF5;

  /* Text */
  --text: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #B0AEA5;

  /* Borders & shadows */
  --border: #EDEBE6;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.08);

  /* Typography */
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Radii */
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-pill: 100px;

  /* Footer */
  --footer-bg: #1A1A1A;
  --footer-text: rgba(255,255,255,0.5);
  --footer-text-muted: rgba(255,255,255,0.35);
  --footer-text-heading: rgba(255,255,255,0.8);
  --footer-text-disclaimer: rgba(255,255,255,0.3);
  --footer-border: rgba(255,255,255,0.08);

  /* Category lens colors (defaults — overridden per page) */
  --cat-bg: #E1F5EE;
  --cat-text: #085041;
}


/* ==========================================================================
   2. GLOBAL STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

[id] {
  scroll-margin-top: 80px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

a,
button {
  transition: color 0.2s ease, background 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}


/* ==========================================================================
   3. SCROLL ANIMATIONS (fade-in system)
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }
.fade-in-d4 { transition-delay: 0.4s; }


/* ==========================================================================
   4. SKIP LINK
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}


/* ==========================================================================
   5. HEADER (glassmorphism pill)
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(237, 235, 230, 0.6);
  border-radius: var(--radius-pill);
  padding: 0.75rem 0.75rem 0.75rem 1.75rem;
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Nav */
.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--primary);
}

/* Header CTA */
.header-cta {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  background: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.header-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 107, 90, 0.2);
}

.header-cta:active {
  transform: translateY(0);
}

/* Hamburger (hidden on desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--text);
}

.mobile-menu-btn:hover {
  background: var(--bg);
}

.mobile-menu-btn svg {
  display: block;
}

/* Mobile CTA visible next to hamburger */
.mobile-header-cta {
  display: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
  background: var(--primary);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
}


/* ==========================================================================
   6. MOBILE MENU (overlay + panel)
   ========================================================================== */

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 151;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--text);
  margin-bottom: 1rem;
}

.mobile-menu-close:hover {
  background: var(--bg);
}

.mobile-menu-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-panel nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-btn);
  transition: background 0.2s ease;
}

.mobile-menu-panel nav a:hover {
  background: var(--bg);
}

.mobile-menu-panel .mobile-menu-cta {
  display: inline-block;
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  background: var(--primary);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
}

/* Body lock when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}


/* ==========================================================================
   7. FOOTER (4-column, dark)
   ========================================================================== */

.footer {
  background: var(--footer-bg);
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand-block .footer-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand-block .footer-logo .logo-dot {
  background: var(--accent);
}

.footer-brand-block p {
  font-size: 0.88rem;
  color: var(--footer-text);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--footer-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--footer-text-disclaimer);
  padding-bottom: 1rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--footer-text-muted);
}

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

.footer-links a {
  font-size: 0.78rem;
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--footer-text-heading);
}


/* ==========================================================================
   8. BACK-TO-TOP BUTTON (48px pill, primary bg, white arrow)
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26, 107, 90, 0.3);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top.visible:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 107, 90, 0.35);
}

.back-to-top:active {
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}


/* ==========================================================================
   9. SECTION COMPONENTS (label, title, container)
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}


/* ==========================================================================
   10. CTA BUTTONS
   ========================================================================== */

/* Primary pill CTA (hero, landing sections) */
.cta-primary {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  color: white;
  background: var(--primary);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(26, 107, 90, 0.15);
  cursor: pointer;
}

.cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 107, 90, 0.2);
}

/* Outlined pill CTA */
.cta-pill {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.cta-pill:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 107, 90, 0.15);
}

/* White CTA (on primary backgrounds) */
.cta-white {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  background: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* Article inline CTA button (white on gradient bg) */
.cta-btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-dark);
  background: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-btn:active {
  transform: translateY(0);
}

/* Sidebar CTA button */
.sidebar-cta-btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-dark);
  background: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sidebar-cta-btn:active {
  transform: translateY(0);
}

/* CTA secondary (text link style) */
.cta-secondary {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.cta-secondary:hover {
  color: var(--accent);
}


/* ==========================================================================
   11. CARDS
   ========================================================================== */

/* --- Generic card base --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* --- Article card (landing pages, 3-column grid) --- */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-img {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.article-card-body {
  padding: 1.5rem;
}

.article-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* --- Article card item (category archive, 2-column grid) --- */
.article-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.article-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-card-item .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-card-item .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-item .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-card-item:hover .card-title {
  color: var(--primary);
}

.article-card-item .card-excerpt {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
  flex: 1;
}

.article-card-item .card-meta {
  margin-top: auto;
}

/* --- Featured card (category archive hero) --- */
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: inherit;
  margin-bottom: 2rem;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.featured-card .card-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  min-width: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  gap: 0.5rem;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.featured-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card:hover .card-title {
  color: var(--primary);
}

/* Shared card sub-elements */
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.card-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-wrap: pretty;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Situation card (colored left border) --- */
.situation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border-left: 4px solid var(--primary);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.situation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.situation-card:nth-child(1) { border-left-color: var(--accent); }
.situation-card:nth-child(2) { border-left-color: var(--primary); }
.situation-card:nth-child(3) { border-left-color: var(--tertiary); }
.situation-card:nth-child(4) { border-left-color: var(--primary-dark); }

.situation-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.situation-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Pain card (timeline variant) --- */
.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s ease;
}

.pain-card:hover {
  border-color: var(--accent);
}

.pain-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Pricing card --- */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.pricing-card--recommended {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(26, 107, 90, 0.12);
}

/* Image placeholder (shared) */
.img-placeholder {
  width: 100%;
  height: 280px;
  aspect-ratio: 16 / 7;
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  gap: 0.5rem;
}

.img-placeholder-icon {
  opacity: 0.5;
  display: flex;
  align-items: center;
}

.img-placeholder-icon svg {
  width: 24px;
  height: 24px;
}


/* ==========================================================================
   12. CATEGORY BADGES (all lens colors)
   ========================================================================== */

/* Base badge */
.category-badge,
.card-badge,
.pain-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-badge {
  background: var(--cat-bg);
  color: var(--cat-text);
}

.card-badge {
  margin-bottom: 0.75rem;
  width: fit-content;
}

/* Lens colors */
.card-badge-deti       { background: #E1F5EE; color: #085041; }
.card-badge-podrostki  { background: #E6F1FB; color: #0C447C; }
.card-badge-partner    { background: #FBEAF0; color: #72243E; }
.card-badge-rabota     { background: #EEF2FF; color: #1E40AF; }
.card-badge-roditel    { background: #FAECE7; color: #712B13; }
.card-badge-druzya     { background: #E6F1FB; color: #0C447C; }

/* Sub-theme badges from category archive */
.card-badge-isteriki     { background: var(--accent-light); color: #9C4A2D; }
.card-badge-neposlushanie { background: #EEF2FF; color: #1E40AF; }
.card-badge-agressiya    { background: #FBEAF0; color: #72243E; }
.card-badge-ucheba       { background: #E6F1FB; color: #0C447C; }
.card-badge-vospitanie   { background: var(--tertiary-light); color: #5B4A8A; }
.card-badge-lozh         { background: #FAECE7; color: #712B13; }

/* Pain timeline time badges */
.pain-badge-morning { background: var(--accent-light); color: var(--accent); }
.pain-badge-day     { background: var(--primary-light); color: var(--primary); }
.pain-badge-evening { background: var(--tertiary-light); color: var(--tertiary); }
.pain-badge-night   { background: var(--accent-light); color: var(--accent); }

/* Article count badge (not uppercase) */
.article-count-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--cat-bg);
  color: var(--cat-text);
  letter-spacing: 0.02em;
}

/* Reading time meta */
.reading-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}


/* ==========================================================================
   13. CHAT BUBBLES
   ========================================================================== */

/* Hero / demo chat messages */
.msg {
  max-width: 88%;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 6px;
}

.msg-ai {
  align-self: flex-start;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.msg-ai em {
  color: var(--primary-dark);
  font-style: italic;
}

/* Article inline chat messages */
.chat-msg {
  max-width: 88%;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-msg-ai {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.chat-msg em {
  color: inherit;
  opacity: 0.85;
}

/* Chat demo block (article) */
.chat-demo-block {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 1.5rem 0;
}

.chat-demo-block .chat-demo-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.chat-link:hover {
  color: var(--accent);
}

/* Hero chat mockup container */
.hero-chat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}

.hero-chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.chat-header-status {
  font-size: 0.75rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-header-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-chat-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
}

.hero-chat-input {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-input-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text-muted);
  outline: none;
}

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Demo chat container */
.demo-chat {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.demo-chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-chat-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-chat-input {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


/* ==========================================================================
   14. FAQ ACCORDION
   ========================================================================== */

.faq-section {
  padding: 4rem 0;
  background: var(--bg-white);
}

.faq-header {
  text-align: left;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.faq-item.open {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.faq-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--accent-light);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.faq-disclaimer {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: var(--accent-light);
  border-radius: var(--radius-card);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ==========================================================================
   15. COMPARISON / DIFFERENCES BLOCKS
   ========================================================================== */

.diff-section {
  padding: 4rem 0;
  background: var(--bg);
}

.diff-header {
  text-align: left;
  margin-bottom: 3.5rem;
}

.diff-blocks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.diff-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  transition: box-shadow 0.3s ease;
}

.diff-block:hover {
  box-shadow: var(--shadow-hover);
}

.diff-alt-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.diff-alt-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.diff-bys {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.diff-bys strong {
  color: var(--primary);
  font-weight: 700;
}


/* ==========================================================================
   16. ARTICLE LAYOUT (two-column with sidebar)
   ========================================================================== */

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* Article as card container */
.article-card--wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  min-width: 0;
}

/* Article meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}


/* ==========================================================================
   17. ARTICLE CONTENT STYLES
   ========================================================================== */

.article-content {
  max-width: 680px;
}

.article-content h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.article-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  text-wrap: pretty;
}

.article-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-content h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.article-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
  text-wrap: pretty;
}

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

.article-content em {
  font-style: italic;
  color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}


/* ==========================================================================
   18. ARTICLE TOC (auto-generated)
   ========================================================================== */

/* Mobile TOC (collapsible details) */
.mobile-toc {
  display: none;
  margin-bottom: 1.5rem;
}

.mobile-toc summary {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-btn);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-toc summary::-webkit-details-marker {
  display: none;
}

.mobile-toc summary::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.mobile-toc[open] summary::before {
  transform: rotate(45deg);
}

.mobile-toc .toc-list {
  list-style: none;
  padding: 0.5rem 0 0 0;
}

.mobile-toc .toc-list li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
}

.mobile-toc .toc-list li a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Sidebar TOC */
.sidebar-toc .toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-toc .toc-list li a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.sidebar-toc .toc-list li a:hover {
  background: var(--bg);
  color: var(--primary);
}

.sidebar-toc .toc-list li a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  border-left-color: var(--primary);
}


/* ==========================================================================
   19. ARTICLE TAGS
   ========================================================================== */

.article-tags {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-tags .tags-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}


/* ==========================================================================
   20. ARTICLE CALLOUT BLOCKS AND ANTI-CARDS
   ========================================================================== */

/* Callout block (key formulations, quotes) */
.callout-block {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0 1rem;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Anti-card (what doesn't work) */
.anti-card {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.anti-card p {
  margin-bottom: 0;
}

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

/* Situation block (blockquote in articles) */
.situation-block {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
}

.situation-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.situation-block p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   21. SPECIALIST BLOCK
   ========================================================================== */

.specialist-block {
  background: var(--accent-light);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 1.5rem 0;
}

.specialist-block h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.specialist-block ul {
  padding-left: 1.25rem;
}

.specialist-block li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.specialist-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.specialist-block p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   22. RELATED ARTICLES
   ========================================================================== */

.related-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 0;
}

.related-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-list li a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-btn);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.related-list li a:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}


/* ==========================================================================
   23. SIDEBAR (categories, themes, popular, CTA)
   ========================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.sidebar-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

/* Categories list */
.cat-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.cat-list li a:hover {
  background: var(--bg);
  color: var(--primary);
}

.cat-list li a.active {
  background: var(--cat-bg);
  color: var(--cat-text);
  font-weight: 600;
}

.cat-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  min-width: 24px;
  text-align: center;
}

.cat-list li a.active .cat-count {
  background: rgba(8, 80, 65, 0.1);
  color: var(--cat-text);
}

/* Theme list (sub-categories) */
.theme-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.theme-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.theme-list li a:hover {
  background: var(--bg);
  color: var(--primary);
}

.theme-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  min-width: 22px;
  text-align: center;
}

/* Popular articles list */
.popular-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popular-item {
  display: block;
  text-decoration: none;
  padding: 0.75rem;
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
}

.popular-item:hover {
  background: var(--bg);
}

.popular-item .popular-cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.popular-item .popular-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.15rem;
}

.popular-item:hover .popular-title {
  color: var(--primary);
}

.popular-item .popular-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar CTA block */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  text-align: center;
}

.sidebar-cta h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Article bottom CTA */
.article-cta {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
}

.article-cta h3 {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}


/* ==========================================================================
   24. ARCHIVE / CATEGORY LAYOUT
   ========================================================================== */

/* Category header */
.category-header {
  margin-bottom: 2rem;
}

.category-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.category-header h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.category-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  text-wrap: pretty;
}


/* ==========================================================================
   25. FILTER TABS AND PAGINATION
   ========================================================================== */

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-block;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card);
}

.filter-tab.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.filter-tab.active:not(.filter-tab-all)::after {
  content: '\00a0\00d7';
  color: var(--text-muted);
}

/* Cards grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.articles-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Blog/archive: 2-col grid, featured spans full width */
.articles-grid--blog {
  grid-template-columns: repeat(2, 1fr);
}

.articles-grid--blog .featured-card {
  grid-column: 1 / -1;
}

/* Section link */
.articles-link,
.situations-more a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.articles-link:hover,
.situations-more a:hover {
  color: var(--accent);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius-btn);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border);
}

.pagination .active {
  background: var(--primary);
  color: white;
}

.pagination .dots {
  color: var(--text-muted);
  font-weight: 400;
  pointer-events: none;
}

.pagination .next-arrow {
  font-size: 1.1rem;
  font-weight: 400;
}


/* ==========================================================================
   26. LANDING PAGE LAYOUT
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-content {
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--accent);
  display: inline;
  position: relative;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-sub strong {
  font-weight: 600;
  color: var(--text);
}

/* Landing section helpers */
.demo-section {
  padding: 4rem 0;
  background: var(--bg-white);
}

.demo-intro {
  text-align: left;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.demo-cta-wrap {
  text-align: center;
  padding: 2.5rem 0 0;
}

.pain-section {
  padding: 4rem 0;
  background: var(--bg);
}

.pain-header {
  text-align: left;
  margin-bottom: 3rem;
}

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

.pain-timeline::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.situations-section {
  padding: 4rem 0;
  background: var(--bg-white);
}

.situations-header {
  margin-bottom: 3rem;
  max-width: 640px;
}

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

.situations-more {
  margin-top: 2rem;
}

.rehearsal-section {
  padding: 4rem 0;
  background: var(--primary-light);
}

.rehearsal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.rehearsal-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.rehearsal-inner .section-title {
  margin-bottom: 1.25rem;
}

.rehearsal-inner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.rehearsal-inner p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Articles section (landing) */
.articles-section {
  padding: 4rem 0;
  background: var(--bg);
}

.articles-header {
  margin-bottom: 3rem;
  max-width: 640px;
}

/* Final CTA section */
.final-cta {
  padding: 3rem 0;
  background: var(--primary);
  text-align: center;
}

.final-cta .section-title {
  color: white;
  margin-bottom: 1rem;
}

.final-cta-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 2rem;
}


/* ==========================================================================
   26a. MAIN LANDING — Steps / How it works
   ========================================================================== */

.section-header {
  text-align: left;
  margin-bottom: 3rem;
  max-width: 640px;
}

.howto-section {
  padding: 5rem 0;
  background: var(--bg-white);
}

.steps-grid {
  display: flex;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--border);
}

.step-card {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

.step-number {
  width: 56px;
  height: 56px;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 32ch;
  margin: 0 auto;
}

.step-card .step-quote {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.step-card:nth-child(2) .step-number {
  background: var(--accent);
}


/* ==========================================================================
   26b. MAIN LANDING — Demo dialog (tabbed)
   ========================================================================== */

.demo-section .section-header {
  text-align: center;
  max-width: none;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.demo-tab {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.demo-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.demo-chat-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.demo-dialog {
  display: none;
}

.demo-dialog.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-msg {
  max-width: 88%;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.6;
}

.demo-msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 6px;
}

.demo-msg-ai {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.demo-msg-ai em {
  color: var(--primary);
  font-style: italic;
}

.demo-chat-input {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


/* ==========================================================================
   26c. MAIN LANDING — CTA group
   ========================================================================== */

.cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}


/* ==========================================================================
   26d. MAIN LANDING — Situation icon
   ========================================================================== */

.situation-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.situation-card:nth-child(1) .situation-icon { background: var(--primary-light); }
.situation-card:nth-child(2) .situation-icon { background: var(--accent-light); }
.situation-card:nth-child(3) .situation-icon { background: var(--tertiary-light); }
.situation-card:nth-child(4) .situation-icon { background: var(--primary-light); }


/* ==========================================================================
   26e. MAIN LANDING — Rehearsal extended (2-column)
   ========================================================================== */

/* When rehearsal-inner contains the 2-column layout (main landing) */
.rehearsal-inner:has(.rehearsal-visual) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: none;
}

.rehearsal-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.rehearsal-content > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.rehearsal-highlight {
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.rehearsal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rehearsal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

.rehearsal-list li .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.rehearsal-bottom {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 1.5rem;
}

.rehearsal-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: none;
}

.rehearsal-visual-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.rehearsal-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rehearsal-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--primary-light);
  transition: all 0.3s ease;
}

.rehearsal-step:hover {
  background: var(--primary-light);
  filter: brightness(0.96);
}

.rehearsal-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rehearsal-step-text {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.rehearsal-label-override {
  color: var(--primary-dark);
}


/* ==========================================================================
   26f. MAIN LANDING — Pricing
   ========================================================================== */

.pricing-section {
  padding: 5.5rem 0;
  background: var(--bg-white);
}

.pricing-section .section-header {
  text-align: center;
  max-width: none;
}

.pricing-section .section-sub {
  margin: 0 auto;
}

.privacy-inline {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card--recommended {
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 8px 28px rgba(26, 107, 90, 0.18);
  transform: scale(1.02);
  padding: 3rem 2.5rem;
}

.pricing-card--recommended h3 {
  color: white;
}

.pricing-card--recommended .pricing-price {
  color: white;
}

.pricing-card--recommended .pricing-price span {
  color: rgba(255, 255, 255, 0.6);
}

.pricing-card--recommended .pricing-features li {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-card--recommended .feat-check {
  color: var(--accent);
}

.pricing-card--recommended .feat-dash {
  color: rgba(255, 255, 255, 0.3);
}

.pricing-card--recommended .pricing-cta {
  background: white;
  color: var(--primary);
  border-color: white;
}

.pricing-card--recommended .pricing-cta:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.pricing-card--recommended:hover {
  transform: scale(1.02) translateY(-2px);
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li .feat-check {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-features li .feat-dash {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.pricing-cta:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pricing-footnote {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ==========================================================================
   26g. MAIN LANDING — Final CTA section
   ========================================================================== */

.final-section {
  padding: 3rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.final-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 28px;
  padding: 3rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs removed — clean gradient background */

.final-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.final-card p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-white {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  background: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
}

.cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


/* ==========================================================================
   27. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- 1024px: Tablet landscape --- */
@media (max-width: 1024px) {
  /* Landing */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-chat {
    max-width: 520px;
  }

  .pain-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-timeline::before {
    display: none;
  }

  .situations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog */
  .page-wrapper {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .sidebar-toc {
    display: none;
  }

  .mobile-toc {
    display: block;
  }

  /* Main landing: rehearsal 2-col to 1-col */
  .rehearsal-inner:has(.rehearsal-visual) {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Main landing: CTA group center */
  .cta-group {
    justify-content: center;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Featured card */
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card .card-image {
    min-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* --- 768px: Tablet portrait --- */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 0.75rem 1rem;
  }

  .header-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-header-cta {
    display: inline-block;
  }

  .mobile-menu-overlay {
    display: block;
    pointer-events: none;
  }

  .mobile-menu-overlay.open {
    pointer-events: auto;
  }

  /* Landing */
  .hero {
    padding: 6rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-chat {
    max-width: 100%;
  }

  .pain-section,
  .demo-section,
  .situations-section,
  .diff-section,
  .rehearsal-section,
  .articles-section,
  .faq-section {
    padding: 4rem 0;
  }

  .pain-timeline {
    grid-template-columns: 1fr 1fr;
  }

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

  /* Main landing: steps stack vertically */
  .steps-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .steps-grid::before {
    display: none;
  }

  .step-card p {
    max-width: none;
  }

  /* Main landing: situations keep 2-col on tablet */
  .situations-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .situation-card:nth-child(3),
  .situation-card:nth-child(4) {
    transform: none;
  }

  .situation-card:nth-child(3):hover,
  .situation-card:nth-child(4):hover {
    transform: translateY(-2px);
  }

  /* Main landing: pricing stack */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
  }

  .pricing-card--recommended {
    transform: scale(1);
  }

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

  /* Main landing: final card */
  .final-card {
    padding: 3rem 2rem;
  }

  .diff-block {
    padding: 1.75rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Blog */
  .page-wrapper {
    padding: 5.5rem 1rem 2rem;
    gap: 2rem;
  }

  .article-card--wrapper {
    padding: 1.5rem;
  }

  .chat-demo-block {
    padding: 1.25rem;
  }

  .chat-msg {
    max-width: 95%;
  }

  .img-placeholder {
    height: 200px;
  }

  .situation-block,
  .specialist-block {
    padding: 1.5rem;
  }

  .tag {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  /* Touch targets */
  .breadcrumbs a,
  .breadcrumbs span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .mobile-toc .toc-list li a {
    padding: 0.65rem 1rem;
    min-height: 44px;
  }

  .related-list li a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* --- 480px: Mobile --- */
@media (max-width: 480px) {
  /* Landing */
  .hero {
    padding: 5.5rem 1rem 2rem;
  }

  .pain-timeline {
    grid-template-columns: 1fr;
  }

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

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

  .cta-group {
    flex-direction: column;
  }

  .demo-tabs {
    flex-wrap: wrap;
  }

  .final-card {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-card);
  }

  .diff-block {
    padding: 1.5rem;
  }

  .rehearsal-inner {
    padding: 0 0.5rem;
  }

  .demo-chat {
    border-radius: 16px;
  }

  .situation-card {
    padding: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Blog */
  .page-wrapper {
    padding: 5rem 0.75rem 1.5rem;
  }

  .article-card--wrapper {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .sidebar-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .article-content h1 {
    font-size: 1.5rem;
  }

  .article-meta {
    gap: 0.5rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}


/* ==========================================================================
   28. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   29. PRINT STYLES
   ========================================================================== */

@media print {
  /* Hide interactive elements */
  header,
  footer,
  .back-to-top,
  .skip-link,
  .mobile-menu-overlay,
  .mobile-menu-panel {
    display: none;
  }

  body {
    background: white;
    font-size: 12pt;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  /* Landing print */
  section {
    padding: 2rem 0;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-chat,
  .demo-tabs,
  .demo-chat-input,
  .chat-send,
  .cta-group,
  .final-section,
  .final-cta {
    display: none;
  }

  /* Blog print */
  .sidebar,
  .article-cta,
  .chat-demo-block,
  .mobile-toc,
  .article-tags,
  .filter-tabs,
  .pagination {
    display: none;
  }

  .page-wrapper {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .article-card--wrapper {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .article-content {
    max-width: none;
  }

  .featured-card,
  .article-card-item {
    break-inside: avoid;
    box-shadow: none;
  }
}


/* ====== WAITLIST ====== */

.waitlist-section {
  padding: 3rem 0;
  text-align: center;
}

.waitlist-form {
  max-width: 480px;
  margin: 2rem auto 0;
  display: flex;
  gap: 0.75rem;
}

.waitlist-input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-input:focus {
  border-color: var(--primary);
}

.waitlist-input::placeholder {
  color: var(--text-muted);
}

.waitlist-submit {
  padding: 0.9rem 1.75rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.waitlist-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 107, 90, 0.2);
}

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

.waitlist-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.waitlist-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.waitlist-success {
  display: none;
  padding: 1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1rem;
}

.waitlist-error {
  display: none;
  padding: 1rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .waitlist-form {
    flex-direction: column;
  }
}


/* ==========================================================================
   KADENCE OVERRIDES
   ========================================================================== */

body .landing-page .entry-content {
  padding: 0;
  max-width: none;
}

body .landing-page h1,
body .landing-page h2,
body .landing-page h3 {
  margin: 0;
  padding: 0;
}

body .landing-page p {
  margin-bottom: 0;
}

body .landing-page ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
