/* v3 additions on top of /styles.css and /v2/v2.css */

/* Welcome: AI-edited people strip (auto-scrolling marquee) */
.people { margin-top: 18px; }
.people-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.people-h b { font-size: 15px; }
.people-h span { font-size: 12px; color: var(--muted); }
.people-track { overflow: hidden; margin: 0 -16px; padding: 0 16px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.people-row { display: flex; gap: 10px; width: max-content; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pcard { position: relative; width: 132px; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; flex-shrink: 0; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.pcard .pa { width: 100%; height: 100%; object-fit: cover; }
.pcard .pb { position: absolute; left: 6px; bottom: 6px; width: 46px; aspect-ratio: 3/4; border-radius: 9px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.pcard .pb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 8px; font-weight: 800; text-align: center; background: rgba(0,0,0,.6); padding: 1px 0; }
.pcard .ps { position: absolute; top: 6px; right: 6px; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9.5px; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: var(--grad); }

/* Custom size sheet */
.ratio-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ratio-row { display: flex; align-items: center; gap: 8px; }
.ratio-row .input { width: 76px; text-align: center; font-weight: 800; font-size: 18px; padding: 12px 8px; }
.ratio-row > span { font-size: 22px; font-weight: 800; color: var(--muted); }
.ratio-preview { margin-left: auto; width: 64px; height: 64px; display: grid; place-items: center; }
.ratio-preview i { display: block; border: 2px solid var(--accent); border-radius: 6px; background: rgba(180,108,255,.15); transition: width .2s, height .2s; }

/* Loading: mosaic reveal + progress ring */
.mosaic { position: relative; border-radius: 22px; overflow: hidden; background: var(--card); max-height: 52vh; margin: 0 auto; width: 100%; box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(139,92,255,.25); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: filter .3s; }
.tiles { position: absolute; inset: 0; display: grid; }
.tiles i { background: linear-gradient(135deg, #2a2142, #1a1430); border: .5px solid rgba(255,255,255,.04); transition: opacity .5s ease, transform .5s ease; }
.tiles i:nth-child(3n) { background: linear-gradient(135deg, #34224f, #221a3a); }
.tiles i:nth-child(7n) { background: linear-gradient(135deg, #3d1f4a, #241a38); }
.tiles i.off { opacity: 0; transform: scale(.6) rotate(8deg); }
.sparkle { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); background-size: 250% 100%; animation: sweep 2.2s linear infinite; pointer-events: none; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.mosaic.done .sparkle { display: none; }
.mosaic.done { animation: reveal .6s ease; }
@keyframes reveal { 50% { transform: scale(1.02); } }
.gen-status { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.ring { width: 58px; height: 58px; transform: rotate(-90deg); flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: rgba(255,255,255,.08); }
.ring-fg { stroke: url(#none); stroke: #c06cff; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.ring-pct { position: absolute; left: 14px; width: 58px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.gen-status b#step { display: block; font-size: 15px; }
.gen-status small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }

/* Review popups during loading */
.review-pop { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: calc(100% - 24px); max-width: calc(var(--maxw) - 24px); z-index: 75;
  display: flex; gap: 12px; align-items: flex-start; background: #fff; color: #222; border-radius: 18px; padding: 12px 14px; box-shadow: 0 20px 40px rgba(0,0,0,.45);
  animation: rp-in .45s cubic-bezier(.2,1.3,.4,1) both; }
.review-pop.out { animation: rp-out .35s ease both; }
@keyframes rp-in { from { transform: translate(-50%, 130%); } }
@keyframes rp-out { to { transform: translate(-50%, 130%); opacity: 0; } }
.review-pop img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-pop .rp-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.review-pop p { font-size: 13px; color: #444; margin-top: 2px; line-height: 1.35; }
.review-pop small { color: #1a9a5a; font-weight: 700; font-size: 11px; }

/* Email suggestions side by side */
.domains { flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px -16px 0; padding: 0 16px; }
.domains::-webkit-scrollbar { display: none; }
.dom { padding: 7px 10px; border-radius: 999px; font-size: 13px; gap: 6px; color: var(--text); flex-shrink: 0; white-space: nowrap; }
.dom .dl { width: 18px; height: 18px; }

/* Welcome fits hero + trust badge + people strip above the sticky CTA */
#hero { aspect-ratio: 6/5; }
#hero .cap h1 { font-size: 23px; }
.has-sticky .trust { margin-top: 12px; padding: 10px 14px; }
.has-sticky .award { margin: 0 0 10px; }
.has-sticky .people { margin-top: 14px; }
.pcard { width: 112px; }

/* Watermark over the free preview — removed after purchase */
.wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  background: repeating-linear-gradient(-30deg, transparent 0 70px, rgba(255,255,255,.07) 70px 72px); }
.wm span { transform: rotate(-30deg); font-weight: 900; letter-spacing: .25em; font-size: 15px; color: rgba(255,255,255,.55); text-shadow: 0 1px 6px rgba(0,0,0,.5);
  border: 2px solid rgba(255,255,255,.45); padding: 6px 12px; border-radius: 8px; }

/* Welcome caption swaps with each slide */
#cap.swap h1, #cap.swap p { animation: capin .5s ease both; }
#cap.swap p { animation-delay: .08s; }
@keyframes capin { from { opacity: 0; transform: translateY(12px); } }

/* Experience screen: staged entrance */
.exp-anim .ea-art { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16/11; animation: ea-pop .6s cubic-bezier(.2,1.2,.4,1) both; }
.exp-anim .ea-art img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes ea-pop { from { opacity: 0; transform: scale(.92); } }
.ea-sweep { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); background-size: 250% 100%; animation: sweep 2.6s ease-in-out .5s infinite; }
.ea-badge { position: absolute; z-index: 2; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: rgba(13,10,20,.75); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15);
  animation: badge-in .5s cubic-bezier(.2,1.5,.4,1) both, float 3s ease-in-out infinite; }
.ea-badge.b1 { top: 12px; left: 12px; animation-delay: .5s, 1s; }
.ea-badge.b2 { top: 44%; right: 12px; animation-delay: .75s, 1.4s; }
.ea-badge.b3 { bottom: 12px; left: 22%; background: var(--grad); border: 0; animation-delay: 1s, 1.8s; }
@keyframes badge-in { from { opacity: 0; transform: scale(.4); } }
@keyframes float { 50% { translate: 0 -5px; } }
.ea-in { animation: fadeup .55s ease both; animation-delay: var(--d, 0s); }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } }
.exp-anim .checks li.ea-in::before { display: inline-block; animation: tick .4s cubic-bezier(.2,1.8,.4,1) both; animation-delay: calc(var(--d) + .15s); }
@keyframes tick { from { transform: scale(0); } }

/* Email: rotating "what people found in their inbox" reviews */
.inbox-reviews { margin-top: 20px; }
.ir-h { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.ir-stage { position: relative; height: 112px; }
.ir-card { position: absolute; inset: 0; display: flex; gap: 12px; align-items: flex-start; background: #fff; color: #222; border-radius: 16px; padding: 14px;
  opacity: 0; transform: translateX(24px) scale(.97); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.ir-card.on { opacity: 1; transform: none; }
.ir-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ir-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.ir-card p { font-size: 13px; color: #444; margin-top: 3px; line-height: 1.35; }
.ir-card small { color: #1a9a5a; font-weight: 700; font-size: 11px; }
.ir-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.ir-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); transition: width .3s, background .3s; }
.ir-dots i.on { width: 18px; background: var(--grad); }

/* Sticky top bar: same fade-out as v1, in dark purple instead of black */
.topbar { background: linear-gradient(#24143a 70%, transparent); }

/* Welcome: gold stars badge (replaces the award) */
.stars-badge { display: flex; justify-content: center; gap: 4px; margin: 2px 0 12px; }
.stars-badge svg { width: 22px; height: 22px; fill: #ffbf00; filter: drop-shadow(0 0 6px rgba(255,191,0,.35)); animation: star-in .4s cubic-bezier(.2,1.6,.4,1) both; }
.stars-badge svg:nth-child(2) { animation-delay: .06s; } .stars-badge svg:nth-child(3) { animation-delay: .12s; }
.stars-badge svg:nth-child(4) { animation-delay: .18s; } .stars-badge svg:nth-child(5) { animation-delay: .24s; }
@keyframes star-in { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
.trust small.as { display: inline-flex; align-items: center; gap: 4px; }
.trust small.as .apple { width: 10px; height: 12px; color: var(--muted); margin-top: -1px; }

/* Experience screen: auto before/after wipe on the user's image */
.ea-art .ea-before { position: absolute; inset: 0; filter: blur(3px) saturate(.2) contrast(.85) brightness(.9); }
.ea-art .ea-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p, 50%)); animation: wipe 4.5s ease-in-out .6s infinite; }
.ea-art .ea-after img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s ease-in-out infinite alternate; }
.ea-art .ea-line { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.8); animation: wipe-line 4.5s ease-in-out .6s infinite; z-index: 1; }
@property --p { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@keyframes wipe { 0%, 100% { --p: 85%; } 50% { --p: 15%; } }
@keyframes wipe-line { 0%, 100% { left: 85%; } 50% { left: 15%; } }
.ea-lbl { position: absolute; bottom: 12px; z-index: 2; font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.6); }
.ea-lbl.l { left: 12px; } .ea-lbl.r { right: 12px; background: var(--grad); }
.ea-art .ea-badge.b3 { bottom: auto; top: 12px; left: auto; right: 12px; }
.ea-art .ea-badge.b2 { top: 40%; }

/* Welcome: user-supplied rating badge image */
.stars-badge img { height: 58px; width: auto; animation: star-in .45s cubic-bezier(.2,1.6,.4,1) both; }

/* Welcome: award badge (laurel wreath + award-style title) and Apple "Loved by" line */
.award-badge { display: flex; align-items: center; justify-content: center; gap: 2px; margin: 0 0 4px; animation: badge-rise .6s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes badge-rise { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.award-badge .laurel-l { width: 30px; height: 56px; filter: drop-shadow(0 1px 4px rgba(180,108,255,.35)); }
.award-badge .laurel-l { transform: rotate(-14deg) scaleY(-1); } /* leaves point up, tips tilted out away from the title */
.award-badge .laurel-l.flip { transform: rotate(14deg) scale(-1, -1); }
.ab-mid { display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 0 4px; }
.ab-rank { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #111; background: linear-gradient(135deg, #fff, #d9d2ec); padding: 3px 8px; border-radius: 999px; margin-bottom: 5px; }
.ab-mid b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.ab-mid small { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ab-loved { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.ab-loved .apple { width: 11px; height: 13px; color: var(--text); margin-top: -2px; }
