/* ── AI Grafter — sales page styles ───────────────────────────────────
   Brand: orange / black / white industrial worksite-coded.
   Colours, typography per brand/visual-identity.md.
   Mobile-first. No frameworks. Page weight target <50KB.
   ─────────────────────────────────────────────────────────────────── */

:root {
  --orange: #FF6B00;
  --orange-deep: #E15A00;
  --black: #0A0A0A;
  --grey-900: #1A1A1A;
  --grey-700: #4A4A4A;
  --grey-500: #767676;
  --grey-200: #E5E5E5;
  --grey-100: #F5F5F5;
  --white: #FFFFFF;
  --yellow: #FFD500;

  --max: 720px;
  --measure: 60ch;
  --gap: 1.25rem;
  --gap-lg: 2rem;
  --gap-xl: 3rem;

  --radius: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--orange); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--gap-lg) 1.25rem;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  background: var(--black);
  color: var(--white);
  border-bottom: 6px solid var(--orange);
}
.hero .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.brand-mark {
  font-family: "Helvetica Neue Condensed", "Inter", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--orange);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw + 1rem, 2.6rem);
  line-height: 1.1;
  margin: 0 0 1.25rem 0;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.subhead {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--grey-200);
  margin: 0 0 1.5rem 0;
  max-width: var(--measure);
}
.hero .micro {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--grey-500);
}

/* ── CTA ──────────────────────────────────────────────────────────── */
.cta {
  display: inline-block;
  background: var(--orange);
  color: var(--black);
  padding: 1rem 1.75rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  border: 2px solid var(--orange);
  transition: transform 0.05s ease, box-shadow 0.1s ease, background 0.1s ease;
  box-shadow: 0 3px 0 var(--orange-deep);
}
.cta:hover { background: #FF7A1A; color: var(--black); text-decoration: none; }
.cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--orange-deep); }
.cta-primary { min-width: 220px; text-align: center; }

/* ── Block layout ─────────────────────────────────────────────────── */
.block {
  border-bottom: 1px solid var(--grey-200);
}
.block .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.block h2 {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}
.block h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 1.25rem 0 0.5rem 0;
}
.block p { margin: 0 0 1rem 0; max-width: var(--measure); }
.lede { font-size: 1.1rem; font-weight: 600; }
.big { font-size: 1.2rem; line-height: 1.5; }
.big-num strong { font-size: 1.6rem; color: var(--orange-deep); }
.footer-note {
  font-size: 0.95rem;
  color: var(--grey-700);
  font-style: italic;
}

/* ── Problem block ────────────────────────────────────────────────── */
.block-problem { background: var(--grey-100); }

/* ── Category grid ────────────────────────────────────────────────── */
.cat-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1.25rem;
}
.cat-grid li {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.cat-grid h3 {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  justify-content: space-between;
}
.cat-icon { font-size: 1.4rem; }
.count {
  background: var(--orange);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.when { font-size: 0.9rem; color: var(--grey-700); margin-bottom: 0.5rem; }

@media (min-width: 600px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Examples ─────────────────────────────────────────────────────── */
.block-examples { background: var(--grey-100); }
.example {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
}
.example h3 { margin-top: 0; font-size: 1.05rem; }
.example small { font-weight: 500; color: var(--grey-700); }
.example blockquote {
  margin: 0;
  padding: 0;
  border-left: 4px solid var(--orange);
  padding-left: 1rem;
}
.example blockquote p { font-size: 0.95rem; line-height: 1.5; margin-bottom: 0.5rem; }
.example blockquote ul { margin: 0.5rem 0; padding-left: 1.25rem; }
.example blockquote li { font-size: 0.95rem; margin-bottom: 0.25rem; }

/* ── Founder block ────────────────────────────────────────────────── */
.block-founder {
  background: var(--black);
  color: var(--white);
  border-top: 6px solid var(--orange);
  border-bottom: 6px solid var(--orange);
}
.block-founder h2 { color: var(--orange); }
.block-founder p { color: var(--grey-200); }
.block-founder .lede { color: var(--white); }
.block-founder .signature { font-style: italic; color: var(--grey-500); margin-top: 1.5rem; }

/* ── Fit grid ─────────────────────────────────────────────────────── */
.block-fit { background: var(--white); }
.fit-grid {
  display: grid;
  gap: 1.5rem;
}
.fit-yes, .fit-no {
  padding: 1.25rem;
  border-radius: var(--radius);
}
.fit-yes {
  background: var(--grey-100);
  border-left: 6px solid var(--orange);
}
.fit-no {
  background: var(--grey-100);
  border-left: 6px solid var(--grey-500);
}
.fit-yes h3, .fit-no h3 { margin-top: 0; }
.fit-yes ul, .fit-no ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fit-yes li, .fit-no li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}
.fit-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--orange-deep); font-weight: 900; }
.fit-no li::before  { content: "✗"; position: absolute; left: 0; color: var(--grey-500); font-weight: 900; }

@media (min-width: 700px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Steps ────────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 1rem 1rem 1rem 3.25rem;
  margin-bottom: 0.75rem;
  background: var(--grey-100);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  position: relative;
  font-size: 0.95rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  background: var(--orange);
  color: var(--black);
  font-weight: 900;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ── "What this isn't" — counter-positioning ─────────────────────── */
.block-not {
  background: var(--orange);
  color: var(--black);
  border-top: 6px solid var(--black);
  border-bottom: 6px solid var(--black);
}
.block-not h2 { font-size: 2rem; margin-bottom: 1rem; }
.block-not strong { background: var(--black); color: var(--orange); padding: 0.05em 0.3em; }

/* ── Price block ──────────────────────────────────────────────────── */
.block-price {
  background: var(--white);
  text-align: center;
}
.block-price h2 { font-size: 4rem; color: var(--orange-deep); margin-bottom: 0.5rem; }
.block-price p { margin-left: auto; margin-right: auto; }

/* ── Mid-page CTA ─────────────────────────────────────────────────── */
.block-cta-mid {
  background: var(--grey-100);
  text-align: center;
}
.block-cta-mid .micro { color: var(--grey-700); margin-top: 0.75rem; }

/* ── Back-end intent capture ──────────────────────────────────────── */
.block-backend {
  background: var(--grey-900);
  color: var(--white);
  border-top: 4px solid var(--yellow);
}
.block-backend h3 { color: var(--yellow); margin-top: 0; }
.block-backend .micro { color: var(--grey-500); font-size: 0.85rem; }
.intent-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 1rem 0;
}
.intent-form input[type="email"] {
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--grey-700);
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
}
.intent-form input[type="email"]:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }
.intent-form button {
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  border: 2px solid var(--yellow);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
}
.intent-form button:hover { background: #FFE040; }

@media (min-width: 600px) {
  .intent-form { flex-direction: row; }
  .intent-form input { flex: 1; }
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.block-faq details {
  background: var(--grey-100);
  border-left: 4px solid var(--orange);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
}
.block-faq summary {
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.block-faq summary::-webkit-details-marker { display: none; }
.block-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -0.05em;
  font-size: 1.5rem;
  color: var(--orange-deep);
  font-weight: 800;
  transition: transform 0.15s ease;
}
.block-faq details[open] summary::after { content: "−"; }
.block-faq p { margin-top: 0.75rem; font-size: 0.95rem; }

/* ── Final CTA block ──────────────────────────────────────────────── */
.block-cta-final {
  background: var(--black);
  color: var(--white);
  text-align: center;
  border-top: 6px solid var(--orange);
}
.block-cta-final h2 { color: var(--white); font-size: 1.9rem; }
.block-cta-final .big { color: var(--grey-200); }
.block-cta-final hr {
  border: 0;
  border-top: 1px solid var(--grey-700);
  margin: 2.5rem auto;
  max-width: 200px;
}
.tier3-line {
  font-size: 0.9rem;
  color: var(--grey-200);
  max-width: var(--measure);
  margin: 0 auto;
}
.tier3-line a {
  color: var(--orange);
  font-weight: 700;
}
.block-cta-final p { margin-left: auto; margin-right: auto; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: var(--grey-900);
  color: var(--grey-500);
  font-size: 0.85rem;
  border-top: 1px solid var(--black);
}
.footer .container { padding-top: 2rem; padding-bottom: 2rem; }
.footer p { color: var(--grey-200); margin-bottom: 0.75rem; }
.footer p:first-child strong { color: var(--orange); letter-spacing: 0.04em; }
.footer-links { font-weight: 600; }
.footer-links a { color: var(--grey-200); margin-right: 0.5rem; }
.footer-disclosure { font-size: 0.8rem; color: var(--grey-500); line-height: 1.45; }
.footer-disclosure a { color: var(--orange); }

/* ── Print styles (in case anyone prints the page) ───────────────── */
@media print {
  .hero, .block-not, .block-cta-final, .footer { background: var(--white) !important; color: var(--black) !important; }
  .cta { background: var(--white) !important; border: 2px solid var(--black) !important; }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
