/* funnel.css — shared funnel UI (sticky bar, CTA rows, forms, cards).
   Loaded by index.html, _layouts/default.html, and 404.html. Uses the page's own tokens. */

/* funnel.js hides TBD elements with the hidden attribute; beat class display rules */
[hidden] { display: none !important; }

/* Header phone (desktop only — phones get the sticky bar) */
.nav-phone { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--orange-deep); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.nav-phone:hover { color: var(--orange-deep); }
@media (max-width: 1024px) { .nav-phone { display: none; } }

/* Secondary line under the mobile-menu button */
.mobile-cta-sub { display: block; text-align: center; margin-top: 14px; font-size: 16px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange-deep); text-underline-offset: 4px; }

/* Generic CTA row: one button + one text link */
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
@media (max-width: 600px) { .cta-row .btn { width: 100%; } }

/* Lead forms (rendered by funnel.js into [data-cd-form] slots) */
.cd-form-slot { max-width: 680px; }
.section-actions + .cd-form-slot, .cta-row + .cd-form-slot, .plans + .cd-form-slot, .tier-grid + .cd-form-slot { margin-top: 24px; }
.cd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.cd-field { display: flex; flex-direction: column; gap: 6px; }
.cd-field.wide { grid-column: 1 / -1; }
.cd-field label { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cd-opt { font-weight: 400; color: var(--text-muted); }
.cd-form input, .cd-form select, .cd-form textarea { font: inherit; font-size: 16px; line-height: 1.4; color: var(--text); background: var(--surface); border: 1px solid var(--text-muted); border-radius: var(--radius); padding: 10px 12px; min-height: 44px; width: 100%; }
.cd-form textarea { min-height: 120px; resize: vertical; }
.cd-form select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.cd-form input:focus-visible, .cd-form select:focus-visible, .cd-form textarea:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 2px; border-color: var(--orange-deep); }
.cd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cd-turnstile { margin-top: 16px; }
.cd-form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.cd-form-note { font-size: 14px; color: var(--text-muted); }
.cd-form-note a { text-decoration: underline; text-decoration-color: var(--orange-deep); text-underline-offset: 3px; }
.cd-form button[disabled] { opacity: 0.6; cursor: default; }
.cd-status { margin-top: 14px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.cd-status:empty { display: none; }
.cd-status:focus { outline: none; }
.cd-done { padding: 22px 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); max-width: 560px; }
.cd-done:focus { outline: 2px solid var(--orange-deep); outline-offset: 2px; }
.cd-done-text { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 18px; line-height: 1.35; margin-bottom: 8px; }
.cd-done-alt { font-size: 15px; color: var(--text-muted); }
@media (max-width: 600px) {
  .cd-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .cd-form-foot .btn { width: 100%; }
}

/* System Assessment card + plan buttons (home + plans page) */
.assess { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); }
.assess .label { font-size: 11px; }
.assess h3 { font-size: 22px; }
.assess-price { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.assess-price .ph { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--text-muted); }
.assess-note { font-size: 14px; color: var(--text-muted); margin-top: -6px; }
.assess ul { border-top: 1px solid var(--hairline); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; }
.assess li { font-size: 15px; line-height: 1.45; padding-left: 18px; position: relative; }
.assess li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1.5px; background: var(--orange-deep); }
.assess .btn, .plan-buy .btn { margin-top: auto; }
.plan-buy { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 6px; }
.plan-buy .btn { width: 100%; }
.plan-buy .btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--text-muted); }
.plan-buy .btn.secondary:hover { border-color: var(--text); background: transparent; }
.plan-buy .fine { font-size: 13px; color: var(--text-muted); text-align: center; }
.plan-buy .fine a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange-deep); }
.rapc { display: block; font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.45; }

/* About: who you'll work with */
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; max-width: 820px; }
.about-photo { width: 200px; height: 200px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--hairline); display: block; }
.about-bio p { font-size: 17px; line-height: 1.6; max-width: 58ch; }
.about-bio p + p { margin-top: 12px; }
.about-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.about-draft { display: inline-block; font-size: 12px; font-weight: 700; color: var(--text-muted); border: 1px dashed var(--text-muted); border-radius: var(--radius); padding: 2px 8px; margin-bottom: 12px; }
.cd-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.cd-review { padding: 22px 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); margin: 0; }
.cd-review blockquote { font-size: 16px; line-height: 1.55; margin: 0 0 10px; }
.cd-review figcaption { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; }
.cd-review figcaption span { font-family: 'Inter', sans-serif; font-weight: 500; color: var(--text-muted); }
@media (max-width: 600px) { .about-grid { grid-template-columns: 1fr; gap: 20px; } .about-photo { width: 140px; height: 140px; } }

/* Help page */
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 40px; }
.help-card { padding: 28px 26px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.help-card.urgent { border-color: var(--orange-deep); }
.help-card h2 { font-size: 22px; }
.help-card p { font-size: 15.5px; line-height: 1.55; color: var(--text-muted); }
.help-card .btn { align-self: flex-start; margin-top: 4px; }
.help-rates { border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 12px; font-size: 14.5px; line-height: 1.6; }
.help-rates strong { color: var(--text); }
@media (max-width: 700px) { .help-grid { grid-template-columns: 1fr; } .help-card .btn { align-self: stretch; } }

/* Sticky mobile bar: Call · Book (built by funnel.js) */
.cd-sticky { display: none; }
@media (max-width: 820px) {
  .cd-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: var(--surface); border-top: 1px solid var(--hairline); padding-bottom: env(safe-area-inset-bottom); }
  .cd-sticky a { flex: 1; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; }
  .cd-sticky a + a { border-left: 1px solid var(--hairline); }
  .cd-sticky a.primary { background: var(--orange-deep); color: var(--ink-fixed); border-left: 0; }
  .cd-sticky svg { width: 18px; height: 18px; flex-shrink: 0; }
  body.cd-has-sticky { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
  body.menu-open .cd-sticky { display: none; }
  /* 44px tap targets for the header icon buttons on small screens */
  .icon-btn { width: 44px; height: 44px; }
}
@media print { .cd-sticky { display: none; } }
