/* RAFAELA public homepage */
.hm { max-width: 1120px; margin: 0 auto; }
.hm-hero { text-align: center; padding: 18px 0 8px; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); border: 1px solid rgba(167, 139, 250, .35); color: #d8c8ff; font-size: 12.5px; font-weight: 650; letter-spacing: .04em; }
.hm-hero h1 { margin: 18px auto 0; max-width: 820px; font-size: clamp(30px, 5.4vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 780; color: #fff; }
.hm-hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-lead { margin: 16px auto 0; max-width: 680px; font-size: clamp(15px, 2vw, 18px); color: var(--text-soft, #cbd5e1); line-height: 1.6; }
.hm-tag { margin: 10px auto 0; font-size: 13.5px; color: var(--muted); font-style: italic; }
.hm-cta { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hm-auth { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.hm-auth a { font-weight: 650; }

/* the demo window (video or animation) */
.hm-demo-wrap { margin: 34px auto 10px; max-width: 1040px; }
.hm-window { border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: #0a0a0f; overflow: hidden; box-shadow: 0 40px 90px -45px rgba(124, 58, 237, .65); }
.hm-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.hm-dots { display: inline-flex; gap: 6px; } .hm-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.hm-bar-title { flex: 1; font-size: 12.5px; color: var(--muted); }
.hm-badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fde68a; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .4); }
.hm-note { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.hm-admin { color: #fde68a; }
.hm-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.hm-video video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.hm-video video.is-failed { opacity: .35; }
.hm-static { padding: 24px; color: var(--muted); }

.hm-body { padding: 14px 16px 12px; }
.hm-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.hm-steps::-webkit-scrollbar { display: none; }
.hm-steps li { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: var(--muted); transition: all .25s; white-space: nowrap; }
.hm-steps li b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(255, 255, 255, .1); color: #e5e7eb; }
.hm-steps li.is-done { color: #c7b8ff; border-color: rgba(167, 139, 250, .3); }
.hm-steps li.is-done b { background: rgba(124, 58, 237, .5); }
.hm-steps li.is-on { color: #fff; border-color: var(--primary-hover); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.hm-steps li.is-on b { background: var(--primary); color: #fff; }

.hm-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.hm-form, .hm-out { border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px; background: rgba(255, 255, 255, .02); min-height: 420px; }
.hm-field { margin-bottom: 10px; }
.hm-field label { display: block; font-size: 11.5px; font-weight: 650; color: #cbd5e1; margin-bottom: 4px; }
.hm-input { min-height: 34px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; font-size: 13px; color: #fff; display: flex; align-items: center; }
.hm-area { border-radius: 14px; align-items: flex-start; min-height: 86px; }
.hm-t { white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.hm-caret { display: inline-block; width: 1px; height: 1em; margin-left: 1px; background: #c4b5fd; vertical-align: -2px; animation: hmBlink 1s steps(1) infinite; }
@keyframes hmBlink { 50% { opacity: 0; } }
.hm-check { display: flex; align-items: center; gap: 9px; margin: 4px 0 10px; font-size: 12.5px; color: #e5e7eb; }
.hm-box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, .5); display: inline-grid; place-items: center; transition: all .25s; }
.hm-box.is-on { background: var(--primary); border-color: var(--primary-hover); }
.hm-box.is-on::after { content: "✓"; color: #fff; font-size: 11px; line-height: 1; }
.hm-plan { opacity: .25; transition: opacity .4s; }
.hm-plan.is-on { opacity: 1; }
.hm-prow { display: grid; grid-template-columns: 22px 1.5fr 1fr .8fr; gap: 8px; align-items: center; padding: 6px 4px; font-size: 11.5px; border-bottom: 1px solid rgba(255, 255, 255, .07); opacity: .35; transition: opacity .35s; }
.hm-prow.is-on, .hm-phead { opacity: 1; }
.hm-phead { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hm-n { color: var(--muted); }
.hm-dt { display: flex; flex-direction: column; min-width: 0; } .hm-dt b { color: #fff; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hm-dt em { font-style: normal; color: #cbd5e1; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-chip { min-height: 18px; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; color: #cbd5e1; background: rgba(255, 255, 255, .05); width: fit-content; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; transition: all .3s; }
.hm-chip.is-manual { color: #c4b5fd; background: rgba(124, 58, 237, .2); border: 1px solid rgba(167, 139, 250, .45); }
.hm-chip.is-auto { color: #cbd5e1; border: 1px dashed rgba(255, 255, 255, .3); }
.hm-col { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #e5e7eb; }
.hm-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; transition: background .35s; }
.hm-gen { margin-top: 14px; padding: 10px 14px; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 700; color: #fff; background: var(--gradient); transition: transform .2s, box-shadow .3s; }
.hm-gen.is-press { transform: scale(.96); }
.hm-gen.is-glow { box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }

.hm-outhead { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hm-empty { display: grid; place-items: center; min-height: 300px; color: var(--muted); font-size: 13px; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 12px; }
.hm-empty[hidden] { display: none; }
.hm-prog { display: none; gap: 8px; } .hm-prog.is-on { display: grid; }
.hm-pr { display: grid; grid-template-columns: 1.1fr 1.2fr auto; gap: 10px; align-items: center; font-size: 11.5px; color: #e5e7eb; }
.hm-pr span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-bar2 { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; } .hm-bar2 i { display: block; height: 100%; width: 0; background: var(--gradient); transition: width .35s; }
.hm-pr small { color: var(--muted); min-width: 52px; text-align: right; } .hm-pr.is-done small { color: #4ade80; }
.hm-cards { display: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .hm-cards.is-on { display: grid; }
.hm-lp { border-radius: 10px; overflow: hidden; background: var(--bg); color: var(--tx); border: 1px solid rgba(255, 255, 255, .16); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .4s, transform .4s; }
.hm-lp.is-on { opacity: 1; transform: none; }
.hm-lp-nav { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--tx) 14%, transparent); } .hm-lp-nav i { width: 14px; height: 7px; border-radius: 3px; background: var(--c); } .hm-lp-nav b { width: 16px; height: 4px; border-radius: 3px; background: color-mix(in srgb, var(--tx) 35%, transparent); }
.hm-lp-hero { padding: 10px 8px 8px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 28%, var(--bg)), var(--bg)); } .hm-lp-hero h5 { margin: 0 0 8px; font-size: 9.5px; line-height: 1.3; font-weight: 700; color: var(--tx); } .hm-lp-btn { display: block; width: 44px; height: 9px; border-radius: 5px; background: var(--c); }
.hm-lp-lines { padding: 6px 8px; display: grid; gap: 4px; } .hm-lp-lines i { height: 4px; border-radius: 3px; background: color-mix(in srgb, var(--tx) 22%, transparent); } .hm-lp-lines i:nth-child(2) { width: 80%; } .hm-lp-lines i:nth-child(3) { width: 55%; }
.hm-lp-meta { padding: 6px 8px 8px; display: flex; flex-direction: column; border-top: 1px solid color-mix(in srgb, var(--tx) 14%, transparent); } .hm-lp-meta strong { font-size: 9.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hm-lp-meta small { font-size: 9px; opacity: .75; }
.hm-zip { display: none; margin-top: 14px; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(167, 139, 250, .5); background: var(--primary-soft); color: #fff; font-weight: 700; font-size: 13.5px; } .hm-zip.is-on { display: flex; animation: hmPop .5s; }
.hm-zip small { margin-left: auto; font-weight: 500; color: #cbd5e1; font-size: 11.5px; } .hm-zip-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); }
@keyframes hmPop { 0% { transform: scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
.hm-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.hm-ctrl[hidden] { display: none; }
.hm-cap { margin-right: auto; font-size: 12px; color: var(--muted); }
.hm-window.is-static .hm-steps li { opacity: .9; }

/* feature cards, templates, pricing, final call */
.hm-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 46px 0 8px; }
.hm-feature { padding: 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); }
.hm-feature h3 { margin: 12px 0 6px; font-size: 16px; color: #fff; } .hm-feature p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.hm-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: #c4b5fd; }
.hm-block { margin-top: 52px; }
.hm-sub { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.hm-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.hm-mode { min-width: 0; overflow-wrap: anywhere; padding: 20px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.hm-mode h3 { margin: 0; font-size: 19px; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-tag { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gradient, #7c3aed); color: #fff; }
.hm-mode-for { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.hm-howsteps { margin: 14px 0 0; padding-left: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hm-mode-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.hm-good { overflow-wrap: anywhere; margin: 18px 0 0; padding-left: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
@media (max-width: 860px) { .hm-modes { grid-template-columns: minmax(0, 1fr); } }
.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hm-head h2, .hm-final h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; color: #fff; }
.hm-sub { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; max-width: 720px; }
.hm-tpls { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-tpl { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); background: var(--card); color: inherit; transition: transform .15s, border-color .15s; }
.hm-tpl:hover { transform: translateY(-2px); border-color: var(--primary-hover); }
.hm-tpl-img { display: block; aspect-ratio: 16 / 10; background: #05060a; overflow: hidden; } .hm-tpl-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hm-tpl-name { padding: 10px 12px 0; font-weight: 650; color: #fff; font-size: 14px; } .hm-tpl-cat { padding: 0 12px 10px; font-size: 12px; color: var(--muted); }
.hm-plans { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hm-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: inherit; transition: border-color .15s, transform .15s; }
.hm-plan:hover { border-color: var(--primary-hover); transform: translateY(-2px); } .hm-plan.is-popular { border-color: rgba(167, 139, 250, .6); box-shadow: 0 0 0 3px rgba(124, 58, 237, .14); }
.hm-plan strong { font-size: 16px; color: #fff; } .hm-price { font-size: 26px; font-weight: 750; color: #fff; } .hm-price small { font-size: 13px; font-weight: 500; color: var(--muted); } .hm-plan-credits { font-size: 13.5px; color: #cbd5e1; }
.hm-pop { position: absolute; top: -10px; right: 14px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--primary); color: #fff; }
.hm-final { margin: 56px 0 8px; padding: 34px 20px; text-align: center; border-radius: 22px; border: 1px solid rgba(167, 139, 250, .35); background: radial-gradient(120% 140% at 50% 0%, rgba(124, 58, 237, .28), rgba(10, 10, 15, .9)); }

@media (max-width: 900px) {
  .hm-grid { grid-template-columns: 1fr; }
  .hm-form, .hm-out { min-height: 0; }
  .hm-empty { min-height: 120px; }
  .hm-features { grid-template-columns: repeat(2, 1fr); }
  .hm-tpls { grid-template-columns: repeat(2, 1fr); }
  .hm-plans { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hm-features { grid-template-columns: 1fr; }
  .hm-prow { grid-template-columns: 18px 1.4fr 1fr; } .hm-prow .hm-col { grid-column: 2 / 4; }
  .hm-cta .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hm-caret, .hm-zip.is-on { animation: none; } .hm-lp, .hm-plan, .hm-prow { transition: none; } }

.hm-modes.hm-modes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .hm-modes.hm-modes-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .hm-modes.hm-modes-3 { grid-template-columns: minmax(0, 1fr); } }
