:root {
  --bg: #f8f5ea;
  --panel: #fffcf8;
  --ink: #172538;
  --muted: #4f5d6f;
  --accent: #ef8354;
  --accent-2: #1a936f;
  --line: #e5dacb;
  --pass: #198754;
  --warn: #b7791f;
  --fail: #b42318;
  --shadow: 0 20px 44px rgba(23, 37, 56, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  background:
    radial-gradient(1200px 900px at -20% 110%, rgba(26, 147, 111, 0.2) 0%, rgba(26, 147, 111, 0) 65%),
    linear-gradient(160deg, #fff8ec 0%, #f8f5ea 45%, #f2f7f6 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

.orb-a {
  width: 390px;
  height: 390px;
  top: -92px;
  right: -80px;
  background: radial-gradient(circle at center, rgba(239, 131, 84, 0.3) 0%, rgba(239, 131, 84, 0) 70%);
}

.orb-b {
  width: 440px;
  height: 440px;
  bottom: -220px;
  left: -90px;
  background: radial-gradient(circle at center, rgba(26, 147, 111, 0.28) 0%, rgba(26, 147, 111, 0) 70%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 2rem auto 3.4rem;
  padding: 0 1rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 131, 84, 0.11) 0%, rgba(239, 131, 84, 0) 58%),
    radial-gradient(circle at 92% 20%, rgba(26, 147, 111, 0.11) 0%, rgba(26, 147, 111, 0) 58%),
    var(--panel);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.brand {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.nav-chip {
  margin: 0;
  font-size: 0.82rem;
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
}

h1 {
  margin-top: 0.36rem;
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  max-width: 18ch;
  line-height: 1.1;
}

h2 {
  font-size: 1.26rem;
}

.subhead,
.section-subhead {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.45;
}

.hero-actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cta-btn {
  border-radius: 12px;
  padding: 0.66rem 0.96rem;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  transition: transform 140ms ease, filter 140ms ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
}

.cta-primary {
  background: linear-gradient(135deg, #ef8354, #f9a04d);
  color: #fff;
}

.cta-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-points {
  margin: 0.9rem 0 0;
  padding-left: 1.18rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

.stat-stack {
  display: grid;
  gap: 0.58rem;
}

.stat-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.76rem 0.82rem;
}

.stat-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.stat-value {
  margin: 0.26rem 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.section-title {
  font-size: 1.26rem;
}

.audience-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.audience-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.83rem;
}

.audience-card h3 {
  font-size: 1.02rem;
}

.audience-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.38;
}

.pricing-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.76rem;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
}

.price-card.featured {
  border-color: rgba(239, 131, 84, 0.42);
  background:
    radial-gradient(circle at 86% 8%, rgba(239, 131, 84, 0.14) 0%, rgba(239, 131, 84, 0) 45%),
    #fff;
}

.plan-tag {
  margin: 0 0 0.3rem;
  color: var(--accent-2);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-name {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.plan-price {
  margin: 0.24rem 0 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.plan-price span {
  font-size: 0.95rem;
  color: var(--muted);
}

.plan-fit {
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-list {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.36rem;
}

.audit-form {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.62rem;
}

.auth-row {
  margin-top: 0.88rem;
  display: grid;
  gap: 0.4rem;
}

.auth-row label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-row input {
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.96rem;
  padding: 0.68rem 0.82rem;
  color: var(--ink);
  outline: none;
  max-width: 520px;
}

.auth-row input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(26, 147, 111, 0.14);
}

.usage-pill {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.64rem;
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 700;
}

.usage-pill.neutral {
  background: #fff;
  color: var(--muted);
}

.usage-pill.good {
  background: rgba(25, 135, 84, 0.12);
  border-color: rgba(25, 135, 84, 0.34);
  color: #0f5f39;
}

.usage-pill.warn {
  background: rgba(183, 121, 31, 0.12);
  border-color: rgba(183, 121, 31, 0.34);
  color: #835412;
}

.audit-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.98rem;
  padding: 0.76rem 0.86rem;
  color: var(--ink);
  outline: none;
}

.audit-form input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(26, 147, 111, 0.14);
}

button {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-family: "Space Grotesk", Arial, sans-serif;
}

#run-audit-btn {
  padding: 0.78rem 1rem;
  background: linear-gradient(135deg, #ef8354, #f9a04d);
  color: #fff;
  min-width: 132px;
  transition: transform 140ms ease, filter 140ms ease;
}

#run-audit-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
}

#run-audit-btn[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

.preset-row {
  margin-top: 0.66rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.manual-benchmark-box {
  margin-top: 0.72rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.72rem 0.76rem;
}

.manual-benchmark-box summary {
  cursor: pointer;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
}

.microcopy {
  margin: 0.56rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.manual-score-grid {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
}

.manual-score-label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.manual-score-label input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.52rem 0.6rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.manual-score-label input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(26, 147, 111, 0.14);
}

.preset-btn {
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.preset-btn:hover {
  border-color: var(--accent-2);
}

.status-text {
  margin: 0.72rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.results {
  display: grid;
  gap: 1rem;
}

.hidden {
  display: none;
}

.score-panel {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 1rem;
  align-items: center;
}

.score-ring-wrap {
  display: grid;
  place-items: center;
}

.score-ring {
  --score: 0;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    conic-gradient(from -80deg, var(--accent-2) calc(var(--score) * 1%), rgba(26, 147, 111, 0.13) 0%);
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.score-ring span {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.score-meta p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  overflow-wrap: anywhere;
}

.quick-wins {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.benchmark-metrics {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.confidence-chip,
.metric-pill {
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.32rem 0.62rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.confidence-chip.neutral {
  background: #fff;
  color: var(--muted);
}

.confidence-chip.high {
  background: rgba(25, 135, 84, 0.12);
  border-color: rgba(25, 135, 84, 0.32);
  color: #0f5f39;
}

.confidence-chip.medium {
  background: rgba(183, 121, 31, 0.12);
  border-color: rgba(183, 121, 31, 0.36);
  color: #835412;
}

.confidence-chip.low {
  background: rgba(180, 35, 24, 0.12);
  border-color: rgba(180, 35, 24, 0.32);
  color: #8f1d14;
}

.metric-pill {
  background: #fff;
  color: var(--muted);
}

.benchmark-table-wrap {
  margin-top: 0.72rem;
  overflow-x: auto;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
}

.benchmark-table th,
.benchmark-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.54rem 0.44rem;
  font-size: 0.93rem;
  vertical-align: top;
}

.benchmark-table th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.benchmark-table tbody tr:last-child td {
  border-bottom: none;
}

.benchmark-points {
  margin: 0.68rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.categories-grid {
  display: grid;
  gap: 0.85rem;
}

.category-card h3 {
  font-size: 1.05rem;
}

.category-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.category-pct {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.checks-list {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.45rem;
}

.check-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.78rem;
  background: #fff;
}

.check-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.check-label {
  margin: 0;
  font-weight: 700;
}

.badge {
  font-size: 0.78rem;
  font-family: "Space Grotesk", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  color: #fff;
}

.badge.pass {
  background: var(--pass);
}

.badge.warn {
  background: var(--warn);
}

.badge.fail {
  background: var(--fail);
}

.check-detail {
  margin: 0.34rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  animation: slide-in 440ms ease both;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .audience-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .score-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .audit-form {
    flex-direction: column;
  }

  #run-audit-btn {
    width: 100%;
  }

  .nav-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .manual-score-grid {
    grid-template-columns: 1fr;
  }

  .benchmark-table th,
  .benchmark-table td {
    font-size: 0.86rem;
    padding: 0.44rem 0.36rem;
  }
}
