:root {
  --ink: #3c2b20;
  --muted: #75685c;
  --cream: #f8f5ee;
  --gold: #d4a017;
  --green: #3b6b35;
  --line: #e9dfd1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Tahoma, Arial, sans-serif; line-height: 1.7; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { width: 100%; max-width: 1150px; margin-inline: auto; padding-inline: 18px; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.brand { display: block; width: 150px; flex: none; text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; }
.topbar small { display: none; color: var(--muted); font-size: .875rem; text-align: left; }
.hero { display: flex; flex-direction: column; }
.hero-copy { width: 100%; padding-block: 34px 30px; }
.eyebrow { color: #8a6a20; font-weight: 700; letter-spacing: .02em; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 2.65rem); line-height: 1.23; letter-spacing: -.045em; margin: 14px 0; }
.hero p { font-size: 1rem; max-width: 540px; color: var(--muted); margin: 0 0 24px; }
.search { max-width: 500px; }
.search label { font-weight: 700; display: block; margin-bottom: 10px; }
.field { display: flex; border: 1px solid #cdbda8; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px #49351e0b; }
.field:focus-within { outline: 3px solid #d4a01766; }
.field input { width: 100%; min-width: 0; padding: 16px 18px; border: 0; outline: 0; background: transparent; color: var(--ink); direction: ltr; text-align: left; font-size: 1rem; }
.field input::placeholder { color: #9c9185; }
.suggestion-list { margin-top: 6px; padding: 6px; background: #fffdf9; border: 1px solid #ddccb7; border-radius: 13px; box-shadow: 0 12px 28px #49351e19; }
.suggestion-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: right; }
.suggestion-list button:hover, .suggestion-list button[aria-selected="true"], .suggestion-list button:focus-visible { background: #f6ecdc; outline: none; }
.suggestion-list bdi { color: var(--muted); direction: ltr; white-space: nowrap; font-weight: 700; }
.primary { display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 13px; padding: 16px 24px; font-weight: 700; text-align: center; transition: background .2s, transform .2s; }
.primary:hover { background: #654527; transform: translateY(-2px); }
.search .primary { width: 100%; margin-top: 12px; }
.hint { font-size: .875rem; color: var(--muted); margin-top: 12px; }
.error { color: #a43c2a; min-height: 1.7em; font-size: .9rem; margin: 8px 0; }
.batch-picker { max-width: 500px; padding-top: 5px; }
.batch-picker > span { display: block; color: var(--muted); font-size: .875rem; margin-bottom: 9px; }
.batch-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.batch-options button { min-width: 0; min-height: 54px; padding: 9px; color: var(--ink); background: #efe6d8; border: 1px solid #ddccb7; border-radius: 12px; font-size: .875rem; font-weight: 700; }
.batch-options button:hover, .batch-options button:focus-visible { outline: 2px solid var(--gold); background: #f7ecd9; }
.batch-options bdi { display: block; font-size: .8rem; font-weight: 400; }
.hero-art { position: relative; width: calc(100% + 36px); height: 260px; margin-inline: -18px; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 67%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--cream), transparent 35%); }
.result { padding-block: 34px 65px; }
.hidden { display: none !important; }
.result-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 25px; }
.result-brand { width: 90px; }
.back { border: 0; background: transparent; color: var(--muted); padding: 0; font-weight: 700; }
.result h2 { font-size: clamp(1.8rem, 6vw, 2.25rem); line-height: 1.3; margin: 12px 0 4px; }
.batch { font-size: 1.1rem; direction: ltr; display: inline-block; font-weight: 800; letter-spacing: .03em; }
.notice { background: #fff7e2; border: 1px solid #e9d3a0; color: #664718; border-radius: 14px; padding: 14px 18px; margin: 20px 0 26px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.card { min-width: 0; background: #fffdf9; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 12px 30px #5137160a; }
.card h3 { font-size: 1.28rem; margin: 0 0 18px; }
.card-intro { color: var(--muted); margin-top: -8px; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.metrics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.metric { background: #f6f0e6; border: 1px solid #e9dfd1; border-radius: 15px; padding: 16px; }
.metric-compared { border-color: #cadcc4; background: #f5f9f1; }
.metric-over { border-color: #e7b6aa; background: #fff3ef; }
.metric-caution { border-color: #ead6aa; background: #fff9eb; }
.metric h4 { margin: 0; font-size: 1rem; }
.metric-reading { display: flex; align-items: baseline; gap: 5px; margin-top: 3px; direction: ltr; justify-content: flex-end; }
.metric-reading strong { font-size: 1.65rem; line-height: 1.25; }
.metric-reading span { color: var(--muted); font-size: .88rem; }
.metric-reference { margin: 7px 0 5px; font-size: .86rem; font-weight: 700; }
.metric-status { display: inline-block; color: #255821; background: #e2efd9; border-radius: 999px; font-size: .79rem; font-weight: 700; padding: 3px 10px; }
.metric-caution .metric-status { color: #795012; background: #f9e8be; }
.metric-over .metric-status { color: #8c2d1d; background: #f9dcd4; }
.metric-info .metric-status { color: #5d5348; background: #e8dfd2; }
.metric-explanation { margin: 9px 0 0; font-size: .84rem; line-height: 1.65; color: #635748; }
.standard-note { font-size: .85rem; color: #5a4e43; background: #f8f4ed; border-inline-start: 3px solid var(--gold); padding: 12px; margin: 16px 0 0; border-radius: 6px; }
.card-intro a { text-underline-offset: 3px; }
.report-card p { margin: 0; color: var(--muted); }
.report-link { display: block; text-decoration: none; margin-top: 18px; width: 100%; }
.report-link[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.footer { border-top: 1px solid var(--line); padding-block: 26px; color: var(--muted); font-size: .9rem; }
.footer .shell { display: grid; gap: 8px; }
.whats { color: var(--green); text-decoration: none; font-weight: 700; }

@media (min-width: 480px) {
  .shell { padding-inline: 24px; }
  .topbar small { display: block; }
  .hero-art { width: calc(100% + 48px); margin-inline: -24px; height: 330px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 781px) {
  .topbar { min-height: 120px; }
  .brand { width: 180px; }
  .result-brand { width: 125px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 120px); align-items: center; gap: 6%; }
  .hero-copy { padding-block: 55px; }
  .hero h1 { font-size: clamp(2.65rem, 5vw, 4.5rem); line-height: 1.18; margin: 20px 0; }
  .hero p { font-size: 1.08rem; margin-bottom: 30px; }
  .hero-art { align-self: stretch; width: 100%; height: auto; min-height: 540px; margin: 0; border-radius: 0 0 28px 28px; }
  .hero-art img { object-position: center; }
  .hero-art::after { background: linear-gradient(90deg, transparent 60%, var(--cream)); }
  .result { padding-block: 70px 100px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-card { grid-column: 1 / -1; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 26px; }
  .report-card { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .report-link { width: auto; margin-top: 0; white-space: nowrap; }
  .footer .shell { display: flex; justify-content: space-between; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
