:root {
  --bg: #f7f9f7;
  --surface: #ffffff;
  --ink: #294329;
  --text: #3b443b;
  --muted: #5b635b;
  --line: #e4e7e4;
  --green: #3aa238;
  --green-dark: #2d7f2b;
  --green-soft: #e5f4e5;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green-dark);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin-bottom: 28px;
}

h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

code {
  background: #eef0ee;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 760px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-tag {
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 7px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--green-dark);
}

.menu-toggle,
.menu-button {
  display: none;
}

/* Buttons */
.button,
.nav a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 22px;
  transition: background-color 0.15s ease;
}

.button:hover,
.nav a.button:hover {
  background: var(--green-dark);
  color: #fff;
}

.button-small {
  padding: 8px 16px;
  font-size: 14px;
}

.button-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-ghost:hover {
  background: var(--green-soft);
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 12px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 18px 0 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}

.hero-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(41, 67, 41, 0.14);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-lead {
  color: var(--muted);
  margin: -16px 0 24px;
}

.grid {
  display: grid;
  gap: 18px;
}

.features {
  grid-template-columns: repeat(4, 1fr);
}

.steps {
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.section-alt .card {
  background: var(--bg);
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Demo */
.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 7px;
  padding: 8px 18px;
  cursor: pointer;
}

.tabs button[aria-selected='true'] {
  background: var(--green);
  color: #fff;
}

.video {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Guide: video beside its steps */
.guide {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.guide[hidden] {
  display: none;
}

/* Steps */
.list {
  padding-left: 22px;
  margin: 0;
}

.list li {
  margin: 10px 0;
}

.note {
  margin-top: 24px;
  background: var(--green-soft);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
}

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Footer, kept at the bottom of short pages */
main {
  flex: 1;
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand p {
  margin: 12px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 36px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 20px;
  font-size: 13px;
}

/* Phones and small tablets: stacked layout, menu behind a button */
@media (max-width: 860px) {
  .hero-inner,
  .guide,
  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0;
  }

  .menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  .menu-button span,
  .menu-button span::before,
  .menu-button span::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    position: relative;
  }

  .menu-button span::before {
    position: absolute;
    top: -6px;
  }

  .menu-button span::after {
    position: absolute;
    top: 6px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }

  .nav a {
    padding: 12px 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .menu-toggle:checked ~ .nav {
    display: flex;
  }
}

/* Not found */
.not-found {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.not-found .code {
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.not-found .actions {
  justify-content: center;
}

/* Version history */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.versions {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.versions th,
.versions td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.versions th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.versions tr:last-child td {
  border-bottom: 0;
}

.versions td:last-child {
  text-align: right;
}

.tag {
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 560px) {
  .versions th,
  .versions td {
    padding: 12px;
    white-space: normal;
  }

  .versions .tag {
    display: table;
    margin: 4px 0 0;
  }

  .versions th:nth-child(3),
  .versions td:nth-child(3) {
    display: none;
  }
}
