/* ============================================================================
   AI HERO B2B — corporate landing theme.
   Per operator decision (Вариант А) this REUSES the AI HERO "тёплый рост /
   энергия" tokens verbatim (same `.theme-aih` scope + signatures as
   landings/ai-hero/theme.css). Only a handful of B2B-only components are
   appended below (.trust-logos, .chat-mock, .roi, .card.case, .changelog),
   all built on the existing token set — no new colors.
   Fonts: self-host as woff2 before production deploy (see landings/README.md).
   ========================================================================== */

.theme-aih {
  /* Fonts */
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-eyebrow: "Onest", sans-serif;
  --eyebrow-spacing: 0.10em;
  --eyebrow-transform: uppercase;

  /* Surfaces */
  --bg: #FFFDFA;
  --bg-alt: #FFF4EC;
  --card: #FFFFFF;
  --line: rgba(32, 27, 23, 0.10);
  --line-strong: rgba(32, 27, 23, 0.18);
  --strip-bg: #FFF0E4;

  /* Ink */
  --ink: #201B17;
  --ink-strong: #17110D;
  --muted: #6E655C;

  /* Accents — coral energy + amber value */
  --accent: #FF5A34;
  --accent-2: #FFB020;
  --accent-ink: #DA3F14;
  --accent-tint: #FFE7DC;
  --on-accent: #FFFFFF;
  --accent-shadow: 0 10px 24px rgba(255, 90, 52, 0.26);
  --accent-shadow-hover: 0 16px 34px rgba(255, 90, 52, 0.38);
  --flexible-bg: #FFF8E7;
  --flexible-line: rgba(218, 63, 20, 0.42);
  --flexible-icon-bg: #FFFFFF;
  --lesson-card-bg: linear-gradient(160deg, #FFFFFF 0%, #FFF9F3 100%);
  --lesson-card-line: rgba(255, 90, 52, 0.18);
  --lesson-card-shadow: 0 16px 34px rgba(91, 48, 24, 0.10);
  --lesson-icon-bg: #FFE7DC;
  --schedule-bg: #F1F7F7;
  --schedule-accent: #287B78;
  --schedule-icon-bg: #DCEFED;
  --schedule-line: rgba(40, 123, 120, 0.20);
  --schedule-line-strong: rgba(40, 123, 120, 0.48);
  --schedule-on-accent: #FFFFFF;
  --charity-bg: #F1F7F0;
  --charity-ink: #24613D;
  --charity-line: rgba(36, 97, 61, 0.20);
  --charity-chart-grid: rgba(36, 97, 61, 0.10);
  --charity-chart-fill: rgba(36, 97, 61, 0.09);
  --charity-pulse: rgba(36, 97, 61, 0.12);
  --charity-tooltip-bg: #FFFFFF;
  /* Fiery highlight for key theses — orange → amber, never red */
  --hot-grad: linear-gradient(90deg, #FF6A2C, #FFAE12);
  --focus: #DA3F14;
  --yes: #DA3F14;

  /* Price card */
  --price-bg: linear-gradient(150deg, #FFF3EC 0%, #FFFFFF 60%);
  --price-line: rgba(255, 90, 52, 0.28);
  --price-shadow: 0 24px 60px rgba(255, 90, 52, 0.14);

  /* Transformation (before/after) — reused shared component */
  --transformation-bg: #F2F6F9;
  --transformation-before: #587089;
  --transformation-after: #FF5A34;
}

/* --- Signature: warm hero glow ------------------------------------------ */
.theme-aih .hero::before {
  content: ""; position: absolute; inset: -30% -20% auto -20%; height: 120%;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(255, 176, 32, 0.30), transparent 60%),
    radial-gradient(55% 50% at 12% 6%, rgba(255, 90, 52, 0.20), transparent 62%);
  pointer-events: none; z-index: 0;
}
.theme-aih .hero > .wrap { position: relative; z-index: 1; }
.theme-aih .hero-illustrated::before { display: none; }
.theme-aih .hero-illustrated > .wrap { z-index: 2; }
.theme-aih .hero .eyebrow { flex-wrap: wrap; line-height: 1.5; }

/* --- Signature: the "ИИ" wordplay ---------------------------------------- */
.theme-aih .ii {
  font-weight: 800;
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 1px;
}

/* --- Value-marker feature cards ------------------------------------------ */
.theme-aih .card { background: linear-gradient(180deg, #FFFFFF, #FFFBF7); }
.theme-aih .card-mark { filter: saturate(1.1); }

/* Pull-quote gets an amber underline flourish */
.theme-aih .pull { border-left-color: var(--accent-2); }

/* ==========================================================================
   B2B-only components (corporate landing). All on existing tokens.
   ========================================================================== */

/* --- Anonymized trust strip (sectors instead of client logos) ----------- */
.theme-aih .trust-cap {
  margin-top: 30px; font-family: var(--font-eyebrow); font-size: 12px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.theme-aih .trust-logos {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; list-style: none;
}
.theme-aih .trust-logos li {
  font-family: var(--font-eyebrow); font-size: 13px; font-weight: 700;
  letter-spacing: 0.01em; color: var(--ink);
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
}

/* --- Formula line (Решение) --------------------------------------------- */
.theme-aih .formula {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--accent-tint); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  line-height: 1.35; letter-spacing: 0; color: var(--ink-strong);
}

/* --- Pull-quote attribution --------------------------------------------- */
.theme-aih .pull-by { margin-top: -18px; margin-bottom: 28px; font-size: 14px; color: var(--muted); }

/* --- Signature: clean Telegram chat mock (Обычный день) ----------------- */
.theme-aih .chat-mock {
  margin-top: 28px; max-width: 480px; padding: 16px 16px 14px; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--line); box-shadow: var(--lesson-card-shadow, none);
}
.theme-aih .chat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.theme-aih .chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-tint); font-size: 20px; line-height: 1; }
.theme-aih .chat-title { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.2; }
.theme-aih .chat-title small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); }
.theme-aih .chat-log { display: grid; gap: 9px; padding-top: 14px; }
.theme-aih .msg { max-width: 88%; padding: 10px 13px; border-radius: 15px; font-size: 14.5px; line-height: 1.4; background: var(--card); border: 1px solid var(--line); }
.theme-aih .msg .who { display: block; font-weight: 700; font-size: 12px; color: var(--accent-ink); margin-bottom: 2px; }
.theme-aih .msg.bot { background: var(--accent-tint); border-color: transparent; border-bottom-left-radius: 5px; }
.theme-aih .msg.them { border-bottom-left-radius: 5px; }
.theme-aih .msg.me { margin-left: auto; border-bottom-right-radius: 5px; }
.theme-aih .chat-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
/* Screenshot thumbnail attached to a #отчёт message (faux preview; real screens → GRAPHICAL_TASKS.md).
   Swap for <img src="images/chat/<name>.webp"> when supplied. */
.theme-aih .msg-shot {
  margin-top: 9px; width: 156px; max-width: 100%; aspect-ratio: 3 / 2;
  display: flex; flex-direction: column; gap: 5px; padding: 9px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 5px 14px rgba(20, 14, 8, .12);
}
.theme-aih .msg-shot img { width: 100%; height: 100%; border-radius: 6px; object-fit: cover; }
.theme-aih .msg-shot i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.theme-aih .msg-shot > i:first-child { height: 8px; width: 66%; background: var(--accent); border-radius: 4px; margin-bottom: 2px; }
.theme-aih .msg-shot .row { display: flex; gap: 5px; }
.theme-aih .msg-shot .row i { flex: 1; height: 11px; }

/* --- ROI calculator (signature interactive) ----------------------------- */
.theme-aih .roi {
  margin-top: 28px; padding: clamp(22px, 3.4vw, 34px); border-radius: var(--radius);
  background: var(--price-bg, var(--card)); border: 1px solid var(--price-line, var(--line-strong));
  box-shadow: var(--price-shadow, none);
}
.theme-aih .roi-controls { display: grid; gap: 24px; grid-template-columns: 1fr; }
.theme-aih .roi-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.theme-aih .roi-field label b { font-family: var(--font-display); font-size: 19px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.theme-aih .roi-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); outline: none; }
.theme-aih .roi-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: var(--accent-shadow); cursor: pointer; }
.theme-aih .roi-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: var(--accent-shadow); cursor: pointer; }
.theme-aih .roi-range:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 4px; }
.theme-aih .roi-out { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .theme-aih .roi-out { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .theme-aih .roi-metric + .roi-metric { border-left: 1px solid var(--line); padding-left: 16px; }
}
.theme-aih .roi-metric { min-width: 0; }
.theme-aih .roi-metric .v { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: 0; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.theme-aih .roi-metric .k { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.theme-aih .roi-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 559px) {
  .theme-aih .roi-out { grid-template-columns: 1fr; gap: 14px; }
  .theme-aih .roi-metric .v { font-size: 21px; }
}

/* --- Case cards (anonymized) — extends the shared .card ------------------ */
.theme-aih .card.case { display: flex; flex-direction: column; gap: 9px; }
.theme-aih .case-tag { font-family: var(--font-eyebrow); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); }
.theme-aih .case-meta { color: var(--ink); font-size: 15px; }
.theme-aih .case-meta strong { color: var(--ink-strong); }
.theme-aih .case-task { color: var(--muted); font-size: 15px; }
.theme-aih .case-quote { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.35; color: var(--ink-strong); padding-left: 14px; border-left: 3px solid var(--accent-2); margin-top: 4px; }
.theme-aih .case-by { font-size: 13px; color: var(--muted); }

/* --- Changelog feed (Что улучшили по фидбеку) --------------------------- */
.theme-aih .changelog { margin-top: 26px; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.theme-aih .changelog li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.theme-aih .changelog .when { font-family: var(--font-eyebrow); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-ink); }
.theme-aih .changelog .what strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 2px; color: var(--ink-strong); }
.theme-aih .changelog .what span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 559px) { .theme-aih .changelog li { grid-template-columns: 1fr; gap: 4px; } }

/* --- Discovery-call "what happens" list (final CTA) --------------------- */
.theme-aih .call-list { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.theme-aih .call-list li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15.5px; }
.theme-aih .call-list li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* ==========================================================================
   Iteration 2 components
   ========================================================================== */

/* --- Tools marquee (full-bleed infinite ticker) ------------------------- */
.theme-aih .tools-marquee {
  position: relative; margin-top: 30px;
  width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.theme-aih .marquee-track { display: flex; width: max-content; animation: marquee-scroll 64s linear infinite; }
.theme-aih .tools-marquee:hover .marquee-track { animation-play-state: paused; }
.theme-aih .marquee-set { display: flex; gap: 12px; padding-right: 12px; }
.theme-aih .tool-pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-family: var(--font-eyebrow); font-weight: 700;
  font-size: 15px; color: var(--muted); white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.theme-aih .tool-pill:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--accent-shadow); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .theme-aih .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 10px; padding: 0 var(--pad); }
  .theme-aih .marquee-set { flex-wrap: wrap; justify-content: center; }
  .theme-aih .marquee-dup { display: none; }
  .theme-aih .tools-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* --- Real-application slider (scroll-snap, no JS) ------------------------ */
.theme-aih .app-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
@media (min-width: 620px) { .theme-aih .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .theme-aih .app-grid { grid-template-columns: repeat(3, 1fr); } }
.theme-aih .app-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.theme-aih .app-head { display: flex; align-items: center; gap: 12px; }
.theme-aih .app-avatar {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-ink); font-family: var(--font-display);
  font-weight: 800; font-size: 15px;
}
.theme-aih .app-role { display: grid; font-weight: 700; font-size: 15px; line-height: 1.2; }
.theme-aih .app-role small { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.theme-aih .app-task { color: var(--ink); font-size: 15px; }
.theme-aih .app-result { color: var(--muted); font-size: 14.5px; margin-top: auto; }
.theme-aih .app-skill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 10px;
  padding: 5px 12px; border-radius: 999px; background: transparent; border: 1px solid var(--accent);
  color: var(--accent-ink); font-family: var(--font-eyebrow); font-weight: 700; font-size: 12px;
}
.theme-aih .app-hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* --- Nominations (award badges) ----------------------------------------- */
.theme-aih .nominations { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: 1fr; }
.theme-aih .nom-badge {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--accent-tint); border: 1px solid transparent;
}
.theme-aih .nom-medal { font-size: 32px; line-height: 1; flex: none; }
.theme-aih .nom-badge strong { margin-bottom: 4px; }
.theme-aih .nom-badge strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink-strong); }
.theme-aih .nom-badge span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
@media (min-width: 760px) { .theme-aih .nominations { grid-template-columns: repeat(3, 1fr); } }

/* --- Sprint timeline (onboarding → demo-day) ---------------------------- */
.theme-aih .timeline { list-style: none; margin-top: 28px; display: grid; gap: 6px; }
.theme-aih .tl-item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 12px 0; }
.theme-aih .tl-item::before { content: ""; position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: var(--line-strong); z-index: 0; }
.theme-aih .tl-item:first-child::before { top: 34px; }
.theme-aih .tl-item:last-child::before { bottom: auto; height: 34px; }
.theme-aih .tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); font-size: 25px; line-height: 1; }
.theme-aih .tl-final .tl-dot { background: var(--accent-tint); border-color: var(--accent-ink); }
.theme-aih .tl-body { padding-top: 4px; }
.theme-aih .tl-when { font-family: var(--font-eyebrow); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-ink); }
.theme-aih .tl-body h3 { margin: 4px 0 6px; }
.theme-aih .tl-body p { color: var(--muted); font-size: 15px; }

/* --- Tool chips (static, e.g. under the before/after visual) ------------- */
.theme-aih .tool-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.theme-aih .tool-chips .tool-pill { cursor: default; }

/* ==========================================================================
   Iteration 4 components
   ========================================================================== */

/* --- App-slider avatar: monogram now, Ghibli <img> when supplied --------- */
.theme-aih .app-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* --- "Программу подбираем по критериям" — 3 plain columns, no cards ------ */
.theme-aih .criteria-cols { display: grid; gap: 22px 34px; margin-top: 24px; grid-template-columns: 1fr; }
.theme-aih .criteria-cols > div { padding-top: 14px; border-top: 2px solid var(--accent); }
.theme-aih .criteria-cols h4 { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--ink-strong); }
.theme-aih .criteria-cols p { color: var(--muted); font-size: 14.5px; }
@media (min-width: 760px) { .theme-aih .criteria-cols { grid-template-columns: repeat(3, 1fr); } }

/* --- Analytics report mock (beautiful, real demo-report numbers) --------- */
.theme-aih .report-mock {
  margin-top: 28px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line-strong); box-shadow: var(--price-shadow, 0 20px 50px rgba(20, 14, 8, .10)); overflow: hidden;
}
.theme-aih .rm-head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.theme-aih .rm-head-title { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; color: var(--ink-strong); }
.theme-aih .rm-head-tag { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.theme-aih .rm-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: clamp(16px, 3vw, 22px) clamp(18px, 3vw, 26px) 0; }
@media (min-width: 620px) { .theme-aih .rm-kpis { grid-template-columns: repeat(4, 1fr); } }
.theme-aih .rm-kpi { text-align: center; padding: 14px 8px; border-radius: 12px; background: var(--accent-tint); }
.theme-aih .rm-kpi b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.theme-aih .rm-kpi span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.theme-aih .rm-body { padding: clamp(18px, 3vw, 26px); display: grid; gap: 26px clamp(24px, 4vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 820px) { .theme-aih .rm-body { grid-template-columns: 1fr 1fr; } .theme-aih .rm-body > .rm-panel:first-child { border-right: 1px solid var(--line); padding-right: clamp(24px, 4vw, 40px); } }
.theme-aih .rm-panel-title { font-family: var(--font-eyebrow); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.theme-aih .rm-panel + .rm-panel { margin-top: 22px; }
.theme-aih .rm-bars { display: grid; gap: 9px; }
.theme-aih .rm-bar { display: grid; grid-template-columns: 84px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; }
.theme-aih .rm-bar > span { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-aih .rm-track { height: 14px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.theme-aih .rm-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.theme-aih .rm-bar > em { font-style: normal; text-align: right; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.theme-aih .rm-baro-legend { margin-top: 10px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.theme-aih .rm-rank-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px); border-top: 1px solid var(--line); }
.theme-aih .rm-rank-label { font-family: var(--font-eyebrow); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 4px; }
.theme-aih .rm-rank-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: var(--accent-tint); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.theme-aih .rm-rank-chip b { font-size: 14px; }
.theme-aih .rm-rank-chip em { font-style: normal; font-family: var(--font-display); font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.theme-aih .rm-cap { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* --- Real tool logos in pills (grayscale → brand color on hover) -------- */
.theme-aih .tool-logo { width: 19px; height: 19px; flex: none; object-fit: contain; filter: grayscale(1); opacity: .58; transition: filter .2s ease, opacity .2s ease; }
.theme-aih .tool-pill:hover .tool-logo { filter: none; opacity: 1; }

/* --- "Обычный день" — chat mock + weekly rhythm in two columns ---------- */
.theme-aih .day-cols { display: grid; gap: clamp(20px, 4vw, 40px); align-items: start; grid-template-columns: 1fr; margin-top: 24px; }
.theme-aih .day-cols .chat-mock { margin-top: 0; max-width: none; }
.theme-aih .day-chat { box-shadow: 0 30px 60px rgba(20, 14, 8, .16); }
.theme-aih .day-schedule { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); box-shadow: 0 10px 26px rgba(91, 48, 24, .06); }
.theme-aih .day-schedule-title { margin: 0 0 4px; font-size: 16px; }
.theme-aih .day-bullets { list-style: none; display: grid; gap: 12px; margin-top: 12px; }
.theme-aih .day-bullets li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; color: var(--ink); line-height: 1.4; }
.theme-aih .day-pair { flex: none; display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: var(--schedule-icon-bg, var(--accent-tint)); color: var(--schedule-accent, var(--accent-ink)); font-family: var(--font-eyebrow); font-weight: 800; font-size: 13px; }
.theme-aih .day-schedule-note { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (min-width: 820px) { .theme-aih .day-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* --- Mechanic penalty cards: keep the long word «Благотворительность» inside --- */
.theme-aih .pen-title { font-size: 17px; overflow-wrap: anywhere; }

/* --- Hero: scrolling sign + name lockups --------------------------------- */
.theme-aih .hero-logos {
  position: relative; margin-top: 32px; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.theme-aih .hero-logos-track { display: flex; width: max-content; animation: marquee-scroll 52s linear infinite; }
.theme-aih .hero-logos:hover .hero-logos-track { animation-play-state: paused; }
.theme-aih .hero-logos-set { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.theme-aih .hero-tool {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  color: var(--muted); font-family: var(--font-eyebrow); font-size: 14px; font-weight: 700; white-space: nowrap;
  opacity: .68; transition: color .2s ease, opacity .2s ease;
}
.theme-aih .hero-tool-logo {
  width: 26px; height: 26px; flex: none; object-fit: contain;
  filter: grayscale(1); transition: filter .2s ease;
}
.theme-aih .hero-tool:hover { color: var(--accent-ink); opacity: 1; }
.theme-aih .hero-tool:hover .hero-tool-logo { filter: none; }
@media (prefers-reduced-motion: reduce) {
  .theme-aih .hero-logos-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--pad); }
  .theme-aih .hero-logos-set { flex-wrap: wrap; justify-content: center; row-gap: 18px; }
  .theme-aih .hero-logos-set.hero-logos-dup { display: none; }
  .theme-aih .hero-logos { -webkit-mask-image: none; mask-image: none; }
}

/* --- Testimonial block (internal-tool adoption quote) ------------------- */
.theme-aih .testimonial { margin-top: 28px; padding: clamp(22px, 3.4vw, 32px); border-radius: var(--radius); background: var(--accent-tint); }
.theme-aih .testi-lead { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.3; color: var(--ink-strong); margin-bottom: 16px; }
@media (max-width: 759px) {
  .theme-aih .formula { font-size: 16px; }
  .theme-aih .testi-lead { font-size: 17px; }
}
@media (max-width: 619px) { .theme-aih .rm-kpi b { font-size: 22px; } }
.theme-aih .testi-quote { font-size: 16px; line-height: 1.55; color: var(--ink); padding-left: 16px; border-left: 3px solid var(--accent); }
.theme-aih .testi-by { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* --- Report mock: emotional barometer — distribution + weekly dynamics --- */
.theme-aih .rm-baro-grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.theme-aih .rm-baro-x { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 5px; }
.theme-aih .rm-baro-sub { font-size: 11.5px; font-weight: 700; color: var(--ink); margin: 15px 0 8px; }
.theme-aih .rm-baro-sub:first-of-type { margin-top: 2px; }
.theme-aih .rm-baro-dist { display: flex; height: 22px; border-radius: 8px; overflow: hidden; }
.theme-aih .rm-baro-dist span { display: block; height: 100%; }
.theme-aih .rm-baro-keys { list-style: none; display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.theme-aih .rm-baro-keys li { display: inline-flex; align-items: center; gap: 5px; }
.theme-aih .rm-baro-keys i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.theme-aih .rm-baro-weeks { position: relative; }
.theme-aih .rm-baro-weeks svg { display: block; width: 100%; height: 58px; overflow: visible; }
.theme-aih .rm-baro-trend { fill: none; stroke: #5c6bc0; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }

/* --- Compact final CTA (bottom nudge, #pay anchor) ---------------------- */
.theme-aih .final-cta { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(20, 14, 8, .10); }
.theme-aih .final-cta .eyebrow { justify-content: center; }
.theme-aih .final-cta h2 { margin: 6px 0 12px; }
.theme-aih .final-cta p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.theme-aih .final-cta .hero-cta { justify-content: center; }

/* --- Price: bright bulk-discount badge ---------------------------------- */
.theme-aih .price-badge { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 20px; padding: 8px 14px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-ink); border: 1px solid var(--price-line, rgba(255, 90, 52, .28)); font-family: var(--font-eyebrow); font-weight: 700; font-size: 13.5px; box-shadow: none; }
.theme-aih .price-per { font-family: var(--font-body); font-size: 0.42em; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* ==========================================================================
   Iteration 7 fixes
   ========================================================================== */

/* --- Charity headline + copy: stack vertically (kills the 2-col overlap) -- */
.theme-aih .charity-impact-copy { grid-template-columns: 1fr; gap: 8px; align-items: start; }
.theme-aih .charity-impact-copy h2 { max-width: 24ch; }
.theme-aih .charity-impact-copy > p:last-child { max-width: 64ch; margin-top: 6px; }

/* --- Verified case artefacts: deterministic CSS mocks, no broken screenshots */
.theme-aih .app-shot { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--accent-tint), #FFF6EF); }
.theme-aih .app-shot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 22px; background: var(--card); border-bottom: 1px solid var(--line); }
.theme-aih .app-shot::after { content: ""; position: absolute; top: 8px; left: 10px; width: 6px; height: 6px; border-radius: 50%; background: #E45B45; box-shadow: 10px 0 #E6B74B, 20px 0 #58A66A; }
.theme-aih .app-shot > span { position: absolute; z-index: 1; }
.theme-aih .app-mock-title { top: 34px; left: 16px; right: 16px; overflow: hidden; color: var(--ink-strong); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.theme-aih .app-mock-query, .theme-aih .app-mock-answer, .theme-aih .app-mock-score, .theme-aih .app-mock-time {
  left: 16px; right: 16px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--ink); background: rgba(255, 255, 255, .88); font-size: 10px; line-height: 1.2;
}
.theme-aih .app-mock-query { top: 58px; }
.theme-aih .app-mock-answer { right: 16px; bottom: 14px; color: var(--accent-ink); font-weight: 700; }
.theme-aih .app-mock-score, .theme-aih .app-mock-time { top: 62px; width: fit-content; right: auto; }
.theme-aih .app-mock-bubble { max-width: 74%; padding: 7px 10px; border-radius: 8px; font-size: 10px; line-height: 1.2; }
.theme-aih .app-mock-bubble.is-left { top: 60px; left: 16px; color: var(--ink); background: #FFFFFF; border: 1px solid var(--line); }
.theme-aih .app-mock-bubble.is-right { right: 16px; bottom: 18px; color: #FFFFFF; background: var(--accent-ink); }
.theme-aih .app-mock-wave { top: 67px; left: 16px; right: 16px; height: 24px; background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 8px); opacity: .7; }
.theme-aih .app-mock-bars { display: flex; align-items: flex-end; gap: 7px; top: 60px; left: 18px; height: 40px; }
.theme-aih .app-mock-bars i { width: 14px; height: 55%; background: var(--accent); }
.theme-aih .app-mock-bars i:nth-child(2) { height: 100%; background: var(--accent-ink); }
.theme-aih .app-mock-bars i:nth-child(3) { height: 76%; background: #58A66A; }
