/* AgentReady tool page — green-terminal theme, layered on /style.css tokens.
   Mirrors the easy-prompt page chrome (sticky title bar, hero, sections) but
   for the agent-readiness scanner. All prose here is em-dash free. */

:root {
  --ar-amber: #ffb454;
  --ar-red: #ff5c5c;
  --ar-grade-a: #00ff41;
  --ar-grade-b: #9be35a;
  --ar-grade-c: #ffb454;
  --ar-grade-d: #ff8c42;
  --ar-grade-f: #ff5c5c;
  --ar-grade-x: #5a7a5a;
}

/* ---- sticky page title bar ---- */
.ar-page-title-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.ar-page-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
}
.ar-page-title-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--green);
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px var(--green-glow-strong);
}
.ar-page-title-by {
  font-size: 12px;
  color: var(--text-muted);
}
.ar-page-title-by span { color: var(--text-dim); }

/* ---- hero (Shopify-style: centered, big, minimal copy, product shot) ---- */
.ar-hero { padding: 46px 0 24px; }
.ar-hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.ar-hero-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  margin: 0 0 22px;
}
.ar-h1 {
  /* floor lowered to 26px so the longer outcome headline does not overflow on
     a 390px phone; desktop is unchanged because 6.4vw exceeds 26px above ~407px */
  font-size: clamp(26px, 6.4vw, 58px);
  line-height: 1.04;
  font-weight: 800;
  color: var(--green);
  margin: 0 0 16px;
  text-shadow: 0 0 24px var(--green-glow);
}
.ar-h1-italic { font-style: italic; color: var(--white); }
.ar-sub {
  max-width: 540px;
  margin: 0 auto 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* hero product shot: a browser window showing a live score */
.ar-hero-art { margin: 44px auto 0; max-width: 600px; }
.ar-mock {
  border: 1px solid var(--green-dim);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6), 0 0 60px var(--green-glow), inset 0 0 60px rgba(0, 255, 65, 0.04);
}
.ar-mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}
.ar-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.ar-mock-url { margin-left: 8px; font-size: 12px; color: var(--text-muted); }
.ar-mock-body { padding: 22px; }
.ar-mock-score { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ar-mock-grade {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 800;
  color: var(--ar-grade-a);
  border: 2px solid currentColor;
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(0, 255, 65, 0.35);
}
.ar-mock-num { font-size: 30px; font-weight: 800; color: var(--green); }
.ar-mock-num i { font-size: 13px; font-style: normal; color: var(--text-muted); font-weight: 600; margin-left: 4px; }
.ar-mock-lbl { display: block; font-size: 13px; color: var(--ar-grade-a); font-weight: 600; margin-top: 3px; }
.ar-mock-bars { display: grid; gap: 9px; }
.ar-mock-bars span {
  display: block; height: 9px;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.ar-mock-bars b { display: block; height: 100%; background: var(--green); border-radius: 5px; box-shadow: 0 0 10px var(--green-glow); }

/* ---- scanner (centered hero pill) ---- */
.ar-scan-form { max-width: 560px; margin: 0 auto; }
.ar-scan-row {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 7px;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.05);
}
.ar-scan-row:focus-within { border-color: var(--green-dim); box-shadow: 0 0 0 2px var(--green-glow); }
.ar-scan-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--green);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 12px;
  outline: none;
}
.ar-scan-row input::placeholder { color: var(--text-muted); }
.ar-scan-row button {
  background: var(--green);
  color: #001a06;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.2s, transform 0.05s;
}
.ar-scan-row button:hover { box-shadow: 0 0 24px var(--green-glow-strong); }
.ar-scan-row button:active { transform: translateY(1px); }
.ar-scan-row button:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.ar-scan-hint { font-size: 12px; color: var(--text-muted); margin: 12px 0 0; text-align: center; }

/* live "sites checked" stat under the scan CTA: real count, tiny share of web */
.ar-webstat {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}
.ar-webstat b {
  color: var(--green);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px var(--green-glow);
}

/* ---- distribution visuals: hero social-proof strip + result "you are here" ----
   Both draw the same smooth density curve (.ar-curve) from the live
   distribution and stay hidden until real data loads. Em-dash free. */
.ar-pop { max-width: 520px; margin: 16px auto 0; }
.ar-pop-bar {
  position: relative;
  height: 56px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.ar-pop-tick {
  position: absolute;
  bottom: -14px;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.ar-pop-cap {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 0;
}
.ar-pop-cap b { color: var(--text-dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.ar-pop-cap b.lo { color: var(--ar-red); }

/* result-card "you are here" histogram */
.ar-rank {
  margin: 14px 0 4px;
  padding: 13px 13px 9px;
  border: 1px solid var(--border);
  background: var(--bg-terminal);
  border-radius: 9px;
}
.ar-rank-lead { font-size: 13px; line-height: 1.5; color: var(--text-dim); margin: 0 0 11px; }
.ar-rank-lead b { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }
/* Smooth filled density curve (replaces the old histogram bars). The SVG is
   stretched edge to edge; the "you are here" guide line, dot and label are
   HTML overlays positioned in the same 0..100 space as the SVG viewBox. */
.ar-rank-chart {
  position: relative;
  display: block;
  height: 88px;
  margin-top: 22px;
  padding: 0;
  overflow: visible;
}
.ar-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.ar-curve-guide {
  position: absolute;
  top: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(var(--green-glow, rgba(0, 255, 65, 0.2)), var(--green));
  opacity: 0.9;
}
.ar-curve-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow-strong), 0 0 0 3px rgba(0, 0, 0, 0.5);
}
.ar-curve-lbl {
  position: absolute;
  top: 0;
  transform: translate(-50%, -118%);
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 800;
  color: #04110a;
  background: var(--green);
  padding: 2px 8px;
  border-radius: 11px;
  box-shadow: 0 0 12px var(--green-glow);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}
.ar-rank-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 9.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.ar-err {
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid var(--ar-red);
  background: rgba(255, 92, 92, 0.08);
  color: var(--ar-red);
  border-radius: 8px;
  font-size: 13px;
}

/* ---- result card ---- */
.ar-card {
  max-width: 600px;
  margin: 18px auto 0;
  text-align: left;
  border: 1px solid var(--green-dim);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 50px var(--green-glow), inset 0 0 50px rgba(0, 255, 65, 0.05);
}
.ar-scorehead { display: flex; align-items: center; gap: 18px; }
.ar-grade {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  border-radius: 12px;
  border: 2px solid currentColor;
}
.ar-grade.g-a { color: var(--ar-grade-a); box-shadow: 0 0 28px rgba(0, 255, 65, 0.35); }
.ar-grade.g-b { color: var(--ar-grade-b); }
.ar-grade.g-c { color: var(--ar-grade-c); }
.ar-grade.g-f { color: var(--ar-grade-f); }
.ar-grade.g-x { color: var(--ar-grade-x); }
.ar-scoremeta { min-width: 0; }
.ar-host {
  font-size: 13px;
  color: var(--text-dim);
  word-break: break-all;
  margin-bottom: 3px;
}
.ar-num { font-size: 16px; color: var(--white); }
.ar-num b { font-size: 28px; color: var(--green); font-weight: 800; }
.ar-num span { color: var(--text-muted); font-size: 13px; }
.ar-lbl { font-size: 13px; margin-top: 3px; font-weight: 600; }
.ar-lbl.g-a { color: var(--ar-grade-a); }
.ar-lbl.g-b { color: var(--ar-grade-b); }
.ar-lbl.g-c { color: var(--ar-grade-c); }
.ar-lbl.g-f { color: var(--ar-grade-f); }
.ar-lbl.g-x { color: var(--ar-grade-x); }

.ar-gateban {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  border: 1px solid var(--ar-amber);
  background: rgba(255, 180, 84, 0.08);
  color: var(--ar-amber);
}
.ar-gateban.info {
  border-color: var(--green-dim);
  background: rgba(0, 255, 65, 0.06);
  color: var(--text-dim);
}

.ar-recov {
  margin: 14px 0 4px;
  padding: 11px 13px;
  border: 1px solid var(--green-dim);
  background: rgba(0, 255, 65, 0.07);
  border-radius: 9px;
  font-size: 13px;
  color: var(--white);
}
.ar-recov b { color: var(--green); font-weight: 800; }
.ar-recov .early { display: block; color: var(--text-muted); font-size: 12px; margin-top: 5px; }

/* category bars with the recoverable "void" ghosted on each */
.ar-bars { margin-top: 12px; display: grid; gap: 8px; }
.ar-bar {
  display: grid;
  grid-template-columns: 118px 1fr 54px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.ar-bar .ar-bn { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-bar .ar-track {
  position: relative;
  height: 10px;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.ar-bar .ar-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  border-radius: 5px 0 0 5px;
  background: var(--green);
}
.ar-bar .ar-fill.mid { background: var(--ar-grade-c); }
.ar-bar .ar-fill.lo { background: var(--ar-grade-f); }
.ar-bar .ar-ghost {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  background-image: repeating-linear-gradient(45deg, rgba(255, 180, 84, 0.22) 0, rgba(255, 180, 84, 0.22) 4px, transparent 4px, transparent 8px);
}
.ar-bar .ar-bp { color: var(--text-muted); text-align: right; white-space: nowrap; }
.ar-bar .ar-bp i { color: var(--ar-amber); font-style: normal; font-size: 10px; margin-left: 3px; }

.ar-opps { margin-top: 16px; }
.ar-opps-h { font-size: 13px; color: var(--text-dim); margin: 0 0 9px; font-weight: 700; }
.ar-opps ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ar-opps li {
  font-size: 12.5px;
  color: var(--white);
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-terminal);
}
.ar-opps li .cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #001a06;
  background: var(--green-dim);
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 7px;
}
.ar-opps li .why { display: block; color: var(--text-muted); font-size: 11.5px; margin-top: 4px; }

.ar-lock {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 13px;
  border: 1px dashed var(--green-dim);
  border-radius: 9px;
  background: rgba(0, 255, 65, 0.04);
  font-size: 12.5px;
  color: var(--text-dim);
}
.ar-lock span { flex: 1; min-width: 200px; }
.ar-lock b { color: var(--green); }
.ar-lock-btn {
  background: var(--green);
  color: #001a06;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.ar-lock-btn:hover { box-shadow: 0 0 20px var(--green-glow-strong); }

/* ---- shared section headings ---- */
.ar-step-label { font-size: 12px; color: var(--text-muted); margin: 0 0 10px; }
.ar-h2 {
  font-size: clamp(24px, 4.5vw, 38px);
  font-weight: 800;
  color: var(--green);
  margin: 0 0 14px;
  line-height: 1.1;
}
.ar-h2-italic { font-style: italic; color: var(--white); }

/* ---- what it checks ---- */
.ar-checks { padding: 46px 0 18px; }
.ar-checks-sub { max-width: 640px; font-size: 14px; line-height: 1.6; color: var(--text-dim); margin: 0 0 26px; }
.ar-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.ar-check-box {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 16px;
}
.ar-check-key {
  font-size: 13px;
  font-weight: 800;
  color: #001a06;
  background: var(--green-dim);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  margin-bottom: 10px;
}
.ar-check-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.ar-check-sub { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.ar-check-max { position: absolute; top: 16px; right: 16px; font-size: 11px; color: var(--text-muted); }

/* ---- upgrade tiers ---- */
.ar-sell { padding: 46px 0 18px; }
.ar-sell-sub { max-width: 640px; font-size: 14px; line-height: 1.6; color: var(--text-dim); margin: 0 0 26px; }
.ar-sell-sub code { color: var(--green); background: rgba(0, 255, 65, 0.08); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.ar-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.ar-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 11px;
  padding: 20px 16px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ar-tier input { position: absolute; opacity: 0; pointer-events: none; }
.ar-tier:hover { border-color: var(--green-muted); }
.ar-tier:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 30px var(--green-glow); }
.ar-tier-name { font-size: 15px; font-weight: 800; color: var(--green); letter-spacing: 1px; }
.ar-tier-cap { font-size: 11px; color: var(--text-muted); }
.ar-tier-amt { font-size: 32px; font-weight: 800; color: var(--white); margin: 6px 0; }
.ar-tier-d { font-size: 18px; color: var(--text-dim); vertical-align: super; }
.ar-tier-desc { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); flex: 1; }
.ar-tier-pill {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green-dim);
  border: 1px solid var(--green-muted);
  border-radius: 6px;
  padding: 7px;
}
.ar-tier:has(input:checked) .ar-tier-pill { background: var(--green); color: #001a06; border-color: var(--green); }
.ar-tier-feat { border-color: var(--green-muted); }
.ar-tier-tag {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #001a06;
  background: var(--green);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.ar-tier-fort .ar-tier-name { color: var(--ar-amber); }

.ar-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
  font-size: 12px;
  color: var(--text-dim);
}
.ar-trust i { color: var(--green); font-style: normal; margin-right: 4px; }
.ar-sample { display: inline-block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }

.ar-pay-row {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.ar-pay-row input {
  width: 100%;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  color: var(--green);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 8px;
  outline: none;
  margin-bottom: 10px;
}
.ar-pay-row input:focus { border-color: var(--green-dim); box-shadow: 0 0 0 2px var(--green-glow); }
.ar-pay-row input::placeholder { color: var(--text-muted); }
#ar-pay-btn {
  width: 100%;
  background: var(--green);
  color: #001a06;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
#ar-pay-btn:hover { box-shadow: 0 0 28px var(--green-glow-strong); }
#ar-pay-btn:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.ar-pay-hint { font-size: 11.5px; color: var(--text-muted); text-align: center; margin: 10px 0 0; }

/* ---- what's next ---- */
.ar-next { padding: 46px 0 60px; }
.ar-next-sub { font-size: 14px; color: var(--text-dim); margin: 0 0 24px; }
.ar-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.ar-next-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 11px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.ar-next-card:hover { border-color: var(--green-dim); box-shadow: 0 0 26px var(--green-glow); transform: translateY(-2px); }
.ar-next-highlight { border-color: var(--green-muted); }
.ar-next-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ar-next-bar { width: 18px; height: 3px; background: var(--green); border-radius: 2px; }
.ar-next-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; }
.ar-next-title { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 7px; }
.ar-next-desc { font-size: 13px; line-height: 1.55; color: var(--text-dim); margin: 0 0 14px; }
.ar-next-foot { display: flex; justify-content: space-between; align-items: center; }
.ar-next-meta { font-size: 11.5px; color: var(--text-muted); }
.ar-next-cta { font-size: 13px; font-weight: 700; color: var(--green); }

@media (max-width: 560px) {
  .ar-scorehead { gap: 14px; }
  .ar-grade { width: 70px; height: 70px; font-size: 34px; }
  .ar-bar { grid-template-columns: 92px 1fr 46px; }
}

/* ---- mobile polish: phones + in-app browsers (Instagram is ~34% of traffic) ----
   Covers every target phone width (390 to 430px) under one breakpoint. Desktop
   above 600px is untouched. Prose and comments are em-dash free. */
@media (max-width: 600px) {
  /* Hero sits closer to the top so the longer outcome H1 plus the scan CTA
     stay above the fold on a ~667px tall phone behind the fixed nav. */
  .ar-hero { padding: 26px 0 20px; }

  /* Longer H1 needs to breathe: a touch more line spacing. */
  .ar-h1 { line-height: 1.1; }
  .ar-sub { font-size: 15px; margin-bottom: 22px; }

  /* Stack the scan row: full-width input on top, full-width button below.
     This is the core fix. Flex column makes each child span the pill width. */
  .ar-scan-row {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }
  .ar-scan-row input {
    width: 100%;
    text-align: center;
    padding: 13px 14px;       /* ~46px tall, clears the 44px tap minimum */
    font-size: 16px;          /* 16px stops iOS Safari auto-zoom on focus */
  }
  .ar-scan-row button {
    width: 100%;
    padding: 14px 18px;       /* full-width tap target, ~48px tall */
    font-size: 16px;
  }

  /* Result card: trim padding so its 600px max never forces horizontal scroll
     inside the 342px usable width, and let the long hostname wrap. */
  .ar-card { padding: 16px; }
  .ar-mock-body { padding: 18px; }

  /* Lock CTA: bump the unlock button to a comfortable thumb target and let it
     span the row once the explainer text wraps above it. */
  .ar-lock { padding: 12px; gap: 10px; }
  .ar-lock-btn {
    width: 100%;
    padding: 13px 16px;       /* ~46px tall, was ~40px */
    font-size: 14px;
  }

  /* Tiers stack to one column already; add top spacing between stacked cards so
     the absolutely positioned "MOST POPULAR" tag (top: -10px) does not clip the
     card above it, and grow the select pill to a 44px tap target. */
  .ar-tiers { gap: 22px; }
  .ar-tier-pill { padding: 12px; font-size: 12px; }
}

/* ---- final squeeze for the narrowest devices (small Androids, ~360px) ---- */
@media (max-width: 400px) {
  /* Let the fluid H1 reach its low floor so the long headline does not overflow. */
  .ar-h1 { font-size: clamp(24px, 7vw, 32px); }

  /* Tighten the score-bar grid further than the 560px block so the label,
     track and points columns fit without clipping at ~312px inner width. */
  .ar-bar { grid-template-columns: 78px 1fr 42px; gap: 8px; }
  .ar-card { padding: 14px; }
}
