/* Diamond District — inner pages. Builds on the tokens and base in site.css. */

body.page { padding-top: 0; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: var(--s-9) 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38ch); gap: var(--s-7); align-items: end; margin-bottom: var(--s-8); }
.section__head h2 { max-width: 14ch; }
.section__head h2 em { color: var(--text-muted); }
.section__head p { color: var(--text-muted); }
@media (max-width: 860px) { .section__head { grid-template-columns: 1fr; gap: var(--s-4); } }
.muted { color: var(--text-muted); }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- page hero ---------- */
.page-hero { position: relative; padding: clamp(120px, 18vh, 200px) 0 var(--s-9); overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 112px); align-items: end; }
.page-hero--solo .wrap { grid-template-columns: 1fr; }
.page-hero__title { font-size: var(--t-3xl); line-height: 0.94; letter-spacing: -0.045em; max-width: 11ch; margin: var(--s-2) 0 var(--s-7); }
.page-hero__title em { color: var(--text-muted); }
.page-hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.page-hero__title .line__in { display: inline-block; }
.page-hero__lede { font-size: var(--t-lg); line-height: 1.45; color: var(--text-muted); max-width: 40ch; }
.page-hero__media { aspect-ratio: 4 / 5; }
.page-hero__media--wide { aspect-ratio: 16 / 9; }
.page-hero__stats { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--border); color: var(--text-muted); }
.page-hero__stats strong { color: var(--text); font-weight: 500; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 15%, rgba(12, 11, 10, 0.4) 70%), linear-gradient(0deg, var(--surface), transparent 40%); }
@media (max-width: 900px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 4 / 3; order: -1; }
}

/* ---------- chips, toggles, selects ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: transparent; color: var(--text-muted);
  font: 400 var(--t-sm)/1 var(--f-body); cursor: pointer; transition: color var(--d-micro), background var(--d-std), border-color var(--d-std);
}
.chip:hover { color: var(--text); border-color: var(--text-muted); }
.chip[aria-pressed='true'], .chip[aria-checked='true'], .chip[aria-selected='true'] { background: var(--text); border-color: var(--text); color: var(--surface); }
.chip .shape-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.chip__n { font-family: var(--f-mono); font-size: 10px; opacity: 0.7; }
.select { position: relative; }
.select select, .input {
  min-height: 44px; padding: 0 var(--s-4); background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); border-radius: 0;
  font: 400 var(--t-sm) var(--f-body); appearance: none; -webkit-appearance: none; width: 100%;
}
.select select { padding-right: var(--s-7); background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--text-muted) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--ghost::after { display: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(12, 11, 10, 0.55); backdrop-filter: blur(8px); color: var(--text); cursor: pointer; transition: background var(--d-std), border-color var(--d-std), transform var(--d-micro); }
.icon-btn:hover { border-color: var(--text); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.icon-btn[aria-pressed='true'] svg { fill: var(--accent); stroke: var(--accent); }
.icon-btn[aria-pressed='true'] { animation: pop 420ms var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.18); } }

/* ---------- filter bar ---------- */
.filterbar { position: sticky; top: 76px; z-index: 20; background: rgba(12, 11, 10, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--border); }
.filterbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); flex-wrap: wrap; }
.filterbar__right { display: flex; gap: var(--s-3); align-items: center; }
.count { color: var(--text-muted); }
.count strong { color: var(--text); font-weight: 500; }
@media (max-width: 720px) {
  .filterbar { top: 68px; }
  .filterbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filterbar .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
}

/* ---------- vault grid ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) clamp(16px, 2.4vw, 40px); padding-top: var(--s-8); }
.vcard { position: relative; }
.vcard.is-feature { grid-column: span 2; }
.vcard.is-feature .vcard__media { aspect-ratio: 16 / 11; }
.vcard__media { aspect-ratio: 15 / 17; cursor: pointer; }
.vcard__media img { transition: transform 1100ms var(--ease-out); }
.vcard:hover .vcard__media img { transform: scale(1.05); }
.vcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%); transform: translateX(-100%); pointer-events: none; }
.vcard:hover .vcard__media::after { transform: translateX(100%); transition: transform 1100ms var(--ease-out); }
.vcard__heart { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 2; }
.vcard__meta { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); padding-top: var(--s-4); margin-top: var(--s-4); border-top: 1px solid var(--border); }
.vcard__meta h3 { font-size: var(--t-lg); }
.vcard__meta p { grid-column: 1 / -1; color: var(--text-muted); font-size: 10.5px; }
.vcard__cat { color: var(--text-faint); align-self: center; }
.vcard__open { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.vcard__open::after { content: ''; position: absolute; inset: 0; }
.empty { grid-column: 1 / -1; padding: var(--s-10) 0; text-align: center; color: var(--text-muted); }
.empty h3 { font-size: var(--t-xl); color: var(--text); margin-bottom: var(--s-3); }
.shortlist { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; padding: var(--s-5) var(--s-6); margin-top: var(--s-7); background: var(--surface-2); border: 1px solid var(--border); }
.shortlist[hidden] { display: none; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vgrid { grid-template-columns: 1fr; } .vcard.is-feature { grid-column: auto; } .vcard.is-feature .vcard__media { aspect-ratio: 15 / 17; } }

/* ---------- dialog (quick view, compare) ---------- */
.dlg { width: min(1100px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); overflow: auto; }
.dlg::backdrop { background: rgba(6, 5, 4, 0.78); backdrop-filter: blur(6px); }
.dlg[open] { animation: dlg-in 600ms var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.dlg__close { position: absolute; top: var(--s-4); right: var(--s-4); z-index: 3; }
.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv__media { aspect-ratio: 15 / 17; }
.qv__body { padding: var(--s-8) var(--s-7) var(--s-7); display: grid; align-content: start; gap: var(--s-5); }
.qv__body h2 { font-size: var(--t-2xl); }
.qv__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; margin-top: var(--s-3); }
.qv__nav { display: flex; gap: var(--s-2); margin-top: auto; padding-top: var(--s-5); }
@media (max-width: 760px) { .qv { grid-template-columns: 1fr; } .qv__media { aspect-ratio: 4 / 3; } .qv__body { padding: var(--s-6) var(--s-5); } }

.spec { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.spec th, .spec td { text-align: left; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec th { font: 400 var(--t-xs)/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); width: 40%; }

/* ---------- diamond finder ---------- */
.finder { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.finder > * { min-width: 0; }
.stage { position: sticky; top: 96px; display: grid; gap: var(--s-4); }
.stage__canvas { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, var(--surface-3), var(--surface) 70%); border: 1px solid var(--border); overflow: hidden; }
.stage__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__fallback { position: absolute; inset: 0; margin: auto; width: 50%; height: 50%; color: var(--text-faint); }
.stage__ref { position: absolute; left: var(--s-4); top: var(--s-4); color: var(--text-muted); }
.stage__note { color: var(--text-faint); font-size: 10.5px; }
.stage__title { font-family: var(--f-display); font-size: var(--t-xl); letter-spacing: -0.02em; line-height: 1.1; }
.filters { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--border); margin-bottom: var(--s-5); }
.filters__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.flabel { display: flex; justify-content: space-between; margin-bottom: var(--s-3); color: var(--text-muted); }
.flabel output { color: var(--text); }
@media (max-width: 1100px) { .filters__row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; grid-template-columns: minmax(0, 1fr); }
  .stage > * { min-width: 0; }
  .stage__canvas { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .filters__row { grid-template-columns: 1fr; } }

/* dual range */
.range2 { position: relative; height: 28px; }
.range2__track { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--border-strong); }
.range2__fill { position: absolute; top: 13px; height: 2px; background: var(--text); }
.range2 input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range2 input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--text); cursor: grab; }
.range2 input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--text); cursor: grab; }
.range2 input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent); }
.range2__ticks { display: flex; justify-content: space-between; color: var(--text-faint); font: 10px/1 var(--f-mono); margin-top: var(--s-2); }

.results { width: 100%; border-collapse: collapse; }
.results th { text-align: left; font: 400 10.5px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.results th button { background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 0; }
.results th button[aria-sort]::after { content: ' ↕'; opacity: 0.5; }
.results th[aria-sort='ascending'] button::after { content: ' ↑'; opacity: 1; }
.results th[aria-sort='descending'] button::after { content: ' ↓'; opacity: 1; }
.results td { padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--border); font-size: var(--t-sm); white-space: nowrap; }
.results tbody tr { cursor: pointer; transition: background var(--d-std); }
.results tbody tr:hover { background: var(--surface-2); }
.results tbody tr.is-selected { background: var(--surface-3); box-shadow: inset 2px 0 0 var(--accent); }
.results .shape-cell { display: flex; align-items: center; gap: var(--s-3); text-transform: capitalize; }
.results .shape-ico { width: 22px; height: 22px; fill: none; stroke: var(--text-muted); stroke-width: 1.3; }
.results .ref { color: var(--text-faint); font: 10.5px var(--f-mono); }
.results .num { font-family: var(--f-mono); font-size: var(--t-xs); }
.cmp { display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; color: var(--text-muted); font: 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.cmp input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (max-width: 760px) {
  .results, .results tbody { display: block; width: 100%; }
  .results thead { display: none; }
  .results tr { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; row-gap: var(--s-2); padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--border); }
  .results td { border: 0; padding: 0; }
  .results td[data-col='shape'] { grid-column: 1 / 4; }
  .results td:last-child { grid-column: 4; grid-row: 1; justify-self: end; }
  .results td[data-col='mm'], .results td[data-col='lab'] { display: none; }
}
.filters__toggle { display: none; }
@media (max-width: 900px) {
  .filters__toggle { display: inline-flex; }
  .filters:not(.is-open) .filters__row { display: none; }
  .js-shapes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .js-shapes .chip { flex: 0 0 auto; }
}

.tray { position: fixed; left: 50%; bottom: var(--s-5); z-index: 40; transform: translate(-50%, 160%); display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); background: var(--text); color: var(--surface); border-radius: var(--r-pill); transition: transform 600ms var(--ease-out); max-width: calc(100vw - 32px); }
.tray.is-on { transform: translate(-50%, 0); }
.tray__items { display: flex; gap: var(--s-2); font: 500 var(--t-xs) var(--f-mono); }
.tray .btn { background: var(--surface); color: var(--text); min-height: 40px; }
.tray__clear { background: none; border: 0; color: inherit; font: var(--t-xs) var(--f-mono); text-decoration: underline; cursor: pointer; }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); text-align: left; font-size: var(--t-sm); }
.cmp-table th { font: 400 var(--t-xs) var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.cmp-table td.best { color: var(--accent); }

/* ---------- steps form (sell) ---------- */
.stepper { background: var(--surface-2); border: 1px solid var(--border); padding: clamp(20px, 3vw, 48px); }
.stepper__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-bottom: var(--s-7); }
.stepper__bar li { list-style: none; border-top: 2px solid var(--border-strong); padding-top: var(--s-3); color: var(--text-faint); transition: color var(--d-std), border-color var(--d-std); }
.stepper__bar li.is-done, .stepper__bar li.is-current { border-color: var(--text); color: var(--text); }
.stepper__bar { padding: 0; margin-top: 0; }
.step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.step.is-current { display: grid; gap: var(--s-5); animation: step-in 500ms var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
.step h3 { font-size: var(--t-xl); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.stepper__nav { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-7); }
.summary { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
.summary li span:first-child { color: var(--text-faint); font: var(--t-xs) var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* timeline */
.timeline-wrap { position: relative; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--border-strong); }
.timeline__fill { position: absolute; left: 0; top: 7px; height: 1px; width: 0; background: var(--accent); z-index: 1; }
.timeline li { position: relative; padding-top: var(--s-7); }
.timeline li::before { content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 1px solid var(--text-muted); }
.timeline h3 { margin: var(--s-2) 0; }
.timeline p { color: var(--text-muted); font-size: var(--t-sm); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: var(--s-6); padding-left: var(--s-7); }
  .timeline::before { left: calc(var(--s-7) * -1 + 7px); right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline__fill { left: 7px; top: 0; width: 1px; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: calc(var(--s-7) * -1); }
}

/* factors list (editorial, ruled) */
.factors { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(32px, 6vw, 96px); }
.factors li { break-inside: avoid; padding: var(--s-5) 0; border-top: 1px solid var(--border); }
.factors h3 { margin-bottom: var(--s-2); }
.factors p { color: var(--text-muted); font-size: var(--t-sm); }
@media (max-width: 760px) { .factors { columns: 1; } }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.checklist label { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4); border: 1px solid var(--border); cursor: pointer; transition: border-color var(--d-std), background var(--d-std); }
.checklist input { width: 20px; height: 20px; accent-color: var(--accent); }
.checklist input:checked + span { color: var(--text-muted); text-decoration: line-through; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: var(--s-5); align-items: center; padding: var(--s-5) 0; cursor: pointer; font-family: var(--f-display); font-size: var(--t-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-mono); color: var(--text-muted); transition: transform var(--d-lg) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); max-width: 64ch; padding-bottom: var(--s-5); }
.faq details[open] p { animation: step-in 500ms var(--ease-out); }

/* ---------- guide ---------- */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); }
.toc { position: sticky; top: 110px; align-self: start; display: grid; gap: var(--s-1); }
.toc a { display: flex; gap: var(--s-3); padding: var(--s-2) 0; color: var(--text-faint); text-decoration: none; font-size: var(--t-sm); transition: color var(--d-std); }
.toc a span { font: 10.5px var(--f-mono); padding-top: 3px; }
.toc a.is-active { color: var(--text); }
.toc a.is-active span { color: var(--accent); }
.gsec { padding-bottom: var(--section); }
.gsec + .gsec { padding-top: var(--s-4); border-top: 1px solid var(--border); }
.gsec__num { color: var(--text-faint); margin: var(--s-6) 0 var(--s-3); }
.gsec h2 { margin-bottom: var(--s-5); max-width: 16ch; }
.gsec h2 em { color: var(--text-muted); }
.gsec > p { color: var(--text-muted); max-width: 62ch; margin-bottom: var(--s-5); }
.widget { margin-top: var(--s-7); padding: clamp(20px, 3vw, 40px); background: var(--surface-2); border: 1px solid var(--border); }
.widget__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); align-items: center; margin-bottom: var(--s-5); }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .toc { display: none; } }

.cut-svg { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto; }
.cut-svg .stone { fill: rgba(223, 233, 242, 0.05); stroke: var(--text-muted); stroke-width: 1; }
.cut-svg .ray { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cut-svg .ray--lost { stroke: #c96f5c; stroke-dasharray: 4 4; }
.cut-verdict { text-align: center; margin-top: var(--s-4); color: var(--text-muted); }

.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--s-3); }
.swatch { display: grid; justify-items: center; gap: var(--s-2); background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: var(--s-2) 0; font: var(--t-xs) var(--f-mono); }
.swatch svg { width: 100%; max-width: 72px; aspect-ratio: 1; }
.swatch[aria-checked='true'] { color: var(--text); }
.swatch[aria-checked='true'] svg { filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25)); }
.swatch-note { margin-top: var(--s-5); color: var(--text-muted); min-height: 3em; }
@media (max-width: 560px) { .swatches { grid-template-columns: repeat(4, 1fr); } }

.loupe-stage { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-7); align-items: center; }
.loupe-stage svg { width: 100%; height: auto; }
.grade-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.grade-list li { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); padding: var(--s-2) var(--s-3); border-left: 2px solid transparent; color: var(--text-faint); font-size: var(--t-sm); transition: color var(--d-std), border-color var(--d-std), background var(--d-std); }
.grade-list li b { font: 500 var(--t-xs) var(--f-mono); }
.grade-list li.on { color: var(--text); border-color: var(--accent); background: var(--surface-3); }
@media (max-width: 640px) { .loupe-stage { grid-template-columns: 1fr; } .loupe-stage svg { max-width: 200px; margin: 0 auto; } }

.scale-stage { display: flex; align-items: center; justify-content: center; gap: var(--s-8); min-height: 200px; flex-wrap: wrap; }
.scale-item { display: grid; justify-items: center; gap: var(--s-3); color: var(--text-muted); }
.coin { border-radius: 50%; border: 1px dashed var(--text-faint); display: grid; place-items: center; color: var(--text-faint); font: 10px var(--f-mono); }
.true-gem { color: var(--text); transition: width 200ms var(--ease-out), height 200ms var(--ease-out); }
.big-readout { font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.03em; }
.big-readout small { font-size: 0.35em; color: var(--text-muted); font-family: var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; margin-left: var(--s-2); }
.slider { width: 100%; accent-color: var(--accent); }

.shape-table td:first-child { display: flex; align-items: center; gap: var(--s-3); text-transform: capitalize; font-family: var(--f-display); font-size: var(--t-md); }
.shape-table .shape-ico { width: 26px; height: 26px; fill: none; stroke: var(--text-muted); stroke-width: 1.3; }

.sizer { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.sizer__canvas { display: grid; place-items: center; min-height: 260px; position: relative; }
.card-outline { border: 1px dashed var(--text-muted); border-radius: 3.5mm; display: grid; place-items: center; color: var(--text-faint); font: 10px var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.ring-outline { border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 0 10px rgba(216, 180, 122, 0.08); }
.sizer__out { display: grid; gap: var(--s-4); }
.tabs { display: flex; gap: var(--s-2); margin-bottom: var(--s-5); }
@media (max-width: 760px) { .sizer { grid-template-columns: 1fr; } }

/* ---------- booking ---------- */
.book { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.book__card { position: sticky; top: 100px; background: var(--surface-2); border: 1px solid var(--border); padding: var(--s-6); display: grid; gap: var(--s-4); }
.book__card h3 { font-size: var(--t-xl); }
.fieldset { border: 0; padding: 0; margin: 0 0 var(--s-8); }
.fieldset legend { font-family: var(--f-display); font-size: var(--t-xl); letter-spacing: -0.02em; margin-bottom: var(--s-5); padding: 0; }
.fieldset legend span { font: var(--t-xs) var(--f-mono); color: var(--text-faint); margin-right: var(--s-3); letter-spacing: 0.1em; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.type { position: relative; display: grid; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--border-strong); cursor: pointer; transition: border-color var(--d-std), background var(--d-std); }
.type input { position: absolute; opacity: 0; }
.type strong { font-family: var(--f-display); font-weight: 400; font-size: var(--t-lg); }
.type span { color: var(--text-muted); font-size: var(--t-sm); }
.type small { color: var(--text-faint); font: 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.type:has(input:checked) { border-color: var(--text); background: var(--surface-3); }
.type:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dates { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-3); scrollbar-width: thin; }
.date { flex: 0 0 76px; display: grid; justify-items: center; gap: 2px; padding: var(--s-3) 0; border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted); cursor: pointer; font: inherit; transition: background var(--d-std), color var(--d-std), border-color var(--d-std); }
.date b { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); color: var(--text); line-height: 1; }
.date small { font: 10px var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; }
.date[aria-checked='true'] { background: var(--text); border-color: var(--text); color: var(--surface); }
.date[aria-checked='true'] b { color: var(--surface); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s-2); }
.slot { min-height: 44px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: var(--t-sm) var(--f-mono); cursor: pointer; transition: background var(--d-std), color var(--d-std); }
.slot[aria-checked='true'] { background: var(--text); color: var(--surface); }
.slot:disabled { color: var(--text-faint); border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } .book__card { position: relative; top: 0; } }
@media (max-width: 640px) { .types { grid-template-columns: 1fr; } }

.info-band { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-strong); }
.info-band > div { padding: var(--s-6) var(--s-5) 0 0; }
.info-band > div + div { border-left: 1px solid var(--border); padding-left: var(--s-5); }
.info-band p:last-child { color: var(--text-muted); }
@media (max-width: 760px) { .info-band { grid-template-columns: 1fr; } .info-band > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); margin-top: var(--s-5); } }

/* closing CTA band shared by inner pages */
.cta-band { position: relative; overflow: hidden; padding: var(--section) 0; border-top: 1px solid var(--border); }
.cta-band h2 { font-size: var(--t-3xl); line-height: 0.94; letter-spacing: -0.045em; margin-bottom: var(--s-6); }
.cta-band h2 em { color: var(--text-muted); }
.cta-band__row { display: flex; gap: var(--s-6); align-items: center; flex-wrap: wrap; }

.split-4-7 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); }
@media (max-width: 860px) { .split-4-7 { grid-template-columns: 1fr; } }
