/* Robo-Advisor page only: questionnaire, score meter, portfolio picker, donut row, goal plan. */

/* page-local spacing: a tinted or CTA section after a plain one keeps its top padding */
.section + .section--tint, .section + .cta-band { padding-top: clamp(64px, 9vw, 128px); }

/* hero chip meter */
.chip .big .of { font-size: 1rem; color: var(--night-muted); }
.chip-meter { position: relative; height: 6px; border-radius: 999px; background: rgba(43, 196, 138, .22); margin: 12px 0 10px; }
.chip-meter i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--glow); }
.chip-meter b { position: absolute; top: -3px; width: 1px; height: 12px; background: var(--night-fg); opacity: .55; }

/* questionnaire */
.quiz { gap: 22px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.q legend { padding: 0; margin-bottom: 10px; font-size: .95rem; font-weight: 500; color: var(--fg); }
.quiz .seg, .seg--wrap { display: flex; flex-wrap: wrap; border-radius: 18px; }
.quiz .seg button, .seg--wrap button { flex: 1 1 auto; line-height: 1.2; min-height: 36px; }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg button:disabled { cursor: not-allowed; opacity: .55; }
.seg button:disabled small { display: block; font-size: .72rem; font-weight: 400; margin-top: 2px; }
.seg--wrap button small { display: block; font-size: .72rem; font-weight: 400; margin-top: 3px; opacity: .85; }

/* result column */
.result { display: grid; gap: 18px; min-width: 0; align-content: start; }
.meter { padding-bottom: 18px; }
.meter-track { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter-track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.meter-marks { position: relative; height: 0; }
.meter-marks span { position: absolute; top: 6px; transform: translateX(-50%); font-size: .75rem; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.meter-marks span:first-child { transform: none; }
.meter-marks span:last-child { transform: translateX(-100%); }
.meter-marks span::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 8px; background: var(--fg-muted); opacity: .6; }
.meter-marks span:first-child::before, .meter-marks span:last-child::before { display: none; }
.pick { display: grid; gap: 10px; }
.pick-label { font-size: .92rem; font-weight: 500; }

.donut-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; align-items: center; }
.donut-row .chart-wrap { width: 100%; max-width: 220px; }
#g-chart { overflow: visible; }
.legend--stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legend--stack li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--fg-muted); }
.legend--stack li b { margin-left: auto; color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend--stack li.top { color: var(--fg); }
@media (max-width: 420px) {
  .donut-row { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .donut-row .legend--stack { width: 100%; }
}

/* goal plan */
.demo-head--split { border-top: 1px solid var(--line); background: var(--bg); }
.demo-head--split + .demo-body { background: var(--bg); }
.field select { appearance: auto; }
.field select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.demo-head--split + .demo-body .field input, .demo-head--split + .demo-body .field select { background: var(--surface); }
.opt-note { color: var(--fg-muted); font-weight: 400; }
.plan-status { font-size: .95rem; line-height: 1.5; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.plan-status .pill { flex: none; }
.pill.stop { background: color-mix(in srgb, var(--signal-down) 14%, transparent); color: var(--signal-down); }
.readout b.small { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); }

/* capabilities intro: a long sentence heading inside a split column reads better one step smaller */
