:root {
    --bg: #F8FAFC;
    --surface: #ffffff;
    --surface-2: #F1F5F9;
    --text: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --accent: #16A34A;
    --accent-2: #15803D;
    --accent-soft: #E8F6EE;
    --accent-bright: #22C55E;
    --success: #15803D;
    --warning: #F59E0B;
    --pink: #EC4899;
    --blue: #3B82F6;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  .layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
  }

  /* Sidebar */
  .sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 28px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.65) transparent;
  }
  .sidebar::-webkit-scrollbar {
    width: 8px;
  }
  .sidebar::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
  }
  .sidebar::-webkit-scrollbar-track {
    background: transparent;
  }
  .sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.58);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.72);
    background-clip: padding-box;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    padding: 0 8px;
  }
  .logo-text { font-weight: 700; font-size: 17px; letter-spacing: -0.3px; }
  .logo-sub { font-size: 12px; color: var(--text-muted); margin-top: -2px; }
  .nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 0 12px;
    margin: 22px 0 6px;
    font-weight: 600;
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
  }
  .nav-item:hover { background: var(--surface-2); }
  .nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

  /* Main */
  .main { padding: 36px 48px 80px; max-width: 920px; min-width: 0; }
  .breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
  .breadcrumbs span { color: var(--accent); }

  /* Section / Page */
  .section {
    margin-bottom: 40px;
    scroll-margin-top: 20px;
    display: none;
    animation: fadeIn 0.25s ease;
  }
  .section.active { display: block; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 6px 0 8px;
    letter-spacing: -0.4px;
    color: var(--text);
  }
  .page-lead {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 16px;
    line-height: 1.55;
  }

  /* Home: hero */
  .home-hero { text-align: center; margin: 24px 0 28px; }
  .home-hero .page-title { font-size: 38px; margin-bottom: 10px; letter-spacing: -0.6px; }
  .home-hero .page-lead { font-size: 16px; max-width: 580px; margin: 0 auto 8px; line-height: 1.55; }

  .hero-search { position: relative; margin: 4px 0 32px; }
  .hero-search input {
    width: 100%;
    padding: 22px 64px 22px 64px;
    font-size: 16.5px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    outline: none;
    font-family: inherit;
    color: var(--text);
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
  }
  .hero-search input::placeholder { color: var(--text-muted); }
  .hero-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 10px 36px rgba(22, 163, 74, 0.14);
  }
  .hero-search > svg {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
  }
  .hero-search-clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
  }
  .hero-search-clear:hover {
    background: var(--surface-2);
    color: var(--text);
  }
  .hero-search-clear[hidden] {
    display: none;
  }
  .search-panel {
    margin: -12px 0 24px;
    display: grid;
    gap: 14px;
  }
  .search-panel[hidden] {
    display: none;
  }
  .search-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
  }
  .search-summary strong {
    color: var(--text);
    font-weight: 700;
  }
  .search-results {
    display: grid;
    gap: 12px;
  }
  .search-result-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: var(--shadow-sm);
  }
  .search-result-card:hover {
    border-color: rgba(22, 163, 74, 0.32);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  .search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
  }
  .search-result-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-2);
  }
  .search-result-section {
    color: var(--text-muted);
  }
  .search-result-title {
    font-size: 17px;
    line-height: 1.35;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 6px;
  }
  .search-result-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
  }
  .search-highlight {
    display: inline;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    padding: 0 4px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .search-empty-state,
  .search-hint-state {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    border: 1px dashed #CBD5E1;
    border-radius: 16px;
    padding: 20px 22px;
  }
  .search-empty-title,
  .search-hint-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
  }
  .search-empty-copy,
  .search-hint-copy {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
  }
  .search-focus-target {
    animation: searchFocusPulse 2.1s ease;
  }
  .support-card.search-focus-target {
    position: relative;
    isolation: isolate;
    overflow: visible;
    animation: none;
  }
  .support-card.search-focus-target::before,
  .support-card.search-focus-target::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    box-sizing: border-box;
  }
  .support-card.search-focus-target::before {
    border: 3px solid rgba(255, 255, 255, 0.95);
    animation: supportFocusWaveOne 1.2s ease-out;
  }
  .support-card.search-focus-target::after {
    border: 3px solid rgba(187, 247, 208, 0.95);
    animation: supportFocusWaveTwo 1.2s ease-out 0.18s;
  }
  @keyframes searchFocusPulse {
    0% {
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
    20% {
      box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.32), 0 0 0 12px rgba(34, 197, 94, 0.18);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
  }
  @keyframes supportFocusWaveOne {
    0% {
      inset: 0;
      opacity: 1;
    }
    100% {
      inset: -18px;
      opacity: 0;
    }
  }
  @keyframes supportFocusWaveTwo {
    0% {
      inset: 0;
      opacity: 0.95;
    }
    100% {
      inset: -34px;
      opacity: 0;
    }
  }

  .hero-faq-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    text-align: center;
    margin: 4px 0 14px;
  }
  .hero-faq-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .hero-faq-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.35;
  }
  .hero-faq-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .hero-faq-tile-arrow { color: var(--text-muted); transition: all 0.15s; flex-shrink: 0; }
  .hero-faq-tile:hover .hero-faq-tile-arrow { color: var(--accent); transform: translateX(3px); }

  /* FAQ Card */
  .faq {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
  }
  .faq:hover { border-color: #CBD5E1; }
  .faq[open] { border-color: var(--accent); box-shadow: var(--shadow-md); }
  .faq summary {
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 15px;
    user-select: none;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: var(--text-muted);
  }
  .faq[open] .faq-toggle { background: var(--accent); color: white; transform: rotate(45deg); }
  .faq-body {
    padding: 0 22px 22px;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.7;
  }
  .faq-body > p { margin: 0 0 14px; }
  .faq-body > p:last-child { margin-bottom: 0; }
  .faq-body ul { margin: 8px 0 14px; padding-left: 0; list-style: none; }
  .faq-body ul li { position: relative; padding: 6px 0 6px 24px; }
  .faq-body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }

  /* Format tier cards */
  .tier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 8px 0 4px;
  }
  .tier-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: all 0.18s ease;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .tier-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .tier-card.featured { background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%); border-color: #CBD5E1; }
  .tier-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
  .tier-ic {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .tier-card.premium .tier-ic { background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%); color: white; }
  .tier-card.basic .tier-ic { background: var(--accent-soft); color: var(--accent); }
  .tier-card.extra .tier-ic { background: var(--surface-2); color: var(--text-muted); }
  .tier-tag {
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  .tier-tag.basic    { background: var(--accent-soft); color: var(--accent); }
  .tier-tag.standard { background: var(--accent-soft); color: var(--accent); }
  .tier-tag.premium  { background: linear-gradient(135deg, #F59E0B, #F97316); color: white; }
  .tier-tag.extra    { background: var(--surface-2); color: var(--text-muted); }
  .tier-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.2px; }
  .tier-tagline { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
  .tier-features { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
  .tier-features li { position: relative; padding: 5px 0 5px 24px; color: var(--text); }
  .tier-features li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
  }
  .tier-card.premium .tier-features li::before { border-color: var(--warning); }
  .tier-card.extra .tier-features li::before { border-color: var(--text-muted); }
  .tier-features-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 2px;
  }
  .tier-card.span2 { grid-column: span 2; }

  /* Promo grid */
  .promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 4px; }
  .promo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.18s ease;
    position: relative;
    overflow: hidden;
  }
  .promo-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--promo-color, var(--accent));
    opacity: 0.85;
  }
  .promo-card:hover { border-color: var(--promo-color, var(--accent)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .promo-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
  .promo-ic {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--promo-bg, var(--accent-soft));
    color: var(--promo-color, var(--accent));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .promo-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; margin-bottom: 2px; }
  .promo-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
  .promo-tag {
    font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 6px;
    background: var(--surface-2); color: var(--text-muted);
  }
  .promo-tag.all { background: var(--accent-soft); color: var(--accent); }
  .promo-tag.new { background: var(--accent-soft); color: var(--accent); }
  .promo-desc { color: var(--text-muted); font-size: 13px; line-height: 1.55; margin-top: 8px; }
  .promo-card.span2 { grid-column: span 2; }
  .promo-sub { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 13px; }
  .promo-sub-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-muted); font-weight: 600; margin-bottom: 6px;
  }
  .promo-sub ul { margin: 0; padding-left: 0; list-style: none; }
  .promo-sub li { position: relative; padding: 3px 0 3px 16px; }
  .promo-sub li::before { content: "›"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

  /* Checklist */
  .checklist { display: grid; gap: 8px; margin: 8px 0 4px; }
  .check-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    align-items: flex-start;
    transition: all 0.15s ease;
  }
  .check-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
  .check-mark {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .check-text { font-size: 14px; line-height: 1.55; padding-top: 1px; }
  .check-text strong { font-weight: 600; }
  .check-text .sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

  /* AI section */
  .ai-hero {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
    color: white;
    padding: 26px 28px;
    border-radius: 16px;
    margin: 4px 0 16px;
    position: relative;
    overflow: hidden;
  }
  .ai-hero::after {
    content: "";
    position: absolute;
    right: -40px; top: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
    border-radius: 50%;
    pointer-events: none;
  }
  .ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
  }
  .ai-hero h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.3px; }
  .ai-hero p { margin: 0 0 8px; opacity: 0.94; line-height: 1.65; font-size: 14.5px; }
  .ai-hero p:last-child { margin-bottom: 0; }
  .ai-flow {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px 22px;
    margin: 14px 0;
  }
  .ai-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
    align-items: flex-start;
  }
  .ai-step:last-child { border-bottom: none; }
  .ai-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16A34A, #15803D);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .ai-step-body { font-size: 14px; line-height: 1.6; }
  .ai-step-body strong { font-weight: 600; color: var(--text); }
  .ai-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
  .ai-type {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.18s ease;
  }
  .ai-type:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .ai-type-ic {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    color: white;
  }
  .ai-type.return     .ai-type-ic { background: linear-gradient(135deg, #16A34A, #15803D); }
  .ai-type.retention  .ai-type-ic { background: linear-gradient(135deg, #14B8A6, #0D9488); }
  .ai-type.activity   .ai-type-ic { background: linear-gradient(135deg, #F59E0B, #FB923C); }
  .ai-type-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
  .ai-type-desc { color: var(--text-muted); font-size: 13px; line-height: 1.55; }

  /* Pay table */
  .pay-table { background: var(--surface-2); border-radius: 10px; padding: 14px; margin: 10px 0; }
  .pay-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }
  .pay-row:last-child { border-bottom: none; }
  .pay-row .label { color: var(--text-muted); }
  .pay-row .val { font-weight: 600; }

  /* Steps */
  .steps { counter-reset: step; margin: 14px 0; }
  .step {
    position: relative;
    padding: 14px 18px 14px 50px;
    background: var(--surface-2);
    border-radius: 10px;
    margin-bottom: 8px;
    counter-increment: step;
    font-size: 14px;
    line-height: 1.6;
  }
  .step::before {
    content: counter(step);
    position: absolute;
    left: 14px; top: 14px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
  }
  .step-note { margin-top: 6px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
  .step ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
  .step ul li { position: relative; padding: 4px 0 4px 18px; font-size: 13.5px; }
  .step ul li::before {
    content: "";
    position: absolute;
    left: 4px; top: 12px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }
  .step a { color: var(--accent); text-decoration: none; font-weight: 600; }
  .step a:hover { text-decoration: underline; }
  .step > strong { display: block; margin-bottom: 4px; font-weight: 700; }
  .card-block-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: var(--text); }

  .tariff-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--surface-2);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 14px 0;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.55;
  }
  .tariff-note svg { flex-shrink: 0; color: var(--text-muted); margin-top: 3px; }
  .tariff-note strong { color: var(--text); font-weight: 600; }
  .tariff-note .tariff-sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

  /* Callouts */
  .callout {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 14px 16px;
    border-radius: 8px;
    margin: 14px 0;
    font-size: 14px;
  }
  .callout strong { color: var(--accent); }
  .callout.warning { background: rgba(245, 158, 11, 0.08); border-left-color: var(--warning); }
  .callout.warning strong { color: var(--warning); }
  .callout.success { background: var(--accent-soft); border-left-color: var(--success); }
  .callout.success strong { color: var(--success); }

  /* Info block */
  .info-block { background: var(--surface-2); border-radius: 10px; padding: 14px 16px; margin: 10px 0; font-size: 14px; }
  .info-block .ib-title { font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
  .kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; margin-top: 6px; }
  .kv .k { color: var(--text-muted); }
  .kv .v { color: var(--text); }

  /* Feature list */
  .feature-list { margin: 8px 0 6px; border-top: 1px solid var(--border); }
  .feature-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
  }
  .feature-item:last-child { border-bottom: none; }
  .feature-marker {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--cat-bg, var(--accent-soft));
    color: var(--cat-color, var(--accent));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .feature-body { min-width: 0; }
  .feature-name {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text);
    margin-bottom: 3px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  }
  .feature-name .paid-mark {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    padding: 2px 6px; border-radius: 5px;
  }
  .feature-desc { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }

  /* Кликабельные feature-item */
  a.feature-item {
    text-decoration: none;
    color: inherit;
    grid-template-columns: 28px 1fr auto;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 0 -10px;
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 8px;
  }
  a.feature-item:hover { background: var(--surface-2); border-bottom-color: transparent; }
  a.feature-item:hover .feature-link { color: var(--cat-color, var(--accent)); transform: translateX(2px); }
  .feature-link { color: var(--text-muted); align-self: center; transition: all 0.15s; flex-shrink: 0; padding-left: 8px; }

  /* Telegram CTA */
  .tg-cta {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg, #229ED9 0%, #2eb6ee 100%);
    color: white;
    padding: 18px 22px;
    border-radius: 12px;
    margin-top: 14px;
  }
  .tg-cta .tg-ic {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .tg-cta .tg-title { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
  .tg-cta .tg-text { font-size: 13px; opacity: 0.95; line-height: 1.5; }
  .tg-cta .tg-text code {
    background: rgba(0,0,0,0.18);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12.5px;
    font-family: "SF Mono", Menlo, monospace;
  }
  .tg-cta a.tg-btn {
    background: white;
    color: #229ED9;
    padding: 9px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: transform 0.15s;
  }
  .tg-cta a.tg-btn:hover { transform: translateY(-1px); }

  .cat-acquire  { --cat-color:#16A34A; --cat-bg:var(--accent-soft); }
  .cat-comm     { --cat-color:#14B8A6; --cat-bg:rgba(20,184,166,0.1); }
  .cat-analytics{ --cat-color:#16A34A; --cat-bg:var(--accent-soft); }
  .cat-reports  { --cat-color:#3B82F6; --cat-bg:rgba(59,130,246,0.1); }

  .faq-cat-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--cat-bg, var(--accent-soft));
    color: var(--cat-color, var(--accent));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .faq summary .summary-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
  .summary-text { display: flex; flex-direction: column; min-width: 0; }
  .summary-text .summary-sub { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 1px; }

  /* Card block */
  .card-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 4px;
    box-shadow: var(--shadow-sm);
  }
  .card-block p { margin: 0 0 14px; line-height: 1.65; }
  .card-block p:last-child { margin-bottom: 0; }
  .card-block-ic {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--cat-bg, var(--accent-soft));
    color: var(--cat-color, var(--accent));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
  }
  .content-block > p { margin: 0 0 14px; line-height: 1.65; }
  .content-block > ul { margin: 8px 0 14px; padding-left: 0; list-style: none; }
  .content-block > ul li { position: relative; padding: 6px 0 6px 24px; }
  .content-block > ul li::before {
    content: "";
    position: absolute;
    left: 4px; top: 14px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }

  /* FAQ section title */
  .faq-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 32px 0 12px;
  }
  .faq-section-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-bright);
  }

  /* Subheading inside content */
  .content-h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 22px 0 10px;
    letter-spacing: -0.2px;
  }

  /* Helpful + Support */
  .helpful {
    margin-top: 18px;
    padding: 14px 18px;
    background: var(--surface-2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: var(--text-muted);
  }
  .helpful-btns { display: flex; gap: 8px; }
  .helpful-btns button {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    transition: all 0.15s;
  }
  .helpful-btns button:hover { border-color: var(--accent); color: var(--accent); }

  .support-card {
    margin-top: 32px;
    background: linear-gradient(135deg, #15803D 0%, #16A34A 100%);
    color: white;
    padding: 22px 26px;
    border-radius: var(--radius);
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
  }
  .support-card h3 { margin: 0 0 4px; font-size: 17px; }
  .support-card p { margin: 0; opacity: 0.92; font-size: 14px; }
  .support-actions { display: flex; gap: 10px; flex-shrink: 0; }
  .support-btn {
    background: white;
    color: var(--accent);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    font-size: 13.5px;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
  }
  .support-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
  .support-btn svg { flex-shrink: 0; }
  .support-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .support-btn.tg { color: #229ED9; }
  .support-btn.max { color: #1F1F1F; }

  /* Hide helpful + support on home */
  body[data-active-page="page-home"] .helpful,
  body[data-active-page="page-home"] .support-card { display: none; }

  /* Mobile menu button + overlay */
  .mobile-menu-btn {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 101;
    background: var(--surface);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 11px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--text);
    transition: opacity 0.2s ease, transform 0.15s;
  }
  .mobile-menu-btn:active { transform: scale(0.95); }
  .mobile-menu-btn svg { width: 22px; height: 22px; }
  /* Fix: hide the hamburger while the menu is open so it never overlaps the sliding sidebar */
  body.menu-open .mobile-menu-btn {
    opacity: 0;
    pointer-events: none;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99;
    animation: fadeOverlay 0.2s ease;
  }
  @keyframes fadeOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .sidebar-overlay.open { display: block; }

  .sidebar-close {
    display: none;
    background: var(--surface-2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text);
    margin-left: auto;
  }

  /* Responsive */
  @media (max-width: 900px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar {
      position: fixed;
      top: 0; left: 0;
      width: 290px;
      max-width: 85vw;
      height: 100vh;
      z-index: 100;
      transform: translateX(-100%);
      transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 0 40px rgba(15, 23, 42, 0.18);
    }
    .sidebar.open { transform: translateX(0); }
    .mobile-menu-btn { display: flex; }
    .sidebar-close { display: flex; }
    .sidebar .logo { display: flex; align-items: center; }
    .main { padding: 72px 18px 60px; }
    .section { scroll-margin-top: 80px; }
    .tier-grid { grid-template-columns: 1fr; }
    .promo-grid { grid-template-columns: 1fr; }
    .tier-card.span2, .promo-card.span2 { grid-column: auto; }
    .ai-types { grid-template-columns: 1fr; }
    .pay-row { grid-template-columns: 1fr; gap: 2px; }
    .support-card { flex-direction: column; align-items: flex-start; }
    .support-actions { width: 100%; flex-direction: column; }
    .support-btn { justify-content: center; width: 100%; }
    .kv { grid-template-columns: 1fr; }
    .feature-item { padding: 12px 4px; }
    a.feature-item { grid-template-columns: 28px 1fr auto; gap: 10px; }
    .faq summary { padding: 14px 16px; font-size: 14.5px; }
    .faq-body { padding: 0 16px 18px; font-size: 14px; }
    .step { padding: 14px 14px 14px 46px; font-size: 13.5px; }
    .step::before { left: 10px; }
    .page-title { font-size: 24px; }
    .breadcrumbs { font-size: 12.5px; }
    .info-block, .callout, .tariff-note { padding: 12px 14px; font-size: 13.5px; }
    .tg-cta { grid-template-columns: 1fr; text-align: center; }
    .tg-cta .tg-ic { margin: 0 auto; }
    .tg-cta a.tg-btn { width: 100%; text-align: center; justify-self: center; }
  }
  @media (max-width: 700px) {
    .hero-faq-tiles { grid-template-columns: 1fr; }
    .home-hero .page-title { font-size: 26px; }
    .hero-search input { font-size: 15px; padding: 16px 50px 16px 50px; border-radius: 12px; }
    .hero-search > svg { left: 18px; width: 18px; height: 18px; }
    .hero-search-clear { right: 14px; }
    .hero-faq-tile { padding: 14px 16px; }
    .search-summary { align-items: flex-start; flex-direction: column; }
  }
