/* Pinxie landing (PX-323). Static, dependency-free. Brand tokens mirror the
   iOS Color.Pinxie palette: bg #14121A, accent #E86C9E, surface #1E1B26. */

:root {
  --bg: #14121A;
  --bg-2: #1B1320;          /* burgundy-shifted bottom stop */
  --surface: #1E1B26;
  --surface-2: #262130;
  --border: #312B3B;
  --text: #EDE9F0;
  --text-dim: #B7AFC2;
  --text-faint: #8A8197;
  --accent: #E86C9E;
  --accent-deep: #D14C84;
  --accent-soft: rgba(232, 108, 158, 0.14);
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

/* ───────── ambient background glow ───────── */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, #160f18 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.blob--1 { width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(232,108,158,0.55), transparent 70%); }
.blob--2 { width: 460px; height: 460px; top: 720px; left: -160px;
  background: radial-gradient(circle, rgba(120,86,200,0.40), transparent 70%); }

/* ───────── layout helpers ───────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 14px 0 12px; }
.section__head p { color: var(--text-dim); font-size: 18px; }

.eyebrow { display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; }
.eyebrow .spark { font-size: 12px; }
.grad { background: linear-gradient(100deg, var(--accent), #b06cff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 700; border-radius: 14px; padding: 14px 22px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:active { transform: scale(0.97); }
.btn--appstore { background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff; box-shadow: 0 12px 30px -10px rgba(232,108,158,0.6); }
.btn--appstore:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(232,108,158,0.7); }
.btn--appstore span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
.btn--appstore small { font-size: 11px; font-weight: 600; opacity: 0.85; }
.btn--appstore strong { font-size: 18px; }
.btn--lg { padding: 16px 28px; }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); font-size: 15px; padding: 11px 18px; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--text { color: var(--text-dim); background: transparent; }
.btn--text:hover { color: var(--text); }

/* ───────── nav ───────── */
.nav { position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(20,18,26,0.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border); }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__fox { height: 30px; width: auto; }
.nav__wordmark { height: 22px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--text-dim); }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 0; }

/* ───────── hero ───────── */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero__copy h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 850; margin: 18px 0 20px; }
.lede { color: var(--text-dim); font-size: 19px; max-width: 30ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 30px 0 12px; }
.hero__note { color: var(--text-faint); font-size: 14px; }

.hero__art { position: relative; display: flex; justify-content: center; }
.float-spark { position: absolute; color: var(--accent); opacity: 0.7; font-size: 20px;
  animation: float 5s ease-in-out infinite; }
.float-spark.s1 { top: 8%; left: 8%; }
.float-spark.s2 { top: 30%; right: 6%; font-size: 28px; animation-delay: 1.2s; }
.float-spark.s3 { bottom: 12%; left: 14%; font-size: 16px; animation-delay: 2.4s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(12deg); } }

/* ───────── phone mockups ───────── */
.phone { position: relative; border-radius: 38px; background: #0c0a11;
  border: 8px solid #0c0a11; box-shadow: 0 30px 70px -24px rgba(0,0,0,0.8), 0 0 0 1px var(--border);
  overflow: hidden; aspect-ratio: 9 / 19.5; }
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 26px; background: #000; border-radius: 999px; z-index: 3; }
.phone__shot { width: 100%; height: 100%; object-fit: cover; }
.phone__chip { position: absolute; left: 12px; bottom: 12px; z-index: 3;
  font-size: 12px; font-weight: 700; color: #fff; padding: 6px 11px; border-radius: 999px;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); }
.phone--hero { width: min(300px, 78vw); transform: rotate(2.5deg); }

/* ───────── stats ───────── */
.stats { max-width: var(--maxw); margin: 8px auto 0; padding: 28px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--accent); }
.stat span { color: var(--text-dim); font-size: 14px; }

/* ───────── cards ───────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); border-color: rgba(232,108,158,0.4);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.8); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 16px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step__num { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature__icon { font-size: 26px; display: block; margin-bottom: 14px; }

/* ───────── before / after compare ───────── */
.section--compare .compare { max-width: 680px; margin: 0 auto; }
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
  user-select: none; touch-action: pan-y; cursor: ew-resize; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; pointer-events: none; }
.compare__top { position: absolute; inset: 0; width: 100%; overflow: hidden;
  clip-path: inset(0 50% 0 0); will-change: clip-path; }
.compare__tag { position: absolute; top: 12px; z-index: 4; font-size: 12px; font-weight: 700;
  color: #fff; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); }
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 5;
  width: 44px; transform: translateX(-50%); background: none; border: 0; padding: 0; cursor: ew-resize; }
.compare__line { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 3px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,0.5); }
.compare__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--accent-deep); font-size: 18px; font-weight: 800;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45); }

/* ───────── showcase ───────── */
.showcase { display: flex; gap: 22px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.showcase__item { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 200px; }
.showcase__item--center { width: 200px; }
.showcase__card { position: relative; width: 100%; aspect-ratio: 1206 / 2622; border-radius: 22px;
  overflow: hidden; box-shadow: 0 24px 50px -28px rgba(0,0,0,0.85), 0 0 0 1px var(--border);
  transform: rotate(-1.5deg); transition: transform .3s var(--ease); }
.showcase__item:nth-child(even) .showcase__card { transform: rotate(1.5deg); }
.showcase__item:hover .showcase__card { transform: translateY(-8px) rotate(0); }
.showcase__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase__card img.is-missing { opacity: 0; }
/* graceful slot when a screenshot file isn't dropped in yet */
.showcase__card::after { content: attr(data-label); position: absolute; inset: 0; z-index: -1;
  display: grid; place-items: center; color: var(--text-faint); font-weight: 700; font-size: 14px;
  background: repeating-linear-gradient(135deg, #1a1722, #1a1722 12px, #1e1a27 12px, #1e1a27 24px); }
.showcase__cap { text-align: center; }
.showcase__cap strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 5px; }
.showcase__cap span { font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.cap-short { display: none; }

/* ───────── FAQ ───────── */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 700; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 20px 18px; color: var(--text-dim); }

/* ───────── CTA band ───────── */
.cta-band { max-width: 880px; margin: 40px auto 0; text-align: center; padding: 64px 24px;
  border-radius: 28px; border: 1px solid rgba(232,108,158,0.35);
  background: radial-gradient(120% 120% at 50% 0%, rgba(232,108,158,0.18), transparent 60%), var(--surface); }
.cta-band__fox { width: 84px; margin: 0 auto 18px; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.cta-band p { color: var(--text-dim); margin: 12px 0 26px; }
.cta-band .btn { margin: 0 auto; }

/* ───────── footer ───────── */
.footer { max-width: var(--maxw); margin: 80px auto 0; padding: 40px 24px 48px;
  border-top: 1px solid var(--border); display: grid; gap: 22px; }
.footer__wordmark { height: 24px; margin-bottom: 10px; }
.footer__brand p { color: var(--text-faint); font-size: 14px; max-width: 40ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; color: var(--text-dim); }
.footer__links a:hover { color: var(--accent); }
.footer__copy { color: var(--text-faint); font-size: 13px; }

/* ───────── scroll reveal ───────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-spark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ───────── responsive ───────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero__copy { text-align: center; }
  .lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 64px 18px; }
  .steps, .features, .stats { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
}
/* showcase → full-bleed horizontal swipe carousel on phones (vertical stack looked poor).
   19vw side padding + scroll-padding centers the first/last card on a 62vw card. */
@media (max-width: 700px) {
  .showcase { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; align-items: flex-start;
    gap: 16px; margin-inline: calc(50% - 50vw); padding: 6px 19vw 16px;
    scroll-snap-type: x mandatory; scroll-padding-inline: 19vw;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .showcase::-webkit-scrollbar { display: none; }
  .showcase__item, .showcase__item--center { flex: 0 0 auto; width: 62vw; max-width: 240px; scroll-snap-align: center; }
  .showcase__item .showcase__card, .showcase__item--center .showcase__card { transform: none; }
  .showcase__item:hover .showcase__card { transform: translateY(-4px); }
  .cap-full { display: none; }
  .cap-short { display: block; font-size: 12.5px; }
}
