/* ShopCheckr website: "report card" direction. No external fonts or assets. */
:root {
  color-scheme: light;
  /* Brand colors from the ShopCheckr logo: blue shield, orange check. */
  --brand-blue: #0258c3;
  --brand-blue-dark: #01449a;
  --brand-orange: #fc9a19;
  --navy: var(--brand-blue);
  --brand-text: var(--brand-blue);
  --ink: #17212b;
  --ink-2: #26323f;
  --muted: #4b5563;
  --line: #e3e8ef;
  --bg: #ffffff;
  --card: #ffffff;
  --accent: var(--brand-blue);
  --accent-dark: var(--brand-blue-dark);
  --quiet: #eef2f7;
  --bad-bg: #fdf6f6;
  --bad-line: #f1d5d5;
  --bad-ink: #b91c1c;
  --app-bg: #fff4e5;
  --g-A: #15803d;
  --g-B: #4d7c0f;
  --g-C: #b45309;
  --g-D: #c2410c;
  --g-F: #b91c1c;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--accent-dark); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 20px; overflow-wrap: anywhere; }
h2 { font-size: 18px; margin: 0 0 12px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.top { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--brand-orange); }
.top-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--brand-text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand .o { color: var(--brand-orange); }
.top-app { background: var(--brand-orange); color: #1b1300; font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.top-app:hover { filter: brightness(1.06); }
.top .search { flex: 1 1 320px; max-width: 560px; order: 3; }
@media (min-width: 760px) { .top .search { order: 0; } }

/* Search forms */
.search { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.search input {
  flex: 1 1 200px; min-width: 0; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #17212b;
}
.top .search input { border-color: var(--line); }
.search button, .btn {
  display: inline-block; padding: 12px 18px; border: 0; border-radius: 8px; font: inherit; font-weight: 700;
  font-size: 15px; cursor: pointer; text-decoration: none; text-align: center;
}
.search button { background: var(--accent); color: #fff; }
.search button:hover { background: var(--accent-dark); }
.field-error { flex-basis: 100%; margin: 0; color: var(--bad-ink); font-size: 14px; font-weight: 600; }
.top .field-error { color: var(--bad-ink); }
.search-big input { padding: 15px 16px; font-size: 18px; }
.search-big button { padding: 15px 22px; font-size: 16px; }

.btn { background: var(--navy); color: #fff; }
.btn:hover { filter: brightness(1.15); }
.btn-quiet { background: var(--quiet); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }

/* Layout */
main { padding-top: 24px; padding-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.crumbs { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); }
.verdict, .pair { display: flex; flex-wrap: wrap; gap: 20px; }
.verdict, .pair { margin-bottom: 20px; }
.verdict > .card, .pair > .card { margin-bottom: 0; }
.grade-card { flex: 1 1 260px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.why { flex: 999 1 440px; min-width: 0; }
.pair > .card { flex: 1 1 320px; min-width: 0; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 20px; }
.three .card { margin: 0; }
.lead { font-size: 17px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.note { background: var(--quiet); border-radius: 10px; padding: 12px 14px; }
.card-app { background: var(--app-bg); border-color: transparent; }

/* Grades */
.grade {
  width: 132px; height: 132px; border-radius: 50%; color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 72px; font-weight: 800; line-height: 1;
}
.grade-sm { width: 40px; height: 40px; font-size: 20px; flex: none; }
.g-A { background: var(--g-A); }
.g-B { background: var(--g-B); }
.g-C { background: var(--g-C); }
.g-D { background: var(--g-D); }
.g-F { background: var(--g-F); }
.grade-label { font-size: 20px; font-weight: 700; margin: 4px 0 0; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; margin: 6px 0 0; }
.badge-ok { background: #dcfce7; color: #14532d; }
.badge-bad { background: #fee2e2; color: #7f1d1d; }

/* Flags and facts */
.flags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.flag { border: 1px solid var(--bad-line); background: var(--bad-bg); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.flag span { font-size: 14px; color: var(--muted); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 16px; margin: 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd.bad { color: var(--bad-ink); font-weight: 600; }
.steps { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }

/* Search results */
.results { list-style: none; margin: 0; padding: 0; }
.results li + li { border-top: 1px solid var(--line); }
.results a { display: flex; gap: 14px; align-items: center; padding: 12px 4px; text-decoration: none; color: var(--ink); }
.results a:hover strong { text-decoration: underline; }
.result-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.result-text .muted { font-size: 14px; }

/* Home */
.hero { padding: 24px 0 28px; max-width: 760px; }
.hero h1 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 12px; }
.hero .search { margin: 20px 0 12px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.form label { font-weight: 600; }
.form input[type=email], .form textarea {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: #17212b; width: 100%;
}
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.form legend { font-weight: 600; margin-bottom: 6px; }
.form .choice { font-weight: 400; display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.form button { align-self: flex-start; margin-top: 8px; }
.check { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.prose h2 { margin-top: 20px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 32px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

@media (max-width: 520px) {
  .card { padding: 18px; }
  .grade { width: 112px; height: 112px; font-size: 60px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .search button { flex: 1 1 100%; }
  .top .search button { flex: 0 0 auto; }
}
