/* ---------- Theme variables ---------- */
:root {
  --bg: 246 248 251;
  --surface: 255 255 255;
  --text: 15 23 42;
  --muted: 71 85 105;
  --border: 226 232 240;
  --brand: 16 185 129;   /* emerald-500 */
  --brand2: 5 150 105;   /* emerald-600 */
  --shadow: 15 23 42 / 0.08;
}

html[data-theme="emerald"] {
  --bg: 246 248 251;
  --surface: 255 255 255;
  --text: 15 23 42;
  --muted: 71 85 105;
  --border: 226 232 240;
  --brand: 16 185 129;
  --brand2: 5 150 105;
  --shadow: 15 23 42 / 0.08;
}

html[data-theme="sepia"] {
  --bg: 250 244 233;
  --surface: 255 252 245;
  --text: 40 32 25;
  --muted: 92 78 66;
  --border: 230 216 196;
  --brand: 16 185 129;
  --brand2: 5 150 105;
  --shadow: 40 32 25 / 0.10;
}

html[data-theme="dark"] {
  --bg: 10 13 18;
  --surface: 17 24 39;
  --text: 226 232 240;
  --muted: 148 163 184;
  --border: 51 65 85;
  --brand: 16 185 129;
  --brand2: 52 211 153;
  --shadow: 0 0 0 / 0.35;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: rgb(var(--text));
  background: rgb(var(--bg));
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgb(var(--border));
  background: rgba(var(--surface), 0.82);
  backdrop-filter: blur(10px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 14px;
  background: rgba(var(--brand), 0.15);
  border: 1px solid rgba(var(--brand), 0.25);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgb(var(--brand));
}
.brand__name { font-weight: 700; letter-spacing: -0.02em; }
.brand__tag { font-size: 12px; color: rgb(var(--muted)); }

.nav { display: none; gap: 18px; font-size: 14px; color: rgb(var(--muted)); }
.nav a:hover { color: rgb(var(--text)); text-decoration: none; }

.header__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.segmented {
  display: inline-flex;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 10px 30px rgb(var(--shadow));
}
.segmented__btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgb(var(--muted));
  cursor: pointer;
  transition: 120ms ease;
}
.segmented__btn:hover { background: rgb(var(--bg)); color: rgb(var(--text)); }
.segmented__btn.is-active { background: rgb(var(--brand)); color: white; }

/* Main */
.main { padding: 28px 0 56px; }
.page { display: none; }
.page.is-visible { display: block; }

/* Hero / grid */
.grid { display: grid; gap: 18px; }
.hero { align-items: start; }
.hero__left, .hero__right { display: grid; gap: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  color: rgb(var(--muted));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 10px 30px rgb(var(--shadow));
}
.dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgb(var(--brand));
}

h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.lead { margin: 0; font-size: 15px; color: rgb(var(--muted)); max-width: 64ch; }
.micro { margin: 0; font-size: 12px; color: rgb(var(--muted)); }

/* Form */
.form { display: flex; gap: 10px; flex-direction: column; }
.form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  color: rgb(var(--text));
  outline: none;
}
.form input:focus { border-color: rgba(var(--brand), 0.7); box-shadow: 0 0 0 3px rgba(var(--brand), 0.25); }

.form button {
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  background: rgb(var(--brand));
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 30px rgb(var(--shadow));
}
.form button:hover { background: rgb(var(--brand2)); }

.ctaRow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  color: rgb(var(--text));
  font-weight: 700;
  box-shadow: 0 10px 30px rgb(var(--shadow));
  text-decoration: none;
}
.btn:hover { background: rgb(var(--bg)); text-decoration: none; }
.btn--primary {
  background: rgb(var(--brand));
  color: white;
  border-color: transparent;
}
.btn--primary:hover { background: rgb(var(--brand2)); }
.btn--link {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: rgb(var(--muted));
  padding: 11px 6px;
}
.btn--link:hover { color: rgb(var(--text)); }

/* Cards */
.cards { display: grid; gap: 12px; }
.card, .panel, .feature, .step, .priceCard {
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 30px rgb(var(--shadow));
}
.card h3, .panel h3, .feature h3, .step h3, .priceCard h3 { margin: 0; font-size: 14px; }
.card p, .feature p, .step p { margin: 8px 0 0; color: rgb(var(--muted)); font-size: 13px; }

.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(var(--brand), 0.15);
  border: 1px solid rgba(var(--brand), 0.25);
  color: rgb(var(--brand));
  font-weight: 800;
}
.badge--top { position: absolute; top: 14px; right: 14px; }
.panel { display: grid; gap: 12px; }

.list { margin: 0; padding-left: 18px; color: rgb(var(--muted)); font-size: 13px; }
.list li { margin: 7px 0; }

.tip {
  border-radius: 18px;
  background: rgb(var(--bg));
  padding: 12px;
}
.tip__label { font-size: 12px; color: rgb(var(--muted)); }
.tip__text { font-size: 13px; margin-top: 4px; }

.miniCards { display: grid; gap: 10px; }
.miniCard {
  border-radius: 18px;
  background: rgb(var(--bg));
  padding: 12px;
  display: grid;
  gap: 4px;
}
.miniCard b { font-size: 13px; }
.miniCard span { font-size: 13px; color: rgb(var(--muted)); }

/* Sections */
.section { margin-top: 42px; }
.section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.steps, .featureGrid, .faqGrid, .pricing { display: grid; gap: 12px; }

.step__num {
  width: 36px; height: 36px;
  border-radius: 14px;
  background: rgba(var(--brand), 0.15);
  border: 1px solid rgba(var(--brand), 0.25);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgb(var(--brand));
  margin-bottom: 10px;
}

.faq {
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgb(var(--shadow));
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: rgb(var(--muted)); font-size: 13px; }

.pricing { margin-top: 12px; }
.priceCard { position: relative; display: grid; gap: 10px; }
.priceCard ul { margin: 0; padding-left: 18px; color: rgb(var(--muted)); font-size: 13px; }
.price { margin: 0; font-size: 26px; letter-spacing: -0.03em; font-weight: 900; }
.priceCard--featured { border-color: rgba(var(--brand), 0.5); box-shadow: 0 18px 60px rgba(var(--brand), 0.18); }

/* Footer */
.footer {
  border-top: 1px solid rgb(var(--border));
  padding: 18px 0 28px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgb(var(--muted));
  font-size: 13px;
}
.footer__links { display: flex; gap: 14px; flex-wrap: wrap; }

/* Responsive */
@media (min-width: 760px) {
  .nav { display: flex; }
  .grid { grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
  .form { flex-direction: row; align-items: center; }
  .form input { flex: 1; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .featureGrid { grid-template-columns: repeat(2, 1fr); }
  .faqGrid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  h1 { font-size: 46px; }
  .lead { font-size: 17px; }
}