:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --paper-deep: #e9e2d3;
  --ink: #171714;
  --muted: #68665f;
  --line: #cdc5b6;
  --white: #fffdf8;
  --acid: #d7ff3f;
  --acid-dark: #9dbd22;
  --blue: #2f5cff;
  --red: #d9462f;
  --orange: #ed8b28;
  --green: #2f7d4c;
  --radius: 20px;
  --shadow: 0 18px 60px rgba(35, 31, 23, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 7%, rgba(215, 255, 63, 0.32), transparent 22rem),
    var(--paper);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-size: 1.25rem;
  line-height: 1;
}

.pilot-badge,
.risk-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  min-height: 470px;
  align-content: center;
  padding: 58px 0 82px;
}

.eyebrow,
.step-label {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8.7vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.hero h1 span {
  color: var(--blue);
  font-style: italic;
}

.hero-copy {
  max-width: 660px;
  margin: 2rem 0 0;
  color: #45433d;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.checker,
.progress-panel,
.load-error,
.results {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.checker {
  overflow: hidden;
}

.checker-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 34px 38px 28px;
}

.checker h2,
.progress-panel h2,
.load-error h2,
.results h2,
.method h2,
.feedback-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.privacy-note {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tabs {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-inline: 38px;
}

.tab {
  position: relative;
  border: 0;
  padding: 18px 22px 16px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.tab::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 3px;
  background: transparent;
  content: "";
}

.tab.is-active {
  color: var(--ink);
}

.tab.is-active::after {
  background: var(--blue);
}

#audit-form {
  padding: 38px;
}

.tab-panel > label:not(.file-drop),
.feedback-reason label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}

input[type="url"] {
  min-height: 58px;
  padding: 0 18px;
}

textarea {
  display: block;
  min-height: 210px;
  resize: vertical;
  padding: 16px 18px;
  line-height: 1.5;
}

select {
  min-height: 50px;
  padding: 0 12px;
}

input::placeholder,
textarea::placeholder {
  color: #969188;
}

.primary-button,
.secondary-button,
.text-button,
.new-audit,
.feedback-buttons button {
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  border: 1px solid var(--ink);
  padding: 0.75rem 1.2rem;
  color: var(--ink);
  background: var(--acid);
}

.primary-button:hover {
  background: #e5ff7b;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-button,
.new-audit {
  min-height: 48px;
  border: 1px solid var(--ink);
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: transparent;
}

.text-button {
  border: 0;
  padding: 0.7rem 0.4rem;
  color: var(--blue);
  background: transparent;
}

.field-help,
.input-footer,
.feedback-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.field-help {
  margin: 0.65rem 0 0;
}

.input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 12px;
}

.file-drop {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #9f998e;
  border-radius: 14px;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--muted);
  background: #faf8f2;
  cursor: pointer;
  text-align: center;
}

.file-drop:hover,
.file-drop.is-dragging,
.file-drop.has-file {
  border-color: var(--blue);
  background: #f1f4ff;
}

.file-drop strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.file-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-size: 1.45rem;
}

#file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-footer {
  justify-content: flex-end;
}

.form-error {
  margin: 1rem 0 0;
  border-left: 4px solid var(--red);
  padding: 0.5rem 0.8rem;
  color: #8d2417;
  background: #fff0ed;
  font-weight: 700;
}

.progress-panel,
.load-error {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 24px;
  padding: 40px;
}

.progress-symbol {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
}

.progress-symbol span {
  width: 27px;
  height: 27px;
  border: 3px solid rgba(23, 23, 20, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-panel p:last-child,
.load-error > p:not(.step-label) {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.load-error {
  display: block;
  border-left: 6px solid var(--orange);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.results {
  margin-top: 24px;
  overflow: hidden;
}

.results-intro {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) 1.15fr;
  border-bottom: 1px solid var(--line);
}

.score-card,
.result-summary {
  padding: 40px;
}

.score-card {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  border-right: 1px solid var(--line);
  background: #ece7db;
}

.score-ring {
  position: relative;
  display: grid;
  width: 130px;
  height: 130px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--score-color, var(--orange)) calc(var(--score, 0) * 1%), #d8d1c3 0);
}

.score-ring::before {
  position: absolute;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.score-ring strong,
.score-ring span {
  position: relative;
  z-index: 1;
}

.score-ring strong {
  align-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
}

.score-ring span {
  align-self: start;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.risk-label {
  margin-top: 0.8rem;
  color: var(--score-color, var(--orange));
}

.result-site {
  margin: 0 0 0.85rem;
  font-weight: 800;
}

.summary-copy {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.38;
}

.score-explainer {
  margin: 1.2rem 0;
  border-left: 3px solid var(--blue);
  padding-left: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-meta span {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: #555249;
  background: #efebe2;
  font-size: 0.73rem;
  font-weight: 700;
}

.warnings {
  margin: 28px 40px 0;
  border: 1px solid #e5c795;
  border-radius: 12px;
  padding: 14px 16px;
  color: #734c13;
  background: #fff7e8;
  font-size: 0.88rem;
}

.warnings ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.claims-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 40px 40px 24px;
}

#claims-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.claims-list {
  display: grid;
  gap: 14px;
  padding: 0 40px 40px;
}

.claim-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.claim-card summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}

.claim-card summary::-webkit-details-marker {
  display: none;
}

.claim-card summary::after {
  color: var(--muted);
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}

.claim-card[open] summary::after {
  content: "−";
}

.claim-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.claim-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.35;
}

.claim-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.claim-badge {
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  color: #45423b;
  background: #eeeae1;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.claim-badge.score-high,
.claim-badge.evidence-contradicted {
  color: #8f2618;
  background: #ffe9e5;
}

.claim-badge.evidence-supported,
.claim-badge.evidence-qualified {
  color: #1e633b;
  background: #e2f6e9;
}

.claim-body {
  display: grid;
  gap: 1.2rem;
  border-top: 1px solid var(--line);
  padding: 22px 20px 24px 68px;
}

.claim-section h4 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.claim-section p,
.claim-section ul {
  margin: 0;
  color: #514e47;
  line-height: 1.55;
}

.claim-section ul {
  padding-left: 1.15rem;
}

.seller-question {
  border-left: 4px solid var(--acid-dark);
  padding: 12px 14px;
  background: #f6fbdc;
}

.evidence-list {
  display: grid;
  gap: 0.65rem;
}

.evidence-item {
  border: 1px solid #ddd7cb;
  border-radius: 10px;
  padding: 12px;
  background: #faf8f3;
}

.evidence-item a {
  color: var(--blue);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.evidence-item p {
  margin-top: 0.4rem;
  font-size: 0.86rem;
}

.feedback-card {
  margin: 0 40px 32px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  padding: 28px;
  background: var(--acid);
}

.feedback-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.feedback-buttons button {
  min-height: 44px;
  border: 1px solid var(--ink);
  padding: 0.6rem 0.85rem;
  background: var(--white);
}

.feedback-buttons button.is-selected {
  color: white;
  background: var(--ink);
}

.feedback-reason {
  display: grid;
  max-width: 560px;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  margin-top: 1rem;
}

.feedback-reason label {
  grid-column: 1 / -1;
  margin: 0;
}

.feedback-status {
  min-height: 1.2em;
  margin: 0.8rem 0 0;
  color: var(--ink);
  font-weight: 700;
}

.new-audit {
  display: block;
  margin: 0 auto 40px;
}

.method {
  padding: 110px 0;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.method-grid article {
  padding: 30px;
  background: var(--paper);
}

.method-grid span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
}

.method-grid h3 {
  margin: 2.5rem 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand {
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .checker-heading,
  .results-intro {
    display: block;
  }

  .privacy-note {
    margin-top: 1rem;
  }

  .score-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding: 18px 0;
  }

  .hero {
    min-height: 390px;
    padding: 45px 0 60px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .checker-heading,
  #audit-form,
  .score-card,
  .result-summary,
  .progress-panel,
  .load-error {
    padding: 25px 20px;
  }

  .tabs {
    overflow-x: auto;
    padding: 0 8px;
    scrollbar-width: thin;
  }

  .tab {
    flex: 0 0 auto;
    padding-inline: 14px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row .primary-button {
    width: 100%;
  }

  .input-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .file-footer {
    align-items: stretch;
  }

  .progress-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .warnings,
  .feedback-card {
    margin-right: 20px;
    margin-left: 20px;
  }

  .claims-heading {
    align-items: flex-start;
    padding: 34px 20px 20px;
    flex-direction: column;
  }

  .claims-list {
    padding: 0 20px 30px;
  }

  .claim-card summary {
    grid-template-columns: auto 1fr;
  }

  .claim-card summary::after {
    display: none;
  }

  .claim-body {
    padding: 20px;
  }

  .feedback-reason {
    grid-template-columns: 1fr;
  }

  .method {
    padding: 80px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
