/* Papen landing page — implemented from "Papen Landing.dc.html" (Claude Design) */

:root {
  --cream: #FFF7E8;
  --card: #FFFCF5;
  --line: #F0E3C9;
  --ink: #292522;
  --ink-2: #3A3430;
  --ink-3: #4A433C;
  --yellow: #FFB82E;
  --orange: #F28C28;
  --brown: #5E4A28;
  --gray: #5E564E;
  --muted: #8C8276;
  --sand: #BFB3A3;
  --sand-2: #A99C8C;
  --pale: #FFE9B8;
  --amber: #B87A0C;

  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --script: 'Caveat', cursive;

  --max: 1180px;
  --gutter: 28px;
  --section-gap: 84px;
  --nav-h: 88px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: 900px; }

.section {
  min-height: 85vh;
  min-height: 85svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.section > .container { width: 100%; }
.section[id] { scroll-margin-top: var(--nav-h); }

.h2 {
  font: 800 clamp(30px, 4vw, 42px) var(--display);
  line-height: 1.05;
}

.eyebrow {
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 16px;
  font: 800 11px var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--dark { background: var(--ink); color: var(--yellow); }
.eyebrow--yellow { background: var(--yellow); color: var(--ink); padding: 6px 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn:active { transform: translateY(0); }

.btn--nav {
  background: var(--ink);
  color: var(--yellow);
  padding: 11px 20px;
  font: 700 15px var(--display);
}
.btn--nav:hover { color: var(--yellow); box-shadow: 0 8px 18px -10px rgba(41,37,34,.6); }

.store {
  background: var(--ink);
  padding: 14px 26px;
}
.store:hover { box-shadow: 0 12px 22px -12px rgba(41,37,34,.7); }
.store svg { width: 20px; height: 20px; fill: var(--yellow); flex: none; }
.store__text { display: flex; flex-direction: column; line-height: 1.1; }
.store__small { font: 600 10px var(--body); color: var(--sand); }
.store__big { font: 700 17px var(--display); color: var(--cream); }

.hero .store, .cta .store { padding-top: 15px; padding-bottom: 15px; }
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* ---------- Stars ---------- */
.stars { display: flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; fill: var(--ink); }
.stars--small svg { width: 16px; height: 16px; fill: var(--yellow); }

/* ---------- Checklist ---------- */
.checklist { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 12px; }
.check__dot {
  width: 30px; height: 30px; flex: none;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.check__dot svg { width: 16px; height: 16px; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.check__label { font: 600 15px var(--body); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 232, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(41, 37, 34, 0.06);
}
.nav__inner {
  position: relative;
  min-height: var(--nav-h);
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.nav__logo:hover { color: var(--ink); }
.nav__icon {
  width: 42px; height: 42px;
  border-radius: 13px;                       /* soft, not fully round */
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
}
.nav__logo:hover .nav__icon {
  transform: rotate(-8deg) scale(1.1) translateY(-1px);
}
.nav__logo:active .nav__icon { transform: rotate(-4deg) scale(1.02); transition-duration: .15s; }
.nav__brand {
  font: 800 22px var(--display);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.nav__brand em {
  font-style: normal;
  color: var(--orange);
  transition: color .25s ease;
}
.nav__logo:hover .nav__brand em { color: var(--amber); }
.nav__brand--footer { color: var(--cream); font-size: 24px; }
.footer__lockup { display: inline-flex; align-items: center; gap: 12px; }
.footer__lockup img { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 8px 16px -8px rgba(0,0,0,.6); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.footer__lockup:hover img { transform: rotate(-8deg) scale(1.08); }

/* Pill tab bar */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--line);
  border-radius: 999px;
}
.nav__link {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font: 700 14px var(--body);
  color: var(--gray);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav__link:hover { background: var(--pale); color: var(--ink); }
.nav__link.is-active { background: var(--ink); color: var(--yellow); }
.nav__link:active { transform: scale(.97); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger (mobile only) */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: calc(100% - 6px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--card);
    border-radius: 22px;
    box-shadow: 0 24px 40px -22px rgba(41,37,34,.5);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open .nav__links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__link { padding: 12px 16px; font-size: 15px; }
}
@media (max-width: 480px) {
  .btn--nav { padding: 10px 14px; font-size: 14px; }
  .nav__brand { font-size: 19px; }
  .nav__icon { width: 36px; height: 36px; border-radius: 11px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--yellow);
  min-height: 85vh;
  min-height: 85svh;
  display: flex;
}
.hero__inner {
  width: 100%;
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 44px;
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__title {
  font: 800 clamp(40px, 6vw, 68px) var(--display);
  line-height: 1.02;
  text-wrap: balance;
}
.hero__lead {
  font: 400 19px var(--body);
  color: var(--brown);
  max-width: 460px;
  text-wrap: pretty;
}
.hero__rating { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.hero__rating-text { font: 700 15px var(--body); color: var(--brown); }

.hero__art {
  align-self: center;
  position: relative;
  padding: 24px 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.polaroid {
  background: #fff;
  border-radius: 0;                 /* square corners, like a sheet of paper */
  padding: 9px;
  box-shadow: 0 16px 28px -14px rgba(41,37,34,.5);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 0;
}
.polaroid { transform: rotate(var(--rot, 0deg)); will-change: transform; }
.float--1 { margin-top: 26px; } .polaroid--1 { --rot: -7deg; }
.float--2 { margin-top: 0; }    .polaroid--2 { --rot: 3deg; }
.float--3 { margin-top: 34px; } .polaroid--3 { --rot: -4deg; }
.float--4 { margin-top: 10px; } .polaroid--4 { --rot: 6deg; }
.float--5 { margin-top: -6px; } .polaroid--5 { --rot: -2deg; }
.float--6 { margin-top: 18px; } .polaroid--6 { --rot: 5deg; }
.hero__fade {
  display: none; /* cards are centred now, no bottom-edge blend needed */
  position: absolute;
  left: -30px; right: -30px; bottom: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(255,184,46,0) 0%, var(--yellow) 78%);
  pointer-events: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
}

/* Three ways to draw */
.ways__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 640px;
}
.ways__lead { font: 400 18px var(--body); color: var(--gray); text-wrap: pretty; }
.ways__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.way {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.way:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 34px -22px rgba(41,37,34,.45);
}
.way__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.way__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .6s ease;
}
.way:hover .way__media img { transform: scale(1.04); }
.way__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 12px 12px;
}
.way__title { font: 800 22px var(--display); line-height: 1.1; }
.way__text { font: 400 15px var(--body); color: var(--gray); text-wrap: pretty; }
.way__chip {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--pale);
  color: var(--amber);
  border-radius: 999px;
  padding: 6px 12px;
  font: 700 12px var(--body);
}

/* Before / after */
.progress__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}
.progress__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.progress__lead { font: 400 18px var(--body); color: var(--gray); max-width: 460px; text-wrap: pretty; }
.progress__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.progress__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 17px var(--body);
}
.progress__dot {
  width: 18px; height: 18px; flex: none;
  border-radius: 999px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}
.progress__dot--green { background: #4BB86F; }
.progress__dot--blue  { background: #2E9BE0; }
.progress__dot--red   { background: #FF6B6B; }

.btn--cta {
  margin-top: 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 15px 28px;
  font: 700 17px var(--display);
  box-shadow: 0 4px 0 var(--ink);
}
.btn--cta:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn--cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

.compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.compare__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.compare__label {
  border-radius: 999px;
  padding: 7px 14px;
  font: 800 11px var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.compare__label--before { background: #EFE5CF; color: var(--muted); }
.compare__label--after  { background: var(--yellow); color: var(--ink); }
.compare__sheet {
  width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 10px;
  border: 2px solid var(--line);
}
.compare__sheet img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 14px;
}
.compare__sheet--after {
  border: 3px solid var(--orange);
  box-shadow: 0 18px 34px -20px rgba(242,140,40,.6);
}
.compare__arrow {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px -10px rgba(41,37,34,.6);
  animation: nudge 2.6s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(calc(-50% + 4px), -50%); }
}

@media (max-width: 720px) {
  .compare { gap: 14px; }
  .compare__arrow { width: 46px; height: 46px; }
  .compare__arrow svg { width: 18px; height: 18px; }
  .compare__sheet { padding: 7px; border-radius: 16px; }
}

/* Draw someone you love */
.love__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}
.love__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.love__title { font-size: clamp(34px, 4.6vw, 52px); }
.love__lead { font: 400 18px var(--body); color: var(--gray); max-width: 460px; text-wrap: pretty; }

.love__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: 16px 0;
}

/* Big tilted pair: photo behind, sketch in front */
.love__pair {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 5 / 4;
}
.love__card {
  position: absolute;
  top: 0;
  width: 58%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 40px -22px rgba(41,37,34,.55);
}
.love__card img { width: 100%; height: 100%; object-fit: cover; }
.love__card--photo {
  left: 2%;
  top: 6%;
  transform: rotate(-6deg);
}
.love__card--sketch {
  right: 2%;
  top: 0;
  transform: rotate(5deg);
  border: 3px solid var(--yellow);
  box-shadow: 0 26px 44px -22px rgba(242,140,40,.6);
  animation: love-float 7s ease-in-out infinite;
}
@keyframes love-float {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50%      { transform: rotate(5.8deg) translateY(-6px); }
}
.love__badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: 800 11px var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Split tiles: photo on the left half, sketch on the right, divider sweeps slowly */
.love__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  width: min(100%, 440px);
}
.split {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 26px -16px rgba(41,37,34,.45);
}
.split img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.split__photo  { clip-path: inset(0 50% 0 0); animation: split-photo 6s ease-in-out infinite; }
.split__sketch { clip-path: inset(0 0 0 50%); animation: split-sketch 6s ease-in-out infinite; }
.split__line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(255,255,255,.5);
  animation: split-line 6s ease-in-out infinite;
}
.split:nth-child(2) .split__photo,
.split:nth-child(2) .split__sketch,
.split:nth-child(2) .split__line { animation-delay: -3s; }
@keyframes split-photo  { 0%,100% { clip-path: inset(0 62% 0 0); } 50% { clip-path: inset(0 38% 0 0); } }
@keyframes split-sketch { 0%,100% { clip-path: inset(0 0 0 38%); } 50% { clip-path: inset(0 0 0 62%); } }
@keyframes split-line   { 0%,100% { left: 38%; } 50% { left: 62%; } }

@media (max-width: 720px) {
  .love__inner { gap: 40px; }
  .love__stage { gap: 24px; }
  .love__tiles { gap: 16px; }
}

/* AI sketch */
.ai__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}
.ai__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.ai__title { font-size: clamp(32px, 4.2vw, 48px); text-wrap: balance; }
.ai__lead { font: 400 18px var(--body); color: var(--gray); max-width: 480px; text-wrap: pretty; }

/* The stage is a fixed 3:4 box sized to breathe inside the viewport */
.ai__stage {
  position: relative;
  width: min(100%, 400px, calc(60vh * 0.75));
  aspect-ratio: 3 / 4;
  margin: 24px auto;
}

.ai__tag {
  position: absolute;
  top: -16px; right: 14px;
  z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 7px 13px;
  font: 800 11px var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 16px -10px rgba(41,37,34,.6);
}
.ai__tag svg { color: var(--yellow); }

/* Generating placeholder (same footprint as the result card) */
.ai__gen {
  position: absolute; inset: 0;
  border-radius: 22px;
  background: var(--card);
  border: 2px dashed #E4D3AE;
  overflow: hidden;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .5s ease, transform .5s ease;
}
.ai__gen-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(255,184,46,0) 30%, rgba(255,184,46,.22) 50%, rgba(255,184,46,0) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.ai__gen-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
}
.ai__gen-orb {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(255,184,46,.55);
  animation: orb 1.4s ease-in-out infinite;
}
.ai__gen-orb svg { animation: spin 3s linear infinite; }
@keyframes orb {
  0%   { box-shadow: 0 0 0 0 rgba(255,184,46,.55); transform: scale(1); }
  70%  { box-shadow: 0 0 0 22px rgba(255,184,46,0); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(255,184,46,0); transform: scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai__gen-label { font: 700 14px var(--body); color: var(--muted); letter-spacing: 0.02em; }
.ai__dots i { font-style: normal; animation: dot 1.2s infinite; }
.ai__dots i:nth-child(2) { animation-delay: .2s; }
.ai__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 20% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* Result card */
.ai__card {
  position: absolute; inset: 0;
  background: #fff;
  border-radius: 22px;
  padding: 10px;
  border: 2px solid var(--line);
  box-shadow: 0 26px 44px -24px rgba(41,37,34,.55);
  opacity: 0;
  transform: scale(.94);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.ai__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.ai__made {
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translate(-50%, 10px);
  z-index: 4;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 7px 14px;
  font: 800 12px var(--body);
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .5s ease .5s, transform .5s ease .5s;
}

/* Prompt: centred in the stage, then floats to the top-left corner of the card */
.ai__prompt {
  position: absolute;
  z-index: 6;
  top: 50%; left: 50%;
  width: 86%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  font: 500 18px var(--body);
  color: var(--ink);
  box-shadow: 0 14px 28px -16px rgba(41,37,34,.45);
  transition:
    top .9s cubic-bezier(.2,.8,.2,1),
    left .9s cubic-bezier(.2,.8,.2,1),
    width .9s cubic-bezier(.2,.8,.2,1),
    transform .9s cubic-bezier(.2,.8,.2,1),
    padding .9s ease,
    font-size .9s ease,
    border-radius .9s ease;
}
.ai__spark { color: var(--orange); flex: none; margin-top: 3px; }
.ai__text { line-height: 1.4; }
.ai__caret {
  display: inline-block;
  width: 2px; height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--ink);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.ai__star {
  position: absolute;
  z-index: 5;
  color: var(--yellow);
  font-size: 22px;
  line-height: 1;
  opacity: 0;
}
.ai__star--1 { top: -10px; left: -8px; }
.ai__star--2 { top: 36%; right: -14px; font-size: 14px; color: #FF6B6B; }
.ai__star--3 { bottom: 24px; left: -12px; font-size: 18px; color: #2E9BE0; }
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.8) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.15) rotate(20deg); }
}

/* ---- States ---- */
.ai__stage.is-generating .ai__gen { opacity: 1; transform: scale(1); }
.ai__stage.is-generating .ai__prompt { box-shadow: 0 18px 34px -16px rgba(242,140,40,.45); border-color: var(--yellow); }
.ai__stage.is-generating .ai__caret,
.ai__stage.is-done .ai__caret { animation: none; opacity: 0; }

.ai__stage.is-done .ai__gen { opacity: 0; transform: scale(1.02); pointer-events: none; }
.ai__stage.is-done .ai__card { opacity: 1; transform: scale(1); }
.ai__stage.is-done .ai__made { opacity: 1; transform: translate(-50%, 0); }
.ai__stage.is-done .ai__prompt {
  top: 20px; left: 20px;
  width: 66%;
  transform: none;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 14px;
  background: rgba(255,252,245,.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ai__stage.is-done .ai__spark { width: 14px; height: 14px; margin-top: 2px; }
.ai__stage.is-done .ai__star { animation: twinkle 2.4s ease-in-out infinite; }
.ai__stage.is-done .ai__star--2 { animation-delay: -.8s; }
.ai__stage.is-done .ai__star--3 { animation-delay: -1.6s; }

/* No JS: show the finished state */
html.no-js .ai__typed::before { content: attr(data-text); }
html.no-js .ai__card { opacity: 1; transform: none; }
html.no-js .ai__made { opacity: 1; transform: translate(-50%, 0); }
html.no-js .ai__prompt { top: 20px; left: 20px; width: 66%; transform: none; padding: 10px 14px; font-size: 13px; }
html.no-js .ai__caret { display: none; }

@media (max-width: 720px) {
  .ai__inner { gap: 36px; }
  .ai__stage { width: min(100%, 340px, calc(52vh * 0.75)); }
  .ai__prompt { font-size: 16px; padding: 14px 16px; }
}

/* Steps */
.steps {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step { padding: 24px; gap: 14px; }
.step__num {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font: 800 20px var(--display);
}
.step__title { font: 800 22px var(--display); }
.step__text { font: 400 15px var(--body); color: var(--gray); text-wrap: pretty; }
.step__img {
  margin-top: auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}
.step__img--white { background: #fff; }

/* ---------- Section backgrounds: each block reads on its own ---------- */
.ways     { background: var(--cream); }
.progress { background: #F7ECD8; }
.love     { background: #FFFDF8; }
.ai       { background: var(--ink); color: var(--cream); }
.reviews  { background: #FFF1D3; }
.faq-section { background: var(--cream); }
#get      { background: #F7ECD8; }

/* AI section on dark */
.ai .eyebrow--dark { background: var(--yellow); color: var(--ink); }
.ai .ai__title { color: var(--cream); }
.ai .ai__lead { color: var(--sand); }
.ai .progress__item { color: var(--cream); }
.ai .btn--cta { border-color: var(--cream); box-shadow: 0 4px 0 var(--cream); }
.ai .btn--cta:hover { box-shadow: 0 6px 0 var(--cream); }
.ai .btn--cta:active { box-shadow: 0 2px 0 var(--cream); }
.ai .ai__tag { background: var(--yellow); color: var(--ink); }
.ai .ai__tag svg { color: var(--ink); }
.ai .ai__made { background: var(--yellow); color: var(--ink); }
.ai .ai__gen { background: var(--ink-2); border-color: #5A5048; }
.ai .ai__gen-label { color: var(--sand); }
.ai .ai__card { border-color: var(--ink-2); box-shadow: 0 30px 50px -24px rgba(0,0,0,.7); }

/* Reviews */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.reviews__title { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.reviews__score {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 12px 18px;
}
.reviews__num { font: 800 44px var(--display); line-height: 1; }
.reviews__meta { display: flex; flex-direction: column; gap: 4px; font: 700 13px var(--body); color: var(--gray); }
.reviews__meta .stars svg { width: 16px; height: 16px; fill: var(--yellow); }

.quotes {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.quote {
  position: relative;
  margin: 0;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 26px;
  padding: 30px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 22px 36px -26px rgba(41,37,34,.45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.quote--a { transform: rotate(-1.4deg); }
.quote--b { transform: rotate(1deg) translateY(14px); }
.quote--c { transform: rotate(-0.8deg); }
.quote:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 30px 44px -26px rgba(41,37,34,.5); }
.quote__mark {
  position: absolute;
  top: -22px; left: 22px;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  color: var(--ink);
  font: 800 34px var(--display);
  line-height: 1.35;
  text-align: center;
}
.quote .stars--small svg { width: 16px; height: 16px; fill: var(--yellow); }
.quote__text { margin: 0; font: 600 17px var(--body); line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.quote__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote__avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: 999px;
  background: var(--av, var(--yellow));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 800 14px var(--body);
  letter-spacing: 0.04em;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.14);
}
.quote__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote__who strong { font: 800 15px var(--body); color: var(--ink); }
.quote__who span { font: 600 12.5px var(--body); color: var(--muted); }
.quote__thumb {
  margin-left: auto;
  width: 54px; height: 54px; flex: none;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  transform: rotate(4deg);
}

/* FAQ */
.faq { margin-top: 32px; display: flex; flex-direction: column; }
.faq__item {
  padding: 22px 0;
  border-bottom: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.faq__item:last-child { border-bottom: 0; }
.faq__q { font: 800 20px var(--display); }
.faq__a { font: 400 16px var(--body); color: var(--gray); text-wrap: pretty; }

/* CTA */
.cta {
  background: var(--yellow);
  border-radius: 36px;
  padding: clamp(36px, 5vw, 60px);
  display: flex; flex-direction: column; align-items: center;
  gap: 22px;
  text-align: center;
}
.cta__lockup { width: min(280px, 70%); }
.cta__title {
  font: 800 clamp(30px, 4.4vw, 46px) var(--display);
  line-height: 1.04;
  text-wrap: balance;
}
.cta__text { font: 400 17px var(--body); color: var(--brown); max-width: 520px; text-wrap: pretty; }
.cta .store-row { justify-content: center; }

/* Footer */
.footer {
  background: var(--ink);
  color: var(--sand);
}
.footer__inner {
  padding-top: 64px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.footer__tagline { font: 700 18px var(--display); color: var(--cream); }
.footer__stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.footer__store {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink-3);
  color: var(--cream);
  font: 700 13px var(--display);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.footer__store svg { width: 16px; height: 16px; fill: var(--yellow); }
.footer__store:hover { border-color: var(--yellow); background: var(--ink-2); color: var(--cream); transform: translateY(-1px); }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__heading {
  margin: 0 0 6px;
  font: 800 11px var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.footer__col a {
  position: relative;
  align-self: flex-start;
  padding-left: 0;
  font: 600 15px var(--body);
  color: var(--sand);
  transition: color .2s ease, padding-left .25s ease;
}
.footer__col a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transform: translateY(-50%);
  transition: width .25s ease;
}
.footer__col a:hover { color: var(--cream); padding-left: 18px; }
.footer__col a:hover::before { width: 12px; }

.footer__bottom {
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font: 600 13px var(--body);
  color: var(--sand-2);
}
.footer__note { font: 500 15px var(--script); color: var(--yellow); }

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; --section-gap: 64px; }
  .hero__inner { padding-top: 40px; padding-bottom: 40px; }
  .hero__grid { gap: 12px; }
}




/* =====================================================================
   Motion
   ===================================================================== */

/* --- Hero entrance: text rises in, staggered --- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__copy > * {
  animation: rise-in .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero__copy > :nth-child(1) { animation-delay: .05s; }
.hero__copy > :nth-child(2) { animation-delay: .15s; }
.hero__copy > :nth-child(3) { animation-delay: .27s; }
.hero__copy > :nth-child(4) { animation-delay: .39s; }
.hero__copy > :nth-child(5) { animation-delay: .5s; }

/* --- Hero text: perpetual slow, slight drift (applied to the block so
       entrance transforms on the children never conflict) --- */
@keyframes drift-text {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.hero__copy {
  animation: drift-text 9s ease-in-out 1.2s infinite;
}

/* --- Hero cards: pop in, then float forever --- */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(40px) scale(.86); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.float {
  animation: pop-in 1s cubic-bezier(.2,.8,.2,1) both;
}
.float--1 { animation-delay: .30s; }
.float--2 { animation-delay: .42s; }
.float--3 { animation-delay: .54s; }
.float--4 { animation-delay: .66s; }
.float--5 { animation-delay: .78s; }
.float--6 { animation-delay: .90s; }

@keyframes float-card {
  0%   { transform: rotate(var(--rot)) translate3d(0, 0, 0); }
  33%  { transform: rotate(calc(var(--rot) + 1.2deg)) translate3d(2px, -7px, 0); }
  66%  { transform: rotate(calc(var(--rot) - 0.8deg)) translate3d(-2px, -3px, 0); }
  100% { transform: rotate(var(--rot)) translate3d(0, 0, 0); }
}
.polaroid {
  animation: float-card var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
.polaroid--1 { --dur: 8.5s;  --delay: -1.0s; }
.polaroid--2 { --dur: 9.5s;  --delay: -3.5s; }
.polaroid--3 { --dur: 7.8s;  --delay: -6.0s; }
.polaroid--4 { --dur: 10.2s; --delay: -2.2s; }
.polaroid--5 { --dur: 8.9s;  --delay: -4.8s; }
.polaroid--6 { --dur: 9.1s;  --delay: -0.6s; }

/* --- Scroll reveal for every other section --- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s cubic-bezier(.2,.7,.2,1),
    transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
html.js [data-reveal].in-view {
  opacity: 1;
  transform: none;
}
html.js [data-reveal="scale"] { transform: translateY(20px) scale(.96); }

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .quote { transition: none; }
  .nav__icon, .footer__lockup img { transition: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .hero__copy, .hero__copy > *, .float, .polaroid, .compare__arrow,
  .love__card--sketch, .split__photo, .split__sketch, .split__line, .ai__star, .ai__caret,
  .ai__gen-shimmer, .ai__gen-orb, .ai__gen-orb svg, .ai__dots i { animation: none !important; }
  .ai__card, .ai__made, .ai__prompt, .ai__gen { transition: none; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   Legal pages (terms.html, privacy.html)
   ===================================================================== */
.legal { padding: 56px 0 96px; }
.legal__inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.legal__aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.legal__toc {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.legal__toc-title { font: 800 11px var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.legal__toc a { font: 600 14px var(--body); color: var(--gray); padding: 6px 10px; border-radius: 10px; }
.legal__toc a:hover { background: var(--pale); color: var(--ink); }
.legal__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 36px; }
.legal__title { font: 800 clamp(34px, 4.6vw, 52px) var(--display); line-height: 1.04; }
.legal__meta { font: 600 14px var(--body); color: var(--muted); }
.legal__intro { font: 400 18px var(--body); color: var(--gray); max-width: 640px; text-wrap: pretty; }
.legal__body { max-width: 720px; }
.legal__body h2 {
  font: 800 24px var(--display);
  margin: 44px 0 12px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.legal__body h3 { font: 800 17px var(--body); margin: 24px 0 8px; }
.legal__body p, .legal__body li { font: 400 16px var(--body); line-height: 1.65; color: var(--gray); }
.legal__body p { margin: 0 0 14px; }
.legal__body ul { margin: 0 0 16px; padding-left: 22px; }
.legal__body li { margin-bottom: 6px; }
.legal__body strong { color: var(--ink); }
.legal__body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.placeholder {
  display: inline-block;
  background: var(--pale);
  color: var(--amber);
  border: 1.5px dashed var(--amber);
  border-radius: 8px;
  padding: 1px 8px;
  font: 700 14px var(--body);
  white-space: nowrap;
}
.legal__callout {
  background: var(--card);
  border: 2px solid var(--line);
  border-left: 6px solid var(--yellow);
  border-radius: 18px;
  padding: 16px 20px;
  margin: 18px 0 26px;
}
.legal__callout p { margin: 0; }
.legal__contact {
  margin-top: 40px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 22px;
  padding: 24px 26px;
}
.legal__contact p { color: var(--sand); margin: 0 0 6px; }
.legal__contact a { color: var(--yellow); }
@media (max-width: 860px) {
  .legal__inner { grid-template-columns: 1fr; gap: 28px; }
  .legal__aside { position: static; }
}

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px;
  z-index: 100;
  background: var(--ink); color: var(--yellow);
  padding: 10px 16px; border-radius: 999px;
  font: 700 14px var(--body);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--yellow); }

/* Support page */
.support__hero {
  background: var(--yellow);
  padding: 64px 0 56px;
}
.support__hero .container { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.support__title { font: 800 clamp(36px, 5vw, 56px) var(--display); line-height: 1.04; }
.support__lead { font: 400 18px var(--body); color: var(--brown); max-width: 560px; text-wrap: pretty; }
.support__grid {
  padding-top: 40px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.support__card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 26px;
  padding: 26px 26px 20px;
}
.support__card h2 { font: 800 22px var(--display); margin: 0 0 12px; }
.support__card h3 { font: 800 15px var(--body); margin: 18px 0 6px; color: var(--ink); }
.support__card p { margin: 0 0 8px; font: 400 15px var(--body); line-height: 1.6; color: var(--gray); }
.support__card a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.support__card--contact { background: var(--ink); border-color: var(--ink); }
.support__card--contact h2 { color: var(--cream); }
.support__card--contact p { color: var(--sand); }
.support__card--contact a { color: var(--yellow); }

/* 404 */
.notfound {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  padding: 40px 20px;
  text-align: center;
}
.notfound__icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 20px 34px -20px rgba(41,37,34,.5); }
.notfound__title { font: 800 clamp(30px, 5vw, 46px) var(--display); line-height: 1.05; text-wrap: balance; }
.notfound__text { font: 400 17px var(--body); color: var(--gray); max-width: 440px; }

.notfound .eyebrow { align-self: center; }

/* Coming-soon toast + button flip */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  padding: 12px 20px;
  font: 700 14px var(--body);
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.6);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.is-soon .store__big, .is-soon span { color: var(--yellow); }
.is-soon { animation: wiggle .4s ease; }
@keyframes wiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .is-soon { animation: none; } .toast { transition: none; } }
