/* Adviol AI Mirror */
.am-slot, .am-card, .am-report, .am-progress, .am-results { --am-ink: #14112E; --am-violet: #6D4AFF; --am-violet-text: #5A3AE6; --am-tint: #F6F4FF; --am-line: #E3DEFA; --am-body: #4A4763; --am-cap: #5A5770; --am-field: #C9C0F2; }
.am-slot { flex: 1 1 420px; min-width: 0; }
.am-slot > p { margin: 0; }
.am-results, .am-results * , .am-card, .am-card * { box-sizing: border-box; }

/* ---------- Form card ---------- */
.am-card { background: #FFFFFF; border: 1px solid var(--am-line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; color: var(--am-ink); font-family: inherit; text-align: left; }
.am-card__title { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.am-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.am-row .am-field { flex: 1 1 160px; }
.am-field label { font-size: 14px; font-weight: 500; color: var(--am-ink); }
.am-field input, .am-field select { font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid var(--am-field); border-radius: 14px; min-height: 50px; height: 50px; width: 100%; background: #FFFFFF; color: var(--am-ink); box-shadow: none; margin: 0; }
.am-field input::placeholder { color: #8C88A6; }
.am-field input:focus, .am-field select:focus { outline: 2px solid var(--am-violet); outline-offset: 1px; border-color: var(--am-violet); }
.am-field input[aria-invalid="true"] { border-color: #C2334D; }
.am-row { display: flex; flex-wrap: wrap; gap: 12px; }
.am-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--am-body); cursor: pointer; line-height: 1.4; }
.am-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--am-violet); flex: 0 0 auto; }
.am-recaptcha { min-height: 78px; max-width: 100%; overflow: hidden; }
.am-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.am-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 500; line-height: 1.2; border-radius: 999px; padding: 16px 28px; min-height: 48px; border: 0; cursor: pointer; text-decoration: none; transition: background .15s ease, opacity .15s ease; }
.am-btn--primary { background: var(--am-violet); color: #FFFFFF; width: 100%; }
.am-btn--primary:hover { background: var(--am-violet-text); color: #FFFFFF; }
.am-btn--primary[disabled] { opacity: .65; cursor: progress; }
.am-btn--light { background: #FFFFFF; color: var(--am-ink); }
.am-btn--light:hover { background: var(--am-tint); color: var(--am-ink); }
.am-btn--ghost { background: transparent; color: var(--am-violet-text); border: 1px solid var(--am-line); padding: 10px 18px; min-height: 40px; font-size: 14px; }
.am-small { margin: 0; font-size: 13px; color: var(--am-cap); line-height: 1.5; }
.am-small a { color: var(--am-violet-text); }
.am-alert { border-radius: 14px; padding: 12px 16px; font-size: 15px; background: #FDEEF1; color: #8E1F35; }
.am-alert.is-ok { background: var(--am-tint); color: var(--am-ink); }
.am-muted { color: var(--am-cap); margin: 0; }
.am-sent { display: flex; flex-direction: column; gap: 12px; }
.am-sent__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--am-tint); display: inline-flex; align-items: center; justify-content: center; color: var(--am-violet); }
.am-sent p { margin: 0; color: var(--am-body); font-size: 16px; }
.am-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--am-violet-text); text-decoration: underline; cursor: pointer; align-self: flex-start; }

/* ---------- Results ---------- */
.am-results-section { background: #FFFFFF; padding: 72px 32px 96px; }
.am-results-section > .am-results { max-width: 1040px; margin: 0 auto; }
.am-results-pointer { background: #FFFFFF; border: 1px solid var(--am-line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.am-results-pointer .am-card__title { font-size: 22px; }
.am-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--am-violet-text); }

.am-progress { background: #FFFFFF; border: 1px solid var(--am-line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; color: var(--am-ink); }
.am-progress__title { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.am-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.am-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; padding: 12px 14px; border-radius: 14px; background: var(--am-tint); }
.am-steps__name { flex: 1 1 auto; font-weight: 500; }
.am-steps__state { font-size: 14px; color: var(--am-cap); }
.am-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--am-field); flex: 0 0 auto; }
.am-steps li.is-running .am-dot { border-color: var(--am-violet); border-right-color: transparent; animation: am-spin .8s linear infinite; }
.am-steps li.is-done .am-dot { border: 0; background: var(--am-violet); box-shadow: inset 0 0 0 5px #FFFFFF, 0 0 0 2px var(--am-violet); }
.am-steps li.is-error .am-dot { border-color: #C2334D; }
@keyframes am-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .am-steps li.is-running .am-dot { animation: none; border-style: dotted; } }
.am-bar { height: 8px; border-radius: 999px; background: var(--am-line); overflow: hidden; }
.am-bar span { display: block; height: 100%; border-radius: 999px; background: var(--am-violet); transition: width .4s ease; }
.am-bar--big { height: 10px; margin-top: 4px; }

.am-report { color: var(--am-ink); display: flex; flex-direction: column; gap: 24px; text-align: left; }
.am-report__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.am-report__title { margin: 4px 0 0; font-size: 2.5rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--am-ink); }
.am-report__meta { color: var(--am-cap); font-size: 15px; margin-top: 6px; }
.am-score { display: flex; gap: 28px; align-items: center; background: var(--am-ink); color: #FFFFFF; border-radius: 24px; padding: 32px; flex-wrap: wrap; }
.am-score__num { font-size: 88px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: #FFFFFF; }
.am-score__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.am-score__label { font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #A995FF; }
.am-score__text { margin: 0; font-size: 19px; color: #FFFFFF; }
.am-score__summary { margin: 0; font-size: 16px; color: #D9D4F2; }
.am-engines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.am-engine { background: var(--am-tint); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.am-engine__name { font-size: 14px; color: var(--am-cap); }
.am-engine__score { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.am-engine.is-named .am-engine__score { color: var(--am-violet-text); }
.am-engine__line { font-size: 14px; color: var(--am-body); line-height: 1.4; }
.am-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.am-block { border: 1px solid var(--am-line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; }
.am-block__title { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--am-cap); }
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.am-chip { border: 1px solid var(--am-line); border-radius: 999px; padding: 6px 14px; font-size: 15px; background: #FFFFFF; }
.am-sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.am-sources li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--am-line); padding-bottom: 6px; }
.am-note { margin: 0; font-size: 14px; font-weight: 500; }
.am-note.is-good { color: #1D7A35; }
.am-note.is-bad { color: #A12A42; }
.am-describe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.am-describe__item { display: flex; flex-direction: column; gap: 6px; }
.am-describe__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.am-describe__item p { margin: 0; font-size: 15px; color: var(--am-body); line-height: 1.55; }
.am-tag { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; background: var(--am-tint); color: var(--am-cap); }
.am-tag--knows { background: #E6F4EA; color: #1D6B32; }
.am-tag--vague { background: #FFF4DB; color: #7A5600; }
.am-tag--unknown { background: #FDEEF1; color: #8E1F35; }
.am-fixes ol { margin: 0; padding: 0; list-style: none; counter-reset: am; display: flex; flex-direction: column; gap: 14px; }
.am-fixes li { counter-increment: am; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 2px; font-size: 16px; color: var(--am-body); }
.am-fixes li::before { content: counter(am); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--am-violet); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 15px; }
.am-fixes li strong { color: var(--am-ink); font-weight: 500; }
.am-answers { border: 1px solid var(--am-line); border-radius: 18px; padding: 18px 22px; }
.am-answers summary { cursor: pointer; font-weight: 500; font-size: 16px; }
.am-q { border-top: 1px solid var(--am-line); margin-top: 16px; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.am-q__text { font-weight: 500; font-size: 17px; }
.am-q__engine { font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.am-q__ans p { margin: 4px 0 0; font-size: 14px; color: var(--am-body); line-height: 1.55; }
.am-cta { background: var(--am-violet); color: #FFFFFF; border-radius: 24px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.am-cta__title { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.am-cta p { margin: 4px 0 0; color: #EDE8FF; }
.am-disclaimer { margin: 0; font-size: 13px; color: var(--am-cap); }
.am-message { max-width: 640px; }

@media (max-width: 900px) {
	.am-engines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.am-grid2, .am-describe { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.am-slot { flex-basis: 100% !important; }
	.am-card, .am-progress { padding: 22px; border-radius: 20px; }
	.am-results-section { padding: 48px 16px 64px; }
	.am-report__title { font-size: 2rem; }
	.am-score { padding: 24px; gap: 16px; }
	.am-score__num { font-size: 64px; }
	.am-score__text { font-size: 17px; }
	.am-engine__score { font-size: 28px; }
	.am-cta { padding: 24px; }
	.am-cta .am-btn { width: 100%; }
}
@media print {
	.am-print, .am-cta, .am-results-pointer, header, footer, .adv-header, .adv-footer { display: none !important; }
	.am-answers[open] summary ~ * { display: block; }
	.am-results-section { padding: 0; }
}
