/* HookPapa landing — слой поверх RRLab styles.css. Токены и базовые классы — оттуда.
   Здесь только то, чего в ките нет: видеорамки, факты, марки, плитки аудиторий, FAQ, док-пилюля. */

body { padding-bottom: 4.6rem; }

/* Бренд в шапке: иконка кита + словомарка. Пилюли справа — как в ките. */
.brand { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.brand:hover { color: inherit; }
.brand img { width: 1.75rem; height: 1.75rem; border-radius: .5rem; display: block; }
a.nav-pill { text-decoration: none; }
a.nav-pill:hover { background: var(--surface-hover); color: var(--color-text); }
.nav-pill-cta { border-color: #3f6fe0a6; background: #2563eb1f; }
a.nav-pill-cta:hover { background: var(--color-primary); color: var(--color-primary-content); }

/* Исключение с именем: CTA — единственная кнопка с телом без ховера (на телефоне ховера нет),
   всегда ведёт в студию. Облик = .btn-primary:hover из кита. */
.btn-cta,
.btn-cta:hover {
  background-color: var(--color-primary); color: var(--color-primary-content);
  background-image:
    var(--noise),
    linear-gradient(90deg, #05132fa6 0%, #05132f00 26%, #05132f00 74%, #05132fa6 100%),
    radial-gradient(120% 150% at 50% 0%, #ffffff2b 0%, #ffffff00 62%);
  background-size: 160px 160px, auto, auto;
  border-color: #1b3fa8;
  box-shadow: inset 0 1px 0 #ffffff6b, 0 .3rem .9rem -.35rem #1d4ed8a6;
}
.btn-cta:hover { background-color: var(--color-primary-hover); }
.btn-cta small { font-weight: 400; font-size: .78rem; opacity: .85; }

/* Анонс: плашка кита + пилюля бонуса + ссылка. Крестик убирает целиком. */
.announce { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; }
.announce span { flex: 1; min-width: 0; font-size: .8rem; }
.announce .bonus-tip { text-decoration: none; }
.announce-x {
  width: 1.6rem; height: 1.6rem; flex: none; border: 0; border-radius: 50%;
  background: #ffffff14; color: var(--color-muted); cursor: pointer; font-family: inherit; font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
}
.announce-x:hover { background: #ffffff26; color: var(--color-text); }

/* Первый экран. */
.hero { padding-top: 1.4rem; }
.hero .lead { margin-top: .7rem; }
.hero .title { display: grid; }
.hero .title > [data-hero-headline] { grid-area: 1 / 1; align-self: center; }
.hero .title > [aria-hidden="true"] { visibility: hidden; }
.hero-card { display: flex; flex-direction: column; gap: .7rem; }
.hero-card[data-campaign] .caret { display: none; }
.campaign-state { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; color: var(--color-muted); font-size: .85rem; }
.frame-host[data-has-frame="true"] .campaign-state { visibility: hidden; }
.btn-cta[aria-disabled="true"] { cursor: progress; }

/* Промпт: поле как в ките (#0d1520a6, сильная рамка). Высота зарезервирована — печать не прыгает. */
.prompt {
  display: flex; flex-direction: column; gap: .3rem; min-height: 3.6rem;
  padding: .6rem .8rem; border: 1px solid var(--border-strong); border-radius: .65rem; background: #0d1520a6;
  font-size: .85rem; line-height: 1.4;
}
.prompt-label { font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.prompt-text { min-height: 1.4em; }
.caret { display: inline-block; width: .08em; height: 1em; margin-left: .12em; vertical-align: -.15em; background: var(--color-accent); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Видеорамка: геометрия задана до загрузки, постер держит место. Клик по рамке — переход в студию,
   кружок — превью. Тег — пилюля, как .name у mcard-tile. */
.frame {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  border: 1px solid var(--border-1); border-radius: .8rem; background: #0d1520a6;
  color: inherit; text-decoration: none;
}
.frame-tall { aspect-ratio: 4 / 5; }
.frame-sq { aspect-ratio: 1; }
.frame video, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
a.frame:hover { border-color: var(--border-strong); }
.frame .tag {
  position: absolute; top: .5rem; left: .5rem; z-index: 1;
  padding: .2rem .55rem; border-radius: 999px; background: #0d1520cc;
  font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.frame-host { position: relative; }
.play {
  position: absolute; right: .5rem; bottom: .5rem; z-index: 2;
  width: 2.3rem; height: 2.3rem; padding: 0; border: 1px solid var(--border-strong); border-radius: 50%;
  background: #0d1520cc; color: var(--color-text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.play:hover { background: #1c2634; border-color: #ffffff8c; }
.play svg { width: .95rem; height: .95rem; fill: currentColor; }
.play .ic-pause { display: none; }
.play[aria-pressed="true"] .ic-play { display: none; }
.play[aria-pressed="true"] .ic-pause { display: block; }

/* Факты: 3 плитки в ряд, бесплатные кредиты светятся акцентом как выбранный пакет. */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.fact {
  min-height: 4.8rem; padding: .5rem .3rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  border: 1px solid var(--border-1); border-radius: .9rem; background: var(--surface-1);
  color: inherit; text-decoration: none;
}
.fact b { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.fact span { font-size: .62rem; line-height: 1.25; color: var(--color-muted); }
.fact-free { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), 0 0 18px #2dd4bf40; }
.fact-free b { color: var(--color-accent); }
a.fact:hover { background: var(--surface-hover); }

/* Марки: бесконечная лента, края гаснут. Логотипы — монохром под тему. */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee-set { display: flex; align-items: center; gap: 2.2rem; padding-inline: 1.1rem; }
.marquee img { height: 1.5rem; width: auto; opacity: .55; filter: brightness(0) invert(1); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Раздел: заголовок кита + подпись. */
.sect-lead { text-align: center; color: var(--color-muted); font-size: .9rem; margin-top: -.5rem; }

/* Лента карточек: на телефоне — горизонтальный snap внутри подписанного контейнера,
   с 641px — 3 в ряд. */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: .6rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .3rem;
  scrollbar-width: thin; scrollbar-color: #ffffff2e transparent;
}
.strip > * { scroll-snap-align: start; min-width: 0; }
.idea { display: flex; flex-direction: column; gap: .45rem; }
.idea h3 { margin: 0; font-size: .95rem; font-weight: 700; }
.idea p { font-size: .8rem; color: var(--color-muted); }
@media (min-width: 641px) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
}

/* Список галочек и шагов — облик чипов кита, только неинтерактивный. */
.checks { display: grid; gap: .5rem; }
.checks li {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .9rem; border: 1px solid var(--border-1); border-radius: .7rem; background: var(--surface-1);
  font-size: .9rem;
}
.checks .sel {
  width: 1.1rem; height: 1.1rem; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: #042f2e; font-size: .65rem;
}
.checks .num {
  width: 1.4rem; height: 1.4rem; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #2563eb1f; border: 1px solid #3f6fe0a6; font-size: .68rem; font-weight: 800;
}

/* Аудитории: 2 в ряд на телефоне (как diag-grid), 3 — шире. Фото фоном, подпись плашкой (mcard). */
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.aud-tile { display: flex; align-items: flex-end; padding: .5rem; }
.aud-tile .name {
  position: relative; z-index: 1; max-width: 100%;
  display: flex; flex-direction: column; gap: .1rem;
  padding: .3rem .55rem; border-radius: .5rem; background: #0d1520cc;
}
.aud-tile .name b { font-size: .8rem; line-height: 1.2; }
.aud-tile .name span { font-size: .62rem; line-height: 1.3; color: var(--color-muted); }
.aud-tile:hover .name { background: #0d1520f2; }
@media (min-width: 641px) { .aud { grid-template-columns: repeat(3, 1fr); } }

/* Платформы: пилюли-ссылки, все в студию. */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.platform {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.4rem;
  padding: .4rem .85rem; border: 1px solid var(--border-1); border-radius: 999px; background: var(--surface-1);
  color: inherit; text-decoration: none; font-size: .85rem; font-weight: 600;
}
.platform:hover { background: var(--surface-hover); color: inherit; border-color: var(--border-strong); }
.platform img { width: 1.15rem; height: 1.15rem; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.calendar { display: block; overflow: hidden; border: 1px solid var(--border-1); border-radius: .8rem; background: #0d1520a6; }
.calendar img { display: block; width: 100%; height: auto; }
.calendar:hover { border-color: var(--border-strong); }

/* Пакеты кредитов — tokens-grid кита; здесь плитки — ссылки в студию, где происходит покупка. */
.tokens-grid a.price-tile { text-decoration: none; }
.tokens-grid a.price-tile:hover { background: var(--surface-hover); }
.token-best { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), 0 0 18px #2dd4bf40; }
.token-best .token-price { color: var(--color-accent); }
.token-tile .token-note { font-size: .62rem; color: var(--color-muted); }

/* FAQ: нативный details, стрелка через ::after (гайд §13). */
.faq { background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--radius-card); overflow: hidden; line-height: 1.5; }
.faq > summary { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; cursor: pointer; list-style: none; font-weight: 600; font-size: .92rem; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "\2304"; margin-left: auto; opacity: .5; font-size: 1.1rem; line-height: 1; transition: transform .15s; }
.faq[open] > summary::after { transform: rotate(180deg); }
.faq > summary:hover { background: #ffffff0d; }
.faq p { padding: 0 1rem .9rem; color: var(--color-muted); font-size: .85rem; }

/* Футер кита + компактные ссылки. */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .9rem; margin-top: .6rem; }
footer a { color: var(--color-muted); text-decoration: none; }
footer a:hover { color: var(--color-text); }
.foot-brand { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; }
.foot-brand img { width: 1rem; height: 1rem; border-radius: .25rem; }

/* Единственная плавающая пилюля — снизу по центру (разрешена SPEC). Прячется, пока виден CTA героя. */
.dock {
  position: fixed; inset-inline: 0; bottom: calc(.7rem + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
  transition: transform .25s, opacity .25s;
}
.dock[data-off="true"] { transform: translateY(130%); opacity: 0; }
.dock .btn { pointer-events: auto; width: auto; min-height: 3rem; padding: .55rem 1.4rem; border-radius: 999px; font-size: .92rem; box-shadow: inset 0 1px 0 #ffffff6b, 0 .6rem 1.6rem -.4rem #000000cc; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .caret { animation: none; }
}

/* Integration preserves the supplied composition and strengthens media/accessibility behavior. */
.frame-host, .hero-card, .strip, .pair, .aud, .tokens-grid { min-width: 0; }
.frame [data-video-poster] { pointer-events: none; }
.frame-host .frame video, .frame-host .frame [data-video-poster] { object-fit: contain; }
.frame-host[data-has-frame="true"] [data-video-poster] { visibility: hidden; }
.play { min-width: 44px; min-height: 44px; }
.play[aria-busy="true"] { border-color: var(--color-accent); }
.video-error {
  position: absolute; inset-inline: .5rem 3.5rem; bottom: .5rem; z-index: 3;
  padding: .35rem .55rem; border-radius: .5rem;
  background: #0d1520f2; color: var(--color-text); font-size: .66rem; line-height: 1.4;
  pointer-events: none;
}
.dock[data-off="true"] { visibility: hidden; }
.marquee:focus-within .marquee-track, .marquee:hover .marquee-track { animation-play-state: paused; }
@media (max-width: 380px) {
  .announce { flex-wrap: wrap; }
  .announce > span { flex-basis: calc(100% - 2.5rem); }
  .announce-x { margin-inline-start: auto; }
  .announce .bonus-tip { order: 1; }
  footer .row { flex-wrap: wrap; }
  footer .row > a { flex-basis: calc(50% - .6rem); }
  .btn-cta { flex-wrap: wrap; }
  .checks li, .aud-tile .name { overflow-wrap: anywhere; }
}
@media (forced-colors: active) {
  .frame, .play, .fact, .platform, .faq, .nav-pill { border-color: ButtonText; }
  .mark-fill { color: CanvasText; -webkit-text-stroke: 0; background: none; }
  .btn-cta { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .play[aria-pressed="true"] { outline: 2px solid Highlight; }
}
