/* DreamerLab website. Brand values follow dreamedit/DESIGN.md:
   pink #EA376A, fold #FF85A6, light ground #FFFFFF, dark ground #141216. */

:root {
  --pink: #EA376A;
  --pink-text: #C81F55;
  --fold: #FF85A6;
  --blush: #FADDE6;

  --bg: #FFFFFF;
  --surface: #FBF5F7;
  --surface-2: #F4EAEE;
  --line: #EDE2E7;
  --ink: #171717;
  --ink-2: #5C5258;
  --ink-3: #8B8187;
  --on-pink: #FFFFFF;

  --stage: #141216;
  --stage-2: #211D24;
  --stage-line: #342E37;
  --stage-ink: #F7F3F7;
  --stage-ink-2: #B7ACB4;

  --beauty: #EA376A;
  --edit: #3B82F6;
  --create: #8B5CF6;

  --nav-bg: rgba(255, 255, 255, .78);
  --shadow: 0 30px 60px -28px rgba(120, 20, 60, .35);

  --font-display: "Nunito", "Nunito Sans", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "DM Serif Display", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-l: 28px;
  --r-m: 18px;
  --r-s: 12px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pink-text: #FF7098;
    --bg: #141216;
    --surface: #1C191F;
    --surface-2: #26212A;
    --line: #2F2A33;
    --ink: #F7F3F7;
    --ink-2: #BAAFB7;
    --ink-3: #8D8289;
    --stage: #0C0A0E;
    --stage-2: #1B171E;
    --stage-line: #2E2931;
    --nav-bg: rgba(20, 18, 22, .78);
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --pink-text: #FF7098;
  --bg: #141216;
  --surface: #1C191F;
  --surface-2: #26212A;
  --line: #2F2A33;
  --ink: #F7F3F7;
  --ink-2: #BAAFB7;
  --ink-3: #8D8289;
  --stage: #0C0A0E;
  --stage-2: #1B171E;
  --stage-line: #2E2931;
  --nav-bg: rgba(20, 18, 22, .78);
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--fold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */

.eyebrow {
  margin: 0 0 14px;
  font: 800 12px/1.3 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink-text);
}

.h2 {
  margin: 0;
  font: 800 clamp(2rem, 4.4vw, 3.25rem)/1.05 var(--font-display);
  letter-spacing: -.03em;
  text-wrap: balance;
}

.h2 em, .h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--pink); letter-spacing: -.01em; }

.lede { margin: 18px 0 0; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); text-wrap: pretty; }

.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__row { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand img { width: 24px; height: auto; }
.brand span { font: 800 21px/1 var(--font-display); letter-spacing: -.02em; }

.nav__links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color .15s, background .15s; }
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }

.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 0;
  background: var(--pink); color: var(--on-pink);
  font: 800 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn-pill:hover { background: #D92C5E; }
.btn-pill:active { transform: scale(.97); }

.nav__links + .nav__cta { margin-left: 0; }
.nav__cta { margin-left: auto; }

@media (max-width: 560px) {
  .nav__row { gap: 10px; height: 60px; }
  .brand span { font-size: 19px; }
  /* Legal pages: the footer repeats these links. */
  .nav__links { display: none; }
  .nav__links + .nav__cta { margin-left: auto; }
  .nav__cta { padding: 9px 14px; font-size: 14px; }
}

/* ---------- store buttons ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 172px; padding: 10px 20px 10px 16px;
  border-radius: 14px; background: #0B0B0C; color: #FFF;
  border: 1px solid rgba(255, 255, 255, .18);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 600; opacity: .8; }
.store b { font: 700 19px/1.15 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.01em; }
@media (max-width: 520px) {
  .store { min-width: 0; flex: 1 1 140px; max-width: 220px; padding: 9px 12px; gap: 8px; }
  .store b { font-size: 17px; }
  .store svg { width: 22px; height: 22px; }
}
.stores__soon { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 700; color: var(--pink-text); }

/* ---------- hero ---------- */

.hero { position: relative; padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -260px; top: -240px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fold) 30%, transparent), transparent 72%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.h1 {
  margin: 0;
  font: 800 clamp(2.9rem, 7vw, 5.6rem)/.98 var(--font-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h1 em { display: block; font-size: 1.04em; line-height: 1.02; margin-top: .06em; }

.hero .lede { margin-top: 24px; }
.hero .stores { margin-top: 32px; }
.hero__note { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }

/* Glow-up player: the login screen's light sweep, on the web. */
.glow { margin: 0; justify-self: center; width: 100%; max-width: 470px; }
.glow__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow);
  isolation: isolate;
}
.glow__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glow__base { transition: opacity .6s ease; }
.glow__next { clip-path: inset(0 100% 0 0); }
.glow__next.is-wiping { transition: clip-path .85s cubic-bezier(.65, 0, .35, 1); clip-path: inset(0 0 0 0); }
.glow__next.is-fade { clip-path: inset(0 0 0 0); opacity: 0; transition: opacity .6s ease; }
.glow__next.is-fade.is-in { opacity: 1; }
.glow__light {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .0) 20%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 80%, transparent);
  transform: translateX(-120%); opacity: 0; pointer-events: none; mix-blend-mode: soft-light;
}
.glow__light.is-wiping { transition: transform .85s cubic-bezier(.65, 0, .35, 1), opacity .2s; transform: translateX(300%); opacity: 1; }
.glow__chip {
  position: absolute; left: 16px; top: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(20, 18, 22, .52); color: #FFF;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 800 14px/1 var(--font-body);
  transition: opacity .25s, transform .25s;
}
.glow__chip .ico { width: 18px; height: 18px; }
.glow__chip.is-swapping { opacity: 0; transform: translateY(-4px); }
.glow__steps { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 5px; }
.glow__steps i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .38); overflow: hidden; }
.glow__steps i.is-done { background: #FFF; }
.glow figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .glow { max-width: 420px; }
}

/* ---------- highlights ---------- */

.highlights { padding-top: clamp(24px, 4vw, 48px); }
.highlights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.highlight h3 { margin: 18px 0 0; font: 800 21px/1.25 var(--font-display); letter-spacing: -.01em; }
.highlight p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.highlight__art { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
.highlight__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
/* AI Portraits: the selfie it came from, as a small card. */
.highlight__art .highlight__inset {
  inset: auto auto 14px 14px; width: 28%; height: auto; aspect-ratio: 3 / 4;
  border: 2px solid #FFF; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
/* Retouching: before on the left half, after on the right. */
.highlight__art--split .highlight__after { clip-path: inset(0 0 0 50%); }
.highlight__art--split::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: rgba(255, 255, 255, .9); }

@media (max-width: 760px) {
  .highlights__grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; }
}

/* ---------- why ---------- */

.why { background: var(--surface); }
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.reason { display: grid; gap: 10px; align-content: start; }
.reason .ico { width: 30px; height: 30px; color: var(--pink); }
.reason h3 { margin: 4px 0 0; font: 800 20px/1.25 var(--font-display); letter-spacing: -.01em; }
.reason p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reasons { grid-template-columns: minmax(0, 1fr); } }

/* ---------- how ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; align-content: start; counter-increment: step; }
.step::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--pink); color: var(--on-pink); font: 800 19px/1 var(--font-display);
}
.step h3 { margin: 8px 0 0; font: 800 20px/1.25 var(--font-display); }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* ---------- call to action ---------- */

.cta { position: relative; overflow: hidden; background: var(--pink); color: #FFF; padding-block: clamp(72px, 10vw, 120px); }
.cta__inner { display: grid; justify-items: center; text-align: center; }
.cta__icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 18px 40px -16px rgba(80, 0, 30, .6); }
.cta h2 { margin: 28px 0 0; font: 800 clamp(2.3rem, 6vw, 4.4rem)/1 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.cta p { margin: 18px 0 0; font-size: 1.15rem; color: #FFE4EC; max-width: 30em; }
.cta .stores { justify-content: center; margin-top: 34px; }
.cta .stores__soon { color: #FFF; text-align: center; }
.cta__fold { position: absolute; right: -60px; bottom: -80px; width: 380px; opacity: .1; pointer-events: none; }
@media (max-width: 640px) { .cta__fold { width: 240px; right: -50px; bottom: -60px; } }

/* ---------- contact ---------- */

.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.contact__card { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 26px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.contact__card .ico { width: 30px; height: 30px; color: var(--pink); }
.contact__card h3 { margin: 4px 0 0; font: 800 20px/1.25 var(--font-display); }
.contact__card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.contact__card .btn-pill { margin-top: 8px; max-width: 100%; overflow-wrap: anywhere; }
.contact__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px !important; }
.contact__links a { color: var(--pink-text); font-weight: 700; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* ---------- footer ---------- */

.footer { padding-block: 40px; border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer p { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer small { font-size: 13px; color: var(--ink-3); }

/* ---------- motion ---------- */

/* Hero entrance */
@keyframes load-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes load-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
html.js .hero [data-load] { animation: load-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
html.js .hero .h1 { animation-delay: .12s; }
html.js .hero .lede { animation-delay: .24s; }
html.js .hero .stores { animation-delay: .34s; }
html.js .hero .hero__note { animation-delay: .42s; }
html.js .hero .glow { animation: load-pop 1s cubic-bezier(.2, .7, .2, 1) .18s both; }

/* Four-point sparkles from the DreamLoader, around the hero photo */
.glow { position: relative; }
.sparkle { position: absolute; z-index: 4; fill: var(--fold); filter: drop-shadow(0 4px 10px rgba(234, 55, 106, .35)); pointer-events: none; animation: twinkle 3.6s ease-in-out infinite; }
.sparkle--1 { width: 34px; left: -16px; top: 14%; }
.sparkle--2 { width: 20px; right: -8px; top: -10px; fill: var(--pink); animation-delay: 1.2s; }
.sparkle--3 { width: 26px; right: -14px; bottom: 24%; animation-delay: 2.3s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  25% { opacity: 1; }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
  75% { opacity: .2; }
}

/* ---------- legal pages ---------- */

.legal { padding-block: clamp(40px, 7vw, 80px) clamp(64px, 9vw, 112px); }
.legal__inner { max-width: 760px; margin-inline: auto; }
.legal h1 { margin: 0; font: 800 clamp(2.2rem, 5vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -.03em; }
.legal__date { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.legal__intro { margin: 28px 0 0; font-size: 1.08rem; color: var(--ink-2); }
.legal__summary { margin: 32px 0 0; padding: 22px 26px; border-radius: var(--r-m); background: var(--surface); }
.legal__summary h2 { margin: 0 0 10px; font: 800 18px/1.3 var(--font-body); }
.legal .legal__summary ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal .legal__toc { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.legal__toc a { display: block; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.legal__toc a:hover { color: var(--ink); }
.legal section { margin-top: 48px; scroll-margin-top: 84px; }
.legal h2 { margin: 0 0 16px; font: 800 22px/1.25 var(--font-display); letter-spacing: -.01em; }
.legal h3 { margin: 24px 0 8px; font: 800 17px/1.35 var(--font-body); }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.legal ol, .legal ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; }
.legal .clauses { list-style: none; padding-left: 0; }
.legal .clauses > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 6px; }
.legal .clauses > li > b:first-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.legal .clauses ul { margin-top: 8px; }
.legal a { color: var(--pink-text); }
.legal strong { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal .table-wrap { overflow-x: auto; margin: 0 0 12px; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 800; background: var(--surface); }
.legal__contact { margin-top: 56px; padding: 24px 26px; border-radius: var(--r-m); background: var(--surface); }
.legal__contact p { margin: 0; }
@media (max-width: 560px) { .legal .clauses > li { grid-template-columns: 36px minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sparkle { animation: none; opacity: .9; }
}
