/* BuildGood SA — additions on top of the design system's app.css.
   Mostly variant hero, language pill, friendlier dashboard cards. */

/* ─── Language pill ────────────────────────────────────────── */
.lang-pill {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-1);
  background: white;
  border-radius: 999px;
  padding: 2px;
  gap: 0;
}
.lang-pill button {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--graphite-5);
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.lang-pill button.on {
  background: var(--ink); color: var(--paper);
}

/* ─── Hero variation B — "Construction" photo card ───────── */
.hero-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #2a2722;
  isolation: isolate;
}
.hero-photo__scene {
  position: absolute; inset: 0;
  background:
    /* sun glow */
    radial-gradient(ellipse 60% 40% at 70% 25%, rgba(255,210,170,0.35), transparent 60%),
    /* sky */
    linear-gradient(to bottom, #6b6256 0%, #443f37 45%, #2a2722 100%);
}
.hero-photo svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo__grain {
  position: absolute; inset: 0;
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
.hero-photo__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 45%),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.hero-photo__chip {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-photo__chip::before {
  content: ""; width: 6px; height: 6px;
  background: var(--red);
  display: inline-block;
}
.hero-photo__overlay {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-photo__big {
  font-family: var(--font-sans);
  font-weight: 700;
  color: #fff;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-photo__sub {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-photo__stamp {
  position: absolute; top: 16px; right: 14px;
  border: 1.5px solid var(--red);
  color: var(--red);
  background: rgba(229, 49, 28, 0.08);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 8px;
  transform: rotate(6deg);
  font-weight: 700;
}

/* Pill row above hero */
.hero-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
}
.hero-meta__pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-1);
  background: white;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--graphite-5);
}
.hero-meta__pill svg { color: var(--ink); }

/* Dashboard greeting line (locale-aware) */
.dash-greet { color: var(--graphite-5); font-size: 13px; }
.dash-name  { color: var(--ink); font-weight: 600; }

/* Progress mini-strip for top of dashboard */
.dash-progress {
  margin-top: 16px;
  border: 1px solid var(--border-1);
  background: white;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.dash-progress__hd {
  display: flex; align-items: center; justify-content: space-between;
}
.dash-progress__label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-5);
}
.dash-progress__bar {
  height: 4px; border-radius: 99px; background: var(--graphite-2);
  overflow: hidden;
}
.dash-progress__fill {
  height: 100%; background: var(--red); border-radius: 99px;
  transition: width 320ms var(--ease-out);
}
.dash-progress__pct {
  font-family: var(--font-mono); font-size: 14px;
  font-weight: 600; color: var(--ink);
}

/* Sign-in link in welcome header */
.signin-link {
  font-size: 13px; color: var(--graphite-5);
  text-decoration: none; padding: 6px 10px; border-radius: 4px;
}
.signin-link:hover { background: var(--bg-sunken); color: var(--ink); }

/* Question card — friendly icon next to text */
.q-card__icon {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: var(--bg-sunken);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* "Selected services" mini chip on services screen */
.svc__select {
  width: 26px; height: 26px;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  background: white;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  color: var(--ink);
  transition: all 120ms var(--ease-out);
}
.svc__select.on {
  background: var(--ink); color: white; border-color: var(--ink);
}
.svc.on { border-color: var(--ink); box-shadow: var(--shadow-1); }

/* Subtotal bar on services screen */
.subtotal {
  position: sticky; bottom: 92px;
  background: var(--ink); color: var(--paper);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}
.subtotal__total {
  font-family: var(--font-mono); font-size: 16px; font-weight: 600;
  letter-spacing: 0.04em;
}
.subtotal__lbl {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(250,250,247,0.6);
}

/* Helper banner on signup */
.banner {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--border-1);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: white;
  font-size: 13px; color: var(--graphite-5); line-height: 1.5;
}
.banner b { color: var(--ink); font-weight: 600; }

/* Accent override hook — when tweaks change accent, we re-define */
[data-accent="amber"] { --accent: #C77A0A; --red: #C77A0A; --red-deep: #95580A; --red-wash: #FAF1DD; }
[data-accent="ink"]   { --accent: #0A0A0A; --red: #0A0A0A; --red-deep: #2E2D29; --red-wash: #F0EFEA; }
[data-accent="green"] { --accent: #1F7A4D; --red: #1F7A4D; --red-deep: #145A36; --red-wash: #E6F1EB; }

/* Density adjustments */
[data-density="comfy"] .svc { padding: 20px 18px; }
[data-density="comfy"] .q-card { padding: 20px; gap: 18px; }
[data-density="compact"] .svc { padding: 12px 12px; }
[data-density="compact"] .q-card { padding: 12px; gap: 10px; }

/* Floor-plan motif background option */
.scr-body--motif {
  position: relative;
}
.scr-body--motif::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--graphite-1) 1px, transparent 1px),
    linear-gradient(to bottom, var(--graphite-1) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.scr-body--motif > * { position: relative; z-index: 1; }

/* Hero meta corner ticks (registration marks) */
.ticked {
  position: relative;
}
.ticked::before, .ticked::after, .ticked > .tk-bl, .ticked > .tk-br {
  content: ""; position: absolute;
  width: 8px; height: 8px;
  border: 0 solid var(--graphite-3);
}
.ticked::before { top: -2px; left: -2px;  border-top-width: 1px; border-left-width: 1px; }
.ticked::after  { top: -2px; right: -2px; border-top-width: 1px; border-right-width: 1px; }
.ticked > .tk-bl { bottom: -2px; left: -2px;  border-bottom-width: 1px; border-left-width: 1px; }
.ticked > .tk-br { bottom: -2px; right: -2px; border-bottom-width: 1px; border-right-width: 1px; }
