:root {
  --bg: #f7f7f5; --surface: #ffffff; --surface-2: #f0f0ec; --text: #15171c; --muted: #5f6470;
  --line: #e3e3de; --accent: #1f7a5a; --accent-ink: #ffffff; --accent-soft: #e3f2ec;
  --code-bg: #12151b; --code-text: #e6e8ec; --code-k: #8fb8ff; --code-s: #9be3b8; --code-c: #7d8594; --code-n: #f5c07a;
  --bad: #b42318; --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --surface: #13161d; --surface-2: #1a1e27; --text: #e9ebef; --muted: #9aa1ad;
    --line: #262b36; --accent: #3ccf95; --accent-ink: #062016; --accent-soft: #12291f;
    --code-bg: #0e1117; --bad: #ff8a80; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --surface: #13161d; --surface-2: #1a1e27; --text: #e9ebef; --muted: #9aa1ad;
  --line: #262b36; --accent: #3ccf95; --accent-ink: #062016; --accent-soft: #12291f;
  --code-bg: #0e1117; --bad: #ff8a80; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.logo svg { color: var(--accent); }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px;
  padding: 13px 20px; font: 600 15px/1 inherit; text-decoration: none; cursor: pointer; transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-full { width: 100%; margin-top: 18px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding-top: 72px; padding-bottom: 72px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
h1 { font-size: clamp(40px, 6vw, 62px); margin: 20px 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a5a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* form */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.25); scroll-margin-top: 80px; }
.form-card h2 { font-size: 22px; }
.form-card > form > .muted { margin: 4px 0 18px; font-size: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type=email], input[type=text], select {
  width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: inherit; font-size: 15px; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
input[aria-invalid=true] { border-color: var(--bad); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 18px; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.4em; font-size: 14px; margin: 10px 0 0; color: var(--bad); }
.done { text-align: center; padding: 24px 0; }
.done-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 26px; font-weight: 700; }
.done .muted { margin-top: 8px; word-break: break-word; }

/* code */
.code-sec { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; padding-bottom: 80px; }
.code-sec h2 { font-size: 30px; margin-bottom: 12px; }
.code { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: var(--radius); padding: 22px;
  overflow-x: auto; font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border: 1px solid var(--line); }
.code code { background: none; padding: 0; font: inherit; }
.k { color: var(--code-k); } .s { color: var(--code-s); } .c { color: var(--code-c); } .n { color: var(--code-n); }

/* features */
.sec-title { font-size: 30px; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 80px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 13px ui-monospace, monospace; color: var(--accent); margin-bottom: 8px; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* faq */
.faq { max-width: 760px; margin-bottom: 80px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* cta + footer */
.cta { text-align: center; padding-bottom: 80px; }
.cta h2 { font-size: 30px; margin-bottom: 20px; }
.foot { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; }
.foot p { margin: 4px 0; }

@media (max-width: 860px) {
  .hero, .code-sec { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}
@media (max-width: 480px) { .row { grid-template-columns: 1fr; gap: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
