:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #65716c;
  --line: rgba(23, 33, 29, 0.12);
  --paper: #fbfaf5;
  --panel: rgba(255, 255, 255, 0.84);
  --green: #0f6a43;
  --green-2: #133f32;
  --coral: #e36f56;
  --sea: #d9eee6;
  --cream: #f4efe2;
  --shadow: 0 24px 80px rgba(28, 48, 39, 0.16);
  font-family: Charter, Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(251, 250, 245, 0.92), rgba(217, 238, 230, 0.8)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2400&q=82") center/cover fixed;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

.hero {
  min-height: min(760px, 100vh);
  padding: 28px clamp(18px, 4vw, 64px) 48px;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green-2);
  color: #fff;
  font-size: 13px;
}

.nav-note {
  color: var(--green-2);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.hero-grid {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.hero-copy {
  padding: 56px 0 28px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font: 750 13px/1.4 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(54px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  color: #31423a;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
  margin-bottom: 34px;
}

.audit-form {
  width: min(760px, 100%);
  padding: 16px;
  border: 1px solid rgba(15, 106, 67, 0.18);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.audit-form label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 760;
  color: var(--green-2);
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: rgba(15, 106, 67, 0.56);
  box-shadow: 0 0 0 4px rgba(15, 106, 67, 0.12);
}

button {
  min-height: 54px;
  border: 0;
  border-radius: 9px;
  padding: 0 18px 0 22px;
  background: var(--green-2);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 780;
}

button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

button:disabled {
  cursor: wait;
  opacity: 0.76;
}

.form-hint {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.advisor-panel {
  justify-self: end;
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 226, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 22px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(227, 111, 86, 0.14);
}

.score-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 32px auto;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--green) 0 78%, rgba(15, 106, 67, 0.14) 78% 100%);
}

.score-ring span {
  font: 800 48px/1 ui-sans-serif, system-ui, sans-serif;
}

.score-ring small {
  display: block;
  margin-top: 46px;
  margin-left: -66px;
  color: var(--muted);
  font-size: 12px;
}

.preview-list {
  display: grid;
  gap: 12px;
}

.preview-list div,
.audit-card,
.rubric article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
}

.preview-list div {
  padding: 14px;
}

.preview-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-2);
  font-size: 13px;
}

.preview-list p {
  color: #34423c;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.results,
.rubric {
  padding: 78px clamp(18px, 4vw, 64px);
}

.results {
  background: var(--paper);
}

.empty-state,
.audit-output,
.section-heading,
.rubric-grid {
  max-width: 1240px;
  margin: 0 auto;
}

.empty-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(23, 33, 29, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  padding: 38px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--sea);
  color: var(--green-2);
  font: 800 28px/1 ui-sans-serif, system-ui, sans-serif;
}

.empty-state h2,
.section-heading h2 {
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1;
  margin-bottom: 14px;
}

.empty-state p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.55;
}

.audit-output {
  display: grid;
  gap: 18px;
}

.audit-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.audit-score {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 14px;
  background: var(--green-2);
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.audit-score strong {
  font-size: 38px;
}

.audit-score span {
  font-size: 12px;
  opacity: 0.82;
}

.audit-header h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  margin-bottom: 10px;
}

.audit-header p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.audit-header .source-method {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(67, 86, 78, 0.74);
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.scope-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.scope-strip div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.scope-strip strong {
  display: block;
  color: var(--green-2);
  font-size: 26px;
}

.scope-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audit-card {
  padding: 18px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 820;
}

.finding-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 18px;
}

.audit-card h3 {
  margin-bottom: 10px;
}

.audit-card ul {
  margin: 0;
  padding-left: 18px;
  color: #384840;
  line-height: 1.55;
}

.recommendations {
  display: grid;
  gap: 12px;
}

.recommendation {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(217, 238, 230, 0.42);
}

.recommendation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recommendation strong,
.recommendation-head strong {
  color: var(--green-2);
}

.recommendation-head span {
  border: 1px solid rgba(15, 106, 67, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recommendation p {
  margin: 6px 0 0;
  color: #384840;
  line-height: 1.45;
}

.recommendation .evidence {
  color: var(--muted);
  font-size: 13px;
}

.page-table-card {
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: #384840;
  font-size: 14px;
}

th {
  color: var(--green-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td strong,
td a {
  display: block;
}

td a {
  margin-top: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.rubric {
  background: linear-gradient(180deg, var(--paper), var(--cream));
}

.section-heading {
  margin-bottom: 28px;
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rubric article {
  padding: 22px;
}

.rubric article span {
  display: inline-block;
  color: var(--coral);
  font: 800 13px/1 ui-sans-serif, system-ui, sans-serif;
  margin-bottom: 30px;
}

.rubric h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.rubric p {
  color: var(--muted);
  line-height: 1.55;
}

.error {
  max-width: 840px;
  margin: 0 auto;
  border: 1px solid rgba(227, 111, 86, 0.35);
  background: rgba(227, 111, 86, 0.1);
  border-radius: 12px;
  padding: 20px;
  color: #6d2e23;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .finding-layout {
    grid-template-columns: 1fr;
  }

  .advisor-panel {
    justify-self: start;
  }

	  .audit-grid,
	  .scope-strip,
	  .rubric-grid {
	    grid-template-columns: repeat(2, 1fr);
	  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

	  .hero {
	    padding-top: 18px;
	    padding-left: 20px;
	    padding-right: 20px;
	  }

  .nav-note {
    display: none;
  }

	  h1 {
	    max-width: 330px;
	    font-size: 44px;
	    line-height: 0.98;
	  }

	  .eyebrow,
	  .lede {
	    max-width: 330px;
	    overflow-wrap: anywhere;
	  }

	  .eyebrow {
	    font-size: 12px;
	    letter-spacing: 0.04em;
	  }

		  .audit-form {
		    width: calc(100vw - 52px);
		    max-width: 338px;
		  }

	  .lede {
	    max-width: 330px;
	    font-size: 18px;
	  }

  .input-row,
  .audit-header,
	  .audit-grid,
	  .scope-strip,
	  .rubric-grid {
	    grid-template-columns: 1fr;
	  }

  button {
    justify-content: center;
    width: 100%;
  }

  .advisor-panel {
    display: none;
  }

  .results,
  .rubric {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}
