:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-light: #f5f5f5;
  --color-dark: #1a1a1a;
  --color-mid: #666666;
  --color-border: #dedede;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  color: var(--color-white);
  background: var(--color-black);
  clip: auto;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-black);
  text-decoration: none;
}

.brand-logo {
  width: 172px;
  height: auto;
}

.custom-logo-link img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 54px;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--color-mid);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--color-white);
  background: var(--color-black);
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-dark);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover {
  background: var(--color-light);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-black);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #000 0%, #121212 55%, #000 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: 56px;
  min-height: 720px;
  padding-block: 96px;
}

.hero h1,
.page-hero h1,
.tool-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.tool-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.page-hero p,
.tool-hero p {
  color: #444;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-mid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.button-primary {
  color: var(--color-white);
  background: var(--color-black);
}

.button-secondary {
  color: var(--color-black);
  background: var(--color-white);
}

.button-ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  color: var(--color-black);
  background: var(--color-white);
  border-color: var(--color-white);
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
}

.panel-topline {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.panel-topline span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.metric-ring {
  --score: 75;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: min(100%, 244px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #111 74%, transparent 75% 100%),
    conic-gradient(#fff calc(var(--score) * 1%), rgba(255, 255, 255, 0.16) 0);
}

.metric-ring strong {
  font-size: clamp(2.8rem, 7vw, 3.65rem);
  line-height: 1;
}

.metric-ring span {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.signal-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.signal-list span {
  color: rgba(255, 255, 255, 0.7);
}

.section,
.page-hero,
.tool-hero {
  padding-block: 92px;
}

.page-hero,
.tool-hero {
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
}

.section-muted {
  background: var(--color-light);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.cta-inner h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.service-grid,
.tool-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card,
.tool-card,
.news-card,
.long-card,
.contact-panel,
.contact-form,
.assessment-card,
.result-card,
.notice-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

.service-card,
.tool-card {
  min-height: 240px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .text-link {
  margin-top: auto;
}

.service-card:hover,
.tool-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-black);
  box-shadow: var(--shadow);
}

.service-card h3,
.tool-card h3,
.news-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.service-card p,
.tool-card p,
.news-card p,
.long-card p,
.contact-panel p {
  color: #444;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-dark);
}

.news-card > div {
  padding: 22px;
}

.text-link,
.news-card a {
  font-weight: 800;
}

.cta-band {
  padding-block: 86px;
  color: var(--color-white);
  background: var(--color-black);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.cta-inner p {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.service-long-grid {
  display: grid;
  gap: 20px;
}

.long-card {
  padding: clamp(24px, 5vw, 42px);
}

.long-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.1rem;
  font-weight: 650;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: start;
}

.contact-panel,
.contact-form {
  padding: 28px;
}

.check-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label,
.field-label {
  display: grid;
  gap: 7px;
  color: var(--color-dark);
  font-weight: 750;
}

.contact-form input,
.contact-form textarea,
.tool-input,
.tool-select {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius-sm);
  color: var(--color-black);
  background: var(--color-white);
}

.tool-select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #000 50%),
    linear-gradient(135deg, #000 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-status {
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  font-weight: 750;
}

.form-status.success {
  background: #ecfdf3;
}

.form-status.error {
  background: #fff1f1;
}

.assessment-shell {
  display: grid;
  gap: 22px;
}

.assessment-intro,
.assessment-form,
.assessment-results {
  display: grid;
  gap: 18px;
}

.assessment-card,
.result-card,
.notice-card {
  padding: 24px;
}

.assessment-card h2,
.result-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.question-grid {
  display: grid;
  gap: 12px;
}

.question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.question-row p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-group label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 94px;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-light);
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.choice-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-group label:has(input:checked) {
  color: var(--color-white);
  border-color: var(--color-black);
  background: var(--color-black);
}

.choice-group label:focus-within {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

.help-badge {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-black);
  border-radius: 999px;
  color: var(--color-black);
  background: var(--color-white);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.help-badge::after {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 10px);
  left: 50%;
  width: min(300px, 78vw);
  padding: 10px 12px;
  border: 1px solid var(--color-black);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-black);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  content: attr(data-tooltip);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.help-badge:hover::after,
.help-badge:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-weight: 700;
}

.checkbox-card .option-text {
  flex: 1;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.score-tile {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-light);
}

.score-tile span {
  color: var(--color-mid);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 2.4rem;
  line-height: 1;
}

.progress-track {
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #ddd;
}

.progress-fill {
  width: var(--value, 0%);
  height: 100%;
  background: var(--color-black);
  transform-origin: left;
  animation: fillBar 700ms ease both;
}

@keyframes fillBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-card {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

.chart-card canvas {
  width: min(220px, 100%);
  max-width: 220px;
}

.recommendations,
.summary-box,
.generated-report,
.result-cta {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

.recommendations h3,
.summary-box h3,
.generated-report h3 {
  margin-top: 0;
}

.recommendations ul,
.generated-report ul {
  margin-bottom: 0;
}

.result-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--color-light);
}

.result-cta h3 {
  margin: 0 0 4px;
}

.result-cta p {
  margin: 0;
  color: #444;
}

.result-cta .button {
  flex: 0 0 auto;
  min-width: 132px;
  white-space: nowrap;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ir-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.generated-report {
  display: grid;
  gap: 16px;
}

.generated-report section {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.generated-report section:last-child {
  border-bottom: 0;
}

.supplier-report-list li {
  margin-bottom: 18px;
}

.supplier-report-list p {
  margin: 8px 0;
}

.response-lines {
  min-height: 76px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(var(--color-white), var(--color-white) 23px, #e8e8e8 24px);
}

.ir-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ir-flow-step {
  position: relative;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--color-black);
  border-radius: var(--radius);
  background: var(--color-light);
}

.ir-flow-step::after {
  position: absolute;
  top: 24px;
  right: -14px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-black);
  content: ">";
  font-weight: 900;
}

.ir-flow-step:last-child::after {
  display: none;
}

.ir-flow-step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-black);
  font-weight: 900;
}

.ir-flow-step strong {
  display: block;
  margin-top: 12px;
  font-size: 1.05rem;
}

.ir-flow-step p {
  margin: 8px 0 0;
  color: #444;
}

.site-footer {
  color: var(--color-white);
  background: var(--color-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: 34px;
  padding-block: 56px;
}

.footer-brand {
  color: var(--color-white);
}

.footer-logo {
  width: 190px;
  height: auto;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.footer-brand .brand-mark {
  color: var(--color-black);
  background: var(--color-white);
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a,
.footer-grid small,
.footer-bottom {
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid li {
  margin: 8px 0;
}

.footer-bottom {
  padding-block: 18px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    inset: 78px 14px auto;
    display: none;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 4px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 72px;
  }

  .hero-panel {
    display: none;
  }

  .section,
  .page-hero,
  .tool-hero {
    padding-block: 64px;
  }

  .inline-heading,
  .cta-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-grid,
  .tool-grid,
  .news-grid,
  .results-grid,
  .chart-grid,
  .checkbox-grid,
  .ir-form-grid {
    grid-template-columns: 1fr;
  }

  .question-row {
    grid-template-columns: 1fr;
  }

  .result-cta {
    display: grid;
  }

  .ir-flow-step {
    min-height: 0;
  }

  .ir-flow-step::after {
    top: auto;
    right: auto;
    bottom: -14px;
    left: 18px;
    transform: rotate(90deg);
  }

  .brand small {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .tool-hero,
  .assessment-form,
  .tool-actions,
  .button {
    display: none !important;
  }

  .section {
    padding: 0;
  }

  .container {
    width: 100%;
  }

  .generated-report {
    border: 0;
  }
}
