/* B4Y questionnaire page (customer-journey plan, step 5b).
   A PUBLIC page: it never runs app.js, so Brand Settings (which live on Mario's device)
   cannot reach it. It reads the same brand TOKEN NAMES the app uses, and each fallback
   is BRAND_DEFAULTS — the one place those values are restated, said here so it is not
   mistaken for drift. 44px touch targets throughout: they are on a phone. */
:root {
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5;
  color: var(--b4y-text, #37434C);
  background: var(--b4y-bg, #EBEBEB);
  -webkit-text-size-adjust: 100%;
}
.start-top {
  display: flex; align-items: baseline; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: var(--b4y-blue, #37434C); color: #fff;
}
.start-brand { font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.start-tag { font-size: 15px; opacity: .9; }
.start-app { max-width: 560px; margin: 0 auto; padding: 16px 16px max(32px, env(safe-area-inset-bottom)); }
.start-step { background: var(--b4y-panel, #ffffff); border-radius: 14px; padding: 18px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.start-progress { font-size: 13px; font-weight: 600; color: var(--b4y-text-muted, #5A6168); margin-bottom: 4px; }
.start-bar { height: 6px; border-radius: 999px; background: var(--b4y-border, #D4DCE3); overflow: hidden; margin-bottom: 14px; }
.start-bar > span { display: block; height: 100%; background: var(--b4y-accent, #3E83C3); }
.start-h { margin: 0 0 12px; font-size: 22px; }
.start-p { margin: 0 0 12px; }
.start-q { margin: 0 0 18px; }
.start-label { display: block; font-weight: 600; margin-bottom: 6px; }
.start-hint { font-weight: 400; color: var(--b4y-text-muted, #5A6168); font-size: 14px; }
.start-in, .start-ta {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid var(--b4y-border, #D4DCE3); border-radius: 10px; background: #fff;
}
.start-ta { min-height: 96px; resize: vertical; }
.start-in:focus-visible, .start-ta:focus-visible, .start-chip:focus-visible, .start-btn:focus-visible, .start-consent:focus-within {
  outline: 2px solid var(--b4y-accent, #3E83C3); outline-offset: 2px;
}
.start-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.start-chip {
  min-height: 44px; padding: 8px 14px; font: inherit; text-align: left; cursor: pointer;
  color: inherit; background: #fff; border: 1px solid var(--b4y-border, #D4DCE3); border-radius: 999px;
}
.start-chip[aria-pressed="true"] { border-color: var(--b4y-accent, #3E83C3); background: rgba(62,131,195,.12); font-weight: 600; }
.start-consent { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 4px; cursor: pointer; }
.start-consent input { width: 24px; height: 24px; margin: 2px 0 0; flex: 0 0 auto; }
.start-nav { display: flex; gap: 10px; margin-top: 8px; }
.start-btn {
  min-height: 48px; padding: 0 18px; font: inherit; font-weight: 600; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--b4y-border, #D4DCE3); background: #fff; color: inherit;
}
/* Small text on the accent fill uses the darker accent for contrast (AGENTS.md: accent
   for non-text, ink for text). */
.start-btn.primary { flex: 1 1 auto; border-color: transparent; background: #2F6EA8; color: #fff; }
.start-btn[disabled] { opacity: .5; cursor: default; }
.start-err, .start-senderr { color: var(--b4y-warning, #b45309); font-weight: 600; margin: 8px 0 0; min-height: 1.2em; }
.start-small { font-size: 14px; color: var(--b4y-text-muted, #5A6168); }
.start-ts { margin: 10px 0; min-height: 66px; }
.start-done a, .start-consent a, .start-small a { color: #2F6EA8; font-weight: 600; }
a.start-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* Step 6b: Measure my kitchen. */
.start-shapes { gap: 10px; }
.start-shape { display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 12px; padding: 8px 10px; min-width: 120px; }
.start-shape-draw { width: 96px; height: 64px; display: block; }
.start-shape-draw line { stroke: var(--b4y-text, #37434C); stroke-width: 5; stroke-linecap: round; }
.start-draw .start-shape-draw { width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.start-shape-draw text { font: 700 11px -apple-system, sans-serif; fill: #2F6EA8; text-anchor: middle; dominant-baseline: middle; }
.start-ftin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.start-ftin > .start-label { flex: 1 1 100%; margin: 0; }
.start-ftin-part { display: inline-flex; align-items: center; gap: 6px; }
.start-ftin-part .start-in { width: 88px; }
.start-unit { color: var(--b4y-text-muted, #5A6168); }
.start-wall { padding-top: 10px; border-top: 1px solid var(--b4y-border, #D4DCE3); }

/* Plan 3 C2a (2026-10-07): the goes-together suggestion under a question. */
.start-nudge { margin: -4px 0 16px; padding: 10px 12px; border-radius: 12px; background: #f0f6fc; border: 1px solid #cfe0f1; }
.start-nudge-say { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: #1f2937; }
.start-nudge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.start-nudge .start-nudge-no { background: transparent; }
.start-nudge:not(:has(.start-nudge-row)) .start-nudge-say { margin: 0; }
