/* ElleMotion home page. Same palette and type as the app. The rose frame is the one bold device;
   everything around it stays quiet. */
:root {
  color-scheme: dark;
  --velvet: #160e13;
  --velvet-glow: #2d1a22;
  --panel: #1f161c;
  --well: #0e080c;
  --seam: #3d2a34;
  --seam-soft: #2a1d24;
  --pearl: #f6ede8;
  --mauve: #c0abb2;
  --dim: #9c8790;
  --rose: #e8ad97;
  --rose-deep: #b9715f;
  --rose-pale: #f8ddd0;
  --rose-wash: rgba(232, 173, 151, 0.12);
  --rose-wash-strong: rgba(232, 173, 151, 0.24);
  --logo-rose: #e0a48d;
  --ink: #2b1219;
  --sheen: rgba(255, 244, 238, 0.42);
  --foil: linear-gradient(118deg, var(--rose-pale) 0%, var(--rose) 34%, var(--rose-deep) 64%, var(--rose-pale) 100%);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --font-body: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --section-gap: clamp(88px, 11vw, 152px);
  --scan: 2.4s;   /* how long the playhead takes to cross the timeline */
  --scan-start: 0.35s;
}
* { box-sizing: border-box; }
html { background: var(--velvet); scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 82% -12%, var(--velvet-glow), transparent 62%), var(--velvet);
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose); text-decoration-color: currentColor; text-underline-offset: 3px; }
a:hover { color: var(--rose-pale); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, 1160px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn-foil {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  background: var(--foil); color: var(--ink);
  font-size: 16px; font-weight: 550; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 var(--sheen);
}
.btn-foil:hover { color: var(--ink); filter: brightness(1.06); }
.btn-quiet { color: var(--pearl); font-size: 16px; text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 5px; }
.btn-quiet:hover { color: var(--rose-pale); }

/* ---------- top bar ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: block; border-radius: 6px; }
.brand img { width: auto; height: 34px; }
.nav nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav nav a { color: var(--mauve); text-decoration: none; }
.nav nav a:hover { color: var(--pearl); }
.nav .nav-signin { padding: 8px 18px; border: 1px solid var(--seam); border-radius: 999px; color: var(--pearl); }
.nav .nav-signin:hover { border-color: var(--rose); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  grid-template-areas: "copy finder" "timeline timeline";
  row-gap: 40px;
  padding-top: clamp(20px, 3vw, 36px);
}
.hero-copy { grid-area: copy; align-self: center; padding-right: 40px; }
.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 5.2vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.hero h1 em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.24em;
  line-height: 0.8;
  letter-spacing: 0;
  color: var(--logo-rose);
  white-space: nowrap;
  padding-right: 0.04em;
}
.hero-lede { margin: 34px 0 0; max-width: 33em; font-size: clamp(17px, 1.3vw, 18px); color: var(--mauve); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--dim); }

/* Phones and tablets only: ElleMotion works best on a computer. */
.device-note { display: none; }
@media (hover: none) and (pointer: coarse) {
  .device-note {
    display: flex; align-items: flex-start; gap: 12px;
    max-width: 30em; margin: 22px 0 0; padding: 14px 16px;
    border: 1px solid var(--seam); border-radius: 14px; background: var(--rose-wash);
    font-size: 14.5px; line-height: 1.5; color: var(--mauve);
  }
  .device-note strong { font-weight: 500; color: var(--pearl); }
  .device-note svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--rose); }
}

/* The viewfinder: a real portrait, dimmed outside the 9:16 clip, with the face it found. */
.finder { grid-area: finder; justify-self: center; align-self: end; width: min(100%, 330px); margin: 0; }
.finder-photo {
  position: relative; overflow: hidden;
  border: 1px solid var(--seam); border-radius: 18px;
  background: var(--well);
  box-shadow: 0 34px 70px rgba(9, 4, 7, 0.55);
}
.finder-photo img { width: 100%; }
.finder-crop {
  position: absolute; left: 22.1%; top: 11.4%; width: 37.6%; height: 53.6%;
  border: 2px solid var(--rose); border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(9, 4, 7, 0.25), 0 0 0 999px rgba(14, 8, 12, 0.58);
}
.finder-face {
  position: absolute; left: 34.7%; top: 19.4%; width: 12.4%; height: 13.1%;
  border: 1.5px solid rgba(248, 221, 208, 0.9); border-radius: 7px;
}
.finder figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--mauve); text-align: center; text-wrap: balance; }

/* The face timeline, drawn like the one in the app. */
.timeline { grid-area: timeline; position: relative; }
.ribbon-link {
  position: absolute; left: 79%; bottom: 100%; height: 40px; width: 0;
  border-left: 1px solid rgba(232, 173, 151, 0.55);
}
.ribbon {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: 46px 18px 0;
  border: 1px solid var(--seam-soft); border-radius: 16px;
  background: var(--well);
}
.ribbon-plot { position: relative; height: 84px; }
.ribbon-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ribbon-dim { opacity: 0.22; }
.ribbon-lit { position: absolute; inset: 0; }
.wash, .bracket { position: absolute; left: var(--x0); width: var(--w); }
.wash { top: -10px; bottom: 0; background: var(--rose-wash); border-radius: 3px; }
.wash.selected { background: var(--rose-wash-strong); }
.bracket { top: -16px; height: 7px; border: 1.5px solid var(--rose); border-bottom: 0; border-radius: 2px 2px 0 0; }
.bracket.selected { border-width: 2px; border-bottom: 0; }
.rank {
  position: absolute; left: var(--x); top: -38px; transform: translateX(-50%);
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 14px; line-height: 20px;
  color: var(--rose); white-space: nowrap;
}
.rank.selected { color: var(--pearl); }
.joy { position: absolute; left: var(--x); bottom: calc(var(--q) * 100% + 5px); width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--pearl); }
.ribbon-axis { position: relative; height: 30px; border-top: 1px solid var(--seam-soft); font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.ribbon-axis span { position: absolute; left: var(--x); top: 7px; transform: translateX(-50%); white-space: nowrap; }
.ribbon-axis span:first-child { transform: none; }
.ribbon-axis span:last-child { transform: translateX(-100%); }
.ribbon-axis span::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 4px; background: var(--seam); }
.ribbon-axis span:first-child::before { left: 0; }
.ribbon-axis span:last-child::before { left: auto; right: 0; }
.playhead { position: absolute; inset: -18px 0 0; pointer-events: none; }
.playhead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--pearl); box-shadow: 0 0 12px rgba(248, 221, 208, 0.7); }
.timeline-caption { margin: 12px 0 0; font-size: 14px; color: var(--dim); }

/* One page-load moment: the playhead scans the session, the moments light up, and the clip frame lands. */
@media (prefers-reduced-motion: no-preference) {
  .ribbon-lit { animation: sweep var(--scan) linear var(--scan-start) both; }
  .playhead { animation: playhead var(--scan) linear var(--scan-start) both; }
  .wash, .bracket, .rank, .joy { animation: appear 0.5s ease-out both; animation-delay: calc(var(--scan-start) + var(--at) * var(--scan)); }
  .finder-crop, .finder-face, .ribbon-link { animation: land 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--scan-start) + 0.79 * var(--scan)); }
  .finder-face { animation-delay: calc(var(--scan-start) + 0.79 * var(--scan) + 0.15s); }
}
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes playhead { from { transform: translateX(0); opacity: 1; } 94% { opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes land { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .playhead { display: none; }
}

/* ---------- the problem ---------- */
.statement { padding-top: var(--section-gap); }
.statement-big {
  margin: 0; max-width: 21ch;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(31px, 4.3vw, 58px); line-height: 1.14; color: var(--pearl);
}
.statement-small { margin: 26px 0 0; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--mauve); }

/* ---------- a real session, start to finish ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 72px; align-items: center; padding-top: var(--section-gap); }
.demo-copy p { margin: 18px 0 0; max-width: 30em; font-size: 18px; color: var(--mauve); }
.demo-film { position: relative; justify-self: center; width: min(100%, 380px); margin: 0; }
.demo-film video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 1px solid var(--seam); border-radius: 24px; background: var(--well); box-shadow: 0 34px 70px rgba(9, 4, 7, 0.55); }
.demo-film[data-state] video { cursor: pointer; }
/* One button. While the film is paused it's a large play button in the middle.
   While it plays, it's a small pause button in the corner. home.js shows it. */
.demo-toggle {
  position: absolute; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(232, 173, 151, 0.6); border-radius: 50%;
  background: rgba(14, 8, 12, 0.66); color: var(--pearl); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.demo-toggle[hidden] { display: none; }
.demo-toggle:hover { border-color: var(--rose); background-color: rgba(14, 8, 12, 0.82); }
.demo-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.demo-film:not([data-state="playing"]) .demo-toggle { left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%, -50%); box-shadow: 0 14px 34px rgba(9, 4, 7, 0.5); }
.demo-film:not([data-state="playing"]) .demo-toggle svg { width: 30px; height: 30px; }
.demo-film[data-state="playing"] .demo-toggle { right: 14px; top: 14px; width: 40px; height: 40px; }
.demo-film[data-state="playing"] .icon-play,
.demo-film:not([data-state="playing"]) .icon-pause { display: none; }
.demo-film[data-state="loading"] .icon-play { opacity: 0.5; }
.demo-film[data-state="loading"] .demo-toggle::after {
  content: ""; position: absolute; inset: -6px; border: 2px solid transparent; border-top-color: var(--rose); border-radius: 50%;
  animation: demo-spin 0.9s linear infinite;
}
@keyframes demo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .demo-film[data-state="loading"] .demo-toggle::after { animation: none; border-color: var(--rose-wash-strong); }
}

/* ---------- shared section type ---------- */
.section-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }

/* ---------- how it works: a real sequence, so it's numbered ---------- */
.how { padding-top: var(--section-gap); }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.steps li { padding-top: 22px; border-top: 1px solid var(--seam); }
.step-n { display: block; font-family: var(--font-display); font-style: italic; font-size: 44px; line-height: 1; color: var(--rose); }
.steps h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--pearl); }
.steps p { margin: 0; color: var(--mauve); }

/* ---------- features: an editorial list, not a card grid ---------- */
.features { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px 72px; padding-top: var(--section-gap); }
.features-intro { align-self: start; position: sticky; top: 36px; }
.features-intro p { margin: 18px 0 0; max-width: 26em; color: var(--mauve); }
.feature-list { margin: 0; display: grid; gap: 36px; }
.feature-list dt { font-family: var(--font-display); font-style: italic; font-size: 25px; line-height: 1.2; color: var(--rose); }
.feature-list dd { margin: 8px 0 0; max-width: 33em; color: var(--mauve); }

/* ---------- privacy band ---------- */
.privacy { margin-top: var(--section-gap); background: var(--panel); border-block: 1px solid var(--seam-soft); }
.privacy-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 72px; align-items: end; padding-block: clamp(64px, 9vw, 116px); }
.privacy h2 { margin: 0; max-width: 13ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.08; }
.privacy-copy p { margin: 0 0 14px; color: var(--mauve); }
.privacy-copy .privacy-facts { margin: 22px 0 0; color: var(--pearl); font-weight: 500; }

/* ---------- note from Angelina, with her photo beside it ---------- */
.note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  column-gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-top: var(--section-gap);
}
.note-photo {
  margin: 0; overflow: hidden;
  border: 1px solid var(--seam); border-radius: 18px;
  background: var(--well);
  box-shadow: 0 34px 70px rgba(9, 4, 7, 0.55);
}
.note-photo img { display: block; width: 100%; height: auto; }
.note blockquote { margin: 0; max-width: 31em; font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 31px); line-height: 1.45; color: var(--pearl); }
.note blockquote p { margin: 0; }
.signature { margin: 22px 0 0; font-family: var(--font-script); font-size: 60px; line-height: 1; color: var(--logo-rose); }
.note-meta { margin: 14px 0 0; font-size: 15px; color: var(--mauve); }

/* ---------- pricing: the same cards as the plans screen in the app ---------- */
.pricing { padding-top: var(--section-gap); }
.pricing-lede { margin: 16px 0 0; color: var(--mauve); }
.pricing-perks { margin: 6px 0 0; color: var(--pearl); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 26px 24px; border: 1px solid var(--seam-soft); border-radius: 16px; background: var(--panel); }
.plan.featured { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose-wash-strong); }
.plan h3 { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 26px; color: var(--rose); }
.plan .price { margin: 0; font-size: 15px; color: var(--mauve); }
.plan .price strong { font-family: var(--font-display); font-size: 48px; font-weight: 500; line-height: 1.1; color: var(--pearl); }
.plan-notes { display: grid; align-content: start; gap: 6px; }
.plan-notes p { margin: 0; font-size: 15px; color: var(--mauve); }
.plan-notes .plan-limit { color: var(--dim); }
.plan-notes .plan-left { color: var(--pearl); font-weight: 500; }
.plan-notes .plan-bonus { color: var(--rose); }
.plan-cta { justify-self: start; margin-top: 10px; min-height: 44px; padding: 0 24px; font-size: 15px; }
.plan.sold-out h3, .plan.sold-out .price { opacity: 0.55; }
.plan-closed { justify-self: start; margin-top: 10px; padding: 10px 0; font-size: 15px; color: var(--dim); }
.pricing-fine { margin: 20px 0 0; max-width: 56em; font-size: 14px; color: var(--dim); }

/* ---------- questions ---------- */
.faq { padding-top: var(--section-gap); }
.faq .section-title { margin-bottom: 18px; }
.faq details { max-width: 820px; border-bottom: 1px solid var(--seam-soft); }
.faq summary { position: relative; padding: 20px 44px 20px 0; list-style: none; cursor: pointer; font-size: 18px; color: var(--pearl); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--rose); }
.faq summary::after { transform: rotate(90deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--rose-pale); }
.faq details p { margin: 0 0 22px; max-width: 40em; color: var(--mauve); }

/* ---------- closing ---------- */
.closing { padding-block: var(--section-gap); text-align: center; }
.closing h2 { margin: 0 auto 34px; max-width: 15ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.8vw, 66px); line-height: 1.08; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; padding-block: 36px 52px; border-top: 1px solid var(--seam-soft); font-size: 14px; color: var(--dim); }
.foot-brand img { width: auto; height: 30px; }
.foot-brand p { margin: 10px 0 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--mauve); text-decoration: none; }
.foot nav a:hover { color: var(--pearl); }
.foot-copy { grid-column: 1 / -1; margin: 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "finder" "timeline"; row-gap: 44px; }
  .hero-copy { padding-right: 0; }
  .finder { width: min(100%, 340px); align-self: center; }
  .ribbon-link { display: none; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .features-intro { position: static; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-film { width: min(100%, 340px); }
  .privacy-inner { grid-template-columns: minmax(0, 1fr); }
  /* On smaller screens the photo sits between the note and the signature. */
  .note { grid-template-columns: minmax(0, 1fr); }
  .note-text { display: contents; }
  .note blockquote { order: 1; }
  .note-photo { order: 2; width: min(100%, 210px); margin-top: 30px; }
  .note .signature { order: 3; margin-top: 24px; }
  .note .note-meta { order: 4; }
}
@media (max-width: 760px) {
  .nav nav a:not(.nav-signin) { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .ribbon { padding-inline: 12px; }
  .ribbon-plot { height: 64px; }
  .joy { display: none; }
  .ribbon-axis span:nth-child(even) { display: none; }
  .rank { font-size: 13px; }
}
