/* Homepage only. Order form first; everything below answers questions a buyer has before paying. */
[hidden] { display: none !important; }
:root { --room: #E3E5E1; }

.promo { background: var(--ink); color: var(--paper); font-size: .88rem; }
.promo .wrap { padding-block: .5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .15rem 1.6rem; text-align: center; }
@media (max-width: 600px) { .promo span:not(:first-child) { display: none; } }
.site-head .cta { background: var(--door); color: #fff; padding: .55rem 1rem; border-radius: 99px; }
.site-head .cta:hover { text-decoration: none; background: #6E231B; }
@media (max-width: 760px) { .site-head nav a:not(.cta) { display: none; } }
.site-head .cta { white-space: nowrap; }
@media (max-width: 420px) { .brand span { display: none; } }

/* Hero: headline, comparison slider, pitch and room on the left; the full order form on the right */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.25rem, 3vw, 2.75rem); align-items: start; }
main > section.hero { padding-block: clamp(1.5rem, 3.5vw, 2.75rem); background: var(--paper) var(--clapboard); }
.hero-left { display: grid; gap: 1.25rem; min-width: 0; }
.hero-copy { display: grid; gap: .8rem; }
.hero-copy h1, .hero-copy p { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .95rem; }
.checks li { display: flex; gap: .6rem; align-items: baseline; }
.checks li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--door); transform: translateY(-2px); flex: none; }
/* On phones the form comes right after the headline and slider, before the room picture. */
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-left { display: contents; } .hero-copy { order: 1; } .order { order: 2; } .room { order: 3; } }

/* Room photo: the real watercolor, framed and hung in an entryway */
.room { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--room); border-radius: var(--radius); }
.room img { width: 100%; height: 100%; object-fit: cover; }

/* Order form */
.order { border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--haint); padding: clamp(1rem, 2.4vw, 1.5rem); display: grid; gap: 1rem; min-width: 0; background: #fff; position: sticky; top: 1rem; }
.order h2 { font-size: 1.6rem; margin: 0; }
.order fieldset { display: grid; gap: .1rem; }
.drop { position: relative; display: flex; align-items: center; gap: .9rem; border: 1.5px dashed var(--muted); border-radius: var(--radius); padding: .8rem; cursor: pointer; }
.drop:hover, .drop:focus-within { border-color: var(--door); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .thumb { width: 3.6rem; height: 3.6rem; flex: none; background: var(--wall) center / cover no-repeat; display: grid; place-items: center; font-size: 1.5rem; color: var(--muted); }
.drop b { display: block; overflow-wrap: anywhere; }
.drop small { color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: .4rem; }
.seg label { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: .55rem .6rem; cursor: pointer; display: grid; gap: .05rem; font-size: .92rem; line-height: 1.3; min-width: 0; }
.seg label > span { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--wall); box-shadow: inset 0 0 0 1px var(--ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--door); outline-offset: 2px; }
.seg i { width: .8rem; height: .8rem; display: inline-block; vertical-align: -1px; margin-right: .3rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
/* Size and frame: four cards, two sizes by two tiers */
.seg.choices label { padding: .6rem .7rem; grid-template-columns: 1fr auto; column-gap: .5rem; align-content: start; }
.seg.choices label > b { font-weight: 500; grid-column: 1; }
.seg.choices label > span { grid-column: 1; }
.seg.choices label > em { grid-column: 2; grid-row: 1; font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }
.seg.choices label.prem > b::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .35rem; vertical-align: -1px; background: #3B2A1E; box-shadow: inset 0 0 0 2px #3B2A1E, inset 0 0 0 3px #FBFBF8; }
.pop { justify-self: start; grid-column: 1 / -1; margin-top: .25rem; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--door); color: #fff; padding: .1rem .45rem; border-radius: 99px; }
.ptable .pop { display: inline-block; vertical-align: 2px; margin: 0 0 0 .3rem; }
/* Finish cards: name, price, then what you get */
#tier-choices label { grid-template-columns: 1fr; }
#tier-choices label > em { grid-column: 1; grid-row: auto; font-size: 1.05rem; }
#frame-choices { margin-top: .4rem; }
.hero-copy h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.12; }
.hero-copy h1 span { display: block; color: var(--door); }
/* Standard vs premium, side by side under the frame picker */
.vs { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: .5rem; line-height: 1.3; }
.vs th, .vs td { text-align: left; padding: .3rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.vs thead th { font-weight: 600; font-size: .8rem; }
.vs thead th:last-child, .vs td:last-child { background: #F6F1EA; }
.vs tbody th { font-weight: 400; color: var(--muted); white-space: nowrap; }
/* Caption preview under the field, set like the print */
.caption-preview { margin: .45rem 0 0; text-align: center; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; padding: .55rem .5rem; background: #FBFBF8; border: 1px solid var(--line); overflow-wrap: anywhere; }
/* Digital file add-on */
.addon { display: flex; gap: .6rem; align-items: flex-start; border: 1px dashed var(--line); border-radius: var(--radius); padding: .6rem .7rem; margin-top: .6rem; cursor: pointer; font-size: .92rem; }
.addon input { margin-top: .2rem; width: auto; }
.addon b { font-weight: 500; }
.addon em { font-style: normal; font-weight: 600; }
.addon small { display: block; color: var(--muted); font-size: .82rem; }
.addon:has(input:checked) { border-style: solid; border-color: var(--ink); background: var(--wall); }
/* Watercolor / pen & ink toggle above the hero slider */
.style-toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 99px; padding: 3px; gap: 3px; justify-self: start; background: #fff; }
.style-toggle button { font: inherit; font-size: .92rem; border: 0; background: none; padding: .35rem .95rem; border-radius: 99px; cursor: pointer; color: var(--ink); }
.style-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.premium-note { display: flex; gap: .6rem; align-items: center; margin: .2rem 0 0; font-size: .9rem; }
.premium-note i { flex: none; width: 2rem; height: 2.4rem; background: #3B2A1E; box-shadow: inset 0 0 0 4px #3B2A1E, inset 0 0 0 9px #FBFBF8, inset 0 0 0 10px rgba(0,0,0,.1); }
.delivery { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pair label { display: grid; gap: .1rem; min-width: 0; }
@media (max-width: 420px) { .pair { grid-template-columns: 1fr; } }
/* Shipping address in three tight rows: recipient / street + apt / city + state + ZIP */
.addr { display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem 6.2rem; gap: .4rem; }
.addr #ship_name { grid-column: 1 / -1; }
.addr #ship_line1 { grid-column: 1 / 3; }
.order details { font-size: .92rem; }
.order details summary { cursor: pointer; color: var(--door); font-weight: 500; }
.order details textarea { margin-top: .5rem; }
.tot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: .8rem; }
.tot span { color: var(--muted); font-size: .95rem; }
.tot strong { font: 400 1.7rem/1 var(--display); font-variant-numeric: tabular-nums; }
.order .btn { width: 100%; }
.order .fine { font-size: .82rem; color: var(--muted); text-align: center; margin: -.4rem 0 0; }
@media (max-width: 900px) { .order { position: static; } }

.band { background: var(--wall) var(--clapboard); }
.head { display: grid; gap: .5rem; max-width: 40rem; margin-bottom: 1.5rem; }
.head h2, .head p { margin: 0; }
.head p:not(.eyebrow) { color: var(--muted); }

/* Before / after */
.ba { position: relative; aspect-ratio: 400 / 300; background: #fff; overflow: hidden; user-select: none; box-shadow: 0 0 0 1px var(--line); border-radius: var(--radius); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba .bar { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.ba .bar::after { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--door); font-size: .8rem; letter-spacing: .1em; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.ba.sweeping .after { transition: clip-path .8s ease-in-out; }
.ba.sweeping .bar { transition: left .8s ease-in-out; }
.drag-hint { position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); margin: 0; background: rgba(34,48,47,.88); color: #fff; font-size: .9rem; padding: .4rem .9rem; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.ba .lab { position: absolute; top: .7rem; font: 400 .85rem/1.2 var(--display); background: rgba(251,251,248,.94); padding: .3rem .65rem; border-radius: 99px; }
.ba .lab.l { left: .7rem; } .ba .lab.r { right: .7rem; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lower sections: tight, mobile first */
main > section.tight { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.tight h2 { margin: 0 0 .9rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* Steps: plaque beside the text on phones, three columns on wide screens */
.steps { display: grid; gap: .9rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: start; counter-increment: s; min-width: 0; }
/* Step numbers as cast house-number plaques */
.steps li::before { content: "No. " counter(s); grid-row: span 2; font: 900 1.05rem/1 var(--display); color: var(--paper); background: var(--ink); padding: .4rem .55rem .35rem; border-radius: 5px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); margin: 3px; white-space: nowrap; min-width: 3.2rem; text-align: center; box-sizing: border-box; }
.steps h3, .steps p { margin: 0; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

/* Styles */
.styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.styles figure { margin: 0; display: grid; gap: .9rem; min-width: 0; }
.styles .sample { background: var(--room); padding: 8% 16%; }
.styles figcaption h3, .styles figcaption p { margin: 0 0 .2rem; }
.styles figcaption p { color: var(--muted); }
@media (max-width: 640px) { .styles { grid-template-columns: 1fr; } }

/* Sizes and prices: table first, the to-scale frames beside it on wide screens */
.sizes { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .sizes { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem; align-items: center; } }
.scale { background: var(--room); padding: 1.2rem .8rem .9rem; display: flex; align-items: flex-end; justify-content: center; gap: 5%; border-radius: var(--radius); }
.scale figure { margin: 0; display: grid; gap: .4rem; justify-items: center; }
.scale .frame { padding: 5%; }
.scale .mat { padding: 7%; }
.scale figcaption { font: 400 .82rem/1.2 var(--display); font-variant-numeric: tabular-nums; text-align: center; }
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.ptable th { font: 400 .95rem/1.2 var(--display); color: var(--muted); }
.ptable td:last-child, .ptable th:last-child { text-align: right; }
.ptable td small { display: block; color: var(--muted); font-size: .82rem; }
.ptable td:first-child small { font-size: .85rem; }
.ptable th:not(:first-child), .ptable td:not(:first-child) { text-align: right; padding-left: .6rem; }
.ptable th { font-size: .85rem; }
.tiers { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
.tiers b { color: var(--ink); font-weight: 500; }
.scale figcaption small { font: .78rem/1.2 var(--body, inherit); color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font-size: .92rem; }
.swatches span { display: inline-flex; align-items: center; gap: .45rem; }
.swatches i { width: 1.1rem; height: 1.1rem; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }

/* FAQ, with the promise beside it on wide screens */
.faq-wrap { display: grid; gap: .4rem; }
@media (min-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2.5rem; align-items: start; } }
.promise p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: .75rem 0; font: 400 1.02rem/1.35 var(--display); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1rem; margin: 0; color: var(--muted); max-width: 40rem; }

.final h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.final .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.final h2 { margin: 0; }

footer.site-foot { background: var(--ink); border-top: 0; color: var(--paper); }
footer.site-foot .wrap { padding-block: 1.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; color: #C9D3D1; }
footer.site-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
footer.site-foot a { color: var(--paper); text-decoration: none; }

/* Real renders already sit on white paper, so the mat only needs a thin border. */
.styles .mat, .scale .mat { padding: 4%; }
.scale .frame.matted { padding: 7.5%; }
.scale .matted .mat { padding: 13%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), inset 1px 2px 4px rgba(0,0,0,.3); }
.scale .matted .mat img { box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0,0,0,.16); }
.mat img { width: 100%; height: auto; }
