/* ==========================================================================
   Zement Fireplace Visualizer
   Everything is namespaced under #zfs so the page survives Elementor.
   Layout follows the approved mockup (13 Oct 2026): dark header and hero,
   uppercase Montserrat headings, lime calls to action, dark collections band.
   Brand tokens come from zementstone.com's own CSS.
   ========================================================================== */

#zfs, #zfs *, #zfs *::before, #zfs *::after { box-sizing: border-box; }
/* A display rule on an element beats the hidden attribute, which silently keeps
   overlays on screen. Make hidden mean hidden, everywhere inside the widget. */
#zfs [hidden] { display: none !important; }

#zfs {
  --ink:       #1e1e1e;   /* site near-black */
  --night:     #151515;   /* dark bands */
  --night-2:   #232221;
  --white:     #ffffff;
  --paper:     #f4f3f1;   /* light bands */
  --line:      #e0e0e0;
  --line-dark: #3a3a3a;
  --mute:      #5c5c5c;   /* secondary text on light (AA on white) */
  --mute-dark: #b9b9b9;   /* secondary text on dark */
  --lime:      #75bd43;
  --lime-deep: #5a9834;

  --head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --gut: clamp(1.1rem, 0.5rem + 2.4vw, 3rem);
  --wrap: 76rem;
  --seam: 3px;

  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

#zfs img { display: block; max-width: 100%; }
#zfs h1, #zfs h2, #zfs h3 {
  font-family: var(--head); font-weight: 800; line-height: 1.05; margin: 0;
  text-transform: uppercase; letter-spacing: -0.005em;
}
#zfs p { margin: 0; }
#zfs a { color: inherit; }
#zfs :focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
/* Headings take focus on each step so screen readers land in the right place. */
#zfs [tabindex="-1"]:focus, #zfs [tabindex="-1"]:focus-visible { outline: none; }

.zfs-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ───────────── Buttons and links ───────────── */
.zfs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font: 700 0.92rem/1 var(--head); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 1.4rem; border-radius: 2px; cursor: pointer;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  transition: background .12s linear, color .12s linear, border-color .12s linear;
}
.zfs-btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.zfs-btn--go { background: var(--lime); border-color: var(--lime); color: #10230a; }
.zfs-btn--go:hover { background: var(--lime-deep); border-color: var(--lime-deep); color: var(--white); }
.zfs-btn--ghost { background: transparent; border-color: var(--line); color: var(--mute); }
.zfs-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.zfs-btn--sm { padding: 0.7rem 1rem; font-size: 0.78rem; }
.zfs-btn--xl { padding: 1.15rem 1.6rem; font-size: 1rem; }
.zfs-btn--block { display: flex; width: 100%; }
.zfs-btn[disabled] { opacity: .5; cursor: progress; }

.zfs-link {
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.zfs-link--light { color: var(--white); }
.zfs-link--light:hover { color: var(--lime); }

/* Eyebrow: lime rule + tracked caps, as on the mockup */
.zfs-eyebrow {
  display: flex; align-items: center; gap: 0.8rem;
  font: 600 0.74rem/1.2 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute-dark);
}
.zfs-eyebrow::before { content: ""; width: 2.2rem; height: 3px; background: var(--lime); flex: none; }
.zfs-eyebrow--dark { color: var(--mute); }

/* ───────────── Header ───────────── */
.zfs-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.7rem var(--gut);
  background: var(--night); color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.zfs-brand { display: block; line-height: 0; flex: none; }
.zfs-brand img { height: 2.3rem; width: auto; }
.zfs-nav { display: none; gap: 1.8rem; margin-left: auto; }
.zfs-nav a {
  font: 600 0.72rem/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase;
  color: #d6d6d6; text-decoration: none; white-space: nowrap;
}
.zfs-nav a:hover { color: var(--lime); }
.zfs-bar > .zfs-btn { margin-left: auto; flex: none; }
@media (min-width: 1000px) {
  .zfs-nav { display: flex; }
  .zfs-bar > .zfs-btn { margin-left: 1.2rem; }
}

/* Progress rail — only inside the funnel */
.zfs-rail { display: none; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.65rem var(--gut); }
#zfs:not([data-step="intro"]) .zfs-rail { display: block; }
.zfs-rail ol { display: flex; align-items: center; gap: 0; margin: 0 auto; padding: 0; list-style: none; max-width: var(--wrap); }
.zfs-rail li {
  display: flex; align-items: center; gap: 0.5rem;
  font: 600 0.8rem/1 var(--body); color: var(--mute);
  padding-right: 1rem; margin-right: 1rem; border-right: 1px solid var(--line);
}
.zfs-rail li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.zfs-rail-n {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border: 1.5px solid var(--line); border-radius: 50%; font: 700 0.75rem/1 var(--head);
}
.zfs-rail li[data-on] { color: var(--ink); }
.zfs-rail li[data-on] .zfs-rail-n { background: var(--lime); border-color: var(--lime); color: #10230a; }
.zfs-rail li[data-done] .zfs-rail-n { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ───────────── Screens ───────────── */
.zfs-screen { display: none; }
#zfs[data-step="intro"]  [data-screen="intro"],
#zfs[data-step="upload"] [data-screen="upload"],
#zfs[data-step="stone"]  [data-screen="stone"],
#zfs[data-step="result"] [data-screen="result"] { display: block; }

/* ───────────── Before / after (only for pixel-registered pairs) ───────────── */
.zfs-ba {
  --pos: 50%;
  container-type: inline-size;
  position: relative; margin: 0; overflow: hidden;
  background: #2a2a2a; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.zfs-ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.zfs-ba-after { position: relative; z-index: 1; height: auto; }
.zfs-ba-clip { position: absolute; inset: 0; z-index: 2; overflow: hidden; width: var(--pos, 50%); }
/* #zfs is an ID, so `#zfs img { max-width: 100% }` outranks a plain class rule.
   Without matching specificity the shutter clamps this image to its own width and
   the before shot shows a centre crop instead of the left edge. */
#zfs .zfs-ba-clip img { position: absolute; top: 0; left: 0; width: var(--fig-w, 100cqw); height: 100%; max-width: none; }
.zfs-ba-seam {
  position: absolute; top: 0; bottom: 0; z-index: 3;
  left: var(--pos, 50%); width: var(--seam); margin-left: calc(var(--seam) / -2);
  background: var(--white);
}
.zfs-ba-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 3rem; height: 3rem; padding: 0; display: grid; place-items: center;
  background: rgba(21,21,21,.75); color: var(--white);
  border: 2px solid var(--white); border-radius: 50%;
  cursor: ew-resize; touch-action: none;
}
.zfs-ba-grip svg { width: 1.3rem; height: 1.3rem; }
.zfs-ba-grip:hover, .zfs-ba-grip:active { background: var(--lime); color: #10230a; }
.zfs-ba-tag {
  position: absolute; z-index: 4; top: 0.85rem; padding: 0.4rem 0.7rem;
  font: 600 0.7rem/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(21,21,21,.85); color: var(--white); pointer-events: none;
}
.zfs-ba-tag--b { left: 0.85rem; }
.zfs-ba-tag--a { right: 0.85rem; color: var(--lime); }

/* Disclaimer (feedback item 9) — visible, not fine print */
.zfs-disclaimer { margin-top: 0.7rem; font-size: 0.8rem; line-height: 1.5; color: var(--mute); }
.zfs-disclaimer--dark { color: var(--mute-dark); }
.zfs-disclaimer--box { padding: 0.7rem 0.85rem; background: var(--paper); border-left: var(--seam) solid var(--lime); color: var(--ink); }

/* ───────────── Hero ───────────── */
.zfs-hero {
  display: grid; gap: 1.6rem;
  padding: 1.6rem var(--gut) 2rem;
  background: radial-gradient(120% 90% at 0% 0%, #34312d 0%, var(--night) 60%);
  color: var(--white);
}
.zfs-hero-copy { max-width: 40rem; }
.zfs-hero h1 { margin-top: 0.9rem; font-size: clamp(2.2rem, 1.2rem + 3.2vw, 3.6rem); line-height: 0.98; }
.zfs-hero h1 span { color: #cfc6b8; }
.zfs-hero-sub { margin-top: 0.9rem; font: 600 clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem)/1.35 var(--body); }
.zfs-hero-text { margin-top: 0.7rem; color: var(--mute-dark); font-size: 1rem; line-height: 1.55; max-width: 32rem; }
.zfs-hero-cta { margin-top: 1.3rem; }
.zfs-hero-fine { margin-top: 0.8rem; font-size: 0.86rem; color: var(--mute-dark); }
.zfs-hero-fine .zfs-link { margin-left: 0.25rem; }
@media (max-width: 599px) { .zfs-hero-cta .zfs-btn { width: 100%; } }
@media (min-width: 1100px) {
  .zfs-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 3rem; padding-block: 3.2rem; }
  .zfs-hero-copy { justify-self: end; }
  .zfs-hero-media { max-width: 46rem; }
}

/* ───────────── Section scaffolding ───────────── */
.zfs-how, .zfs-colls, .zfs-why, .zfs-faq { padding: 2.6rem var(--gut); }
#zfs .zfs-how > *, #zfs .zfs-colls > *, #zfs .zfs-why > *, #zfs .zfs-faq > * {
  max-width: var(--wrap); margin-left: auto; margin-right: auto;
}
.zfs-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.zfs-sec-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
.zfs-sec-note { font: 600 0.72rem/1.4 var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.zfs-ruled { display: flex; align-items: center; gap: 1rem; }
.zfs-ruled::before { content: ""; width: 2.6rem; height: 3px; background: var(--lime); flex: none; }

.zfs-ico { width: 2.3rem; height: 2.3rem; color: var(--ink); flex: none; }

/* How it works */
.zfs-how { background: var(--paper); }
.zfs-steps { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.zfs-steps li { display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: 0.9rem; }
.zfs-steps-n {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ink); color: var(--white); font: 700 1.05rem/1 var(--head);
}
.zfs-steps strong { display: block; font: 700 0.92rem/1.3 var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.zfs-steps p { margin-top: 0.25rem; color: var(--mute); font-size: 0.92rem; line-height: 1.5; }
@media (min-width: 860px) {
  .zfs-steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .zfs-steps li { padding: 0 1.6rem; border-left: 1px solid var(--line); }
  .zfs-steps li:first-child { border-left: 0; padding-left: 0; }
}

/* Collections — dark band */
.zfs-colls { background: var(--night); color: var(--white); }
.zfs-colls .zfs-sec-note { color: var(--mute-dark); }
.zfs-colls-grid {
  margin-top: 1.6rem; display: grid; gap: 4px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .zfs-colls-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .zfs-colls-grid { grid-template-columns: repeat(5, 1fr); } }
.zfs-coll {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  aspect-ratio: 4 / 5; background: #2a2a2a; color: var(--white); text-align: left;
}
.zfs-coll img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.zfs-coll > span {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 0.8rem 0.8rem;
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0));
}
.zfs-coll strong { display: block; font: 700 0.82rem/1.25 var(--head); letter-spacing: 0.08em; text-transform: uppercase; }
.zfs-coll em { display: block; margin-top: 0.25rem; font: 400 0.78rem/1.35 var(--body); font-style: normal; color: #d0d0d0; }
.zfs-coll:hover img, .zfs-coll:focus-visible img { transform: scale(1.05); }
.zfs-coll:hover { box-shadow: inset 0 0 0 3px var(--lime); }
/* Five tiles in a two-column phone grid would leave a gap — let the last one span. */
@media (max-width: 699px) { .zfs-coll:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 16 / 9; } }
.zfs-colls-all { margin-top: 1.2rem; }

/* Why Zement */
.zfs-why-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .zfs-why-list { grid-template-columns: repeat(4, 1fr); gap: 0; } .zfs-why-list li { padding: 0 1.4rem; border-left: 1px solid var(--line); } .zfs-why-list li:first-child { border-left: 0; padding-left: 0; } }
.zfs-why-list strong { display: block; margin-top: 0.7rem; font: 700 0.85rem/1.3 var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.zfs-why-list span { display: block; margin-top: 0.3rem; color: var(--mute); font-size: 0.88rem; line-height: 1.5; }

/* Make it real — dark band with the real showroom photo */
.zfs-real { display: grid; background: var(--night); color: var(--white); }
.zfs-real-media { margin: 0; position: relative; min-height: 15rem; }
.zfs-real-media img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 55%; }
.zfs-real-media figcaption {
  position: absolute; left: 0.8rem; bottom: 0.8rem; padding: 0.35rem 0.6rem;
  background: rgba(21,21,21,.8); font-size: 0.75rem; color: #ddd;
}
.zfs-real-copy { padding: 2.4rem var(--gut); align-self: center; }
.zfs-real-copy h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
.zfs-real-copy h2 span, .zfs-cta-h span { color: #cfc6b8; }
.zfs-real-copy > p { margin-top: 0.9rem; color: var(--mute-dark); max-width: 32rem; }
.zfs-real-copy .zfs-btn { margin-top: 1.4rem; }
.zfs-real-visit { margin-top: 1.2rem; font-size: 0.86rem; color: var(--mute-dark); }
@media (min-width: 900px) { .zfs-real { grid-template-columns: 1fr 1fr; } .zfs-real-copy { padding: 3rem 3.5rem; } }

/* FAQ — collapsed */
.zfs-faq h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); margin-bottom: 1rem; }
.zfs-faq details { border-top: 1px solid var(--line); }
.zfs-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.zfs-faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
  font: 700 0.95rem/1.35 var(--head);
}
.zfs-faq summary::-webkit-details-marker { display: none; }
.zfs-faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.85rem; font: 400 1.4rem/1 var(--body); color: var(--lime-deep); }
.zfs-faq details[open] summary::after { content: "–"; }
.zfs-faq details p { padding: 0 0 1.1rem; color: var(--mute); font-size: 0.93rem; line-height: 1.6; max-width: 46rem; }

/* ───────────── Upload ───────────── */
.zfs-pane { max-width: 44rem; margin: 0 auto; padding: 2.2rem var(--gut); }
.zfs-pane h2, .zfs-split-side h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.zfs-lede { margin-top: 0.8rem; color: var(--mute); font-size: 1rem; line-height: 1.6; max-width: 40rem; }
.zfs-preferred { margin-top: 1rem; padding: 0.7rem 0.9rem; background: var(--paper); border-left: var(--seam) solid var(--lime); font-weight: 500; }
.zfs-drop {
  display: grid; place-items: center; gap: 0.4rem;
  margin-top: 1.5rem; padding: clamp(2rem, 6vw, 3.4rem) 1.5rem;
  background: var(--paper); border: var(--seam) dashed #c9c9c9; text-align: center; cursor: pointer;
}
.zfs-drop:hover, .zfs-drop:focus-visible, .zfs-drop[data-over] { border-color: var(--lime-deep); border-style: solid; }
.zfs-drop-ico { width: 2.6rem; height: 2.6rem; color: var(--mute); }
.zfs-drop-main { font: 700 1rem/1.2 var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.zfs-drop-sub { font-size: 0.88rem; color: var(--mute); }
.zfs-tips { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.zfs-tips li { padding: 0.5rem 0 0.5rem 1rem; border-left: var(--seam) solid var(--line); color: var(--mute); font-size: 0.93rem; }
.zfs-tips li + li { margin-top: 0.25rem; }
.zfs-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.zfs-err { margin-top: 1rem; padding: 0.8rem 1rem; background: #fff4f2; border-left: var(--seam) solid #c8352b; color: #8e241c; font-size: 0.93rem; }

/* ───────────── Split screens (stone, result) ───────────── */
/* minmax(0, …) everywhere: a grid column's default minimum is its content's width,
   so the 11-tile "Try more" strip would otherwise stretch the page past the phone screen. */
.zfs-split { display: grid; grid-template-columns: minmax(0, 1fr); }
.zfs-split-view > *, .zfs-split-side > * { min-width: 0; }
@media (min-width: 900px) {
  .zfs-split { grid-template-columns: minmax(0, 1.15fr) minmax(24rem, 0.85fr); min-height: calc(100vh - 7rem); }
  .zfs-split-side { max-height: calc(100vh - 7rem); overflow-y: auto; }
}
.zfs-split-view {
  padding: var(--gut); background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 0.6rem;
}
.zfs-split-side { padding: var(--gut); }
.zfs-shot { margin: 0; }
.zfs-shot img { width: 100%; max-height: 60vh; object-fit: contain; background: #e9e8e6; }
.zfs-shot figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--mute); }
.zfs-split-view .zfs-ba { max-height: 68vh; }

/* Collection tabs on the stone step */
.zfs-tabs { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.zfs-tab {
  font: 600 0.72rem/1 var(--head); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  padding: 0.6rem 0.75rem; border-radius: 2px;
  background: var(--white); border: 1.5px solid var(--line); color: var(--mute);
}
.zfs-tab:hover { border-color: var(--ink); color: var(--ink); }
.zfs-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.zfs-tab-note { margin-top: 0.7rem; font-size: 0.88rem; color: var(--mute); }
.zfs-search { display: block; margin-top: 1rem; }
.zfs-search input {
  width: 100%; padding: 0.75rem 0.9rem; font: 400 1rem/1.2 var(--body);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 2px; color: var(--ink);
}
.zfs-search input:focus { border-color: var(--ink); outline: none; }
.zfs-chips { margin-top: 0.8rem; display: grid; gap: 0.5rem; }
.zfs-chipset { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: baseline; }
.zfs-chipset > b { font: 600 0.78rem/1.6 var(--body); color: var(--mute); min-width: 4.6rem; }
.zfs-chip {
  font: 600 0.8rem/1 var(--body); cursor: pointer; padding: 0.42rem 0.7rem; border-radius: 2px;
  background: transparent; border: 1.5px solid var(--line); color: var(--mute);
}
.zfs-chip:hover { border-color: var(--ink); color: var(--ink); }
.zfs-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.zfs-count { margin-top: 0.8rem; font-size: 0.82rem; color: var(--mute); }
.zfs-empty { margin-top: 1rem; color: var(--mute); }

/* Sample board — square tiles, hard edges, mortar-width gutters */
.zfs-grid { margin-top: 0.8rem; display: grid; gap: 3px; grid-template-columns: repeat(auto-fill, minmax(6.8rem, 1fr)); }
.zfs-tile {
  position: relative; padding: 0; cursor: pointer; overflow: hidden;
  border: 0; background: var(--line); color: var(--white); aspect-ratio: 1; display: block; text-align: left;
}
.zfs-tile img { width: 100%; height: 100%; object-fit: cover; }
.zfs-tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 0.5rem 0.45rem;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
  font: 700 0.76rem/1.2 var(--head);
}
.zfs-tile-sub { display: block; font: 400 0.7rem/1.3 var(--body); opacity: .85; }
.zfs-tile[aria-selected="true"] { box-shadow: inset 0 0 0 4px var(--lime), inset 0 0 0 6px var(--ink); }
.zfs-tile:hover img { opacity: .88; }

/* Result side */
.zfs-split-side .zfs-eyebrow { margin-bottom: 0.8rem; }
.zfs-blurb { margin-top: 0.8rem; color: var(--mute); font-size: 0.95rem; line-height: 1.55; max-width: 44ch; }
.zfs-spec { margin: 1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 1rem; }
.zfs-spec dt { font: 600 0.82rem/1.8 var(--body); color: var(--mute); }
.zfs-spec dd { margin: 0; font: 600 0.92rem/1.8 var(--body); }
.zfs-cta-card { margin-top: 1.4rem; padding: 1.3rem; background: var(--night); color: var(--white); }
.zfs-cta-h { font: 800 1.25rem/1.15 var(--head); text-transform: uppercase; margin-bottom: 1rem; }
.zfs-cta-fine { margin-top: 0.7rem; font-size: 0.8rem; color: var(--mute-dark); }

/* Quick switch — other stones from the same collection, under the render */
.zfs-switch { margin-top: 0.4rem; }
.zfs-switch-h { font: 600 0.72rem/1.3 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.zfs-switch-row { margin-top: 0.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: 4.6rem; gap: 3px; overflow-x: auto; padding-bottom: 0.3rem; }
.zfs-switch-row .zfs-tile { aspect-ratio: 1; }
.zfs-switch-row .zfs-tile-cap { padding: 1.2rem 0.3rem 0.3rem; font-size: 0.62rem; }

/* Demo badge — sits on the render itself */
.zfs-demo-badge {
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.85rem; z-index: 4;
  padding: 0.55rem 0.75rem; background: rgba(21,21,21,.9); color: var(--lime);
  font: 700 0.76rem/1.4 var(--body); text-align: center;
}

/* Working overlay */
.zfs-working {
  position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; gap: 0.9rem; justify-items: center;
  background: rgba(255,255,255,.93); text-align: center; padding: 1.5rem;
}
.zfs-working p { font: 700 1rem/1.3 var(--head); text-transform: uppercase; letter-spacing: 0.08em; }
.zfs-working-bar { display: block; width: min(16rem, 60vw); height: var(--seam); background: var(--line); overflow: hidden; }
.zfs-working-bar i { display: block; width: 40%; height: 100%; background: var(--lime-deep); animation: zfs-slide 1.15s ease-in-out infinite; }
@keyframes zfs-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ───────────── Quote dialog ───────────── */
.zfs-quote {
  width: min(34rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem); overflow-y: auto;
  padding: 0; border: 0; border-top: 5px solid var(--lime); background: var(--white); color: var(--ink);
  font-family: var(--body);
}
.zfs-quote::backdrop { background: rgba(10,10,10,.72); }
.zfs-quote-form, .zfs-quote-done { position: relative; padding: 1.6rem 1.4rem 1.4rem; }
.zfs-quote h2 { font: 800 1.4rem/1.1 var(--head); text-transform: uppercase; padding-right: 2rem; }
.zfs-quote-x {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 2.4rem; height: 2.4rem;
  border: 0; background: none; cursor: pointer; font: 300 1.9rem/1 var(--body); color: var(--mute);
}
.zfs-quote-x:hover { color: var(--ink); }
.zfs-quote-ctx { margin-top: 1rem; display: flex; gap: 0.8rem; align-items: center; padding: 0.6rem; background: var(--paper); }
.zfs-quote-ctx img { width: 5.2rem; height: 4rem; object-fit: cover; flex: none; }
.zfs-quote-ctx strong { display: block; font: 700 0.9rem/1.3 var(--head); text-transform: uppercase; }
.zfs-quote-ctx span { display: block; font-size: 0.82rem; color: var(--mute); }
.zfs-quote-noctx { margin-top: 0.8rem; color: var(--mute); font-size: 0.92rem; }
.zfs-fields { margin-top: 1.1rem; display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; }
.zfs-fields label { display: grid; gap: 0.3rem; font: 600 0.8rem/1.2 var(--body); grid-column: span 2; }
@media (min-width: 520px) { .zfs-fields label { grid-column: span 1; } .zfs-fields label:first-child, .zfs-fields .zfs-fields-wide { grid-column: span 2; } }
.zfs-fields em { font-style: normal; font-weight: 400; color: var(--mute); }
.zfs-fields input, .zfs-fields textarea {
  width: 100%; padding: 0.7rem 0.8rem; font: 400 1rem/1.3 var(--body);
  border: 1.5px solid var(--line); border-radius: 2px; background: var(--white); color: var(--ink);
}
.zfs-fields input:focus, .zfs-fields textarea:focus { border-color: var(--ink); outline: none; }
.zfs-fields [aria-invalid="true"] { border-color: #c8352b; }
.zfs-quote-form .zfs-btn { margin-top: 1.1rem; }
.zfs-quote-fine { margin-top: 0.7rem; font-size: 0.78rem; color: var(--mute); }
.zfs-quote-done { text-align: center; }
.zfs-quote-done svg { width: 3.4rem; height: 3.4rem; color: var(--lime-deep); margin: 0.4rem auto 0.8rem; display: block; }
.zfs-quote-done h2 { padding: 0; }
.zfs-quote-done p { margin-top: 0.7rem; color: var(--mute); }
.zfs-quote-done .zfs-btn { margin-top: 1.2rem; }
.zfs-quote-dev { font-size: 0.8rem; padding: 0.5rem; background: #fff8e1; color: #6b5300 !important; }

/* ───────────── Footer ───────────── */
.zfs-foot { background: var(--night); color: var(--mute-dark); border-top: 1px solid var(--line-dark); }
.zfs-foot-row {
  max-width: var(--wrap); margin: 0 auto; padding: 1.6rem var(--gut);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 2rem;
}
.zfs-foot-logo { height: 2.1rem; width: auto; margin-right: auto; }
.zfs-foot-row a { color: var(--white); text-decoration: none; font-size: 0.9rem; }
.zfs-foot-row a:hover, .zfs-foot-bottom a:hover { color: var(--lime); }
.zfs-foot-bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 0.9rem var(--gut) 1.4rem;
  border-top: 1px solid var(--line-dark); font-size: 0.76rem; display: grid; gap: 0.3rem;
}
.zfs-foot-bottom a { color: var(--mute-dark); }

@media (prefers-reduced-motion: reduce) {
  #zfs *, #zfs *::before, #zfs *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}
