:root {
  --ink: #18221f;
  --muted: #63716c;
  --line: #dce4df;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --brand: #1d6b55;
  --brand-strong: #104939;
  --logo-green: #073b1d;
  --accent: #d9a441;
  --accent-soft: #fff4d7;
  --danger: #a6422f;
  --shadow: 0 20px 60px rgba(24, 34, 31, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: var(--logo-green);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  display: block;
  width: 260px;
  height: 73px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.nav a {
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
}

.nav a:hover {
  color: var(--logo-green);
  background: #fff;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  height: 44px;
  color: var(--logo-green);
  font-weight: 800;
  background: #fff;
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: calc(100svh - 92px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 28, 24, 0.88) 0%, rgba(16, 28, 24, 0.64) 42%, rgba(16, 28, 24, 0.1) 100%),
    linear-gradient(0deg, rgba(16, 28, 24, 0.28), rgba(16, 28, 24, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: #fff;
}

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

.hero .eyebrow {
  color: #f2c96b;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 800;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(24, 34, 31, 0.12);
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.primary:hover {
  background: var(--brand-strong);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.button.ghost {
  min-height: 42px;
  color: var(--brand-strong);
  background: #eef5f1;
  border-color: #d7e6de;
}

.button.whatsapp {
  color: #fff;
  background: #1f8f62;
}

.muted {
  color: var(--muted);
}

.icon,
.mini-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, 100%);
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-metrics div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics dt {
  font-size: 24px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  padding: 18px;
  color: var(--brand-strong);
  font-weight: 800;
  background: #fff;
  text-align: center;
}

.mini-icon {
  width: 32px;
  height: 32px;
  color: var(--brand);
  background: #e8f4ee;
  border-radius: 999px;
}

.mini-icon svg {
  width: 17px;
  height: 17px;
}

.section,
.order-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(54px, 7vw, 86px) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 18px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #eef3ee;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segment {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.segment.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 5px 14px rgba(24, 34, 31, 0.08);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(24, 34, 31, 0.06);
}

.product-visual {
  position: relative;
  height: 128px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)),
    var(--texture);
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  width: 64%;
  height: 42px;
  left: 18%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-14deg);
}

.product-visual::before {
  top: 32px;
}

.product-visual::after {
  top: 56px;
  left: 23%;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  background: #eaf5ef;
  border-radius: 999px;
}

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

.product-price {
  margin: auto 0 18px;
  font-size: 28px;
  font-weight: 800;
}

.product-price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.process-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-item span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 800;
  background: var(--brand);
  border-radius: 50%;
}

.process-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.process-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.order-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  gap: 24px;
  align-items: start;
  padding: clamp(54px, 7vw, 86px) 0;
}

.order-main {
  min-width: 0;
}

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

.calculator,
.cut-list,
.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calculator {
  padding: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #f9fbf7;
  border: 1px solid #d8e0da;
  border-radius: var(--radius);
  outline: none;
}

.field textarea {
  min-height: 82px;
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29, 107, 85, 0.12);
}

.input-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  overflow: hidden;
  background: #f9fbf7;
  border: 1px solid #d8e0da;
  border-radius: var(--radius);
}

.input-unit input {
  border: 0;
  background: transparent;
}

.input-unit span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.span-2,
.span-full {
  grid-column: 1 / -1;
}

.option-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.option-panel legend {
  padding: 0 6px;
}

.check-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 88px;
  padding: 12px;
  background: #f8faf7;
  border: 1px solid #dde5df;
  border-radius: var(--radius);
  cursor: pointer;
}

.check-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.line-preview,
.payment-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.line-preview div,
.payment-panel div {
  padding: 16px;
  background: #f8fbf7;
}

.line-preview small,
.payment-panel small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.line-preview strong,
.payment-panel strong {
  font-size: 20px;
}

.cut-list {
  margin-top: 24px;
  padding: 20px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.remove-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--danger);
  background: #fff2ed;
  border: 1px solid #f1cfbf;
  border-radius: var(--radius);
  cursor: pointer;
}

.summary {
  position: sticky;
  top: 92px;
}

.summary-card {
  padding: 20px;
}

.summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: #eaf5ef;
  border-radius: 999px;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.totals dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.totals dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.totals .grand {
  align-items: baseline;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.totals .grand dt {
  color: var(--ink);
  font-size: 17px;
}

.totals .grand dd {
  color: var(--brand-strong);
  font-size: 28px;
}

.checkout {
  grid-template-columns: 1fr;
}

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

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

.payment-choice label,
.method-choice label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
  font-weight: 800;
  background: #f8faf7;
  border: 1px solid #d8e0da;
  border-radius: var(--radius);
  cursor: pointer;
}

.method-choice label {
  align-items: flex-start;
  min-height: 82px;
  padding: 12px;
}

.method-choice strong,
.method-choice small {
  display: block;
}

.method-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.payment-choice input,
.method-choice input {
  accent-color: var(--brand);
}

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

.payment-status {
  margin-top: 14px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  background: var(--accent-soft);
  border: 1px solid #f0dca8;
  border-radius: var(--radius);
}

.receipt {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  background: #eef8f2;
  border: 1px solid #cae7d5;
  border-radius: var(--radius);
}

.receipt[hidden] {
  display: none;
}

.receipt strong {
  font-size: 22px;
}

.receipt p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--ink);
}

.footer div {
  display: grid;
  gap: 4px;
}

.footer span {
  color: rgba(255, 255, 255, 0.7);
}

.footer a {
  color: #f2c96b;
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    min-height: 760px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(16, 28, 24, 0.9) 0%, rgba(16, 28, 24, 0.72) 70%, rgba(16, 28, 24, 0.34) 100%),
      linear-gradient(0deg, rgba(16, 28, 24, 0.32), rgba(16, 28, 24, 0.32));
  }

  .catalogue-grid,
  .process,
  .order-shell {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 76px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 182px;
    height: 51px;
  }

  .topbar-cta {
    min-width: 48px;
    padding: 0 12px;
  }

  .topbar-cta .icon + * {
    display: none;
  }

  .hero {
    min-height: 730px;
    padding: 44px 18px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-metrics,
  .trust-band,
  .calculator,
  .option-panel,
  .line-preview,
  .payment-choice,
  .method-choice,
  .payment-panel {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .section,
  .order-shell {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 46px 0;
  }

  .order-shell {
    padding: 46px 0;
  }

  .section-head.compact {
    align-items: stretch;
  }

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