:root {
  --green: #08a36f;
  --green-dark: #047857;
  --green-soft: #e9fff5;
  --ink: #111827;
  --muted: #5b6472;
  --bg: #f7f8f5;
  --line: #e2e6de;
  --panel: #ffffff;
  --tan: #bc965c;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--green);
  color: #fff;
}

.site-header .wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.brand svg {
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-nav .sep {
  color: rgba(255, 255, 255, 0.5);
}

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

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 26px;
  max-width: 46ch;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 800;
  min-height: 52px;
  cursor: pointer;
  text-decoration: none;
}

.cta-primary:hover {
  background: var(--green-dark);
}

.cta-secondary {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 2px;
}

.cta-secondary:hover {
  color: var(--green-dark);
}

.hero-art {
  justify-self: center;
}

/* Features */
.features {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 52px 0;
}

.features h2 {
  text-align: center;
  font-size: 26px;
  margin: 0 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}

.feature {
  display: flex;
  gap: 14px;
}

.feature .icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
}

.feature h3 {
  margin: 2px 0 6px;
  font-size: 16px;
}

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

/* Downloads */
.downloads {
  padding: 52px 0;
}

.downloads h2 {
  text-align: center;
  font-size: 26px;
  margin: 0 0 36px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.download-btn .btn-face {
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.download-btn:hover .btn-face {
  background: var(--green-dark);
}

.download-btn span.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* Template demo (looping video + collapsible description) */
.template-demo {
  border-bottom: 1px solid var(--line);
  padding: 52px 0;
}

.template-demo h2 {
  text-align: center;
  font-size: 26px;
  margin: 0 0 30px;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 76 / 45;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.12);
  background: #000;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-text {
  max-width: 72ch;
  margin: 26px auto 0;
}

.template-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.template-copy + .template-copy {
  margin-top: 16px;
}

.template-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.template-more .template-copy {
  margin-top: 16px;
}

.template-toggle {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: 0;
  padding: 6px 4px;
  color: var(--green-dark);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.template-toggle:hover {
  color: var(--green);
}

/* Footer */
.site-footer {
  background: #eef1ec;
  border-top: 1px solid var(--line);
  padding: 0;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

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

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

.footer-bottom .brand {
  color: var(--green-dark);
  font-size: 15px;
}

/* Stub / download-detail pages */
.stub-page {
  padding: 64px 0 80px;
}

.stub-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}

.stub-card .platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
}

.stub-card h1 {
  font-size: 22px;
  margin: 0 0 14px;
}

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

.stub-card .cta-primary {
  width: 100%;
  justify-content: center;
}

.stub-back {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.stub-back:hover {
  color: var(--green-dark);
}

/* Cookie consent */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.14);
  padding: 20px 22px;
  display: none;
}

.consent-banner.visible {
  display: block;
}

.consent-banner p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
}

.consent-banner a {
  color: var(--green-dark);
  font-weight: 700;
}

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

.consent-actions button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.consent-actions button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.consent-actions button.primary:hover {
  background: var(--green-dark);
}

.consent-actions button:not(.primary):hover {
  border-color: #c7ccc3;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    max-width: 360px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
  .template-demo {
    padding: 40px 0;
  }
  .template-copy {
    font-size: 15.5px;
  }
}

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    font-size: 14px;
  }
  .site-nav a {
    padding: 8px;
  }
  .template-demo h2 {
    font-size: 22px;
  }
  .video-frame {
    border-radius: 12px;
  }
  .template-text {
    margin-top: 20px;
  }
}
