/* Clean landing, brand green for CTAs only */
:root {
  --accent: #388e3c;
  --accent-hover: #2e7d32;
  --text: #111827;
  --text-muted: #4b5563;
  --text-secondary: #374151;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --code-bg: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --max-w: 1080px;
  --section-y: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--text);
}

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header.scrolled {
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.logo-link img {
  width: 32px;
  height: 32px;
}

.logo-link span strong {
  color: var(--text);
  font-weight: 700;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
}

.nav-desktop a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions .btn-login {
  display: none;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
}

.header-actions .btn-login:hover {
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: 0.125rem;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.3rem 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  border-radius: 4px;
}

.lang-switch button.active {
  color: var(--text);
  background: var(--bg-subtle);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--bg-subtle);
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: #fff;
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile[hidden] {
  display: none !important;
}

body.menu-open {
  overflow: hidden;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .header-actions .btn-login {
    display: inline;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .header-actions .btn-primary {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 0.7rem 1.35rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 4.5rem);
  background: var(--bg);
}

.hero-inner {
  text-align: center;
  /* max-width: 40rem; */
  margin: 0 auto;
  padding-bottom: 3.5rem;
  padding-top: 2.5rem;
}

.hero h1 {
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 2rem auto 2.5rem;
  max-width: 60ch;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.hero-showcase {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 3rem 0 3.5rem;
}

.container-wide {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.showcase-hint {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.browser-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.browser-chrome span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--border-strong);
}

.browser-chrome span:nth-child(1) {
  background: #ff5f57;
}

.browser-chrome span:nth-child(2) {
  background: #febc2e;
}

.browser-chrome span:nth-child(3) {
  background: #28c840;
}

/* Sections */
section {
  padding: var(--section-y) 0;
}

.section-divider {
  border-top: 1px solid var(--border);
}

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

.section-header {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-top: 0.25rem;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.75rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 32ch;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Features — simple list grid */
.feature-grid {
  display: grid;
  gap: 2rem 2.5rem;
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Scripts */
.script-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: -1.5rem auto 2rem;
  max-width: 40rem;
}

.script-examples {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.script-example-toolbar {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.script-os-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: var(--border);
  border-radius: var(--radius);
}

.script-os-tabs button {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
}

.script-os-tabs button.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.script-type-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  padding: 1rem 1.25rem 0;
  margin: 0;
}

.script-panel {
  display: none;
}

.script-panel.active {
  display: block;
}

.script-panel pre {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.55;
  background: var(--code-bg);
  color: #f3f4f6;
}

.script-panel code {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

.script-footnote {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
}

/* Screenshots */
.screenshot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.screenshot-tabs button {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
}

.screenshot-tabs button.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.screenshot-frame {
  overflow: hidden;
  background: #fff;
}

.screenshot-frame img {
  width: 100%;
  cursor: zoom-in;
}

.screenshot-panel {
  display: none;
}

.screenshot-panel.active {
  display: block;
}

/* Screenshot lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-img {
  max-width: calc(100vw - 0.5rem);
  max-height: calc(100dvh - 0.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: none;
}

body.lightbox-open {
  overflow: hidden;
}

/* Integrations */
.integrations-intro {
  color: var(--text-muted);
}

.backup-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  max-height: 10rem;
  overflow: hidden;
  transition: max-height 0.35s ease;
  position: relative;
}

.backup-grid.expanded {
  max-height: none;
}

.backup-grid::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.section-alt .backup-grid::after {
  background: linear-gradient(transparent, var(--bg-subtle));
}

.backup-grid.expanded::after {
  opacity: 0;
}

.backup-tag {
  padding: 0.25rem 0.6rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.integrations-cta {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.pricing-toggle label {
  color: var(--text-light);
  cursor: pointer;
}

.pricing-toggle label.active {
  color: var(--text);
  font-weight: 600;
}

.pricing-save {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border-strong);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.toggle-switch[aria-checked="true"] {
  background: var(--text);
}

.toggle-switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.pricing-card .plan-name {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.pricing-card .price {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin: 0.75rem 0 0.35rem;
  letter-spacing: -0.03em;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.pricing-features li {
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* Demo */
.demo-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.demo-grid h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.demo-grid > div > p {
  color: var(--text-muted);
  margin: 0;
}

.demo-benefits {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.demo-benefits li {
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.demo-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  background: #fff;
}

.form-group input:focus {
  outline: 2px solid var(--text);
  outline-offset: 0;
  border-color: var(--text);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.captcha-row input {
  width: 4rem;
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  min-height: 1.25rem;
  margin: 0.25rem 0;
}

.form-legal {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin: 0.75rem 0 1rem;
}

.form-legal a {
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* FAQ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 1.1rem 2rem 1.1rem 0;
  border: none;
  background: none;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  position: relative;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--text-light);
  font-weight: 400;
}

.faq-item.open button::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Contact */
.contact-simple {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
}

.contact-simple a {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

.contact-simple a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 0.875rem;
}

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

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand p {
  margin: 0;
}

.footer-eu {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

[hidden] {
  display: none !important;
}
