/* Back on Shopping: calm, exact, a little like a status page. One accent
   (approval green); amber and red only for check results. */

@font-face { font-family: "Plex Sans"; src: url(/assets/plex-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url(/assets/plex-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url(/assets/plex-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url(/assets/plex-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url(/assets/plex-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f5f7f2;
  --panel: #ffffff;
  --ink: #12261b;
  --soft: #44564b;
  --muted: #5c6c62;
  --line: #d9e1d6;
  --tint: #e8f1e9;
  --accent: #1f7a4d;
  --accent-ink: #ffffff;
  --accent-deep: #145c38;
  --pass: #1f7a4d;
  --warn: #9a6200;
  --warn-bg: #fff4dc;
  --fail: #b3261e;
  --fail-bg: #fdeceb;
  --display: "Plex Condensed", "Plex Sans", system-ui, sans-serif;
  --text: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(18, 38, 27, .06), 0 8px 28px rgba(18, 38, 27, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1612; --panel: #16211b; --ink: #e6efe8; --soft: #c2d0c6; --muted: #93a499; --line: #2a3a31; --tint: #1b2b22;
    --accent: #4cc387; --accent-ink: #08130d; --accent-deep: #7fdcab; --pass: #5bd193; --warn: #f2b84b; --warn-bg: #2e2412; --fail: #ff8a80; --fail-bg: #331a18;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--text); overflow-x: hidden; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.02; margin: 20px 0 16px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; margin: 48px 0 14px; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
code { font-family: var(--mono); font-size: .86em; background: var(--tint); padding: .08em .4em; border-radius: 4px; overflow-wrap: anywhere; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: 4px 8px; z-index: 10; }
.draft { background: #b00020; color: #fff; padding: 8px 16px; text-align: center; font-size: 15px; }
[hidden] { display: none !important; }

/* Header and footer */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 6px 22px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand svg { display: block; flex: none; }
.wordmark { font-family: var(--display); font-size: 23px; line-height: 1; font-weight: 400; }
.wordmark b { font-weight: 700; }
.site-header nav { display: flex; align-items: center; gap: 0 24px; flex-wrap: wrap; font-size: 16px; font-weight: 500; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav .nav-cta { padding: 0 16px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; }
.site-header nav .nav-cta:hover { background: var(--accent-deep); text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; margin-top: 72px; }
.site-footer .wrap { padding-top: 36px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 0 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.site-footer p { margin: 0; max-width: 54rem; }

/* Buttons and forms */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 9px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-deep); color: var(--accent-ink); }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button.secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.small { min-height: 40px; padding: 0 14px; font-size: 15px; color: var(--accent-ink); }
.button.small.secondary { color: var(--ink); }
.button.disabled, .button[disabled] { opacity: .55; pointer-events: none; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.text-link { font-weight: 600; }
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field label { font-weight: 600; font-size: 15px; }
.input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--panel); }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
textarea.input { min-height: 160px; padding: 12px 14px; line-height: 1.5; font-family: var(--mono); font-size: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--soft); margin: 4px 0 16px; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-error { color: var(--fail); font-weight: 600; margin: 8px 0 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 260px; }

/* Long-form pages */
.doc { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); }
.lead, .lead p { font-size: 20px; color: var(--soft); }
.updated, .small, .disclaimer, .plan-note { font-size: 14px; color: var(--muted); }
.doc li { margin: 6px 0; }
.howto { counter-reset: s; list-style: none; padding: 0; }
.howto li { counter-increment: s; position: relative; padding-left: 40px; margin: 12px 0; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent-deep); font-weight: 600; display: grid; place-items: center; font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { border-top: 0; background: var(--tint); }
.cta { margin: 40px 0; padding: 22px 24px; border-radius: 12px; background: var(--tint); }
.cta p:first-child { margin-top: 0; font-weight: 600; font-size: 19px; }
.trigger { padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--panel); }
.sources { font-size: 14px; color: var(--soft); }
.seller-block { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.seller-block dt { font-weight: 600; }
.seller-block dd { margin: 0; }
.legal h2 { font-size: 24px; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 28px 0 8px; }
.hero .lead { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); margin: 0; }
.hero-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; gap: 28px; } }

/* Signature: the account panel turning from suspended to ready */
.status-card { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 20px 16px; border: 1px solid var(--line); }
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.status-store { font-family: var(--mono); font-size: 14px; color: var(--soft); overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.fail { color: var(--fail); background: var(--fail-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.pass { color: var(--pass); background: var(--tint); }
.status-list { list-style: none; margin: 8px 0 0; padding: 0; }
.status-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.status-list li:last-child { border-bottom: 0; }
.mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--fail); transition: background-color .35s ease; }
.mark::after { content: "!"; }
li.ok .mark { background: var(--pass); }
li.ok .mark::after { content: "✓"; }
.status-list .rule { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.status-foot { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--fail-bg); color: var(--fail); font-weight: 600; font-size: 15px; transition: background-color .35s ease, color .35s ease; }
.status-card.ready .status-foot { background: var(--tint); color: var(--pass); }
@media (prefers-reduced-motion: reduce) { .mark, .status-foot { transition: none; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 56px 0 0; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature p { margin: 0; color: var(--soft); font-size: 16px; }

.steps ol { padding-left: 22px; }
.steps li { margin: 8px 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 18px 0; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.plan.highlight { border: 2px solid var(--accent); }
.plan .price { font-family: var(--display); font-size: 40px; font-weight: 700; margin: 4px 0 6px; }
.plan .price span { font-size: 17px; font-weight: 600; color: var(--muted); }
.plan ul { padding-left: 20px; margin: 10px 0 18px; flex: 1; }
.plan li { margin: 5px 0; font-size: 16px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.more ul { columns: 2; padding-left: 20px; }
@media (max-width: 640px) { .more ul { columns: 1; } }

/* Check, report and account pages */
.tool { max-width: 860px; margin: 0 auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 18px 0; }
.summary { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 4px; }
.finding { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 12px 0; overflow: hidden; }
.finding > summary { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.finding > summary::-webkit-details-marker { display: none; }
.finding-title { font-weight: 600; }
.finding-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.finding-body .locked { padding: 10px 12px; border-radius: 8px; background: var(--tint); }
.finding-body h4 { margin: 14px 0 6px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.evidence { padding-left: 18px; margin: 0; }
.evidence li { margin: 6px 0; overflow-wrap: anywhere; }
.rules { font-size: 14px; }
.copy-box { position: relative; }
.copy-box .button { position: absolute; top: 8px; right: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.issue-list { padding-left: 18px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--tint); }
.notice.warn { background: var(--warn-bg); }
.notice.fail { background: var(--fail-bg); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; vertical-align: -4px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-family: var(--display); font-size: 30px; }
.kit-note { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 15px; z-index: 20; max-width: calc(100% - 32px); }
