/* Guide pages (/how-to-get-clients/ and the guides after it). One layer on site.css: its tokens, fonts,
   header, footer and buttons. Structure follows the Roofing Revenue Guys guide: one narrow reading column,
   editorial type, numbered sections, the message as an inline copy block, two boxed asks. */

.guide-page { --col: 680px; background: var(--bg); padding: 72px 0 104px; }
.guide-page .col { width: var(--col); max-width: calc(100% - var(--edge) * 2); margin: 0 auto; }
.guide-page p, .guide-page li { font-size: 19px; line-height: 1.65; }
.guide-page p + p { margin-top: 18px; }
.guide-page h2 { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.025em; }
.guide-page p a:not(.btn) { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
.guide-page section { scroll-margin-top: 24px; }
/* header: the homepage's section links stay on the homepage, so push the button right on its own */
.nav__in .pill-btn { margin-left: auto; }

/* top of page */
.g-top h1 { margin: 22px 0 20px; font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); line-height: 1.03; letter-spacing: -0.035em; }
.g-top .eyebrow { text-transform: none; letter-spacing: 0.01em; font-size: 13.5px; font-weight: 500; }
.dek { font-size: 21px !important; line-height: 1.55; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.byline img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.byline p { font-size: 14.5px !important; line-height: 1.45 !important; font-weight: 500; color: var(--muted); }

/* the short answer */
.answerbox { margin-top: 40px; padding: 26px 28px 28px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(16, 18, 22, 0.4); }
.answerbox p:not(.tag) { margin-top: 14px; font-size: 20px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.answerbox .tag { font-size: 11.5px; line-height: 1.3; }

.opening { margin-top: 40px; }
.opening .signed { font-weight: 700; }

/* the steps, in short */
.g-steps { margin-top: 64px; }
.g-steps h2 { margin-bottom: 20px; }
.toc { counter-reset: s; display: grid; gap: 10px; }
.toc li { counter-increment: s; }
.toc a { position: relative; display: block; padding: 16px 20px 16px 64px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 17.5px; line-height: 1.45; transition: border-color 160ms ease; }
.toc a::before { content: counter(s); position: absolute; left: 18px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-wash); color: var(--accent-deep); font-family: var(--font-display); font-weight: 800; font-size: 16px; }
@media (hover: hover) { .toc a:hover { border-color: var(--ink); } }

/* numbered sections */
.g-sec { padding-top: 88px; }
.g-sec .n { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; color: var(--accent-deep); }
.g-sec h2 { margin: 10px 0 18px; }
.g-sec .n + h2 { margin-top: 10px; }
.answer { color: var(--ink); font-weight: 500; }

.g-list { display: grid; gap: 12px; margin-top: 20px; }
.g-list li { position: relative; padding-left: 26px; }
.g-list li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.g-list strong { color: var(--ink); }
.g-sec p + .g-list, .g-list + p { margin-top: 18px; }

/* inside the group: one line, not a card */
.inside { margin-top: 32px !important; padding-left: 18px; border-left: 3px solid var(--accent); font-size: 17.5px !important; line-height: 1.6 !important; color: var(--muted); }
.inside strong { color: var(--ink); }

/* the copy block */
.msg { margin: 32px 0 0; padding: 20px 20px 22px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.msg figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.msg .lbl { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.copy { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 700; flex: none; transition: background-color 160ms ease, border-color 160ms ease; }
.copy svg { width: 16px; height: 16px; }
.copy.done { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.copy.done svg { color: var(--accent); }
@media (hover: hover) { .copy:not(.done):hover { border-color: var(--ink); } }
.bubble { padding: 18px 20px; border-radius: 20px 20px 20px 6px; background: var(--ink); color: #F2F3F5; font-size: 18px !important; line-height: 1.7 !important; }
.bubble .slot { background: rgba(76, 125, 255, 0.24); color: #C9D6FF; }
.under { margin-top: 14px !important; font-size: 15.5px !important; line-height: 1.5 !important; color: var(--muted); }

/* soft offer boxes */
.ask { margin-top: 56px; padding: 30px 30px 28px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(16, 18, 22, 0.4); }
.ask .bridge { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.9rem) !important; line-height: 1.12 !important; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.ask .bridge + p { margin-top: 12px; color: var(--muted); }
.ask .btn { margin-top: 22px; }
.micro { margin-top: 12px !important; font-size: 14.5px !important; line-height: 1.5 !important; color: var(--muted); }

/* close */
.g-close { padding-top: 96px; }
.g-close .col { border-top: 3px solid var(--ink); padding-top: 40px; }
.g-close h2 { margin-bottom: 20px; }
.g-close .label { margin-top: 24px; font-weight: 700; color: var(--ink); }
.g-close .label + .g-list { margin-top: 12px; }

/* end exits */
.exits { margin-top: 48px; padding: clamp(28px, 4vw, 40px); border-radius: 26px; background: var(--ink); color: var(--on-dark); scroll-margin-top: 24px; }
.exits .btn { width: 100%; }
.exits .micro { color: var(--muted-dark); }
.exit + .exit { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.btn--line { border: 1.5px solid rgba(255, 255, 255, 0.28); color: #FFFFFF; }
@media (hover: hover) { .btn--line:hover { border-color: #FFFFFF; } }
.guide-page .exits a.link-plain { min-height: 44px; color: #FFFFFF; font-size: 17px; font-weight: 700; }
.exits :focus-visible { outline-color: var(--accent); }

/* FAQ */
.g-faq { padding-top: 96px; }
.g-faq h2 { margin-bottom: 20px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--muted); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); line-height: 1.25; letter-spacing: -0.01em; }
.faq-item p { padding: 0 0 22px; margin: 0 !important; font-size: 17.5px; color: var(--muted); }

/* footer on guide pages: brand row only, no in-page nav */
.guide-page + .foot .foot__top { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 560px) {
  .guide-page { padding: 40px 0 80px; }
  .guide-page p, .guide-page li { font-size: 18px; }
  .g-top .eyebrow { font-size: 12.5px; padding: 7px 12px; }
  .dek { font-size: 19px !important; }
  .answerbox { margin-top: 32px; padding: 22px 20px 24px; border-radius: 20px; }
  .answerbox p:not(.tag) { font-size: 18.5px; }
  .g-steps { margin-top: 52px; }
  .toc a { padding: 14px 16px 14px 56px; font-size: 16.5px; }
  .toc a::before { left: 14px; top: 12px; width: 28px; height: 28px; font-size: 15px; }
  .g-sec { padding-top: 72px; }
  .g-sec .n { font-size: 38px; }
  .msg { margin-inline: -6px; padding: 16px 14px 18px; border-radius: 20px; }
  .bubble { padding: 15px 16px; font-size: 17px !important; }
  .ask { margin-top: 48px; padding: 24px 20px 22px; border-radius: 20px; }
  .ask .btn { width: 100%; }
  .g-close, .g-faq { padding-top: 80px; }
  .exits { border-radius: 22px; }
}
