/* KojiWrx design site: shared structure. Each layout file sets the colors, type and shapes.
   Ground and text colors come from the section's own stage (--sg, --sf ...) and, with script and motion on,
   from the scroll tide (--tide, --tfg ...). Text color is always chosen from the ground it sits on. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; background: var(--tide, var(--g1)); color: var(--tfg, var(--f1)); overflow-x: clip; }
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: #fff; color: #111; padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
html:not(.js) .js-only, .js .nojs-only { display: none !important; }
.mono { font-family: var(--font-mono, var(--font-body)); }

/* sections and the flowing surface */
.sec { --bgc: var(--tide, var(--sg)); --fgc: var(--tfg, var(--sf)); --m: var(--tfg2, var(--sf2)); --ln: var(--tln, var(--sl)); --surf: var(--tsurf, var(--ss));
  position: relative; background: var(--bgc); color: var(--fgc); padding-block: clamp(64px, 7vw, 104px); }
.sec.alt { --bgc: var(--tide2, var(--sgalt)); }
.sec-hero { padding-block: 0; }
.wrap { position: relative; z-index: 1; width: min(100% - 2 * var(--gut), var(--wrap, 1180px)); margin-inline: auto; }
.wave { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: -1px; height: clamp(44px, 6.5vw, 96px); color: var(--bgc); pointer-events: none; }
.wave svg { width: 100%; height: 100%; fill: currentColor; }
.motion [data-flow], .motion .wt, .motion .fc, .motion .cs { will-change: translate, opacity; }
.motion .wave { will-change: translate; }
.site-head { position: sticky; top: 0; z-index: 40; background: var(--tide, var(--g1)); color: var(--tfg, var(--f1)); }
.muted, .lede, .benefit, .small { color: var(--m); }
.m-ink { color: var(--m); }

/* type blocks */
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2, .block > h3 { margin-bottom: 14px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; color: var(--m); }
.lede { font-size: 19px; max-width: 64ch; }
.block { padding-top: clamp(48px, 6vw, 80px); margin-top: clamp(40px, 5vw, 64px); border-top: 2px solid var(--ln); }
.block > .lede { margin-bottom: 24px; }
.block h4, .card h4, .card > h3 { margin-bottom: 12px; }
.block h5, .card h5 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 16px 0 8px; color: var(--m); }
.card { background: var(--surf); border: 1px solid var(--ln); border-radius: var(--rad); padding: clamp(20px, 2.4vw, 32px); }
.card ul, .block > ul:not(.plan-cards), .pp-body ul, .plan-card ul, .plan-table ul, .note-box ul { list-style: none; display: grid; gap: 8px; }
.card li, .block > ul:not(.plan-cards) li, .pp-body li, .plan-card li, .plan-table li, .note-box li { position: relative; padding-left: 20px; }
.card li::before, .block > ul:not(.plan-cards) li::before, .pp-body li::before, .plan-card li::before, .plan-table li::before, .note-box li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 2px; background: currentColor; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.note-box { border: 1px dashed var(--ln); padding: 20px; border-radius: var(--rad); }
.scope-note { margin-top: 28px; padding: 16px 20px; border-left: 4px solid var(--fgc); background: var(--surf); max-width: 72ch; font-weight: 500; }
.pay-terms, .plans-foot, .offer-sub { margin-top: 20px; max-width: 72ch; }
.offer-sub { margin-bottom: 28px; }
.plans-foot { font-size: 15px; color: var(--m); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; border-radius: var(--rad-btn); transition: transform .16s cubic-bezier(.2,.7,.2,1), background-color .16s, color .16s, box-shadow .16s, border-color .16s; line-height: 1.1; text-align: center; }
.btn:focus-visible, .chip:focus-visible, .pk:focus-visible, .ppick:focus-visible, .th-btn:focus-visible, .ans:focus-visible, .link-btn:focus-visible, a:focus-visible, summary:focus-visible, .opt input:focus-visible + .opt-in, .gl-tile:focus-visible, .iso:focus-visible, .arrow:focus-visible, .nav-toggle:focus-visible, .vw-size button:focus-visible, .check input:focus-visible + span { outline: 3px solid var(--fgc, currentColor); outline-offset: 3px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 6px 0 var(--accent-deep); }
.btn-primary:active { box-shadow: 0 0 0 var(--accent-deep); }
.btn-ghost, .btn-quiet, .btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover, .btn-quiet:hover, .btn-outline:hover { background: var(--fgc, currentColor); color: var(--bgc, #fff); }
.btn-small { min-height: 46px; padding: 0 18px; font-size: 16px; background: var(--fgc); color: var(--bgc); }
.btn-small.btn-outline { background: transparent; color: inherit; }
.btn-small.btn-outline:hover { background: var(--fgc); color: var(--bgc); }
.btn-small:hover { box-shadow: 0 4px 0 var(--ln); }
.btn-quiet { min-height: 46px; padding: 0 18px; font-size: 16px; }
.link-btn { background: none; border: 0; padding: 0 8px; min-height: 46px; min-width: 48px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration-thickness: 3px; }
.btn[disabled] { cursor: progress; }
.btn-send { background: var(--act-btn); color: var(--act-btn-ink); border-color: var(--act-btn); }
.btn-send:hover { box-shadow: 0 6px 0 rgba(0,0,0,.35); }

/* header and phone menu */
.head-in { display: flex; align-items: center; gap: 20px; min-height: 68px; width: min(100% - 2 * var(--gut), var(--wrap, 1180px)); margin-inline: auto; }
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; margin-right: auto; min-height: 44px; align-items: center; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 24px; letter-spacing: -.02em; }
.brand-sub { font-size: 14px; color: var(--tfg2, var(--f2-1)); }
/* KojiWrx Studio logo (brand spec: _Cowork/KojiWrx-Brand/DESIGN.md). The tile and the name take the text color; the K takes the ground. */
.brand-logo { display: block; height: 30px; width: auto; max-width: 100%; }
.brand-logo .lg-k { stroke: var(--tide, var(--g1)); stroke-width: 8; }
.menu-panel { display: flex; align-items: center; gap: 24px; }
.menu-panel ul { display: flex; gap: 4px; }
.menu-panel li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; position: relative; }
.menu-panel li a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.menu-panel li a:hover::after, .menu-panel li a[aria-current]::after { transform: scaleX(1); }
.rail-note { display: none; }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: transparent; border: 2px solid currentColor; border-radius: var(--rad-btn); cursor: pointer; position: relative; transition: background-color .15s, color .15s; }
.nav-toggle svg { position: absolute; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: opacity .18s, transform .22s; }
.nav-toggle .ico-close { opacity: 0; transform: rotate(-60deg) scale(.6); }
.nav-toggle[aria-expanded="true"] .ico-open { opacity: 0; transform: rotate(60deg) scale(.6); }
.nav-toggle[aria-expanded="true"] .ico-close { opacity: 1; transform: none; }
.nav-toggle:hover { background: var(--tfg, var(--f1)); color: var(--tide, var(--g1)); }
.nav-toggle:active { transform: scale(.94); }

/* hero helpers */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.price-quiet { margin-top: 14px; }
.price-quiet a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* samples and viewer */
.sample-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.sample-links > li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--ln); border-radius: var(--rad); background: var(--surf); }
.sample-links img { width: 100%; height: auto; border-radius: calc(var(--rad) / 2); }
.sample-links h3 { font-size: 20px; margin-bottom: 4px; }
.sample-links .live { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; margin-top: 8px; }
.funcs-h { font-size: 14px; font-weight: 700; margin-top: 8px; }
.sample-links ul { margin: 4px 0 0 18px; list-style: disc; font-size: 15px; }
.deck-link { margin-top: 32px; }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-top: 32px; align-items: start; scroll-margin-top: 84px; }
.vw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 12px; }
.vw-title { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin-right: auto; }
.vw-size { display: inline-flex; border: 2px solid var(--fgc); border-radius: var(--rad-btn); overflow: hidden; }
.vw-size button { min-height: 44px; min-width: 88px; padding: 0 16px; background: transparent; border: 0; cursor: pointer; font-weight: 600; transition: background-color .15s, color .15s; }
.vw-size button:hover { background: var(--surf); }
.vw-size button[aria-pressed="true"] { background: var(--fgc); color: var(--bgc); }
.vw-size button:focus-visible { outline-offset: -4px; }
.vw-full { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.vw-stage { position: relative; width: 100%; height: 440px; overflow: hidden; border: 2px solid var(--fgc); border-radius: var(--rad); background: #fff; }
.vw-stage.is-phone { background: var(--surf); }
.vw-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.vw-ph[hidden] { display: none; }
.vw-ph picture, .vw-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vw-load { position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.vw-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.is-phone .vw-frame { border: 4px solid #111; border-radius: 18px; }
.vw-note { margin-top: 10px; font-weight: 600; }
.vw-side { border-left: 2px solid var(--ln); padding-left: 24px; }
.vw-side h3 { font-size: 18px; margin: 18px 0 10px; }
.vw-side .try { margin-bottom: 4px; }
.funcs { display: grid; gap: 10px; }
.funcs li { position: relative; padding-left: 28px; }
.funcs li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.deck-link .btn { margin-top: 0; }

/* capabilities and demos */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cap { display: flex; flex-direction: column; gap: 10px; background: var(--surf); border: 1px solid var(--ln); border-radius: var(--rad); padding: clamp(20px, 2.4vw, 28px); transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .2s; }
.cap:hover { transform: translateY(-3px); border-color: var(--fgc); }
.cap h3 { font-size: 22px; }
.demo-box { --m: var(--fgc); margin-top: 8px; border: 1px solid var(--ln); border-radius: calc(var(--rad) * .7); padding: 16px; position: relative; flex: 1; min-height: 210px; background: var(--surf); }
.demo-note { font-size: 13px; margin-top: 12px; font-weight: 600; }
.demo-fallback { padding: 16px; border: 1px dashed var(--ln); }
.cap-link { display: inline-flex; align-items: center; min-height: 46px; font-weight: 700; margin-top: 4px; }
.cap-link::after { content: "\2192"; margin-left: 8px; transition: transform .2s; }
.cap-link:hover::after { transform: translateX(5px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 0 16px; background: transparent; border: 2px solid var(--ln); border-radius: var(--rad-btn); cursor: pointer; font-weight: 600; transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.chip:hover:not([disabled]) { border-color: var(--fgc); background: var(--surf); }
.chip:active:not([disabled]) { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--fgc); color: var(--bgc); border-color: var(--fgc); }
.chip[disabled] { text-decoration: line-through; cursor: not-allowed; color: var(--m); }
.bk-prog, .mf-prog { font-weight: 600; margin-bottom: 12px; }
.bk-step[hidden], .menu-list li[hidden] { display: none; }
.bk-step .link-btn { margin-top: 8px; }
.bk-sum { margin-bottom: 12px; font-weight: 600; }
.ok { font-weight: 700; border-left: 4px solid var(--fgc); padding-left: 12px; }
.check { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0; min-height: 46px; cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; left: 0; top: 0; }
.check span { display: inline-flex; align-items: center; gap: 10px; }
.check span::before { content: ""; width: 24px; height: 24px; border: 2px solid var(--fgc); border-radius: 4px; transition: background-color .15s; }
.check input:checked + span::before { background: var(--fgc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/18px no-repeat; }
.menu-list { display: grid; gap: 8px; }
.menu-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ln); padding: 8px 0; }
.menu-list b { font-weight: 700; }
.menu-list span { text-align: right; color: var(--m); }
.hrs-status { font-weight: 700; margin-bottom: 10px; }
.hrs { width: 100%; border-collapse: collapse; font-size: 15px; }
.hrs th, .hrs td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ln); font-weight: 400; }
.hrs tr.is-today th, .hrs tr.is-today td { font-weight: 800; background: var(--fgc); color: var(--bgc); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
input, textarea, select { background: #fff; color: #111; border: 2px solid #111; border-radius: var(--rad-input, 6px); min-height: 48px; padding: 10px 12px; width: 100%; }
input:focus, textarea:focus { outline: 3px solid var(--fgc); outline-offset: 2px; }
.est-out { font-weight: 700; margin-top: 4px; }
.ba { --p: 50%; position: relative; height: 180px; border-radius: calc(var(--rad) * .6); overflow: hidden; border: 2px solid var(--fgc); }
.ba-pane { position: absolute; inset: 0; }
.ba-before { background: repeating-linear-gradient(90deg, #8a8780 0 26px, #7b7872 26px 28px); }
.ba-after { background: repeating-linear-gradient(90deg, #c4915c 0 26px, #b0804d 26px 28px); clip-path: inset(0 0 0 var(--p)); }
.ba-tag { position: absolute; top: 10px; background: #111; color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; }
.ba-before .ba-tag { left: 10px; } .ba-after .ba-tag { right: 10px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px #111; }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: #fff; color: #111; border: 2px solid #111; display: grid; place-items: center; font-size: 20px; transition: transform .15s; }
.ba:hover .ba-handle::after { transform: scale(1.12); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; padding: 0; min-height: 0; }
.ba:focus-within { outline: 3px solid var(--fgc); outline-offset: 3px; }
.gl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transition: opacity .2s; }
.gl-grid.is-hidden { opacity: 0; pointer-events: none; }
.gl-tile { min-height: 84px; border: 2px solid #111; border-radius: calc(var(--rad) * .5); cursor: pointer; display: flex; align-items: flex-end; padding: 8px; transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s; text-align: left; }
.gl-tile span { background: #fff; color: #111; font-weight: 700; font-size: 14px; padding: 2px 8px; }
.gl-tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.gl-tile:active { transform: scale(.97); }
.gl1, .gl-swatch.gl1 { background: #c9d4d8; } .gl2, .gl-swatch.gl2 { background: #e8c98a; } .gl3, .gl-swatch.gl3 { background: #b98a5e; } .gl4, .gl-swatch.gl4 { background: #d9d2c2; }
.gl-detail { position: absolute; inset: 0; background: var(--bgc); border-radius: calc(var(--rad) * .7); padding: 16px; display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; align-content: start; opacity: 0; transform: scale(.55); transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .2s; z-index: 2; }
.gl-detail.open { opacity: 1; transform: none; }
.gl-detail[hidden] { display: none; }
.gl-swatch { grid-row: 1 / 3; height: 110px; border: 2px solid #111; }
.gl-detail .btn { grid-column: 1 / 3; justify-self: start; margin-top: 8px; }
.iso { --rx: 58deg; --rz: -35deg; width: 100%; height: 210px; display: grid; place-items: center; background: transparent; border: 1px solid var(--ln); border-radius: calc(var(--rad) * .6); perspective: 700px; cursor: pointer; padding: 0; overflow: hidden; }
.iso:hover { border-color: var(--fgc); }
.iso-stack { position: relative; width: 112px; height: 112px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz)); }
.iso-l { position: absolute; inset: 0; border: 2px solid #111; transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.il1 { background: #cfc9ba; } .il2 { background: #aea796; transform: translateZ(20px) scale(.82); } .il3 { background: #8b8473; transform: translateZ(40px) scale(.52); }
.apart .il2 { transform: translateZ(70px) scale(.82); } .apart .il3 { transform: translateZ(130px) scale(.52); }
.demo-hint { margin-top: 10px; font-size: 15px; }
.mini-form .btn { margin-top: 4px; }
.err { font-weight: 700; font-size: 15px; border-left: 4px solid var(--fgc); padding-left: 10px; margin-top: 6px; }
.err[hidden] { display: none; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: st; }
.steps li { border-top: 3px solid var(--fgc); padding-top: 16px; counter-increment: st; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps h3::before { content: counter(st) ". "; }
.steps p { color: var(--m); }

/* pricing blocks */
.offer-line { font-family: var(--font-head); font-weight: 900; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; margin: 8px 0 12px; letter-spacing: -.02em; }
.price { color: var(--price-c, var(--accent)); }
[data-stage="4"] { --price-c: var(--accent-hi, var(--accent)); }
.grp + .grp { margin-top: 12px; }
.ppicks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ppick { display: grid; text-align: left; gap: 2px; min-height: 56px; padding: 8px 18px; background: transparent; border: 2px solid var(--ln); border-radius: var(--rad); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.ppick:hover { border-color: var(--fgc); transform: translateY(-2px); }
.ppick:active { transform: scale(.98); }
.ppick .pn { font-weight: 800; } .ppick .pp { font-size: 14px; }
.ppick[aria-pressed="true"] { background: var(--fgc); color: var(--bgc); border-color: var(--fgc); }
.plan-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 20px; min-height: 52px; font-weight: 600; }
.plan-summary p { margin-right: auto; }
.num { font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; }
.opts { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.opts legend { font-weight: 800; padding: 0; margin-bottom: 10px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; min-height: 0; }
.opt-in { display: grid; gap: 2px; min-height: 64px; align-content: center; padding: 10px 16px; border: 2px solid var(--ln); border-radius: var(--rad); transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.opt-in small { font-size: 14px; color: var(--m); }
.opt:hover .opt-in { border-color: var(--fgc); transform: translateY(-2px); }
.opt input:checked + .opt-in { background: var(--fgc); color: var(--bgc); border-color: var(--fgc); }
.opt input:checked + .opt-in small { color: var(--bgc); }
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc-out { border: 2px solid var(--fgc); border-radius: var(--rad); padding: 20px 24px; position: sticky; top: 90px; }
.calc-out dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ln); }
.calc-out dt { color: var(--m); } .calc-out dd { font-weight: 700; }
.calc-out .tot { font-size: 22px; border-bottom: 0; padding-top: 14px; } .calc-out .tot dt { color: inherit; font-weight: 700; } .calc-out .tot dd { font-family: var(--font-head); font-weight: 900; font-size: 32px; }
.math { margin-top: 8px; font-weight: 600; word-break: break-word; }
.tax { font-weight: 700; }
.after { margin-top: 8px; font-size: 15px; color: var(--m); }
.helper { border: 2px solid var(--fgc); border-radius: var(--rad); padding: clamp(20px, 3vw, 36px); max-width: 860px; }
.h-head { margin-bottom: 20px; } .h-count { font-weight: 700; margin-bottom: 8px; }
.h-bar { height: 6px; background: var(--ln); border-radius: 3px; overflow: hidden; }
.h-bar span { display: block; height: 100%; background: var(--fgc); transform-origin: left; transform: scaleX(.25); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.q legend ~ * { clear: both; }
.q-hint { color: var(--m); margin-bottom: 14px; max-width: 60ch; }
.q-ans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ans { min-height: 64px; padding: 12px 18px; text-align: left; font-weight: 700; background: transparent; border: 2px solid var(--ln); border-radius: var(--rad); cursor: pointer; transition: background-color .12s, color .12s, border-color .12s, transform .12s; }
.ans:hover { border-color: var(--fgc); background: var(--surf); transform: translateY(-2px); }
.ans:active { transform: scale(.98); }
.ans[aria-pressed="true"] { background: var(--fgc); color: var(--bgc); border-color: var(--fgc); }
.h-body > .link-btn { margin-top: 12px; }
.h-result h4 { font-family: var(--font-head); font-size: clamp(32px, 4.5vw, 52px); font-weight: 900; line-height: 1; margin: 4px 0 8px; }
.r-k { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--m); }
.r-price { font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.r-add { margin: 12px 0; display: grid; gap: 6px; padding-left: 0; }
.r-add li { border-left: 4px solid var(--fgc); padding-left: 12px; }
.r-note { color: var(--m); margin-top: 6px; } .r-noadd { margin-top: 8px; }
.r-tax { margin-top: 8px; font-size: 14px; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.qas { max-width: 820px; border-top: 2px solid var(--fgc); }
.qa { border-bottom: 1px solid var(--ln); }
.qa summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; padding: 10px 4px; transition: background-color .15s, padding .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .22s; }
.qa[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa summary:hover { background: var(--surf); padding-left: 12px; }
.qa p { padding: 0 4px 20px; max-width: 64ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy h2 { margin-bottom: 14px; }
.mail a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); }
.cform { display: grid; gap: 18px; }
.req-note { font-weight: 700; }
.f label { display: block; font-weight: 700; margin-bottom: 6px; }
.f input, .f textarea { background: #fff; color: #111; }
.f textarea { min-height: 140px; resize: vertical; }
.f-prog { font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { justify-self: start; min-width: 220px; }
.f-result:empty { display: none; }
.f-result { border: 2px solid var(--fgc); border-radius: var(--rad); padding: 18px 20px; font-weight: 600; }
.f-result p + p { margin-top: 8px; }
.mail-text { white-space: pre-wrap; background: #fff; color: #111; padding: 14px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; margin: 12px 0; overflow-wrap: anywhere; }
.f-result a { font-weight: 700; }
.site-foot { padding-block: 48px 40px; }
.foot-in { display: grid; gap: 6px; }
.foot-in p, .foot-in a { overflow-wrap: anywhere; }
.foot-in a { display: inline-flex; align-items: center; min-height: 44px; }
.switch { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sw { display: inline-flex; gap: 8px; }
.sw a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border: 2px solid currentColor; text-decoration: none; font-weight: 700; border-radius: var(--rad-btn); transition: background-color .15s, color .15s, transform .15s; }
.sw a:hover { background: var(--fgc); color: var(--bgc); transform: translateY(-2px); }
.sw a[aria-current] { background: var(--fgc); color: var(--bgc); }

@media (max-width: 1000px) {
  .viewer { grid-template-columns: 1fr; } .vw-side { border-left: 0; padding-left: 0; border-top: 2px solid var(--ln); padding-top: 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols3 { grid-template-columns: 1fr; } .calc { grid-template-columns: 1fr; } .calc-out { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .caps, .cols2, .sample-links { grid-template-columns: 1fr; }
  .sample-links > li { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .q-ans { grid-template-columns: 1fr; }
  .vw-stage { height: 360px; }
  .nav-toggle { display: inline-flex; }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 8px 20px 24px; background: var(--tide, var(--g1)); color: var(--tfg, var(--f1)); border-bottom: 2px solid var(--tfg, var(--f1)); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .menu-panel.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .menu-panel ul { flex-direction: column; gap: 2px; }
  .menu-panel li a { min-height: 52px; font-size: 20px; width: 100%; }
  .menu-panel li { opacity: 0; transform: translateY(-6px); transition: opacity .22s, transform .22s; }
  .menu-panel.open li { opacity: 1; transform: none; }
  .menu-panel.open li:nth-child(1) { transition-delay: .04s; } .menu-panel.open li:nth-child(2) { transition-delay: .08s; } .menu-panel.open li:nth-child(3) { transition-delay: .12s; } .menu-panel.open li:nth-child(4) { transition-delay: .16s; } .menu-panel.open li:nth-child(5) { transition-delay: .2s; }
  .head-cta { width: 100%; }
  .actions .btn { width: 100%; }
  .two { grid-template-columns: 1fr; }
  .gl-detail { grid-template-columns: 80px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001s !important; scroll-behavior: auto !important; }
}
/* Phones: four day chips and three menu chips fit on one row. */
@media (max-width: 430px) { .chip { padding: 0 10px; } }
/* Service pages and trade pages (made by tools/build_pages.py), and the footer links. */
.subpage .sub-top { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.subpage .sub-top h1 { font-size: clamp(38px, 5.4vw, 76px); max-width: 16ch; }
.subpage .sub-top .lede { margin-top: 18px; }
.crumb { font-size: 14px; margin-bottom: 18px; color: var(--m); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.sub-body { padding-block: clamp(32px, 5vw, 64px); }
.sub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.sub-card h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; margin-bottom: 14px; }
.sub-card p + p, .sub-card ul + p, .sub-card p + ul { margin-top: 12px; }
.sub-card a, .sub-cta p a { display: inline-flex; align-items: center; min-height: 44px; }
.sub-shot { display: grid !important; gap: 8px; margin-top: 14px; font-weight: 700; }
.sub-shot img { width: 100%; height: auto; border: 1px solid var(--ln); }
.sub-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin-bottom: 28px; max-width: 760px; }
.foot-links ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-h { font-weight: 700; margin-bottom: 4px; }
@media (max-width: 760px) { .sub-grid, .foot-links { grid-template-columns: 1fr; } .foot-links ul { columns: 1; } }
