/* The Business Tree Diagnostic — app components, scoped to .tree-app.
   Layout/typography/cards/buttons come from the design system (aefin.css);
   this file styles only what the app generates or uniquely needs. */

.tree-app .note { font-size: .85rem; color: var(--muted); }
.tree-app .hidden { display: none; }

/* Quick Scan form */
.tree-app fieldset.q {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  margin: 0 0 1.2rem;
  padding: 1rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
}
.tree-app fieldset.q legend {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0 .4rem;
  color: var(--green-deep);
}
.tree-app fieldset.q label {
  display: block;
  padding: .45rem .5rem;
  border-radius: 8px;
  cursor: pointer;
}
.tree-app fieldset.q label:hover { background: var(--paper-2); }
.tree-app fieldset.q input { margin-right: .6rem; accent-color: var(--green); }
.tree-app .progress { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.tree-app form button.btn { margin-top: .4rem; }

/* Result / report */
.tree-app .band-line { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin: .4rem 0; }
.tree-app .band-name { font-family: var(--serif); font-weight: 700; color: var(--green-deep); }
.tree-app .score-table { width: 100%; border-collapse: collapse; margin: .8rem 0 0; }
.tree-app .score-table td, .tree-app .score-table th {
  text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.tree-app .score-table th { font-family: var(--serif); color: var(--ink); }
.tree-app .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: .55rem; }
.tree-app .dot.green { background: var(--green); }
.tree-app .dot.amber { background: var(--gold); }
.tree-app .dot.red { background: #a8442f; }

.tree-app .playbook { border-left: 4px solid var(--green); margin: 1.2rem 0; }
.tree-app .playbook h3 { margin-top: 0; }
.tree-app .credit { font-size: .82rem; font-style: italic; color: var(--muted); }
.tree-app .playbook ol { margin: .5rem 0 0; padding-left: 1.4rem; }
.tree-app .treatment-name { font-weight: 600; }

.tree-app .tree-figure { text-align: center; margin: .8rem 0 .3rem; }
.tree-app .tree-figure svg { max-width: 100%; height: auto; }
.tree-app .tree-legend { font-size: .8rem; color: var(--muted); text-align: center; margin-bottom: 1rem; }

/* Email capture stub */
.tree-app .email-stub form { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.tree-app .email-stub input[type="email"] {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--line);
  border-radius: 10px; width: 100%; max-width: 320px;
}
.tree-app .email-stub input[type="email"]:focus { outline: 2px solid var(--green); border-color: var(--green); }

/* Consultant mode (?mode=consultant only) */
.tree-app .consultant { border: 2px dashed var(--gold); background: #fdf9f0; }
.tree-app .consultant textarea {
  width: 100%; min-height: 120px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem;
}

/* Standalone cards on tree pages (outside a .cards grid) */
.tree-app .card { margin: 1.2rem 0; }

/* Verbatim per-page disclaimer strip (ships with the port — copy discipline) */
.tree-disclaimer { border-top: 1px solid var(--line); }
.tree-disclaimer p { font-size: .82rem; color: var(--muted); max-width: var(--measure); margin: .4rem 0; }
