/* ==============================================================
   Lucea — страницы Pro: /pro, /pro-success, /pro-fail, /unsubscribe,
   /delete-account (план 19-08). Палитра и шрифты — как в legal.css.
   ============================================================== */

:root {
  --bg-base: #1A0F08;
  --bg-deep: #0F0805;
  --bg-card: #2A1D10;
  --border: #3D2A18;
  --gold: #D4A640;
  --gold-bright: #F4C757;
  --gold-dark: #8B6F2D;
  --gold-mid: #B58A3C;
  --text: #E8E0D0;
  --text-muted: #A89878;
  --warn: #E8B86A;
  --danger: #E08A6A;

  --gold-linear: linear-gradient(135deg, #8B6F2D 0%, #F4C757 50%, #B58A3C 100%);

  --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 70% 40% at 50% -2%, rgba(244, 199, 87, 0.10) 0%, rgba(244, 199, 87, 0) 60%),
    linear-gradient(180deg, #20140A 0%, #1A0F08 45%, #0F0805 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(244, 199, 87, 0.3); }
a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ----- Шапка ----- */

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.nav-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 17px;
  color: var(--gold);
  border-bottom: none;
}

.nav-mark { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(244, 199, 87, 0.4)); }

.nav-back { font-size: 14px; color: var(--text-muted); border-bottom: 1px solid transparent; }
.nav-back:hover { color: var(--gold); }

/* ----- Заголовки и текст ----- */

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 38px);
  letter-spacing: 0.03em;
  line-height: 1.2;
  background: var(--gold-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--gold);
  letter-spacing: 0.02em;
  margin: 36px 0 12px;
}

p { margin-bottom: 14px; font-weight: 300; }

.lead { font-family: var(--font-serif); font-size: 20px; color: var(--text-muted); margin-bottom: 28px; }

.note { font-size: 14px; color: var(--text-muted); }

ul.plain, ol.plain { margin: 0 0 16px; padding-left: 22px; }
ul.plain li, ol.plain li { margin-bottom: 8px; font-weight: 300; }
ul.plain li::marker, ol.plain li::marker { color: var(--gold); }

/* ----- Состав Pro ----- */

.caption {
  margin: 22px 0 8px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; font-weight: 300; }
.features li::before { content: "✦"; color: var(--gold); flex: 0 0 auto; }

/* ----- Сообщения ----- */

.message {
  color: var(--warn);
  background: rgba(232, 184, 106, 0.08);
  border: 1px solid rgba(232, 184, 106, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 15px;
}

/* ----- Статус аккаунта ----- */

.status {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 24px 0;
}
.status p { margin-bottom: 6px; }
.status p:last-child { margin-bottom: 0; }

.link-button {
  background: none;
  border: none;
  padding: 0;
  margin-top: 8px;
  color: var(--danger);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}
.link-button:disabled { opacity: 0.5; cursor: default; }

/* ----- Тарифы: у каждого своя кнопка оплаты (как Diktum) ----- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; }

.plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}
.plan__title { font-family: var(--font-display); font-size: 17px; color: var(--text); margin: 0; letter-spacing: 0.02em; }
.plan__price { font-size: 28px; font-weight: 600; color: var(--gold-bright); margin: 0 0 4px; }
.plan__btn { margin-top: auto; }

/* ----- Согласия ----- */

.consent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; min-height: 44px; font-weight: 300; }
.consent input[type="checkbox"] { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.consent__hint { font-size: 14px; color: var(--text-muted); padding-left: 32px; margin: 0; }

.offer-accept-line { font-size: 14px; color: var(--text-muted); margin: 12px 0; }

.billing-line { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; }

.btn {
  display: inline-block;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: var(--gold-linear);
  color: #1A0F08;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: default; }

/* ----- Блок «как открыть» ----- */

.callout {
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ----- Подвал ----- */

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.9;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--gold); border-bottom: none; }
.site-footer .sep { margin: 0 6px; opacity: 0.5; }

@media (max-width: 560px) {
  main { padding: 28px 20px 64px; }
  .plans { grid-template-columns: 1fr; }
}

.pay-note { margin-top: 12px; }

/* ----- Форма «Прислать ссылку на оплату» (план 19-45) ----- */

.link-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 24px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.link-form label { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.link-form__row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-base);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.link-form input[type="email"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.link-form input[type="email"]::placeholder { color: var(--text-muted); opacity: 0.7; }
.link-form__btn { flex: 0 0 auto; width: auto; height: 48px; padding: 0 22px; }
.link-form__status { font-size: 14px; color: var(--text-muted); min-height: 1em; margin: 0; }

/* Витрина без личной ссылки (и с устаревшей): цены видны, оплатить нельзя —
   прячем всё, что нужно только при оплате (как Diktum): кнопки, галку
   автопродления, строку акцепта оферты и строку периода. */
.no-token .plan__btn,
.no-token #auto-renew-row,
.no-token #offer-accept-line,
.no-token #billing-line { display: none !important; }
