/* Engagepool v2 — layout idea: a quiet editorial grid on cool paper; one bold moment per page (the holdout dot-field). */
:root {
  --paper: #f3f5f4;
  --surface: #ffffff;
  --ink: #0e1d1a;
  --muted: #4d5f5a;
  --line: #d5ddda;
  --return: #0a7d5e;      /* returning customers / primary accent */
  --return-soft: #d9efe7;
  --play: #ff6a3d;        /* gamification accent, used sparingly */
  --play-soft: #ffe6dc;
  --holdout: #9aa8a4;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.4rem, 5.2vw, 4rem);
  --radius: 14px;
  --wrap: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--return); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--play);
  outline-offset: 2px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; max-width: 65ch; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--step--1); font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--return); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 var(--step--1)/1 var(--font-body);
  padding: 13px 20px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--return); border-color: var(--return); }
.btn-small { padding: 9px 16px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-size: var(--step--1); font-weight: 600; color: var(--return); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.eyebrow.play { color: var(--play); }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 760px; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 em { font-style: normal; color: var(--return); }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.figure figcaption, .caption { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.card p { color: var(--muted); }
.card .num { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--return); line-height: 1; }
.service-card { padding: 0; overflow: hidden; }
.service-card .body { padding: 28px; display: grid; gap: 14px; }
.service-card .art { background: var(--return-soft); padding: 22px; }
.service-card.play .art { background: var(--play-soft); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--return-soft); color: var(--return); }
.tag.play { background: var(--play-soft); color: #b8401b; }
.arrow-link { font-weight: 600; text-decoration: none; }
.arrow-link::after { content: " \2192"; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.step { padding: 28px; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .label { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.step .idx { font-size: var(--step--1); color: var(--return); font-weight: 600; font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); font-size: var(--step--1); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: var(--step--1); }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.promise { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
.promise p { color: #c9d6d2; }
.promise h3 { color: var(--paper); }
.promise .no { color: #9fb2ad; text-decoration: line-through; text-decoration-color: var(--play); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--return-soft); border: 2px solid var(--return); }
.checklist.x li::before { background: var(--play-soft); border-color: var(--play); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Industry blocks */
.industry { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-block: 40px; border-top: 1px solid var(--line); }
.industry:first-of-type { border-top: 0; }
.industry .meta { display: grid; gap: 12px; align-content: start; }
.industry .icon { width: 64px; height: 64px; }
.mechanics { font-size: var(--step--1); color: var(--muted); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.industry-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 14px; text-decoration: none; color: var(--ink); display: grid; gap: 10px; justify-items: start; font-weight: 600; font-size: var(--step--1); transition: border-color .15s ease; }
.tile:hover { border-color: var(--return); }
.tile svg { width: 40px; height: 40px; }

/* CTA band */
.cta-band { background: var(--return); color: #fff; }
.cta-band .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: var(--step-2); }
.cta-band p { color: #d6efe6; }
.cta-band .btn { border-color: #fff; color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }

/* Form */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: var(--step--1); font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: var(--step--1); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.radios label { display: inline-flex; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 500; cursor: pointer; }
.radios input { accent-color: var(--return); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); color: var(--muted); }
.form-note { font-size: var(--step--1); padding: 14px 16px; border-radius: 10px; background: var(--return-soft); color: var(--ink); }
.form-note[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d6d2; padding-block: 56px 32px; font-size: var(--step--1); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin: 0 0 12px; }
.site-footer a { color: #c9d6d2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .logo { color: #fff; }
.site-footer .legal { border-top: 1px solid #2a3c38; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.todo { color: var(--play); font-weight: 600; }

/* Timeline (retention pilot) */
.timeline { display: grid; grid-template-columns: 0.6fr 1fr 1fr 4fr 0.8fr; gap: 6px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--return); border-radius: 10px; padding: 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.phase.run { border-top-color: var(--play); }
.phase .wk { font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.phase h3 { font-size: 1.05rem; }
.phase p { font-size: .86rem; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .industry-tiles { grid-template-columns: repeat(3, 1fr); }
  .industry { grid-template-columns: 1fr; gap: 16px; }
  .timeline { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .steps, .form .row { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .industry-tiles { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.nav a.btn-primary { color: var(--paper); border-bottom: 1.5px solid var(--ink); }
.nav a.btn-primary:hover { color: #fff; }
svg.inline-art { width: 100%; height: auto; display: block; }
svg.logo-mark { width: 26px; height: 26px; flex: none; }
