:root {
  --ink: #142018;
  --muted: #5a6b60;
  --line: rgba(20, 32, 24, 0.12);
  --paper: #f3efe6;
  --paper-2: #e7efe8;
  --accent: #1f7a4d;
  --accent-2: #0e5c3a;
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px rgba(20, 32, 24, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Heebo", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d8eadc 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f0e2c8 0%, transparent 50%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 32, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 24, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.top, main, .foot { position: relative; z-index: 1; }

.top {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,0.55);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #f4fff8;
}
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.full { width: 100%; }

.hero {
  width: min(860px, calc(100% - 32px));
  margin: clamp(28px, 8vh, 72px) auto 48px;
  text-align: center;
  animation: rise .7s ease both;
}

.brand-mark {
  margin: 0 0 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-2);
}

.hero h1 {
  margin: 0 0 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 4.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lead {
  margin: 0 auto 22px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.plans, .how {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 64px;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plan {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rise .75s ease both;
}
.plan:nth-child(2) { animation-delay: .06s; }
.plan:nth-child(3) { animation-delay: .12s; }

.plan.is-featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(232, 245, 236, 0.85));
}

.ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #f4fff8;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan h3 {
  margin: 0;
  font-size: 1.2rem;
}
.price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price .currency { font-size: 1.1rem; margin-inline-end: 2px; }
.price .per { font-size: 0.95rem; color: var(--muted); font-family: "Heebo", sans-serif; font-weight: 600; margin-inline-start: 4px; }
.plan-desc { margin: 0; color: var(--muted); line-height: 1.5; min-height: 3em; }

.features {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
}
.features li {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(20, 32, 24, 0.04);
  font-size: 0.92rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}
.steps li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #f4fff8;
  font-weight: 800;
  margin-bottom: 4px;
}
.steps strong { font-size: 1.05rem; }
.steps span { color: var(--muted); }

.foot {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  color: var(--muted);
}
.foot a { color: inherit; font-weight: 700; }
.foot strong { color: var(--ink); display: block; margin-bottom: 4px; }
.foot p { margin: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .plan-grid, .steps { grid-template-columns: 1fr; }
  .plan.is-featured { transform: none; }
  .foot { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .plan { animation: none !important; }
}
