:root {
  color-scheme: light;
  --ink: #192722; --muted: #4c5b52; --paper: #f6f3e9; --white: #fffcf4;
  --gold: #edcb80; --line: #d5d6c8; --green: #18392f;
  font: 17px/1.52 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box }
body, h1, h2, h3, p, figure, dl, dd { margin: 0 }
body { min-width: 280px }
a { color: inherit; text-underline-offset: .21em }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #ad6825; outline-offset: 4px }
img { display: block; max-width: 100% }
.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto }
.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding-block: 20px; border-bottom: 1px solid var(--line) }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; line-height: 1.12; text-decoration: none; letter-spacing: .01em }
.brand img { width: 37px; height: 37px; border-radius: 9px }
.brand small { display: block; font-size: .62rem; letter-spacing: .15em; margin-top: .22rem }
nav, .links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px }
nav a, footer a { font-size: .92rem }
h1, h2 { font-family: "DM Serif Text", Georgia, serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance }
h1 { font-size: clamp(3.05rem, 6.4vw, 5.55rem) }
h2 { font-size: clamp(2rem, 4.1vw, 3.2rem) }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.015em }
.lead { font-size: clamp(1.09rem, 2.2vw, 1.36rem); color: var(--muted); max-width: 33em }
.note { font-size: .92rem; color: var(--muted) }
.hero { display: grid; grid-template-columns: 1.22fr .78fr; align-items: center; gap: clamp(24px, 6vw, 74px); padding-block: clamp(35px, 6vw, 82px) }
.hero .lead { margin-block: 20px 24px }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 13px 21px; border-radius: 8px; background: var(--green); color: white; font-weight: 700; text-decoration: none; text-align: center }
.button:hover { background: #285440 }
.button.light { color: #182a22; background: var(--gold) }
.button.light:hover { background: #ffdf9b }
.store-note { margin-top: 10px; font-size: .87rem; color: var(--muted) }
.app-photo { overflow: hidden; background: radial-gradient(ellipse at 55% 55%, #53624e, #213d31 65%, #1a322a); border-radius: 18px; display: grid; place-items: center; padding: 25px; min-width: 0 }
.app-photo img { width: auto; height: clamp(295px, 33vw, 405px); border: 3px solid #716b54; border-radius: 27px; box-shadow: 0 17px 40px #0c171ca8; transform: rotate(3deg) }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px,5vw,56px); padding: clamp(24px,5vw,53px); border-radius: 16px; background: var(--green); color: var(--white) }
.feature p { color: #e0e6d9; margin: 14px 0 20px; max-width: 34em }
.drawing { color: var(--gold); display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto minmax(0,1fr); gap: 6px 10px; width: min(96%,320px); justify-self: center; font: 600 .92rem/1.3 ui-monospace, monospace }
.dimension-x { text-align: center; border-bottom: 1px solid currentColor; padding-bottom: 5px }
.dimension-y { align-self: stretch; display: grid; place-items: center; writing-mode: vertical-rl; border-left: 1px solid currentColor; padding-left: 5px }
.floor { grid-row: 2; grid-column: 1; display: grid; grid-template-rows: repeat(6, 1fr); aspect-ratio: 7/6; border: 2px solid #ebd9a5; box-shadow: 0 9px 23px #071a154b }
.floor span { background-color:#bd9760; background-image: repeating-linear-gradient(0deg,transparent 0 4px,#674f302b 4px 5px,transparent 5px 10px),repeating-linear-gradient(90deg,transparent 0 calc(37% - 2px),#725f44 37%,transparent calc(37% + 1px)); border-bottom: 1px solid #715b3f }
.floor span:nth-child(2n) { background-color: #d0b27f; background-position: 0 0, 28px 0 }
.floor span:nth-child(3n) { background-color: #b58b56; background-position: 0 0, -21px 0 }
.section { padding-block: clamp(38px, 6vw, 76px) }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 23px; margin-top: 25px }
.cards article { border-top: 2px solid #9b8959; padding-top: 15px }
.cards p { margin-top: 7px; color: var(--muted) }
footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 22px; padding-block: 23px 35px; color: var(--muted); font-size: .85rem }
.intro { padding-top: clamp(34px, 5vw, 63px); max-width: 830px }
.intro h1 { max-width: 12em }
.intro .lead { margin-top: 14px }
.estimate { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 16px; margin-block: 25px 17px }
.fields, .result { padding: clamp(20px, 3vw, 35px); border-radius: 14px; min-width: 0 }
.fields { background: var(--white); border: 1px solid var(--line) }
.fields h2, .result h2 { font: 700 1.27rem/1.25 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.02em }
fieldset { border: 0; padding: 0; margin: 19px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; min-width: 0 }
label { font-size: .93rem; color: var(--muted); font-weight: 600; min-width: 0 }
label span { display: flex; align-items: center; gap: 4px; margin-top: 5px; border-radius: 6px; border: 1px solid #aab2a3; background: white; padding-right: 10px; color: var(--ink) }
label span:focus-within { outline: 2px solid #976a31; outline-offset: 2px }
label span:has(input[aria-invalid="true"]) { border-color: #a93621 }
input { min-width: 0; width: 100%; padding: 10px; color: var(--ink); background: transparent; font: inherit; font-size: 1.1rem; border: none; border-radius: 5px }
input:focus-visible { outline: 0 }
.fields .note { margin-top: 17px }
.result { background: var(--green); color: var(--white); display: flex; flex-direction: column; justify-content: center; gap: 10px }
.answer { font: 400 clamp(2.5rem,5vw,4.1rem)/1.04 "DM Serif Text",Georgia,serif; letter-spacing: -.045em; color: var(--gold); overflow-wrap: anywhere }
.result dl { width: 100%; margin-top: 7px; font-variant-numeric: tabular-nums }
.result dl div { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 8px; padding-block: 5px; border-top: 1px solid #688074; font-size: .94rem }
.result dd { font-weight: 650 }
details { margin: 16px 0 24px; max-width: 700px }
summary { color: var(--green); font-weight: 650; cursor: pointer; width: fit-content }
details p { margin-top: 9px }
video { background: var(--green); display: block; width: min(100%,290px); border-radius: 8px; margin-top: 14px; aspect-ratio: 9/16 }
.offer { padding: 25px 0 40px; border-top: 1px solid var(--line) }
.offer p { margin: 12px 0 17px; max-width: 47em }
.offer h2 { font-size: clamp(1.95rem,3.6vw,2.8rem) }
@media (max-width: 660px) {
  .wrap { width: calc(100% - 32px) }
  .top { padding-block: 13px }
  nav { gap: 12px }
  nav a { font-size: .84rem }
  .hero, .feature, .estimate, .cards { grid-template-columns: 1fr }
  .app-photo { max-height: 315px; padding: 16px }
  .app-photo img { height: 280px }
  .feature .drawing { width: min(75%,250px) }
  .cards { gap: 21px }
  .result { gap: 5px }
}
@media (max-width: 365px) {
  fieldset { column-gap: 8px }
  .fields, .result { padding: 16px }
  label { font-size: .86rem }
}
