/* /kitchen-preview/ only — the "see your kitchen in 2 new colors" funnel page. Loaded after /css/styles.css. */

.kp [hidden] { display: none !important; }
/* iPhone (2026-11-12): nothing may widen the page sideways, and a quick double tap must not zoom in (it cut the phone number and the bottom button) */
html, body { overflow-x: clip; }
a, button, input, label, summary, select { touch-action: manipulation; }

/* ---------- Header ---------- */
.kp-head { background: var(--navy); position: sticky; top: 0; z-index: 20; }
.kp-head-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.kp-brand img { width: 104px; height: auto; }
.kp-call { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; }
.kp-call svg { width: 18px; height: 18px; fill: var(--gold); }
.kp-call { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 370px) { .kp-brand img { width: 88px; } .kp-call { font-size: 14px; } }

/* ---------- Hero + tool ---------- */
.kp-hero { background: var(--navy); color: var(--white); padding: clamp(28px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.kp-hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .kp-hero-grid { grid-template-columns: 1fr 1.05fr; } .kp-hero-txt { position: sticky; top: 104px; } }
.kp-city { display: flex; align-items: center; gap: 10px; font: 900 12px/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; }
.kp-city::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.kp-hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.06; color: var(--white); margin-bottom: 18px; }
.kp-hero h1 em { color: var(--gold); }
.kp-sub { font-size: clamp(17px, 1.6vw, 19px); color: rgba(255, 255, 255, .82); max-width: 520px; }
.kp-gets { display: grid; gap: 10px; margin: 22px 0 24px; }
.kp-gets li { position: relative; padding-left: 30px; font-weight: 700; }
.kp-gets li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23001b2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.kp-trust { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .85); margin: 0; }
.kp-trust .stars { margin-right: 4px; }
@media (max-width: 959px) { .kp-gets { display: none; } .kp-trust { margin-top: 4px; } }

/* "Is this right for my kitchen?" (fit block, 2026-11-22): open on desktop, one closed line on phones */
.kp-fit { margin: 0 0 20px; max-width: 480px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .06); padding: 12px 16px; }
.kp-fit summary { cursor: pointer; list-style: none; font-weight: 900; color: var(--white); font-size: 16px; }
.kp-fit summary::-webkit-details-marker { display: none; }
.kp-fit summary::after { content: " +"; color: var(--gold); }
.kp-fit[open] summary::after { content: " –"; }
.kp-fit-body { margin-top: 8px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.kp-fit-h { margin: 10px 0 4px; font-weight: 700; color: var(--gold); font-size: 14px; }
.kp-fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kp-fit li { position: relative; padding-left: 24px; }
.kp-fit-yes li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--gold); font-weight: 900; }
.kp-fit-no li::before { content: "✕"; position: absolute; left: 1px; top: -1px; color: rgba(255, 255, 255, .6); font-weight: 900; font-size: 13px; }
.kp-fit-end { margin: 10px 0 0; font-weight: 700; color: var(--white); }
@media (min-width: 960px) { .kp-fit summary { cursor: default; } .kp-fit summary::after, .kp-fit[open] summary::after { content: none; } }
@media (max-width: 959px) { .kp-fit { margin: 2px 0 14px; padding: 10px 14px; } }

/* the white card that holds the 4 steps */
.kp-tool { background: var(--white); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: clamp(20px, 3vw, 34px); scroll-margin-top: 80px; }
.kp-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.kp-progress span { height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.kp-progress span.on { background: var(--gold); }
.kp-stepno { font: 900 11px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.kp-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.kp-step legend:focus { outline: none; }
.kp-step legend {font: 700 clamp(22px, 2.6vw, 28px)/1.2 var(--f-head); color: var(--navy); padding: 0; margin-bottom: 8px; }
.kp-hint { color: var(--ink-2); margin: 0 0 16px; font-size: 16px; }
.kp-small { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.kp-label { font: 900 12px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 20px 0 10px; }
.kp-err { color: #b3261e; font-weight: 700; font-size: 14px; margin: 10px 0 0; min-height: 0; }
.kp-err:empty { display: none; }

/* photo slots (photos keep square corners) */
.kp-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.kp-drop { position: relative; display: grid; place-items: center; border: 2px dashed rgba(0, 47, 78, .25); background: var(--cream); cursor: pointer; min-height: 104px; overflow: hidden; text-align: center; transition: border-color .2s, background .2s; }
.kp-drop-main { grid-row: span 2; min-height: 220px; }
.kp-drop:hover, .kp-drop:focus-within { border-color: var(--gold); background: #fbf6ea; }
.kp-drop-empty { display: grid; gap: 4px; justify-items: center; padding: 10px; color: var(--navy); }
.kp-drop-empty svg { width: 40px; height: 40px; color: var(--gold); }
.kp-drop-empty b { font-size: 15px; }
.kp-drop-empty small { font-size: 12.5px; color: var(--muted); }
.kp-drop.has img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kp-drop.has .kp-drop-empty { display: none; }
.kp-drop.has { border-style: solid; border-color: var(--gold); }
.kp-drop .kp-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 27, 46, .75); color: var(--white); font-size: 18px; line-height: 1; z-index: 2; }
.kp-drop.busy::after { content: "Getting your photo ready…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(248, 245, 238, .9); font-size: 13px; font-weight: 700; color: var(--navy); }

/* paint layout cards */
.kp-schemes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kp-scheme { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 14px 8px 12px; border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .2s, background .2s; }
.kp-scheme input, .kp-chip input, .kp-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.kp-scheme b { font-size: 14px; line-height: 1.25; color: var(--navy); }
.kp-scheme:has(input:checked) { border-color: var(--gold); background: #fbf6ea; }
.kp-scheme:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.kp-scheme-art { position: relative; width: 76px; height: 58px; }
.kp-scheme-art i { position: absolute; display: block; border: 1.5px solid var(--navy); }
.kp-scheme-art .u { left: 0; right: 0; top: 0; height: 16px; }
.kp-scheme-art .l { left: 0; right: 0; top: 26px; height: 14px; }
.kp-scheme-art .isl { left: 18px; right: 18px; top: 46px; height: 12px; }
.kp-scheme-art .a { background: #dfe6ea; }
.kp-scheme-art .b { background: var(--navy); }

/* handles: style pictures + metal finishes */
.kp-handles { margin-top: 6px; }
.kp-hstyles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kp-hstyle { position: relative; display: grid; gap: 6px; justify-items: center; padding: 10px 4px 8px; border: 2px solid var(--line); border-radius: var(--r-sm); cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.kp-hstyle svg { width: 42px; height: 56px; }
.kp-hstyle .d { fill: #e9edf0; stroke: #9aa5ad; stroke-width: 1.5; }
.kp-hstyle .m { fill: var(--metal); transition: fill .2s; }
.kp-hstyle b { font-size: 13px; line-height: 1.2; color: var(--navy); }
.kp-hstyle input, .kp-fin input { position: absolute; opacity: 0; pointer-events: none; }
.kp-hstyle:has(input:checked) { border-color: var(--gold); background: #fbf6ea; }
.kp-hstyle:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.kp-fin { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kp-fin label { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; cursor: pointer; }
.kp-fin i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); box-shadow: inset 0 1px 2px rgba(255, 255, 255, .5); }
.kp-fin small { font-size: 12px; line-height: 1.2; font-weight: 700; color: var(--ink-2); }
.kp-fin input:checked + i { outline: 3px solid var(--gold); outline-offset: 3px; }
.kp-fin input:focus-visible + i { outline: 3px solid var(--navy); outline-offset: 3px; }
.kp-label-top { margin-top: 0; }

/* tap chips: outlined, gold when picked (same idea as the quote form) */
.kp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-chip { position: relative; cursor: pointer; }
.kp-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--navy); transition: border-color .2s, background .2s; }
.kp-chip:hover span { border-color: var(--gold); }
.kp-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.kp-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* color swatches */
.kp-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 12px 10px; }
@media (max-width: 420px) { .kp-swatches { grid-template-columns: repeat(4, 1fr); } }
.kp-swatch { position: relative; display: grid; gap: 6px; justify-items: center; cursor: pointer; text-align: center; }
.kp-swatch i { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .14); box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .06); transition: transform .15s; }
.kp-swatch small { font-size: 12px; line-height: 1.2; font-weight: 700; color: var(--ink-2); }
.kp-swatch small em { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.kp-tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.kp-tabs button { flex: 1; min-height: 44px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 4px; font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--muted); }
@media (max-width: 420px) { .kp-tabs button { font-size: 13px; } }
.kp-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }

/* example photos (square corners) */
.kp-examples { display: grid; grid-template-columns: 1.35fr 1.35fr .75fr; gap: 8px; margin-bottom: 4px; }
.kp-examples li { position: relative; height: clamp(100px, 24vw, 140px); overflow: hidden; background: var(--paper); }
.kp-examples img { width: 100%; height: 100%; object-fit: cover; }
.kp-examples span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: var(--white); font-size: 12px; font-weight: 700; line-height: 1.2; }
.kp-examples b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-size: 11px; }
.kp-swatch:hover i { transform: translateY(-2px); }
.kp-swatch input:checked + i { outline: 3px solid var(--gold); outline-offset: 3px; }
.kp-swatch input:checked + i::after { content: attr(data-n); position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--white); font: 900 12px/22px var(--f-body); text-align: center; }
.kp-swatch input:focus-visible + i { outline: 3px solid var(--navy); outline-offset: 3px; }
.kp-swatch input:disabled ~ * { opacity: .4; }
.kp-swatches.off { opacity: .35; pointer-events: none; }
.kp-help { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; padding: 14px 16px; background: var(--cream); border-radius: var(--r-sm); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.kp-help input, .kp-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.kp-help b { color: var(--navy); }

/* contact fields */
.kp-fields { display: grid; gap: 12px; }
@media (min-width: 560px) { .kp-fields { grid-template-columns: 1fr 1fr; } }
.kp-field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy); }
.kp-field small { font-weight: 400; color: var(--muted); }
.kp-field input, .kp-field select { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid rgba(0, 47, 78, .25); border-radius: var(--r-sm); font: 400 16px var(--f-body); color: var(--ink); background: var(--white); }
.kp-field input:focus, .kp-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 165, 88, .3); }
.kp-field .bad { border-color: #b3261e; }
.kp-turnstile { margin-top: 18px; min-height: 0; }
.kp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kp-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }

/* step buttons */
.kp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.kp-nav .btn { flex: 1; max-width: 320px; margin-left: auto; }
.kp-back { background: none; border: 0; color: var(--navy); font-weight: 700; font-size: 15px; padding: 12px 4px; }
.kp-back:hover { color: var(--gold-dark); }
.kp-private { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.kp-private svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--navy); }

/* working screen */
.kp-working { text-align: center; }
.kp-working-photo { width: 100%; max-height: 280px; object-fit: cover; margin-bottom: 20px; animation: kp-pulse 2.4s ease-in-out infinite; }
.kp-working h2 { font-size: clamp(24px, 3vw, 32px); }
.kp-working-steps { display: grid; gap: 8px; max-width: 320px; margin: 16px auto 0; text-align: left; counter-reset: w; }
.kp-working-steps li { position: relative; padding-left: 30px; color: var(--muted); transition: color .3s; }
.kp-working-steps li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.kp-working-steps li.on { color: var(--navy); font-weight: 700; }
.kp-working-steps li.on::before { border-color: var(--gold); border-top-color: transparent; animation: kp-spin .8s linear infinite; }
.kp-working-steps li.done { color: var(--navy); }
.kp-working-steps li.done::before { background: var(--gold); border-color: var(--gold); }
.kp-waitq { max-width: 560px; margin: 22px auto 0; padding: 18px 20px; background: var(--cream); border-top: 3px solid var(--gold); text-align: left; }
.kp-waitq-h { margin: 0; font: 700 20px var(--f-head); color: var(--navy); }
.kp-waitq .kp-small { margin: 4px 0 0; }
.kp-waitq-thanks { margin: 14px 0 0; font-weight: 700; color: var(--navy); }
.kp-see { margin-top: 18px; }
.kp-demo { margin-top: 22px; padding: 16px; border: 2px dashed var(--gold); border-radius: var(--r-sm); text-align: left; font-size: 14.5px; }
.kp-demo pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: var(--cream); padding: 12px; max-height: 260px; overflow: auto; }
.kp-demo summary { cursor: pointer; font-weight: 700; color: var(--navy); }
@keyframes kp-spin { to { transform: rotate(360deg); } }
@keyframes kp-pulse { 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .kp-working-photo, .kp-working-steps li.on::before { animation: none; } }

/* ---------- Real job before/after (square corners) ---------- */
.kp-real-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .kp-real-grid { grid-template-columns: 1fr 1.3fr; } }
.kp-ba { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); --pos: 50%; }
.kp-ba img, .kp-ba-before { position: absolute; inset: 0; width: 100%; height: 100%; }
.kp-ba img { object-fit: cover; }
.kp-ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.kp-ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.kp-ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.kp-ba-tag { position: absolute; top: 12px; padding: 6px 10px; background: rgba(0, 27, 46, .78); color: var(--white); font: 900 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; z-index: 2; }
.kp-ba-tag-b { left: 12px; }
.kp-ba-tag-a { right: 12px; }
.kp-ba figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: var(--white); font-size: 13px; font-weight: 700; z-index: 2; pointer-events: none; }

/* ---------- How it works ---------- */
.kp-how { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .kp-how { grid-template-columns: repeat(3, 1fr); } }
.kp-how li { background: var(--white); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--sh-1); }
.kp-how span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 700 18px var(--f-head); margin-bottom: 14px; }
.kp-how b { display: block; font: 700 20px/1.25 var(--f-head); color: var(--navy); margin-bottom: 6px; }
.kp-how p { margin: 0; color: var(--ink-2); }
.kp-label-note { margin: 28px auto 0; max-width: 620px; font-size: 15px; color: var(--ink-2); }
.kp-label-note b { color: var(--navy); }

/* ---------- FAQ + proof ---------- */
.kp-quote { color: var(--navy); border-top-color: var(--line); margin-top: 28px; font-size: 18px; }
.kp-quote cite { color: var(--muted); }
.kp-quote .stars { color: var(--gold); }

/* ---------- Final ---------- */
.kp-final .kp-crown { width: 56px; height: auto; margin: 0 auto 18px; }
.kp-final .lead { margin-bottom: 26px; }
.kp-trust-light { margin-top: 16px; }

/* ---------- Footer ---------- */
.kp-foot { background: var(--navy-deep); color: rgba(255, 255, 255, .7); padding: 28px 0; font-size: 14px; }
.kp-foot p { margin: 0 0 6px; }
.kp-foot a { color: var(--white); }
.kp-foot b { color: var(--white); }
