:root {
  --bg: #f4f1ea;
  --bg-accent: #e6dccb;
  --surface: rgba(255, 252, 247, 0.84);
  --surface-strong: #fffdf9;
  --text: #1e1b16;
  --muted: #6b6258;
  --line: rgba(30, 27, 22, 0.08);
  --primary: #0c7c59;
  --primary-dark: #085941;
  --shadow: 0 24px 80px rgba(54, 44, 26, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.7), transparent 32%),
    radial-gradient(circle at bottom right, rgba(12,124,89,0.12), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, #efe8dc 100%);
  min-height: 100vh;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}

.topnav {
  display: flex;
  gap: 18px;
}

.topnav a,
.inline-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.topnav a:hover,
.inline-link:hover { border-color: currentColor; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 32px;
}

.hero-copy h1,
.card h1,
.card h2 {
  margin: 0 0 12px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
.card h1 { font-size: clamp(2rem, 4vw, 3rem); }
.card h2 { font-size: 1.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(12,124,89,0.08);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.muted,
.hero-copy p,
.footnote {
  color: var(--muted);
  line-height: 1.65;
}

.hero-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-list li::before {
  content: "•";
  color: var(--primary);
  margin-right: 10px;
}

.stack {
  display: grid;
  gap: 12px;
}

label { font-weight: 700; }
input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: rgba(30,27,22,0.06);
  color: var(--text);
}

.dual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.flash-success { background: rgba(12,124,89,0.1); color: var(--primary-dark); }
.flash-error { background: rgba(187, 60, 27, 0.1); color: #8a2d12; }

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.status {
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-active { background: rgba(12,124,89,0.1); color: var(--primary-dark); }
.status-pending { background: rgba(213,153,31,0.14); color: #7b5a0e; }
.status-blocked { background: rgba(187,60,27,0.1); color: #8a2d12; }

.narrow {
  width: min(720px, 100%);
  margin: 0 auto;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .hero,
  .grid-two,
  .dashboard-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .dashboard-head {
    align-items: start;
  }

  .topbar {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
}

.profile-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.inline-link-strong {
  font-weight: 800;
}

.profile-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
}

.icon-button:hover {
  background: rgba(187,60,27,0.08);
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #229ed9;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}


.billing-form {
  gap: 16px;
}

.plan-card {
  display: block;
  cursor: pointer;
}

.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  transition: 160ms ease;
}

.plan-main {
  display: grid;
  gap: 6px;
}

.plan-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.plan-subtitle {
  color: var(--muted);
  line-height: 1.5;
  font-weight: 500;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
}

.plan-card:hover .plan-card-ui {
  border-color: rgba(12,124,89,0.28);
  transform: translateY(-1px);
}

.plan-card input:checked + .plan-card-ui {
  background: rgba(12,124,89,0.12);
  border-color: rgba(12,124,89,0.42);
  box-shadow: inset 0 0 0 1px rgba(12,124,89,0.14);
}

@media (max-width: 720px) {
  .plan-card-ui {
    align-items: start;
    flex-direction: column;
  }

  .plan-price {
    font-size: 1.35rem;
  }
}


.consent-row {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  font-weight: 500;
  color: var(--muted);
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.legal-copy {
  margin-bottom: 8px;
}

.legal-copy a,
.consent-row a {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(12,124,89,0.25);
}

.legal-copy a:hover,
.consent-row a:hover {
  border-color: currentColor;
}
