/* DirectorPM free-template pages — editorial design system (2026-09 redesign).
   Loaded by the 6 gate pages, the /free-templates hub, and the two free browser
   tools AFTER site.css, editorial.css, and product.css (which supply tokens,
   type, and the nav/footer/chrome). This file owns the email-gate components
   and the free-hub cards. Hairline system: 1px rules, border-radius 0. */

:root {
  --green: #2e6b4f; /* download confirmation accent, muted to fit the palette */
}

/* ---- Hero (centered gate) ---- */
.hero { max-width: 800px; margin: 0 auto; padding: 72px 28px 44px; text-align: center; }
.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 5px 12px;
  margin-bottom: 22px;
}
.hero h1, h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
h1 em { font-style: italic; color: var(--accent); }
.hero .sub { font-size: 17px; color: var(--body); line-height: 1.65; max-width: 620px; margin: 0 auto 30px; }

/* ---- Email gate form ---- */
.gate-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.gate-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid var(--input-border);
  border-radius: 0;
  background: var(--card);
  color: var(--ink);
}
.gate-form input[type="email"]:focus { outline: none; border-color: var(--accent); }
.gate-form button {
  height: 54px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--paper);
  border: 0;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.gate-form button:hover { background: var(--ink); }
/* Honeypot: must stay visually hidden but present for bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-error { display: none; color: var(--error); font-size: 13.5px; margin-top: 10px; }
.form-error.visible { display: block; }
.gate-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 16px; }

/* ---- Download-ready panel ---- */
.download-ready {
  display: none;
  max-width: 480px;
  margin: 0 auto;
  background: var(--tint);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 26px 24px;
  text-align: left;
}
.download-ready.visible { display: block; }
.download-ready h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; }
.download-ready p { font-size: 15px; color: var(--body); line-height: 1.6; }
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  background: var(--green);
  color: var(--paper);
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  margin-top: 14px;
  transition: background 0.15s ease;
}
.download-btn:hover { background: var(--ink); color: var(--paper); }

/* ---- Article-style content below the gate ---- */
.content { max-width: 720px; margin: 0 auto; padding: 24px 28px 80px; }
.content h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 44px 0 16px;
}
.content h3 { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin: 24px 0 8px; }
.content p { font-size: 16px; color: var(--body); line-height: 1.75; margin-bottom: 16px; }
.content ol, .content ul { margin: 0 0 16px; padding-left: 22px; color: var(--body); }
.content li { font-size: 16px; line-height: 1.7; margin-bottom: 10px; }
.content a { color: var(--accent); }
.content a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

.bullet-grid { display: grid; gap: 16px; margin: 20px 0; }
.bullet-card { background: var(--card); border: 1px solid var(--rule-strong); border-radius: 0; padding: 20px 22px; }
.bullet-card h3 { margin: 0 0 6px; }
.bullet-card p { margin: 0; font-size: 14.5px; color: var(--secondary); }

.upsell {
  background: var(--tint);
  border: 1px solid var(--rule-strong);
  border-left: 1px solid var(--ink);
  border-radius: 0;
  padding: 26px 28px;
  margin: 40px 0;
}
.upsell h3 { margin: 0 0 10px; }

.cross-links { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--ink); }
.cross-links h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.cross-links ul { list-style: none; margin: 0; padding: 0; }
.cross-links li { margin-bottom: 8px; }

/* ---- Free-templates hub ---- */
.section { max-width: 800px; margin: 0 auto; padding: 0 28px 32px; }
.hub-list { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; }
.hub-card {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 24px 26px;
  transition: border-color 0.15s ease;
}
.hub-card:hover { border-color: var(--ink); }
.hub-card h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.hub-card h2 a { color: var(--ink); }
.hub-card h2 a:hover { color: var(--accent); }
.hub-card p { color: var(--secondary); font-size: 14.5px; line-height: 1.6; margin-bottom: 12px; }
.hub-go { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.hub-go:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero { padding: 52px 20px 36px; }
  .gate-form { flex-direction: column; }
  .gate-form button { width: 100%; }
  .content { padding: 20px 20px 60px; }
}

/* No body copy under 16px on phones (audit 2026-09-28, MOB-04). */
@media (max-width: 768px) {
  .bullet-card p { font-size: 16px; }
}
