:root {
  --bg: #ffffff;
  --bg-alt: #f3faf6;
  --ink: #0e2a1c;
  --ink-2: #3e5649;
  --ink-3: #5f7a69;
  --line: #d8e9df;
  --brand: #4fd17f;
  --brand-light: #a7f3c4;
  --accent: #15803d;
  --accent-dark: #0f6630;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 19px; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.25);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(21, 128, 61, 0.3); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-small { padding: 9px 16px; font-size: 15px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-alt); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-light { background: #fff; color: var(--accent-dark); box-shadow: 0 8px 24px rgba(14, 42, 28, 0.18); }
.btn-light:hover { background: #f3faf6; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand b { color: var(--accent); font-weight: 700; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f1fbf5 0%, #ffffff 100%);
  padding: 72px 0 88px;
}
.streaks {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(-62deg, transparent 0 34px, rgba(79, 209, 127, 0.10) 34px 36px);
  mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 65%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(79, 209, 127, 0.16); color: var(--accent-dark);
  font-size: 14px; font-weight: 600; margin-bottom: 20px;
}
h1 { font-size: clamp(40px, 6.2vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
h1 span { background: linear-gradient(90deg, var(--accent) 0%, #2fb866 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.lede.small { font-size: 18px; margin-top: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* Demo panel */
.demo {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(14, 42, 28, 0.25), 0 0 0 8px rgba(79, 209, 127, 0.08);
  overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; background: #fbfefc; }
.demo-bar .dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(79, 209, 127, 0.2); }
.demo-body { padding: 24px; min-height: 300px; display: flex; flex-direction: column; gap: 14px; }
.demo-hi { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.bubble { padding: 12px 16px; border-radius: 14px; font-size: 16px; max-width: 90%; }
.bubble.you { align-self: flex-end; background: var(--accent); color: #fff; display: flex; align-items: center; gap: 10px; border-bottom-right-radius: 4px; }
.bubble.done { background: var(--bg-alt); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mic { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1.2s ease-in-out infinite; flex: none; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.steps li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
/* Animated playback, added by site.js; without it everything is simply visible. */
.demo-body.play > * { opacity: 0; transform: translateY(8px); }
.demo-body.play > .show, .demo-body.play .steps li.show { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }
.demo-body.play .steps li { opacity: 0; }
.demo-body.play .steps { opacity: 1; transform: none; }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .6; } }

/* Marquee of example commands */
.strip { border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.marquee { padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 50s linear infinite; }
.marquee-track span { white-space: nowrap; color: var(--ink-2); font-weight: 500; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { margin-bottom: 40px; }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.how h3 { margin: 16px 0 8px; }
.how p { color: var(--ink-2); font-size: 16px; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; font-weight: 800; font-size: 18px; text-shadow: 0 1px 2px rgba(15, 81, 50, .35); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(14, 42, 28, 0.25); }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--ink-2); font-size: 16px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(79, 209, 127, 0.16); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.control { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.control h2 { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 36px; color: var(--ink-2); }
.checks li b { color: var(--ink); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 18px; color: var(--ink-2); }

.final {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, #2fb866 0%, var(--brand) 55%, var(--brand-light) 100%);
  padding: 96px 0;
}
.final .streaks { background-image: repeating-linear-gradient(-62deg, transparent 0 34px, rgba(255, 255, 255, 0.18) 34px 36px); mask-image: none; -webkit-mask-image: none; opacity: .7; }
.final .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.final img { border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 81, 50, 0.3); }
.final h2 { color: #fff; text-shadow: 0 2px 12px rgba(15, 81, 50, 0.3); }

.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid, .control { grid-template-columns: 1fr; gap: 40px; }
  .how, .grid { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
