/* Layout: a bright studio table. Ivory paper, real product photos as the heroes,
   the app in hand as the tool; one signature moment (the hero sweep) and calm
   motion everywhere else. Tokens come from the Muse Studio app theme. */
:root {
  --paper: #fbf9f6;
  --card: #ffffff;
  --ink: #292632;
  --muted: #625d6a;
  --line: #e6e1e9;
  --plum: #69509d;
  --lavender: #eee8fa;
  --lilac: #b4a0ee;
  --sand: #f0ece7;
  --bezel: #1f1c26;
  --on-ink: #fbf9f6;
  --shadow: 0 30px 60px -28px rgba(41, 38, 50, 0.35), 0 12px 24px -16px rgba(41, 38, 50, 0.18);

  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Urbanist", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.06rem + 0.45vw, 1.4rem);
  --step-3: clamp(2rem, 1.5rem + 2.3vw, 3.4rem);
  --step-5: clamp(2.6rem, 1.3rem + 3.7vw, 4.6rem);

  --radius: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #19171e;
    --card: #24212c;
    --ink: #fbf9f6;
    --muted: #c5bdcf;
    --line: #433c4d;
    --plum: #d4beff;
    --lavender: #352b43;
    --lilac: #8f78d6;
    --sand: #2d2933;
    --bezel: #0d0c11;
    --on-ink: #19171e;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7), 0 12px 24px -16px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #19171e;
  --card: #24212c;
  --ink: #fbf9f6;
  --muted: #c5bdcf;
  --line: #433c4d;
  --plum: #d4beff;
  --lavender: #352b43;
  --lilac: #8f78d6;
  --sand: #2d2933;
  --bezel: #0d0c11;
  --on-ink: #19171e;
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7), 0 12px 24px -16px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  color: var(--plum);
  letter-spacing: -0.01em;
}
:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}
.selectable {
  user-select: all;
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font: 500 var(--step--1) / 1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
}
.display {
  font-size: var(--step-5);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.lede,
.section-lede {
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 34em;
}
.section-lede {
  font-size: var(--step-0);
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Buttons and store badges */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}
.btn:hover {
  transform: translateY(-2px);
}
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 11px 20px 11px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}
.store small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.store b {
  display: block;
  font-size: 1.08rem;
  line-height: 1.15;
  font-weight: 600;
}
a.store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.store.is-soon {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--paper);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  border-radius: 10px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover,
.nav a.is-current {
  color: var(--ink);
  background: var(--lavender);
}
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .header-row .btn {
    margin-left: auto;
  }
}

/* Phone frame. Its children size themselves in cqw (the phone's own width), so
   the frame scales anywhere; the frame itself uses % radii, since cqw on the
   container element would measure the page instead. */
.phone {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 720 / 1600;
  border-radius: 13% / 5.85%;
  background: var(--bezel);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.phone::before {
  /* the camera island */
  content: "";
  position: absolute;
  z-index: 3;
  top: 5.6cqw;
  left: 50%;
  width: 26cqw;
  height: 7.4cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}
.phone-screen {
  position: absolute;
  inset: 3.2cqw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10cqw;
  background: #fbf9f6;
}
.phone-status {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 13cqw;
  padding: 2.4cqw 9cqw 0;
  color: #292632;
  font: 600 4.2cqw/1 var(--font-body);
}
.phone-status i {
  width: 15cqw;
  height: 3.8cqw;
  background:
    linear-gradient(#292632, #292632) 0 50% / 9.5cqw 100% no-repeat,
    linear-gradient(#292632, #292632) 100% 50% / 1.2cqw 45% no-repeat;
  border-radius: 1cqw;
  opacity: 0.85;
}
.phone-screen > img,
.hero-screens,
.how-screens {
  flex: 1;
  min-height: 0;
  width: 100%;
}
.phone-screen > img,
.hero-screens img,
.how-screens img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Hero */
.hero {
  padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 104px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero-copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.hero-copy .display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-copy .display .line > span {
  display: inline-block;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--step--1);
}
.hero-note svg {
  width: 16px;
  height: 16px;
  fill: var(--plum);
  flex: none;
}
.hero-stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 8% 0 4%;
  min-width: 0;
}
.stage-glow {
  position: absolute;
  inset: 4% 6% 10%;
  border-radius: 999px 999px 40px 40px;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--lilac) 55%, transparent), transparent 70%),
    var(--lavender);
}
.phone-hero {
  width: clamp(230px, 27vw, 320px);
  transform: rotate(2.5deg);
}
.hero-screens {
  position: relative;
}
.hero-screens img {
  position: absolute;
  inset: 0;
}
[data-hero-next] {
  clip-path: inset(0 0 100% 0);
}
.sweep {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 22%;
  transform: translateY(-120%);
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--lilac) 70%, transparent) 45%,
    rgba(255, 255, 255, 0.9) 52%,
    color-mix(in srgb, var(--lilac) 60%, transparent) 60%,
    transparent
  );
  filter: blur(2px);
  pointer-events: none;
}
.polaroid {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 10%;
  width: clamp(120px, 13vw, 168px);
  margin: 0;
  padding: 9px 9px 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: rotate(-7deg);
}
.polaroid-img {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px;
  background: #f0ece7;
}
.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid figcaption {
  margin-top: 7px;
  text-align: center;
  font: 600 0.62rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #292632;
}
.hero-arrow {
  position: absolute;
  z-index: 2;
  left: 9%;
  bottom: 44%;
  width: clamp(70px, 8vw, 110px);
  fill: none;
  stroke: var(--plum);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.look-chip {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 12%;
  display: grid;
  gap: 2px;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.look-type {
  font-weight: 600;
  font-size: 0.92rem;
}
.look-detail {
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.hero-dots button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  transition: width 0.35s var(--ease), background-color 0.35s;
}
.hero-dots button[aria-pressed="true"]::before {
  width: 22px;
  background: var(--plum);
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }
  .phone-hero {
    width: clamp(210px, 52vw, 290px);
  }
}
@media (max-width: 560px) {
  .look-chip {
    top: auto;
    bottom: 16%;
    max-width: 170px;
  }
  .polaroid {
    bottom: 22%;
  }
  .store {
    min-width: 0;
    flex: 1 1 150px;
    padding: 10px 14px 10px 12px;
  }
}

/* Reel */
.reel {
  overflow: hidden;
  padding-block: 8px clamp(64px, 9vw, 120px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.reel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: reel 60s linear infinite;
}
.reel:hover .reel-track {
  animation-play-state: paused;
}
.reel figure {
  margin: 0;
  width: clamp(170px, 18vw, 230px);
  flex: none;
}
.reel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  background: var(--sand);
}
.reel figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
@keyframes reel {
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

/* How it works */
.how {
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--sand);
}
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  min-height: 62vh;
  align-content: center;
  opacity: 0.38;
  transition: opacity 0.5s var(--ease);
}
.step.is-active {
  opacity: 1;
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font: 500 1rem/1 var(--font-mono);
  color: var(--muted);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.step.is-active .step-num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.step-body {
  display: grid;
  gap: 10px;
  max-width: 30em;
}
.step h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.step p {
  color: var(--muted);
}
.step-shot {
  display: none;
}
.how-stage {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 90px);
  align-self: start;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 28px;
  height: calc(100vh - 140px);
  max-height: 760px;
}
.phone-how {
  height: min(640px, 100%);
  width: auto;
}
.how-screens {
  position: relative;
}
.how-screens img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.how-screens img.is-on {
  opacity: 1;
  transform: none;
}
.rail {
  width: 3px;
  height: 46%;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.rail-fill {
  transition: transform 0.6s var(--ease);
  display: block;
  width: 100%;
  height: 100%;
  background: var(--plum);
  transform-origin: top;
  transform: scaleY(0.25);
}
.flip {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: -8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.flip.is-shown {
  opacity: 1;
  transform: none;
}
.flip span {
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.3s, color 0.3s;
}
.flip span.is-on {
  background: var(--ink);
  color: var(--on-ink);
}
.how-stage {
  grid-template-rows: 1fr auto;
}
.how-stage .rail {
  grid-row: 1;
}
@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
  .how-stage {
    display: none;
  }
  .step {
    min-height: 0;
    opacity: 1;
    padding-block: 20px;
  }
  .step-shot {
    display: block;
    width: min(260px, 70vw);
    margin-top: 12px;
    border-radius: 26px;
    border: 7px solid var(--bezel);
    box-shadow: var(--shadow);
  }
}

/* Looks: tabs + compare */
.looks {
  padding-block: clamp(64px, 9vw, 120px);
}
.looks-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.looks-tabs {
  display: grid;
  gap: 12px;
}
.looks-tabs button {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.looks-tabs button:hover {
  transform: translateX(4px);
}
.looks-tabs button[aria-selected="true"] {
  background: var(--lavender);
  border-color: transparent;
}
.looks-tabs strong {
  font-size: 1.15rem;
  font-weight: 600;
}
.looks-tabs span {
  color: var(--muted);
  font-size: 0.92rem;
}
.compare-wrap {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.compare {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
  touch-action: pan-y;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.compare-handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.compare-handle i::before,
.compare-handle i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid #292632;
  border-width: 0 0 2px 2px;
}
.compare-handle i::before {
  left: 12px;
  transform: translateY(-50%) rotate(45deg);
}
.compare-handle i::after {
  right: 12px;
  transform: translateY(-50%) rotate(-135deg);
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare-range:focus-visible + * {
  outline: none;
}
.compare:focus-within {
  outline: 3px solid var(--lilac);
  outline-offset: 4px;
}
.tag {
  position: absolute;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font: 500 0.7rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: #292632;
  pointer-events: none;
}
.tag-before {
  left: 14px;
}
.tag-after {
  right: 14px;
  background: #292632;
  color: #fbf9f6;
}
.option-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 460px;
}
.option-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .looks-grid {
    grid-template-columns: 1fr;
  }
}

/* Tools bento */
.tools {
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--sand);
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tile-wide {
  grid-column: span 2;
  grid-row: span 2;
}
.tile-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f4f1ec;
}
.tile-wide .tile-media {
  aspect-ratio: auto;
  min-height: 100%;
}
.tile-wide {
  grid-template-rows: 1fr auto;
}
.tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-copy {
  display: grid;
  gap: 4px;
  padding: 18px 20px 20px;
}
.tile h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.tile p {
  color: var(--muted);
  font-size: 0.92rem;
}
.checker {
  background: repeating-conic-gradient(#ede9f3 0% 25%, #faf8fc 0% 50%) 0 0 / 22px 22px;
}
.checker .t-after {
  object-fit: contain;
  padding: 6%;
}
/* Each tile rests on its "after" state; .is-playing runs before → after once. */
.tile .t-before {
  opacity: 0;
}
.tile.is-playing .t-before {
  animation: beforeOut 1.6s var(--ease) forwards;
}
@keyframes beforeOut {
  0%,
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
[data-tile="remove-bg"] .t-before {
  clip-path: inset(0 0 0 0);
}
[data-tile="remove-bg"].is-playing .t-before {
  animation: wipeDown 1.8s var(--ease) forwards;
}
@keyframes wipeDown {
  0%,
  25% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(100% 0 0 0);
  }
}
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--plum);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--lilac) 70%, transparent);
  opacity: 0;
}
[data-tile="remove-bg"].is-playing .scan {
  animation: scan 1.8s var(--ease) forwards;
}
@keyframes scan {
  0%,
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(var(--h, 520px));
  }
}
[data-tile="remove-object"] .t-before {
  clip-path: circle(150% at 82% 72%);
}
[data-tile="remove-object"].is-playing .t-before {
  animation: brushAway 1.6s var(--ease) forwards;
}
@keyframes brushAway {
  0%,
  30% {
    opacity: 1;
    clip-path: circle(150% at 82% 72%);
  }
  100% {
    opacity: 1;
    clip-path: circle(0% at 82% 72%);
  }
}
.brush {
  position: absolute;
  left: 82%;
  top: 72%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: color-mix(in srgb, var(--lilac) 45%, transparent);
  opacity: 0;
}
[data-tile="remove-object"].is-playing .brush {
  animation: brush 1.6s var(--ease) forwards;
}
@keyframes brush {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  25%,
  70% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}
[data-tile="expand"] .t-after {
  transform: scale(1);
}
.frame {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  opacity: 0;
}
[data-tile="expand"].is-playing .t-after {
  animation: expandImg 1.8s var(--ease) forwards;
}
[data-tile="expand"].is-playing .frame {
  animation: expandFrame 1.8s var(--ease) forwards;
}
@keyframes expandImg {
  0%,
  30% {
    transform: scale(1.7);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes expandFrame {
  0%,
  30% {
    opacity: 1;
    inset: 22%;
  }
  85% {
    opacity: 1;
    inset: 6%;
  }
  100% {
    opacity: 0;
    inset: 6%;
  }
}
.soft {
  filter: blur(6px) saturate(0.7) brightness(0.95);
}
[data-tile="change-bg"] .t-before {
  clip-path: inset(0 0 0 0);
}
[data-tile="change-bg"].is-playing .t-before {
  animation: wipeRight 1.6s var(--ease) forwards;
}
@keyframes wipeRight {
  0%,
  30% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 100%);
  }
}
.text-layer {
  position: absolute;
  left: 9%;
  top: 9%;
  padding: 4px 8px;
  border: 1.5px dashed rgba(255, 255, 255, 0.85);
  color: #fff;
  font: 600 clamp(1.2rem, 1rem + 1vw, 1.7rem) / 1.1 var(--font-body);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.logo-layer {
  position: absolute;
  right: 8%;
  bottom: 7%;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #292632;
  font: 500 0.66rem/1 var(--font-mono);
  letter-spacing: 0.14em;
}
[data-tile="brand"] .t-after {
  object-position: 50% 60%;
}
[data-tile="brand"].is-playing .text-layer {
  animation: typeIn 1.4s steps(13) both;
}
[data-tile="brand"].is-playing .logo-layer {
  animation: popIn 0.6s var(--ease) 1.2s both;
}
@keyframes typeIn {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile-wide {
    grid-column: span 2;
    grid-row: auto;
  }
  .tile-wide .tile-media {
    aspect-ratio: 16 / 11;
    min-height: 0;
  }
}
@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile-wide {
    grid-column: auto;
  }
  .tile-wide .tile-media {
    aspect-ratio: 1;
  }
}

/* Shapes */
.shapes {
  padding-block: clamp(64px, 9vw, 120px);
}
.shapes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.shapes-copy {
  display: grid;
  gap: 14px;
}
.shape-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.shape-list button {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.shape-list button b {
  font: 500 1.05rem/1 var(--font-mono);
  min-width: 3.2em;
  color: var(--plum);
}
.shape-list button span {
  color: var(--muted);
}
.shape-list button[aria-checked="true"] {
  background: var(--lavender);
  border-color: transparent;
}
.shape-list button[aria-checked="true"] span {
  color: var(--ink);
}
.shape-stage {
  display: grid;
  place-items: center;
  height: clamp(340px, 46vw, 560px);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--sand);
}
/* The frame is a fixed square; each shape is a clip-path crop of it, so the
   change animates on the compositor instead of re-laying-out the page. */
.shape-box {
  position: relative;
  height: 84%;
  aspect-ratio: 1;
  max-width: 88%;
  filter: drop-shadow(0 22px 30px rgba(41, 38, 50, 0.28));
}
.shape-crop {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 0 round 14px);
  transition: clip-path 0.8s var(--ease);
}
.shape-box[data-shape="portrait"] .shape-crop {
  clip-path: inset(0 10% 0 10% round 14px);
}
.shape-box[data-shape="story"] .shape-crop {
  clip-path: inset(0 21.875% 0 21.875% round 14px);
}
.shape-box[data-shape="landscape"] .shape-crop {
  clip-path: inset(21.875% 0 21.875% 0 round 14px);
}
.shape-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.shape-size {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
  font: 500 0.74rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .shapes-grid {
    grid-template-columns: 1fr;
  }
}

/* Trust */
.trust {
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.promises li {
  display: grid;
  align-content: start;
  gap: 10px;
}
.promises svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--plum);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 6px;
}
.promises h3 {
  font-size: 1.12rem;
  font-weight: 600;
}
.promises p {
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .promises {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.pricing {
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--sand);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.plan {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.plan h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.plan-amount {
  font-size: 1.3rem;
  font-weight: 500;
}
.plan-amount b {
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.plan-note {
  color: var(--muted);
  margin-top: -6px;
}
.plan ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}
.plan li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border: solid var(--plum);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.plan-feature {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}
.plan-feature h3,
.plan-feature .plan-note {
  color: color-mix(in srgb, var(--on-ink) 70%, transparent);
}
.plan-feature ul {
  border-color: color-mix(in srgb, var(--on-ink) 18%, transparent);
}
.plan-feature li::before {
  border-color: var(--lilac);
}
.plans-foot {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 46em;
}
@media (max-width: 860px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* FAQ */
.faq {
  padding-block: clamp(64px, 9vw, 120px);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  interpolate-size: allow-keywords;
}
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border: solid var(--plum);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(4px) rotate(-135deg);
}
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
.faq details p {
  padding-bottom: 20px;
  color: var(--muted);
  max-width: 40em;
}
@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Final CTA */
.final {
  padding-block: clamp(64px, 9vw, 120px) 0;
  overflow: hidden;
}
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.final-copy {
  display: grid;
  gap: 22px;
  padding-bottom: clamp(48px, 7vw, 100px);
}
.final-title {
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
}
.final-stage {
  position: relative;
  display: grid;
  justify-items: center;
}
.arch {
  position: absolute;
  inset: 12% 0 0;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--lilac) 60%, transparent), transparent 70%),
    var(--lavender);
}
.phone-final {
  width: clamp(220px, 24vw, 300px);
  margin-bottom: -18%;
}
@media (max-width: 860px) {
  .final-grid {
    grid-template-columns: 1fr;
  }
  .final-copy {
    padding-bottom: 0;
  }
  .phone-final {
    margin-bottom: -30%;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px));
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.footer-brand {
  display: grid;
  gap: 6px;
}
.footer-brand p,
.footer-copy {
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.92rem;
}
.footer-links a {
  color: var(--ink);
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.footer-links span {
  color: var(--muted);
}

/* Reduced motion: everything rests in its final state. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reel-track {
    animation: none;
  }
  .reel {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
