@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --bg: #f6fff8;
  --bg-soft: #eefbf2;
  --bg-panel: rgba(255, 255, 255, 0.94);
  --bg-panel-strong: #ffffff;
  --bg-accent: #dff6e7;
  --border: rgba(18, 93, 56, 0.14);
  --border-strong: rgba(18, 93, 56, 0.28);
  --text: #102319;
  --text-soft: #446153;
  --text-muted: #6d8377;
  --accent: #18955a;
  --accent-strong: #0f7a47;
  --accent-soft: #dcf6e5;
  --accent-ghost: #eefaf2;
  --danger: #d54862;
  --warning: #8a6806;
  --shadow-lg: 0 30px 90px rgba(22, 92, 54, 0.12);
  --shadow-md: 0 20px 50px rgba(22, 92, 54, 0.08);
  --shadow-sm: 0 12px 28px rgba(22, 92, 54, 0.06);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.62;
  background:
    linear-gradient(125deg, rgba(24, 149, 90, 0.07) 0%, rgba(24, 149, 90, 0) 34%),
    radial-gradient(circle at top right, rgba(92, 209, 134, 0.18), rgba(92, 209, 134, 0) 36%),
    linear-gradient(180deg, #fbfffc 0%, #f2fcf5 52%, #edf9f0 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 90, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 90, 53, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.55), transparent 88%);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:not(.btn):hover {
  color: #0b633a;
}

.container {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.site-header {
  position: relative;
  z-index: 20;
  padding: 18px 0 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 78px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  font-size: clamp(1rem, 0.82vw + 0.92rem, 1.24rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.site-nav a:hover,
.site-nav button:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 149, 90, 0.18);
  background: rgba(24, 149, 90, 0.08);
  color: var(--text);
}

#user-info {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

#user-email {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.main {
  padding: 34px 0 90px;
}

.hero,
.section,
.card,
.form-card,
.payment-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 255, 248, 0.94));
  box-shadow: var(--shadow-md);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  padding: 34px;
  border-radius: 38px 18px 38px 18px;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 56%;
  height: 14px;
  background: linear-gradient(90deg, rgba(24, 149, 90, 0.9), rgba(24, 149, 90, 0));
}

.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 208, 119, 0.2), rgba(67, 208, 119, 0));
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 24px 14px 24px 14px;
  border: 1px solid rgba(24, 149, 90, 0.14);
  background:
    linear-gradient(160deg, rgba(24, 149, 90, 0.1), rgba(24, 149, 90, 0) 48%),
    rgba(255, 255, 255, 0.84);
}

.hero-panel h2,
.section h1,
.section h2,
.form-card h1,
.payment-card h1,
.card h2,
.card h3 {
  margin: 0;
  font-family: 'Sora', 'Manrope', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: clamp(2.35rem, 3vw + 1rem, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 0.97;
}

.hero p,
.section p,
.card p,
.form-card p,
.payment-card p,
.legal-doc p {
  margin: 0;
  color: var(--text-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(24, 149, 90, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.btn-primary,
.btn-primary:visited {
  background: linear-gradient(135deg, #107c48 0%, #1ebe6c 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(24, 149, 90, 0.24);
}

.btn-secondary,
.btn-secondary:visited {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost,
.btn-ghost:visited {
  background: var(--accent-ghost);
  color: var(--accent-strong);
  border-color: rgba(24, 149, 90, 0.14);
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.metric-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 149, 90, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-value {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.panel-caption {
  color: var(--text-soft);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section {
  margin-top: 24px;
  padding: 30px;
  border-radius: 28px 14px 28px 14px;
}

.card,
.form-card {
  padding: 24px;
  border-radius: 24px 12px 24px 12px;
}

.card::before,
.form-card::before,
.payment-card::before,
.section::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, rgba(24, 149, 90, 0.92), rgba(24, 149, 90, 0));
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.steps li + li {
  margin-top: 10px;
}

.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 14px;
  margin: 0;
}

.kv dt {
  color: var(--text-muted);
}

.kv dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  color: var(--text);
  font-weight: 800;
}

.input,
.input-row input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.input:focus,
.input-row input:focus {
  border-color: rgba(24, 149, 90, 0.36);
  box-shadow: 0 0 0 4px rgba(24, 149, 90, 0.11);
  transform: translateY(-1px);
}

.input-hint {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.form-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(213, 72, 98, 0.18);
  background: rgba(255, 235, 240, 0.9);
  color: #a9364d;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-pill.ok {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-pill.warn {
  background: #fff4d1;
  color: var(--warning);
}

.status-pill.fail {
  background: #ffe8ec;
  color: #b53c52;
}

.inline-note {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.surface-note {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(24, 149, 90, 0.22);
  background: linear-gradient(180deg, rgba(238, 250, 242, 0.95), rgba(255, 255, 255, 0.92));
  color: var(--text-soft);
}

.payment-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 38px 32px;
  border-radius: 30px 16px 30px 16px;
  text-align: center;
}

.emoji {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--accent-soft);
  font-size: 2rem;
}

.legal-doc {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-doc h2 {
  margin: 10px 0 0;
  font-size: 1.12rem;
}

.legal-doc ul {
  margin: 0;
  padding-left: 22px;
  color: var(--text-soft);
}

.footer {
  padding: 18px 0 46px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links .support-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent-ghost);
  border: 1px solid rgba(24, 149, 90, 0.14);
  color: var(--accent-strong);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .grid-2,
  .grid-3,
  .input-row {
    grid-template-columns: 1fr;
  }

  .inline-actions {
    width: 100%;
  }

  .inline-actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .site-header {
    padding-top: 12px;
  }

  .header-row,
  .footer-row {
    border-radius: 28px;
  }

  .brand {
    letter-spacing: 0.12em;
  }

  .main {
    padding: 24px 0 70px;
  }

  .hero,
  .section,
  .card,
  .form-card,
  .payment-card {
    padding: 22px;
  }

  .hero {
    border-radius: 28px 14px 28px 14px;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .btn,
  .site-nav a,
  .site-nav button {
    width: 100%;
  }

  .site-nav,
  #user-info {
    width: 100%;
  }

  .site-nav a,
  .site-nav button,
  #user-email {
    justify-content: center;
  }

  .footer-links {
    width: 100%;
  }

  .footer-links a {
    width: 100%;
    justify-content: center;
  }
}
