/* ===================================================================
   /build — the compare-and-price tool.
   Loaded AFTER styles.css and adds only b- prefixed rules, so the
   main site's stylesheet stays the single source for the shared
   pieces (bar, btn, form, band, fineprint, foot). Nothing in here
   overrides a shared class.
   =================================================================== */

.b-top { padding: clamp(2.2rem, 6vw, 3.6rem) 0 0; }
.b-h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.04; margin: 0 0 .6rem; }
.b-lede { max-width: 34rem; margin: 0 0 2rem; }
.b-noscript { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }
.b-noscript a { color: var(--fire-2); font-weight: 600; }

/* --- pickers --------------------------------------------------- */
.b-pickers { display: flex; flex-direction: column; gap: .9rem; }
.b-pick { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.b-pick-lab {
  font-family: Inter, sans-serif; font-weight: 600; font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  min-width: 4.6rem;
}
.b-pick-lab small { display: block; letter-spacing: .08em; opacity: .75; font-size: .62rem; }
.b-pills { display: flex; gap: .55rem; flex-wrap: wrap; }
.b-pill {
  background: var(--surface2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .6em 1.25em; font: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.b-pill:hover { border-color: #46525f; }
.b-pill:focus-visible { outline: 2px solid var(--fire); outline-offset: 2px; }
.b-pill[aria-pressed="true"] { border-color: var(--fire); color: #fff; background: rgba(242,103,34,.16); }
.b-swatch-dot {
  display: inline-block; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  margin-right: .55em; vertical-align: -3px; border: 1px solid rgba(255,255,255,.25);
  background-color: var(--surface); background-size: cover; background-position: center;
}

/* --- sections -------------------------------------------------- */
.b-sec { padding: clamp(3rem, 7vw, 4.8rem) 0; }
.b-sec-band { padding: clamp(3rem, 7vw, 4.8rem) 0; }
.b-sec h2, .b-sec-band h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); margin: 0 0 1.6rem; }
.b-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

/* --- compare cards --------------------------------------------- */
.b-card {
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: 5px; overflow: hidden; display: flex; flex-direction: column;
}
.b-card-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.b-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-tag {
  position: absolute; top: .7rem; left: .7rem;
  background: rgba(13,16,20,.82); border: 1px solid var(--line);
  border-radius: 999px; padding: .3em .85em; font-size: .78rem; font-weight: 600;
}
.b-dimchip {
  position: absolute; right: .7rem; bottom: .7rem;
  background: rgba(13,16,20,.82); border: 1px solid var(--line);
  border-radius: 3px; padding: .3em .7em; font-size: .8rem; font-weight: 600;
}
/* Says which stone the picture is in. The grade between two of these colors is
   quiet, so the card carries the real close-up as well as the graded photo. */
.b-stonechip {
  position: absolute; left: .7rem; bottom: .7rem; display: flex; align-items: center;
  gap: .45em; background: rgba(13,16,20,.82); border: 1px solid var(--line);
  border-radius: 999px; padding: .3em .85em .3em .35em; font-size: .8rem; font-weight: 600;
}
.b-stonechip i {
  width: 1.15rem; height: 1.15rem; border-radius: 50%; flex: none;
  background-color: var(--surface); background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.3);
}

@keyframes b-fade { from { opacity: .3 } to { opacity: 1 } }
.b-flash { animation: b-fade .34s ease-out }
@media (prefers-reduced-motion: reduce) { .b-flash { animation: none } }
.b-card-b { padding: 1.2rem 1.2rem 1.4rem; }
.b-card-b h3 { margin: 0 0 .25rem; font-size: 1.35rem; }
.b-card-b .price { margin: 0 0 .6rem; }
.b-card-b .note { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
/* ONE MODEL ON ITS OWN. The row spans the width, so the card lies down rather
   than painting a four-figure-pixel-tall square photograph. */
.b-two.b-solo { grid-template-columns: 1fr; }
.b-solo .b-card { flex-direction: row; }
.b-solo .b-card-img { flex: 1 1 54%; aspect-ratio: 4 / 3; }
.b-solo .b-card-b { flex: 1 1 46%; align-self: center; padding: 1.6rem; }
.b-solo .b-card-b h3 { font-size: 1.6rem; }
.b-solo .b-card-b .note { font-size: 1rem; }
.b-bestfor { margin: 1.3rem 0 0; color: #ded6ca; font-size: .95rem; line-height: 1.55; }
.b-bestfor span {
  display: block; margin-bottom: .2rem; color: var(--muted);
  font-family: Inter, sans-serif; font-weight: 600; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.b-takeaway {
  margin: 1.6rem 0 0; font-size: 1.05rem; line-height: 1.6; color: #ded6ca;
  border-left: 2px solid var(--fire); padding: .2rem 0 .2rem 1rem;
}
.b-takeaway b { color: var(--fire-2); }

/* --- scale drawings -------------------------------------------- */
.b-scale {
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1rem 1rem .4rem;
}
.b-scale svg { width: 100%; height: auto; display: block; }
.b-scale-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .8rem; padding: .7rem .2rem .6rem; border-top: 1px solid var(--line); margin-top: .6rem;
}
.b-scale-foot b { font-family: Archivo, sans-serif; font-size: 1.1rem; }
.b-scale-foot span { color: var(--muted); font-size: .88rem; }
.b-scalenote { text-align: left; margin-left: 0; }

/* --- spec table ------------------------------------------------- */
.b-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.b-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.b-table th, .b-table td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.b-table thead th { font-family: Archivo, sans-serif; font-size: 1.05rem; }
.b-table tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.b-table td { font-weight: 600; }
.b-table .b-hl { color: var(--fire-2); }

/* --- includes --------------------------------------------------- */
.b-incl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.b-incl > div {
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1.1rem 1.1rem 1.3rem;
}
.b-incl b { display: block; font-family: Archivo, sans-serif; font-size: 1.05rem; margin-bottom: .35rem; }
.b-incl span { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* --- estimate --------------------------------------------------- */
.b-est {
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: 5px; padding: .4rem 1.2rem 1.2rem;
}
.b-est-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-size: .97rem; font-weight: 600; color: #ded6ca;
}
.b-est-row select {
  width: auto; min-width: 11rem; max-width: 60%; margin-top: 0;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  border-radius: 3px; padding: .6em .7em; font: inherit; font-size: .95rem;
}
.b-est-row select:focus { outline: 2px solid var(--fire); outline-offset: 1px; }
.b-est-line b { font-family: Archivo, sans-serif; font-size: 1.1rem; }
.b-est-box { cursor: pointer; align-items: flex-start; }
.b-est-box input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--fire); flex: none; }
.b-est-boxtext { flex: 1; }
.b-est-boxtext b { display: block; font-weight: 600; }
.b-est-boxtext small { display: block; margin-top: .25rem; color: var(--muted); font-weight: 400; font-size: .85rem; }
.b-est-box > b { font-family: Archivo, sans-serif; white-space: nowrap; }
.b-est-total {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 1.2rem 0 .4rem; border-top: 2px solid var(--ink); margin-top: .2rem;
}
.b-est-total span { font-weight: 600; font-size: 1.02rem; }
.b-est-total strong { font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.3rem); }

/* --- preview ---------------------------------------------------- */
.b-preview { display: flex; gap: 1.3rem; align-items: center; margin-top: 1.4rem; }
.b-tiles { display: flex; gap: .7rem; flex: none; }
.b-tile { margin: 0; width: 7rem; }
.b-tile img {
  width: 7rem; height: 7rem; object-fit: cover;
  border-radius: 4px; display: block; border: 1px solid var(--line);
}
.b-tile figcaption {
  margin-top: .45rem; font-size: .78rem; line-height: 1.3; color: var(--muted); text-align: center;
}
.b-swatch-missing {
  width: 7rem; height: 7rem; border-radius: 4px;
  border: 1px dashed var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: .72rem; line-height: 1.3; color: var(--muted); padding: .5rem;
}
.b-preview-line { margin: .1rem 0 .3rem; font-weight: 600; font-size: 1.02rem; color: #ded6ca; }
.b-preview-cap { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* --- send + messenger -------------------------------------------- */
.b-send {
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1.6rem 1.4rem 1.8rem;
}
.b-send h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.b-send .sub { margin: 0 0 1.4rem; }
.b-msgr {
  margin-top: 1.2rem; border: 1px solid var(--line);
  border-radius: 5px; padding: 1.3rem 1.4rem 1.5rem; background: rgba(255,255,255,.02);
}
.b-msgr-head { margin: 0 0 .9rem; font-weight: 700; font-size: 1.02rem; }
.b-msgr-icon { color: #0a84ff; margin-right: .3em; }
.b-msg {
  margin: 0; padding: .9rem 1rem; background: var(--bg);
  border: 1px dashed var(--line); border-radius: 4px;
  font: inherit; font-size: .9rem; line-height: 1.65; color: #ded6ca;
  white-space: pre-wrap; word-break: break-word; user-select: all;
}
.b-msgr-steps { margin: 1rem 0 1rem 1.1rem; padding: 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.b-msgr-steps b { color: var(--ink); }
.b-copy { margin-top: 0; }
.b-copynote { margin: .6rem 0 0; min-height: 1.2em; text-align: center; font-size: .9rem; color: var(--fire-2); font-weight: 600; }
.b-copynote.warn { color: #ffd08a; font-weight: 500; }
.b-contact { margin-top: 1.4rem; }
.b-legal { text-align: left; margin-left: 0; max-width: none; font-size: .8rem; }

/* --- phone -------------------------------------------------------- */
@media (max-width: 860px) {
  .b-incl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .b-two { grid-template-columns: 1fr; gap: 1.1rem; }
  .b-solo .b-card { flex-direction: column; }
  .b-solo .b-card-img { aspect-ratio: 1; }
  .b-solo .b-card-b { padding: 1.2rem 1.2rem 1.4rem; }
  .b-pick { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .b-pick-lab { min-width: 0; }
  .b-pill { padding: .62em 1.1em; font-size: .92rem; }
  .b-est-row { flex-direction: column; align-items: stretch; gap: .5rem; }
  .b-est-row select { max-width: none; width: 100%; }
  .b-est-line, .b-est-box { flex-direction: row; align-items: center; }
  .b-est-box { align-items: flex-start; }
  .b-incl { grid-template-columns: 1fr; }
  .b-preview { flex-direction: column; align-items: flex-start; }
}
