/* ============================================================
   Gossipy landing — reproduction of the "Vaulted." Framer template
   Display face swapped to SummerCrush; body stays Instrument Sans.
   ============================================================ */

@font-face {
  font-family: "Summer Crush";
  src: url("./fonts/SummerCrush.otf") format("opentype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --blue: #17a3ff;
  --pink: #d840df;
  --orange: #ffad4a;
  --ink: #000;
  --paper: #fff;
  --gray: #969696;
  --gray-d: #696969;
  --mute: #b0b0b0;
  --soft: #f0f0f0;
  --soft-2: #e6e6e6;
  --grad: linear-gradient(90deg, #f5a623 0%, #f8cf57 100%);
  --grad-rev: linear-gradient(270deg, #f4863f 16%, #f6b840 52%, #f8cf57 90%);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Summer Crush", "Instrument Sans", system-ui, sans-serif;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}
.c-blue { color: var(--blue); }
.c-pink { color: var(--pink); }
.c-orange { color: var(--orange); }
.c-ink { color: var(--ink); }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-grad--rev { background: var(--grad-rev); -webkit-background-clip: text; background-clip: text; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 66px; cursor: pointer;
  border: 0; transition: transform .25s cubic-bezier(.2,.7,.3,1), opacity .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.btn--lg { padding: 14px 28px; font-size: 16px; }

/* ---------- Phones (PNGs already cut out to the iPhone shape) ----------
   Whole phones — their lower part is hidden by the screen bottom edge, not masked. */
.phone { position: relative; }
.phone > img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.22));
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(880px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 22px;
  background: rgba(237,237,237,.72); backdrop-filter: blur(12px);
  border-radius: 20px; box-shadow: 0 4px 24px rgba(0,0,0,.05);
  animation: navDrop .8s cubic-bezier(.2,.8,.2,1) .2s both;
}
@keyframes navDrop { from { opacity: 0; transform: translate(-50%, -120%); } to { opacity: 1; transform: translate(-50%, 0); } }
.nav__brand { font-family: var(--display); font-size: 26px; }
.nav__links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.nav__links a { color: #000; opacity: .92; transition: opacity .2s; }
.nav__links a:hover { opacity: .55; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 19vh 24px 0;
  background: linear-gradient(#f6e2cf 42%, #fff 62%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 64%, transparent 97%); mask: linear-gradient(#000 0 64%, transparent 97%); }
.hero__streaks {
  position: absolute; inset: -55%;
  /* Warm bicolour bands, heavily blurred (GPU). Motion is transform-ONLY, so the
     blur rasterises once and just composites — no SVG filter, no bg repaint. */
  background: repeating-linear-gradient(100deg,
    #ef6b4e 0px, #f4863f 80px, #f6b840 150px, #f8cf57 205px, #f6b840 260px, #f4863f 330px, #ef6b4e 410px);
  background-size: 820px 100%;
  filter: blur(72px) saturate(1.3);
  opacity: 1;
  will-change: transform;
  animation: streaksWave 18s ease-in-out infinite alternate;
}
@keyframes streaksWave {
  from { transform: rotate(-13deg) scale(1.30) translate3d(-5%, 0, 0); }
  to   { transform: rotate(-9deg) scale(1.40) translate3d(5%, -3%, 0); }
}
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 1000px; }
.hero__title {
  color: #fff; font-size: clamp(38px, 6vw, 76px); line-height: .96;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.12);
}
.hero__sub { color: #fff; font-size: clamp(17px, 2.2vw, 21px); font-weight: 500; line-height: 1.4; margin-top: 22px; opacity: .96; }
.hero__cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__rating { color: #000; font-size: 14px; font-weight: 500; opacity: .75; }
.hero__fan {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  width: min(100% - 32px, 1100px);
}
.phone--fan {
  width: 18vw; max-width: 200px; transform-origin: bottom center;
  filter: blur(var(--blur, 0)); opacity: 0;
  animation: fanRise .9s cubic-bezier(.2,.8,.2,1) var(--d, 0s) both;
}
/* --hide = share of the phone pushed below the screen bottom (only the top peeks). */
@keyframes fanRise {
  from { opacity: 0; transform: translateY(calc(var(--hide, 0%) + 16%)); }
  to   { opacity: 1; transform: translateY(var(--hide, 0%)); }
}

/* ============ LEAD PHONE (one continuous centre phone) ============ */
.lead-phone {
  position: fixed; left: 50%; top: 0; z-index: 4;
  transform: translate(-50%, -200%); transform-origin: center center;
  will-change: transform; pointer-events: none;
}
.lead-phone__inner { animation: fanRise .9s cubic-bezier(.2,.8,.2,1) .55s both; }
.phone--lead { display: grid; width: 200px; }
.phone--lead .phone__shot { grid-area: 1 / 1; width: 100%; height: auto; display: block; opacity: 0; transition: opacity .6s ease; }
.phone--lead[data-shot="0"] .phone__shot--0,
.phone--lead[data-shot="1"] .phone__shot--1,
.phone--lead[data-shot="2"] .phone__shot--2 { opacity: 1; }
.lead-slot { flex: none; width: 200px; align-self: flex-end; }

/* ============ SHOWCASE (features scroll past the pinned lead phone) ============ */
.showcase { position: relative; background: #fff; }
.feature {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-start; justify-content: center; padding: 15vh 24px 0;
}
.feature__text {
  position: relative; z-index: 5;
  width: fit-content; max-width: 760px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-shadow: 0 1px 2px rgba(255,255,255,.55); /* tiny crispness only */
  will-change: transform; /* composite once; the small-blur cloud isn't re-rasterised on scroll */
}
/* Big soft WHITE cloud behind the text — a RADIAL GRADIENT (no blur filter), so
   it paints once and stays cheap while scrolling. Soft, diffuse, no box. */
.feature__text::before {
  content: ""; position: absolute; z-index: -1; inset: -14px -26px;
  border-radius: 26px;
  background: rgba(255,255,255,.96);  /* cloud in the section background colour (white) */
  filter: blur(18px);                 /* softer, more diffuse blurry border */
  pointer-events: none;
}
.feature__title { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.02; text-wrap: balance; }
.feature__sub { color: var(--gray); font-size: clamp(17px, 2.2vw, 23px); font-weight: 500; line-height: 1.3; max-width: 600px; }

/* Scroll-driven: section titles start small and grow to full size as they
   scroll in, then stabilise. Scrubbed by the element's view progress —
   transform-only (GPU), no JS. Falls back to full size where unsupported. */
@keyframes titleGrow { from { transform: scale(.7); } to { transform: scale(1); } }
@supports (animation-timeline: view()) {
  /* Zoom the whole title+subtitle block as ONE unit (its own view timeline),
     so title and subtitle stay perfectly in sync — no offset. */
  .feature__text {
    animation: titleGrow linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
    transform-origin: center center;
  }
}

/* ============ Shared section headings ============ */
.section-title { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; text-align: center; text-wrap: balance; }
.section-sub { color: var(--mute); font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; line-height: 1.25; text-align: center; max-width: 720px; }

/* ============ SOCIAL PROOF ============ */
/* Post-showcase sections layer above the pinned phone, so it disappears
   BEHIND them (not via a fade) once the showcase ends. */
.proof, .how, .pricing, .community, .faq, .footer { position: relative; z-index: 10; }

.proof {
  background: #fff; padding: 120px 24px; scroll-margin-top: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.proof__quote { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; text-align: center; max-width: 1000px; text-wrap: balance; }
.proof__person { display: flex; align-items: center; gap: 16px; }
.proof__name { font-family: var(--display); font-size: 30px; color: var(--gray-d); line-height: 1; }
.proof__role { color: var(--gray); font-weight: 500; font-size: 17px; margin-top: 4px; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 100px; font-size: 26px;
  background: var(--c, #b8e067); border: 1px solid rgba(34,34,34,.15);
  box-shadow: 0 4px 24px rgba(0,0,0,.12); flex: none;
}
.avatar--lime { width: 64px; height: 64px; background: #b8e067; }

/* ============ HOW IT WORKS ============ */
.how { background: #fff; padding: 120px 24px; display: flex; flex-direction: column; align-items: center; gap: 56px; }
.how__head { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: var(--maxw); }
.step {
  background: var(--soft-2); border-radius: 28px; padding: 32px 0 0;
  display: flex; flex-direction: column; align-items: center; overflow: hidden; min-height: 400px;
}
.step__icon { width: 48px; height: 48px; }
.step__icon svg { width: 100%; height: 100%; }
.step__num { font-size: 34px; margin: 10px 0 18px; }
.step__body {
  width: calc(100% - 24px); margin: auto 12px 12px; background: #fff; border-radius: 24px;
  padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.step__title { font-size: 30px; }
.step__lead { color: var(--gray); font-weight: 500; font-size: 18px; }
.step__text { color: #000; font-size: 16px; font-weight: 500; line-height: 1.5; margin-top: 8px; }

/* ============ PRICING ============ */
.pricing { background: var(--soft-2); padding: 120px 24px; display: flex; flex-direction: column; align-items: center; gap: 56px; scroll-margin-top: 90px; }
.plans { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; width: 100%; max-width: 1100px; align-items: stretch; }
.plan { background: #fff; border-radius: 28px; padding: 32px 64px 32px 32px; display: flex; flex-direction: column; gap: 16px; transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 20px 50px -22px rgba(0,0,0,.35); }
.plan__head { display: flex; align-items: center; gap: 10px; }
.plan__brand { font-size: 24px; }
.tag { font-family: var(--sans); font-weight: 700; font-size: 14px; color: #fff; padding: 8px 12px; border-radius: 6px; line-height: 1; }
.tag--dark { background: var(--ink); }
.tag--grad { background: var(--grad); color: var(--ink); }
.plan__desc { color: var(--gray); font-weight: 500; font-size: 19px; line-height: 1.3; }
.plan__price { font-size: clamp(40px, 5vw, 56px); margin-top: auto; }
.plan__detail { color: var(--gray); font-weight: 500; font-size: 19px; line-height: 1.35; }
.plan__detail--ink { color: var(--ink); }

/* ============ COMMUNITY ============ */
.community { background: #fff; padding: 96px 24px 120px; display: flex; flex-direction: column; align-items: center; gap: 22px; overflow: hidden; }
.ticker { width: 100%; max-width: 1200px; height: 96px; margin-bottom: 28px; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker__track { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; width: max-content; align-items: center; animation: ticker 26s linear infinite; }
.ticker__track li { flex: none; }
.ticker .avatar { width: 88px; height: 88px; font-size: 40px; padding: 8px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.community__head { display: flex; flex-direction: column; align-items: center; }
.community .section-sub { margin-top: 6px; }
.community .btn { margin-top: 14px; }

/* ============ FAQ ============ */
.faq { background: #fff; padding: 120px 24px; display: flex; flex-direction: column; align-items: center; gap: 48px; scroll-margin-top: 90px; }
.faq__list { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 16px; }
.faq__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 16px; row-gap: 0;
  width: 100%; text-align: left; background: var(--soft); border: 0; border-radius: 28px;
  padding: 22px 26px; cursor: pointer; font-family: var(--sans);
}
.faq__no { color: var(--gray); font-family: var(--display); font-size: 26px; }
.faq__q { font-size: 20px; font-weight: 500; color: #000; }
.faq__chevron { width: 22px; height: 22px; position: relative; }
.faq__chevron::before, .faq__chevron::after { content: ""; position: absolute; background: #000; border-radius: 2px; transition: transform .3s; }
.faq__chevron::before { width: 2px; height: 16px; left: 10px; top: 3px; }
.faq__chevron::after { height: 2px; width: 16px; top: 10px; left: 3px; }
.faq__item[aria-expanded="true"] .faq__chevron::before { transform: rotate(90deg); opacity: 0; }
.faq__a {
  grid-column: 2 / 4; color: var(--gray-d); font-size: 16px; font-weight: 500; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
}
.faq__item[aria-expanded="true"] .faq__a { max-height: 320px; opacity: 1; margin-top: 14px; }


/* ============ FOOTER ============ */
.footer { position: relative; background: #111; overflow: hidden; }
.footer__bg { position: absolute; inset: 0; z-index: 0; opacity: .9; }
.footer__inner { position: relative; z-index: 2; padding: 80px 24px 56px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.footer__brand { color: #fff; font-size: clamp(40px, 6vw, 84px); text-align: center; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.footer__links a { color: #fff; font-weight: 500; font-size: 15px; opacity: .92; transition: opacity .2s; }
.footer__links a:hover { opacity: .6; }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__streaks, .ticker__track, .nav { animation: none; }
  .phone--fan { opacity: 1; animation: none; transform: translateY(var(--hide, 0%)); }
  .lead-phone__inner { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 999px) {
  .nav__links { display: none; }
  .nav { width: calc(100% - 24px); padding-left: 18px; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px 28px; }
}
@media (max-width: 719px) {
  .hero { padding-top: 18vh; }
  .phone--fan,
  .lead-slot,
  .phone--lead { width: 16.5vw; max-width: 128px; }
  .feature { padding-top: 13vh; }
  .feature__sub { font-size: 17px; }
  .proof, .how, .pricing, .faq { padding: 80px 20px; }
  .community { padding: 64px 20px 90px; }
}
