/* irenabio-app checkout - тон бренда как на витрине irenabio.com.
   Мягкая женственная палитра, мобайл-фёрст, без зависимостей и внешних шрифтов. */

:root {
  --bg: #fcf8f5;
  --surface: #ffffff;
  --text: #3d3333;
  --muted: #8a7d7d;
  --accent: #c98a8a;
  --accent-deep: #b06f72;
  --border: #efe3dd;
  --shadow: 0 8px 28px rgba(176, 111, 114, 0.10);
  --radius: 18px;
  --maxw: 560px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

.site-header { padding: 18px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, #d9a7a0, #c98a8a);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
.brand-name { font-size: 15px; font-weight: 700; }

.checkout { padding: 30px 18px 10px; }
.checkout h1 { font-size: 26px; margin: 0 0 8px; text-align: center; }
.checkout .lead { color: var(--muted); text-align: center; margin: 0 0 26px; font-size: 15px; }

/* Тарифы как радио-карточки */
.plans { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.plan {
  position: relative; display: block; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px; transition: border-color .15s, box-shadow .15s;
}
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan-period { font-size: 17px; font-weight: 700; }
.plan-price { font-size: 26px; font-weight: 800; }
.plan-price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-note { width: 100%; font-size: 13px; color: var(--muted); margin-top: 2px; }
.plan-tag {
  position: absolute; top: -10px; right: 16px;
  background: linear-gradient(135deg, #d9a7a0, #c98a8a); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 999px;
}
.plan.selected,
.plan:has(input:checked) { border-color: var(--accent); box-shadow: var(--shadow); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Поле почты */
.field { display: block; margin: 0; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#email {
  width: 100%; padding: 13px 14px; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 13px;
}
#email:focus { outline: none; border-color: var(--accent); }
.field-error { color: var(--accent-deep); font-size: 13px; margin: 6px 2px 0; }
.form-error { color: var(--accent-deep); font-size: 14px; margin: 14px 2px 0; text-align: center; }

/* Кнопки */
.btn {
  display: block; width: 100%; padding: 15px 20px; border-radius: 14px;
  font-weight: 700; font-size: 16px; border: none; cursor: pointer; text-align: center;
}
.btn-primary { margin-top: 18px; background: linear-gradient(135deg, #d9a7a0, #c98a8a); color: #fff; }
.btn-primary:hover { filter: brightness(0.97); text-decoration: none; }
.btn-primary:disabled { opacity: .6; cursor: default; filter: none; }
.btn-ghost { margin-top: 20px; background: transparent; color: var(--accent-deep); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

.alt-pay { text-align: center; margin: 14px 0 0; }
.alt-pay a { font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--border); }
.alt-pay a:hover { color: var(--accent-deep); text-decoration: none; }
.alt-pay a.disabled { opacity: .5; pointer-events: none; }

.reassure { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }

/* Заглушка после создания person */
.pending-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px 24px; text-align: center; margin-top: 20px;
}
.pending-check {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, #d9a7a0, #c98a8a); color: #fff;
  font-size: 28px; line-height: 56px; font-weight: 700;
}
.pending-card h1 { font-size: 23px; margin: 0 0 10px; }
.pending-card p { color: #5f5353; margin: 0 0 12px; font-size: 15px; }
.pending-plan { font-weight: 700; color: var(--text) !important; }
.pending-card .muted { color: var(--muted); font-size: 13px; }

/* TEST-TARIFF: заметка тестового тарифа (удалить после теста) */
.test-note { text-align: center; color: var(--accent-deep); font-size: 13px; font-weight: 600; margin: 0 0 18px; }

/* Экран пароля после оплаты */
#view-password .login-line { margin: 4px 0 16px; }
#view-password .login-line strong { color: var(--text); }
.pw-field { position: relative; margin: 0 0 10px; }
#password, #password2 {
  width: 100%; padding: 13px 14px; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 13px;
}
#password { padding-right: 76px; }  /* место под кнопку "показать" */
#password:focus, #password2:focus { outline: none; border-color: var(--accent); }
.pw-eye {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  border: none; background: transparent; color: var(--accent-deep);
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px;
}
#view-password .field-error { text-align: left; }
#view-password .btn-ghost { margin-top: 12px; }
#access-until { color: var(--text); font-weight: 600; }

.site-footer { margin-top: 26px; border-top: 1px solid var(--border); background: var(--surface); padding: 22px 0 30px; }
.legal { text-align: center; margin: 0 0 10px; }
.legal summary {
  display: inline-block; list-style: none; cursor: pointer;
  color: var(--muted); font-size: 12px; border-bottom: 1px dashed var(--border);
}
.legal summary::-webkit-details-marker { display: none; }
.legal-docs { display: block; margin-top: 8px; }
.legal-docs a { margin: 0 8px; font-size: 12px; color: var(--muted); }
.seller { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; text-align: center; }
.seller strong { color: var(--text); font-weight: 600; }

@media (min-width: 600px) {
  .checkout h1 { font-size: 30px; }
}

/* ===================== ЭКРАН ДОМ (контент-платформа) ===================== */
/* Всё скоупом под #view-home/.home, чтобы НЕ затронуть чекаут/пароль.
   Шрифт Manrope + токены/градиент по DESIGN_SPEC.md и mockups.html. */
/* Десктоп: дом — аккуратная центрированная колонка, не растянутая на всю ширину.
   Мобильный (<480px) не затронут: контент уже, чем max-width. Только #view-home, чекаут не трогаем. */
#view-home { max-width: 480px; margin-left: auto; margin-right: auto; }
.home-loading { text-align: center; color: var(--muted); font-size: 14px; padding: 48px 0; }
.home {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #3d2b2b;
}

/* Шапка на радиальном градиенте (Вариант A) */
.home-hero {
  padding: 18px 18px 22px;
  border-radius: 24px;
  background: radial-gradient(120% 80% at 70% 0%, #e7c3b8 0%, #d9a7a0 40%, #f3ddd4 80%, #faf3ee 100%);
}
.home-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.home-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.55); padding: 6px 13px; border-radius: 20px; }
.home-chip i { font-size: 14px; color: #7a4a4a; }
.home-chip span { font-size: 11px; font-weight: 600; color: #7a4a4a; letter-spacing: 0.5px; }
.home-menu-btn { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.home-menu-btn i { font-size: 17px; color: #7a4a4a; }

/* Адаптивная верхняя карточка (новичок/вернувшийся) */
.home-kicker { font-size: 11px; font-weight: 600; color: #8a5555; letter-spacing: 1.5px; margin-bottom: 7px; text-transform: uppercase; }
.home-headline { font-size: 26px; font-weight: 800; line-height: 1.1; margin-bottom: 6px; overflow-wrap: break-word; word-wrap: break-word; }
.home-headline.long { font-size: 23px; }              /* длинный заголовок -> мельче, 2 строки, БЕЗ многоточия */
.home-subhead { font-size: 13px; color: #7a4a4a; margin-bottom: 14px; line-height: 1.4; overflow-wrap: break-word; }
.home-cta { display: inline-flex; align-items: center; gap: 8px; background: #fff; padding: 10px 20px; border-radius: 24px; cursor: pointer; }
.home-cta-ic { width: 24px; height: 24px; border-radius: 50%; background: #c98a8a; display: flex; align-items: center; justify-content: center; }
.home-cta-ic i { font-size: 13px; color: #fff; }
.home-cta > span:last-child { font-size: 13px; font-weight: 600; color: #3d2b2b; }

.home-body { padding: 16px 0 24px; }
.home .card { background: #fff; border: 0.5px solid #efe3dd; border-radius: 16px; }

/* Карточка спринта с прогрессом */
.home-sprint { padding: 14px 16px; margin-bottom: 14px; }
.home-sprint-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; }
.home-sprint-title { font-size: 15px; font-weight: 700; overflow-wrap: break-word; }
.home-sprint-badge { font-size: 11px; font-weight: 600; color: #b06f72; background: #f3e3df; padding: 2px 9px; border-radius: 11px; white-space: nowrap; }
.home-progress { height: 6px; background: #efe3dd; border-radius: 3px; overflow: hidden; }
.home-progress-bar { height: 100%; width: 2%; background: linear-gradient(90deg, #d9a7a0, #c98a8a); border-radius: 3px; }
.home-alldays { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 9px; cursor: pointer; }
.home-alldays span { font-size: 12px; font-weight: 500; color: #b06f72; }
.home-alldays i { font-size: 14px; color: #b06f72; }

/* Твои инструменты (6 плиток-заглушек) */
.home-tools-h { font-size: 16px; font-weight: 700; margin: 0 2px 11px; }
.home-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.home .t5 { background: #fff; border: 0.5px solid #efe3dd; border-radius: 14px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; text-align: center; }
.home .t5 i { font-size: 23px; color: #c98a8a; }
.home .t5n { font-size: 13px; font-weight: 600; color: #3d2b2b; }
.home .t5s { font-size: 11px; color: #9b8278; line-height: 1.2; }
.home .t5-archive { background: linear-gradient(135deg, #f3ddd4, #e7c3b8); border-color: #e0b3aa; }
.home .t5-archive i { color: #a85e5e; }
.home .t5-archive .t5n { color: #8a4a4a; }
.home .t5-archive .t5s { color: #9c6a5e; }

/* Статус подписки */
.home-sub { padding: 14px 16px; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.home-sub-left { display: flex; align-items: center; gap: 10px; }
.home-sub-left > i { font-size: 18px; color: #b06f72; }
.home-sub-title { font-size: 13px; font-weight: 600; }
.home-sub-until { font-size: 12px; color: #9b8278; }
.home-sub-arrow { font-size: 17px; color: #b06f72; }

/* Поддержка */
.home-support { text-align: center; margin-top: 13px; }
.home-support button { border: none; background: transparent; font-family: inherit; font-size: 12px; color: #9b8278; cursor: pointer; }
.home-support button i { font-size: 13px; vertical-align: -2px; }
.home-support-contacts { margin-top: 8px; font-size: 12px; color: #9b8278; }
.home-support-contacts a { color: #b06f72; }
