/* =========================================================
   Public site styles — English-first (USA / UK / Europe).
   Inspired by mawdoo3.com structure (slider + search + categories)
   with a modern PDFNio-like polish.
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-surface: #fafafa;
  --color-surface-2: #f3f4f6;
  --color-border: #e5e7eb;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-primary: #1f6feb;
  --color-primary-dark: #1657c0;
  --color-accent: #ff6b6b;
  --color-pink: #ec4899;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
  --container: 1200px;
  --container-pad: clamp(14px, 3.8vw, 24px);
  --touch-target: 44px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Breakpoints (reference): sm ≤640, md ≤980, lg ≤1320 */
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}
main {
  min-width: 0;
}
h1, h2, h3, h4 { letter-spacing: -.01em; }
.section-title, .section-head h2, .cat-card h3, .blog-card h3, .article h1 { font-family: var(--font-serif); font-weight: 800; }
.hero-text h1 { font-weight: 800; }
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--container-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-pad), env(safe-area-inset-right, 0px));
}

/* ----- Header (AI UI — wordmark only until custom logo is added) ----- */
.site-header-ai {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(248, 250, 252, .9) 100%);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 4px 28px rgba(15, 23, 42, .06), 0 0 0 1px rgba(255, 255, 255, .7) inset;
}
.site-header-ai::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #0ea5e9);
  opacity: .55;
  pointer-events: none;
}
.nav-row-ai {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: clamp(12px, 1.8vw, 22px) clamp(10px, 1.6vw, 18px);
  padding: clamp(14px, 2.2vw, 20px) 20px clamp(16px, 2.4vw, 22px);
}

/* Search icon + hamburger — keeps one clean header row on desktop (no wide search pill) */
.nav-trailing-ai {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.nav-search-toggle-ai {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.95);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
}
.nav-search-toggle-ai:hover {
  color: #4338ca;
  background: rgba(238, 242, 255, 0.98);
  box-shadow: 0 0 0 1px rgba(199, 210, 254, 0.9);
}
html.is-desktop-search-open .nav-search-toggle-ai {
  color: #4338ca;
  background: rgba(238, 242, 255, 0.98);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

@media (min-width: 981px) {
  .nav-search-toggle-ai {
    display: inline-flex;
  }
}

/* Full search field: only in dropdown (desktop) or mobile panel — not in the top row */
.nav-search-dropdown-ai {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  padding: 0 0 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
.nav-search-dropdown-inner {
  padding-top: 4px;
  padding-bottom: 4px;
}
.nav-search-ai.nav-search-ai-expanded {
  width: 100%;
  max-width: min(560px, 100%);
  margin: 0 auto;
  min-width: 0;
  min-height: 46px;
}
@media (max-width: 980px) {
  .nav-search-dropdown-ai {
    display: none !important;
  }
  html.is-desktop-search-open .nav-search-dropdown-ai {
    display: none !important;
  }
}

/* Logo only — no extra icon or wordmark beside the image */
.brand-ai-logo-only {
  line-height: 0;
}
.brand-ai-logo-only .brand-logo-img {
  display: block;
}

.brand-ai {
  display: inline-flex;
  align-items: center;
  align-self: center;
  text-decoration: none;
  flex-shrink: 0;
  max-width: min(200px, 36vw);
}
.brand-logo-img {
  display: block;
  height: clamp(30px, 4.4vw, 44px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-wordmark {
  font-weight: 800;
  font-size: 1.26rem;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(105deg, #1e40af 0%, #6366f1 38%, #a855f7 72%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand-ai:hover .brand-wordmark { filter: brightness(1.05); }

/* Wrap to a second row when the row is tight — no horizontal scrollbar */
.primary-nav-ai {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 8px 6px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 6px 2px;
  overflow: visible;
}
@media (min-width: 981px) {
  .primary-nav-ai {
    justify-content: flex-start;
    gap: 8px 3px;
  }
}
.primary-nav-ai a {
  color: #334155;
  font-weight: 800;
  font-size: clamp(0.78rem, 0.7rem + 0.28vw, 0.86rem);
  padding: 7px 8px;
  line-height: 1.25;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
  flex: 0 0 auto;
}
.primary-nav-ai a:hover {
  color: #4338ca;
  background: rgba(238, 242, 255, .95);
  box-shadow: 0 0 0 1px rgba(199, 210, 254, .85);
}

.nav-search-ai {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 15px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.98);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search-ai:focus-within {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 4px 22px rgba(99, 102, 241, 0.12), 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.nav-search-ico {
  display: inline-flex;
  color: #94a3b8;
  flex-shrink: 0;
}
.nav-search-ai input {
  border: 0;
  background: transparent;
  outline: none;
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: #0f172a;
}
.nav-search-ai input::placeholder {
  color: #94a3b8;
}

.mobile-nav-panel-ai {
  display: grid;
  gap: 6px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(226, 232, 240, .85);
  background: linear-gradient(180deg, rgba(248, 250, 252, .98) 0%, rgba(255, 255, 255, .96) 100%);
}
.mobile-nav-search-ai {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mobile-nav-search-ai input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, .98);
  font-size: .92rem;
  outline: none;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.mobile-nav-search-ai input:focus {
  border-color: rgba(99, 102, 241, .4);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}
.mobile-nav-panel-ai a {
  border-radius: 10px;
  margin: 2px 0;
  padding: 10px 10px;
  font-weight: 600;
  color: #334155;
}
.mobile-nav-panel-ai a:hover {
  background: rgba(238, 242, 255, .65);
  color: #4338ca;
}
.mobile-nav-panel.mobile-nav-panel-ai a {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .nav-row-ai {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    row-gap: 0;
  }
  .brand-ai {
    grid-column: 1;
    grid-row: 1;
    max-width: min(200px, 70vw);
  }
  .nav-trailing-ai {
    grid-column: 2;
    grid-row: 1;
  }
  .nav-search-toggle-ai {
    display: none !important;
  }
  .primary-nav-ai {
    display: none !important;
  }
  .nav-mobile-toggle {
    display: inline-flex;
  }
  .mobile-nav-panel-ai {
    max-height: min(72vh, calc(100dvh - 56px - env(safe-area-inset-bottom, 0px)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  html.is-mobile-nav-open,
  html.is-mobile-nav-open body {
    overflow: hidden;
    overscroll-behavior: none;
  }
}

/* Legacy aliases */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--color-text); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-primary), var(--color-pink)); color: #fff; font-weight: 800; }
.brand-mark-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; display: block; }
.primary-nav { display: flex; gap: 18px; flex: 1; }
.primary-nav a { color: var(--color-text); font-weight: 500; font-size: .95rem; }
.primary-nav a:hover { color: var(--color-primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-search { display: flex; align-items: center; gap: 8px; background: var(--color-surface-2); border-radius: 999px; padding: 8px 14px; min-width: 240px; }
.nav-search input { border: 0; background: transparent; outline: none; flex: 1; font-size: .9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-target);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  font-size: clamp(0.9rem, 0.86rem + 0.2vw, 0.95rem);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-surface-2); color: var(--color-text); }
.btn-small {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.85rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Hero — AI UI (homepage) ----- */
.hero-ai {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 35%, #eef2ff 100%);
}
.hero-ai-mesh {
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image:
    radial-gradient(at 12% 20%, rgba(99, 102, 241, .16) 0, transparent 45%),
    radial-gradient(at 88% 8%, rgba(236, 72, 153, .14) 0, transparent 42%),
    radial-gradient(at 70% 75%, rgba(14, 165, 233, .12) 0, transparent 48%);
  pointer-events: none;
}
.hero-ai-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-ai-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .55;
}
.hero-ai-orb-a { width: 340px; height: 340px; top: -100px; left: -80px; background: #a5b4fc; }
.hero-ai-orb-b { width: 280px; height: 280px; bottom: -60px; right: -40px; background: #f9a8d4; }
.hero-ai-orb-c { width: 200px; height: 200px; top: 40%; right: 18%; background: #67e8f9; opacity: .35; }

.hero-ai-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.hero-ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #4338ca;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(238, 242, 255, .9));
  border: 1px solid rgba(199, 210, 254, .85);
  box-shadow: 0 4px 18px rgba(99, 102, 241, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hero-ai-kicker-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #6366f1, #8b5cf6);
  box-shadow: 0 2px 10px rgba(99, 102, 241, .4);
}

.hero-ai-title {
  margin: 18px 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.035em;
  color: #0f172a;
  max-width: 15ch;
}
.hero-ai-title-accent {
  background: linear-gradient(110deg, #2563eb 0%, #7c3aed 45%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-ai-lead {
  margin: -6px 0 22px;
  max-width: 38rem;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.55;
  font-weight: 500;
  color: #475569;
}

.hero-ai-search { margin: 0 0 20px; max-width: 560px; }
.hero-ai-search-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 5px 5px 5px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(203, 213, 225, .95);
  box-shadow:
    0 12px 40px rgba(15, 23, 42, .08),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  transition: border-color .2s, box-shadow .2s;
}
.hero-ai-search-inner:focus-within {
  border-color: rgba(99, 102, 241, .55);
  box-shadow:
    0 12px 40px rgba(99, 102, 241, .14),
    0 0 0 3px rgba(99, 102, 241, .12),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}
.hero-ai-search-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  padding-left: 4px;
}
.hero-ai-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 1rem;
  padding: 12px 10px;
  background: transparent;
  color: #0f172a;
}
.hero-ai-search input::placeholder { color: #94a3b8; }
.hero-ai-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--touch-target);
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(0.88rem, 0.84rem + 0.15vw, 0.92rem);
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  box-shadow: 0 6px 20px rgba(79, 70, 229, .38);
  transition: transform .15s, filter .15s;
}
.hero-ai-search-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

.hero-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-target);
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: clamp(0.9rem, 0.86rem + 0.15vw, 0.93rem);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.hero-ai-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1f6feb 0%, #6366f1 100%);
  box-shadow: 0 8px 24px rgba(31, 111, 235, .35);
  border: 1px solid rgba(255, 255, 255, .2);
}
.hero-ai-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 111, 235, .42); }
.hero-ai-btn-glass {
  color: #334155;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(226, 232, 240, .95);
  backdrop-filter: blur(8px);
}
.hero-ai-btn-glass:hover { background: rgba(255, 255, 255, .85); color: #0f172a; }

.hero-ai-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-ai-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: #475569;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.hero-ai-chip-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #4338ca;
  background: #eef2ff;
}

/* Legacy eyebrow (blogs / categories heroes) */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #eaf1ff; color: #1e40af; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .2px; }
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(31,111,235,.18); }
.text-gradient { background: linear-gradient(135deg, var(--color-primary), var(--color-pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Right column: glass “app frame” */
.hero-ai-side { min-width: 0; }
.hero-ai-frame {
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .88) 0%, rgba(248, 250, 252, .92) 100%);
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, .12),
    0 0 0 1px rgba(255, 255, 255, .6) inset;
  backdrop-filter: blur(16px);
}
.hero-ai-frame-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  background: linear-gradient(90deg, rgba(238, 242, 255, .5) 0%, rgba(255, 255, 255, .4) 100%);
}
.hero-ai-frame-dots { display: inline-flex; gap: 6px; }
.hero-ai-frame-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.hero-ai-frame-dots i:nth-child(1) { background: #fca5a5; }
.hero-ai-frame-dots i:nth-child(2) { background: #fcd34d; }
.hero-ai-frame-dots i:nth-child(3) { background: #86efac; }
.hero-ai-frame-label {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #64748b;
}
.hero-ai-frame-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  animation: hero-ai-pulse 2s ease-out infinite;
}
@keyframes hero-ai-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-ai-spotlight {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.hero-ai-spotlight img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.hero-ai-spotlight-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, .82) 100%);
}
.hero-ai-spotlight-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e0e7ff;
  margin-bottom: 4px;
}
.hero-ai-spotlight-cap strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.hero-ai-feed { padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.hero-ai-feed-compact { padding-top: 2px; }

/* Live picks under spotlight: vertical ticker — 3 rows visible, scrolls up like a feed */
.hero-feed-ticker {
  padding: 6px 10px 10px;
}
.hero-feed-ticker-viewport {
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.hero-feed-ticker-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  will-change: transform;
}
.hero-feed-ticker .hero-ai-row {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
}

.hero-ai-row,
a.hero-ai-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  margin: 0;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background .18s ease;
}
a.hero-ai-row:hover { background: rgba(241, 245, 249, .85); }

.hero-ai-row + .hero-ai-row,
a.hero-ai-row + a.hero-ai-row,
.hero-ai-row + a.hero-ai-row,
a.hero-ai-row + .hero-ai-row {
  border-top: 1px solid rgba(241, 245, 249, .95);
}

.hero-ai-row-text { min-width: 0; flex: 1; }
.hero-ai-row strong { display: block; font-size: .92rem; line-height: 1.35; font-weight: 700; color: #0f172a; }
.hero-ai-row small { display: block; margin-top: 2px; font-size: .78rem; color: #64748b; }

/* Shared mini icons + tags (hero + elsewhere) */
.hero-mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: #fff;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: 0 4px 16px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.hero-mini-icon svg { width: 22px; height: 22px; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }

/* Hero feed rows: smaller rounded-square category icons */
.hero-mini-icon--feed {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .1), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.hero-mini-icon--feed svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

/* Live picks row: real article cover (same footprint as .hero-mini-icon--feed) */
.hero-mini-thumb {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .1);
  background: #f1f5f9;
}
.hero-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-mini-icon-violet { background: linear-gradient(135deg, #6366f1, #a855f7); }
.hero-mini-icon-teal { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.hero-mini-icon-orange { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.hero-tag {
  margin-left: auto;
  flex-shrink: 0;
  background: #dcfce7;
  color: #166534;
  font-size: .7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.hero-tag.tag-violet { background: #ede9fe; color: #5b21b6; }
.hero-tag.tag-teal { background: #ccfbf1; color: #0f766e; }

.hero-ai-footer-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(226, 232, 240, .85);
  font-size: .88rem;
  font-weight: 600;
  color: #475569;
  background: linear-gradient(90deg, rgba(238, 242, 255, .35) 0%, rgba(255, 255, 255, .5) 100%);
}
.hero-ai-footer-chip .hero-mini-icon { width: 38px; height: 38px; border-radius: 11px; }
.hero-ai-footer-chip .hero-mini-icon svg { width: 20px; height: 20px; }

/* ----- AI strip + flow cards (homepage depth) ----- */
.ai-strip { padding-top: 6px; }
.ai-strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ai-pill-card { display: flex; gap: 10px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); box-shadow: var(--shadow-sm); }
.ai-pill-card-dot { width: 10px; height: 10px; border-radius: 50%; background: #2563eb; margin-top: 7px; box-shadow: 0 0 0 6px rgba(37,99,235,.12); flex: 0 0 auto; }
.ai-pill-card .ai-dot-violet { background: #7c3aed; box-shadow: 0 0 0 6px rgba(124,58,237,.12); }
.ai-pill-card .ai-dot-teal { background: #0d9488; box-shadow: 0 0 0 6px rgba(13,148,136,.12); }
.ai-pill-card strong { display: block; font-size: .98rem; }
.ai-pill-card p { margin: 4px 0 0; color: var(--color-text-muted); font-size: .88rem; line-height: 1.45; }

.ai-flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-flow-card { border: 1px solid #dbe6ff; border-radius: 16px; background: linear-gradient(135deg, #f8fbff 0%, #ffffff 65%); padding: 18px; box-shadow: var(--shadow-sm); }
.ai-step { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 24px; border-radius: 999px; background: #1f6feb; color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .4px; }
.ai-flow-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.ai-flow-card p { margin: 0; color: var(--color-text-muted); font-size: .9rem; }

/* ----- Section heads ----- */
.section { padding: 30px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-family: var(--font-serif); margin: 0; font-size: 1.6rem; }
.section-head .section-sub { color: var(--color-text-muted); margin: 4px 0 0; }

/* ----- Search bar (centered, big) ----- */
.search-block { padding: 32px 0; }
.search-shell { background: linear-gradient(135deg, #f8fafc, #f3f4f6); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); text-align: center; }
.search-shell h3 { font-family: var(--font-serif); margin: 0 0 8px; font-size: 1.4rem; }
.search-shell p { color: var(--color-text-muted); margin: 0 0 18px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input { flex: 1; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--color-border); font-size: 1rem; outline: none; }
.search-form input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31,111,235,.18); }
.search-form button { padding: 12px 22px; border-radius: 999px; }

/* ----- Category grid ----- */
.section-title { font-family: var(--font-serif); font-size: 1.6rem; margin: 0 0 6px; }
.section-meta { color: var(--color-text-muted); font-size: .95rem; margin: 0 0 18px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 6px 0; }
.cat-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border-radius: 14px; border: 1px solid var(--color-border); background: #fff; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-height: 150px; color: var(--color-text); position: relative; overflow: hidden; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(15,23,42,.1); color: var(--color-text); border-color: #d8e4f5; }
.cat-card-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 14px rgba(31, 111, 235, .15); }
.cat-card-icon svg { width: 22px; height: 22px; }
.cat-card h3 { font-family: var(--font-serif); font-size: 1.05rem; margin: 12px 0 4px; }
.cat-card p { color: var(--color-text-muted); font-size: .82rem; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card-meta { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; color: var(--color-primary); font-size: .8rem; font-weight: 700; }
.center-actions { display: flex; justify-content: center; padding-top: 18px; }

/* All categories page */
.categories-hero { position: relative; overflow: hidden; padding: 54px 0 28px; background: linear-gradient(180deg, #fff 0%, #eef4ff 55%, #fff 100%); border-bottom: 1px solid #eaf0fa; }
.categories-hero h1 { margin: 10px 0 8px; font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.1; }
.categories-hero p { max-width: 760px; margin: 0; color: var(--color-text-muted); }
.cat-card-ai { border-color: #dbe7ff; background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
.cat-card-ai-meta { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; }
.mini-pill { background: #e0e7ff; color: #3730a3; border-radius: 999px; padding: 4px 9px; font-size: .72rem; font-weight: 700; }

/* Legal pages */
.legal-hero { padding: 52px 0 24px; background: linear-gradient(180deg, #fff 0%, #f5f8ff 65%, #fff 100%); border-bottom: 1px solid #e8eefb; }
.legal-hero-inner { max-width: 920px; }
.legal-kicker { display: inline-flex; align-items: center; background: #e0e7ff; color: #3730a3; border-radius: 999px; padding: 5px 10px; font-size: .74rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.legal-hero h1 { margin: 10px 0 8px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; }
.legal-hero p { margin: 0 0 8px; max-width: 72ch; color: #475569; font-size: 1rem; }
.legal-hero small { color: #64748b; font-size: .84rem; }
.legal-wrap { max-width: 980px; }
.legal-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.legal-card h2 { margin: 28px 0 10px; font-size: 1.28rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin: 0 0 12px; color: #334155; line-height: 1.72; }
.legal-card ul { margin: 0 0 12px; padding-left: 1.2rem; color: #334155; }
.legal-card li { margin: 7px 0; line-height: 1.6; }

/* ----- Category section + cards grid ----- */
.cat-block { padding: 30px 0; border-top: 1px solid var(--color-border); }
.cat-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.cat-block-head h2 { font-family: var(--font-serif); margin: 0; font-size: 1.5rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.blog-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; color: var(--color-text); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--color-text); }
.blog-card-cover { width: 100%; aspect-ratio: 16/9; background: var(--color-surface-2); object-fit: cover; }
.blog-card-body { padding: 14px 16px 18px; }
.blog-card-cat { font-size: .72rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 1px; }
.blog-card h3 { font-family: var(--font-serif); margin: 6px 0 6px; font-size: 1.1rem; line-height: 1.3; }
.blog-card p { color: var(--color-text-muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ----- Single blog page (pdfnio-like) ----- */
.blog-hero-pro { padding: 34px 0 22px; background: linear-gradient(180deg, #fff 0%, #f7faff 62%, #fff 100%); border-bottom: 1px solid #edf1f7; }
.blog-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; }
.blog-back { display: inline-flex; color: #475569; font-size: .9rem; margin-bottom: 8px; }
.blog-back:hover { color: #0f172a; }
.blog-tag { display: inline-flex; align-items: center; gap: 7px; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 4px 10px; font-size: .73rem; font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #6366f1; }
.blog-hero-text h1 { margin: 10px 0 10px; font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.12; }
.blog-hero-meta { margin: 0; color: #64748b; font-size: .9rem; }
.blog-hero-lead { margin: 12px 0 0; color: #475569; font-size: 1rem; line-height: 1.6; max-width: 62ch; }
.blog-hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 36px rgba(15,23,42,.16); }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.blog-article-pro { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }

/* Structured SEO article body (PDFNio-like: purple heading bar + step cards) */
.blog-article-pro .seo-blog-body {
  max-width: 72ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.blog-article-pro .seo-blog-body > *:first-child { margin-top: 0; }

.blog-article-pro .seo-blog-body h2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 36px 0 18px;
  padding-left: 18px;
  font-size: 1.38rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.28;
}
.blog-article-pro .seo-blog-body h2:first-of-type { margin-top: 0; }
.blog-article-pro .seo-blog-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a855f7 0%, #6366f1 55%, #7c3aed 100%);
  box-shadow: 0 2px 8px rgba(124, 58, 237, .28);
}
/* Title line vs subtitle: not on the same visual row as the bar — stacked */
.blog-article-pro .seo-blog-body h2 .h2-title {
  display: block;
  font-size: 1.38rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.blog-article-pro .seo-blog-body h2 .h2-desc {
  display: block;
  font-size: .93rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.55;
  max-width: 68ch;
}

/* Optional: description as the next paragraph (editor-friendly) */
.blog-article-pro .seo-blog-body h2 + p.h2-lead {
  margin: -4px 0 20px;
  padding-left: 18px;
  font-size: .94rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.6;
  max-width: 68ch;
}

.blog-article-pro .seo-blog-body h3 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 28px 0 12px;
  padding-left: 14px;
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
}
.blog-article-pro .seo-blog-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c4b5fd, #818cf8);
}
.blog-article-pro .seo-blog-body h3 .h3-title { display: block; font-size: 1.12rem; font-weight: 800; }
.blog-article-pro .seo-blog-body h3 .h3-desc {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
  max-width: 65ch;
}
.blog-article-pro .seo-blog-body h3 + p.h3-lead {
  margin: -2px 0 14px;
  padding-left: 14px;
  font-size: .88rem;
  color: #64748b;
  line-height: 1.55;
  max-width: 65ch;
}

.blog-article-pro .seo-blog-body p {
  margin: 14px 0;
  font-size: 1.03rem;
  line-height: 1.75;
  color: #334155;
}

/* Optional: highlight SEO phrases like reference (wrap in <span class="seo-keyword">…</span>) */
.blog-article-pro .seo-blog-body .seo-keyword,
.blog-article-pro .seo-blog-body a.seo-keyword {
  color: #ea580c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-article-pro .seo-blog-body a.seo-keyword:hover { color: #c2410c; }

/* Numbered step-by-step (large padded rows, bold lead via <strong> in <li>) */
.blog-article-pro .seo-blog-body ol {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  counter-reset: seo-step;
}
.blog-article-pro .seo-blog-body ol > li {
  position: relative;
  padding: 16px 18px 16px 54px;
  margin: 0 0 14px;
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  counter-increment: seo-step;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #334155;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.blog-article-pro .seo-blog-body ol > li:last-child { margin-bottom: 0; }
.blog-article-pro .seo-blog-body ol > li::before {
  content: counter(seo-step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .35);
}
.blog-article-pro .seo-blog-body ol > li strong { color: #0f172a; font-weight: 800; }

/* Step list: title (strong) + readable paragraph under each numbered card */
.blog-article-pro .seo-blog-body ol > li .step-li-detail {
  margin: 10px 0 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.68;
  max-width: 62ch;
}
.blog-article-pro .seo-blog-body ol > li:has(.step-li-detail) strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.03rem;
}

.blog-article-pro .seo-blog-body ul:not(.blog-share-buttons) {
  padding-left: 1.25rem;
  margin: 16px 0;
}
.blog-article-pro .seo-blog-body ul:not(.blog-share-buttons) li { margin: 8px 0; color: #334155; line-height: 1.65; }

.blog-article-pro .seo-blog-body blockquote {
  margin: 24px 0;
  padding: 16px 18px 16px 20px;
  border-left: 4px solid #a855f7;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(244, 237, 255, .55) 0%, #fafafa 100%);
  color: #334155;
}
.blog-article-pro .seo-blog-body blockquote p { margin: 8px 0; }
.blog-article-pro .seo-blog-body blockquote p:first-child { margin-top: 0; }
.blog-article-pro .seo-blog-body blockquote p:last-child { margin-bottom: 0; }

.blog-share-card { margin: 24px 0; border: 1px solid #dbe6ff; border-radius: 14px; background: linear-gradient(180deg, #f8fbff 0%, #fff 100%); padding: 14px; }
.blog-share-head strong { display: block; font-size: 1rem; }
.blog-share-buttons { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; padding: 8px 11px; border: 1px solid #d7e0ec; color: #0f172a; background: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; }
.share-btn svg { width: 15px; height: 15px; flex: 0 0 15px; }
.share-btn:hover { border-color: #1f6feb; color: #1f6feb; }
.share-copy { cursor: pointer; }

.blog-sidebar { display: grid; gap: 14px; position: sticky; top: 92px; }
.sidebar-card { border: 1px solid var(--color-border); border-radius: 14px; background: #fff; padding: 14px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { margin: 0 0 8px; font-size: 1rem; }
.sidebar-tools { display: grid; gap: 8px; }
.sidebar-tool { display: flex; align-items: center; gap: 8px; color: var(--color-text); text-decoration: none; padding: 8px 8px; border-radius: 10px; border: 1px solid transparent; }
.sidebar-tool:hover { background: #f8fafc; border-color: #e2e8f0; color: var(--color-text); }
.tool-icon { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.tool-icon svg { width: 17px; height: 17px; }
.sidebar-tool-name { font-size: .9rem; font-weight: 600; }
.sidebar-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sidebar-related a { color: #334155; text-decoration: none; font-size: .9rem; }
.sidebar-related a:hover { color: #0f172a; text-decoration: underline; }

/* Related guides — AI sidebar cards */
.sidebar-related-ai {
  border: 1px solid rgba(226, 232, 240, .95);
  background: linear-gradient(165deg, #f8faff 0%, #ffffff 50%, #faf5ff 100%);
  box-shadow: 0 4px 24px rgba(99, 102, 241, .07), 0 0 0 1px rgba(226, 232, 240, .8);
}
.sidebar-related-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
}
.sidebar-related-head h3 { margin: 0 0 2px; }
.sidebar-related-head .section-sub { margin: 0; font-size: .78rem; color: #64748b; }
.sidebar-related-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, #6366f1 0%, #a855f7 55%, #7c3aed 100%);
  box-shadow: 0 6px 18px rgba(99, 102, 241, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.sidebar-related-icon svg { width: 22px; height: 22px; }
.related-guides-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.related-guide-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255, 255, 255, .75);
  text-decoration: none;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.related-guide-card:hover {
  border-color: rgba(99, 102, 241, .35);
  background: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .12);
}
.related-guide-thumb-wrap {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
  background: #f1f5f9;
}
.related-guide-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-guide-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.related-guide-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}
.related-guide-meta {
  font-size: .72rem;
  color: #64748b;
  font-weight: 500;
}

/* Legacy share chips kept for footer */
.share-row { display: flex; gap: 10px; align-items: center; margin: 24px 0; padding: 16px; border-radius: var(--radius-md); background: var(--color-surface-2); border: 1px solid var(--color-border); flex-wrap: wrap; }
.share-row strong { font-size: .9rem; }
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.15s ease;
}
.icon-chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.icon-chip svg { width: 18px; height: 18px; }

/* Comments — AI / glass UI (blog page) */
.fld { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--color-border); outline: none; font: inherit; }
.fld:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }

.comments-ai {
  margin: 28px 0 0;
  padding: 0;
  border: none;
  border-radius: 18px;
  background: linear-gradient(165deg, #f8faff 0%, #ffffff 45%, #faf5ff 100%);
  box-shadow: 0 4px 24px rgba(99, 102, 241, .08), 0 0 0 1px rgba(226, 232, 240, .9);
  overflow: hidden;
}
.comments-ai-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  background: linear-gradient(90deg, rgba(238, 242, 255, .65) 0%, rgba(255, 255, 255, .4) 100%);
}
.comments-ai-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, #6366f1 0%, #a855f7 55%, #7c3aed 100%);
  box-shadow: 0 8px 22px rgba(99, 102, 241, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.comments-ai-icon svg { width: 26px; height: 26px; }
.comments-ai-titles { flex: 1; min-width: 0; }
.comments-ai-title { margin: 0; font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.comments-ai-sub { margin: 4px 0 0; font-size: .88rem; color: #64748b; line-height: 1.45; }
.comments-count-pill {
  flex-shrink: 0;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 800;
  color: #4338ca;
  background: #fff;
  border: 1px solid #e0e7ff;
  box-shadow: 0 2px 8px rgba(67, 56, 202, .12);
}

.comments-flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.45;
}
.comments-flash svg { flex-shrink: 0; margin-top: 1px; }
.comments-flash-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.comments-flash-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.comments-form-shell {
  margin: 16px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e8ecf4;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
}
.comments-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.comments-form-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
}
.comments-form-icon svg { width: 20px; height: 20px; }
.comments-form-label { font-size: .95rem; font-weight: 700; color: #1e293b; letter-spacing: -.01em; }

.comment-form-ai { display: grid; gap: 14px; margin: 0; }
.comment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.comment-field-full { grid-column: 1 / -1; }
.comment-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: #334155;
}
.comment-field-label abbr { text-decoration: none; color: #dc2626; font-weight: 800; }
.comment-optional { font-weight: 500; color: #94a3b8; font-size: .78rem; }
.comment-field-ico {
  width: 18px;
  height: 18px;
  color: #6366f1;
  flex-shrink: 0;
}
.fld-ai {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fafbfc;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.fld-ai:hover { border-color: #cbd5e1; background: #fff; }
.fld-ai:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .12);
}
.comment-actions { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
.comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(31, 111, 235, .35);
}
.comment-submit svg { opacity: .95; }

.comments-empty-ai {
  margin: 16px 20px 22px;
  padding: 28px 20px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed #c7d2fe;
  background: linear-gradient(180deg, rgba(238, 242, 255, .5) 0%, rgba(255, 255, 255, .6) 100%);
}
.comments-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #818cf8;
  background: #fff;
  border: 1px solid #e0e7ff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, .12);
}
.comments-empty-icon svg { width: 30px; height: 30px; }
.comments-empty-ai strong { display: block; font-size: 1.05rem; color: #0f172a; margin-bottom: 6px; }
.comments-empty-ai p { margin: 0; font-size: .9rem; color: #64748b; line-height: 1.5; max-width: 32rem; margin-left: auto; margin-right: auto; }

.comment-list-ai { list-style: none; margin: 0; padding: 0 16px 20px; display: grid; gap: 12px; }
.comment-item-ai {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.comment-avatar-ai {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e0e7ff 0%, #ddd6fe 100%);
  color: #4338ca;
  font-weight: 800;
  border: 1px solid #c7d2fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.comment-meta-ai {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.comment-meta-ai strong { font-size: .95rem; color: #0f172a; }
.comment-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 600;
}
.comment-time svg { color: #a5b4fc; flex-shrink: 0; }
.comment-text { margin: 0; white-space: pre-line; color: #334155; font-size: .95rem; line-height: 1.65; }

/* ----- Footer (PDFNio-inspired) ----- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 50px 0 28px; margin-top: 50px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid section p { color: #9ca3af; font-size: .9rem; }
.footer-brand-logo-link {
  display: inline-block;
  line-height: 0;
  margin: 0 0 14px;
  text-decoration: none;
}
.footer-brand-logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.footer-seo-desc {
  margin: 0 0 18px;
  color: #9ca3af;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36ch;
}
.footer-share-heading {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #fff;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: #cbd5e1; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-share-block { margin-top: 22px; }
.footer-share-block h4 { font-size: .9rem; }
.footer-share-block .share-row { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.06); color: #cbd5e1; }
.footer-share-block .icon-chip { background: rgba(255,255,255,.06); color: #cbd5e1; border-color: rgba(255,255,255,.08); }
.footer-share-block .icon-chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.footer-bottom { padding: 22px 20px 0; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: #9ca3af; font-size: .85rem; }

/* Cookie consent */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 10px 14px max(14px, env(safe-area-inset-bottom));
}
.cookie-consent-inner { max-width: 980px; margin: 0 auto; background: #0f172a; color: #cbd5e1; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; box-shadow: 0 18px 36px rgba(2,6,23,.35); }
.cookie-consent p { margin: 0; font-size: .88rem; line-height: 1.45; }
.cookie-consent a { color: #93c5fd; text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 8px; align-items: center; }
.cookie-consent .btn-ghost { border-color: rgba(255,255,255,.22); color: #e2e8f0; }
.cookie-consent .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ----- Pagination ----- */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 30px 0;
  row-gap: 10px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: clamp(0.86rem, 0.82rem + 0.2vw, 0.9rem);
}
.pagination a:hover { background: var(--color-surface-2); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ----- Mobile nav ----- */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--touch-target);
  height: var(--touch-target);
  flex-shrink: 0;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-mobile-toggle:hover {
  background: rgba(238, 242, 255, 0.95);
  color: var(--color-primary-dark);
}
.mobile-nav-panel {
  display: none;
  padding: 12px max(16px, env(safe-area-inset-left)) 18px max(16px, env(safe-area-inset-right));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
}
.mobile-nav-panel a {
  display: block;
  padding: 14px 8px;
  min-height: var(--touch-target);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 500;
  font-size: clamp(0.94rem, 0.9rem + 0.15vw, 1rem);
}
.mobile-nav-panel a:last-child { border-bottom: 0; }
.is-mobile-nav-open .mobile-nav-panel { display: block; }

/* ----- CTA banner ----- */
.cta-banner { background: linear-gradient(135deg, var(--color-primary), var(--color-pink)); color: #fff; border-radius: 18px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-md); }
.cta-banner h2 { font-family: var(--font-serif); margin: 0 0 4px; font-size: 1.5rem; color: #fff; }
.cta-banner p { color: rgba(255,255,255,.9); margin: 0; }
.cta-banner .btn-ghost { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; }
.cta-banner .btn-primary { background: #fff; color: var(--color-primary); }
.cta-banner .btn-primary:hover { background: #f3f4f6; color: var(--color-primary-dark); }

/* ----- Home extra sections ----- */
.spotlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.spotlight-card { display: grid; gap: 0; background: #fff; border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); color: inherit; }
.spotlight-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.spotlight-body { padding: 14px; display: grid; gap: 8px; }
.spotlight-body span { font-size: .76rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: .06em; }
.spotlight-body h3 { margin: 0; font-size: 1rem; line-height: 1.4; color: #111827; }
.spotlight-body p { margin: 0; color: var(--color-text-muted); font-size: .9rem; }

.reader-value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reader-value-card { position: relative; background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%); border: 1px solid #dbeafe; border-radius: 16px; padding: 18px; box-shadow: 0 14px 30px rgba(37,99,235,.10); overflow: hidden; }
.reader-value-card::before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.16), rgba(59,130,246,0)); right: -54px; top: -54px; pointer-events: none; }
.reader-value-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: #111827; }
.reader-value-card p { margin: 0; color: var(--color-text-muted); line-height: 1.65; font-size: .95rem; }

.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.faq-card { position: relative; background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%); border: 1px solid #dbeafe; border-radius: 16px; padding: 18px; box-shadow: 0 14px 30px rgba(30,64,175,.10); overflow: hidden; }
.faq-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(236,72,153,.05), rgba(59,130,246,.04)); pointer-events: none; }
.faq-card h3 { margin: 0 0 8px; font-size: 1rem; color: #0f172a; }
.faq-card p { margin: 0; color: #475569; line-height: 1.65; font-size: .92rem; }

.ai-ui-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; margin: 0 0 10px; border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(4px); position: relative; z-index: 1; }
.ai-ui-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1d4ed8; box-shadow: 0 8px 18px rgba(29,78,216,.20); }
.faq-icon { background: linear-gradient(135deg, #fdf2f8, #ede9fe); color: #7c3aed; box-shadow: 0 8px 18px rgba(124,58,237,.18); }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-search { display: none; }
  .primary-nav { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  /* .nav-row-ai grid at ≤980px is defined above — do not override here */
  .hero-ai-layout { grid-template-columns: 1fr; gap: 28px; }
  .blog-hero-grid { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .cat-grid-three, .cat-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight-grid, .reader-value-grid, .faq-grid { grid-template-columns: 1fr 1fr; }
  .ai-strip-grid, .ai-flow-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }
  .hero-ai { padding: 44px 0 40px; }
  .hero-ai-title { max-width: none; }
  .hero-ai-search-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }
  .hero-ai-search-ico { justify-content: flex-start; padding-left: 0; }
  .hero-ai-search input { padding: 6px 0; }
  .hero-ai-search-btn {
    width: 100%;
    justify-content: center;
    margin-top: 2px;
    border-radius: 12px;
  }
  .cat-grid, .cat-grid-three, .cat-grid-four { grid-template-columns: repeat(2, 1fr); }
  .cat-card { min-height: 140px; padding: 14px; }
  .blog-article-pro { padding: 16px; }
  .blog-article-pro .seo-blog-body ol > li { padding: 14px 14px 14px 48px; font-size: .98rem; }
  .blog-article-pro .seo-blog-body ol > li::before { left: 10px; width: 26px; height: 26px; font-size: .78rem; }
  .legal-card { padding: 18px; }
  .blog-share-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 22px; }
  .cta-banner h2 { font-size: 1.2rem; }
  .comment-grid { grid-template-columns: 1fr; }
  .comments-ai-head { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .comments-ai-icon { width: 44px; height: 44px; border-radius: 12px; }
  .comments-ai-icon svg { width: 24px; height: 24px; }
  .comments-form-shell { margin: 12px; padding: 14px; }
  .comments-flash { margin: 0 12px; }
  .comment-list-ai { padding: 0 12px 16px; }
  .spotlight-grid, .reader-value-grid, .faq-grid { grid-template-columns: 1fr; }
  .cookie-consent-inner { padding: 12px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 380px) {
  .cat-grid, .cat-grid-three, .cat-grid-four { grid-template-columns: repeat(1, 1fr); }
  .cat-card { padding: 12px; min-height: 120px; }
}

/* ----- Contact page (AI UI) ----- */
.contact-ai-hero {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 10% -20%, rgba(99, 102, 241, 0.18), transparent 52%),
    radial-gradient(ellipse 55% 60% at 95% 15%, rgba(236, 72, 153, 0.14), transparent 48%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 55%, #f8fafc 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}
.contact-ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.5) 0%, transparent 45%);
  pointer-events: none;
}
.contact-ai-hero-inner {
  position: relative;
  max-width: 720px;
}
.contact-ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4338ca;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(199, 210, 254, 0.95);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.12);
}
.contact-ai-kicker-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.contact-ai-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.12;
}
.contact-ai-hero p {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #475569;
}

.contact-ai-section {
  padding-top: 28px;
  padding-bottom: 56px;
}
.contact-ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}
.contact-ai-layout.is-single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .contact-ai-layout {
    grid-template-columns: 1fr;
  }
}
.contact-ai-card {
  border-radius: 20px;
  padding: 26px 26px 28px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}
.contact-ai-card-form {
  position: relative;
}
.contact-ai-card-form::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #0ea5e9);
  opacity: 0.55;
  pointer-events: none;
}
.contact-ai-flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.contact-ai-flash.is-ok {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #047857;
  border: 1px solid #a7f3d0;
}
.contact-ai-flash.is-err {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #991b1b;
  border: 1px solid #fecaca;
}
.contact-ai-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-ai-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-ai-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-ai-label span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.contact-ai-input,
.contact-ai-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-ai-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}
.contact-ai-input:focus,
.contact-ai-textarea:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}
.contact-ai-submit {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.38);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.contact-ai-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.contact-ai-card-aside h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.contact-ai-card-aside p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}
.contact-ai-mailto {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-all;
  color: #4f46e5;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(238, 242, 255, 0.95);
  border: 1px solid rgba(199, 210, 254, 0.85);
}
.contact-ai-mailto:hover {
  color: #4338ca;
  background: #eef2ff;
}
.contact-ai-aside-note {
  margin-top: 14px !important;
  font-size: 0.84rem !important;
  color: #64748b !important;
}
