/* Marketing Rule Tool — scorecard page styles */

/* ── PAGE SHELL ── */
.tool-page { max-width: 860px; margin: 0 auto; padding: 64px 40px 120px; }

/* ── BREADCRUMB ── */
.tool-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--fg-muted); margin-bottom: 28px; }
.tool-breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.tool-breadcrumb a:hover { color: var(--accent); }
.tool-breadcrumb-sep { opacity: 0.4; }

/* ── HERO ── */
.tool-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(240,165,0,0.08); border: 1px solid rgba(240,165,0,0.25); border-radius: 20px; padding: 5px 14px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.tool-eyebrow-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.75)} }

.tool-headline { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--fg); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.tool-sub { font-size: 1rem; color: var(--fg-muted); line-height: 1.7; max-width: 660px; margin-bottom: 36px; }

/* ── SCORE BAR ── */
.score-bar-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin-bottom: 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.score-bar-label { font-size: 0.75rem; color: var(--fg-muted); white-space: nowrap; min-width: 120px; }
.score-bar-track { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; min-width: 160px; }
.score-bar-fill { height: 100%; border-radius: 5px; transition: width 0.4s ease, background 0.4s ease; width: 0%; background: var(--green); }
.score-bar-pct { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--fg); min-width: 60px; text-align: right; }
.score-band { font-size: 0.75rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.band-audit { background: rgba(52,211,153,0.15); color: var(--green); }
.band-gaps  { background: rgba(251,191,36,0.15); color: var(--amber); }
.band-critical { background: rgba(248,113,113,0.15); color: var(--red); }

/* ── QUESTION SECTIONS ── */
.q-section { margin-bottom: 36px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color 0.2s; }
.q-section:hover { border-color: rgba(240,165,0,0.25); }
.q-section-header { padding: 18px 22px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-section-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--fg); }
.q-section-score { font-size: 0.75rem; font-weight: 700; color: var(--fg-muted); white-space: nowrap; }
.q-list { padding: 6px 0 6px; }
.q-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--border); }
.q-item:last-child { border-bottom: none; }
.q-text { font-size: 0.875rem; color: var(--fg); line-height: 1.5; flex: 1; }
.q-weight { font-size: 0.68rem; color: var(--fg-muted); margin-top: 4px; }
.q-options { display: flex; gap: 8px; flex-shrink: 0; }
.q-btn { padding: 6px 14px; border-radius: 7px; border: 1.5px solid var(--border); background: transparent; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s; color: var(--fg-muted); white-space: nowrap; }
.q-btn:hover { border-color: var(--accent); color: var(--accent); }
.q-btn.selected-yes   { background: rgba(52,211,153,0.15); border-color: var(--green); color: var(--green); }
.q-btn.selected-partial { background: rgba(251,191,36,0.12); border-color: var(--amber); color: var(--amber); }
.q-btn.selected-no    { background: rgba(248,113,113,0.12); border-color: var(--red); color: var(--red); }

/* ── EMAIL GATE ── */
.email-gate { display: none; background: var(--surface); border: 1.5px solid rgba(240,165,0,0.35); border-radius: 16px; padding: 36px 40px; margin-bottom: 36px; }
.email-gate.visible { display: block; }
.gate-license-wrap { margin-bottom: 14px; }
.gate-license-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--fg-muted); margin-bottom: 6px; letter-spacing: 0.04em; }
.gate-license-wrap select { background: var(--bg); border: 1.5px solid var(--border); border-radius: 9px; padding: 10px 14px; font-size: 0.88rem; color: var(--fg); outline: none; transition: border-color 0.2s; font-family: var(--font-body); cursor: pointer; width: 100%; max-width: 340px; }
.gate-license-wrap select:focus { border-color: var(--accent); }
.gate-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.gate-score-display { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.gate-band-display { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.gate-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.gate-sub { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 22px; }
.gate-form { display: flex; gap: 10px; flex-wrap: wrap; }
.gate-input { flex: 1; min-width: 220px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 9px; padding: 12px 16px; font-size: 0.9rem; color: var(--fg); outline: none; transition: border-color 0.2s; font-family: var(--font-body); }
.gate-input::placeholder { color: var(--fg-muted); }
.gate-input:focus { border-color: var(--accent); }
.gate-submit { background: var(--accent); color: #000; border: none; border-radius: 9px; padding: 12px 26px; font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.gate-submit:hover { background: #FFBA30; }
.gate-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.gate-msg { font-size: 0.8rem; margin-top: 10px; color: var(--green); display: none; }
.gate-msg.error { color: var(--red); }
.gate-skip { font-size: 0.75rem; color: var(--fg-muted); margin-top: 12px; }
.gate-skip a { color: var(--fg-muted); text-decoration: underline; cursor: pointer; }
.gate-skip a:hover { color: var(--accent); }

/* ── RESULT PANEL ── */
.result-panel { display: none; }
.result-panel.visible { display: block; }

/* ── FOUNDING CTA CARD ── */
.founding-cta-card { background: rgba(240,165,0,0.07); border: 1.5px solid rgba(240,165,0,0.35); border-radius: 16px; padding: 32px 36px; margin-bottom: 32px; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.founding-cta-left { flex: 1; min-width: 240px; }
.founding-cta-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.founding-slot-counter { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--fg-muted); margin-bottom: 10px; }
.founding-slot-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse-dot 1.8s ease-in-out infinite; flex-shrink: 0; }
.founding-cta-headline { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--fg); margin-bottom: 8px; line-height: 1.25; }
.founding-cta-body { font-size: 0.84rem; color: var(--fg-muted); line-height: 1.65; }
.founding-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #000; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; padding: 14px 30px; border-radius: 10px; text-decoration: none; transition: background 0.15s; flex-shrink: 0; white-space: nowrap; }
.founding-cta-btn:hover { background: #FFBA30; }

/* ── TAIL LINKS ── */
.tail-section { margin-bottom: 40px; }
.tail-divider { height: 1px; background: var(--border); margin: 48px 0 36px; }
.tail-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.tail-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--fg); margin-bottom: 16px; }
.tail-links { display: flex; flex-direction: column; gap: 10px; }
.tail-link { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--fg); font-size: 0.875rem; transition: border-color 0.15s; }
.tail-link:hover { border-color: var(--accent); }
.tail-link-arrow { margin-left: auto; color: var(--fg-muted); }

/* ── FAQ ── */
.faq-section { margin-bottom: 48px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; user-select: none; }
.faq-q { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--fg); }
.faq-icon { flex-shrink: 0; color: var(--fg-muted); transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 0.84rem; color: var(--fg-muted); line-height: 1.7; margin-top: 10px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── FOUNDING MEMBER CAPTURE FORM (inline on scorecard completion) ── */
.founding-form-card { background: rgba(240,165,0,0.06); border: 1.5px solid rgba(240,165,0,0.3); border-radius: 16px; padding: 32px 36px; margin-bottom: 32px; }
.founding-form-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.founding-form-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.founding-form-headline { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--fg); margin-bottom: 8px; line-height: 1.25; }
.founding-form-body { font-size: 0.84rem; color: var(--fg-muted); line-height: 1.65; margin-bottom: 20px; }
.founding-form { display: flex; flex-direction: column; gap: 10px; }
.ff-input { background: var(--bg); border: 1.5px solid var(--border); border-radius: 9px; padding: 11px 16px; font-size: 0.88rem; color: var(--fg); outline: none; transition: border-color 0.2s; font-family: var(--font-body); }
.ff-input::placeholder { color: var(--fg-muted); }
.ff-input:focus { border-color: var(--accent); }
.ff-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #000; border: none; border-radius: 10px; padding: 13px 28px; font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; cursor: pointer; transition: background 0.15s; width: 100%; }
.ff-submit:hover { background: #FFBA30; }
.ff-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.ff-msg { font-size: 0.8rem; margin-top: 8px; color: var(--green); display: none; }
.ff-msg.error { color: var(--red); }

/* ── SCORE SUMMARY (shown on skip/no-signup path) ── */
.score-summary { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px 32px; margin-bottom: 32px; }
.ss-header { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 16px; }
.ss-result { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ss-score { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--fg); line-height: 1; }
.ss-band { font-size: 1rem; font-weight: 700; }
.ss-sections { display: flex; flex-direction: column; gap: 8px; }
.ss-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; }
.ss-sname { color: var(--fg-muted); }
.ss-score-val { font-weight: 700; font-family: var(--font-display); }

/* ── TEMPLATE PAGE ── */
.template-page .template-headline { margin-bottom: 12px; }
.template-sub { margin-bottom: 48px; }

.template-contents { margin-bottom: 48px; }
.contents-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.contents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.contents-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; transition: border-color 0.2s; }
.contents-card:hover { border-color: rgba(240,165,0,0.25); }
.contents-icon { color: var(--accent); margin-bottom: 10px; }
.contents-title { font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.contents-desc { font-size: 0.78rem; color: var(--fg-muted); line-height: 1.6; }

.template-gate { margin-top: 0; }
.template-result { display: none; }
.template-result.visible { display: block; }

@media (max-width: 640px) {
  .contents-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tool-page { padding: 40px 20px 80px; }
  .q-item { flex-direction: column; }
  .q-options { margin-top: 4px; }
  .score-bar-wrap { flex-direction: column; align-items: flex-start; }
  .score-bar-pct { align-self: flex-end; }
  .email-gate, .founding-cta-card, .founding-form-card { padding: 24px 20px; }
  .founding-cta-card { flex-direction: column; }
  .gate-form, .founding-form { flex-direction: column; }
  .gate-input, .ff-input { width: 100%; }
}
