:root {
  --green:  #2d5016;
  --green2: #3d6b1f;
  --green3: #4a7c24;
  --amber:  #b45309;
  --bg:     #f6f9f3;
  --card:   #ffffff;
  --text:   #1a1a1a;
  --muted:  #6b7280;
  --border: #d1d5db;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
}

/* ── Nav ── */
nav {
  background: var(--green);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
}
.logo { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.logo span { opacity: .7; font-weight: 400; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green3) 100%);
  color: #fff; text-align: center; padding: 44px 20px 64px;
}
.hero h1  { font-size: 34px; font-weight: 800; line-height: 1.2; max-width: 820px; margin: 0 auto; }
.hero-sub { font-size: 16px; opacity: .92; margin: 12px auto 0; max-width: 600px; }

/* ── Two-column lead layout ── */
.lead-grid {
  max-width: 1080px;
  margin: -32px auto 0;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Both cards share the SAME visual treatment so they read as a pair */
.lead-grid > .pitch,
.lead-grid > .form-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  padding: 32px 30px;
  margin: 0;
}

/* Pitch typography */
.pitch-h {
  font-size: 20px; color: var(--green); font-weight: 700;
  margin: 0 0 14px;
}
.pitch-desc {
  font-size: 14.5px; line-height: 1.6; color: #374151; margin: 0 0 22px;
}
.pitch-desc strong { color: var(--green); font-weight: 600; }
.pitch-bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
}
.pitch-bullets li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start; gap: 10px;
  line-height: 1.5; color: #374151;
}
.pitch-bullets .pb-ico {
  font-size: 17px; line-height: 1.2; padding-top: 2px;
}
.pitch-bullets strong { color: var(--green); font-weight: 600; font-size: 14px; display: block; margin-bottom: 2px; }
.pitch-bullets span   { color: #6b7280; font-size: 13px; line-height: 1.45; }
.pitch-foot {
  margin: 22px 0 0; padding-top: 18px;
  border-top: 1px dashed #d1d5db;
  font-size: 14px; color: #374151; text-align: center;
}
.pitch-foot strong { color: var(--green); font-weight: 700; }

/* Sample report preview */
.sample-report {
  margin: 22px 0 0;
  padding: 0;
}
.sample-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;          /* approximates a report screenshot */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.05);
  background: #f3f4f6;
  cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
  outline: none;
}
.sample-frame:hover,
.sample-frame:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.05);
}
.sample-zoom-hint {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(45, 80, 22, 0.92);
  color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  pointer-events: none;
  opacity: 0; transition: opacity .15s ease;
  z-index: 2;
}
.sample-frame:hover .sample-zoom-hint,
.sample-frame:focus-visible .sample-zoom-hint { opacity: 1; }

/* Lightbox modal */
.sample-modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.86);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 40px 24px;
  z-index: 9999;
  overflow-y: auto;
}
.sample-modal.open { display: flex; }
.sample-modal img {
  max-width: min(1100px, 96vw);
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  background: #fff;
}
.sample-modal-close {
  position: fixed; top: 16px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.92);
  border: none; border-radius: 50%;
  font-size: 26px; line-height: 1; color: #111827;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  z-index: 10000;
}
.sample-modal-close:hover { background: #fff; transform: scale(1.05); }
.sample-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;            /* show the top of the report */
}
.sample-frame::after {             /* soft fade at bottom = "more below" hint */
  content: "";
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.78) 100%);
  pointer-events: none;
}
.sample-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(
    45deg, #f3f4f6 0 12px, #e5e7eb 12px 24px
  );
  color: #6b7280; text-align: center;
}
.sp-icon  { font-size: 36px; margin-bottom: 8px; }
.sp-title { font-size: 14px; font-weight: 600; color: #374151; }
.sp-hint  { font-size: 12px; margin-top: 6px; }
.sp-hint code {
  background: #fff; padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--green);
}
.sample-report figcaption {
  margin-top: 8px;
  font-size: 12px; color: #6b7280; text-align: center; line-height: 1.4;
}

/* Form heading sized to match pitch heading */
.lead-grid > .form-card h2 {
  font-size: 20px; margin: 0 0 22px;
}

/* Stack on smaller screens */
@media (max-width: 900px) {
  .lead-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 40px;
  }
  .lead-grid > .pitch,
  .lead-grid > .form-card { padding: 26px 22px; }
}

/* ── Form card ── */
.form-wrap {
  max-width: 680px; margin: -28px auto 0; position: relative;
  padding: 0 20px 60px;
}
.form-card {
  background: var(--card); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14); padding: 36px 40px;
}
.form-card h2 { font-size: 18px; color: var(--green); margin-bottom: 24px; }

.field { margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
label .req { color: #dc2626; margin-left: 2px; }

select, input[type="email"], input[type="number"] {
  width: 100%; border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 12px; font-size: 14px; color: var(--text);
  background: #fff; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px;
}
input[type="email"], input[type="number"] {
  background-image: none; padding-right: 12px;
}
select:focus, input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,80,22,.12);
}
select:disabled { background: #f9fafb; color: var(--muted); cursor: not-allowed; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Keywords ── */
.kw-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 8px; margin-top: 4px;
}
.kw-item {
  display: flex; align-items: center; gap: 8px;
  background: #f9fafb; border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 12px; cursor: pointer;
  font-size: 13px; transition: border-color .15s, background .15s;
}
.kw-item:hover { border-color: var(--green); background: #f0fdf4; }
.kw-item input[type="checkbox"] { accent-color: var(--green); width: 15px; height: 15px; }

/* ── Price badge ── */
.price-badge {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
  padding: 14px 18px; margin: 6px 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.price-badge .amount { font-size: 28px; font-weight: 800; color: var(--green); }
.price-badge .detail { font-size: 12px; color: var(--muted); text-align: right; }

.btn-submit {
  width: 100%; padding: 14px; font-size: 16px; font-weight: 700;
  background: var(--green); color: #fff; border: none; border-radius: 8px;
  cursor: pointer; transition: background .15s; letter-spacing: .3px;
}
.btn-submit:hover { background: var(--green2); }
.btn-submit:disabled { background: var(--muted); cursor: not-allowed; }

.terms { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }
.terms a { color: var(--green); }

/* ── Trust strip ── */
.trust-strip {
  display: flex; justify-content: center; gap: 40px;
  padding: 40px 20px; flex-wrap: wrap;
}
.trust-item { text-align: center; max-width: 160px; }
.trust-icon { font-size: 28px; margin-bottom: 8px; }
.trust-item h3 { font-size: 14px; font-weight: 700; color: var(--green); }
.trust-item p  { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── How it works ── */
.how { background: var(--green); color: #fff; padding: 48px 40px; text-align: center; }
.how h2 { font-size: 24px; margin-bottom: 32px; }
.steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.step { max-width: 200px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin: 0 auto 12px;
}
.step h3 { font-size: 15px; font-weight: 700; }
.step p  { font-size: 13px; opacity: .8; margin-top: 6px; }

/* ── Footer ── */
footer {
  background: #1a2e0a; color: rgba(255,255,255,.5);
  text-align: center; font-size: 12px; padding: 20px;
}

/* ── Success page ── */
.success-page {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
}
.success-card {
  background: var(--card); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 60px 48px; text-align: center; max-width: 440px;
}
.check {
  width: 64px; height: 64px; border-radius: 50%;
  background: #d1fae5; color: var(--green);
  font-size: 32px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.success-card h1 { font-size: 26px; color: var(--green); }
.success-card p  { margin-top: 12px; color: #444; }
.success-card .hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.btn {
  display: inline-block; margin-top: 28px; padding: 12px 28px;
  background: var(--green); color: #fff; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 15px;
}
.btn:hover { background: var(--green2); }

/* Collapsible keyword-group accordion */
.kw-group {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafaf7;
  overflow: hidden;
}
.kw-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
  background: #f1f5e8;
  user-select: none;
  display: flex; align-items: center;
}
.kw-group > summary::-webkit-details-marker { display: none; }
.kw-group > summary::before {
  content: "\25B8";              /* right-pointing triangle */
  display: inline-block;
  margin-right: 10px;
  transition: transform 0.15s ease;
  font-size: 11px;
  color: var(--green);
}
.kw-group[open] > summary::before { transform: rotate(90deg); }
.kw-group[open] > summary { border-bottom: 1px solid #d1d5db; }
.kw-group > .kw-grid { padding: 12px; }

@media (max-width: 560px) {
  .form-card { padding: 24px 20px; }
  .hero h1   { font-size: 28px; }
  .row-2     { grid-template-columns: 1fr; }
  nav        { padding: 14px 20px; }
}
