/* ============================================================
   Get Started page — welcome mat + tidied page furniture.
   Loaded only by get-started.html (after foundation.css, whose
   tokens it uses). The mat itself is injected by
   scripts/welcome-mat.js. Per-site theming: welcome-mat.js sets
   --wm-brand from the site's runtime theme; navy is the default.
   ============================================================ */

:root {
  --wm-brand: var(--c-navy, #18236e);
  --wm-accent: var(--disc-accent, #ffb703);
}

/* ---------------- Page furniture ---------------- */

/* The hero leads the page like the preview — no separate "Get Started" header
   band. The html/body still wear the header colour (setBodyStyles) so the iOS
   safe-area zones stay filled; we only drop the visible band. */
body.gs-page header { display: none; }

.gs-hero {
  text-align: center;
  padding: calc(18px + env(safe-area-inset-top)) 0 2px;
}

/* Site logo lives in the hero now — large and boxless. The id selector beats
   the base #site-logo rule that sized it (80px, margin-right) for the old header. */
.gs-hero #site-logo {
  display: block;
  width: auto;
  margin: 0 auto 12px;
  max-width: 150px;
  max-height: 92px;
}

.gs-hero h2 {
  margin: 0 0 4px;
  font-size: 1.9rem;
}

.gs-hero p {
  margin: 14px 0 0;
  opacity: 0.85;
  font-size: 0.98rem;
}

/* "Your discovery so far" bar (returning visitors) — restyled from the white
   pill to the prototype's translucent brand panel and promoted under the hero.
   The base .discovery-bar rules live in style.css; these override for gs-page. */
body.gs-page .discovery-bar {
  gap: 12px;
  max-width: 440px;
  margin: 16px auto 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: none;
  font-weight: 600;
}
body.gs-page .discovery-bar .disc-ring {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
}
body.gs-page .discovery-bar .disc-ring i {
  width: 34px;
  height: 34px;
  background: var(--wm-brand, #18236e);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}
body.gs-page .discovery-bar .disc-text b {
  font-size: 0.95rem;
  color: #fff;
}
body.gs-page .discovery-bar .disc-text small {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}
body.gs-page .discovery-bar .disc-chev {
  color: #fff;
  opacity: 0.6;
  font-size: 1.3rem;
}

.gs-steps {
  display: grid;
  gap: 10px;
  max-width: 440px;
  margin: 22px auto 4px;
  text-align: left;
}

.gs-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-l, 16px);
  padding: 12px 14px;
  font-size: 0.95rem;
}

.gs-step b {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wm-accent);
  color: var(--wm-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Quiet replay link under the steps */
.gs-how {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit !important;
  opacity: 0.7;
  font-size: 0.85rem;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
}

/* Sticky scan CTA (the #start-scan button, re-homed). .btn keeps the theme
   engine's button repaint away; these rules define its look. */
.gs-scan-cta.btn {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 36px));
  background: var(--wm-accent);
  color: var(--wm-brand);
  border-radius: var(--radius-pill, 999px);
  padding: 15px 24px;
  font-size: 1.05rem;
  font-weight: 650;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 500;
}

.gs-scan-cta.btn:active { transform: translateX(-50%) scale(0.98); }

.gs-scan-cta .icn {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Room for the sticky CTA above the footer */
body.gs-page main { padding-bottom: 90px; }

/* ---------------- Welcome mat overlay ---------------- */

.wm-mat {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: linear-gradient(170deg, var(--wm-brand) 0%, rgba(0, 0, 0, 0.55) 160%) var(--wm-brand);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  font-family: var(--font-display, inherit);
  transition: opacity 0.35s ease;
}

.wm-mat.wm-hidden {
  opacity: 0;
  pointer-events: none;
}

.wm-skip {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  opacity: 0.65;
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
}

.wm-panel { max-width: 380px; width: 100%; }

/* Logo sits free on the brand backdrop — no white box, and larger. */
.wm-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.wm-logo img {
  max-width: 150px;
  max-height: 120px;
  display: block;
}

.wm-emblem {
  display: inline-flex;
  color: var(--wm-accent);
  margin-bottom: 14px;
}

.wm-emblem .icn { width: 52px; height: 52px; }

.wm-mat h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}

.wm-mat p {
  margin: 0 auto 22px;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.88;
  max-width: 320px;
}

.wm-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  text-align: left;
}

.wm-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.wm-step .wm-ic {
  flex: 0 0 32px;
  text-align: center;
  color: var(--wm-accent);
  display: inline-flex;
  justify-content: center;
}

.wm-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0 0 24px;
}

.wm-badges span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.wm-cta.btn {
  display: flex;
  width: 100%;
  background: var(--wm-accent);
  color: var(--wm-brand);
  border-radius: var(--radius-pill, 999px);
  padding: 15px 24px;
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 10px;
}

.wm-ghost {
  display: block;
  width: 100%;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  opacity: 0.7;
  font-family: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
}

.wm-mat .icn {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wm-step .icn { width: 24px; height: 24px; }
.wm-cta .icn { width: 20px; height: 20px; }

.wm-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 26px;
}

.wm-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s;
}

.wm-dots i.on { background: var(--wm-accent); }

@media (prefers-reduced-motion: reduce) {
  .wm-mat { transition: none; }
}
