@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap");

/* Human craft direction:
   Pulse clarity + Calm restraint + SongWink product UI
   ? no mesh blobs, no glow, no serif romance, no 3D emoji */

:root {
  --ink: #111111;
  --ink-2: #3d3d3d;
  --muted: #8b8b8b;
  --line: #e6e6e6;
  --line-strong: #d0d0d0;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --pink: #ef5b8a;
  --pink-soft: #fde8ef;
  --focus: rgba(239, 91, 138, 0.18);
  --radius: 10px;
  --font: "Satoshi", "Helvetica Neue", Arial, sans-serif;
}

.fhm-video-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto 14px;
  text-align: center;
}
.fhm-quiz-video {
  width: 100%;
  max-height: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  background: #000;
}
.fhm-quiz.is-result .fhm-video-wrap,
.fhm-quiz.is-paying .fhm-video-wrap,
.fhm-quiz.is-lyrics .fhm-video-wrap {
  display: none;
}

.fhm-quiz {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
}

.fhm-quiz::before { display: none; }


.fhm-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 18px;
  padding: 8px 0 4px;
}
.fhm-logo-mark {
  position: static;
  top: auto;
  right: auto;
  display: block;
  width: min(420px, 88vw);
  max-width: 88vw;
  height: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  filter: none;
  background: transparent;
  object-fit: contain;
  margin: 0 auto;
}


/* SongWink-style stepper: numbers + hairline */
.fhm-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 8px 0 36px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
}

.fhm-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  position: relative;
}

.fhm-step + .fhm-step::before { display: none; }

.fhm-step::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  margin: 0 12px 0 8px;
  min-width: 12px;
}

.fhm-step:last-child::after { display: none; }

.fhm-step.is-active {
  color: var(--pink);
  font-weight: 700;
}

.fhm-step.is-done {
  color: var(--ink-2);
}

.fhm-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: none;
  animation: none;
}

.fhm-step-num svg { display: none; }

.fhm-step.is-active .fhm-step-num {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: none;
  animation: none;
}

.fhm-step.is-done .fhm-step-num {
  background: #fff;
  border-color: var(--pink);
  color: var(--pink);
}

.fhm-step-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fhm-panel {
  min-height: 260px;
  animation: none;
}

.fhm-title {
  font-family: var(--font);
  font-size: clamp(1.65rem, 2.8vw, 2rem);
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.fhm-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 34rem;
  font-weight: 400;
}

.fhm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 860px) {
  .fhm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fhm-stepper { padding-right: 0; flex-wrap: wrap; row-gap: 12px; }
  .fhm-step { flex: 1 1 42%; }
  .fhm-step::after { display: none; }
  .fhm-logo-mark { width: min(340px, 90vw); max-width: 90vw; }
}

.fhm-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
  box-shadow: none;
  animation: none;
  font-family: var(--font);
}

.fhm-card:hover {
  border-color: #cfcfcf;
  transform: none;
  box-shadow: none;
}

.fhm-card.is-selected {
  border-color: var(--pink);
  background: #fff;
  box-shadow: none;
}

.fhm-card.is-selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

.fhm-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.fhm-card-icon img,
.fhm-3d-icon {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease;
}

.fhm-card:hover .fhm-3d-icon,
.fhm-card.is-selected .fhm-3d-icon {
  transform: scale(1.06);
}

.fhm-card-icon svg {
  display: none;
}

.fhm-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
}

.fhm-card.is-selected .fhm-card-label {
  color: var(--ink);
}

.fhm-field,
.fhm-textarea,
.fhm-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
  box-shadow: none;
}

.fhm-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.fhm-field:focus,
.fhm-textarea:focus,
.fhm-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--focus);
}

.fhm-field::placeholder,
.fhm-textarea::placeholder,
.fhm-input::placeholder {
  color: #aaaaaa;
}

.fhm-label {
  display: block;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 0.875rem;
}

.fhm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fhm-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.84rem;
  font-family: var(--font);
  color: var(--ink-2);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fhm-chip:hover { border-color: var(--line-strong); }

.fhm-chip.is-selected {
  border-color: var(--pink);
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 600;
}

.fhm-group {
  margin-bottom: 14px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.fhm-group-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: var(--ink);
}

.fhm-group-title svg { display: none; }

.fhm-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fhm-opt {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--ink-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fhm-opt:hover { border-color: var(--line-strong); }

.fhm-opt.is-selected {
  border-color: var(--pink);
  background: var(--pink-soft);
  color: var(--ink);
  font-weight: 600;
  box-shadow: none;
}

.fhm-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.fhm-nav[hidden] {
  display: none !important;
}

.fhm-btn {
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: 0;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  transform: none;
}

.fhm-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fhm-btn:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.fhm-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.fhm-btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: none;
}

.fhm-btn-primary:hover:not(:disabled) {
  background: #e0487a;
}

.fhm-btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.fhm-btn-ghost:hover:not(:disabled) {
  border-color: var(--ink);
}

.fhm-btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.fhm-btn-secondary:hover:not(:disabled) {
  background: var(--bg-soft);
}

.fhm-footnote {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.fhm-loading,
.fhm-error {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.fhm-error {
  color: #9b1c1c;
  background: #fff5f5;
  border-radius: 8px;
  border: 1px solid #ffd0d0;
}

.fhm-lyrics-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  box-shadow: none;
}

.fhm-lyrics-pulse {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: none;
  animation: fhmBlink 1s steps(2, end) infinite;
  flex-shrink: 0;
}

@keyframes fhmBlink {
  50% { opacity: 0.25; }
}

.fhm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fhm-pill {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.fhm-pill::before { display: none; }

.fhm-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fhm-tag {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: var(--ink-2);
  font-weight: 500;
}

.fhm-lyrics-box {
  min-height: 280px;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.6;
  background: #fff;
}

.fhm-counter {
  text-align: right;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 6px 0 8px;
  font-variant-numeric: tabular-nums;
}

.fhm-result {
  text-align: center;
  padding: 24px 8px;
}

.fhm-result .fhm-title {
  background: none;
  color: var(--ink);
  -webkit-background-clip: unset;
  background-clip: unset;
}

.fhm-result audio {
  width: 100%;
  margin: 20px 0;
}

.fhm-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.fhm-other-wrap {
  margin-top: 14px;
  display: none;
}

.fhm-other-wrap.is-open { display: block; }

.fhm-hint {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 8px;
}

.fhm-info-box {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.84rem;
  background: var(--bg-soft);
}

.fhm-status-ok { color: #0a7a45; font-weight: 600; }

.fhm-checkout-frame-wrap {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 520px;
}

.fhm-checkout-frame {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
  background: #fff;
}

@media (max-width: 640px) {
  .fhm-checkout-frame-wrap { min-height: 460px; }
  .fhm-checkout-frame { height: 520px; }
}

.fhm-pay-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 18px auto 8px;
  max-width: 420px;
}

.fhm-pay-now {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 14px 20px;
}

.fhm-pay-box .fhm-btn-secondary {
  width: 100%;
  justify-content: center;
}

.fhm-pay-hint {
  margin: 2px 0 0;
  text-align: center;
}

.fhm-pay-box.is-paid {
  max-width: 420px;
}

.fhm-pay-confirmed {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  border: 1px solid #b7e4c7;
  background: #f1faf4;
  border-radius: 12px;
  padding: 14px 16px;
}

.fhm-pay-confirmed strong {
  display: block;
  color: #0a7a45;
  margin-bottom: 4px;
}

.fhm-pay-confirmed p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.fhm-pay-confirmed-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: #0a7a45;
  position: relative;
}

.fhm-pay-confirmed-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fhm-paywait .fhm-produce-steps {
  margin-top: 28px;
}

.fhm-produce-steps {
  list-style: none;
  margin: 22px auto 0;
  padding: 0;
  max-width: 360px;
  text-align: left;
}

.fhm-produce-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.fhm-produce-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d7d0d3;
  flex: 0 0 22px;
  position: relative;
}

.fhm-produce-step.is-done {
  color: #0a7a45;
  border-color: #b9e4cb;
  background: #f3fbf6;
}

.fhm-produce-step.is-done .fhm-produce-check {
  border-color: #0a7a45;
  background: #0a7a45;
}

.fhm-produce-step.is-done .fhm-produce-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fhm-produce-step.is-active {
  color: var(--ink);
  border-color: var(--pink);
  background: #fff5f8;
}

.fhm-produce-step.is-active .fhm-produce-check {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(239, 91, 138, 0.15);
  animation: fhm-pulse-ring 1.4s ease-in-out infinite;
}

.fhm-produce-eta {
  margin-top: 16px;
  font-weight: 600;
  color: var(--ink-2);
}

.fhm-ready-lyrics {
  margin-top: 22px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
}

.fhm-ready-lyrics h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.fhm-ready-lyrics pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-height: 280px;
  overflow: auto;
}

.fhm-email-note {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.fhm-finalize-wrap {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.fhm-finalize-btn {
  min-width: min(100%, 280px);
  letter-spacing: 0.04em;
}

.fhm-finalize-wrap .fhm-hint {
  margin-top: 10px;
}

@keyframes fhm-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 3px rgba(239, 91, 138, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(239, 91, 138, 0.08); }
}

