/* SMH Face Shape — brand tokens match swapmyhair.com's homepage palette. */
.smh-root{
  --smh-rose:#B4666F; --smh-plum:#8f5560; --smh-ink:#2B2430; --smh-muted:#6b5b60;
  --smh-cream:#FBF7F4; --smh-sand:#F0E4DE; --smh-line:#ecd9d2; --smh-white:#fff;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:var(--smh-ink); max-width:860px; margin:0 auto; line-height:1.55;
}
.smh-root *,.smh-root *::before,.smh-root *::after{box-sizing:border-box}
.smh-root h2,.smh-root h3{font-family:"Source Serif Pro",Georgia,serif;margin:0}
.smh-noscript{background:#FBF7F4;border:1px solid #ecd9d2;border-radius:12px;padding:18px;color:#6b5b60}

.smh-card{background:var(--smh-white);border:1px solid var(--smh-line);border-radius:18px;
  padding:34px 26px;box-shadow:0 14px 40px rgba(150,90,100,.10)}
.smh-stage{display:none}
.smh-stage.smh-on{display:block}

.smh-h{font-size:28px;text-align:center;margin-bottom:8px}
.smh-sub{text-align:center;color:var(--smh-muted);margin:0 auto 24px;max-width:520px}

.smh-drop{border:2px dashed var(--smh-line);border-radius:14px;padding:44px 20px;text-align:center;
  cursor:pointer;transition:background .18s,border-color .18s;background:var(--smh-cream)}
.smh-drop:hover,.smh-drop.smh-over{border-color:var(--smh-rose);background:#fff5f2}
.smh-drop:focus-visible{outline:3px solid var(--smh-rose);outline-offset:3px}
.smh-drop[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.smh-drop[aria-disabled="true"]:hover{border-color:var(--smh-line);background:var(--smh-cream)}

.smh-btn{display:inline-block;background:var(--smh-rose);color:#fff;border:0;padding:14px 32px;
  border-radius:10px;font-weight:600;font-size:16px;cursor:pointer;text-decoration:none;font-family:inherit}
.smh-btn:hover{background:var(--smh-plum);color:#fff}
.smh-btn:focus-visible{outline:3px solid var(--smh-ink);outline-offset:2px}
.smh-btn-ghost{background:transparent;color:var(--smh-plum);border:1px solid var(--smh-line)}
.smh-btn-ghost:hover{background:var(--smh-cream);color:var(--smh-plum)}

.smh-gate{display:flex;gap:11px;align-items:flex-start;background:var(--smh-cream);
  border:1px solid var(--smh-line);border-radius:12px;padding:15px 16px;margin:0 0 18px;font-size:15px}
.smh-gate input{margin-top:3px;width:18px;height:18px;accent-color:var(--smh-rose);flex:0 0 auto}
.smh-gate label{cursor:pointer;color:var(--smh-ink)}

.smh-privacy{display:flex;gap:10px;align-items:flex-start;background:#f3f8f4;border:1px solid #cfe4d5;
  border-radius:12px;padding:14px 16px;font-size:14px;color:#2f5d42;margin-top:18px}
.smh-privacy strong{color:#1e4430}

.smh-bar{height:6px;background:var(--smh-sand);border-radius:99px;overflow:hidden;margin:22px 0 8px;display:none}
.smh-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--smh-plum),var(--smh-rose));
  transition:width .35s ease}
.smh-status{text-align:center;color:var(--smh-muted);font-size:14px;display:none;margin:0}

.smh-result-head{display:flex;gap:24px;flex-wrap:wrap;align-items:center}
.smh-canvas-wrap{flex:0 0 200px}
.smh-canvas{width:200px;height:auto;border-radius:14px;display:block;background:var(--smh-sand)}
.smh-verdict{flex:1 1 300px;min-width:260px}
.smh-shape{font-size:38px;font-family:"Source Serif Pro",Georgia,serif;font-weight:700;margin:0 0 6px}
.smh-conf{display:inline-block;background:var(--smh-sand);color:var(--smh-plum);border-radius:99px;
  padding:4px 12px;font-size:13px;font-weight:600;margin-bottom:10px}

.smh-measures{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:24px 0}
.smh-measure{background:var(--smh-cream);border-radius:12px;padding:14px}
.smh-measure b{display:block;font-size:20px;color:var(--smh-plum);font-family:"Source Serif Pro",Georgia,serif}
.smh-measure span{font-size:13px;color:var(--smh-muted)}

.smh-styles{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:8px}
.smh-style{display:block;background:var(--smh-cream);border:1px solid var(--smh-line);border-radius:14px;
  padding:18px;text-decoration:none;color:var(--smh-ink);transition:transform .18s,box-shadow .18s}
.smh-style:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(150,90,100,.14);color:var(--smh-ink)}
.smh-style b{display:block;font-family:"Source Serif Pro",Georgia,serif;font-size:17px;margin-bottom:5px}
.smh-style span{font-size:14px;color:var(--smh-muted)}

.smh-next{background:linear-gradient(135deg,var(--smh-plum),var(--smh-rose));border-radius:16px;
  padding:28px 24px;text-align:center;color:#fff;margin-top:26px}
.smh-next h3{color:#fff;font-size:24px;margin-bottom:8px}
.smh-next p{color:#fff3ee;margin:0 0 18px;font-size:16px}
.smh-next .smh-btn{background:var(--smh-ink)}
.smh-next .smh-btn:hover{background:#000}

.smh-err{background:#fdf3f2;border:1px solid #f0c8c4;color:#8a2f28;border-radius:12px;
  padding:16px 18px;font-size:15px;margin-top:16px}
.smh-err ul{margin:8px 0 0;padding-left:20px}

.smh-note{font-size:13px;color:var(--smh-muted);margin-top:20px;padding-top:16px;border-top:1px solid var(--smh-line)}
.smh-ai{font-size:12px;color:var(--smh-muted);margin:14px 0 0;text-align:center;opacity:.9}
.smh-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media (max-width:560px){
  .smh-card{padding:24px 18px}
  .smh-shape{font-size:30px}
  .smh-canvas-wrap{flex:1 1 100%}
  .smh-canvas{width:100%;max-width:240px;margin:0 auto}
}
@media (prefers-reduced-motion:reduce){
  .smh-style,.smh-bar i{transition:none}
}
