/* Shared layout for the Forge Studio trade demos. Colors and fonts live in theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body-font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--head-font); letter-spacing: -.025em; line-height: 1.05; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section.alt { background: var(--bg-2); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.section h2 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; }
.lede { margin-top: 14px; max-width: 620px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); }
.head { margin-bottom: clamp(30px, 5vw, 48px); }
.head.center { text-align: center; }
.head.center .lede { margin-inline: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 17px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .16s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--glow); }
.btn:focus-visible, .chip:focus-within, summary:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn.block { width: 100%; }

/* header */
.demo-note { position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding: 6px 12px; background: #000; color: #fff; font-size: 12.5px; font-weight: 600; text-align: center; }
.demo-note a { color: var(--accent-bright); font-weight: 800; }
.site-head { position: fixed; z-index: 50; top: 30px; left: 0; right: 0; color: #fff; transition: background .25s, color .25s, box-shadow .25s; }
.site-head .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.site-head.solid { background: var(--head-bg); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { margin-right: auto; font-family: var(--head-font); font-weight: 900; font-size: clamp(16px, 4.4vw, 19px); letter-spacing: .03em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand i { font-style: normal; color: var(--accent-bright); }
.site-head.solid .brand i { color: var(--accent-text); }
.site-head nav { display: none; gap: 24px; font-weight: 600; font-size: 15px; }
.site-head nav a { text-decoration: none; opacity: .9; }
.site-head nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.head-cta { min-height: 42px; padding: 9px 16px; font-size: 15px; white-space: nowrap; }
@media (min-width: 900px) { .site-head nav { display: flex; } }

/* scroll story */
.story { position: relative; height: var(--story-height, 480svh); background: #000; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; }
.world { position: absolute; left: 0; top: 0; width: 1008px; height: 1792px; transform-origin: 0 0; will-change: transform; }
.world .im, .world .w { position: absolute; left: 0; top: 0; width: 1008px; height: 1792px; }
.world .im { background-size: 100% 100%; }
.stage canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.66), rgba(0,0,0,.2) 34%, transparent 52%), linear-gradient(0deg, rgba(0,0,0,.5), transparent 26%); }
.flash { position: absolute; inset: 0; background: #dfe8ff; opacity: 0; pointer-events: none; }
.line { position: absolute; left: max(20px, calc((100% - 1120px) / 2)); right: 20px; top: clamp(112px, 17vh, 170px); font-family: var(--head-font); font-weight: 900; font-size: clamp(50px, 10.4vw, 108px); line-height: .96; letter-spacing: -.035em; opacity: 0; text-shadow: 0 6px 34px rgba(0,0,0,.55); pointer-events: none; }
.line u { display: block; text-decoration: none; color: var(--accent-bright); }
.line small { display: block; margin-top: 16px; max-width: 520px; font-family: var(--body-font); font-weight: 600; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.35; letter-spacing: 0; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.hint { position: absolute; left: 0; right: 0; bottom: 92px; text-align: center; font-weight: 700; font-size: 15px; text-shadow: 0 2px 10px rgba(0,0,0,.7); pointer-events: none; }
.hint i { display: block; width: 2px; height: 30px; margin: 8px auto 0; background: linear-gradient(#fff, transparent); animation: drip 1.5s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.story-cta { position: absolute; left: 20px; right: 20px; bottom: 88px; display: flex; justify-content: center; opacity: 0; pointer-events: none; }
.story-cta.on { pointer-events: auto; }
.story-cta .btn { width: min(460px, 100%); }
.tag { position: absolute; right: max(16px, calc((100% - 1120px) / 2)); padding: 9px 16px; border-radius: 999px; background: rgba(10,12,14,.86); border: 1.5px solid var(--accent-bright); font-weight: 800; font-size: clamp(14px, 1.8vw, 18px); white-space: nowrap; opacity: 0; }

/* cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.card h3 { font-size: 22px; font-weight: 800; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.card .ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; background: var(--accent-soft); font-size: 22px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--accent-text); text-decoration: none; }
.strip { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; padding: 15px 0; font-size: 15px; text-align: center; }

/* estimator */
.est { display: grid; gap: 22px; }
@media (min-width: 900px) { .est { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.panel { padding: clamp(20px, 3.4vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.q { margin-bottom: 24px; padding: 0; border: 0; }
.q:last-child { margin-bottom: 0; }
.q > legend, .q > .lab { display: block; padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; flex: 1 1 auto; min-width: 88px; border-radius: 14px; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: block; padding: 12px 12px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--field); font-weight: 700; font-size: 15px; text-align: center; transition: background .14s, color .14s, border-color .14s; }
.chip span small { display: block; font-weight: 600; font-size: 12.5px; opacity: .75; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px var(--glow); }
.range-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-weight: 800; }
.range-row output { color: var(--accent-text); font-size: 20px; }
input[type=range] { width: 100%; height: 32px; margin: 0; background: transparent; accent-color: var(--accent); cursor: pointer; }
.result { position: sticky; top: 112px; text-align: center; }
.result .big { margin-top: 6px; font-family: var(--head-font); font-weight: 900; font-size: clamp(38px, 6vw, 54px); letter-spacing: -.03em; line-height: 1.05; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.result .fine { margin: 14px 0 20px; color: var(--muted); font-size: 14.5px; }

/* before / after */
.ba { position: relative; aspect-ratio: var(--ba-ratio, 4 / 3); max-height: 720px; margin-inline: auto; overflow: hidden; border-radius: var(--radius); background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ba-pos, 50% 50%); 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: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 14px rgba(0,0,0,.45); }
.ba .knob { position: absolute; top: 50%; left: var(--cut, 50%); display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 0; border-radius: 50%; background: #fff; color: #111; font-weight: 900; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: ew-resize; }
.ba .lab { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-weight: 800; font-size: 13px; }
.ba .lab.l { left: 14px; }
.ba .lab.r { right: 14px; }

/* steps, reviews, faq */
.steps { display: grid; gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding: 22px; border-top: 3px solid var(--accent); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.steps li::before { content: counter(s); display: block; font-family: var(--head-font); font-weight: 900; font-size: 34px; color: var(--accent-text); }
.steps h3 { margin-top: 6px; font-size: 20px; font-weight: 800; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.reviews { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
@media (min-width: 960px) { .reviews { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.reviews figure { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); scroll-snap-align: start; }
.reviews .stars { color: var(--star); letter-spacing: 2px; }
.reviews blockquote { margin: 10px 0 12px; font-size: 16.5px; }
.reviews figcaption { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 800; font-size: 18px; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent-text); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 18px; color: var(--muted); }
.faq { max-width: 780px; margin-inline: auto; }

/* booking */
.book-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .book-grid { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.book-side h2 { font-size: clamp(34px, 5.4vw, 52px); font-weight: 800; }
.book-side ul { margin: 22px 0 0; padding: 0; list-style: none; }
.book-side li { display: flex; gap: 10px; margin-top: 10px; font-weight: 600; }
.book-side li::before { content: "✓"; color: var(--accent-text); font-weight: 900; }
.book-side .phone { display: inline-block; margin-top: 24px; font-family: var(--head-font); font-weight: 900; font-size: 28px; text-decoration: none; }
.progress { display: flex; gap: 6px; margin-bottom: 8px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--line-strong); transition: background .2s; }
.progress i.on { background: var(--accent); }
.step-name { margin-bottom: 20px; color: var(--muted); font-weight: 700; font-size: 14px; }
.step[hidden] { display: none; }
.field { display: block; margin-bottom: 14px; font-weight: 800; font-size: 15px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 7px; padding: 14px 15px; border: 1.5px solid var(--line-strong); border-radius: 13px; background: var(--field); font-weight: 500; font-size: 16px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field.bad input { border-color: #e5484d; }
.err { min-height: 22px; margin: 2px 0 10px; color: #e5484d; font-weight: 700; font-size: 14.5px; }
.nav-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-row .btn { flex: 1; }
.est-note { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-weight: 700; font-size: 15px; }
.done { text-align: center; padding: 16px 0; }
.done .check { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 42px; font-weight: 900; animation: pop .4s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h3 { font-size: clamp(28px, 4vw, 36px); font-weight: 900; }
.done p { margin-top: 8px; color: var(--muted); }
.done .demo { margin: 14px 0 20px; font-size: 14px; }

/* the owner's side */
.owner { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #0d1014; color: #e9edf1; }
.owner-top { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #262c33; font-weight: 800; }
.owner-top span { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.lead { display: grid; grid-template-columns: 1fr 1fr 82px; gap: 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #1d2329; font-size: 15px; }
.lead:last-child { border-bottom: 0; }
.lead b { font-weight: 800; }
.lead small { display: block; color: #93a0ad; font-size: 13px; }
.lead .st { padding: 4px 6px; text-align: center; border-radius: 999px; background: #252c34; font-size: 12.5px; font-weight: 800; }
.lead.new { background: rgba(255,255,255,.07); box-shadow: inset 3px 0 0 var(--accent-bright); animation: slide .5s; }
.lead.new .st { background: var(--accent-bright); color: #14100a; }
@keyframes slide { from { transform: translateX(-16px); opacity: 0; } }

/* area and footer */
.area { display: grid; gap: 26px; }
@media (min-width: 820px) { .area { grid-template-columns: 1fr 1fr; align-items: center; } }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.towns span { padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); font-weight: 700; font-size: 15px; }
.hours { padding: 0; margin: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.foot { padding: 36px 0 110px; background: #07090b; color: #aeb7c0; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; }
.foot a { color: #fff; font-weight: 700; }
@media (min-width: 900px) { .foot { padding-bottom: 36px; } }
.bottom-bar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; gap: 8px; transform: translateY(160%); transition: transform .25s; }
.bottom-bar.on { transform: none; }
.bottom-bar .btn { flex: 1 1 auto; padding-inline: 18px; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.bottom-bar .btn.ghost { flex: 0 0 96px; background: var(--head-solid); color: var(--ink); box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 0 0 1px var(--line-strong); }
@media (min-width: 900px) { .bottom-bar { display: none; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s, transform .55s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hint i { animation: none; }
}
