:root {
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #d7dde5;
  --soft: #f4f6f8;
  --white: #ffffff;
  --green: #1f7a4d;
  --blue: #1d6fd8;
  --dark: #0d1712;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--dark);
  color: white;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(29, 111, 216, .45);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 48px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(215, 221, 229, .8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--green);
}

.header-cta,
.primary-btn,
.secondary-btn,
.form-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.header-cta,
.primary-btn {
  background: var(--green);
  color: white;
}

.mobile-label {
  display: none;
}

.secondary-btn {
  border-color: rgba(255, 255, 255, .42);
  color: white;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #07100b;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 11, .22), rgba(7, 16, 11, .62) 58%, rgba(7, 16, 11, .92)),
    url("assets/factory-injection-line.jpg") center 56% / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 210px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bcf4d2;
}

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

h1 {
  max-width: 950px;
  font-size: 68px;
  line-height: 1.02;
  font-weight: 800;
}

h2 {
  max-width: 820px;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.lead {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .82);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1120px, calc(100% - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  transform: translateX(-50%);
  background: rgba(9, 20, 14, .72);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  min-height: 128px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.hero-panel div:last-child {
  border-right: none;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: 16px;
}

.hero-panel span {
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: start;
}

.section-text,
.split-content p,
.solution-grid p,
.factory-grid p,
.category-grid p,
.steps p,
.inquiry-copy p,
.form-note,
.site-footer span {
  color: var(--muted);
}

.section-text {
  font-size: 20px;
}

.factory-band {
  width: 100%;
  padding-left: max(24px, calc((100% - 1120px) / 2));
  padding-right: max(24px, calc((100% - 1120px) / 2));
  background: var(--soft);
}

.factory-intro {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
}

.factory-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.category-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.factory-grid article {
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.factory-grid .factory-feature {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.factory-media {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #dde2df;
}

.factory-grid .factory-feature .factory-media {
  height: 410px;
}

.factory-grid article:not(.factory-feature) .factory-media {
  height: 100%;
}

.factory-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-feature .factory-media img {
  object-position: center 62%;
}

.factory-grid article:nth-child(2) .factory-media img {
  object-position: 46% center;
}

.factory-grid article:nth-child(3) .factory-media img {
  object-position: center center;
}

.factory-copy {
  padding: 24px;
}

.factory-copy span,
.category-grid span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.factory-grid p,
.category-grid p {
  margin-top: 10px;
}

.factory-copy p {
  margin-bottom: 0;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  width: 100%;
  padding: 0;
  background: var(--dark);
  color: white;
}

.split-image {
  min-height: 640px;
  background: center / cover no-repeat;
}

.split-image.vegetable {
  background-image: url("assets/factory-warehouse.jpg");
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  padding: 96px 48px;
}

.split-content p {
  margin-top: 22px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .86);
}

.check-list li {
  padding-left: 26px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #78d69b;
}

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

.solution-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.solution-grid img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.solution-grid article div {
  padding: 24px;
}

.solution-grid p {
  margin-top: 10px;
}

.products {
  width: 100%;
  padding-left: max(24px, calc((100% - 1120px) / 2));
  padding-right: max(24px, calc((100% - 1120px) / 2));
  background: white;
}

.category-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.category-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(31, 122, 77, .28);
  border-radius: 999px;
  color: var(--green);
  background: #f0f8f3;
  font-size: 13px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.category-grid article {
  min-height: 210px;
  background: #fbfcfd;
}

.process {
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.steps div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--green);
  font-weight: 800;
}

.steps p {
  margin-top: 10px;
}

.inquiry {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.inquiry-copy > p {
  margin-top: 18px;
  font-size: 18px;
}

.qualification-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  padding: 0;
  color: var(--text);
  list-style: none;
}

.qualification-points li {
  position: relative;
  padding-left: 25px;
}

.qualification-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.company-details {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  color: var(--text);
}

.company-details[hidden],
.hp-field[hidden] {
  display: none !important;
}

.company-details span {
  color: var(--muted);
}

.qualification-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 22px 60px rgba(17, 24, 39, .08);
}

.qualification-progress {
  display: grid;
  grid-template-columns: 34px 1fr 34px 1fr 34px;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.qualification-progress span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.qualification-progress span.is-active,
.qualification-progress span.is-complete {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.qualification-progress i {
  height: 2px;
  background: var(--line);
}

.qualification-step[hidden],
.qualification-result[hidden],
.qualification-progress[hidden] {
  display: none;
}

.qualification-step h3,
.qualification-result h3 {
  margin-top: 6px;
  font-size: 26px;
}

.step-label {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.step-help,
.qualification-result > p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--muted);
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.answer-grid button {
  min-height: 62px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.answer-grid button:hover,
.answer-grid button.is-selected {
  border-color: var(--green);
  background: #f0f8f3;
  color: var(--green);
}

.answer-grid button.consumer-answer {
  border-style: dashed;
  color: var(--muted);
}

.answer-grid.compact button:last-child {
  grid-column: 1 / -1;
}

.back-button,
.restart-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.business-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.business-fields .field-wide {
  grid-column: 1 / -1;
}

.business-fields label span {
  color: var(--muted);
  font-weight: 500;
}

.business-fields label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.business-fields input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--text);
  font-size: 13px;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
}

.privacy-check a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.qualification-submit,
.qualification-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.qualification-submit:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.qualification-submit.is-loading {
  cursor: wait;
  opacity: .72;
}

.qualification-result {
  text-align: center;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e7f6ed;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}

.rejected-result .result-icon {
  background: var(--soft);
  color: var(--muted);
}

.qualification-summary {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  overflow: hidden;
}

.qualification-summary div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.qualification-summary div:last-child {
  border-bottom: 0;
}

.qualification-summary dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.qualification-summary dd {
  margin: 0;
  font-weight: 700;
}

.reference-line {
  margin-top: 12px;
  color: var(--text);
}

.delivery-error .result-icon {
  background: #fff3df;
  color: #a15c00;
}

.delivery-error .qualification-whatsapp {
  margin-top: 12px;
}

.evidence-band {
  padding-top: 20px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.evidence-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.evidence-media {
  height: 235px;
  overflow: hidden;
  background: var(--soft);
}

.evidence-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evidence-grid figure:nth-child(1) img {
  object-position: center 56%;
}

.evidence-grid figure:nth-child(2) img {
  object-position: center 48%;
}

.evidence-grid figure:nth-child(3) img {
  object-position: center 54%;
}

.evidence-grid figcaption {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 6px;
  padding: 18px;
}

.evidence-grid figcaption b {
  grid-row: 1 / 3;
  color: var(--green);
  font-size: 13px;
}

.evidence-grid figcaption span {
  grid-column: 2;
  color: var(--text);
  font-size: 14px;
}

.case-note {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--green);
  background: #f2f8f4;
  color: var(--text);
  font-size: 14px;
}

.case-note strong {
  color: var(--ink);
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.qualification-result .form-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-weight: 800;
}

.qualification-result .restart-button {
  display: block;
  margin: 18px auto 0;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #157347;
  color: white;
  box-shadow: 0 10px 30px rgba(13, 23, 18, .22);
  font-size: 14px;
  font-weight: 800;
}

.policy-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.policy-page h1 {
  color: #111827;
  font-size: 44px;
}

.policy-page h2 {
  margin-top: 38px;
  font-size: 24px;
}

.policy-page p,
.policy-page li {
  color: #4b5563;
}

.policy-page p {
  margin-top: 14px;
}

.policy-page ul {
  padding-left: 22px;
}

.not-found-page {
  display: grid;
  min-height: calc(100vh - 76px);
  place-content: center;
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.not-found-page h1 {
  color: var(--ink);
  font-size: clamp(42px, 8vw, 72px);
}

.not-found-page p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.not-found-page .primary-btn {
  width: fit-content;
  margin: 28px auto 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 48px;
  background: var(--dark);
  color: white;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer a {
  color: #bcf4d2;
  font-weight: 700;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 920px) {
  .site-header {
    padding: 0 24px;
  }

  .main-nav {
    display: none;
  }

  h1 {
    max-width: 358px;
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  h2 {
    max-width: 358px;
    font-size: 30px;
  }

  .hero {
    min-height: 840px;
  }

  .hero-copy {
    padding-bottom: 360px;
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
  }

  .hero-panel,
  .intro,
  .factory-grid,
  .split-section,
  .solution-grid,
  .category-grid,
  .steps,
  .inquiry,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .factory-grid {
    grid-template-rows: auto;
  }

  .factory-grid .factory-feature {
    grid-row: auto;
  }

  .factory-grid article,
  .factory-grid .factory-feature {
    display: block;
    min-height: 0;
  }

  .factory-grid .factory-feature .factory-media,
  .factory-grid article:not(.factory-feature) .factory-media {
    height: 280px;
  }

  .hero-panel {
    left: 16px;
    bottom: 24px;
    max-width: 358px;
    transform: none;
  }

  .lead,
  .section-text,
  .split-content p,
  .inquiry-copy p {
    max-width: 358px;
  }

  .hero-panel div {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .hero-panel div:last-child {
    border-bottom: none;
  }

  .split-image,
  .split-section {
    min-height: auto;
  }

  .split-image {
    min-height: 380px;
  }
}

@media (max-width: 560px) {
  .factory-band {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(7, 16, 11, .22), rgba(7, 16, 11, .62) 58%, rgba(7, 16, 11, .92)),
      url("assets/factory-injection-line-mobile-v2.jpg") center / cover no-repeat;
  }

  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    min-width: 64px;
    padding: 0 12px;
    font-size: 14px;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 30px;
  }

  .lead,
  .section-text {
    font-size: 17px;
  }

  .hero-copy,
  .section {
    width: min(100% - 32px, 1120px);
    overflow: hidden;
  }

  .hero-panel {
    width: calc(100% - 32px);
  }

  .qualification-card {
    padding: 20px;
  }

  .answer-grid,
  .business-fields {
    grid-template-columns: 1fr;
  }

  .business-fields .field-wide {
    grid-column: auto;
  }

  .answer-grid.compact button:last-child {
    grid-column: auto;
  }

  .qualification-summary div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .floating-whatsapp {
    display: none;
  }

  .factory-grid .factory-feature .factory-media,
  .factory-grid article:not(.factory-feature) .factory-media,
  .evidence-media {
    height: 220px;
  }

  .site-footer {
    display: grid;
    padding: 30px 24px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
