/* Qlink — лендинг-покупка. Mobile-first: компактная карточка-приложение (по мокапу).
   Поверх токенов style.css (тёмная/светлая тема). */

.screen {
  position: relative; min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 18px 14px 26px;
}
/* мягкое свечение за карточкой */
.screen::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(640px 440px at 50% 14%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%);
}
.card, .under { position: relative; z-index: 1; }

.card {
  width: 100%; max-width: 432px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 26px; padding: 22px 20px 18px;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .65);
}

/* шапка */
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; color: var(--txt); text-decoration: none; letter-spacing: .2px; }
.brand-mark {
  display: inline-block; width: 30px; height: 30px; flex: none;
  background: url("/static/logo.png?v=1") center / contain no-repeat;
}
.brand-mark svg { display: none; }
.acc {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: var(--bg); border: 1px solid var(--border);
  text-decoration: none; transition: color .15s, border-color .15s;
}
.acc:hover { color: var(--txt); border-color: var(--accent); }

/* заголовок */
.title { font-size: 23px; line-height: 1.36; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 16px; }
.title .hl { background: linear-gradient(120deg, var(--accent), #8b5cf6 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0 0 18px; }

/* чипы (горизонтальный скролл, в край карточки) */
.chips {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 0 0 18px;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 11px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 999px;
}
.chip svg, .chip .inf { color: var(--accent); }
.chip .inf { font-size: 16px; font-weight: 700; line-height: 1; }

/* переключатель тарифа — две кнопки */
.tier-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.tier-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--muted);
  font-size: 15px; font-weight: 700; padding: 14px 0; border-radius: 14px;
  transition: border-color .15s, background .15s, color .15s;
}
.tier-btn .bolt { color: var(--bolt); flex: none; }
.tier-btn:hover { color: var(--txt); }
.tier-btn.is-on { color: var(--txt); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--bg)); }
.tier-note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0 0 16px; min-height: 18px; }
.plan-divider { display: flex; align-items: center; gap: 12px; color: var(--txt); font-size: 14px; font-weight: 600; margin: 10px 0 16px; }
.plan-divider::before, .plan-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tier-feats { list-style: none; padding: 0 2px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.tier-feats li { color: var(--muted); font-size: 13.5px; padding-left: 18px; position: relative; }
.tier-feats li::before { content: "—"; color: var(--accent); position: absolute; left: 0; }

/* периоды */
.plans { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.plan {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 18px; padding: 15px 18px;
  transition: border-color .15s, background .15s, transform .08s;
}
.plan:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.plan:active { transform: scale(.995); }
.plan.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.plan .radio {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); flex: none;
  display: flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s;
}
.plan.is-on .radio { border-color: var(--accent); background: var(--accent); }
.plan .radio svg { display: none; color: #fff; }
.plan.is-on .radio svg { display: block; }
.plan .pmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plan .pper { font-weight: 700; font-size: 17px; }
.plan .ppm { font-size: 13px; color: var(--muted); margin-top: 2px; }
.plan .pright { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.plan .disc { font-size: 12px; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); padding: 3px 9px; border-radius: 8px; }
.plan .pprice { font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; }

/* кнопка покупки */
.buy {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--txt);
  font-size: 16px; font-weight: 700; padding: 16px; border-radius: 16px; text-decoration: none;
  transition: background .15s, border-color .15s, transform .08s;
}
.buy:hover { background: color-mix(in srgb, var(--accent) 18%, var(--panel-2)); border-color: var(--accent); }
.buy:active { transform: scale(.99); }

.pay-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 13px; margin: 13px 0 2px; }

/* строка под карточкой */
.under { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 13px; }
.under a { color: var(--muted); text-decoration: none; }
.under a:hover { color: var(--txt); }
.under span { opacity: .4; }
.under .theme-toggle { margin-left: 2px; }

@media (max-width: 440px) {
  .card { border-radius: 22px; padding: 20px 16px 16px; }
  .title { font-size: 30px; }
  .chips { margin: 0 -16px 18px; padding: 0 16px; }
}
