/* Nevli site — the app's v4 colours. The app is dark-only, so is the site. Mobile first. */
:root {
  color-scheme: dark;
  --bg: #0C0B1A;
  --bg2: #120F26;
  --card: #191731;
  --fill: #25223F;
  --border: #2E2A52;
  --text: #FFFFFF;
  --text2: #B8B6C9;
  --text3: #8E8BA3;
  --link: #A99BFF;
  --violet: #9B5CFF;
  --brand: linear-gradient(90deg, #5B7CFF, #9B5CFF 55%, #FF6FA8);
  --radius: 22px;
  --pad: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 400 16px/1.6 'Instrument Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }

/* ---------- Header ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* The glass spans the whole width, the content keeps to the 1120 px column. */
  padding: 14px max(var(--pad), calc((100% - 1120px) / 2 + var(--pad)));
  padding-top: max(14px, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(46, 42, 82, .5);
  background: rgba(12, 11, 26, .82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: auto; height: 30px; filter: drop-shadow(0 0 8px rgba(120, 100, 255, .5)); }
.nav { display: flex; gap: 6px; }
.nav a { color: var(--text2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }

/* ---------- Hero ---------- */
.home main { overflow: hidden; }
.hero {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  padding: 28px var(--pad) 8px;
  display: grid; gap: 36px;
}
.hero::before {
  content: ''; position: absolute; inset: -120px -40% auto; height: 520px; z-index: -1;
  background: radial-gradient(closest-side, rgba(155, 92, 255, .28), transparent 70%),
              radial-gradient(closest-side at 80% 40%, rgba(255, 111, 168, .16), transparent 70%);
  pointer-events: none;
}
.eyebrow { margin: 0 0 12px; color: var(--link); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 12vw, 76px); font-weight: 700; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text2); font-size: clamp(17px, 4.4vw, 20px); margin: 18px 0 0; max-width: 32ch; }

/* Moving columns of looks, as on the app's first onboarding slide. */
.collage {
  position: relative; height: 440px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  overflow: hidden; border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.col { display: flex; flex-direction: column; gap: 10px; will-change: transform; }
.col img { width: 100%; border-radius: 16px; background: var(--fill); }
.col.up { animation: col-up 38s linear infinite; }
.col.down { animation: col-down 38s linear infinite; }
.col.slow { animation-duration: 46s; }
@keyframes col-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 5px)); } }
@keyframes col-down { from { transform: translateY(calc(-50% - 5px)); } to { transform: translateY(0); } }

/* ---------- Sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 64px var(--pad) 0; }
.section > h2 { font-size: clamp(30px, 7vw, 44px); margin-bottom: 28px; max-width: 18ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--fill); color: var(--link); font-weight: 700;
}
.steps h3 { font-size: 20px; margin-bottom: 6px; }
/* Real app screens in a phone outline. */
.phone {
  margin: 0 auto 22px; width: min(100%, 240px); aspect-ratio: 560 / 1218;
  padding: 7px; border-radius: 40px; background: #050410;
  border: 1px solid #3B3280; box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 4px rgba(155, 92, 255, .08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }
.steps p { margin: 0; color: var(--text2); }

/* Two rows of styles drifting in opposite directions, edge to edge. */
.band { max-width: none; padding-left: 0; padding-right: 0; }
.band-head { max-width: 1120px; margin: 0 auto 28px; padding: 0 var(--pad); }
.band-head h2 { font-size: clamp(30px, 7vw, 44px); }
.band-head p { margin: 12px 0 0; color: var(--text2); max-width: 46ch; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee + .marquee { margin-top: 12px; }
.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; }
.marquee.left .track { animation: band-left 70s linear infinite; }
.marquee.right .track { animation: band-right 70s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes band-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
@keyframes band-right { from { transform: translateX(calc(-50% - 6px)); } to { transform: translateX(0); } }
.track li { position: relative; flex: none; width: 150px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--fill); }
.track img { width: 100%; height: 100%; object-fit: cover; }
.track span {
  position: absolute; inset: auto 0 0; padding: 36px 12px 10px;
  background: linear-gradient(transparent, rgba(12, 11, 26, .88));
  font-weight: 600; font-size: 14px; line-height: 1.25;
}

/* Video templates: looping cards, a swipeable row on phones and a grid on wider screens. */
.videos-head { margin-bottom: 28px; }
.videos-head h2 { font-size: clamp(30px, 7vw, 44px); }
.videos-head p:last-child { margin: 12px 0 0; color: var(--text2); max-width: 52ch; }
.clips {
  list-style: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none;
}
.clips::-webkit-scrollbar { display: none; }
.clips li { flex: none; width: 62%; scroll-snap-align: start; }
.clips button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--fill); color: var(--text);
  font: inherit; text-align: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.clips button:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px rgba(155, 92, 255, .6), 0 20px 50px rgba(0, 0, 0, .5); }
.clips video { width: 100%; height: 100%; object-fit: cover; }
.clips span {
  position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 44px 14px 14px;
  background: linear-gradient(transparent, rgba(12, 11, 26, .9)); font-weight: 600; font-size: 17px; line-height: 1.2;
}
.clips small { color: var(--link); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.clips button::before, .looks li[data-cat="video"] button::before {
  content: ''; position: absolute; z-index: 1; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(12, 11, 26, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") 55% 50% / 14px no-repeat;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.looks li[data-cat="video"] button::before { top: 8px; left: 8px; width: 24px; height: 24px; background-size: 12px; }
.clips-head { margin: 36px 0 16px; }
.clips-head h3 { font-size: 24px; }
.clips-head p { margin: 6px 0 0; color: var(--text2); max-width: 52ch; }
.clips-mini li { width: 46%; }
.videos-foot { margin: 16px 0 0; color: var(--text3); font-size: 14px; }

.stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stats li {
  padding: 8px 16px; border-radius: 999px; background: rgba(25, 23, 49, .7); border: 1px solid var(--border);
  color: var(--text2); font-size: 15px;
}

/* Use cases: three looks fanned out like prints on a table. */
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.idea {
  --tint: 155, 92, 255;
  position: relative; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, rgba(var(--tint), .22), transparent 70%), var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.idea-work { --tint: 91, 124, 255; }
.idea-wedding { --tint: 255, 214, 170; }
.idea-travel { --tint: 255, 170, 60; }
.idea-gym { --tint: 120, 140, 170; }
.idea-portrait { --tint: 255, 70, 90; }
.idea-characters { --tint: 70, 200, 255; }
.idea-decades { --tint: 255, 111, 168; }
.idea-art { --tint: 255, 200, 60; }
.fan { position: relative; height: 236px; margin: 6px 0 22px; }
.fan img {
  position: absolute; left: 50%; top: 0; height: 200px; width: auto; aspect-ratio: 3 / 4;
  object-fit: cover; border-radius: 16px; background: var(--fill);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .08);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.fan .front { z-index: 2; transform: translate(-50%, 4px); }
.fan .back.l { transform: translate(-78%, 20px) rotate(-8deg); }
.fan .back.r { transform: translate(-22%, 20px) rotate(8deg); }
.idea:hover .fan .back.l { transform: translate(-84%, 14px) rotate(-11deg); }
.idea:hover .fan .back.r { transform: translate(-16%, 14px) rotate(11deg); }
.idea:hover .fan .front { transform: translate(-50%, 0) scale(1.03); }
.tag { margin: 0 0 8px; color: var(--link); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.idea h3 { font-size: 22px; margin-bottom: 6px; }
.idea p:last-child { margin: 0; color: var(--text2); }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--fill); color: var(--link); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-size: 20px; margin-bottom: 6px; }
.features p { margin: 0; color: var(--text2); }

.pro-card {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 32px 24px;
  background: linear-gradient(160deg, #2A1F6B, #191731 55%);
  border: 1px solid #3B3280;
}
.pro-card::after {
  content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px;
  background: radial-gradient(closest-side, rgba(255, 111, 168, .35), transparent);
}
.pro-card h2 { font-size: clamp(30px, 7vw, 44px); margin-bottom: 20px; }
.pro-looks { position: relative; list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pro-looks li { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--fill); }
.pro-looks img { width: 100%; height: 100%; object-fit: cover; }
.pro-looks li::after {
  content: 'PRO'; position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 18px; font-weight: 500; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks li::before {
  content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 16.8-4.6-4.6 1.7-1.7 2.9 2.9 6.3-6.3 1.7 1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 16.8-4.6-4.6 1.7-1.7 2.9 2.9 6.3-6.3 1.7 1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* ---------- Get the app: App Store button and QR ---------- */
.get { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
/* Drawn after Apple's black "Download on the App Store" badge. */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid #A6A6A6;
  transition: transform .2s, box-shadow .2s;
}
.store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(155, 92, 255, .35); }
.store svg { width: 28px; height: 28px; fill: currentColor; margin-top: -3px; }
.store span { display: grid; font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: -.02em; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .01em; margin-bottom: 3px; }
.qr-chip { display: none; align-items: center; gap: 12px; color: var(--text2); font-size: 14px; line-height: 1.35; }
.qr {
  position: relative; display: block; width: 84px; aspect-ratio: 1; flex: none;
  padding: 6px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 40px rgba(155, 92, 255, .35);
}
.qr svg { display: block; width: 100%; height: 100%; fill: #0C0B1A; }
.qr img {
  position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; transform: translate(-50%, -50%);
  border-radius: 22%; box-shadow: 0 0 0 3px #fff;
}
.pill-new {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(25, 23, 49, .7); color: var(--text); font-size: 14px; font-weight: 600;
}
.pill-new:hover { text-decoration: none; border-color: #3B3280; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.nav-get { display: none; }

/* Hero: a real selfie and the photo the app made from it, over the moving looks. */
.hero-art { position: relative; }
.swap {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%);
  display: grid; grid-template-columns: 56px 22px 72px auto; align-items: center; gap: 10px;
  margin: 0; padding: 10px 14px 10px 10px; border-radius: 22px;
  background: rgba(12, 11, 26, .78); border: 1px solid rgba(155, 92, 255, .35);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); white-space: nowrap;
}
.swap img { max-width: none; border-radius: 14px; object-fit: cover; }
.swap-in { width: 56px; height: 56px; border-radius: 50% !important; border: 2px solid rgba(255, 255, 255, .2); }
.swap-out { width: 72px; height: 96px; box-shadow: 0 0 0 2px #9B5CFF; }
.swap-arrow { color: var(--link); display: grid; }
.swap-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.swap figcaption { display: grid; font-size: 14px; }
.swap figcaption span { color: var(--text3); font-size: 12px; }

/* ---------- Try it: pick a look, add a selfie, get the app ---------- */
.try-head { max-width: 640px; margin-bottom: 26px; }
.try-head h2 { font-size: clamp(30px, 7vw, 44px); }
.try-head p:last-child { margin: 12px 0 0; color: var(--text2); }
.studio {
  position: relative; scroll-margin-top: 80px;
  background: radial-gradient(100% 60% at 50% 0%, rgba(155, 92, 255, .16), transparent 70%), var(--card);
  border: 1px solid var(--border); border-radius: 28px; padding: 18px;
}
.studio-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; }
/* Steps double as tabs: a step already reached can be tapped to go back to it. */
.studio-steps li { flex: 1; display: flex; }
.studio-steps button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 6px; border: 0; border-radius: 999px; background: var(--fill);
  color: var(--text3); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s;
}
.studio-steps button:disabled { cursor: default; }
.studio-steps i { font-style: normal; }
.studio-steps span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--border); font-size: 12px; color: var(--text2); }
.studio-steps li.on button { color: var(--text); background: #2A1F6B; }
.studio-steps li.on span, .studio-steps li.done span { background: var(--brand); color: #fff; }
.studio-steps li.done button { color: var(--text2); }
.studio-steps li:not(.on) button:enabled:hover { color: var(--text); background: #2E2A52; }
.pane { animation: pane-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pane-in { from { opacity: 0; transform: translateY(10px); } }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 14px; padding: 0 18px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button, .btn, .link { font: inherit; cursor: pointer; }
.chips button {
  flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text2); font-size: 15px; font-weight: 500;
}
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.looks {
  list-style: none; margin: 0; padding: 2px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.looks button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--fill); color: var(--text);
  outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .2s;
}
.looks button:hover img { transform: scale(1.05); }
.looks img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.looks span {
  position: absolute; inset: auto 0 0; padding: 28px 8px 8px; text-align: left;
  background: linear-gradient(transparent, rgba(12, 11, 26, .9)); font-size: 12px; font-weight: 600; line-height: 1.2;
}
.looks button[aria-pressed="true"] { outline-color: #9B5CFF; }
.looks button[aria-pressed="true"]::after {
  content: ''; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: #9B5CFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pane-foot {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px -18px -18px; padding: 14px 18px 18px; border-radius: 0 0 28px 28px;
  background: linear-gradient(transparent, var(--card) 30%);
}
.picked-line { margin: 0; color: var(--text2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked-line b { color: var(--text); }
.btn {
  flex: none; display: inline-grid; place-items: center; min-width: 120px; height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--brand); background-size: 200% 100%;
  color: #fff; font-weight: 700; font-size: 19px; transition: background-position .6s, opacity .2s, transform .2s;
}
.btn:hover { background-position: 100% 0; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: default; }
.btn.ghost { background: var(--fill); color: var(--text); }
.pane-2 .pane-foot, .pane-3 .pane-foot { justify-content: space-between; }
.link { padding: 0; border: 0; background: none; color: var(--link); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

.upload-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.picked-card { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--fill); }
.picked-card :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
.picked-card figcaption {
  position: absolute; inset: auto 0 0; padding: 30px 10px 10px; font-size: 13px; font-weight: 600;
  background: linear-gradient(transparent, rgba(12, 11, 26, .9));
}
.plus { color: var(--text3); font-size: 28px; font-weight: 300; }
.drop {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; cursor: pointer;
  border-radius: 18px; border: 2px dashed #3B3280; background: rgba(37, 34, 63, .5); overflow: hidden;
  text-align: center; transition: border-color .2s, background .2s;
}
.drop:hover, .drop:focus-within { border-color: #9B5CFF; background: rgba(155, 92, 255, .1); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-empty { display: grid; justify-items: center; gap: 4px; padding: 10px; pointer-events: none; }
.drop-empty svg { width: 34px; height: 34px; fill: none; stroke: var(--link); stroke-width: 1.6; stroke-linecap: round; margin-bottom: 6px; }
.drop-empty b { font-size: 15px; }
.drop-empty small { color: var(--text3); font-size: 12px; line-height: 1.3; }
.drop-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.drop.filled { border-style: solid; border-color: #9B5CFF; }
.drop.filled .drop-empty { visibility: hidden; }
.tips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tips li { padding: 6px 12px; border-radius: 999px; background: var(--fill); color: var(--text2); font-size: 13px; }
.tips li::before { content: '✓ '; color: #3DDC84; font-weight: 700; }
.note { margin: 14px 0 0; color: var(--text3); font-size: 14px; }
.heic-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(155, 92, 255, .14); color: var(--text2); font-size: 14px; }

.final { display: grid; gap: 26px; }
.final-art { position: relative; width: min(70%, 260px); margin: 6px auto 0; aspect-ratio: 4 / 5; perspective: 900px; }
.final-look {
  width: 100%; height: 100%; object-fit: cover; border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 2px rgba(155, 92, 255, .6), 0 0 60px rgba(155, 92, 255, .35);
  animation: float 6s ease-in-out infinite;
}
.final-selfie {
  position: absolute; left: -14px; bottom: -14px; width: 38%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 4px solid var(--card); box-shadow: 0 0 0 2px #9B5CFF, 0 14px 30px rgba(0, 0, 0, .5);
  animation: float 6s ease-in-out -3s infinite;
}
@keyframes float { 50% { transform: translateY(-8px) rotate(-.6deg); } }
.sparkle { position: absolute; width: 18px; height: 18px; background: #fff; opacity: .9;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 2.4s ease-in-out infinite; }
.s1 { top: -8px; right: 14%; }
.s2 { top: 34%; right: -10px; width: 12px; height: 12px; animation-delay: -.8s; }
.s3 { bottom: 18%; left: 36%; width: 10px; height: 10px; animation-delay: -1.6s; background: #FF6FA8; }
@keyframes twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .3; } }
.final-copy h3 { font-size: clamp(26px, 6vw, 34px); }
.final-copy .look-name { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-lead { margin: 14px 0 0; color: var(--text2); font-size: 17px; max-width: 46ch; }
.final-lead b { color: var(--text); }
.final-get { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.qr-final { display: none; width: 190px; padding: 10px; border-radius: 22px; }
.qr-hint { display: none; margin: 0 0 12px; color: var(--text2); font-size: 15px; }
.final { animation: pane-in .6s cubic-bezier(.2, .8, .2, 1); }

/* The build-up before the App Store: the look stays fully blurred and drifts while a scan line passes and the bar
   fills in five seconds. */
.gen { display: grid; gap: 26px; justify-items: center; text-align: center; padding: 6px 0 10px; }
.gen-art { position: relative; width: min(60%, 230px); aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(155, 92, 255, .6), 0 0 60px rgba(155, 92, 255, .35); }
.gen-look { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.4); transform: scale(1.35); animation: drift 5s ease-in-out forwards; }
@keyframes drift { 50% { filter: blur(26px) saturate(1.8) hue-rotate(25deg); transform: scale(1.5) rotate(4deg); } }
.gen-scan {
  position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(transparent, rgba(155, 92, 255, .5) 80%, rgba(255, 255, 255, .9) 100%);
  mix-blend-mode: screen; animation: scan 1.6s ease-in-out infinite;
}
@keyframes scan { to { top: 100%; } }
.gen-selfie {
  position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; transform: translate(-50%, -50%); animation: dissolve 5s ease-in forwards;
}
@keyframes dissolve { 0%, 30% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.gen-copy { width: min(100%, 420px); }
.gen-copy h3 { font-size: clamp(22px, 5vw, 28px); }
.gen-bar { height: 8px; margin: 18px 0 16px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.gen-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand); animation: fill 5s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes fill { to { width: 100%; } }
.gen-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: center; color: var(--text3); }
.gen-steps li { opacity: .35; transition: opacity .3s, color .3s; }
.gen-steps li.done { opacity: 1; color: var(--text2); }
.gen-steps li.done::before { content: '✓ '; color: #3DDC84; font-weight: 700; }
.final-copy .link { display: inline-block; margin-top: 24px; }

/* ---------- Outro ---------- */
.outro-card {
  position: relative; overflow: hidden; display: grid; gap: 28px; justify-items: start;
  padding: 36px 24px; border-radius: 28px; border: 1px solid #3B3280;
  background: radial-gradient(80% 120% at 100% 0%, rgba(255, 111, 168, .25), transparent 60%),
              radial-gradient(80% 120% at 0% 100%, rgba(91, 124, 255, .25), transparent 60%), #1A1540;
}
.outro-card h2 { font-size: clamp(32px, 7.5vw, 52px); max-width: 14ch; }
.outro-copy p { margin: 14px 0 24px; color: var(--text2); max-width: 40ch; }
.qr-big { display: none; width: 200px; padding: 12px; border-radius: 24px; }

/* ---------- Phone dock ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 22px;
  background: rgba(25, 23, 49, .9); border: 1px solid #3B3280;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.dock.show { transform: none; }
.dock img { width: 40px; height: 40px; border-radius: 10px; }
.dock span { flex: 1; display: grid; line-height: 1.2; }
.dock small { color: var(--text3); font-size: 13px; }
.dock .btn { min-width: 0; height: 44px; padding: 0 24px; }

@media (max-width: 719px) {
  .nav a[href="#videos"], .nav a[href="#ideas"], .nav a[href="#how"] { display: none; }
  .studio-steps li:not(.on) { flex: none; width: 36px; }
  .studio-steps li:not(.on) button { font-size: 0; gap: 0; }
  .pane-foot .btn { min-width: 0; padding: 0 20px; }
  .pane-foot .btn:last-child { flex: 1; }
}

/* ---------- Footer ---------- */
.foot {
  max-width: 1120px; margin: 80px auto 0;
  padding: 28px var(--pad); padding-bottom: max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: grid; gap: 14px; justify-items: start;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--text2); }

/* ---------- Terms / Privacy / Support ----------
   These pages are what the home footer links to, so they have no footer of their own. */
.doc {
  max-width: 760px; margin: 12px auto max(40px, env(safe-area-inset-bottom)); padding: 28px 22px 36px;
  background: var(--card); border: 1px solid var(--border); border-radius: 28px;
}
@media (max-width: 799px) { .doc { margin: 8px var(--pad) max(32px, env(safe-area-inset-bottom)); } }
.doc h1 { font-size: clamp(30px, 7vw, 40px); margin-bottom: 8px; }
/* The line under the title (Last Updated, a tagline); a document that opens with its text marks that paragraph `.preamble`. */
.doc h1 + p:not(.preamble) { color: var(--text3); font-size: 14px; margin: 0 0 8px; }
.doc h2 { font-size: 19px; letter-spacing: -.01em; margin: 30px 0 8px; padding-top: 22px; border-top: 1px solid var(--border); }
.doc p, .doc li { color: #E2E1EA; overflow-wrap: anywhere; }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--violet); }
.doc strong { color: var(--text); }
.doc a { text-decoration: underline; text-decoration-color: rgba(169, 155, 255, .4); text-underline-offset: 3px; }
/* Support: the email up front. */
.contact { margin: 20px 0 8px; padding: 20px; background: var(--fill); border-radius: 18px; }
.doc .contact p { margin: 0 0 12px; color: var(--text2); }
.doc .contact-mail { color: var(--text); font-weight: 600; font-size: 19px; text-decoration: none; }
.doc .contact-mail:hover { text-decoration: underline; }
/* Forgot password: the page a reset letter opens. */
.reset { max-width: 520px; }
.reset form { display: grid; gap: 8px; margin-top: 20px; }
.reset label { color: var(--text2); font-size: 15px; font-weight: 500; margin-top: 8px; }
.reset input {
  height: 54px; padding: 0 16px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 17px;
}
.reset input:focus { outline: none; border-color: var(--violet); }
.doc .hint { margin: 4px 0 0; color: var(--text3); font-size: 14px; }
.doc .problem { margin: 4px 0 0; color: #FF7A8A; font-size: 15px; }
.reset .btn { width: 100%; margin-top: 16px; text-decoration: none; }
.doc .help { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text3); font-size: 14px; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  .studio { padding: 26px; }
  .chips { margin: 0 0 16px; padding: 0 0 4px; }
  .looks { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .pane-foot { margin: 16px -26px -26px; padding: 16px 26px 26px; }
  .upload-row { max-width: 560px; }
  .outro-card { padding: 48px; }
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .ideas { grid-template-columns: repeat(2, 1fr); }
  .track li { width: 190px; }
  .clips { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; overflow: visible; }
  .clips li { width: auto; }
  .clips-mini { grid-template-columns: repeat(4, 1fr); }
  .clips-mini span { font-size: 15px; }
  .pro-card { padding: 48px; }
}
@media (min-width: 960px) {
  .qr-chip, .nav-get { display: flex; }
  .nav-get { color: var(--text) !important; background: var(--fill); }
  .dock { display: none; }
  .looks { grid-template-columns: repeat(7, 1fr); }
  .final { grid-template-columns: 340px 1fr; align-items: center; gap: 56px; padding: 10px 20px; }
  .final-art { width: 100%; }
  .qr-final, .qr-hint { display: block; }
  .outro-card { grid-template-columns: 1fr auto; align-items: center; padding: 56px 64px; }
  .qr-big { display: block; }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 56px; min-height: calc(100vh - 80px); max-height: 860px; }
  .collage { height: min(640px, calc(100vh - 140px)); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .ideas { grid-template-columns: repeat(4, 1fr); }
  /* Four wide cards and four narrow ones fill three rows: 2+1+1, 1+1+2, 2+2. */
  .idea-work, .idea-characters, .idea-decades, .idea-art { grid-column: span 2; }
  .fan img { height: 184px; }
  :is(.idea-work, .idea-characters, .idea-decades, .idea-art) .fan img { height: 210px; }
  :is(.idea-work, .idea-characters, .idea-decades, .idea-art) .fan .back.l { transform: translate(-118%, 20px) rotate(-9deg); }
  :is(.idea-work, .idea-characters, .idea-decades, .idea-art) .fan .back.r { transform: translate(18%, 20px) rotate(9deg); }
  .idea:is(.idea-work, .idea-characters, .idea-decades, .idea-art):hover .fan .back.l { transform: translate(-128%, 14px) rotate(-12deg); }
  .idea:is(.idea-work, .idea-characters, .idea-decades, .idea-art):hover .fan .back.r { transform: translate(28%, 14px) rotate(12deg); }
  /* Copy on the left, centred against the grid of Pro looks on the right. */
  .pro-card { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr repeat(3, auto) 1fr; column-gap: 48px; }
  .pro-card > :not(.pro-looks) { grid-column: 1; }
  .pro-card .eyebrow { grid-row: 2; }
  .pro-card h2 { grid-row: 3; }
  .pro-card .ticks { grid-row: 4; }
  .pro-looks { grid-column: 2; grid-row: 1 / -1; margin: 0; }
  .foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .col.up, .col.down { animation: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee .track { animation: none; }
  .fan img, .clips button { transition: none; }
  .dot, .swap-arrow svg, .final-look, .final-selfie, .sparkle, .pane, .final, .gen-scan, .gen-look { animation: none; }
}
