/* ============================================================
   ЛУММИ — стили сайта/кабинета (Design System)
   Тёплый бренд: Manrope · амбер #F4B23E · кремовые поверхности.
   Совпадает с веб-дизайн-системой Лумми (lummi.css / lummi-web.css).
   ============================================================ */
:root {
  --accent: #F4B23E;          /* primary amber */
  --accent-deep: #D89A29;     /* AA-safe amber for white text */
  --accent-dark: #E0951F;     /* gradient end / hover */
  --glow-secondary: #FFD89E;
  --glow-ambient: #F5A663;
  --accent-bg: rgba(244, 178, 62, 0.14);

  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --cream: #FFF7EC;
  --text: #2D2520;
  --text-secondary: #6B5F54;
  --border: #E5E0D8;

  --success: #9CC09C;
  --warning: #E8A572;
  --error: #C97D6F;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(45, 37, 32, .06);
  --shadow: 0 6px 24px rgba(45, 37, 32, .08);
  --shadow-float: 0 24px 60px -16px rgba(45, 37, 32, .22);
  --shadow-glow: 0 0 60px rgba(244, 178, 62, .4);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html, body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

/* ---------- Brand orb ---------- */
.orb {
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFE6BE, var(--accent) 60%, var(--glow-ambient));
  box-shadow: 0 0 24px rgba(244, 178, 62, .45);
  flex: 0 0 auto;
}

/* ---------- Header ---------- */
.header {
  background: rgba(250, 248, 244, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header__inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 20px; letter-spacing: -.4px;
}
.logo__mark { width: 30px; height: 30px; font-size: 0; }
.header__nav { display: flex; gap: 6px; }
.nav-link {
  color: var(--text-secondary);
  font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 10px;
  transition: all .15s var(--ease-out);
}
.nav-link:hover { color: var(--text); background: rgba(45, 37, 32, .05); }

/* ---------- Main ---------- */
.main { min-height: calc(100vh - 64px - 80px); }

/* ---------- Hero (landing) ---------- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(244, 178, 62, .22), transparent 70%);
}
.hero__title {
  font-size: clamp(34px, 6vw, 60px); font-weight: 800;
  letter-spacing: -1.6px; line-height: 1.06; margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(17px, 2.4vw, 20px); color: var(--text-secondary);
  font-weight: 500; max-width: 560px; margin: 0 auto 32px;
}
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700; font-size: 16px; letter-spacing: -.2px;
  cursor: pointer; border: none;
  font-family: inherit;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), border-color .15s var(--ease-out);
}
.btn--primary {
  background: linear-gradient(135deg, #F4B23E, var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(216, 154, 41, .34);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(216, 154, 41, .42); }
.btn--primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn--text {
  background: transparent; color: var(--accent-deep); padding: 10px 14px; font-weight: 700;
}
.btn--text:hover { color: var(--accent-dark); }
.btn--full { width: 100%; }

/* ---------- Features (landing) ---------- */
.features { padding: 72px 0; }
.section-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.8px;
  text-align: center; margin-bottom: 12px;
}
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 40px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 40px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feature__icon {
  font-size: 28px; margin-bottom: 16px;
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(244, 178, 62, .18), rgba(255, 216, 158, .3));
}
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.3px; }
.feature p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

/* ---------- Pricing / Plans ---------- */
.pricing { padding: 60px 0 100px; }
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 40px auto 0;
}
.plan {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  border: 1.5px solid var(--border);
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease-out), border-color .2s var(--ease-out);
}
.plan:hover { transform: translateY(-3px); border-color: var(--glow-secondary); }
.plan--popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), var(--shadow);
}
.plan__badge {
  position: absolute; top: -12px; right: 22px;
  background: var(--accent-deep); color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .2px;
  white-space: nowrap;
}
.plan__name {
  font-size: 14px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 12px;
}
.plan__price {
  font-size: 18px; color: var(--text);
  font-weight: 700; margin-bottom: 4px; display: flex; align-items: baseline; gap: 6px;
}
.plan__price span { font-size: 44px; font-weight: 800; letter-spacing: -2px; }
.plan__period { color: var(--text-secondary); font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.plan .btn { margin-top: auto; }
.plan__features { list-style: none; margin: 16px 0 22px; padding: 0; }
.plan__features li {
  padding: 7px 0 7px 28px; font-size: 15px; font-weight: 500; position: relative;
}
.plan__features li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px; color: var(--accent-deep); font-weight: 800;
}
.pricing__note { text-align: center; color: var(--text-secondary); margin-top: 24px; font-size: 14px; }

/* ---------- Cabinet ---------- */
.cabinet { padding: 48px 0 80px; }
.cabinet__title { font-size: clamp(28px, 5vw, 36px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 6px; }
.cabinet__email { color: var(--text-secondary); font-weight: 500; margin-bottom: 28px; }

.status-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  margin-bottom: 44px;
  position: relative; overflow: hidden;
}
.status-card--premium {
  background: linear-gradient(135deg, rgba(244, 178, 62, .14), rgba(255, 216, 158, .28));
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), var(--shadow);
}
.status-card--trial {
  background: linear-gradient(180deg, var(--cream), #FAF1E2);
  border-color: var(--warning);
}
.status-card--free { background: var(--surface); }
.status-card__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px;
  font-weight: 700; color: var(--text-secondary); margin-bottom: 8px;
}
.status-card__value { font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.status-card--premium .status-card__value,
.status-card--trial .status-card__value { color: var(--accent-deep); }
.status-card__expires { color: var(--text-secondary); font-size: 14px; font-weight: 600; margin-top: 8px; }

.plans--cabinet { margin-top: 20px; }
.plans--three { grid-template-columns: repeat(3, 1fr); max-width: 960px; }
@media (max-width: 760px) { .plans--three { grid-template-columns: 1fr; } }

/* ---------- Compare table ---------- */
.compare {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 20px 0 28px;
  box-shadow: var(--shadow);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  padding: 14px 18px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.compare th {
  background: var(--accent-bg);
  font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--accent-deep);
}
.compare td { font-weight: 500; }
.compare th:nth-child(2), .compare th:nth-child(3),
.compare td:nth-child(2), .compare td:nth-child(3) { text-align: center; width: 150px; }
.compare tr:last-child td { border-bottom: none; }
.compare__yes { color: var(--accent-deep); font-weight: 700; }
.compare__no { color: var(--text-secondary); }

@media (max-width: 640px) {
  .compare th, .compare td { padding: 11px 9px; font-size: 13px; }
  .compare th:nth-child(2), .compare th:nth-child(3),
  .compare td:nth-child(2), .compare td:nth-child(3) { width: 80px; }
}

/* ---------- Benefit badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 36px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-bg);
  color: var(--accent-deep);
  border: 1px solid rgba(244, 178, 62, .3);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}

.cabinet__note { color: var(--text-secondary); font-size: 13px; margin-top: 24px; text-align: center; line-height: 1.6; }
.cabinet__note p { margin-bottom: 4px; }
.cabinet__logout { text-align: center; margin-top: 40px; }

/* ---------- Payment history ---------- */
.payments {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden; margin-top: 20px;
  box-shadow: var(--shadow);
}
.payment {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500;
}
.payment:last-child { border-bottom: none; }
.payment__meta { color: var(--text-secondary); font-size: 12px; margin-top: 2px; }

.pay-error {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface); color: var(--error);
  border: 1.5px solid var(--error);
  padding: 14px 22px; border-radius: 14px; font-weight: 600;
  box-shadow: var(--shadow-float);
}

/* ---------- Login screen ---------- */
.login-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 56px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center; margin-top: 48px;
}
.login-card__icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(244, 178, 62, .18), rgba(255, 216, 158, .12));
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.login-card__title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.login-card__text { color: var(--text); margin-bottom: 12px; }
.login-card__sub { color: var(--text-secondary); font-size: 14px; }

/* ---------- Status pages (payment success / fail) ---------- */
.status-page { padding: 96px 0; text-align: center; }
.status-page__icon {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #F4B23E, var(--accent-dark)); color: #fff;
  border-radius: 50%; font-size: 38px; font-weight: 800;
  box-shadow: var(--shadow-glow);
}
.status-page__icon--fail {
  background: var(--error);
  box-shadow: 0 0 40px rgba(201, 125, 111, .35);
}
.status-page__title { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -.6px; margin-bottom: 16px; }
.status-page__text { color: var(--text); margin-bottom: 10px; font-size: 17px; font-weight: 500; }
.status-page__sub { color: var(--text-secondary); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer__links a { color: var(--accent-deep); font-weight: 600; }
.footer__links a:hover { color: var(--accent-dark); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .header__nav { gap: 2px; }
  .nav-link { font-size: 13px; padding: 8px 10px; }
  .cabinet { padding: 32px 0 64px; }
  .status-card { padding: 22px; }
}
