/* ══════════════════════════════════════════════════
   FREE 3-POINT TEARDOWN · reusable CTA block
   Markup is generated by scripts/lib/templates.js (teardownBlock)
   and copied into index.html's contact section.
   .td        full block with form   (light by default)
   .td--dark  on dark sections (homepage contact)
   .td-inline compact mid-article card that jumps to the form
══════════════════════════════════════════════════ */
.td {
  --td-bg: var(--off, #F5F5F5);
  --td-line: var(--border, #E8E8E8);
  --td-ink: var(--ink, #0D0D0D);
  --td-ink-2: var(--ink-3, #5A5A5A);
  --td-field: #fff;
  --td-field-line: var(--border, #E8E8E8);
  background: var(--td-bg); border: 1px solid var(--td-line); border-radius: 24px;
  padding: clamp(24px, 4vw, 48px); text-align: left; color: var(--td-ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start;
  scroll-margin-top: calc(var(--nav-h, 60px) + 24px);
}
.td--dark {
  --td-bg: rgba(255,255,255,.04);
  --td-line: rgba(255,255,255,.1);
  --td-ink: #fff;
  --td-ink-2: rgba(255,255,255,.58);
  --td-field: rgba(255,255,255,.06);
  --td-field-line: rgba(255,255,255,.14);
}
.td-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono, monospace); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: #C42D00; margin-bottom: 14px;
}
.td-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange, #FF3D00); }
.td-title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--td-ink); }
.td-title em { font-style: italic; font-weight: 600; color: var(--td-ink-2); }
.td-sub { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--td-ink-2); font-weight: 500; max-width: 420px; }
.td-points { margin-top: 18px; display: grid; gap: 8px; list-style: none; padding: 0; }
.td-points li { display: flex; gap: 10px; font-size: 14px; font-weight: 600; color: var(--td-ink); line-height: 1.45; }
.td-points li span { font-family: var(--mono, monospace); font-size: 10px; color: #C42D00; padding-top: 3px; flex-shrink: 0; }

.td-form { display: grid; gap: 12px; }
.td-field { display: grid; gap: 6px; }
.td-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--td-ink-2); }
.td-input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--td-field-line); border-radius: 12px;
  font: 500 15px/1.3 var(--sans, sans-serif); color: var(--td-ink); background: var(--td-field);
  outline: none; transition: border-color .15s, background .15s;
}
.td-input::placeholder { color: var(--td-ink-2); opacity: .7; }
.td-input:focus { border-color: var(--orange, #FF3D00); }
.td-input[aria-invalid="true"] { border-color: #DC2626; }
.td-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.td-submit {
  margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 15px 22px; border-radius: 100px; background: var(--orange-d, #D93200); color: #fff;
  font: 700 15px/1 var(--sans, sans-serif); letter-spacing: -.02em; cursor: pointer; border: none;
  transition: background .18s, transform .3s var(--spring, ease), box-shadow .3s;
}
.td-submit:hover { background: #B82A00; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,61,0,.28); }
.td-submit:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.td-submit svg { width: 13px; }
.td-note { font-size: 12px; color: var(--td-ink-2); line-height: 1.5; }
.td-error { font-size: 13px; color: #DC2626; font-weight: 600; min-height: 0; }
.td--dark .td-error { color: #FCA5A5; }
/* On dark backgrounds the brand orange already passes contrast (5.2:1); the deeper shade is only for light backgrounds */
.td--dark .td-eyebrow, .td--dark .td-points li span, .td--dark .td-inline-kicker { color: var(--orange, #FF3D00); }
.td-error a { color: inherit; text-decoration: underline; }
.td-success { display: none; padding: 8px 0; }
.td-success-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--td-ink); }
.td-success-sub { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--td-ink-2); }
.td.is-done .td-form { display: none; }
.td.is-done .td-success { display: block; }

@media (max-width: 860px) {
  .td { grid-template-columns: 1fr; }
}

/* Compact inline card (mid-article) */
.td-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--ink, #0D0D0D); border-radius: 18px; padding: 20px 22px; margin: 2.2em 0;
  background: var(--ink, #0D0D0D); color: #fff;
}
.td-inline-text { flex: 1 1 280px; }
.td-inline-kicker { font-family: var(--mono, monospace); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange, #FF3D00); margin-bottom: 6px; } /* sits on the dark inline box, where the brand orange passes (5.3:1) */
.td-inline-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; color: #fff; }
.td-inline-sub { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.62); margin-top: 4px; }
.td-inline-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 100px;
  background: var(--orange-d, #D93200); color: #fff !important; font-size: 14px; font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap; text-decoration: none !important; transition: background .18s, transform .3s var(--spring, ease);
}
.td-inline-btn:hover { background: #B82A00; transform: translateY(-2px); }

/* Section wrapper used on generated pages */
.td-sec { padding: clamp(56px, 7vw, 96px) var(--gutter, 24px); border-bottom: 1px solid var(--border, #E8E8E8); }
.td-sec-inner { max-width: 1100px; margin: 0 auto; }

/* Homepage contact placement */
.contact-sec .td { margin: 0 auto 36px; max-width: 980px; }
.contact-or { font-family: var(--mono, monospace); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
