/* ============================================================
   Diligent - /resources/[slug] detail template (redesign frame).
   Loads ON TOP of styles.css + service-v3.css via ServiceLayout's
   head slot. All selectors namespaced .res-* so nothing collides
   with the frame. Tokens only - no new colors.
   ============================================================ */

/* ---- hero: copy + email capture left, heroshot right ---- */
.res-hero { padding: 56px 0 64px; background: var(--bone-2); }
.res-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.res-hero h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); letter-spacing: -.03em; margin: 14px 0 0; }
.res-hero .lead { font-size: 1.12rem; color: var(--muted); margin-top: 16px; line-height: 1.62; max-width: 54ch; }
.res-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--coral-deep); }
.res-tag .free { color: var(--muted-2); }
.res-hero-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: var(--bone-card); }
.res-hero-img img { display: block; width: 100%; height: auto; }

/* ---- email capture card ---- */
.res-form { margin-top: 28px; background: var(--bone-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-sm); max-width: 480px; }
.res-form label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.res-form-row { display: flex; gap: 10px; }
.res-form input[type="email"] { flex: 1; min-width: 0; font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.res-form input[type="email"]:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.res-form .btn { white-space: nowrap; }
.res-form-note { font-size: .85rem; color: var(--muted-2); margin-top: 12px; }
.res-form-error { color: var(--coral-deep); font-size: .9rem; margin-top: 10px; }
/* success state swaps in via JS */
.res-form-done { display: none; align-items: flex-start; gap: 12px; }
.res-form-done .ok { font-family: var(--mono); font-weight: 700; color: var(--coral-deep); font-size: 1.2rem; line-height: 1.3; }
.res-form-done p { font-size: .98rem; color: var(--muted); line-height: 1.55; }
.res-form.is-done .res-form-fields { display: none; }
.res-form.is-done .res-form-done { display: flex; }

/* ---- "what you'll get" benefit cards ---- */
.res-get { padding: 76px 0; background: var(--paper); }
.res-get-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.res-get-card { background: var(--bone-card); border: 1px solid var(--line); border-radius: 15px;
  padding: 26px 26px 28px; box-shadow: var(--shadow-sm); }
.res-get-card img { width: 56px; height: 56px; object-fit: contain; display: block; margin-bottom: 18px; }
.res-get-card h3 { font-size: 1.12rem; letter-spacing: -.015em; margin-bottom: 10px; }
.res-get-card p { font-size: .94rem; color: var(--muted); line-height: 1.6; }

/* ---- mid band: anchor back to the form ---- */
.res-mid { padding: 64px 0; background: var(--ink); color: var(--on-dark); text-align: center; }
.res-mid h2 { color: var(--on-dark); font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.02em; max-width: 26ch; margin: 0 auto 26px; }

/* ---- breakdown rows ---- */
.res-break { padding: 76px 0; background: var(--bone-2); }
.res-break-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; margin-top: 44px; }
.res-break-row:nth-child(odd) .res-break-img { order: 2; }
.res-break-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); background: var(--bone-card); }
.res-break-img img { display: block; width: 100%; height: auto; }
.res-break-copy h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 14px; }
.res-break-copy h3 span { color: var(--coral-deep); }
.res-break-copy p { font-size: 1rem; color: var(--muted); line-height: 1.65; }

/* ---- bonus content ---- */
.res-bonus { padding: 76px 0; background: var(--paper); }
.res-bonus h2 span { color: var(--coral-deep); }
.res-bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.res-bonus-card { background: var(--bone-card); border: 1px solid var(--line); border-radius: 15px;
  padding: 26px; box-shadow: var(--shadow-sm); }
.res-bonus-card h3 { font-size: 1.08rem; letter-spacing: -.015em; margin-bottom: 12px; }
.res-bonus-card p { font-size: .92rem; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.res-bonus-card p:last-child { margin-bottom: 0; }

/* ---- more resources rail ---- */
.res-more { padding: 76px 0; background: var(--bone-2); }
.res-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .res-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .res-get-grid, .res-bonus-grid, .res-more-grid { grid-template-columns: 1fr; }
  .res-break-row { grid-template-columns: 1fr; gap: 24px; }
  .res-break-row:nth-child(odd) .res-break-img { order: -1; }
}
@media (max-width: 560px) {
  .res-form-row { flex-direction: column; }
  .res-form .btn { width: 100%; }
}
