:root {
  --bg: #ffffff;
  --bg-soft: #f6f9f7;
  --ink: #0c1712;
  --ink-2: #33433b;
  --muted: #66766e;
  --line: #e3eae6;
  --line-2: #d3ddd8;
  --green: #12a150;
  --green-ink: #0b7a3b;
  --green-deep: #0a5c2e;
  --green-tint: #ecf8f1;
  --green-tint-2: #d9f2e3;
  --red: #c4372f;
  --red-tint: #fdf0ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 23, 18, 0.04), 0 8px 24px -8px rgba(12, 23, 18, 0.10), 0 32px 64px -32px rgba(10, 92, 46, 0.18);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 520px at 50% -180px, var(--green-tint) 0%, rgba(236, 248, 241, 0) 70%);
  background-repeat: no-repeat;
}
a { color: var(--green-ink); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font: 500 0.86em var(--mono); background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; }
[data-lucide], svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex: none; }
[hidden] { display: none !important; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 16.5px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.nav-links a { color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-source { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.nav-source svg { width: 16px; height: 16px; }

/* hero */
main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero { text-align: center; padding: 56px 0 28px; max-width: 680px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 550; color: var(--green-deep); background: #fff; border: 1px solid var(--green-tint-2); padding: 6px 13px; border-radius: 999px; box-shadow: 0 1px 2px rgba(10, 92, 46, 0.06); }
.eyebrow svg { width: 15px; height: 15px; color: var(--green); }
h1 { font-size: clamp(34px, 6.2vw, 58px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; margin: 22px 0 16px; }
h1 em { font-style: normal; color: var(--green); }
.lead { font-size: clamp(16.5px, 2.2vw, 19px); color: var(--muted); margin: 0 auto; max-width: 520px; }

/* wizard */
.wizard { max-width: 600px; margin: 8px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 26px 28px 30px; scroll-margin-top: 88px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 26px; padding: 0; position: relative; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line); border-radius: 2px; transition: background 0.3s; }
.stepper li.done:not(:last-child)::after { background: var(--green); }
.dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--font); color: var(--muted); background: #fff; border: 1.5px solid var(--line-2); transition: all 0.25s; }
.dot svg { display: none; width: 15px; height: 15px; stroke-width: 3; }
.stepper li.active .dot { border-color: var(--green); color: var(--green-ink); box-shadow: 0 0 0 4px var(--green-tint); }
.stepper li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.stepper li.done .dot svg { display: block; }
.stepper li.done .dot b { display: none; }
.label { font-size: 12.5px; font-weight: 550; color: var(--muted); }
.stepper li.active .label { color: var(--ink); }

.panel { display: none; animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.panel.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel h2 { font-size: 23px; letter-spacing: -0.03em; margin: 0 0 6px; font-weight: 650; }
.sub { color: var(--muted); margin: 0 0 20px; }
.sub strong { color: var(--ink); }

.free { display: inline-flex; align-items: center; font: 600 11.5px var(--font); letter-spacing: 0.01em; color: var(--green-deep); background: var(--green-tint); border: 1px solid var(--green-tint-2); padding: 1px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; }

.needs, .install { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.needs li, .install li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.needs strong, .install strong { display: block; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; }
.needs span:not(.free):not(.ico), .install span:not(.free):not(.n) { display: block; color: var(--muted); font-size: 14.5px; }
.needs li span.free, .install li span.free { display: inline-flex; }
.ico { width: 38px; height: 38px; border-radius: 11px; background: var(--green-tint); color: var(--green-ink); display: grid !important; place-items: center; flex: none; }
.n { width: 28px; height: 28px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); font-weight: 650; font-size: 14px; display: grid; place-items: center; flex: none; margin-top: 1px; }

.btn { appearance: none; border: 0; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 20px; border-radius: 13px; font: 600 16px var(--font); letter-spacing: -0.01em; cursor: pointer; transition: transform 0.08s, box-shadow 0.2s, background 0.2s, opacity 0.2s; text-decoration: none !important; }
.btn:active { transform: scale(0.985); }
.btn.primary { background: linear-gradient(180deg, #16ad59, var(--green-ink)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px -6px rgba(11, 122, 59, 0.55); }
.btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 22px -8px rgba(11, 122, 59, 0.6); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(12, 23, 18, 0.6); }
.btn.secondary { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); margin-top: 14px; }
.btn:disabled { opacity: 0.38; cursor: default; box-shadow: none; transform: none; }

.connect { display: grid; gap: 12px; }
.who { margin: 0; font-weight: 550; color: var(--green-deep); display: flex; align-items: center; gap: 8px; }
.hint { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 14px; margin: 0; }
.hint svg { width: 16px; height: 16px; margin-top: 2px; color: var(--green); }
.hint.center { justify-content: center; text-align: left; margin-top: 14px; }

.tiles { display: grid; gap: 10px; margin-bottom: 12px; }
.tile { appearance: none; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: #fff; font: inherit; color: inherit; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.tile:hover { border-color: var(--green); background: #fbfefc; }
.tile-text { flex: 1; min-width: 0; }
.tile-text strong { display: block; font: 600 15px var(--mono); letter-spacing: -0.01em; }
.tile-text span { display: block; color: var(--muted); font-size: 13.5px; }
.state { font-size: 13.5px; font-weight: 600; color: var(--green-ink); background: var(--green-tint); padding: 6px 11px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.state svg { width: 14px; height: 14px; stroke-width: 3; }
.tile.ok { border-style: solid; border-color: var(--green-tint-2); background: #fbfefc; }
.tile.ok .state { background: var(--green); color: #fff; }

.link-btn { appearance: none; border: 0; background: none; padding: 6px 0; font: 500 14px var(--font); color: var(--green-ink); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.link-btn svg { width: 16px; height: 16px; }
.panel[data-step="4"] .link-btn { display: flex; margin: 14px auto 0; }
.advanced { margin: 6px 0 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.advanced summary { cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; margin-top: 10px; }
.check input { margin-top: 4px; accent-color: var(--green); width: 17px; height: 17px; }

.building { text-align: center; padding: 6px 0 4px; }
.pulse { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--green-tint); color: var(--green-ink); position: relative; }
.pulse svg { width: 28px; height: 28px; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 24px; border: 2px solid var(--green-tint-2); animation: ring 1.8s ease-out infinite; }
.pulse.done { background: var(--green); color: #fff; }
.pulse.done::after { display: none; }
@keyframes ring { from { opacity: 1; transform: scale(0.94); } to { opacity: 0; transform: scale(1.18); } }
.bar { height: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 18px 0 2px; }
.bar > div { height: 100%; width: 0; background: linear-gradient(90deg, #22c06a, var(--green-ink)); border-radius: 999px; transition: width 0.6s ease; }

.message { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--red-tint); color: var(--red); font-size: 14.5px; border: 1px solid #f6d6d3; }
.message.info { background: var(--green-tint); color: var(--green-deep); border-color: var(--green-tint-2); }
.message a { color: inherit; text-decoration: underline; }

/* sections */
.section { padding: 88px 0 0; }
.section-title { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.04em; margin: 0 0 8px; text-align: center; font-weight: 700; }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 34px; max-width: 520px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.card h3 { margin: 16px 0 6px; font-size: 17.5px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { max-width: 720px; margin: 26px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 19px 2px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: -4px 2px 20px; color: var(--ink-2); max-width: 640px; }

.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 72px; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.link-card:hover { text-decoration: none; border-color: var(--green-tint-2); box-shadow: 0 6px 18px -10px rgba(10, 92, 46, 0.3); }
.link-card > svg:first-child { color: var(--green-ink); width: 20px; height: 20px; }
.link-card div { flex: 1; min-width: 0; }
.link-card strong { display: block; font-size: 15px; font-weight: 600; }
.link-card span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.link-card .ext { width: 15px; height: 15px; color: var(--muted); }

.footer { max-width: 1080px; margin: 72px auto 0; padding: 26px 20px 48px; border-top: 1px solid var(--line); }
.footer p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 640px; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  main { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-source) { display: none; }
  .hero { padding: 36px 0 22px; }
  .wizard { padding: 20px 16px 22px; border-radius: 20px; margin: 0 -4px; }
  .label { font-size: 11px; }
  .stepper li:not(:last-child)::after { left: calc(50% + 17px); right: calc(-50% + 17px); }
  .links { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
}

.option { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); cursor: pointer; }
.option input { margin-top: 3px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.option span { color: var(--muted); font-size: 14px; }
.option strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
