:root { --paper:#f6f1e7; --ink:#2a2118; --muted:#7a6a55; --line:#d8cdb9; --accent:#8a5a1c; --card:#fffdf8; --ok:#2f6b3a; --bad:#9b2c2c; }
* { box-sizing: border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font: 17px/1.55 "Baskerville","Iowan Old Style",Georgia,serif; }
main { max-width: 1040px; margin: 0 auto; padding: 0 20px 80px; }
header.top { display:flex; justify-content:space-between; align-items:center; padding:18px 0; font-size:14px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); }
h1 { font-family:"Didot","Bodoni 72",Baskerville,serif; font-weight:400; font-size:clamp(38px,6vw,64px); line-height:1.05; margin:.3em 0 .2em; }
h2 { font-weight:400; font-size:28px; margin:1.6em 0 .4em; }
.lede { font-size:21px; color:var(--muted); max-width:640px; }
.hero { display:grid; grid-template-columns: 1.1fr 0.9fr; gap:40px; align-items:center; padding-top:10px; }
.hero img { width:100%; height:auto; border:1px solid var(--line); box-shadow:0 10px 30px rgba(40,25,10,.18); background:#fff; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:22px; margin-top:22px; }
label { display:block; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:14px 0 6px; }
input, textarea { width:100%; font:inherit; padding:12px 14px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); }
textarea { min-height:70px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.row > * { flex:1; min-width:140px; }
button { font:inherit; font-size:17px; padding:12px 22px; border-radius:8px; border:1px solid var(--accent); background:var(--accent); color:#fff; cursor:pointer; }
button.ghost { background:transparent; color:var(--accent); }
button:disabled { opacity:.5; cursor:default; }
.msg { margin-top:12px; } .msg.ok { color:var(--ok); } .msg.bad { color:var(--bad); }
.preview { margin-top:14px; height:150px; overflow:hidden; border:1px solid var(--line); border-radius:6px; position:relative; }
.preview img { width:100%; filter: blur(2.5px) sepia(.3); transform: translateY(-28%); }
.preview span { position:absolute; inset:auto 0 0 0; padding:8px 12px; background:linear-gradient(transparent, var(--card)); font-size:14px; color:var(--muted); }
.products { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:12px; }
@media (max-width: 600px) { .products { grid-template-columns:1fr; } }
.product { border:1.5px solid var(--line); border-radius:10px; padding:16px; cursor:pointer; }
.product.sel { border-color:var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.product b { font-size:26px; font-weight:400; display:block; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width: 700px) { .steps { grid-template-columns:1fr; } }
.steps div { border-top:1px solid var(--line); padding-top:12px; }
.small { font-size:14px; color:var(--muted); }
.hidden { display:none !important; }
.badge { display:inline-block; font-size:12px; letter-spacing:.1em; text-transform:uppercase; padding:3px 8px; border-radius:20px; border:1px solid var(--line); color:var(--muted); }
footer { margin-top:60px; border-top:1px solid var(--line); padding-top:16px; font-size:14px; color:var(--muted); }
a { color:var(--accent); }

.landmaps { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:16px; margin-top:8px; }
.landmaps figure { margin:0; }
.landmaps img { width:100%; aspect-ratio:1; object-fit:cover; border:1px solid var(--line); border-radius:6px; background:#fff; }
.landmaps figcaption { font-size:14px; color:var(--muted); margin-top:6px; }

/* address box: stacks on phones */
.addrrow { display:flex; gap:10px; }
.addrrow input { flex:1; min-width:0; }
.addrrow button { flex:0 0 auto; }
@media (max-width: 600px) { .addrrow { flex-direction:column; } .addrrow button { width:100%; } }
.examples { margin-top:8px; }
/* preview */
.erastrip { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 14px; }
.erastrip span { font-size:14px; padding:3px 10px; border-radius:20px; border:1px solid var(--line); }
.erastrip span.on { border-color:var(--accent); color:var(--ink); }
.erastrip span.locked { color:var(--muted); opacity:.7; }
.erastrip span.locked::before { content:"🔒 "; font-size:11px; }
.tile { position:relative; aspect-ratio:1; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:linear-gradient(110deg, var(--card) 30%, var(--line) 50%, var(--card) 70%); background-size:200% 100%; animation:shimmer 1.4s linear infinite; }
.tile img { width:100%; height:100%; object-fit:cover; display:block; opacity:0; transition:opacity .4s; border:0; border-radius:0; }
.tile.ready { animation:none; background:#fff; } .tile.ready img { opacity:1; }
.tile .wait, .tile .fail { position:absolute; inset:auto 0 0 0; padding:10px 12px; font-size:14px; color:var(--muted); }
.tile .fail { display:none; } .tile.failed { animation:none; } .tile.failed .fail { display:block; } .tile.ready .wait, .tile.failed .wait { display:none; }
@keyframes shimmer { to { background-position:-200% 0; } }
@media (prefers-reduced-motion: reduce) { .tile { animation:none; } }
.landmaps img { border:0; }
.compare { margin:4px 0 18px; }
.cmp { position:relative; width:100%; max-width:560px; aspect-ratio:1; border-radius:8px; overflow:hidden; border:1px solid var(--line); background:linear-gradient(110deg, var(--card) 30%, var(--line) 50%, var(--card) 70%); background-size:200% 100%; animation:shimmer 1.4s linear infinite; }
.cmp img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cmpTop { position:absolute; inset:0; }
.cmp input[type=range] { position:absolute; left:0; right:0; bottom:10px; width:90%; margin:0 5%; padding:0; border:0; background:transparent; accent-color:var(--accent); }
.cmpL, .cmpR { position:absolute; top:10px; font-size:13px; padding:2px 8px; border-radius:12px; background:rgba(0,0,0,.6); color:#fff; }
.cmpL { left:10px; } .cmpR { right:10px; }
.sharerow { margin-top:10px; } .sharerow > * { flex:0 0 auto; min-width:0; }
.soon { margin-top:14px; padding:14px 16px; border:1px dashed var(--line); border-radius:8px; }
.product input { position:absolute; opacity:0; pointer-events:none; }
.product { position:relative; display:block; text-transform:none; letter-spacing:0; font-size:16px; color:var(--ink); margin:0; }
.product:focus-within { outline:2px solid var(--accent); outline-offset:2px; }

/* address suggestions */
.combo { position:relative; flex:1; min-width:0; }
.combo input { width:100%; }
.sugs { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:20; margin:0; padding:4px 0; list-style:none; background:var(--card); border:1px solid var(--line); border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.sugs li { padding:11px 14px; cursor:pointer; font-size:16px; line-height:1.3; min-height:44px; }
.sugs li.on, .sugs li[data-i]:hover { background:color-mix(in srgb, var(--accent) 18%, transparent); }
.sugs li.attr { cursor:default; font-size:11px; color:var(--muted); min-height:0; padding:4px 14px 6px; }
.sugs li.gattr { font-family:Roboto,Arial,sans-serif; font-weight:400; font-size:12px; color:#5E5E5E; text-align:right; }
