:root {
  --paper: #faf1ec;
  --chip: #f9e3df;
  --blush: #f7c6d0;
  --rose: #e8708f;
  --berry: #b8325f;
  --berry-deep: #8e2148;
  --ink: #3b1e2d;
  --ink-soft: #6a4858;
  --muted: #8f747d;
  --line: #efdfd7;
  --logo: "DM Serif Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1072px;
}

body.home {
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
  overflow-x: clip;
}

body.home header,
body.home main,
body.home footer { max-width: none; margin: 0; padding: 0; }

.home h1,
.home h2,
.home h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.home em { font-style: italic; font-weight: 600; color: var(--rose); }

/* Floating header */
.home .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; padding: calc(16px + env(safe-area-inset-top)) 16px 0; pointer-events: none; }
body.home main { padding-top: 74px; }
.pillbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 8px 7px 20px;
  box-shadow: 0 10px 30px -18px rgba(142, 33, 72, 0.5);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.home .logo { font-family: var(--logo); font-weight: 400; letter-spacing: 0; font-size: 28px; line-height: 1; color: var(--ink); }
.pillbar .cta {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s;
}
.pillbar .cta:hover { background: var(--berry); }

/* Hero */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 4; }
.hero h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.08; letter-spacing: -0.025em; max-width: 10em; }
.hero .lead { text-wrap: pretty; font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 540px; margin: 22px 0 28px; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges.center { justify-content: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 11px 26px 11px 20px;
  cursor: default;
}
.badge span { display: flex; flex-direction: column; line-height: 1.15; }
.badge small { font-size: 12px; opacity: 0.85; }
.badge strong { font-size: 21px; font-weight: 600; }
.get-group { display: flex; flex-direction: column; align-items: center; text-align: center; width: min(100%, 540px); scroll-margin-top: 100px; }
.fine { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* Hero fan of cards */
.fan { position: relative; height: 560px; }
.fan-main {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(340px, 78%);
  margin-left: calc(min(340px, 78%) / -2);
  background: #fff;
  padding: 8px;
  border-radius: 30px;
  box-shadow: 0 30px 70px -26px rgba(142, 33, 72, 0.5);
  z-index: 3;
}
.fan-main .compare { border-radius: 22px; aspect-ratio: 3 / 4.1; }
.fan-card {
  position: absolute;
  width: 56%;
  top: 40px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(142, 33, 72, 0.45);
  z-index: 1;
}
.fan-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4.2; object-fit: cover; }
.fan-card.left { left: -4%; width: 50%; transform: rotate(-8deg); }
.fan-card.right { right: -10%; width: 50%; transform: rotate(7deg); top: 60px; }

/* Before / after */
.compare {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  background: var(--chip);
  --pos: 50%;
}
.compare:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 10px rgba(59, 30, 45, 0.3);
  pointer-events: none;
}
.compare .line i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(59, 30, 45, 0.3);
}
.compare .line i::before,
.compare .line i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border: solid var(--ink);
  border-width: 0 0 2px 2px;
}
.compare .line i::before { left: 11px; transform: rotate(45deg); }
.compare .line i::after { right: 11px; transform: rotate(-135deg); }
.compare .tag {
  position: absolute;
  top: 12px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}
.compare .tag-before { left: 12px; background: #fff; color: var(--ink); }
.compare .tag-after { right: 12px; background: var(--ink); color: #fff; }
.compare .name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}

/* Blocks */
.block { max-width: var(--wrap); margin: 0 auto; padding: 104px 24px 0; }
.block h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.block-head p { font-size: 18px; line-height: 1.55; color: var(--ink-soft); margin: 14px 0 0; max-width: 34em; }
.block-head.centered { text-align: center; }
.block-head.centered p { margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.look .compare { border-radius: 22px; box-shadow: 0 18px 36px -24px rgba(142, 33, 72, 0.5); }

/* Steps */
.steps ol { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 8px 8px 28px;
}
.shot { border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--chip); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.shot.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; }
.shot.collage img { min-width: 0; min-height: 0; object-position: center 30%; }
.num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--berry);
  font-size: 14px;
  font-weight: 700;
  margin: 20px 0 0 20px;
}
.steps h3 { font-size: 22px; margin: 14px 20px 6px; }
.steps li p { margin: 0 20px; color: var(--ink-soft); line-height: 1.55; }

/* FAQ */
.faq h2 { text-align: center; }
.faq-list { margin: 28px auto 0; max-width: 680px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 24px;
  position: relative;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 20px; color: var(--ink-soft); line-height: 1.6; }
.faq summary:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 18px; }

/* Closing card */
.closing {
  padding: 24px 0 0;
  text-align: center;
}
.closing .app-icon { width: 72px; height: 72px; border-radius: 20px; display: block; margin: 0 auto 20px; box-shadow: 0 10px 24px -10px rgba(142, 33, 72, 0.5); }
.closing h2 { max-width: 12em; margin: 0 auto 26px; }
.closing .fine { margin-top: 16px; }

.home .site-footer {
  max-width: var(--wrap);
  margin: 104px auto 0;
  padding: 0 24px 56px;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 15px;
  position: relative;
}
.home .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 1px; background: var(--line); }
.home .site-footer p { margin: 0; }
.home .site-footer nav a { margin: 0 0 0 22px; color: var(--ink-soft); text-decoration: none; }
.home .site-footer nav a:hover { color: var(--berry); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 40px; overflow-x: clip; }
  .fan { height: 500px; margin: 0 auto; width: min(100%, 460px); }
  .fan-card.left { left: -2%; }
  .fan-card.right { right: -6%; }
  .steps ol { grid-template-columns: 1fr; }
  .block { padding-top: 76px; }

  /* Everything centered on phones */
  .hero-copy { text-align: center; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .get-group { margin: 0 auto; }
  .block-head { text-align: center; }
  .block-head p { margin-left: auto; margin-right: auto; }
  .steps li { text-align: center; }
  .num { display: grid; margin-left: auto; margin-right: auto; }
  .steps h3, .steps li p { margin-left: 20px; margin-right: 20px; }
  .faq summary { padding: 18px 52px; text-align: center; }
  .faq details p { text-align: center; padding: 0 28px 22px; }
  .compare .name { left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .home .site-footer { flex-direction: column; justify-content: center; text-align: center; }
  .home .site-footer nav { display: flex; justify-content: center; gap: 8px 22px; flex-wrap: wrap; }
  .home .site-footer nav a { margin: 0; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fan { height: 430px; }
  .fan-card.left { left: -8%; width: 46%; }
  .fan-card.right { right: -8%; width: 46%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pillbar .cta { transition: none; }
}
