:root {
  color-scheme: light;
  --ink: #14211d;
  --muted: #59645f;
  --paper: #f4f1e9;
  --white: #fff;
  --green: #1e5d48;
  --green-dark: #164737;
  --lime: #d8ef7b;
  --line: #d9ddd8;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(217,221,216,.8); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 28px; height: 28px; background: var(--green); clip-path: polygon(0 0,100% 0,100% 34%,38% 34%,38% 66%,100% 66%,100% 100%,0 100%); }
.navigation { display: flex; align-items: center; gap: 30px; }
.navigation a { color: var(--muted); font-size: .94rem; font-weight: 650; text-decoration: none; }
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--green); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 8px; padding: 11px 21px; border: 1px solid var(--green); border-radius: 5px; color: white; background: var(--green); font-weight: 750; text-decoration: none; transition: background .2s, transform .2s; }
.button:hover { background: var(--green-dark); transform: translateY(-1px); }
.button-secondary { color: var(--green); background: transparent; }
.button-secondary:hover { color: white; }
.button-small { min-height: 42px; padding: 8px 16px; }
.hero { overflow: hidden; padding: 90px 0 82px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.04em; }
h1 { max-width: 750px; margin-bottom: 24px; font-size: clamp(2.8rem, 6vw, 5.6rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { margin-bottom: 10px; font-size: 1.25rem; }
.lead { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { margin: 20px 0 0; color: var(--muted); font-size: .9rem; }
.part-card { position: relative; min-height: 420px; border-radius: 10px; background: var(--green); box-shadow: 24px 24px 0 var(--lime); }
.part-card::before { content: ""; position: absolute; inset: 17% 14%; border: 3px solid rgba(255,255,255,.76); border-radius: 48% 8% 42% 12%; transform: rotate(-9deg); }
.part-card::after { content: "DXF / PDF"; position: absolute; right: 22px; bottom: 20px; color: white; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.cutout { position: absolute; width: 82px; height: 82px; left: calc(50% - 41px); top: calc(50% - 41px); border: 3px solid var(--lime); border-radius: 50%; }
.section { padding: 92px 0; }
.section-tint { background: #f7f8f5; }
.section-dark { color: white; background: var(--ink); }
.section-intro { max-width: 680px; margin-bottom: 44px; }
.section-intro p, .muted { color: var(--muted); }
.section-dark .section-intro p, .section-dark .muted { color: #bdc8c3; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.card-number { display: inline-grid; width: 38px; height: 38px; margin-bottom: 24px; place-items: center; border-radius: 50%; color: var(--green); background: var(--lime); font-weight: 850; }
.card p { margin-bottom: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 80px; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 15px 0 15px 31px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px; border-radius: 8px; color: white; background: var(--green); }
.cta-band h2 { margin-bottom: 8px; font-size: clamp(1.8rem,3vw,2.7rem); }
.cta-band p { margin: 0; color: #dbe8e3; }
.page-hero { padding: 72px 0; background: var(--paper); }
.page-hero h1 { max-width: 850px; font-size: clamp(2.5rem,5vw,4.5rem); }
.details { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.detail { padding: 28px 0; border-top: 2px solid var(--ink); }
.detail p { color: var(--muted); }
.notice { margin-top: 34px; padding: 20px 24px; border-left: 4px solid var(--green); background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact-card { padding: 34px; background: var(--paper); }
.contact-card a { color: var(--green); font-weight: 750; }
.quote-hero { padding-bottom: 56px; }
.quote-section { background: #f7f8f5; }
.quote-grid { display: grid; grid-template-columns: minmax(300px,.82fr) minmax(400px,1.18fr); align-items: start; gap: 28px; }
.upload-card, .result-card { padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 10px 35px rgba(20,33,29,.05); }
.upload-card fieldset { display: grid; gap: 22px; margin: 0 0 26px; padding: 0; border: 0; }
.upload-card legend { margin-bottom: 22px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 750; }
.field small, .fine-print { color: var(--muted); font-size: .84rem; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b9c1bd; border-radius: 5px; color: var(--ink); background: white; font: inherit; }
.field input[type="file"] { padding: 8px; }
.field input:focus, .field select:focus { outline: 3px solid rgba(216,239,123,.8); border-color: var(--green); }
.button-wide { width: 100%; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.result-card { min-height: 420px; }
.result-placeholder { display: grid; min-height: 350px; place-items: center; align-content: center; text-align: center; }
.result-placeholder h2 { margin: 18px 0 8px; }
.result-placeholder p { max-width: 390px; margin: 0; }
.result-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: var(--green); background: var(--lime); font-size: 1.6rem; }
.price { margin: -4px 0 2px; color: var(--green); font-size: clamp(2.6rem,6vw,4.5rem); font-weight: 850; line-height: 1; letter-spacing: -.05em; }
.price span { font-size: .3em; letter-spacing: .06em; vertical-align: top; }
.price-note { margin: 10px 0 28px; color: var(--muted); }
.geometry-ack { display: flex; justify-content: space-between; gap: 15px; margin: 22px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.geometry-ack strong { color: var(--green); }
.geometry-ack span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 6px; }
.metrics div { padding: 13px 15px; border-bottom: 1px solid var(--line); }
.metrics div:nth-child(odd) { border-right: 1px solid var(--line); }
.metrics div:nth-last-child(-n+2) { border-bottom: 0; }
.metrics dt { color: var(--muted); font-size: .78rem; }
.metrics dd { margin: 2px 0 0; font-weight: 750; }
.status-banner { display: flex; gap: 18px; padding: 24px; border-radius: 7px; }
.status-banner > span { font-size: 1.8rem; font-weight: 850; }
.status-banner h2 { margin-bottom: 8px; }
.status-banner p { margin: 0; }
.status-review { background: #fff3d9; }
.status-error { border-left: 4px solid #a53b32; background: #fff0ee; }
.status-success { background: #e9f5df; }
.review-reasons { color: var(--muted); }
.form-error { color: #8f2921; font-weight: 700; }
.spinner { width: 44px; height: 44px; border: 4px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quote-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; gap: 32px; }
.upload-card, .result-card { padding: 32px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.upload-card { display: grid; gap: 25px; }
.upload-card label { display: block; margin-bottom: 7px; font-weight: 750; }
.upload-card input { width: 100%; padding: 12px; border: 1px solid #aeb7b2; border-radius: 4px; background: white; font: inherit; }
.upload-card select { width: 100%; padding: 12px; border: 1px solid #aeb7b2; border-radius: 4px; background: white; font: inherit; }
.upload-card input[type="file"] { padding: 9px; }
.upload-card small { display: block; margin-top: 6px; color: var(--muted); }
.upload-card button { justify-self: start; }
.upload-card button:disabled { cursor: wait; opacity: .65; }
.result-card h2 { font-size: 1.6rem; }
.status { margin: 20px 0; padding: 16px 18px; border-left: 4px solid var(--green); background: #edf7f2; }
.status-review { border-color: #b66a19; background: #fff5e9; }
.status ul { margin: 8px 0 0; padding-left: 20px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 25px 0 0; background: var(--line); }
.metrics div { padding: 18px; background: white; }
.metrics dt { color: var(--muted); font-size: .85rem; }
.metrics dd { margin: 3px 0 0; font-size: 1.15rem; font-weight: 750; }
.form-error { color: #9c2f24; }
.order-panel { max-width: 720px; }
.status-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.status-steps li { padding: 12px; border-top: 4px solid var(--line); color: var(--muted); }
.status-steps li.complete { border-color: var(--green); color: var(--ink); font-weight: 750; }
.account-auth { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
.dashboard-heading, .order-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.order-list { display: grid; gap: 14px; }
.order-row { padding: 24px; border: 1px solid var(--line); border-radius: 7px; }
.order-row p, .order-row h3 { margin-bottom: 4px; }
.order-row > div:nth-child(2) { display: grid; justify-items: end; gap: 6px; }
.order-status { padding: 4px 10px; border-radius: 999px; color: var(--green-dark); background: #edf7f2; font-size: .82rem; font-weight: 750; text-transform: capitalize; }
.empty-state { padding: 42px; border: 1px solid var(--line); border-radius: 7px; text-align: center; }
.admin-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); align-items: start; gap: 40px; }
.admin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.upload-card select, .upload-card textarea { width: 100%; padding: 12px; border: 1px solid #aeb7b2; border-radius: 4px; background: white; font: inherit; }
.admin-list { display: grid; gap: 16px; }
.site-footer { padding: 55px 0 30px; color: white; background: var(--ink); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: #bdc8c3; text-decoration: none; }
.copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid #34423c; color: #94a19b; font-size: .85rem; }

@media (max-width: 800px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: block; }
  .navigation { display: none; position: absolute; inset: 76px 0 auto; align-items: stretch; flex-direction: column; gap: 0; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); background: white; }
  .navigation[data-open] { display: flex; }
  .navigation a { padding: 12px; }
  .navigation .button { margin-top: 8px; color: white; }
  .hero { padding: 60px 0; }
  .hero-grid, .split, .contact-grid, .quote-grid, .account-auth { grid-template-columns: 1fr; gap: 45px; }
  .dashboard-heading, .order-row { align-items: flex-start; flex-direction: column; }
  .order-row > div:nth-child(2) { justify-items: start; }
  .hero-grid, .split, .contact-grid, .quote-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-grid, .split, .contact-grid, .quote-grid, .admin-grid { grid-template-columns: 1fr; gap: 45px; }
  .admin-fields { grid-template-columns: 1fr; }
  .part-card { min-height: 280px; margin-right: 16px; }
  .section { padding: 68px 0; }
  .cards, .details { grid-template-columns: 1fr; }
  .status-steps { grid-template-columns: 1fr 1fr; }
  .cta-band, .footer-grid { align-items: flex-start; flex-direction: column; }
  .result-card { min-height: 0; }
}

@media (max-width: 480px) {
  .upload-card, .result-card { padding: 22px; }
  .field-row, .metrics { grid-template-columns: 1fr; }
  .metrics div, .metrics div:nth-child(odd), .metrics div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics div:last-child { border-bottom: 0; }
  .geometry-ack { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .spinner { animation: none; }
}
