:root {
  --ink: #0c1a14;
  --ink-soft: #1a2e24;
  --paper: #f4f7f5;
  --muted: #5c6f65;
  --line: #d8e4dc;
  --accent: #166534;
  --accent-bright: #22c55e;
  --gold: #ca8a04;
  --radius: 14px;
  --font: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--accent); }
img, video { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  position: relative;
  z-index: 40;
}
.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--ink);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 6px;
}
.brand-mark span { background: var(--paper); border-radius: 2px; }
.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { flex-shrink: 0; z-index: 1; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: #fff;
  border-color: rgba(12, 26, 20, 0.22);
  outline: none;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.site-nav.is-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.is-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.site-nav.is-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(12, 26, 20, 0.18);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn[disabled], .btn.is-placeholder {
  opacity: 0.55;
  pointer-events: none;
}

/* Hero */
.hero {
  padding: clamp(32px, 6vh, 64px) 0 clamp(48px, 8vh, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, #e8f5ec 0%, #d1e8d8 50%, #b8dcc4 100%);
  aspect-ratio: 4/3;
  will-change: transform;
}
.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
body.has-comfy-video .hero-video { display: block; }
body.has-comfy-video .hero-fallback-svg { opacity: 0; }
.hero-fallback-svg { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding: clamp(56px, 8vh, 88px) 0; }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .muted { color: #94a3b8; }
.section-head {
  margin-bottom: 40px;
  max-width: 560px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.muted { color: var(--muted); font-size: 16px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(12, 26, 20, 0.08);
}
.section-dark .card {
  background: var(--ink-soft);
  border-color: rgba(255,255,255,0.08);
}
.card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 10px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.section-dark .card p { color: #94a3b8; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-amt {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 16px 0;
}
.price-amt span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
  font-size: 14px;
  color: var(--muted);
}
.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.price-features li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--accent); }

.notice {
  padding: 14px 18px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 32px;
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-height: 320px; }

  .site-nav {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(12, 26, 20, 0.1);
  }

  .site-nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(12, 26, 20, 0.05);
    color: var(--ink);
  }

  .nav-cta {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual { transform: none !important; }
  .nav-toggle-bars span { transition: none; }
}
