:root {
  --ground: #EEF0F3;
  --ink: #1C1D20;
  --ink-2: #3A3D44;
  --muted: #5B5E66;
  --line: #D5D8DD;
  --line-soft: #ECEEF1;
  --card: #FFFFFF;
  --dark-card: #2A2B30;
  --dark-line: #3A3C42;
  --on-dark-muted: #C9CBD1;
  --band: #C8DCCB;
  --accent: #2F6B4F;
  --warn: #9A4A12;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { background: var(--ink); color: #fff; }
.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 500; }
.top nav a { text-decoration: none; padding: 12px 0; color: #fff; }

/* Buttons and fields */
.btn { height: 56px; display: flex; align-items: center; justify-content: center; width: 100%; border: 0; border-radius: 0; font: inherit; font-size: 17px; text-decoration: none; cursor: pointer; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-band { background: var(--band); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.field { height: 56px; width: 100%; padding: 0 16px; border: 1px solid #C9CCD2; border-radius: 0; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.field:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero { padding: 28px 0 48px; }
.hero .wrap { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 30px; line-height: 1.2; }
.lede { font-size: 17px; color: var(--ink-2); }
.check-form { display: flex; flex-direction: column; gap: 12px; position: relative; }
.check-form label { font-size: 14px; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }

.illus { position: relative; height: 300px; border-radius: 16px; overflow: hidden; background: var(--band); }
.illus svg.plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip { position: absolute; background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(28,29,32,.12); }
.chip .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.chip-dark { background: var(--ink); color: #fff; box-shadow: none; }
.doc { position: absolute; left: 16px; top: 120px; width: 150px; background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 10px 30px rgba(28,29,32,.14); display: flex; flex-direction: column; gap: 6px; }
.doc small { font-size: 10px; color: var(--muted); }
.doc strong { font-size: 12px; font-weight: 600; line-height: 1.25; }
.doc i { display: block; height: 5px; background: #E4E6EA; border-radius: 3px; }

/* Typeahead */
.suggest { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #C9CCD2; border-top: 0; position: absolute; left: 0; right: 0; top: 86px; z-index: 5; }
.suggest li button { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 15px; padding: 12px 16px; min-height: 44px; cursor: pointer; }
.suggest li.powered { padding: 8px 16px; font-size: 12px; color: var(--muted); text-align: right; border-top: 1px solid var(--line-soft); }
.suggest li button:hover, .suggest li button[aria-selected="true"] { background: #F5F6F8; }

/* Results */
.results { padding: 0 0 48px; }
.results .wrap { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border-radius: 16px; overflow: hidden; }
.card-head { padding: 18px 20px 6px; }
.card-head h2 { font-size: 22px; }
.card-head .sub { font-size: 14px; color: var(--muted); }
.rows { padding: 0 20px 8px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted); flex: 0 0 auto; }
.row .v { text-align: right; }
.src { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.flag { color: var(--warn); }
.aerial { position: relative; aspect-ratio: 1 / 1; background: #DDE1E6; }
.aerial img, .aerial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-foot { padding: 12px 20px 16px; font-size: 13px; color: var(--muted); background: #F5F6F8; }
details.more summary { cursor: pointer; padding: 13px 0; color: var(--ink); }
details.more ul { margin: 0 0 12px; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.notice { background: #fff; border-radius: 16px; padding: 20px; }
.notice h2 { font-size: 22px; margin-bottom: 8px; }
.notice ul { margin: 12px 0 0; padding-left: 18px; }
.notice button { background: none; border: 0; padding: 6px 0; font: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.cta { background: var(--ink); color: #fff; border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.cta h2 { font-size: 24px; line-height: 1.25; }
.cta p { color: var(--on-dark-muted); }
.loading { padding: 24px 20px; background: #fff; border-radius: 16px; color: var(--ink-2); }

/* Bands */
.band { background: var(--band); padding: 48px 0; }
.dark-card { background: var(--ink); color: #fff; border-radius: 16px; padding: 28px 20px 12px; }
.dark-card .big { font-size: 24px; line-height: 1.3; margin-bottom: 28px; }
.list-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--dark-line); }
.list-item svg { flex: 0 0 28px; }

.section { padding: 56px 0; }
.section h2 { font-size: 28px; line-height: 1.2; margin-bottom: 20px; }
.section-dark { background: var(--ink); color: #fff; }
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { background: var(--dark-card); border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-size: 22px; }
.step p { color: var(--on-dark-muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid #4A4C53; border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.pill-on { background: var(--band); color: var(--ink); border-color: var(--band); }

.price { font-size: 72px; line-height: 1; letter-spacing: -0.03em; }
.ticks { margin: 20px 0; }
.tick { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.tick:last-child { border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 12px; }

.faq { background: #fff; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 17px; cursor: pointer; }
.faq details p { color: var(--ink-2); padding-top: 10px; }

footer { background: var(--ink); color: var(--on-dark-muted); padding: 40px 0 48px; font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; gap: 10px; }
footer strong { color: #fff; font-size: 20px; font-weight: 500; }

/* Server-rendered pages: site, order, staff */
.devbar { background: #FFD43B; color: var(--ink); text-align: center; font-size: 13px; padding: 6px 12px; }
.page { padding: 24px 0 56px; }
.page h1 { font-size: 28px; line-height: 1.2; }
.crumb { font-size: 14px; margin: 0 0 16px; }
.stack16 { display: flex; flex-direction: column; gap: 16px; }
.small { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; background: var(--band); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 13px; margin-bottom: 8px; }
.notice.ok { background: #E3EFE6; margin-bottom: 16px; }
.row.total { font-weight: 600; }
.files { margin: 0; padding: 4px 20px 16px 38px; }
.files li { padding: 4px 0; }
.cta .pick { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); border-radius: 10px; padding: 14px; cursor: pointer; }
.cta .pick input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 22px; accent-color: var(--band); }
.cta .pick small { color: var(--on-dark-muted); }
.orderform { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.orderform fieldset { border: 0; background: var(--card); border-radius: 16px; padding: 18px 20px 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.orderform legend { float: left; width: 100%; font-size: 20px; margin-bottom: 6px; }
.orderform label { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.field.area { height: 120px; padding: 12px 16px; resize: vertical; }
.field.file { height: auto; padding: 12px 16px; }
select.field { appearance: auto; }
.err { color: #A3261C; font-size: 13px; }
.tablewrap { overflow-x: auto; background: var(--card); border-radius: 16px; }
table.admin { border-collapse: collapse; width: 100%; font-size: 14px; }
table.admin th, table.admin td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.page .card { margin-bottom: 16px; }
.row .v { overflow-wrap: anywhere; }
.orderform { margin-top: 0; }

/* One-tap ordering: floating bar, add-on, fold, payment */
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
.paybar-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.paybar small { display: block; font-size: 12px; color: var(--muted); }
.paybar b { font-size: 22px; font-weight: 500; }
.paybar .btn { width: auto; flex: 1 1 auto; max-width: 260px; height: 52px; padding: 0 18px; }
body:has(.paybar) main, body:has(.paybar) .results { padding-bottom: 96px; }
.linkbtn { background: none; border: 0; padding: 10px 0; font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; color: inherit; text-align: left; }
.linkbtn.light { color: var(--on-dark-muted); }
.addonwrap { background: var(--card); border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.addon { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.addon input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 22px; accent-color: var(--accent); }
.addon small { color: var(--muted); }
.addonwrap label[for="q_drawingsScope"], .addonwrap #q_drawingsScope { display: none; }
.addonwrap:has(.addon input:checked) label[for="q_drawingsScope"], .addonwrap:has(.addon input:checked) #q_drawingsScope { display: block; }
details.fold { background: var(--card); border-radius: 16px; padding: 0 20px; }
details.fold summary { padding: 16px 0; cursor: pointer; font-size: 17px; }
.foldbody { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; }
.paysum { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; }
.paysum small { color: var(--muted); }
.paysum-total { font-size: 24px; text-align: right; }
.paysum-total small { display: block; font-size: 12px; }
.checkoutbox { background: var(--card); border-radius: 16px; min-height: 420px; padding: 8px 0; overflow: hidden; }

/* ---------- Larger screens ---------- */
.price-note { color: var(--ink-2); margin-top: 16px; max-width: 420px; }
.site-grid { display: flex; flex-direction: column; gap: 16px; }
.site-grid > * { margin: 0; }

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .wrap { max-width: 1120px; }
  .page .wrap.narrow { max-width: 760px; }
  .page .wrap.wide { max-width: 1200px; }
  .top .wrap { height: 72px; }
  .hero { padding: 64px 0 88px; }
  .hero .wrap.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
  .hero-grid .illus { order: 2; height: 460px; }
  .hero-copy { display: flex; flex-direction: column; gap: 24px; }
  .hero h1 { font-size: 48px; line-height: 1.08; }
  .lede { font-size: 19px; max-width: 520px; }
  .check-form { max-width: 520px; }
  .doc { left: 32px; top: 190px; width: 190px; }
  .band { padding: 72px 0; }
  .dark-card { padding: 48px 48px 24px; }
  .dark-card .big { font-size: 32px; max-width: 860px; }
  .getlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .section { padding: 88px 0; }
  .section h2 { font-size: 38px; margin-bottom: 32px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .price-grid .ticks { margin-top: 0; }
  .price { font-size: 96px; }
  .faq .wrap { max-width: 820px; }
  .results { padding-bottom: 72px; }
  .results .wrap.site-grid, .page .site-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  /* Left: lot card, then the order box right under it. Right: controls, then overlays. */
  .site-grid > .card:nth-of-type(1) { grid-column: 1; grid-row: 1; }
  .site-grid > .card:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .site-grid > .card:nth-of-type(3) { grid-column: 2; grid-row: 2 / span 2; }
  .site-grid > form.cta { grid-column: 1; grid-row: 2; position: sticky; top: 24px; }
  .site-grid > .loading, .site-grid > .notice, .site-grid > p { grid-column: 1 / -1; }
  .site-grid > .paybar { display: none; } /* the order box is always in view on wide screens */
  .paybar-in { max-width: 1120px; }
  .page .wrap.narrow .orderform fieldset, .page .wrap.narrow details.fold, .page .wrap.narrow .addonwrap { padding-left: 28px; padding-right: 28px; }
  .page h1 { font-size: 36px; }
}

@media (min-width: 1200px) {
  .hero h1 { font-size: 56px; }
}

/* Logo: lot-and-tick mark + two-weight wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; letter-spacing: -0.02em; }
.brand .mark { flex: 0 0 auto; border-radius: 7px; }
.brand .word { font-weight: 500; color: rgba(255,255,255,.62); }
.brand .word b { font-weight: 600; color: #fff; }
footer .brand { font-size: 18px; }

/* Terms and privacy */
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 20px; font-weight: 500; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal p { margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal ul { padding-left: 20px; }
.legal-links { display: flex; gap: 18px; }
.legal-links a { color: inherit; }
