/* ─────────────────────────────────────────────
   Checklight — Light-Mode Editorial CSS
   Background: #FAF9F6  Headings: #1C3A27  Body: #3E403C  Primary: #1C3A27  Accent: #D97706
   ───────────────────────────────────────────── */

:root {
  --bg: #FAF9F6;
  --sand: #FAF9F6;
  --sand-dark: #F0EEE8;
  --sand-mid: #E4E0D8;
  --text: #1C3A27;
  --ink: #1C3A27;
  --ink-light: #3E403C;
  --green: #1C3A27;
  --green-light: #2C5E43;
  --green-dark: #142D1E;
  --sage: #E8EFE9;
  --ochre: #D97706;
  --ochre-light: #F59E0B;
  --ochre-dark: #B45309;
  --warm-grey: #78716C;
  --warm-grey-light: #A8A29E;
  --white: #FFFFFF;
  --error: #DC2626;
  --success: #1C3A27;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(28,25,23,0.08);
  --shadow-md: 0 4px 16px rgba(28,25,23,0.10);
  --shadow-lg: 0 8px 32px rgba(28,25,23,0.12);
  --transition: 0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

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

/* ── Site Header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--sand-dark);
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; color: var(--green-dark); }

.brand-name {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 3px;
}
.brand-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ochre);
  border-radius: 2px;
}
.brand-name:hover { text-decoration: none; color: var(--green-dark); }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.header-nav a:hover { background: var(--green-dark); color: var(--white); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-secondary:hover { background: var(--green); color: var(--white); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink-light);
  border: 1.5px solid var(--sand-mid);
}
.btn-ghost:hover { background: var(--sand-dark); color: var(--ink); text-decoration: none; }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 17px; }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Hero ── */
.hero {
  background: var(--bg);
  color: var(--ink);
  padding: 80px 40px 90px;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ochre);
  margin-bottom: 20px;
  font-weight: 600;
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--ink);
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-light);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  font-size: 14px;
  color: var(--warm-grey);
  margin-top: 16px;
  font-style: italic;
}
.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--sand-mid);
  padding-top: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 32px;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: var(--warm-grey); text-transform: uppercase; letter-spacing: 1px; }

/* ── Sections ── */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark {
  background: var(--ink);
  color: var(--sand);
}
.section-warm { background: var(--sand-dark); }
.section-header { margin-bottom: 40px; }
.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ochre);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}
.section-sub {
  font-size: 18px;
  color: var(--warm-grey);
  margin-top: 12px;
  max-width: 540px;
}

/* ── Cards ── */
.card {
  background: var(--sage);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: none;
  border: 1px solid var(--sand-dark);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Features ── */
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--ochre);
  font-size: 22px;
}
.feature-card { padding: 28px; }
.feature-card h3 { color: var(--ink); margin-bottom: 8px; }
.feature-card p { color: var(--ink-light); margin: 0; }

/* ── Testimonials ── */
.testimonial { font-style: italic; }
.testimonial blockquote {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-light);
  margin-bottom: 16px;
}
.testimonial cite {
  font-style: normal;
  font-size: 14px;
  color: var(--warm-grey);
}

/* ── Forms ── */
.form-page {
  background: var(--sand);
  min-height: 100vh;
  padding: 48px 20px 80px;
}
.form-container {
  max-width: 640px;
  margin: 0 auto;
}
.form-header { margin-bottom: 40px; }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sand-dark);
}
/* Report finding/fix cards stay white for readability */
.report-fix-card,
.report-issue-card,
.report-finding-card { background: var(--white); }
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-label span.optional {
  font-weight: 400;
  color: var(--warm-grey-light);
  font-size: 13px;
  margin-left: 4px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--sand-mid);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44,94,67,0.12);
}
.form-input.error,
.form-textarea.error { border-color: var(--error); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.form-hint { font-size: 13px; color: var(--warm-grey); margin-top: 4px; }
.form-error-msg { font-size: 13px; color: var(--error); margin-top: 4px; }
.form-error-banner {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--error);
  font-size: 15px;
  margin-bottom: 24px;
}
.form-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--warm-grey);
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sand-dark);
}
.form-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-actions .btn { min-width: 140px; justify-content: center; }
.form-disclaimer {
  font-size: 13px;
  color: var(--warm-grey);
  text-align: center;
  margin-top: 16px;
}
.competitor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.competitor-list-area {
  font-size: 13px;
  color: var(--warm-grey);
  margin-top: 4px;
}

/* ── Report ── */
.report-page {
  background: var(--sand);
  min-height: 100vh;
}
.report-header {
  background: var(--ink);
  color: var(--sand);
  padding: 40px 40px 48px;
}
.report-header-inner { max-width: 860px; margin: 0 auto; }
.report-business-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 400;
  color: var(--sand);
  margin-bottom: 8px;
}
.report-meta {
  font-size: 14px;
  color: rgba(245,240,232,0.55);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.report-body { max-width: 860px; margin: 0 auto; padding: 48px 40px 80px; }
.report-section {
  margin-bottom: 56px;
}
.report-section:last-child { margin-bottom: 0; }
.report-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ochre);
  font-weight: 700;
  margin-bottom: 8px;
}
.report-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.3;
}
.report-section-title span { font-size: 0.6em; color: var(--warm-grey); font-family: 'Source Sans 3', sans-serif; }
.report-prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-light);
}
.report-prose p { margin-bottom: 16px; }
.report-prose strong { color: var(--ink); font-weight: 600; }
.report-prose ul, .report-prose ol {
  margin: 0 0 16px 24px;
}
.report-prose li { margin-bottom: 8px; }
.report-findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.report-finding-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--sand-dark);
}
.report-finding-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--warm-grey);
  margin-bottom: 6px;
  font-weight: 600;
}
.report-finding-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.report-finding-value.good { color: var(--green); }
.report-finding-value.warn { color: var(--ochre); }
.report-finding-value.bad { color: var(--error); }

.report-status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 28px;
}
.report-status-table td:first-child {
  color: var(--ink-light);
  font-weight: 500;
  padding: 10px 16px 10px 0;
  width: 40%;
}
.report-status-table td:last-child { padding: 10px 0; }
.report-status-table tr:nth-child(even) td { background: rgba(245,240,232,0.4); }

.report-competitor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 32px;
}
.report-competitor-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--sand-dark);
  color: var(--ink-light);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.report-competitor-table th:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.report-competitor-table th:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.report-competitor-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sand-dark);
  vertical-align: top;
}
.report-competitor-table tr:last-child td { border-bottom: none; }
.report-competitor-table tr:nth-child(even) td { background: rgba(245,240,232,0.5); }

.report-issue-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1.5px solid var(--sand-dark);
  margin-bottom: 16px;
  border-left: 4px solid var(--ochre);
}
.report-issue-icon { font-size: 24px; margin-bottom: 12px; }
.report-issue-title { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.report-issue-desc { font-size: 15px; color: var(--ink-light); line-height: 1.6; }

.report-fix-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--sand-dark);
  margin-bottom: 20px;
}
.report-fix-priority {
  display: inline-block;
  background: var(--ochre);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.report-fix-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.report-fix-desc { font-size: 15px; color: var(--ink-light); line-height: 1.65; margin-bottom: 16px; }
.report-fix-steps { margin: 0 0 0 20px; }
.report-fix-steps li { font-size: 15px; color: var(--ink-light); margin-bottom: 6px; }

.report-pending {
  text-align: center;
  padding: 80px 40px;
}
.report-pending-icon { font-size: 56px; margin-bottom: 20px; }
.report-pending h2 { margin-bottom: 12px; }
.report-pending p { color: var(--warm-grey); font-size: 17px; }

/* ── Footer ── */
.site-footer {
  background: var(--text);
  color: rgba(250,249,246,0.5);
  padding: 32px 40px;
  text-align: center;
  font-size: 14px;
}
.site-footer a { color: rgba(250,249,246,0.7); }
.site-footer a:hover { color: var(--sand); }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--sand-dark);
  margin: 40px 0;
}

/* ── Alert banners ── */
.banner {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 24px;
}
.banner-success { background: #EBF5F0; border: 1px solid #A8D5C2; color: var(--forest); }
.banner-info { background: #EDF4FB; border: 1px solid #A8C6E8; color: #1A4E7A; }
.banner-warning { background: #FEF9EC; border: 1px solid #F5D58A; color: #7A5A10; }
.banner-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: var(--error); }

/* ── Tags / badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-green { background: rgba(44,94,67,0.12); color: var(--green-dark); }
.badge-ochre { background: rgba(217,119,6,0.12); color: var(--ochre-dark); }
.badge-sand { background: var(--sand-dark); color: var(--ink-light); }

/* ── CTA Section ── */
.cta-section {
  background: var(--text);
  color: var(--white);
  padding: 72px 40px;
  text-align: center;
}
.cta-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--white);
}
.cta-section p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 32px; }

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--warm-grey); font-size: 15px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .container { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
  .hero { padding: 60px 20px 70px; }
  .section { padding: 48px 0; }
  .form-card { padding: 28px 20px; }
  .competitor-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .report-header { padding: 32px 20px 40px; }
  .report-body { padding: 32px 20px 60px; }
  .cta-section { padding: 56px 20px; }
}

@media (max-width: 480px) {
  .hero-stat-row { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Print / Report PDF-friendly ── */
@media print {
  .site-header, .site-footer, .form-actions, .btn { display: none; }
  body { background: white; color: black; font-size: 14px; }
  .report-page { background: white; }
  .report-header { background: #2A2118; color: white; padding: 24px; }
  .report-body { padding: 24px; }
  .card, .report-fix-card, .report-issue-card { border: 1px solid #ccc; box-shadow: none; }
  .report-section { page-break-inside: avoid; }
}