:root {
  --brand-green: #72BF78;
  --brand-green-light: #A0D683;
  --brand-pale-green: #D3EE98;
  --brand-pale-yellow: #FEFF9F;
  --black: #0d120d;
  --ink: #1a1d1a;
  --ink-soft: #55604f;
  --paper: #ffffff;
  --paper-soft: #f7faf3;
  --border: #dfe8d8;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 46, 31, 0.1);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-green); text-underline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo span { color: var(--brand-green); }
.logo-mark {
  height: 28px;
  width: auto;
  display: block;
}
.logo-small { font-size: 1rem; }
.logo-small .logo-mark { height: 22px; }
.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-green); text-underline-offset: 3px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand-green);
  color: var(--ink);
}
.btn-primary:hover { background: var(--brand-green-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--brand-green-light);
}
.btn-ghost:hover { border-color: var(--brand-green); background: var(--brand-pale-green); }
.btn-dark {
  background: var(--black);
  color: #fff;
}
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; }

/* Hero */
.hero {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, var(--brand-pale-green) 0%, #ffffff 70%);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--brand-green-light);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-sub { font-size: 1.15rem; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; margin: 28px 0 18px; flex-wrap: wrap; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); }

section { padding: 88px 0; }
.section-sub { max-width: 620px; font-size: 1.05rem; margin-bottom: 40px; }

/* Tools strip */
.tools-strip { padding: 40px 0; background: var(--paper-soft); border-bottom: 1px solid var(--border); }
.tools-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.tools-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.tool-logo { height: 24px; width: auto; opacity: 0.75; }
.tool-logo-klaviyo { height: 20px; }

/* Carousel base */
.carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  flex: 1;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover { background: var(--brand-pale-green); }

/* Results */
.results { background: var(--paper); }
.result-slide {
  flex: 0 0 min(720px, 88vw);
  scroll-snap-align: center;
  background: var(--black);
  border-radius: 20px;
  padding: 32px;
  color: #fff;
}
.result-slide h3 { color: #fff; text-align: center; margin-bottom: 20px; }
.result-slide img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 18px;
}
.result-slide p { color: var(--brand-pale-green); font-size: 0.95rem; margin-bottom: 0; text-align: center; }

/* Email designs */
.designs {
  background: var(--black);
  background-image:
    repeating-linear-gradient(0deg, rgba(114,191,120,0.08) 0, rgba(114,191,120,0.08) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(90deg, rgba(114,191,120,0.08) 0, rgba(114,191,120,0.08) 1px, transparent 1px, transparent 64px);
  color: #fff;
}
.designs h2, .designs .section-sub { color: #fff; text-align: center; margin-left: auto; margin-right: auto; }
.designs .section-sub { color: var(--brand-pale-green); }
.design-frame {
  flex: 0 0 280px;
  height: 460px;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  background: #fff;
}
.design-frame img {
  width: 280px;
  height: auto;
  display: block;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
}
.carousel-dot.active { background: var(--brand-green); }
.designs-cta { text-align: center; margin-top: 40px; }

/* Testimonials */
.testimonials { background: var(--paper); overflow: hidden; }
.testimonial-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 24px;
  padding: 20px 0 10px;
}
.testi-shot {
  width: 320px;
  max-width: 42vw;
  border-radius: 12px;
  border: 6px solid #fff;
  box-shadow: 0 12px 28px rgba(15,46,31,0.18);
  display: block;
}
.testi-rot-1 { transform: rotate(-3deg); }
.testi-rot-2 { transform: rotate(2deg); }
.testi-rot-3 { transform: rotate(-1.5deg); }
.testi-rot-4 { transform: rotate(3deg); }
.testi-rot-5 { transform: rotate(-2deg); }
.testi-shot:hover { transform: rotate(0deg) scale(1.04); transition: transform 0.2s ease; position: relative; z-index: 2; }

/* Comparison table */
.compare { background: var(--brand-pale-yellow); }
.compare-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.compare-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.compare-cell {
  padding: 16px 24px;
  background: var(--paper);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.compare-highlight { background: var(--brand-green); color: var(--ink); font-weight: 600; }
.compare-head .compare-cell { font-weight: 800; color: var(--ink); }
.compare-head .compare-highlight { background: var(--ink); color: #fff; }

/* Services grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--brand-pale-green);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon { font-size: 1.6rem; margin-bottom: 14px; }
.card p { margin-bottom: 0; font-size: 0.97rem; color: var(--ink-soft); }

/* Process */
.process { background: var(--brand-pale-yellow); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.step p { font-size: 0.95rem; margin-bottom: 0; }

/* About */
.about { background: var(--black); color: #fff; }
.about-inner { max-width: 640px; text-align: center; margin: 0 auto; }
.about h2 { color: #fff; }
.about p { color: var(--brand-pale-green); font-size: 1.05rem; margin-bottom: 0; }
.about-bullets {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 0;
  margin: 24px 0 0;
  font-weight: 600;
  color: #fff;
}

/* Contact */
.contact { background: var(--brand-green-light); }
.contact-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.contact h2 { color: var(--ink); }
.contact p { color: var(--ink); opacity: 0.8; }
.contact .btn-primary { background: var(--black); color: #fff; }
.contact .btn-primary:hover { background: #000; }

/* Footer */
.site-footer { background: var(--black); padding: 32px 0; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: var(--brand-pale-green); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.footer-inner p { margin: 0; font-size: 0.9rem; color: var(--brand-pale-green); }
.footer-inner a { color: #fff; text-decoration-color: var(--brand-pale-green); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
}
.footer-nav a {
  color: var(--brand-pale-green);
  font-size: 0.85rem;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .compare-cell { padding: 14px 16px; font-size: 0.88rem; }
  .tools-row { gap: 36px; }
  .result-slide { flex-basis: 92vw; padding: 24px; }
  .testi-shot { max-width: 46vw; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .carousel-outer { padding: 0 12px; gap: 8px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.1rem; }
  .design-frame { flex-basis: 220px; height: 380px; }
  .design-frame img { width: 220px; height: auto; }
  .testi-shot { width: 100%; max-width: 100%; transform: none !important; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-inner .btn-small { display: none; }
}
