@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --green-950: #102b1e;
  --green-900: #173d2a;
  --green-800: #215338;
  --green-700: #2e7048;
  --green-100: #e9f3eb;
  --green-50: #f5faf6;
  --ink: #1d2a22;
  --muted: #6a786e;
  --line: #dfe7e1;
  --surface: #ffffff;
  --page: #f4f7f4;
  --danger: #a62c2c;
  --warning-bg: #fff8e8;
  --warning-line: #e8d39b;
  --radius: 18px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input, select { font: inherit; }
.site-header {
  display: flex; align-items: center; gap: 14px;
  padding: 24px max(20px, calc((100% - 1060px) / 2));
  background: var(--green-950); color: white;
}
.brand-mark {
  display: grid; place-items: center; flex: 0 0 52px; height: 52px;
  border: 1px solid #8eb79a; border-radius: 14px; color: #d8f1de;
  font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -2px;
}
.brand-copy p, .brand-copy h1 { margin: 0; }
.eyebrow { font-size: 11px; letter-spacing: 1.6px; font-weight: 700; color: #b7d7bf; }
.brand-copy h1 { margin-top: 3px; font: 800 clamp(19px, 3vw, 25px) Manrope, sans-serif; }
.subtitle { margin-top: 4px !important; color: #d0ded3; font-size: 12px; }
.container { width: min(100% - 32px, 920px); margin: 0 auto; padding: 34px 0 24px; }
.intro { padding: 0 2px 24px; }
.pill {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px;
  color: var(--green-800); background: var(--green-100); font-size: 10px;
  letter-spacing: 1px; font-weight: 700;
}
.intro h2 { margin: 14px 0 8px; max-width: 650px; font: 800 clamp(26px, 5vw, 38px)/1.12 Manrope, sans-serif; letter-spacing: -1.2px; }
.intro p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.65; font-size: 15px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3.5vw, 28px); margin-bottom: 18px; box-shadow: 0 5px 20px rgba(16,43,30,.035);
}
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.step {
  display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 11px;
  background: var(--green-100); color: var(--green-800); font-size: 12px; font-weight: 800;
}
.section-heading h2 { margin: 1px 0 5px; font: 800 19px Manrope, sans-serif; letter-spacing: -.35px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 12px; color: #435248; font-weight: 700; }
.field input, .field select {
  width: 100%; min-width: 0; height: 48px; padding: 0 13px; border: 1px solid #d5dfd7;
  border-radius: 10px; background: #fff; color: var(--ink); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(46,112,72,.12); }
.field input::placeholder { color: #a0aaa3; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.input-unit { display: flex; align-items: center; border: 1px solid #d5dfd7; border-radius: 10px; overflow: hidden; background: white; }
.input-unit:focus-within { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(46,112,72,.12); }
.input-unit input { border: 0; box-shadow: none !important; border-radius: 0; }
.input-unit > span { flex: 0 0 auto; padding: 0 13px; color: var(--muted); font-size: 12px; font-weight: 700; }
.products { display: grid; gap: 13px; margin-bottom: 16px; }
.product-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fcfdfc; }
.product-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.product-number { font-size: 10px; font-weight: 800; letter-spacing: 1.1px; color: var(--green-700); }
.remove-product { border: 0; background: transparent; color: #7b8980; cursor: pointer; font-size: 24px; line-height: 1; padding: 0 4px; }
.remove-product:hover { color: var(--danger); }
.product-fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 13px; transition: transform .12s ease, background .12s ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--green-800); color: #fff; }
.button-primary:hover { background: var(--green-900); }
.button-secondary { color: var(--green-800); background: #fff; border-color: #cad9ce; }
.button-secondary:hover { background: var(--green-50); }
.button-quiet { color: var(--muted); background: transparent; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 18px; }
.actions .button-primary { min-width: 220px; }
.error-message { color: var(--danger); background: #fff0f0; border: 1px solid #f0caca; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.results { border-color: #c7ddcd; }
.step-result { background: var(--green-800); color: white; font-size: 17px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.summary-card { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 17px; background: #f6f9f6; border: 1px solid #e4ece5; border-radius: 13px; }
.summary-card > span { color: var(--muted); font-size: 12px; font-weight: 600; }
.summary-card strong { font: 800 clamp(23px, 4vw, 30px) Manrope, sans-serif; letter-spacing: -.8px; overflow-wrap: anywhere; }
.summary-card small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.summary-highlight { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.summary-highlight > span, .summary-highlight small { color: #d1e5d6; }
.table-wrap { width: 100%; overflow-x: auto; margin-bottom: 17px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; background: #f4f7f4; color: #506056; font-size: 11px; letter-spacing: .2px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
.notice { padding: 14px 15px; margin: 12px 0; border-radius: 11px; background: var(--green-50); border: 1px solid #d9e9dc; color: #385340; font-size: 12px; line-height: 1.6; }
.notice-warning { background: var(--warning-bg); border-color: var(--warning-line); color: #69552b; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.status-message { min-height: 18px; color: var(--green-800); font-size: 12px; }
.page-footer { padding: 20px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.page-footer p { margin: 5px 0; }
.page-footer strong { color: var(--green-800); letter-spacing: .5px; }
[hidden] { display: none !important; }
@media (min-width: 760px) {
  .summary-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .field-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .site-header { padding: 18px 16px; gap: 11px; }
  .brand-mark { flex-basis: 45px; height: 45px; }
  .container { width: min(100% - 24px, 920px); padding-top: 25px; }
  .field-grid, .product-fields { grid-template-columns: 1fr; }
  .product-fields { gap: 13px; }
  .actions { display: grid; grid-template-columns: 1fr auto; }
  .actions .button-primary { min-width: 0; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .panel { border-radius: 15px; }
}
@media print {
  body { background: white; }
  .site-header { background: white; color: black; padding: 10px 0; border-bottom: 2px solid #173d2a; }
  .brand-mark { color: #173d2a; border-color: #173d2a; }
  .eyebrow, .subtitle { color: #333 !important; }
  .container { width: 100%; padding: 10px 0; }
  .intro, #mix-form, .result-actions, .status-message, .page-footer { display: none !important; }
  .panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .summary-grid { grid-template-columns: repeat(2,1fr); }
  .summary-highlight { background: #eee; color: #111; }
  .summary-highlight > span, .summary-highlight small { color: #444; }
}


/* Logo oficial da Essencial Agriculture */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ajuste para celulares */
@media (max-width: 600px) {
  .brand-logo {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
}
