/*
 * AskRank public design system (Home + Report).
 * Recreated from docs/design/. Admin pages use their own Bootstrap layout.
 */

:root {
  --accent: #2563EB;
  --ink: #0B0F19;
  --muted: #5B6677;
  --faint: #9AA4B6;
  --line: #EAEDF3;
  --line-2: #E8EBF1;
  --green: #16A34A;
  --green-ink: #15803D;
  --amber: #F59E0B;
  --amber-ink: #B45309;
  --red: #E5484D;
  --red-ink: #B91C1C;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes ar-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ar-spin { to { transform: rotate(360deg); } }
@keyframes ar-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes ar-dot { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

a { color: inherit; }

.ar-wrap { max-width: 1100px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.ar-display { font-family: var(--font-display); }

/* ---------- Shared atoms ---------- */
.ar-logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 38%, transparent);
}
.ar-logo--sm { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 38%, transparent); }
.ar-logo--xs { width: 26px; height: 26px; border-radius: 7px; box-shadow: none; }
.ar-brand { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.025em; color: var(--ink); }

.ar-eyebrow {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.ar-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; margin: 10px 0 0; color: var(--ink); }

.ar-btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 13px; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: filter .15s, opacity .15s;
}
.ar-btn-accent:hover { filter: brightness(.94); }

/* ===================================================================
   HOME PAGE
=================================================================== */
.ar-home { background: #fff; }

.ar-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 20px 22px;
}
.ar-header__brand { display: flex; align-items: center; gap: 10px; }
.ar-header__tag { font-size: 13.5px; color: var(--muted); font-weight: 500; }

.ar-hero {
  position: relative; overflow: hidden; padding: 46px 22px 62px;
  background: radial-gradient(820px 440px at 50% -150px, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%), #fff;
}
.ar-hero__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(11, 15, 25, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(#000, transparent 78%);
  mask-image: linear-gradient(#000, transparent 78%);
}
.ar-hero__inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.ar-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 100px;
  background: #fff; border: 1px solid color-mix(in srgb, var(--accent) 25%, #E6E9EF);
  box-shadow: 0 1px 3px rgba(11, 15, 25, .05);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #374151; text-transform: uppercase;
}
.ar-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); animation: ar-pulse 2s ease-in-out infinite; }
.ar-hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6.4vw, 62px);
  line-height: 1.02; letter-spacing: -0.035em; margin: 20px 0 0; color: var(--ink); text-wrap: balance;
}
.ar-hero__sub { max-width: 540px; margin: 18px auto 0; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* Form card */
.ar-form {
  position: relative; max-width: 680px; margin: 30px auto 0; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px;
  box-shadow: 0 24px 60px -20px rgba(11, 15, 25, .18), 0 4px 14px -6px rgba(11, 15, 25, .08);
  text-align: left;
}
.ar-field { margin-bottom: 14px; }
.ar-field label, .ar-row label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 7px; }
.ar-field label .req { color: var(--accent); }
.ar-field label .hint { font-weight: 500; color: var(--faint); }
.ar-input {
  width: 100%; height: 52px; padding: 0 15px; border-radius: 12px;
  border: 1.5px solid #E6E9EF; background: #fff; font-size: 16px; font-family: var(--font-body);
  color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.ar-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ar-input.ar-input--error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 72, 77, .13); }
.ar-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.ar-row > div { flex: 1 1 200px; }
.ar-form__error { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--red); font-size: 13px; font-weight: 500; }
.ar-submit { width: 100%; height: 54px; font-size: 16.5px; letter-spacing: -.01em; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 32%, transparent); }
.ar-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 15px; }
.ar-trust span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #6B7280; font-weight: 500; }

/* Section heads */
.ar-section { max-width: 1100px; margin: 0 auto; padding: 64px 22px 26px; }
.ar-section__head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.ar-section__head p { margin: 14px auto 0; max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.5; text-wrap: pretty; }

/* How it works */
.ar-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.ar-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; }
.ar-card__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 11%, #fff); color: var(--accent); }
.ar-card__step { margin-top: 16px; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: .09em; color: var(--faint); }
.ar-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 5px 0 7px; color: var(--ink); }
.ar-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* What you'll learn */
.ar-band { background: #F6F8FB; border-top: 1px solid #EEF1F6; border-bottom: 1px solid #EEF1F6; margin-top: 40px; padding: 62px 22px; }
.ar-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 30px; }
.ar-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.ar-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ar-grid--learn { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 16px; }
.ar-card--learn { border-radius: 15px; padding: 22px; }
.ar-card--learn h3 { font-size: 16.5px; margin: 15px 0 6px; }
.ar-card--learn p { font-size: 14px; line-height: 1.5; }
.ar-card--learn em { font-style: normal; color: var(--ink); font-weight: 600; }
.ar-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 11px; align-items: center; justify-content: center; }
.ar-ic--green { background: rgba(22, 163, 74, .1); color: var(--green); }
.ar-ic--accent { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); }
.ar-ic--amber { background: rgba(245, 158, 11, .13); color: #D97706; }

/* Engines */
.ar-engines { display: flex; flex-wrap: wrap; gap: 16px; }
.ar-engine { flex: 1 1 320px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.ar-engine--web { border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); box-shadow: 0 10px 30px -16px color-mix(in srgb, var(--accent) 40%, transparent); }
.ar-engine__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ar-engine h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink); }
.ar-engine p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ar-engine em { font-style: normal; font-weight: 600; color: var(--ink); }
.ar-tag { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #475569; background: #EDF0F5; padding: 5px 10px; border-radius: 7px; }
.ar-tag--accent { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); }
.ar-engine__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #94A3B8; }
.ar-engine__status i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; }
.ar-engine__status--green { color: var(--green); }
.ar-engine__status--green i { background: var(--green); }
.ar-footnote { margin: 18px 0 0; text-align: center; color: var(--faint); font-size: 13.5px; }

/* Final CTA */
.ar-cta-wrap { padding: 6px 22px 64px; }
.ar-cta {
  max-width: 1100px; margin: 0 auto; background: var(--ink); border-radius: 22px; padding: 38px 34px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  overflow: hidden; position: relative;
}
.ar-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px 240px at 88% 120%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); }
.ar-cta__title { position: relative; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.2vw, 27px); letter-spacing: -0.02em; color: #fff; }
.ar-cta__sub { color: var(--faint); font-size: 15px; margin-top: 6px; }
.ar-cta .ar-btn-accent { position: relative; height: 52px; padding: 0 26px; font-size: 16px; white-space: nowrap; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.ar-cta .ar-btn-accent:hover { filter: brightness(1.08); }

/* Footer */
.ar-footer { border-top: 1px solid var(--line); padding: 30px 22px; }
.ar-footer__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ar-footer__brand { display: flex; align-items: center; gap: 9px; }
.ar-footer__brand .ar-brand { font-size: 16px; letter-spacing: -0.02em; }
.ar-footer__brand small { font-size: 13px; color: var(--faint); }
.ar-footer__links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; }
.ar-footer__links a { color: var(--muted); text-decoration: none; }
.ar-footer__legal { width: 100%; font-size: 12.5px; color: #A3ABB8; border-top: 1px solid #F0F2F6; padding-top: 14px; }

/* ===================================================================
   REPORT PAGE
=================================================================== */
.ar-report { background: #F4F6FA; min-height: 100vh; padding-bottom: 80px; }

.ar-rheader { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line-2); }
.ar-rheader__inner { max-width: 980px; margin: 0 auto; padding: 13px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar-rheader__brand { display: flex; align-items: center; gap: 9px; }
.ar-rheader__brand .ar-brand { font-size: 17px; }
.ar-rheader__sep { color: #C7CDD8; }
.ar-rheader__kind { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.ar-rheader__actions { display: flex; align-items: center; gap: 8px; }
.ar-btn-ghost { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid #DEE3EC; background: #fff; color: #374151; font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.ar-btn-ghost:hover { background: #F6F8FB; }
.ar-rheader .ar-btn-accent { height: 34px; padding: 0 13px; border-radius: 9px; font-family: var(--font-body); font-size: 13px; }

.ar-main { max-width: 860px; margin: 0 auto; padding: 24px 18px 0; }
.ar-title { margin: 8px 2px 18px; }
.ar-title h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4.4vw, 34px); letter-spacing: -0.03em; margin: 0; color: var(--ink); }
.ar-title__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 9px; }
.ar-domain { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); background: #fff; border: 1px solid #E5E9F0; padding: 4px 10px; border-radius: 7px; }

.ar-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.ar-status i { width: 8px; height: 8px; border-radius: 50%; }
.ar-status--live { color: var(--amber-ink); }
.ar-status--live i { background: var(--amber); animation: ar-dot 1.4s ease-in-out infinite; }
.ar-status--failed { color: var(--red-ink); }
.ar-status--failed i { background: var(--red); }
.ar-status--completed { color: var(--green-ink); }
.ar-status--completed i { background: var(--green); }

/* Score card */
.ar-score { background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; box-shadow: 0 12px 34px -22px rgba(11, 15, 25, .2); display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.ar-score__ring { position: relative; width: 150px; height: 150px; flex: none; margin: 0 auto; }
.ar-score__ring .ar-spin-g { transform-origin: 75px 75px; animation: ar-spin 1.2s linear infinite; }
.ar-score__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ar-score__num { font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 1; }
.ar-score__num--live { font-size: 34px; color: var(--accent); }
.ar-score__num--live small { font-size: 18px; }
.ar-score__out { font-size: 12.5px; color: var(--faint); font-weight: 600; margin-top: 3px; }
.ar-score__body { flex: 1 1 320px; min-width: 0; }
.ar-verdict-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.ar-verdict-pill i { width: 7px; height: 7px; border-radius: 50%; }
.ar-score__body h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 3vw, 23px); letter-spacing: -0.02em; line-height: 1.2; margin: 12px 0 8px; color: var(--ink); text-wrap: balance; }
.ar-score__body p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.ar-sov { display: inline-flex; align-items: center; gap: 14px; background: #F6F8FB; border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 14px; font-size: 13px; color: var(--muted); }
.ar-sov b { font-family: var(--font-display); font-size: 17px; }
.ar-sov .you { color: var(--green-ink); }
.ar-sov .comp { color: var(--red-ink); }
.ar-sov .vs { color: #C7CDD8; }

/* live step tracker */
.ar-live__head { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.ar-live__sub { font-size: 14px; color: var(--muted); margin-top: 3px; }
.ar-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.ar-step { display: flex; align-items: center; gap: 10px; }
.ar-step__ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #EEF1F6; color: #C7CDD8; }
.ar-step__label { font-size: 13.5px; font-weight: 500; color: var(--faint); }
.ar-step--done .ar-step__ic { background: var(--green); color: #fff; }
.ar-step--done .ar-step__label { color: var(--ink); }
.ar-step--active .ar-step__ic { background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); border: 2px solid var(--accent); animation: ar-pulse 1.4s ease-in-out infinite; }
.ar-step--active .ar-step__label { color: var(--ink); font-weight: 600; }

/* failed */
.ar-score--failed { border-color: color-mix(in srgb, var(--red) 26%, var(--line-2)); padding: 30px 26px; align-items: center; }
.ar-fail__ic { width: 88px; height: 88px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--red) 9%, #fff); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.ar-fail__body { flex: 1 1 300px; min-width: 0; }
.ar-fail__body h2 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; margin: 0 0 7px; color: var(--ink); }
.ar-fail__body p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.ar-fail__body .ar-btn-accent { height: 46px; padding: 0 22px; border-radius: 12px; font-size: 15px; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Fix first */
.ar-fix { margin-top: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, #fff), #fff); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line-2)); border-radius: 18px; padding: 22px; box-shadow: 0 12px 30px -24px color-mix(in srgb, var(--accent) 60%, transparent); }
.ar-fix__head { display: flex; align-items: center; gap: 10px; }
.ar-fix__badge { width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 38%, transparent); }
.ar-fix__head h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.ar-fix__head small { font-size: 13px; color: var(--muted); display: block; margin-top: 1px; }
.ar-fix__list { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.ar-fix__item { display: flex; gap: 13px; align-items: flex-start; background: #fff; border: 1px solid #ECEFF4; border-radius: 12px; padding: 14px 15px; }
.ar-fix__n { flex: none; width: 25px; height: 25px; border-radius: 7px; background: #F0F3F8; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #475569; }
.ar-fix__main { flex: 1; min-width: 0; }
.ar-fix__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.ar-fix__action { font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.35; flex: 1; min-width: 180px; }
.ar-fix__why { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 5px; }
.ar-fix__text { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.ar-fix__text p { margin: 0 0 8px; }

.ar-pri { flex: none; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ar-pri--high { color: var(--red); background: rgba(229, 72, 77, .12); }
.ar-pri--medium { color: #D97706; background: rgba(245, 158, 11, .12); }
.ar-pri--quick { color: var(--green); background: rgba(22, 163, 74, .12); }

/* Metrics */
.ar-metrics { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
.ar-metric { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 15px; }
.ar-metric--hot { background: rgba(229, 72, 77, .05); border-color: rgba(229, 72, 77, .22); }
.ar-metric__label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ar-metric__label i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ar-metric__val { display: flex; align-items: baseline; gap: 7px; margin: 9px 0 2px; }
.ar-metric__val b { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; }
.ar-metric__val b.sm { font-size: 22px; }
.ar-metric__val span { font-size: 12px; color: var(--faint); font-weight: 500; }
.ar-metric__explain { font-size: 12.5px; color: #6B7280; line-height: 1.45; margin-top: 6px; }
.ar-tone--green i { background: var(--green); } .ar-tone--green b { color: var(--green-ink); }
.ar-tone--amber i { background: var(--amber); } .ar-tone--amber b { color: var(--amber-ink); }
.ar-tone--red i { background: var(--red); } .ar-tone--red b { color: var(--red-ink); }

/* Q&A */
.ar-qa { margin-top: 26px; }
.ar-qa__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 2px 14px; }
.ar-qa__head h2 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.025em; margin: 0; color: var(--ink); }
.ar-qa__count { font-size: 13px; color: var(--faint); }
.ar-qa__list { display: flex; flex-direction: column; gap: 14px; }
.ar-q { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 19px; }
.ar-q__top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.ar-q__text { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.35; flex: 1; min-width: 0; }
.ar-q__engines { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; margin-top: 15px; }

.ar-eng { border: 1px solid #EEF1F6; border-radius: 13px; padding: 14px; background: #FBFCFE; min-width: 0; }
.ar-eng--web { border-color: color-mix(in srgb, var(--accent) 16%, #EEF1F6); background: color-mix(in srgb, var(--accent) 3%, #fff); }
.ar-eng__top { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; flex-wrap: wrap; }
.ar-eng__tag { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #475569; background: #EAEEF4; padding: 4px 9px; border-radius: 6px; }
.ar-eng__tag--web { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, #fff); }
.ar-eng__access { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #94A3B8; font-weight: 500; }
.ar-eng__access i { width: 6px; height: 6px; border-radius: 50%; background: #94A3B8; }
.ar-eng__access--green { color: var(--green); }
.ar-eng__access--green i { background: var(--green); }
.model-name { font-size: 11.5px; color: var(--faint); font-weight: 500; }
.ar-eng__err { display: flex; gap: 8px; align-items: flex-start; background: color-mix(in srgb, var(--red) 7%, #fff); border: 1px solid color-mix(in srgb, var(--red) 24%, #fff); border-radius: 9px; padding: 10px 11px; font-size: 13px; color: var(--red-ink); }
.ar-eng__err svg { flex: none; margin-top: 1px; }
.ar-answer { margin: 0; font-size: 13.5px; line-height: 1.55; color: #374151; }
.ar-answer.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ar-eng__cap { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin: 12px 0 7px; }
.ar-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-absent { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; font-weight: 600; color: var(--red-ink); }

.ar-mention { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; border: 1px solid; }
.ar-mention i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.ar-mention__flag { font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.ar-mention--brand-rec { color: var(--green-ink); background: rgba(22, 163, 74, .12); border-color: rgba(22, 163, 74, .4); }
.ar-mention--brand-rec i { background: var(--green); }
.ar-mention--brand-rec .ar-mention__flag { color: var(--green-ink); }
.ar-mention--brand { color: #1D4ED8; background: rgba(37, 99, 235, .1); border-color: rgba(37, 99, 235, .32); }
.ar-mention--brand i { background: var(--accent); }
.ar-mention--comp-rec { color: var(--red-ink); background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .34); }
.ar-mention--comp-rec i { background: var(--red); }
.ar-mention--comp-rec .ar-mention__flag { color: var(--red-ink); }
.ar-mention--comp { color: #4B5563; background: #F3F4F6; border-color: #E5E7EB; }
.ar-mention--comp i { background: #9CA3AF; }
.ar-mention--other { color: #6B7280; background: #F8FAFC; border-color: #EDF0F5; }
.ar-mention--other i { background: #CBD5E1; }

.ar-cite { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--muted); background: #F3F4F6; border: 1px solid #E7EAF0; text-decoration: none; }
.ar-cite svg { flex: none; }
.ar-cite span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-cite--own { font-weight: 600; color: #1D4ED8; background: rgba(37, 99, 235, .08); border-color: rgba(37, 99, 235, .35); }
.ar-cite__badge { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 1px 5px; border-radius: 5px; flex: none; }

.ar-toggle { margin-top: 13px; display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.ar-toggle__chev { display: inline-block; transition: transform .2s; }
.ar-toggle[aria-expanded="true"] .ar-toggle__chev { transform: rotate(180deg); }
.ar-toggle__less { display: none; }
.ar-toggle[aria-expanded="true"] .ar-toggle__more { display: none; }
.ar-toggle[aria-expanded="true"] .ar-toggle__less { display: inline; }

.ar-intent { flex: none; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ar-intent--discovery { color: #2563EB; background: rgba(37, 99, 235, .11); }
.ar-intent--comparison { color: #7C3AED; background: rgba(124, 58, 237, .11); }
.ar-intent--problem { color: #D97706; background: rgba(217, 119, 6, .11); }
.ar-intent--trust { color: #0D9488; background: rgba(13, 148, 136, .11); }
.ar-intent--buying { color: #16A34A; background: rgba(22, 163, 74, .11); }

/* skeleton */
.ar-skel { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 19px; }
.ar-skel__bar { height: 15px; width: 62%; border-radius: 6px; background: #EAEEF4; animation: ar-pulse 1.3s ease-in-out infinite; }
.ar-skel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; margin-top: 15px; }
.ar-skel__col { border: 1px solid #EEF1F6; border-radius: 13px; padding: 14px; background: #FBFCFE; }
.ar-skel__line { height: 11px; border-radius: 5px; background: #EEF1F6; margin-top: 7px; animation: ar-pulse 1.3s ease-in-out infinite; }
.ar-skel__line:first-child { margin-top: 0; background: #EAEEF4; width: 80px; }
.ar-skel__run { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.ar-spinner { width: 13px; height: 13px; border: 2px solid color-mix(in srgb, var(--accent) 30%, #fff); border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: ar-spin .7s linear infinite; }
.ar-queued { text-align: center; font-size: 13px; color: var(--faint); padding: 4px 0 2px; }
