/* ─────────────── Hi-fi design tokens ─────────────── */
:root {
  --hf-bg: #fafafa;
  --hf-surface: #ffffff;
  --hf-surface-2: #f4f4f3;
  --hf-surface-3: #ececea;

  --hf-ink: #0f1419;
  --hf-ink-2: #4a5560;
  --hf-ink-3: #8590a2;
  --hf-ink-4: #c8cdd4;

  --hf-line: rgba(15, 20, 25, 0.07);
  --hf-line-2: rgba(15, 20, 25, 0.14);

  --hf-tg: #2aabee;
  --hf-tg-deep: #1f8fc9;
  --hf-tg-soft: rgba(42, 171, 238, 0.10);
  --hf-tg-ghost: rgba(42, 171, 238, 0.04);

  --hf-ok: #16a085;
  --hf-warn: #f39c12;
  --hf-danger: #e63946;
  --hf-violet: #6c5ce7;
  --hf-pink: #d63384;
  --hf-coral: #ff6b6b;

  --hf-radius-sm: 10px;
  --hf-radius:    14px;
  --hf-radius-lg: 22px;
  --hf-radius-xl: 28px;

  --hf-shadow-sm: 0 1px 2px rgba(15,20,25,0.04), 0 1px 1px rgba(15,20,25,0.02);
  --hf-shadow:    0 4px 14px rgba(15,20,25,0.06), 0 1px 2px rgba(15,20,25,0.04);
  --hf-shadow-lg: 0 24px 60px rgba(15,20,25,0.10), 0 4px 12px rgba(15,20,25,0.05);

  --hf-font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --hf-font-body:    'Inter', system-ui, sans-serif;
  --hf-font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* ─────────────── Hi-fi phone shell ─────────────── */
.hf {
  width: 390px;
  background: var(--hf-bg);
  border-radius: 0;
  overflow: hidden;
  font-family: var(--hf-font-body);
  color: var(--hf-ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.hf-statusbar {
  height: 44px;
  background: var(--hf-bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 28px 8px;
  font-family: var(--hf-font-body);
  font-size: 14px; font-weight: 600;
}
.hf-statusbar .icons {
  display: inline-flex; gap: 5px; align-items: center;
  font-size: 13px;
}
.hf-statusbar .icons svg { display: block; }

/* ─────────────── Reset within hf ─────────────── */
.hf * { box-sizing: border-box; }
.hf p { margin: 0; }
.hf h1, .hf h2, .hf h3, .hf h4 { margin: 0; font-family: var(--hf-font-display); letter-spacing: -0.02em; }
.hf h1 { font-size: 38px; line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.hf h2 { font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.hf h3 { font-size: 16px; line-height: 1.2;  font-weight: 700; letter-spacing: -0.01em; }
.hf .display-italic { font-style: italic; font-family: 'Manrope', serif; font-weight: 500; }
.hf .h-accent {
  background: linear-gradient(180deg, transparent 62%, var(--hf-tg-soft) 62%);
  padding: 0 2px;
}

.hf .eyebrow {
  font-family: var(--hf-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hf-tg-deep);
  font-weight: 600;
}
.hf .lead {
  font-size: 16px;
  line-height: 1.45;
  color: var(--hf-ink-2);
  text-wrap: pretty;
}
.hf .body {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--hf-ink-2);
  text-wrap: pretty;
}
.hf .meta {
  font-size: 12px;
  color: var(--hf-ink-3);
  font-family: var(--hf-font-body);
}
.hf .mono { font-family: var(--hf-font-mono); font-feature-settings: 'tnum' 1; }
.hf .num { font-family: var(--hf-font-mono); font-weight: 600; font-feature-settings: 'tnum' 1; }

/* ─────────────── Sections ─────────────── */
.hf-section { padding: 28px 22px; }
.hf-section.tight { padding-top: 18px; padding-bottom: 18px; }
.hf-section.dark { background: var(--hf-ink); color: var(--hf-bg); }
.hf-section.dark .lead { color: rgba(255,255,255,0.7); }
.hf-section.dark .meta { color: rgba(255,255,255,0.55); }
.hf-section.alt  { background: var(--hf-surface-2); }
.hf-section.surface { background: var(--hf-surface); }

.hf-stack { display: flex; flex-direction: column; gap: 14px; }
.hf-stack.tight { gap: 8px; }
.hf-stack.loose { gap: 22px; }
.hf-row { display: flex; gap: 10px; align-items: center; }
.hf-row.spread { justify-content: space-between; }

/* ─────────────── Header ─────────────── */
.hf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: rgba(250,250,250,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hf-line);
  position: sticky; top: 0; z-index: 10;
}
.hf-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-family: var(--hf-font-display); font-size: 16px; letter-spacing: -0.02em; }
.hf-logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--hf-tg) 0%, var(--hf-tg-deep) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(42,171,238,0.3);
}

/* ─────────────── Buttons ─────────────── */
.hf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--hf-font-body);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.1s;
}
.hf-btn:active { transform: scale(0.98); }
.hf-btn.primary {
  background: var(--hf-ink);
  color: white;
}
.hf-btn.tg {
  background: linear-gradient(180deg, var(--hf-tg) 0%, var(--hf-tg-deep) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(42,171,238,0.32);
}
.hf-btn.ghost {
  background: transparent;
  color: var(--hf-ink);
  border: 1px solid var(--hf-line-2);
}
.hf-btn.ghost-light {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
}
.hf-btn.small { padding: 8px 12px; font-size: 13px; }
.hf-btn.block { width: 100%; }
.hf-btn.lg { padding: 16px 22px; font-size: 15px; }

/* ─────────────── Cards ─────────────── */
.hf-card {
  background: var(--hf-surface);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  padding: 16px;
  box-shadow: var(--hf-shadow-sm);
}
.hf-card.solid { background: var(--hf-surface-2); }
.hf-card.tg-soft {
  background: var(--hf-tg-soft);
  border-color: rgba(42,171,238,0.18);
}
.hf-card.dark { background: var(--hf-ink); color: var(--hf-bg); border-color: rgba(255,255,255,0.06); }
.hf-card.tight { padding: 12px; }
.hf-card.bare {
  background: transparent;
  border: 1px dashed var(--hf-line-2);
  box-shadow: none;
}

/* ─────────────── Chips / tags ─────────────── */
.hf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--hf-surface);
  border: 1px solid var(--hf-line-2);
  color: var(--hf-ink-2);
}
.hf-chip.solid { background: var(--hf-ink); color: white; border-color: transparent; }
.hf-chip.tg { background: var(--hf-tg-soft); color: var(--hf-tg-deep); border-color: rgba(42,171,238,0.25); font-weight: 600; }
.hf-chip.ok { background: rgba(22,160,133,0.1); color: var(--hf-ok); border-color: rgba(22,160,133,0.2); }
.hf-chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--hf-tg); }
.hf-chip.dot.ok::before { background: var(--hf-ok); }

/* ─────────────── Eyebrow with line ─────────────── */
.hf-eyebrow-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.hf-eyebrow-row::after {
  content: ""; flex: 1; height: 1px; background: var(--hf-line-2);
}

/* ─────────────── Icon badges ─────────────── */
.hf-icobox {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--hf-surface-2);
  border: 1px solid var(--hf-line);
}
.hf-icobox.tg { background: linear-gradient(180deg, var(--hf-tg) 0%, var(--hf-tg-deep) 100%); color: white; border: none; box-shadow: 0 4px 12px rgba(42,171,238,0.25); }
.hf-icobox.dark { background: var(--hf-ink); color: white; border: none; }

/* ─────────────── Numbered badge ─────────────── */
.hf-num {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--hf-font-mono);
  font-weight: 600;
  font-size: 12px;
  background: var(--hf-ink);
  color: white;
  flex-shrink: 0;
}

/* ─────────────── Telegram-like topic row mock ─────────────── */
.tg-mock {
  background: var(--hf-surface);
  border-radius: 18px;
  padding: 0;
  box-shadow: var(--hf-shadow);
  border: 1px solid var(--hf-line);
  overflow: hidden;
}
.tg-mock-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hf-line);
}
.tg-mock-title { font-weight: 600; font-size: 14px; }
.tg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hf-line);
}
.tg-row:last-child { border-bottom: none; }
.tg-ava {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.tg-name-wrap { flex: 1; min-width: 0; }
.tg-name { font-size: 14px; font-weight: 600; color: var(--hf-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-snippet { font-size: 12px; color: var(--hf-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tg-count {
  background: var(--hf-tg);
  color: white;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--hf-font-mono);
}
.tg-count.muted { background: var(--hf-ink-3); }

/* ─────────────── Video player mock ─────────────── */
.hf-video {
  position: relative;
  border-radius: var(--hf-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
  aspect-ratio: 16/10;
  box-shadow: var(--hf-shadow);
}
.hf-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hf-video-play-btn {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
}
.hf-video-controls {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  color: white;
  font-family: var(--hf-font-mono);
  font-size: 11px;
}
.hf-video-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.25); position: relative; }
.hf-video-bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8%; background: white; border-radius: 2px; }

/* ─────────────── Pricing tier ─────────────── */
.hf-tier {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border-radius: var(--hf-radius);
  border: 1px solid var(--hf-line-2);
  background: var(--hf-surface);
  position: relative;
}
.hf-tier.popular {
  background: linear-gradient(180deg, rgba(42,171,238,0.05) 0%, rgba(42,171,238,0.02) 100%);
  border-color: var(--hf-tg);
  border-width: 1.5px;
}
.hf-tier-price { font-family: var(--hf-font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.hf-tier-cur { font-size: 14px; font-weight: 500; color: var(--hf-ink-3); }
.hf-tier-name { font-weight: 700; font-size: 13px; letter-spacing: -0.005em; }
.hf-tier-desc { font-size: 12px; color: var(--hf-ink-3); margin-top: 2px; }
.hf-tier-pop {
  position: absolute; top: -8px; left: 16px;
  background: var(--hf-tg);
  color: white;
  font-family: var(--hf-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* ─────────────── FAQ accordion ─────────────── */
.hf-faq {
  background: var(--hf-surface);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.hf-faq .q { font-weight: 500; font-size: 14.5px; line-height: 1.35; flex: 1; }
.hf-faq .toggle { width: 28px; height: 28px; border-radius: 999px; background: var(--hf-surface-2); color: var(--hf-ink-2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.hf-faq.open { display: block; }
.hf-faq.open .a { margin-top: 10px; font-size: 13.5px; color: var(--hf-ink-2); line-height: 1.5; }

/* ─────────────── AI-tool tile ─────────────── */
.hf-tool {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--hf-surface);
  border: 1px solid var(--hf-line);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--hf-shadow-sm);
}
.hf-tool-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* ─────────────── Misc ─────────────── */
.hf-divider {
  height: 1px;
  background: var(--hf-line);
}
.hf-arrow {
  width: 18px; height: 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hf-ink);
  color: white;
  font-size: 11px;
  flex-shrink: 0;
}

.hf-channel-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--hf-line-2);
  background: var(--hf-surface);
}
.hf-channel-pill.tg { background: var(--hf-tg-soft); border-color: rgba(42,171,238,0.3); color: var(--hf-tg-deep); }
.hf-channel-pill .dot { width: 10px; height: 10px; border-radius: 4px; background: var(--hf-tg); }
.hf-channel-pill.vk .dot { background: #0077FF; }
.hf-channel-pill.max .dot { background: #1ED660; }

/* ─────────────── Hero CTAs (custom, designed) ─────────────── */
.hf-btn-hero {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-family: var(--hf-font-body);
  letter-spacing: -0.01em;
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  position: relative;
}
.hf-btn-hero:active { transform: translateY(1px); }

.hf-btn-hero.primary {
  background: linear-gradient(180deg, #2aabee 0%, #1f8fc9 100%);
  color: white;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -2px 0 rgba(0,0,0,0.08) inset,
    0 10px 22px -8px rgba(31,143,201,0.55),
    0 4px 10px -4px rgba(31,143,201,0.4);
}
.hf-btn-hero.primary:hover { box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -2px 0 rgba(0,0,0,0.08) inset,
    0 14px 28px -8px rgba(31,143,201,0.65),
    0 6px 14px -4px rgba(31,143,201,0.5);
}
.hf-btn-hero-label {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-width: 0;
}
.hf-btn-hero-label > span:first-child {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}
.hf-btn-hero-sub {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.78;
  font-family: var(--hf-font-mono);
  letter-spacing: 0;
}
.hf-btn-hero-arrow {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.hf-btn-hero.primary:hover .hf-btn-hero-arrow {
  background: rgba(255,255,255,0.28);
  transform: translateX(2px);
}

.hf-btn-hero.secondary {
  margin-top: 10px;
  background: var(--hf-surface);
  color: var(--hf-ink);
  border: 1px solid var(--hf-line-2);
  padding: 12px 16px;
  justify-content: flex-start;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--hf-shadow-sm);
}
.hf-btn-hero.secondary > span:nth-child(2) { flex: 1; }
.hf-btn-hero-play {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--hf-ink);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hf-btn-hero-play svg { margin-left: 1.5px; }
.hf-btn-hero-meta {
  font-family: var(--hf-font-mono);
  font-size: 11px;
  color: var(--hf-ink-3);
  font-weight: 500;
}

/* ─────────────── Header CTA + icon button ─────────────── */
.hf-icon-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--hf-line-2);
  color: var(--hf-ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hf-icon-btn:hover { background: var(--hf-surface-2); color: var(--hf-ink); }

.hf-header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 16px;
  background: var(--hf-ink);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: var(--hf-font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(15,20,25,0.25), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: transform 0.1s ease;
}
.hf-header-cta:active { transform: scale(0.97); }
.hf-header-cta-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--hf-tg);
  box-shadow: 0 0 0 3px rgba(42,171,238,0.25);
}

/* ─────────────── Secret link card ─────────────── */
.hf-secretlink {
  background: var(--hf-ink);
  border-radius: var(--hf-radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px -16px rgba(15,20,25,0.5);
}
.hf-secretlink::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(42,171,238,0.18) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(108,92,231,0.14) 0%, transparent 50%);
  pointer-events: none;
}
.hf-secretlink-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  font-family: var(--hf-font-mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}
.hf-secretlink-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--hf-tg);
  animation: hf-pulse 1.6s ease-in-out infinite;
}
@keyframes hf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42,171,238,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(42,171,238,0); }
}
.hf-secretlink-code {
  display: block;
  font-family: var(--hf-font-mono);
  font-size: 13px;
  color: #7dd3fc;
  word-break: break-all;
  line-height: 1.5;
  padding: 12px 14px;
  margin: 0 0 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  position: relative;
}
.hf-secretlink-copy {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  font-family: var(--hf-font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, transform 0.1s ease;
}
.hf-secretlink-copy:hover { background: rgba(255,255,255,0.13); }
.hf-secretlink-copy:active { transform: scale(0.99); }
.hf-secretlink-copy-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
}
