/* Diva — Editorial App Website Stylesheet
   Self-hosted typography (zero external font CDN requests) */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/DMSerifDisplay-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F1E7;
  --bg-warm: #EFE5D8;
  --surface: #FFFBF5;
  --blush: #F4E6E1;
  --rose: #B5727E;
  --rose-soft: #E8D3CE;
  --gold: #C8A675;
  --ink: #231E1D;
  --ink-2: #665B57;
  --ink-3: #968983;
  --black: #181616;
  --line: #E6D9CC;
  --line-strong: #D9C7B7;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --wordmark: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--rose-soft) var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

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

h1, h2, h3 {
  text-wrap: balance;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 18px;
  }
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: 9999px;
  background: var(--black);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

/* ---------- Compact Apple-Style Floating Pill Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 16px 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav .pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: fit-content;
  max-width: calc(100vw - 28px);
  padding: 6px 7px 6px 8px;
  border-radius: 9999px;
  background: rgba(255, 251, 245, .86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(230, 217, 204, .95);
  box-shadow: 0 14px 36px -20px rgba(35, 30, 29, .28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding-left: 1px;
  border-radius: 9999px;
}

.brand:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  flex: none;
  box-shadow: 0 4px 12px -6px rgba(35, 30, 29, .22);
}

.logo.lg {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  box-shadow: 0 16px 32px -14px rgba(35, 30, 29, .22);
}

.wordmark {
  font-family: var(--wordmark);
  font-weight: 700;
  font-style: italic;
  font-size: 25px;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9999px;
  background: rgba(240, 230, 216, .75);
  border: 1px solid rgba(230, 217, 204, .75);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 6px -2px rgba(35, 30, 29, .14);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 22px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform .35s var(--ease),
    background .3s var(--ease),
    border-color .3s var(--ease),
    box-shadow .35s var(--ease);
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.btn.sm {
  padding: 10px 18px;
  font-size: 13.5px;
  background: var(--black);
  color: var(--surface);
}

.btn.sm:hover {
  background: #2C2726;
}

@media (max-width: 520px) {
  .nav {
    padding: 12px 12px 0;
  }
  .nav .pill {
    gap: 8px;
    padding: 6px 6px 6px 8px;
  }
  .brand {
    gap: 7px;
    padding-right: 0;
  }
  .logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .wordmark {
    font-size: 23px;
  }
  .nav-right {
    gap: 6px;
  }
  .lang-switch {
    padding: 2px;
  }
  .lang-switch button {
    padding: 4px 7px;
    font-size: 11px;
  }
  .btn.sm {
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

.btn-store {
  padding: 11px 22px 11px 18px;
  min-height: 54px;
  text-align: left;
}

.btn-store svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.btn-store span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-store small {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .01em;
  opacity: .72;
  line-height: 1.1;
}

.btn-store b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.btn-ios {
  background: var(--black);
  color: var(--surface);
  box-shadow: 0 14px 28px -16px rgba(24, 22, 22, .55);
}

.btn-ios:hover {
  background: #2A2524;
  box-shadow: 0 18px 34px -16px rgba(24, 22, 22, .62);
}

.btn-play {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px -18px rgba(35, 30, 29, .24);
}

.btn-play:hover {
  background: #FFFFFF;
  border-color: #C7B2A1;
}

.btn-play.is-soon {
  cursor: default;
}

.btn-play.is-soon:hover {
  transform: none;
}

.soon-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 9999px;
  background: var(--rose);
  color: #FFFBF5;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.1;
  box-shadow: 0 6px 14px -4px rgba(181, 114, 126, .55);
  border: 1.5px solid var(--surface);
  pointer-events: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Platform-aware emphasis on mobile phones */
html[data-platform="ios"] .btn-play,
html[data-platform="android"] .btn-ios {
  order: 2;
  opacity: .84;
}

html[data-platform="android"] .btn-play {
  background: var(--black);
  color: var(--surface);
  border-color: transparent;
  box-shadow: 0 14px 28px -16px rgba(24, 22, 22, .55);
}

html[data-platform="android"] .btn-ios {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

/* ---------- Hero Section ---------- */

.hero {
  position: relative;
  padding: 40px 0 72px;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 72% 58% at 72% 24%, rgba(244, 228, 221, .78), transparent 70%),
    radial-gradient(ellipse 55% 45% at 14% 10%, rgba(236, 221, 206, .55), transparent 68%);
}

@media (min-width: 900px) {
  .hero {
    padding: 64px 0 96px;
  }
}

.hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: 52px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 11px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .01em;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--rose);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -.018em;
  color: var(--ink);
  max-width: 15ch;
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(38px, 10vw, 46px);
    max-width: 100%;
  }
  .btn-store {
    padding: 10px 16px 10px 14px;
    min-height: 48px;
  }
  .btn-store b {
    font-size: 14px;
  }
}

h1 em {
  font-style: italic;
  color: var(--rose);
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 470px;
}

.proof {
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: -.005em;
}

/* ---------- Hero Studio Mode Switcher (Diva / Pose / Analysis) ---------- */

.studio-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  margin-top: 4px;
  border-radius: 9999px;
  background: rgba(255, 251, 245, .86);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 26px -18px rgba(35, 30, 29, .24);
}

.studio-switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease), transform .25s var(--ease);
}

.studio-switcher button:hover {
  color: var(--ink);
}

.studio-switcher button[aria-selected="true"] {
  background: var(--black);
  color: var(--surface);
  box-shadow: 0 6px 16px -8px rgba(24, 22, 22, .45);
}

@media (max-width: 560px) {
  .studio-switcher {
    width: auto;
    min-width: 210px;
    justify-content: center;
    padding: 4px;
  }
  .studio-switcher button {
    flex: 1;
    padding: 8px 18px;
    font-size: 13px;
    text-align: center;
  }
}

/* ---------- Hero Interactive Stage ---------- */

.stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
  width: 100%;
}

.stage {
  position: relative;
  width: min(100%, 364px);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .stage {
    width: min(100%, 372px);
  }
}

.stage .back {
  position: absolute;
  top: 7%;
  width: 66%;
  aspect-ratio: 3 / 4;
  padding: 6px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(230, 217, 204, .95);
  box-shadow: 0 24px 48px -26px rgba(35, 30, 29, .28);
  cursor: pointer;
  z-index: 1;
  transition: transform .65s var(--ease), opacity .55s var(--ease), filter .4s ease;
  will-change: transform, opacity;
}

.stage .back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 16px;
  transition: opacity .35s ease;
}

.stage .back.l {
  left: -13%;
  transform: rotate(-8.5deg);
}

.stage .back.r {
  right: -13%;
  transform: rotate(7.5deg);
}

.stage .back.l.fan-intro {
  animation: fanOutLeft .9s var(--ease) both .18s;
}

.stage .back.r.fan-intro {
  animation: fanOutRight .9s var(--ease) both .24s;
}

.stage .back.l:hover {
  transform: translateX(-6px) rotate(-10deg) scale(1.02);
}

.stage .back.r:hover {
  transform: translateX(6px) rotate(9deg) scale(1.02);
}

@keyframes fanOutLeft {
  0% {
    opacity: 0;
    transform: translateX(44%) rotate(0deg) scale(.88);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(-8.5deg) scale(1);
  }
}

@keyframes fanOutRight {
  0% {
    opacity: 0;
    transform: translateX(-44%) rotate(0deg) scale(.88);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(7.5deg) scale(1);
  }
}

/* Re-trigger side card pop when deck rotates */
.stage .back.l.deck-settle {
  animation: backSettleLeft .56s var(--ease) both;
}

.stage .back.r.deck-settle {
  animation: backSettleRight .56s var(--ease) both;
}

@keyframes backSettleLeft {
  0% {
    transform: translateX(36%) rotate(-1deg) scale(1.08);
    opacity: .85;
  }
  100% {
    transform: translateX(0) rotate(-8.5deg) scale(1);
    opacity: 1;
  }
}

@keyframes backSettleRight {
  0% {
    transform: translateX(-36%) rotate(1deg) scale(1.08);
    opacity: .85;
  }
  100% {
    transform: translateX(0) rotate(7.5deg) scale(1);
    opacity: 1;
  }
}

@media (min-width: 960px) {
  .stage .back.l { left: -20%; }
  .stage .back.r { right: -20%; }
}

@media (max-width: 560px) {
  .stage {
    width: min(76%, 284px);
  }
  .stage .back.l { left: -11%; }
  .stage .back.r { right: -11%; }
}

/* Clean, zero-tilt card transitions (strictly clipped inside .frame — never bleeds or tilts crookedly) */
.compare {
  --pos: 44%;
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 8px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid rgba(230, 217, 204, .95);
  box-shadow:
    0 34px 70px -28px rgba(48, 32, 28, .32),
    0 4px 12px -4px rgba(35, 30, 29, .06);
  opacity: 1;
  transform: scale(1);
  transition: opacity .32s var(--ease), transform .36s var(--ease);
  will-change: transform, opacity;
}

.compare.hero-panel-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: scale(.96);
}

/* Inner-frame horizontal slide ghost (clipped inside .frame, 0deg, silky smooth) */
.frame-slide-out {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  will-change: transform;
  animation: innerSlideOutLeft .42s var(--ease) forwards;
}

.frame-slide-out.dir-right {
  animation: innerSlideOutRight .42s var(--ease) forwards;
}

.frame-slide-out img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

@keyframes innerSlideOutLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-102%); }
}

@keyframes innerSlideOutRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(102%); }
}

.frame.inner-reveal > img {
  animation: innerReveal .42s var(--ease) both;
}

@keyframes innerReveal {
  0% { transform: scale(1.045); opacity: .78; }
  100% { transform: scale(1); opacity: 1; }
}

/* Hero Pose Showcase Panel inside Stage (100% clean — zero text overlay) */
.hero-showcase-card {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 8px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid rgba(230, 217, 204, .95);
  box-shadow:
    0 34px 70px -28px rgba(48, 32, 28, .32),
    0 4px 12px -4px rgba(35, 30, 29, .06);
  opacity: 1;
  transform: scale(1);
  transition: opacity .32s var(--ease), transform .36s var(--ease);
  will-change: transform, opacity;
}

.hero-showcase-card.hero-panel-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: scale(.96);
}

.hero-showcase-card .frame {
  position: relative;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  background: #1C1719;
}

.hero-showcase-card .frame > img.base-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-showcase-card .frame > img.cutout-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  animation: guidePulse 4.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes guidePulse {
  0%, 100% { opacity: .90; }
  45%, 55% { opacity: .12; }
}

.hero-showcase-card .frame .viewfinder {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  z-index: 2;
}

.hero-showcase-card .frame .viewfinder i {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(255, 251, 245, .86);
  border-style: solid;
  border-width: 0;
}

.hero-showcase-card .frame .viewfinder i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 4px; }
.hero-showcase-card .frame .viewfinder i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 4px; }
.hero-showcase-card .frame .viewfinder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 4px; }
.hero-showcase-card .frame .viewfinder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 4px; }

.compare .frame {
  position: relative;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  background: var(--blush);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .28s ease;
}

.compare.switching img {
  opacity: .55;
}

.compare .after {
  clip-path: inset(0 0 0 var(--pos));
}

.compare .line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1.5px;
  background: rgba(255, 251, 245, .95);
  transform: translateX(-.75px);
  box-shadow: 0 0 0 1px rgba(35, 30, 29, .08);
  pointer-events: none;
}

.compare .knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--ink);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  box-shadow:
    0 8px 22px -6px rgba(24, 22, 22, .45),
    0 0 0 1px rgba(230, 217, 204, .85);
  pointer-events: none;
}

.compare .knob svg {
  width: 18px;
  height: 18px;
}

.compare .tag {
  position: absolute;
  top: 12px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 11.5px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  pointer-events: none;
}

.compare .tag.b {
  left: 12px;
  background: rgba(255, 251, 245, .84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
}

.compare .tag.a {
  right: 12px;
  background: rgba(24, 22, 22, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--surface);
}

.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.compare input:focus-visible ~ .knob {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

/* Interactive Look Switcher under Hero Stage */
.look-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border-radius: 9999px;
  background: rgba(255, 251, 245, .75);
  border: 1px solid var(--line);
}

.look-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease);
}

.look-tabs button:hover {
  color: var(--ink);
}

.look-tabs button[aria-selected="true"] {
  background: var(--black);
  color: var(--surface);
}

.look-tabs button:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .look-tabs {
    padding: 4px;
    gap: 3px;
    max-width: 100%;
  }
  .look-tabs button {
    padding: 6px 11px;
    font-size: 11.5px;
  }
}

/* ---------- Shared Section Layout ---------- */

section {
  padding-block: 68px;
}

@media (min-width: 900px) {
  section {
    padding-block: 96px;
  }
}

.head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  margin-bottom: 40px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--ink);
}

h2 em {
  font-style: italic;
  color: var(--rose);
}

.head p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- Full-Bleed Looks Marquee (Synchronized Auto Before/After, Never Pauses) ---------- */

.looks {
  padding-inline: 0;
  overflow: hidden;
}

.marquee-shell {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 68s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.look {
  position: relative;
  flex: none;
  width: 188px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--blush);
  border: 1px solid rgba(230, 217, 204, .75);
  pointer-events: none;
}

@media (min-width: 640px) {
  .look {
    width: 226px;
  }
}

.look img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.look img.look-after {
  animation: syncWipeClip 4.4s ease-in-out infinite;
  will-change: clip-path;
}

.look .wipe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1.5px;
  background: rgba(255, 251, 245, .94);
  box-shadow: 0 0 8px rgba(24, 22, 22, .25);
  animation: syncWipeBar 4.4s ease-in-out infinite;
  will-change: left;
  z-index: 2;
}

@keyframes syncWipeClip {
  0%, 10% { clip-path: inset(0 0 0 86%); }
  45%, 55% { clip-path: inset(0 0 0 14%); }
  90%, 100% { clip-path: inset(0 0 0 86%); }
}

@keyframes syncWipeBar {
  0%, 10% { left: 86%; }
  45%, 55% { left: 14%; }
  90%, 100% { left: 86%; }
}

.look .look-name {
  position: absolute;
  left: 11px;
  bottom: 11px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 9999px;
  background: rgba(255, 251, 245, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Scroll-Lit Editorial Manifesto ---------- */

.tagline {
  padding-block: 76px;
}

@media (min-width: 900px) {
  .tagline {
    padding-block: 112px;
  }
}

.tagline p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.7vw, 54px);
  line-height: 1.15;
  letter-spacing: -.015em;
  max-width: 780px;
}

.tagline .w {
  display: inline-block;
  color: var(--ink);
  opacity: .22;
  transition: opacity .75s var(--ease);
  transition-delay: calc(var(--i) * 30ms);
}

.tagline .w.on {
  opacity: 1;
}

/* ---------- Pose Studio — Single-Card Swipeable Editorial Deck ---------- */

.pose-section {
  position: relative;
}

.pose-section .head {
  margin-bottom: 32px;
}

.pose-carousel-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pose-deck-viewport {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pose-deck-track {
  display: flex;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px calc(50% - 168px);
}

.pose-deck-track::-webkit-scrollbar {
  display: none;
}

@media (max-width: 460px) {
  .pose-deck-track {
    padding: 6px calc(50% - 144px);
  }
}

.pose-slide {
  flex: none;
  width: 336px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 9px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 28px 58px -34px rgba(35, 30, 29, .30);
  transition: transform .42s var(--ease), opacity .42s var(--ease);
}

@media (max-width: 460px) {
  .pose-slide {
    width: 288px;
  }
}

.pose-slide .pose-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #1C1719;
}

.pose-slide .pose-stage img.pose-real,
.pose-slide .pose-stage img.pose-guide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.pose-slide .pose-stage img.pose-guide {
  animation: poseOutlineBreath 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes poseOutlineBreath {
  0%, 100% { opacity: .92; }
  45%, 55% { opacity: .10; }
}

.pose-slide .pose-stage .viewfinder {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  z-index: 2;
}

.pose-slide .pose-stage .viewfinder i {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(255, 251, 245, .86);
  border-style: solid;
  border-width: 0;
}

.pose-slide .pose-stage .viewfinder i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 4px; }
.pose-slide .pose-stage .viewfinder i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 4px; }
.pose-slide .pose-stage .viewfinder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 4px; }
.pose-slide .pose-stage .viewfinder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 4px; }

.deck-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.deck-arrow {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s ease;
}

.deck-arrow:hover {
  background: var(--black);
  color: var(--surface);
  border-color: var(--black);
}

.deck-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- Split Interactive Editorial Showcase (All 8 Portrait Analyses) ---------- */

.aura-section {
  position: relative;
}

.aura-section .head {
  margin-bottom: 36px;
}

.aura-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 20px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 28px 64px -40px rgba(35, 30, 29, .24);
}

@media (min-width: 860px) {
  .aura-editorial {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 44px;
    padding: 28px 36px 28px 28px;
  }
}

.aura-spotlight {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--blush);
  box-shadow: 0 26px 56px -28px rgba(35, 30, 29, .34);
}

.aura-spotlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}

.aura-spotlight img.is-active {
  opacity: 1;
  transform: scale(1);
}

.aura-spotlight .spot-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(255, 251, 245, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--ink);
}

.aura-spotlight .spot-dots {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(255, 251, 245, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.aura-spotlight .spot-dots.show {
  opacity: 1;
  transform: none;
}

.aura-spotlight .spot-dots i {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  border: 1.2px solid rgba(255, 255, 255, .95);
}

/* Interactive 8-Item Editorial Index */
.aura-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 860px) {
  .aura-index {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

.aura-row {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease), color .28s var(--ease);
}

.aura-row .row-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.aura-row .row-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-3);
  flex: none;
  transition: color .25s ease;
}

.aura-row .row-name {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
  color: var(--ink-2);
  transition: color .25s ease, transform .3s var(--ease);
}

.aura-row .row-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: transparent;
  flex: none;
  transition: background .25s ease, transform .25s var(--ease);
}

.aura-row[aria-selected="true"] {
  background: var(--black);
  border-color: var(--black);
}

.aura-row[aria-selected="true"] .row-num {
  color: rgba(255, 251, 245, .58);
}

.aura-row[aria-selected="true"] .row-name {
  color: #FFFBF5;
  font-style: italic;
}

.aura-row[aria-selected="true"] .row-dot {
  background: var(--rose);
  transform: scale(1.15);
}

@media (min-width: 860px) {
  .aura-row {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 15px 6px;
  }
  .aura-row:last-child {
    border-bottom: 0;
  }
  .aura-row .row-name {
    font-size: 27px;
  }
  .aura-row:hover .row-name {
    color: var(--ink);
    transform: translateX(4px);
  }
  .aura-row[aria-selected="true"] {
    background: transparent;
    border-color: var(--line);
  }
  .aura-row[aria-selected="true"] .row-num {
    color: var(--rose);
  }
  .aura-row[aria-selected="true"] .row-name {
    color: var(--ink);
    font-style: italic;
    transform: translateX(6px);
  }
}

@media (max-width: 520px) {
  .aura-editorial {
    padding: 14px;
    border-radius: 26px;
    gap: 18px;
  }
  .aura-row {
    padding: 10px 11px;
  }
  .aura-row .row-name {
    font-size: 15.5px;
  }
  .aura-row .row-num {
    font-size: 10px;
  }
}

/* ---------- Privacy Quiet Editorial Band ---------- */

.privacy-band {
  padding-block: 36px;
}

.privacy-box {
  display: grid;
  gap: 28px;
  padding: 36px 28px;
  border-radius: 26px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
}

@media (min-width: 820px) {
  .privacy-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 40px 12px;
  }
  .privacy-item {
    padding-inline: 28px;
  }
  .privacy-item + .privacy-item {
    border-left: 1px solid var(--line-strong);
  }
}

.privacy-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
}

.privacy-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */

.faq .list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

details {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}

details[open] {
  background: var(--blush);
  border-color: #E3CEC6;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  border-radius: 18px;
}

summary::-webkit-details-marker {
  display: none;
}

summary:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: -2px;
}

summary svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--ink-2);
  transition: transform .45s var(--ease);
}

details[open] summary svg {
  transform: rotate(45deg);
  color: var(--ink);
}

details p {
  padding: 0 24px 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

details p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Final CTA ---------- */

.cta {
  padding-top: 40px;
}

.cta .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 56px 28px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px -36px rgba(35, 30, 29, .22);
}

.cta h2 {
  max-width: 580px;
}

.cta .actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

footer .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

footer nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .25s ease;
}

footer nav a:hover {
  color: var(--rose);
}

/* ---------- In-App Browser Toast (TikTok / Instagram) ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 18px;
  background: var(--black);
  color: var(--surface);
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .55);
}

.toast[hidden] {
  display: none;
}

.toast button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--surface);
  font-size: 20px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  opacity: .75;
}

.toast button:hover {
  opacity: 1;
}

/* ---------- Legal Document Pages (privacy.html / terms.html) ---------- */

.doc-main {
  padding: 52px 0 96px;
}

.doc-wrap {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 24px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 24px;
}

.doc-back:hover {
  color: var(--ink);
}

.doc-card {
  padding: 46px 40px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px -38px rgba(35, 30, 29, .2);
}

@media (max-width: 640px) {
  .doc-card {
    padding: 28px 18px;
    border-radius: 22px;
  }
}

.doc-card h1 {
  font-size: clamp(32px, 4.5vw, 46px);
  max-width: none;
  margin-bottom: 10px;
}

.doc-meta {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.doc-callout {
  padding: 18px 20px;
  margin: 18px 0 26px;
  border-radius: 18px;
  background: var(--blush);
  border: 1px solid #E5CFC9;
}

.doc-callout p {
  color: var(--ink) !important;
  font-size: 14.5px !important;
  line-height: 1.65 !important;
}

.doc-toc {
  padding: 20px 22px;
  margin: 0 0 32px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.doc-toc-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 12px;
}

.doc-toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 20px;
}

.doc-toc li {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.doc-toc a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
}

.doc-toc a:hover {
  color: var(--rose);
  text-decoration: underline;
}

.doc-card h2 {
  font-size: 25px;
  margin: 36px 0 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(230, 217, 204, .6);
  scroll-margin-top: 86px;
}

.doc-card h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.doc-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 8px;
}

.doc-card p,
.doc-card li {
  font-size: 15px;
  line-height: 1.74;
  color: var(--ink-2);
}

.doc-card p + p {
  margin-top: 12px;
}

.doc-card ul,
.doc-card ol:not(.doc-toc ol) {
  margin: 10px 0 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}

.doc-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.55;
  background: #FFFDF9;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: .02em;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.doc-table td {
  color: var(--ink-2);
}

/* ---------- Motion & Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy > * {
  animation: rise .58s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
}

.stage-wrap {
  animation: rise .68s var(--ease) both .08s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .stage-wrap,
  .track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tagline .w {
    transition: none;
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
}
