.aeo-checker {
  --aeo-ink: #1a0e0a;
  --aeo-copy: #3e2f28;
  --aeo-muted: #7a6a5f;
  --aeo-line: #eadfcd;
  --aeo-cream: #f7efe2;
  --aeo-cream-deep: #eee2cc;
  --aeo-paper: #fffdf9;
  --aeo-brand: #d8392b;
  --aeo-brand-dark: #b92b20;
  --aeo-good: #1f7a59;
  --aeo-warn: #b56a16;
  --aeo-bad: #c84438;
  width: 100%;
  max-width: 1120px;
  margin: 32px auto 56px;
  color: var(--aeo-ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

.aeo-checker *, .aeo-checker *::before, .aeo-checker *::after { box-sizing: border-box; }
.aeo-checker p { margin-top: 0; }

.aeo-checker__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, .65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  margin-bottom: 28px;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--aeo-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(216, 57, 43, .13), transparent 27%),
    linear-gradient(135deg, #fffdf9 0%, var(--aeo-cream) 100%);
}

.aeo-checker__hero::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(216, 57, 43, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(216, 57, 43, .045), 0 0 0 58px rgba(216, 57, 43, .025);
}

.aeo-checker__intro { position: relative; z-index: 1; max-width: 760px; }
.aeo-checker__eyebrow, .aeo-results__label, .aeo-section-title span, .aeo-priorities__eyebrow {
  margin: 0 0 8px;
  color: var(--aeo-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.aeo-checker__eyebrow { display: flex; align-items: center; gap: 8px; }
.aeo-checker__eyebrow > span { width: 24px; height: 2px; border-radius: 999px; background: var(--aeo-brand); }
.aeo-checker h2, .aeo-checker h3 { font-family: Fraunces, Georgia, serif; color: var(--aeo-ink); }
.aeo-checker h2 { max-width: 720px; margin: 0 0 14px; font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
.aeo-checker h3 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; }
.aeo-checker__intro > p:not(.aeo-checker__eyebrow) { max-width: 680px; margin-bottom: 18px; color: var(--aeo-copy); font-size: 17px; }

.aeo-checker__trust { display: flex; flex-wrap: wrap; gap: 8px; }
.aeo-checker__trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(26, 14, 10, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  color: var(--aeo-copy);
  font-size: 12px;
  font-weight: 650;
}
.aeo-checker__trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aeo-brand); }

.aeo-checker__signal {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(216, 57, 43, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 42px rgba(70, 40, 28, .08);
  transform: rotate(2deg);
}
.aeo-checker__signal::before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(216, 57, 43, .25); border-radius: 17px; }
.aeo-checker__signal > div { display: flex; gap: 6px; margin-bottom: 12px; align-items: end; }
.aeo-checker__signal > div span { display: block; width: 7px; border-radius: 999px; background: var(--aeo-brand); animation: aeo-signal 1.8s ease-in-out infinite; }
.aeo-checker__signal > div span:nth-child(1) { height: 15px; animation-delay: -.25s; }
.aeo-checker__signal > div span:nth-child(2) { height: 27px; }
.aeo-checker__signal > div span:nth-child(3) { height: 20px; animation-delay: -.55s; }
.aeo-checker__signal strong { font-family: Fraunces, Georgia, serif; font-size: 48px; line-height: 1; letter-spacing: -.04em; }
.aeo-checker__signal small { margin-top: 7px; color: var(--aeo-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.aeo-checker__form, .aeo-results {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--aeo-line);
  border-radius: 24px;
  background: var(--aeo-paper);
  box-shadow: 0 18px 50px rgba(70, 40, 28, .07);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.aeo-checker__form:hover { border-color: #dfcfb6; box-shadow: 0 24px 64px rgba(70, 40, 28, .1); }
.aeo-checker__form-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.aeo-checker__form-heading--content { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--aeo-line); }
.aeo-checker__form-heading > span { display: grid; flex: 0 0 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--aeo-ink); color: var(--aeo-cream); font: 700 11px/1 "JetBrains Mono", monospace; }
.aeo-checker__form-heading h3 { font-size: 20px; }
.aeo-checker__form-heading p { margin: 3px 0 0; color: var(--aeo-muted); font-size: 13px; }
.aeo-checker__form-section { padding-left: 45px; }
.aeo-checker__field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.aeo-checker__field { display: block; }
.aeo-checker__field--content { margin-top: 0; }
.aeo-checker__field > span { display: block; margin-bottom: 7px; font-weight: 700; }
.aeo-checker__field b { color: var(--aeo-brand); }
.aeo-checker__field em { color: var(--aeo-muted); font-size: 12px; font-style: normal; font-weight: 500; }
.aeo-checker__field small { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--aeo-muted); font-size: 12px; }
.aeo-word-count { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--aeo-cream); color: var(--aeo-copy); font-weight: 700; }

.aeo-checker input, .aeo-checker textarea {
  width: 100%;
  border: 1px solid #d8cab4;
  border-radius: 13px;
  background: #fff;
  color: var(--aeo-ink);
  font: inherit;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.aeo-checker input { min-height: 52px; padding: 11px 15px; }
.aeo-checker textarea { min-height: 300px; padding: 15px; resize: vertical; }
.aeo-checker input:hover, .aeo-checker textarea:hover { border-color: #c7b69d; }
.aeo-checker input:focus, .aeo-checker textarea:focus { border-color: var(--aeo-brand); box-shadow: 0 0 0 4px rgba(216, 57, 43, .1); }
.aeo-checker input::placeholder, .aeo-checker textarea::placeholder { color: #aa9c91; }

.aeo-checker__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-left: 45px; }
.aeo-button { min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-weight: 750; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.aeo-button:hover { transform: translateY(-2px); }
.aeo-button:active { transform: translateY(0); }
.aeo-button:focus-visible { outline: 3px solid rgba(216, 57, 43, .22); outline-offset: 3px; }
.aeo-button--primary { display: inline-flex; align-items: center; gap: 13px; background: var(--aeo-brand); color: #fff; box-shadow: 0 9px 22px rgba(216, 57, 43, .22); }
.aeo-button--primary i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); font-style: normal; transition: transform .18s ease; }
.aeo-button--primary:hover { background: var(--aeo-brand-dark); box-shadow: 0 12px 28px rgba(216, 57, 43, .28); }
.aeo-button--primary:hover i { transform: translateX(3px); }
.aeo-button--secondary { border-color: var(--aeo-line); background: var(--aeo-cream); color: var(--aeo-ink); }
.aeo-button--secondary:hover { border-color: #d6c4a9; background: var(--aeo-cream-deep); }
.aeo-button--copy { margin-left: auto; align-self: center; border-color: var(--aeo-ink); background: var(--aeo-ink); color: var(--aeo-cream); }
.aeo-button--copy:hover { background: var(--aeo-brand); border-color: var(--aeo-brand); }
.aeo-checker__error { margin: 18px 0 0 45px; padding: 12px 14px; border-left: 4px solid var(--aeo-bad); border-radius: 8px; background: #fff1ee; color: #8f2922; }

.aeo-results { margin-top: 24px; overflow: hidden; }
.aeo-results.is-visible { animation: aeo-rise .48s cubic-bezier(.22, 1, .36, 1) both; }
.aeo-results__summary { position: relative; display: flex; align-items: center; gap: 24px; padding: 4px 0 26px; border-bottom: 1px solid var(--aeo-line); }
.aeo-results__summary::after { content: ""; position: absolute; right: -80px; top: -115px; width: 220px; height: 220px; border-radius: 50%; background: rgba(216, 57, 43, .045); pointer-events: none; }
.aeo-score { --score-color: var(--aeo-bad); --score-angle: 0deg; display: grid; position: relative; flex: 0 0 130px; width: 130px; height: 130px; place-items: center; border-radius: 50%; background: conic-gradient(var(--score-color) var(--score-angle), var(--aeo-cream-deep) 0); box-shadow: 0 10px 28px rgba(70, 40, 28, .1); }
.aeo-score::before { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: var(--aeo-paper); box-shadow: inset 0 0 0 1px rgba(26, 14, 10, .05); }
.aeo-score__value { position: relative; display: flex; align-items: baseline; }
.aeo-score__value strong { font-family: Fraunces, Georgia, serif; font-size: 38px; line-height: 1; }
.aeo-score__value span { color: var(--aeo-muted); font-size: 12px; }
.aeo-results__verdict { position: relative; z-index: 1; max-width: 620px; }
.aeo-results__verdict h3 { font-size: 29px; }
.aeo-results__verdict p:last-child { margin: 7px 0 0; color: var(--aeo-muted); }

.aeo-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 24px 0 30px; }
.aeo-metric { position: relative; min-height: 95px; padding: 17px; overflow: hidden; border: 1px solid var(--aeo-line); border-radius: 14px; background: linear-gradient(145deg, #fff 0%, var(--aeo-cream) 100%); transition: transform .18s ease, box-shadow .18s ease; }
.aeo-metric::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--aeo-brand); opacity: .8; }
.aeo-metric:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(70, 40, 28, .08); }
.aeo-metric strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 25px; }
.aeo-metric span { color: var(--aeo-muted); font-size: 12px; }

.aeo-results__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, .82fr); gap: 24px; align-items: start; }
.aeo-section-title { margin-bottom: 14px; }
.aeo-section-title span { display: block; margin-bottom: 4px; }
.aeo-breakdown { display: grid; gap: 10px; }
.aeo-check { --status-color: var(--aeo-bad); padding: 16px 17px; border: 1px solid var(--aeo-line); border-left: 4px solid var(--status-color); border-radius: 12px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.aeo-check:hover { transform: translateX(3px); border-color: #d9c9b0; box-shadow: 0 9px 22px rgba(70, 40, 28, .07); }
.aeo-check--good { --status-color: var(--aeo-good); }
.aeo-check--warn { --status-color: var(--aeo-warn); }
.aeo-check--bad { --status-color: var(--aeo-bad); }
.aeo-check__top { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.aeo-check__top strong { font-size: 14px; }
.aeo-check__meta { display: flex; align-items: center; gap: 7px; }
.aeo-check__points { flex: none; color: var(--status-color); font-weight: 800; }
.aeo-check__status { padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--status-color) 11%, white); color: var(--status-color); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.aeo-check p { margin: 5px 0 0; color: var(--aeo-muted); font-size: 13px; }

.aeo-priorities { position: sticky; top: 92px; padding: 23px; overflow: hidden; border-radius: 18px; background: var(--aeo-ink); color: var(--aeo-cream); box-shadow: 0 16px 34px rgba(26, 14, 10, .16); }
.aeo-priorities::after { content: ""; position: absolute; right: -35px; bottom: -35px; width: 110px; height: 110px; border: 1px solid rgba(247, 239, 226, .18); border-radius: 50%; box-shadow: 0 0 0 20px rgba(247, 239, 226, .04); }
.aeo-priorities__eyebrow { margin-bottom: 4px; color: #f07a6c; }
.aeo-priorities h3 { color: var(--aeo-cream); }
.aeo-priorities ol { position: relative; z-index: 1; margin: 16px 0 0; padding-left: 22px; }
.aeo-priorities li { margin-bottom: 13px; color: #eadfcd; font-size: 13px; }
.aeo-priorities li::marker { color: #f07a6c; font-weight: 800; }
.aeo-methodology { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--aeo-line); border-radius: 13px; background: var(--aeo-cream); }
.aeo-methodology summary { font-weight: 750; cursor: pointer; }
.aeo-methodology summary::marker { color: var(--aeo-brand); }
.aeo-methodology p { margin: 10px 0 0; color: var(--aeo-muted); font-size: 13px; }

@keyframes aeo-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes aeo-signal { 0%, 100% { transform: scaleY(.72); opacity: .62; } 50% { transform: scaleY(1.12); opacity: 1; } }

@media (max-width: 840px) {
  .aeo-checker__hero { grid-template-columns: 1fr; }
  .aeo-checker__signal { display: none; }
  .aeo-results__body { grid-template-columns: 1fr; }
  .aeo-priorities { position: relative; top: auto; }
}
@media (max-width: 760px) {
  .aeo-checker__field-grid { grid-template-columns: 1fr; }
  .aeo-results__summary { align-items: flex-start; flex-wrap: wrap; }
  .aeo-button--copy { width: 100%; margin-left: 0; }
  .aeo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .aeo-checker { margin-top: 18px; }
  .aeo-checker__hero, .aeo-checker__form, .aeo-results { border-radius: 18px; }
  .aeo-checker__form-section, .aeo-checker__actions { padding-left: 0; }
  .aeo-checker__error { margin-left: 0; }
  .aeo-checker__actions .aeo-button { justify-content: center; width: 100%; }
  .aeo-results__summary { justify-content: center; text-align: center; }
  .aeo-results__verdict { width: 100%; }
  .aeo-metrics { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .aeo-button, .aeo-checker input, .aeo-checker textarea, .aeo-checker__form, .aeo-metric, .aeo-check { transition: none; }
  .aeo-checker__signal > div span, .aeo-results.is-visible { animation: none; }
}
