:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #f7f5ef;
  --card: #ffffff;
  --yellow: #ffda1a;
  --blue: #1246a3;
  --green: #087a55;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.45; }
button, input, select, textarea { font: inherit; }
.topbar { min-height: 72px; padding: 14px max(20px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(17, 24, 39, .1); background: rgba(247,245,239,.92); position: sticky; top: 0; z-index: 4; backdrop-filter: blur(16px); }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.25rem; letter-spacing: -.03em; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--blue); font-size: .8rem; box-shadow: inset 0 0 0 1px rgba(18,70,163,.14); }
.demo-chip { color: #6b5800; background: #fff3a9; border: 1px solid #ead36a; border-radius: 999px; padding: 6px 10px; font-size: .77rem; font-weight: 750; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 80px; }
.hero { max-width: 760px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); text-transform: uppercase; font-size: .78rem; font-weight: 850; letter-spacing: .09em; }
h1 { margin: 0; max-width: 680px; font-size: clamp(2.55rem, 7vw, 5.8rem); line-height: .94; letter-spacing: -.065em; }
.hero-copy { max-width: 650px; color: #475467; font-size: clamp(1rem, 2vw, 1.2rem); margin: 24px 0 0; }
.planner { padding: clamp(20px, 4vw, 38px); border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.82); box-shadow: 0 20px 55px rgba(18, 32, 58, .07); display: grid; gap: 22px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-grid.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: grid; gap: 7px; font-weight: 720; }
label span { font-size: .9rem; }
label i { color: var(--muted); font-style: normal; font-weight: 500; }
small { color: var(--muted); font-weight: 450; }
input, select, textarea { width: 100%; border: 1px solid #cbd3df; border-radius: 13px; background: var(--card); color: var(--ink); padding: 13px 14px; min-height: 48px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,70,163,.12); }
details { border-top: 1px solid var(--line); padding-top: 18px; }
summary { cursor: pointer; font-weight: 780; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.checks label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: var(--card); font-size: .88rem; }
.checks input { width: 18px; min-height: auto; height: 18px; margin: 0; }
button { cursor: pointer; border: 0; font-weight: 800; }
.primary { min-height: 52px; padding: 14px 22px; border-radius: 14px; color: white; background: var(--blue); box-shadow: 0 10px 22px rgba(18,70,163,.2); }
.primary:disabled { cursor: wait; opacity: .65; }
.secondary { border: 1px solid var(--line); background: var(--card); color: var(--ink); min-height: 44px; border-radius: 12px; padding: 9px 14px; }
.results { margin-top: 54px; scroll-margin-top: 90px; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.9rem); letter-spacing: -.045em; line-height: 1.05; }
.result-summary { color: var(--muted); margin: 12px 0 22px; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 34%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 18px; overscroll-behavior-inline: contain; }
.product { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-width: 0; }
.media { aspect-ratio: 5 / 4; background: #eeebe3; position: relative; }
.media img { width: 100%; height: 100%; display: block; object-fit: contain; }
.fallback { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #6b6255; background: rgba(255,255,255,.9); padding: 7px 9px; border-radius: 9px; font-size: .75rem; }
.product-body { padding: 17px; }
.badges { display: flex; gap: 7px; flex-wrap: wrap; }
.badge { background: #f0f2f5; color: #475467; border-radius: 999px; padding: 5px 9px; font-size: .73rem; font-weight: 750; }
.badge.stock { color: var(--green); background: #e9f8f1; }
.product h3 { margin: 13px 0 8px; font-size: 1.18rem; letter-spacing: -.025em; }
.price { font-size: 1.35rem; font-weight: 900; }
.dimensions, .pickup, .article { color: var(--muted); font-size: .8rem; margin: 5px 0 0; }
.measurement { margin-top: 14px; border-left: 4px solid #d99a00; background: #fff4cc; padding: 13px 15px; border-radius: 4px 12px 12px 4px; }
.trust { margin-top: 68px; padding: 34px 0; border-top: 1px solid var(--line); max-width: 780px; }
.trust h2 { font-size: 1.5rem; }
.trust p { color: var(--muted); }
footer { border-top: 1px solid var(--line); min-height: 100px; padding: 28px max(20px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .85rem; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: inherit; }
.error { color: #9d241c; background: #fff0ee; border: 1px solid #f2b8b2; padding: 13px 15px; border-radius: 12px; }
@media (max-width: 720px) {
  main { width: min(100% - 28px, 1120px); padding-top: 42px; }
  .field-grid, .field-grid.thirds { grid-template-columns: 1fr; }
  .field-grid.thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid.thirds label:last-child { grid-column: 1 / -1; }
  .cards { grid-auto-columns: min(84vw, 330px); margin-right: -14px; }
  footer { flex-direction: column; }
}
@media (hover: hover) { .product { transition: transform .16s, box-shadow .16s; } .product:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(18,32,58,.1); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
