/* ═════════════════════════════════════════════════════════════
   /automation/ only: the AI automation audit page.
   Loads after site.css and reuses its tokens.
   ═════════════════════════════════════════════════════════════ */

.page-automation .eyebrow { margin-bottom: 18px; }
.page-automation h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; max-width: 20ch; }

/* ── Hero ── */
.page-automation .hero-grid { align-items: center; }
@media (min-width: 900px) { .page-automation .hero-grid { gap: 64px; } }
.page-automation .hero-title { max-width: 16ch; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.55; max-width: 50ch; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper-3);
  border: 1px solid var(--rule);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 28px;
}

.cred { margin-top: 36px; display: flex; align-items: center; gap: 16px; }
.cred-portrait {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--rule);
  flex-shrink: 0; overflow: hidden;
  background: var(--blush);
}
.cred-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.cred-text { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.cred-text .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.cred-text .role { color: var(--ink-3); }

.hero-card {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-card-label { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.hero-card-stat { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: 34px; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.hero-card-stat em { font-style: normal; color: var(--blue); }
.hero-card-desc { font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.hero-card-list, .tier-items { list-style: none; margin: 0; padding: 0; }
.hero-card-list li, .tier-items li {
  font-size: 14px; color: var(--ink-2);
  padding: 8px 0 8px 22px; position: relative;
  border-top: 1px solid var(--rule);
  line-height: 1.45;
}
.hero-card-list li:first-child { border-top: none; }
.hero-card-list li::before, .tier-items li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--blue); font-weight: 600;
}

/* ── Problem strip (inverted in both themes) ── */
.problem { background: var(--ink); color: var(--paper); border-top: 0; }
.problem .eyebrow { color: color-mix(in oklab, var(--paper) 60%, transparent); }
.problem .eyebrow .dot { background: var(--blue-inv); }
.problem h2 { color: var(--paper); max-width: 22ch; }
.problem h2 em { color: var(--blue-inv); }
.problem .lead { color: color-mix(in oklab, var(--paper) 75%, transparent); margin-top: 22px; }
.problem-stat-row { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
@media (min-width: 720px) { .problem-stat-row { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.problem-stat .num { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: 30px; color: var(--paper); line-height: 1; }
.problem-stat .num em { color: var(--blue-inv); font-style: normal; }
.problem-stat .label { font-size: 15px; color: color-mix(in oklab, var(--paper) 68%, transparent); margin-top: 10px; line-height: 1.5; max-width: 30ch; }

/* ── Offer ladder ── */
.offer-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.offer-head .eyebrow { justify-content: center; }
.offer-head h2 { margin: 0 auto; max-width: 100%; }
.offer-head .lead { margin: 20px auto 0; }

.offer-ladder { display: grid; gap: 16px; }
@media (min-width: 800px) { .offer-ladder { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tier { border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; background: var(--paper-3); }
.tier.tier-primary { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 12px 40px var(--blue-soft); }
.tier-step { font-size: 13px; font-weight: 500; padding: 10px 24px; border-bottom: 1px solid var(--rule); color: var(--ink-3); }
.tier.tier-primary .tier-step { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.tier-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.tier-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; line-height: 1.15; }
.tier-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.tier-price { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--ink); }
.tier-price-note { font-size: 13px; color: var(--ink-3); }
.tier-desc { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin-bottom: 16px; }
.tier-items { margin-top: auto; }
.tier-items li:last-child { border-bottom: 1px solid var(--rule); }
.tier-cta { padding: 20px 24px; border-top: 1px solid var(--rule); }
.tier-cta .btn { width: 100%; justify-content: center; }

.offer-scope { margin-top: 36px; padding: 20px 24px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-2); }
.offer-scope-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.offer-scope-items { display: grid; gap: 8px; }
@media (min-width: 640px) { .offer-scope-items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offer-scope-items { grid-template-columns: repeat(4, 1fr); } }
.offer-scope-item { font-size: 14px; color: var(--ink-2); padding-left: 16px; position: relative; line-height: 1.45; }
.offer-scope-item::before { content: "·"; position: absolute; left: 0; color: var(--blue); font-weight: 700; font-size: 18px; line-height: 1.1; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 28px 26px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-3); }
.step-n { font-size: 13px; font-weight: 500; color: var(--blue); margin-bottom: 18px; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ── Audience ── */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 48px; }
.audience { padding: 28px 26px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-3); }
.audience h3 { margin-bottom: 10px; font-size: 21px; }
.audience p { color: var(--ink-2); font-size: 15px; margin: 0; line-height: 1.55; }
.fit-note { margin-top: 20px; font-size: 15px; color: var(--ink-3); }

/* ── Why me ── */
.proof-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 880px) { .proof-inner { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.proof-text .lead strong { color: var(--ink); font-weight: 600; }
.proof-row { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.proof-row:last-child { border-bottom: 1px solid var(--rule); }
.proof-row .yr { font-size: 13px; color: var(--ink-3); }
.proof-row .tx { font-size: 15px; color: var(--ink-2); }
.proof-row .tx strong { color: var(--ink); font-weight: 600; }

/* ── Modal (opens a prefilled email; nothing is stored) ── */
.modal-bg {
  position: fixed; inset: 0;
  background: color-mix(in oklab, var(--ink) 55%, transparent);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 40px; max-width: 460px; width: 100%;
  position: relative; box-shadow: 0 20px 60px color-mix(in oklab, var(--ink) 25%, transparent);
}
.modal h2 { font-size: 27px; margin-bottom: 8px; line-height: 1.15; max-width: none; }
.modal p { color: var(--ink-2); margin-bottom: 26px; font-size: 15px; line-height: 1.5; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--ink-3); padding: 6px;
  transition: color .2s var(--ease);
}
.modal-close:hover { color: var(--ink); }
.modal .submit { width: 100%; justify-content: center; }
.modal-note { font-size: 13px; color: var(--ink-3); margin-top: 14px; text-align: center; }
.modal-note a { color: var(--blue); }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  padding: 14px 24px; border-radius: var(--radius);
  font-size: 14px;
  z-index: 200; box-shadow: 0 12px 32px color-mix(in oklab, var(--ink) 35%, transparent);
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px);
}
.toast .accent { color: var(--blue-inv); }
.guides-list { margin-top: 40px; }
.guides-list h3 a:hover { color: var(--blue); }
