/**
 * Agent Ready — additions to the HumanGood.AI design system.
 *
 * The main styles.css ports the humangood.ai/agent-ready design unchanged.
 * This file adds only the patterns the original design didn't cover:
 *
 *   .price-card           — pricing tier inner styling (sits inside .agent-steps article)
 *   .price-card.is-featured  — highlighted ("Coming soon") tier
 *   .price-amount         — large $ price
 *   .price-meta           — small "/year per domain" text
 *   .price-features       — feature list inside a tier
 *   .price-pill           — corner pill for "Coming soon" / "Free" labels
 *
 *   .install-block        — terminal-styled code block (install instructions)
 *   .install-block .cmd   — command line marker
 *   .install-block .comment - comment marker
 *
 *   .scan-results         — wrapper around scanner output
 *   .check-row            — single check row (PASS/FAIL/WARN)
 *   .fix-guide-card       — fix-guide card on /fix
 *
 *   .form-error           — inline error message under a form
 *
 * All values use the design tokens from styles.css (--green, --paper, etc.)
 * so swapping color palettes propagates automatically.
 */

/* ───── Pricing cards inside .agent-steps grid ───── */

.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.price-card.is-featured {
  border: 2px solid var(--green);
  border-radius: 8px;
  margin: -1px; /* compensate so featured doesn't shift the grid */
  background: rgba(221, 233, 216, 0.32);
}

.price-card .price-amount {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.price-card .price-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
}

.price-card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.price-card .price-tagline {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.price-features {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1;
}

.price-features li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.5;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.price-pill {
  position: absolute;
  top: -14px;
  right: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-pill.is-light {
  background: var(--green-soft);
  color: var(--green-dark);
}

.price-card .button-row {
  margin-top: auto;
}

/* ───── Install command blocks ───── */

.install-block {
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: 8px;
  background: #0e1815;
  color: #d6e4dc;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid rgba(255, 253, 248, 0.06);
  box-shadow: 0 18px 55px rgba(7, 24, 16, 0.32);
}

.install-block .cmd::before {
  content: "$ ";
  color: #6cc59c;
  font-weight: 700;
}

.install-block .cmd {
  display: block;
  color: #f7f3eb;
}

.install-block .comment {
  display: block;
  color: #6e8e7e;
}

.install-block .string {
  color: #c5e1c2;
}

/* ───── Scanner results ───── */

.scan-results {
  margin-top: 28px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 55px rgba(39, 67, 51, 0.08);
}

.scan-results.is-certified {
  border-color: rgba(31, 104, 66, 0.35);
  background:
    linear-gradient(180deg, rgba(221, 233, 216, 0.4), rgba(255, 253, 248, 1));
}

.scan-result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.scan-result-status {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scan-result-status.is-pass {
  background: var(--green-soft);
  color: var(--green-dark);
}

.scan-result-status.is-fail {
  background: rgba(178, 28, 28, 0.1);
  color: #b21c1c;
}

.scan-result-url {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  word-break: break-all;
}

.scan-result-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.scan-result-stats span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.scan-result-stats span.is-fail {
  background: rgba(178, 28, 28, 0.1);
  color: #b21c1c;
}

.scan-result-stats span.is-warn {
  background: rgba(192, 142, 21, 0.16);
  color: #80590e;
}

.check-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
  margin-bottom: 8px;
  padding: 0;
}

.check-row[open] {
  background: rgba(255, 253, 248, 1);
  box-shadow: 0 8px 24px rgba(39, 67, 51, 0.06);
}

.check-row > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 800;
  list-style: none;
}

.check-row > summary::-webkit-details-marker {
  display: none;
}

.check-row .check-icon {
  font-size: 1.2rem;
}

.check-row .check-name {
  flex: 1;
  color: var(--ink);
}

.check-row .check-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.check-row .check-status.is-pass {
  background: var(--green-soft);
  color: var(--green-dark);
}

.check-row .check-status.is-fail {
  background: rgba(178, 28, 28, 0.12);
  color: #b21c1c;
}

.check-row .check-status.is-warn {
  background: rgba(192, 142, 21, 0.16);
  color: #80590e;
}

.check-row .check-status.is-skip {
  background: var(--paper-deep);
  color: var(--muted);
}

.check-body {
  padding: 0 18px 18px;
}

.check-detail {
  color: var(--muted);
  margin: 0 0 14px;
}

.fix-guide {
  padding: 14px 18px;
  border-left: 4px solid var(--green);
  background: rgba(221, 233, 216, 0.32);
  border-radius: 0 8px 8px 0;
}

.fix-guide pre,
.fix-guide code {
  background: rgba(14, 24, 21, 0.92);
  color: #d6e4dc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

.fix-guide pre {
  padding: 14px 18px;
  overflow-x: auto;
}

.fix-guide pre code {
  background: transparent;
  padding: 0;
}

/* CTA prompt below failed scan */
.scan-cta-fix {
  margin-top: 22px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(221, 233, 216, 0.5), rgba(255, 253, 248, 0.95));
  border: 1px solid var(--line);
}

.scan-cta-fix h2 {
  margin-bottom: 6px;
}

.scan-cta-fix .button-row {
  margin-top: 14px;
}

.scan-error {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid rgba(178, 28, 28, 0.32);
  color: #b21c1c;
  background: rgba(178, 28, 28, 0.06);
}

/* ───── Fix-guides page ───── */

.fix-guide-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 55px rgba(39, 67, 51, 0.08);
  margin-bottom: 18px;
}

.fix-guide-card h2 {
  margin-bottom: 14px;
  color: var(--green-dark);
}

/* ───── Form error inline ───── */

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #b21c1c;
  background: rgba(178, 28, 28, 0.08);
  font-size: 0.94rem;
}

/* ───── Footer link list ───── */

.agent-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ───── Tweak: 3-column pricing should still be agent-steps grid ───── */
/* (no change needed — agent-steps already uses repeat(3); price-card sits inside <article>) */
