/* Pro Surface Supply USA: the homepage, on assets/site.css (tokens, header,
   buttons, cards, footer) and assets/stage.css (the stage and the glass).
   The stage shell holds the hero, the blend picker and the pre-order steps
   over the broadcast floor; the catalog and the questions sit on slate. */

.home-shell { --dive: 64vh; }

/* Hero ---------------------------------------------------------------------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: clamp(26px, 6vh, 64px); padding-bottom: 6vh; }
@media (min-width: 900px) {
  .home-hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); align-items: center; gap: clamp(24px, 4vw, 64px); min-height: calc(100svh - 110px); }
}
.home-copy { max-width: 720px; }
.home-hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.4rem); line-height: 0.92; }
.home-hero h1 .line { display: block; }
.home-copy .offer { margin-top: 28px; }
.offer > .is-lead { box-shadow: inset 0 -2px 0 var(--blue-glow); }

.ask { display: grid; gap: 12px; justify-items: start; margin-top: 22px; }
.ask .btn-row { margin-top: 0; }
.addr { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; color: var(--silver); font-size: 0.98rem; }
.addr-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration-color: var(--blue-glow); text-underline-offset: 4px; overflow-wrap: anywhere; }
.addr-link:hover { color: #fff; text-decoration-thickness: 2px; }
/* Kept in the layout (visibility) until ui.js knows a copy method exists,
   so revealing it shifts nothing. */
.copy-btn {
  visibility: hidden; min-width: 64px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-control); border-radius: 999px;
  background: rgba(9, 12, 16, 0.8); color: var(--text); font: 600 0.78rem/1 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.can-copy .copy-btn { visibility: visible; }
html:not(.js) .copy-btn { display: none; }
.copy-btn:hover, .copy-btn.is-done { border-color: var(--blue-glow); color: #fff; }
/* Out of flow, so "Copied" appearing never moves the page. */
.status { position: absolute; top: 100%; left: 0; z-index: 2; color: var(--blue-text); font: 600 0.8rem/1.2 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.status:not(:empty) { padding: 5px 9px; border-radius: 4px; background: var(--ink); }
.fine { margin: 0; max-width: 40em; color: var(--silver); font-size: 0.95rem; line-height: 1.45; }

/* The sign: the logo standing over the floor. */
.sign { margin: 0; justify-self: center; width: min(70vw, 320px); }
.sign img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 46px rgba(30, 111, 232, 0.22)); }
@media (min-width: 900px) { .sign { width: min(100%, 460px); } }

/* Section heads on the stage --------------------------------------------------- */
.home-pick, .home-order { padding-top: clamp(72px, 16vh, 160px); }
.home-head { max-width: 760px; }
.home-head h2 { margin-top: 0; font-size: clamp(2.4rem, 5vw, 3.7rem); }
.home-head .lede { margin-top: 12px; }

/* The blend picker -------------------------------------------------------------- */
.pick-grid { display: grid; gap: 22px; margin-top: 30px; }
@media (min-width: 900px) { .pick-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: start; } }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 12px; border-radius: calc(var(--radius) + 4px); }
.swatch {
  position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 8px; min-width: 0; padding: 12px 4px 12px;
  border: 0; border-radius: 12px; background: none; color: var(--silver); font: 600 0.8rem/1.2 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: color 0.25s var(--ease);
}
.swatch span { text-wrap: balance; }
.swatch canvas {
  display: block; width: 64px; height: 64px; border-radius: 10px; background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 24px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.25s var(--ease), transform 0.35s var(--spring);
}
.swatch:hover { color: #fff; }
.swatch:hover canvas { transform: translateY(-2px) scale(1.04); }
.swatch[aria-checked="true"] { color: #fff; }
.swatch[aria-checked="true"] canvas { box-shadow: 0 0 0 2px var(--blue-glow), 0 12px 28px rgba(30, 111, 232, 0.45); }
/* Focused and selected must look different in the swatch group. */
.swatch:focus-visible { outline-color: #fff; }
/* The puck: a lit plate that slides to the chosen swatch with a little
   overshoot (ui.js sets its box). */
.puck {
  position: absolute; z-index: 0; left: 0; top: 0; width: var(--puck-w, 0px); height: var(--puck-h, 0px);
  transform: translate(var(--puck-x, 0px), var(--puck-y, 0px)); border-radius: 12px; opacity: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(88, 166, 255, 0.24), rgba(30, 111, 232, 0.1));
  box-shadow: inset 0 0 0 1px rgba(88, 166, 255, 0.55), 0 12px 30px -12px rgba(30, 111, 232, 0.7);
  transition: transform 640ms var(--spring), width 400ms var(--ease), height 400ms var(--ease), opacity 300ms var(--ease);
}
.puck.is-set { opacity: 1; }

.card-wrap { display: grid; gap: 16px; }
/* The sample card, styled like the tag on a sample bag. */
.spec-card {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75em 1.4em; margin: 0; padding: 22px 24px;
  font: 600 0.84rem/1.25 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.spec-card div { display: contents; }
.spec-card dt { color: var(--muted); }
.spec-card dd { margin: 0; color: var(--text); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.more {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(9, 12, 16, 0.82);
  color: var(--blue-text); font: 600 0.9rem/1.2 var(--font-label); letter-spacing: 0.14em; text-transform: uppercase; text-underline-offset: 4px;
}
.more::after { content: "\2192"; content: "\2192" / ""; margin-left: 0.5em; }
.more:hover { color: #fff; }
html:not(.js) [data-needs-js], .no-blends [data-needs-js] { display: none; }

/* Pre-order steps ------------------------------------------------------------------ */
.steps { display: grid; gap: 14px; margin: 30px 0 26px; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { padding: 22px; color: var(--silver); font-size: 1rem; line-height: 1.55; counter-increment: step; }
.steps b { display: block; margin-bottom: 6px; color: #fff; font: 600 1.02rem/1.3 var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; }
.steps b::before {
  content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border: 1.5px solid var(--blue-glow); border-radius: 50%; color: #fff; font: 600 0.9rem/1 var(--font-label); letter-spacing: 0.06em;
}
.home-order .ask { margin-top: 0; }
.ask-panel { max-width: 760px; padding: 22px 24px; }

/* On slate: the catalog and the questions ------------------------------------------ */
.home-band { padding-top: 96px; }
.band-head { max-width: 46em; margin-bottom: 8px; }
.band-head h2 { margin-top: 0; }
.home-cards .card-ref { color: var(--muted); font-size: 0.88rem; }
.band-note { margin: 18px 0 0; }
/* Answers stay visible (no accordions), so every reader and crawler gets them. */
.qa { columns: 2 380px; column-gap: 48px; margin-top: 28px; }
.qa-item { break-inside: avoid; margin-bottom: 30px; }
.qa-item h3 { margin: 0 0 8px; font-size: 1.45rem; }
.qa-item p { margin: 0; color: var(--silver); }

/* Section spine (wide screens) ------------------------------------------------------- */
.spine {
  position: fixed; z-index: 20; right: 16px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 12px; background: rgba(6, 8, 9, 0.72); border: 1px solid var(--line);
  font: 600 0.75rem/1 var(--font-label); letter-spacing: 0.2em;
}
@media (min-width: 1280px) { .spine { display: flex; } }
.spine a { display: flex; align-items: center; gap: 10px; min-height: 28px; color: var(--silver); text-decoration: none; transition: color 0.3s var(--ease); }
.spine a::after { content: ""; display: block; width: 32px; height: 1px; background: currentColor; transform: scaleX(0.5); transform-origin: left center; transition: transform 0.3s var(--ease); }
.spine a[aria-current] { color: var(--blue-text); }
.spine a[aria-current]::after { transform: none; height: 2px; }
.spine a:hover { color: #fff; }
/* Hover or keyboard focus names the section a number leads to. */
.spine a:is(:hover, :focus-visible) .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: nowrap; text-transform: uppercase; }

.plate { color: var(--muted); }
.coords { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .puck, .swatch canvas { transition: none; }
}
@media (forced-colors: active) {
  .puck { background: Highlight; opacity: 0.4; }
  .swatch[aria-checked="true"] { outline: 2px solid Highlight; }
}

/* The social image (tools/capture.mjs, ?stage-still=1&social): the hero's
   headline, offer tiles and logo over the still floor, no page chrome. */
html.is-social .announce, html.is-social .site-head, html.is-social .spine { display: none; }
html.stage-still.is-social .stage-shell > .home-hero, html.stage-still.is-social .stage-shell > .home-hero * { visibility: visible !important; }
html.is-social .home-hero .lede, html.is-social .home-hero .ask > :not(.fine) { display: none; }
html.is-social .home-hero { min-height: 630px; padding-top: 36px; padding-bottom: 0; }

/* The address row sits low in the hero, over the brightest floor: it carries
   its own glass (measured: the bare line fell to 3.2:1 at moments). */
.home-hero .addr { padding: 0 6px 0 16px; border-radius: 999px; background: rgba(9, 12, 16, 0.82); }
@supports (backdrop-filter: blur(8px)) { .home-hero .addr { backdrop-filter: blur(12px); } }
/* Phones: a fixed two-row address (label, then link and Copy), so the web
   font arriving cannot change where the row wraps (measured as layout shift). */
@media (max-width: 560px) {
  .addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; }
  .addr-or { grid-column: 1 / -1; padding-top: 6px; }
  .home-hero .addr { border-radius: 18px; padding: 4px 6px 4px 16px; }
}
