/* The customer's card in the builder's drawer (round 31, 23 Oct 2026): v3's css/survey.css and the brand blocks of
   its css/tokens.css, copied and fenced in. v5's page and v3's questionnaire share class names (.shell, .main, .nav,
   .eyebrow, body, :focus-visible) and a token (--focus, a width in v3 and a colour in v5), so nothing here reaches past
   the card: every rule starts at the drawer's card ground (.qpanel-card), the brand's tokens sit on the frame (the one
   element carrying data-brand, js/builder/canvas.js), and the questionnaire's page (html, body, its shell, rail and
   bottle, the stamp, the demo bar, the thank-you code) stays behind, since the drawer shows one question card.

   The card is the CUSTOMER's surface, so it keeps the brand's own type, colours and corners in every theme of the page
   around it, light in navy and black too: it is what the customer sees, and the customer's questionnaire is light.
   css/builder.css draws the frame's edge and caption, which mark where Kumii stops and the shop begins. No hex code
   outside the brand blocks, as in v3. ----- */

/* Shared spacing and motion: v3's :root block, on the frame only (its --focus, a width, stays out: v5's is a colour). */
.qpanel-card .frame {
  --gap-1: 6px; --gap-2: 12px; --gap-3: 20px; --gap-4: 32px; --gap-5: 52px; --gap-6: 84px;
  --measure: 20ch; --measure-q: 20ch;
  --ease: cubic-bezier(.22, .61, .36, 1); --ease-settle: cubic-bezier(.34, 1.32, .64, 1);
  --t-fast: 140ms; --t-med: 320ms; --t-slow: 900ms;
  --n-0: #ffffff; --n-5: #f6f5f4; --n-10: #ececea; --n-20: #d8d7d4; --n-40: #a9a8a5; --n-60: #757575; --n-90: #1f1f1f;
}

/* Keune: read off keune.ch on 2026-08-27. Jost stands in for the paid Futura PT. */
.qpanel-card .frame[data-brand="keune"] {
  --font-display: "Jost", "Futura PT", Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Jost", "Futura PT", Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  --weight-display: 300; --weight-strong: 500; --track-wordmark: .30em; --track-eyebrow: .20em;
  --radius: 0px; --radius-lg: 0px;
  --surface: #ffffff; --surface-2: #f7f6f5; --ink: #1a1a1a; --ink-2: #6b6b6b; --ink-3: #a9a8a5; --line: #e4e2e0;
  --accent: #fe7370; --accent-2: #ffab8f; --accent-3: #fbbb92; --accent-ink: #ffffff; --accent-wash: #fff1ef;
  --accent-grad: linear-gradient(15deg, #fe7370 0%, #ffab8f 73%, #fbbb92 100%);
  --weight-wordmark: 400; --btn-transform: uppercase; --btn-track: .12em; --btn-size: 13px;
}
/* miiki: Poppins is the shop's own face, from Google Fonts. */
.qpanel-card .frame[data-brand="miiki"] {
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --weight-display: 600; --weight-strong: 500; --track-wordmark: .02em; --track-eyebrow: .16em;
  --radius: 8px; --radius-lg: 18px;
  --surface: #faf9f8; --surface-2: #f2f0ee; --ink: #191919; --ink-2: #6f6f6f; --ink-3: #a5a3a1; --line: #e5e2df;
  --accent: #108474; --accent-2: #14a08c; --accent-3: #6fc0b3; --accent-ink: #ffffff; --accent-wash: #eaf4f2;
  --accent-grad: linear-gradient(15deg, #0d6f62 0%, #108474 62%, #14a08c 100%);
  --weight-wordmark: 700; --btn-transform: none; --btn-track: .01em; --btn-size: 15px;
}

/* survey.css's body, on the frame. */
.qpanel-card .frame { background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.qpanel-card .frame button, .qpanel-card .frame input, .qpanel-card .frame textarea { font-family: inherit; }
.qpanel-card .frame .opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-lg, 10px); }

/* ---- the card ---- */
@keyframes kumii-card-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.qpanel-card .frame [data-anim] { animation: kumii-card-rise 420ms var(--ease) both; }
/* The eyebrow outranks v5's own .eyebrow (frame.css: a margin marked !important, gold in dark), which is the page
   header's greeting and never the customer's. */
.qpanel-card .frame .eyebrow { margin: 0 0 var(--gap-3) !important; font: 500 11px/1.55 var(--font-body); text-transform: uppercase; letter-spacing: var(--track-eyebrow); color: var(--ink-3); }
.qpanel-card .frame .opt-tag { color: var(--ink-3); border-left: 1px solid var(--line); padding-left: 8px; margin-left: 4px; }
.qpanel-card .frame .q { margin: 0 0 var(--gap-4); font-family: var(--font-display); font-weight: var(--weight-display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.16; letter-spacing: -.005em; max-width: var(--measure-q); color: var(--ink); text-wrap: balance; }
.qpanel-card .frame .lead { margin: 0 0 var(--gap-4); max-width: 46ch; color: var(--ink-2); }
.qpanel-card .frame .err { margin: var(--gap-2) 0 0; font-size: 13px; color: var(--accent); }

/* ---- text ---- */
.qpanel-card .frame .field { display: block; }
.qpanel-card .frame .input { width: 100%; font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; resize: vertical; }
.qpanel-card .frame .input::placeholder { color: var(--ink-3); }

/* ---- scales ---- */
.qpanel-card .frame .opt { position: relative; cursor: pointer; border-radius: var(--radius); }
.qpanel-card .frame .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.qpanel-card .frame .opt-num { font-variant-numeric: tabular-nums; }
/* (Not text-align: end: below 560 px the right label would move away from the 10. v3's note, 2026-09-21.) */
.qpanel-card .frame .ends { display: flex; justify-content: space-between; gap: var(--gap-3); margin-top: var(--gap-2); font-size: 12px; color: var(--ink-3); }
.qpanel-card .frame .scale--faces { display: flex; gap: clamp(4px, 1.2vw, 12px); }
.qpanel-card .frame .opt--face { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; transition: transform var(--t-med) var(--ease-settle); }
.qpanel-card .frame .opt--face:hover { transform: translateY(-3px); }
.qpanel-card .frame .face { width: 100%; max-width: 58px; height: auto; display: block; }
.qpanel-card .frame .f-head { fill: none; stroke: var(--n-20); stroke-width: 2; }
.qpanel-card .frame .f-eye { fill: var(--ink-3); }
.qpanel-card .frame .f-line { fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qpanel-card .frame .opt--face:hover .f-head { stroke: var(--ink-3); }
.qpanel-card .frame .opt--face .opt-num { font-size: 12px; color: var(--ink-3); }
/* The 0-10 scale tints with its value (--tint, set by the engine) and is never banded (FR-14). */
.qpanel-card .frame .scale--nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; }
.qpanel-card .frame .opt--nps { aspect-ratio: 1 / 1; display: grid; place-items: center; border: 1px solid var(--line); background: color-mix(in srgb, var(--accent) calc(var(--tint) * 18%), transparent); color: var(--ink-2); font-size: 15px; transition: transform var(--t-med) var(--ease-settle); }
.qpanel-card .frame .opt--nps:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.qpanel-card .frame .choices { display: grid; gap: 10px; }
.qpanel-card .frame .opt--choice { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 12px 18px; border: 1px solid var(--line); background: var(--surface); }
.qpanel-card .frame .opt--choice::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--n-20); }
.qpanel-card .frame .opt--choice:hover { border-color: var(--ink-3); }
.qpanel-card .frame .opt-label { font-size: 16px; }
.qpanel-card .frame .other-wrap { display: grid; grid-template-rows: 0fr; margin-top: 0; }
.qpanel-card .frame .other-in { overflow: hidden; min-height: 0; }
.qpanel-card .frame .input--other { padding: 12px 16px; visibility: hidden; }

/* ---- the drawer is a phone: survey.css's phone rules against the frame's own width (v3's builder.css) ---- */
.qpanel-card .frame { container-type: inline-size; }
@container (max-width: 560px) {
  .qpanel-card .frame .q { font-size: 26px; }
  .qpanel-card .frame .scale--nps { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .qpanel-card .frame .opt--nps { font-size: 16px; }
  .qpanel-card .frame .scale--faces { gap: 2px; }
  .qpanel-card .frame .opt--face .opt-num { font-size: 11px; }
}
