/* Site/prototype-specific helpers — shared by 3 prototype pages */

/* Diagnostic chip (Direction 1) */
.q-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 18px 22px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 6px;
}
.q-chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.q-chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.q-chip.on .q-chip-sub { color: rgba(255,252,244,0.7); }
.q-chip-sub { font-size: 13px; color: var(--mute); }

/* Score meter (Direction 1) */
.meter { height: 6px; background: rgba(26,24,24,0.08); border-radius: 999px; overflow: hidden; position: relative; }
.meter-fill { height: 100%; border-radius: 999px; transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Recommendation cards */
.rec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rec-card.dim { opacity: 0.42; }
.rec-card.hero {
  background: var(--ink); color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(26,24,24,0.18);
}

/* Lens rail (Direction 2) */
.lens-rail {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px;
  background: rgba(26,24,24,0.04);
  border-radius: 16px;
}
.lens-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s;
}
.lens-pill:hover { background: rgba(26,24,24,0.04); }
.lens-pill.on { background: var(--ink); color: var(--cream); }
.lens-pill .lp-name { font-size: 17px; font-weight: 500; }
.lens-pill .lp-price { font-size: 13px; opacity: 0.7; margin-top: 2px; }
.lens-pill .lp-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* Chapter dot (Direction 3) */
.chap-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(26,24,24,0.2); transition: all 0.3s; }
.chap-dot.on { background: var(--ink); transform: scale(1.6); }

/* Section block */
.section { padding: 100px 80px; }
.section.dark { background: var(--ink); color: var(--cream); }
.section.bone { background: var(--bone); }
.section h2 { margin: 0; }

/* Stat tile */
.stat-tile {
  padding: 32px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.stat-tile .big { font-size: 56px; font-weight: 200; letter-spacing: -0.03em; line-height: 1; }
.stat-tile .label { font-size: 13px; color: var(--mute); margin-top: 10px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; cursor: pointer; }
.faq-item .q { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 500; }
.faq-item .a {
  font-size: 15px; line-height: 1.6; color: var(--mute); margin-top: 0;
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, margin-top 0.3s;
}
.faq-item.open .a { max-height: 240px; margin-top: 14px; }
.faq-item .toggle { transition: transform 0.3s; font-size: 22px; font-weight: 200; }
.faq-item.open .toggle { transform: rotate(45deg); }
