/* ============================================================
   FRONT PAGE — Question Generator
============================================================ */
.fp-wrap{
  font-family:'Inter',sans-serif;
  background:#F7F4EF;
  min-height:100vh;
  padding:3.5rem 1rem 5rem;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.fp-hero{text-align:center;max-width:680px;width:100%;margin-bottom:2.5rem}
.fp-eyebrow{font-size:11px;font-weight:600;color:#378ADD;letter-spacing:.16em;text-transform:uppercase;margin-bottom:1rem}
.fp-hero h1{font-size:clamp(28px,5vw,46px);font-weight:700;color:#1a1a1a;line-height:1.18;margin-bottom:.9rem;letter-spacing:-.5px}
.fp-hero p{font-size:15px;color:#666;font-weight:300;line-height:1.6}

.fp-card{
  background:#fff;
  border:1px solid #e8e3db;
  border-radius:20px;
  padding:2.25rem 2.5rem 2.5rem;
  width:100%;max-width:680px;
  display:flex;flex-direction:column;align-items:center;gap:1.5rem;
}

.fp-tone-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.fp-ttab{
  font-family:'Inter',sans-serif;font-size:14px;font-weight:400;color:#333;
  padding:10px 22px;border-radius:12px;border:1.5px solid #ddd;
  background:#fff;cursor:pointer;transition:all .15s;white-space:nowrap;
}
.fp-ttab:hover{border-color:#378ADD;color:#378ADD}
.fp-ttab.active{border-color:#1a1a1a;background:#1a1a1a;color:#fff;font-weight:500}

.fp-ctrl-block{display:flex;align-items:center;justify-content:center;border:1.5px solid #ddd;border-radius:12px;overflow:hidden;background:#fff}
.fp-ctrl-lbl{font-size:13px;color:#999;padding:0 14px;height:44px;display:flex;align-items:center;border-right:1.5px solid #ddd;white-space:nowrap}
.fp-ctrl-opts{display:flex}
.fp-copt{
  font-family:'Inter',sans-serif;font-size:14px;color:#444;
  padding:0 18px;height:44px;display:flex;align-items:center;
  border:none;border-left:1.5px solid #ddd;background:#fff;
  cursor:pointer;transition:all .12s;white-space:nowrap;
}
.fp-copt:hover{background:#f5f5f5}
.fp-copt.active{background:#1a1a1a;color:#fff;font-weight:500}

.fp-gen-btn{
  width:100%;font-family:'Inter',sans-serif;font-size:15px;font-weight:500;
  padding:15px 24px;border-radius:12px;border:none;background:#378ADD;color:#fff;
  cursor:pointer;transition:opacity .15s,transform .1s;
  display:flex;align-items:center;justify-content:center;gap:9px;
}
.fp-gen-btn:hover{opacity:.88}
.fp-gen-btn:active{transform:scale(.99)}
.fp-gen-btn:disabled{opacity:.5;pointer-events:none}
.fp-spin{width:15px;height:15px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:fpsp .7s linear infinite;flex-shrink:0}
@keyframes fpsp{to{transform:rotate(360deg)}}

.fp-q-area{width:100%;max-width:680px;margin-top:1.75rem}
.fp-q-label{font-size:10px;font-weight:700;color:#aaa;letter-spacing:.14em;text-transform:uppercase;margin-bottom:.85rem}
.fp-q-list{display:flex;flex-direction:column}
.fp-q-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #ede9e2;opacity:1;transform:translateY(0);transition:opacity .25s,transform .25s}
.fp-q-row:first-child{border-top:1px solid #ede9e2}
.fp-q-row.vis{opacity:1;transform:translateY(0)}
.fp-q-left{display:flex;align-items:flex-start;gap:12px;flex:1}
.fp-q-num{font-size:11px;font-weight:700;color:#378ADD;min-width:22px;padding-top:2px;flex-shrink:0}
.fp-q-text{font-size:14px;color:#222;line-height:1.55}
.fp-q-acts{display:flex;gap:2px;flex-shrink:0}
.fp-iBtn{background:none;border:none;cursor:pointer;padding:5px;border-radius:6px;color:#ccc;display:flex;align-items:center;justify-content:center;transition:background .1s,color .1s}
.fp-iBtn:hover{background:#f5f0e8;color:#888}
.fp-iBtn.faved{color:#378ADD}
.fp-iBtn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fp-iBtn.faved svg{fill:#378ADD;stroke:#378ADD}

.fp-divider{width:100%;max-width:680px;display:flex;align-items:center;gap:14px;margin:2.5rem 0 1.5rem}
.fp-dl{flex:1;height:1px;background:#e8e3db}
.fp-dt{font-size:11px;font-weight:500;color:#aaa;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}

.fp-form-card{background:#fff;border:1px solid #e8e3db;border-radius:20px;width:100%;max-width:680px;text-align:left;overflow:hidden}
.fp-form-body{padding:2rem 2.25rem}
.fp-field{margin-bottom:1.35rem}
.fp-field:last-child{margin-bottom:0}
.fp-field>label{display:block;font-size:11px;font-weight:600;color:#aaa;letter-spacing:.09em;text-transform:uppercase;margin-bottom:.6rem}

.fp-chips{display:flex;flex-wrap:wrap;gap:7px}
.fp-chip{
  padding:7px 15px;border-radius:999px;border:1.5px solid #ddd;
  background:#fff;color:#555;font-family:'Inter',sans-serif;font-size:13px;
  cursor:pointer;transition:all .12s;display:flex;align-items:center;gap:5px;user-select:none;
}
.fp-chip:hover{border-color:#378ADD;color:#378ADD}
.fp-chip.sel{background:#EBF4FF;border-color:#378ADD;color:#185FA5;font-weight:500}
.fp-chip svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.fp-grid2{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
.fp-row-sep{height:1px;background:#f0ece6;margin:1.35rem 0}

.fp-field input[type=number]{
  font-family:'Inter',sans-serif;font-size:13px;padding:8px 12px;
  border:1.5px solid #ddd;border-radius:9px;background:#fafafa;color:#333;width:90px;
}
.fp-field input:focus{outline:none;border-color:#378ADD}
.fp-field select{
  font-family:'Inter',sans-serif;font-size:13px;padding:8px 12px;
  border:1.5px solid #ddd;border-radius:9px;background:#fafafa;color:#333;width:100%;
}
.fp-field select:focus{outline:none;border-color:#378ADD}
.fp-field textarea{
  width:100%;font-family:'Inter',sans-serif;font-size:13px;padding:9px 12px;
  border:1.5px solid #ddd;border-radius:9px;background:#fafafa;color:#333;
  resize:vertical;min-height:65px;line-height:1.55;
}
.fp-field textarea:focus{outline:none;border-color:#378ADD}

.fp-hair-row{display:flex;gap:9px;flex-wrap:wrap}
.fp-hdot{width:28px;height:28px;border-radius:50%;cursor:pointer;border:2.5px solid transparent;transition:all .12s;position:relative}
.fp-hdot:hover{transform:scale(1.12)}
.fp-hdot.sel{border-color:#378ADD;box-shadow:0 0 0 2px #EBF4FF}
.fp-hdot .fp-hck{position:absolute;inset:0;display:none;align-items:center;justify-content:center}
.fp-hdot.sel .fp-hck{display:flex}
.fp-hdot .fp-hck svg{width:12px;height:12px;stroke:#fff;stroke-width:2.5;fill:none}

.fp-form-footer{padding:1.1rem 2.25rem;border-top:1px solid #f0ece6;display:flex;justify-content:flex-end}
.fp-apply-btn{
  font-family:'Inter',sans-serif;font-size:13px;font-weight:500;
  padding:9px 20px;border-radius:9px;border:none;background:#378ADD;color:#fff;
  cursor:pointer;display:flex;align-items:center;gap:7px;transition:opacity .15s;
}
.fp-apply-btn:hover{opacity:.85}
.fp-apply-btn svg{width:13px;height:13px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.fp-no-results{font-size:13px;color:#999;margin:1rem 0;text-align:center}

/* ── New Questions This Week ── */
.fp-weekly{
  width:100%;max-width:680px;margin-top:3.5rem;
  background:#fff;border:1px solid #e8e3db;border-radius:20px;
  padding:2.75rem 2.5rem 2.25rem;
  text-align:center;
}
.fp-weekly-header{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:.6rem}
.fp-weekly-header h2{font-family:'Inter',sans-serif;font-size:22px;font-weight:600;color:#1a1a1a;margin:0;letter-spacing:-.3px}
.fp-weekly-badge{font-size:11px;font-weight:500;padding:4px 14px;border-radius:999px;background:#EBF4FF;color:#185FA5;white-space:nowrap}
.fp-weekly-sub{font-size:13px;color:#999;margin-bottom:1.75rem}
.fp-weekly-list{list-style:none;padding:0;margin:0;counter-reset:wq;text-align:left;max-width:560px;margin-left:auto;margin-right:auto}
.fp-weekly-list li{
  display:flex;align-items:baseline;gap:14px;
  padding:13px 0;border-bottom:1px solid #ede9e2;
  font-size:14px;color:#222;line-height:1.55;
  counter-increment:wq;
}
.fp-weekly-list li:first-child{border-top:1px solid #ede9e2}
.fp-weekly-list li::before{
  content:counter(wq,decimal-leading-zero);
  font-size:11px;font-weight:700;color:#378ADD;
  min-width:22px;flex-shrink:0;
}
.fp-weekly-cta{text-align:center;margin-top:1.75rem}
.fp-weekly-link{
  font-family:'Inter',sans-serif;font-size:13px;font-weight:500;
  color:#378ADD;background:none;border:none;padding:0;cursor:pointer;
  text-decoration:none;
}
.fp-weekly-link:hover{text-decoration:underline}
.fp-weekly-link:focus{outline:none;text-decoration:none}
.fp-weekly-link:focus-visible{outline:2px solid #378ADD;outline-offset:2px;border-radius:4px}

@media(max-width:560px){
  .fp-weekly{padding:2rem 1.25rem 1.75rem}
  .fp-weekly-header h2{font-size:19px}
  .fp-weekly-list li{font-size:15px;padding:14px 0}
}

/* ── Utility classes (replace inline styles) ── */
.fp-mb-0 { margin-bottom: 0; }
.fp-mt-md { margin-top: 1.35rem; }
.fp-mb-sm { margin-bottom: 1rem; }
.fp-hdot-brown   { background: #6B3A2A; }
.fp-hdot-blonde  { background: #D4A843; }
.fp-hdot-black   { background: #1C1C1C; }
.fp-hdot-red     { background: #B84A2C; }
.fp-hdot-grey    { background: #A0A0A0; }
.fp-hdot-dyed    { background: #7C3AED; }
.fp-hdot-shaved  { background: #4A4A4A; }

@media(max-width:560px){
  .fp-card{padding:1.5rem 1.25rem}
  .fp-form-body{padding:1.5rem 1.25rem}
  .fp-form-footer{padding:.9rem 1.25rem}
  .fp-grid2{grid-template-columns:1fr}
  .fp-ttab{font-size:13px;padding:8px 16px}
  .fp-copt{padding:0 13px}
  .fp-ctrl-block{flex-wrap:wrap;border-radius:12px}
  .fp-ctrl-lbl{border-right:none;border-bottom:1.5px solid #ddd;width:100%;justify-content:center}
  .fp-ctrl-opts{width:100%;justify-content:center;flex-wrap:wrap}
  .fp-copt{border-left:none;border-top:1.5px solid #ddd;flex:1;justify-content:center;min-height:44px}
  .fp-gen-btn{min-height:48px;font-size:16px}
  .fp-apply-btn{min-height:44px;font-size:14px}
  .fp-q-text{font-size:15px}
  .fp-iBtn{padding:8px;min-width:44px;min-height:44px}
  .fp-chip{padding:10px 16px;font-size:14px;min-height:44px}
  .fp-hdot{width:36px;height:36px}
}
@media(max-width:360px){
  .fp-wrap{padding:2rem .75rem 3rem}
  .fp-tone-row{gap:6px}
  .fp-ttab{padding:7px 12px;font-size:12px}
  .fp-hero h1{font-size:24px}
  .fp-hero p{font-size:14px}
}
