/* Shared layout for free resource / tool pages (bio generator, reel hook generator, week of posts, and any future ones).
   Rules: see README "Resource pages". Page-local CSS keeps only the tool itself (form, result, popup). */
.page.tool-page { max-width: 1080px; }

/* HERO: copy left, tool card right */
.tool-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,480px); gap: 56px; align-items: start; }
.tool-copy { padding-top: 0; }
.tool-copy h1 { margin-top: 0; }
.tool-copy .subhead { margin-bottom: 24px; }
.tool-bullets { list-style: none; padding: 0; margin: 0 0 28px; }
.tool-bullets li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 16px; line-height: 1.5; color: var(--gray-900); font-weight: 500; }
.tool-bullets li::before, .tool-points li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #EFE7FD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.tool-sample { background: rgba(255,255,255,0.86); border: 1px solid rgba(236,236,239,0.9); border-radius: 16px; padding: 18px 20px; max-width: 420px; box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 8px 24px rgba(91,33,182,0.08); }
.tool-sample-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-dark); margin-bottom: 8px; }
.tool-sample-text { font-size: 16px; line-height: 1.7; color: var(--gray-900); margin: 0; }
.tool-card-head { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid #EFE7FD; }
.tool-card-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; color: var(--black); margin: 0 0 4px; }
.tool-card-head p { font-size: 14px; line-height: 1.5; color: var(--gray-600); margin: 0; }

/* USED BY strip sits under the hero */
.page.tool-page > .used-by { margin-top: 40px; padding-top: 40px; }

/* INFO SECTIONS: intentional blocks instead of a text wall (all content stays in the HTML for SEO) */
.tool-info { margin-top: 24px; }
.ti-section { margin-top: 72px; }
.ti-section > h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--black); text-align: center; margin: 0 0 12px; }
.ti-lead { max-width: 700px; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.65; color: var(--gray-600); }
.ti-lead + .ti-lead { margin-top: 12px; }
.ti-note { max-width: 700px; margin: 24px auto 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--gray-600); }
.ti-note a, .ti-lead a, .tool-faq a { color: var(--purple-dark); text-underline-offset: 2px; }
.ti-note a:hover, .ti-lead a:hover, .tool-faq a:hover { color: var(--purple); }
.tool-steps, .tool-points, .tool-related { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.tool-steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tool-points, .tool-related { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tool-steps li, .tool-points li, .tool-related a { background: rgba(255,255,255,0.86); border: 1px solid rgba(236,236,239,0.9); border-radius: 16px; box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 8px 24px rgba(91,33,182,0.06); }
.tool-steps li { padding: 24px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.55; color: var(--gray-900); font-weight: 500; }
.ti-num { width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.tool-points li { position: relative; padding: 20px 22px 20px 56px; font-size: 16px; line-height: 1.55; color: var(--gray-900); }
.tool-points li::before { left: 22px; top: 23px; }
.tool-chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tool-chips li { background: var(--purple-light); color: var(--purple-dark); font-size: 15px; font-weight: 600; padding: 9px 18px; border-radius: 100px; }
.tool-related a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; text-decoration: none; color: var(--gray-900); font-size: 16px; font-weight: 600; line-height: 1.4; transition: transform .15s, box-shadow .2s; }
.tool-related a::after { content: "\2192"; color: var(--purple); font-weight: 800; flex: 0 0 auto; }
.tool-related a:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 12px 28px rgba(91,33,182,0.12); }
.tool-related { margin-bottom: 0; }
.tool-faq { max-width: 760px; margin: 32px auto 0; }
.tool-faq details { background: rgba(255,255,255,0.86); border: 1px solid rgba(236,236,239,0.9); border-radius: 14px; margin-bottom: 10px; }
.tool-faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--black); position: relative; }
.tool-faq summary::-webkit-details-marker { display: none; }
.tool-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--purple); }
.tool-faq details[open] summary::after { content: "\2212"; }
.tool-faq summary:focus-visible { outline: 3px solid rgba(124,58,237,0.45); outline-offset: 2px; border-radius: 14px; }
.tool-faq details p { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.65; color: var(--gray-600); }

@media (max-width: 900px) {
  .tool-hero { grid-template-columns: 1fr; gap: 28px; }
  .tool-sample, .tool-bullets { display: none; }
  .tool-copy .subhead { margin-bottom: 0; }
  .tool-steps { grid-template-columns: 1fr; }
  .tool-steps li { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; }
  .ti-num { flex: 0 0 36px; }
  .tool-points, .tool-related { grid-template-columns: 1fr; }
  .ti-section { margin-top: 56px; }
}
