/* A2 tools: readiness quiz + 90-day starter plan. White page, grey-blue panels, slate buttons. */
.tq-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tq-layout > .tq-result { grid-column: 1; }
.tq-side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; }
.tq-card { background: var(--panel, #F1F4F8); border: 1px solid var(--panel-line, #D9E1EB); border-radius: var(--r, 16px); padding: clamp(20px, 3vw, 32px); }
.tq-card + .tq-card { margin-top: 20px; }
.tq-fine { font-size: 14px; color: var(--text-2, #4A5565); margin: 8px 0 0; }

/* progress */
.tq-progress { height: 8px; border-radius: 99px; background: #fff; border: 1px solid var(--panel-line, #D9E1EB); overflow: hidden; }
.tq-progress-bar { display: block; height: 100%; width: 0; background: var(--slate, #355C8A); border-radius: inherit; transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.tq-progress-text { margin: 10px 0 18px; font-size: 14px; font-weight: 600; color: var(--text-2, #4A5565); }
.tq-quiz:not(.is-stepped) .tq-progress, .tq-quiz:not(.is-stepped) .tq-progress-text, .tq-quiz:not(.is-stepped) .tq-nav { display: none; }

/* steps */
.tq-step { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.tq-quiz.is-stepped .tq-step { margin: 0; }
.tq-step.is-in { animation: tq-in .38s cubic-bezier(.2, .7, .2, 1) both; }
.tq-step.is-in[data-dir="back"] { animation-name: tq-in-back; }
@keyframes tq-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes tq-in-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.tq-step legend { padding: 0; margin-bottom: 16px; }
.tq-count { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate, #355C8A); margin-bottom: 8px; }
.tq-q { display: block; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.25; color: var(--text, #15202E); letter-spacing: -.01em; }
.tq-options { display: grid; gap: 10px; }
.tq-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1.5px solid var(--line-strong, #C9D3DF); border-radius: var(--r-s, 10px); padding: 14px 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tq-opt:hover { border-color: var(--slate, #355C8A); }
.tq-opt:has(input:checked) { border-color: var(--slate, #355C8A); box-shadow: 0 0 0 3px rgba(53, 92, 138, .15); }
.tq-opt:has(input:focus-visible) { outline: 3px solid var(--slate, #355C8A); outline-offset: 2px; }
.tq-opt input { width: 18px; height: 18px; accent-color: var(--slate, #355C8A); margin: 0; }
.tq-opt-text { font-size: 16px; line-height: 1.4; }
.tq-pts { font-size: 13px; font-weight: 700; color: var(--slate, #355C8A); background: var(--panel, #F1F4F8); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.tq-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.tq-nav button:disabled, .tq-email button:disabled { opacity: .45; cursor: not-allowed; }

/* result */
.tq-result { outline: none; }
.tq-result.is-in > *, .tq-plan.is-in .tq-month { animation: tq-up .5s cubic-bezier(.2, .7, .2, 1) both; }
.tq-result.is-in > :nth-child(2) { animation-delay: .08s; }
.tq-result.is-in > :nth-child(3) { animation-delay: .16s; }
.tq-result.is-in > :nth-child(4) { animation-delay: .24s; }
@keyframes tq-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tq-score-card h2 { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.tq-score { font-size: clamp(56px, 8vw, 88px); font-weight: 800; line-height: 1; color: var(--slate, #355C8A); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tq-of { font-size: 22px; font-weight: 700; color: var(--text-2, #4A5565); }
.tq-band-tag { display: inline-block; margin: 14px 0 8px; padding: 5px 12px; border-radius: 99px; font-size: 14px; font-weight: 700; background: #fff; color: var(--slate, #355C8A); border: 1px solid var(--panel-line, #D9E1EB); }
.tq-band-text { margin: 0; font-size: 17px; }
.tq-areas { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.tq-areas li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 15px; }
.tq-area-bar { height: 8px; background: #fff; border-radius: 99px; overflow: hidden; border: 1px solid var(--panel-line, #D9E1EB); }
.tq-area-bar span { display: block; height: 100%; width: var(--w); background: var(--slate, #355C8A); border-radius: inherit; }
.tq-result.is-in .tq-area-bar span { animation: tq-grow .8s .2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tq-grow { from { width: 0; } }
.tq-area-pts { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2, #4A5565); }
.tq-steps { margin: 12px 0 20px; padding-left: 22px; display: grid; gap: 10px; }
.tq-link { background: none; border: 0; padding: 0; color: var(--slate, #355C8A); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* rubric */
.tq-rubric { background: #fff; border: 1px solid var(--panel-line, #D9E1EB); border-top: 4px solid var(--slate, #355C8A); border-radius: var(--r, 16px); padding: 20px 22px; }
.tq-rubric summary { font-weight: 800; font-size: 18px; cursor: pointer; }
.tq-rubric ul { padding-left: 18px; display: grid; gap: 8px; }
.tq-rubric p, .tq-rubric li { font-size: 15px; line-height: 1.5; }

/* email form */
.tq-email h2 { margin: 0; }
.tq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.tq-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tq-field input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid var(--line-strong, #C9D3DF); border-radius: var(--r-s, 10px); font: inherit; background: #fff; }
.tq-field input:focus-visible { outline: 3px solid var(--slate, #355C8A); outline-offset: 1px; }
.tq-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; }
.tq-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--slate, #355C8A); flex: none; }
.tq-err { min-height: 0; margin: 4px 0 0; font-size: 14px; color: #A3343A; }
.tq-err:empty { display: none; }
.tq-email button[type="submit"] { margin-top: 14px; }
.tq-status { margin: 12px 0 0; font-size: 15px; }
.tq-status[data-state="off"] { padding: 10px 14px; background: #fff; border: 1px solid var(--panel-line, #D9E1EB); border-left: 4px solid var(--slate, #355C8A); border-radius: var(--r-s, 10px); }
.tq-status[data-state="ok"] { color: var(--sage, #4F7061); font-weight: 600; }

/* starter plan */
.tq-plan-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.tq-legend { font-weight: 800; font-size: 18px; padding: 0; margin-bottom: 12px; }
.tq-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tq-chip { position: relative; }
.tq-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tq-chip span { display: inline-block; padding: 10px 16px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line-strong, #C9D3DF); font-weight: 600; font-size: 15px; transition: background .2s, border-color .2s, color .2s; }
.tq-chip:hover span { border-color: var(--slate, #355C8A); }
.tq-chip input:checked + span { background: var(--slate, #355C8A); border-color: var(--slate, #355C8A); color: #fff; }
.tq-chip input:focus-visible + span { outline: 3px solid var(--slate, #355C8A); outline-offset: 2px; }
.tq-plan { margin-top: 36px; outline: none; }
.tq-plan-head h2 { margin: 0 0 6px; }
.tq-plan-label { margin: 0 0 18px; font-weight: 600; color: var(--text-2, #4A5565); }
.tq-claims { margin: 0 0 20px; padding: 14px 18px; background: var(--panel, #F1F4F8); border-left: 5px solid var(--acc, var(--slate, #355C8A)); border-radius: var(--r-s, 10px); }
.tq-plan[data-industry="beauty"] { --acc: var(--rose, #B8676B); }
.tq-plan[data-industry="health"] { --acc: var(--sage, #4F7061); }
.tq-plan[data-industry="ecommerce"] { --acc: var(--slate, #355C8A); }
.tq-plan[data-industry="saas"] { --acc: var(--violet, #5B4BC4); }
.tq-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tq-month { background: var(--panel, #F1F4F8); border: 1px solid var(--panel-line, #D9E1EB); border-top: 5px solid var(--acc, var(--slate, #355C8A)); border-radius: var(--r, 16px); padding: 22px; }
.tq-plan.is-in .tq-month { animation-delay: calc(var(--i, 0) * .09s); }
.tq-month-tag { display: inline-block; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc, var(--slate, #355C8A)); }
.tq-month h3 { margin: 0 0 12px; font-size: 20px; }
.tq-month ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.tq-plan .v2-actions { margin-top: 24px; flex-wrap: wrap; }
.tq-plan .tq-card { margin-top: 28px; }

@media (max-width: 900px) {
  .tq-layout { grid-template-columns: 1fr; }
  .tq-side { grid-column: 1; grid-row: auto; position: static; }
  .tq-months { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tq-fields { grid-template-columns: 1fr; }
  .tq-areas li { grid-template-columns: 1fr auto; }
  .tq-area-bar { grid-column: 1 / -1; grid-row: 2; }
  .tq-opt { padding: 12px; gap: 10px; }
  .tq-nav .btn-v2 { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tq-step.is-in, .tq-result.is-in > *, .tq-plan.is-in .tq-month, .tq-result.is-in .tq-area-bar span { animation: none !important; }
  .tq-progress-bar, .tq-opt, .tq-chip span { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .preview-ribbon, .mobile-menu, .skip, .tq-plan-form, .tq-noprint, .crumbs, .v2-page-hero .v2-page-sub { display: none !important; }
  body { background: #fff; }
  .v2-page-hero, .v2-section { padding: 0 !important; }
  .tq-plan { margin: 0; }
  .tq-months { grid-template-columns: 1fr; gap: 12px; }
  .tq-month { break-inside: avoid; background: #fff; border-color: #999; }
  .tq-claims { background: #fff; border: 1px solid #999; border-left-width: 5px; }
  .tq-plan.is-in .tq-month { animation: none; }
}
