/* The free headshot tool inline on its landing page (create/embed.js). Self-contained: the landing page may not load
   the app's CSS, so every rule is here, on the brand tokens with fallbacks. The slot's height is reserved before the
   script runs (no layout shift). */
[data-free-embed] {
  --fe-accent: var(--accent, #E8296A); --fe-ink: var(--ink, #2A0F1F); --fe-ink2: var(--ink-2, #5C4A54); --fe-ink3: var(--ink-3, #7A6872);
  --fe-line: var(--line-2, #DDCBCE); --fe-soft: var(--accent-soft, #FFEDF1); --fe-paper: var(--paper-2, #FDEFEE); --fe-warn: var(--warn, #B42318);
  display: block; width: 100%; max-width: 460px; min-height: 548px; margin: 0 auto; font-family: var(--font, 'DM Sans', system-ui, sans-serif);
  color: var(--fe-ink); text-align: left;
}
.fe-card {
  position: relative; display: flex; flex-direction: column; min-height: 548px; padding: 16px 18px 18px; border-radius: 22px;
  background: #fff; border: 1px solid rgba(42, 15, 31, .08); box-shadow: 0 18px 50px rgba(42, 15, 31, .16), 0 2px 6px rgba(42, 15, 31, .06);
}
.fe-loading { align-items: center; justify-content: center; }
.fe-loading .spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #F1E3E3; border-top-color: var(--fe-accent); animation: fe-spin .9s linear infinite; }
@keyframes fe-spin { to { transform: rotate(360deg); } }

.fe-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 12px; }
.fe-badge { padding: 4px 10px; border-radius: 99px; background: var(--fe-soft); color: var(--accent-ink, #C2185B); font-size: 12.5px; font-weight: 700; }
.fe-back { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px 0 6px; border: 1px solid var(--fe-line); border-radius: 99px; background: #fff; color: var(--fe-ink); font: 600 13.5px/1 inherit; font-family: inherit; cursor: pointer; }
.fe-back svg { width: 16px; height: 16px; }
.fe-dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fe-dots li { width: 22px; height: 5px; border-radius: 5px; background: #F1E3E3; }
.fe-dots li.on { background: var(--fe-accent); }

.fe-body { flex: 1; display: flex; flex-direction: column; }
.fe-h { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; outline: none; }
.fe-sub { margin: 6px 0 0; color: var(--fe-ink2); font-size: 15px; line-height: 1.45; }
.fe-go {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: auto; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--cta, linear-gradient(110deg, #D41F5C 0%, #D03A35 100%)); color: #fff; font: 700 17px/1.2 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(212, 31, 92, .26);
}
.fe-go:hover { filter: brightness(.96); }
.fe-go:focus-visible, .fe-style:focus-visible, .fe-seg button:focus-visible, .fe-back:focus-visible { outline: 2px solid var(--fe-accent); outline-offset: 2px; }
.fe-go.is-busy { pointer-events: none; color: transparent; position: relative; }
.fe-go.is-busy::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: fe-spin .8s linear infinite; }

/* consent */
.fe-checks { display: grid; gap: 10px; margin-top: 14px; }
.fe-chk { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.4; color: var(--fe-ink2); cursor: pointer; }
.fe-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fe-box { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--fe-line); border-radius: 6px; background: #fff; color: transparent; }
.fe-box svg { width: 15px; height: 15px; }
.fe-chk input:checked + .fe-box { background: var(--fe-accent); border-color: var(--fe-accent); color: #fff; }
.fe-chk input:focus-visible + .fe-box { outline: 2px solid var(--fe-accent); outline-offset: 2px; }
.fe-chk.is-bad .fe-box { border-color: var(--fe-warn); box-shadow: 0 0 0 3px #FCEBE8; }
.fe-chk a, .fe-more a { color: var(--fe-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.fe-more { margin: 10px 0 16px 32px; font-size: 12.5px; color: var(--fe-ink3); }

/* style */
.fe-seg { display: inline-flex; align-self: flex-start; gap: 3px; margin-top: 12px; padding: 3px; border-radius: 12px; background: var(--fe-paper); }
.fe-seg button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--fe-ink2); font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; }
.fe-seg button[aria-checked="true"] { background: #fff; color: var(--fe-ink); box-shadow: 0 1px 3px rgba(42, 15, 31, .12); }
.fe-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 16px; }
.fe-style { position: relative; display: flex; flex-direction: column; padding: 4px 4px 8px; border: 1px solid #E6D8DA; border-radius: 12px; background: #fff; cursor: pointer; font-family: inherit; }
.fe-style.is-sel { border-color: var(--fe-accent); box-shadow: 0 0 0 1px var(--fe-accent); }
.fe-pic { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 8px; color: var(--accent-ink, #C2185B); background: linear-gradient(160deg, #FFE3EA, #FFF0E2); }
.fe-pic > svg { width: 34%; opacity: .5; }
.fe-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.fe-lbl { padding: 7px 2px 0; font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--fe-ink); }
.fe-tick { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.92); color: #A8979F; box-shadow: 0 1px 3px rgba(42, 15, 31, .18); }
.fe-tick svg { width: 13px; height: 13px; }
.fe-style.is-sel .fe-tick { background: var(--fe-accent); color: #fff; }

/* upload */
.fe-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.fe-slot, .fe-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; }
.fe-slot { display: grid; place-content: center; justify-items: center; gap: 6px; border: 1.5px dashed var(--fe-line); background: #FFFBFA; color: var(--fe-ink3); font-size: 13.5px; font-weight: 700; }
.fe-slot.is-next { border-color: var(--fe-accent); background: var(--fe-soft); color: var(--accent-ink, #C2185B); cursor: pointer; }
.fe-slot svg { width: 26px; height: 26px; }
.fe-thumb { background: var(--fe-paper); }
.fe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fe-thumb.is-busy img { opacity: .55; }
.fe-thumb .spin { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.6); border-top-color: var(--fe-accent); animation: fe-spin .8s linear infinite; }
.fe-rm { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--fe-ink2); cursor: pointer; box-shadow: 0 1px 3px rgba(42, 15, 31, .18); }
.fe-rm svg { width: 16px; height: 16px; }
.fe-err { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: #FCEBE8; color: var(--fe-warn); font-size: 13.5px; font-weight: 600; }
.fe-err[hidden] { display: none; }

/* email */
.fe-input {
  width: 100%; height: 54px; margin: 16px 0 12px; padding: 0 14px; border: 1px solid var(--fe-line); border-radius: 12px; background: #fff;
  font: 500 17px/1 inherit; font-family: inherit; color: var(--fe-ink); outline: none; box-sizing: border-box;
}
.fe-input:focus { border-color: var(--fe-accent); box-shadow: 0 0 0 4px var(--fe-soft); }
.fe-input.is-bad { border-color: var(--fe-warn); }
.fe-fine { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--fe-ink3); }

/* cap */
.fe-cap { align-items: center; text-align: center; }
.fe-cap-art { width: 120px; height: 180px; margin: 18px 0 18px; border-radius: 16px; object-fit: cover; transform: rotate(-3deg); box-shadow: 0 10px 30px rgba(42, 15, 31, .14); }
.fe-cap .fe-sub { max-width: 340px; }
.fe-cap .fe-go { margin-top: 22px; }
.fe-link { margin-top: 12px; color: var(--fe-ink); font-weight: 600; font-size: 14.5px; }

.fe .sr-only, [data-free-embed] .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) {
  [data-free-embed], .fe-card { min-height: 520px; }
  .fe-card { padding: 20px 22px 22px; }
  .fe-h { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .fe-loading .spinner, .fe-thumb .spin, .fe-go.is-busy::after { animation-duration: 2s; } }

/* "Continue with Google" (js/google.js) in the card: Google's branding, self-contained like the rest of this file. */
[data-free-embed] .btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; margin-top: 14px; padding: 0 16px;
  border: 1px solid #747775; border-radius: 12px; background: #fff; color: #1F1F1F; font: 500 16px/1.2 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; box-sizing: border-box;
}
[data-free-embed] .btn-google svg { flex: none; width: 20px; height: 20px; }
@media (hover: hover) { [data-free-embed] .btn-google:hover { background: #F8F8F8; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); } }
[data-free-embed] .btn-google:focus-visible { outline: 2px solid var(--fe-accent); outline-offset: 2px; }
[data-free-embed] .btn-google.is-busy { pointer-events: none; opacity: .65; }
.fe-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--fe-ink3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fe-or::before, .fe-or::after { content: ''; flex: 1; height: 1px; background: var(--fe-line); }
.fe-gbox:not([hidden]) ~ .fe-input { margin-top: 12px; }
.fe-gbox[hidden] { display: none; }
