/* Premium layer: the hero, the topic band, the sticky phone, and the closing. The lesson demo below
   keeps styles.css. Brand: deep navy, the app's lesson blue, and the oxygen red as the one warm note. */
:root {
  --p-night: #0a0f1f; --p-night-2: #121a33; --p-paper: #ffffff; --p-mist: #a8b2cf; --p-line-dark: #ffffff1a;
  --p-blue: #2f6bff; --p-blue-glow: #6f9bff; --p-red: #ff5a67; --p-ease: cubic-bezier(.2, .8, .2, 1);
}
.p-dark { background: var(--p-night); color: #eef1fb; position: relative; overflow: hidden; }
.p-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.p-store { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 28px; border-radius: 18px;
  background: var(--p-blue); color: #fff; font: 600 18px/1 var(--body); text-decoration: none;
  box-shadow: 0 12px 34px #2f6bff66; transition: transform .2s var(--p-ease), box-shadow .2s var(--p-ease); }
.p-store:hover { transform: translateY(-2px); box-shadow: 0 16px 40px #2f6bff88; }
.p-store svg { width: 22px; height: 22px; }
.p-store.small { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 13px; box-shadow: none; }

/* Hero */
.p-hero::before { content: ""; position: absolute; inset: -30% -10% auto 35%; height: 130%;
  background: radial-gradient(closest-side, #2f6bff55, transparent 70%); pointer-events: none; }
.p-hero::after { content: ""; position: absolute; left: -15%; bottom: -35%; width: 65%; height: 80%;
  background: radial-gradient(closest-side, #ff5a6726, transparent 70%); pointer-events: none; }
.p-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.p-brand { display: flex; align-items: center; gap: 12px; font: 700 21px/1 var(--body); color: #fff; text-decoration: none; }
.p-brand img { width: 40px; height: 40px; border-radius: 11px; }
.p-hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; padding: 36px 0 110px; }
@media (min-width: 960px) { .p-hero-grid { grid-template-columns: 1.05fr .95fr; padding-top: 56px; min-height: 760px; } }
.p-hero h1 { font: 400 clamp(56px, 8.6vw, 112px)/.92 var(--display); letter-spacing: -.02em; margin: 0 0 26px; color: #fff; }
.p-hero h1 em { font-style: italic; color: var(--p-blue-glow); }
.p-hero .p-lede { font: 400 21px/1.55 var(--body); color: var(--p-mist); max-width: 31rem; margin: 0 0 36px; }
.p-hero .p-note { margin: 18px 0 0; font-size: 15px; color: var(--p-mist); }
.p-hero .p-note a { color: #fff; }

.p-stage { position: relative; height: 640px; max-width: 540px; width: 100%; justify-self: center; }
.p-phone { position: relative; width: 290px; aspect-ratio: 975 / 2061; border-radius: 50px; padding: 11px; background: #05070f;
  box-shadow: 0 0 0 2px #2a3352, 0 50px 100px #000000b0; }
.p-phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 88px; height: 26px; margin-left: -44px; border-radius: 20px; background: #05070f; z-index: 2; }
.p-screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #fff; }
.p-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.p-stage .p-phone { position: absolute; left: 8%; top: 0; transform: rotate(-4deg); }
.p-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; background: #fff; color: #14213d;
  border-radius: 20px; padding: 14px 16px; box-shadow: 0 22px 50px #00000066; font: 400 15px/1.3 var(--body); max-width: 270px; }
.p-float b { display: block; font-weight: 700; }
.p-float small { color: #59627a; font-size: 13px; }
.p-float .p-badge { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-weight: 700; }
.p-badge.ok { background: #e3f3ea; color: #1d7a46; }
.p-badge.blue { background: #e6ebf8; color: var(--p-blue); }
.p-badge.red { background: #fbe7e9; color: #b4232f; }
.p-count { right: 0; top: 60px; display: block; padding: 18px 22px; }
.p-count strong { display: block; font: 400 64px/.9 var(--display); color: var(--p-blue); }
.p-right { right: -14px; top: 270px; }
.p-why { right: 30px; top: 400px; }
.p-arrow { position: absolute; left: 52%; top: 175px; width: 86px; color: #fff; opacity: .8; z-index: 2; }
@media (max-width: 520px) {
  .p-stage { height: 600px; }
  .p-stage .p-phone { width: 220px; left: 0; }
  .p-count { top: 20px; } .p-count strong { font-size: 52px; }
  .p-right { right: 0; top: 290px; max-width: 220px; }
  .p-why { right: 6px; top: 420px; max-width: 220px; }
  .p-arrow { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .p-reveal { opacity: 0; transform: translateY(26px); animation: p-rise .9s var(--p-ease) forwards; }
  .p-stage .p-phone.p-reveal { transform: rotate(-4deg) translateY(30px); animation-name: p-rise-phone; }
  .p-d1 { animation-delay: .1s } .p-d2 { animation-delay: .25s } .p-d3 { animation-delay: .5s } .p-d4 { animation-delay: .75s } .p-d5 { animation-delay: .95s } .p-d6 { animation-delay: 1.15s }
  .p-bob { animation: p-rise .9s var(--p-ease) forwards, p-bob 6s ease-in-out 2s infinite; }
  @keyframes p-rise { to { opacity: 1; transform: none; } }
  @keyframes p-rise-phone { to { opacity: 1; transform: rotate(-4deg); } }
  @keyframes p-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}

/* Topic band */
.p-band { background: var(--p-blue); color: #fff; overflow: hidden; padding: 24px 0; }
.p-marquee { display: flex; width: max-content; gap: 48px; font: 400 clamp(32px, 4.4vw, 56px)/1 var(--display); white-space: nowrap; }
.p-marquee span { display: inline-flex; align-items: center; gap: 48px; }
.p-marquee i { width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: .55; display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .p-marquee { animation: p-slide 40s linear infinite; } @keyframes p-slide { to { transform: translateX(-50%); } } }

/* How it works: one phone that changes screen as you read */
.p-how { padding: 120px 0; }
.p-kicker { color: var(--accent); font: 600 16px/1 var(--body); margin: 0 0 14px; }
.p-how h2, .p-close h2 { font: 400 clamp(44px, 5.8vw, 76px)/.98 var(--display); letter-spacing: -.01em; margin: 0 0 22px; max-width: 15ch; }
.p-how .p-sub { font-size: 20px; color: var(--muted); max-width: 34rem; margin: 0; }
.p-how-grid { display: grid; gap: 40px; margin-top: 64px; }
@media (min-width: 960px) { .p-how-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.p-sticky { display: none; }
@media (min-width: 960px) {
  .p-sticky { display: block; position: sticky; top: 9vh; height: 82vh; }
  .p-sticky .p-phone { margin: 0 auto; width: min(320px, 36vh); }
  .p-sticky .p-screen > img { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--p-ease); }
  .p-sticky .p-screen > img.on { opacity: 1; }
  .p-step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; }
  .p-step .p-phone { display: none; }
}
.p-step .p-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 18px; }
.p-step h3 { font: 400 clamp(34px, 3.8vw, 50px)/1 var(--display); margin: 0 0 14px; }
.p-step p { color: var(--muted); font-size: 20px; margin: 0; max-width: 28rem; }
.p-step .p-phone { width: 240px; margin: 28px auto 48px; }

/* Closing */
.p-close { text-align: center; padding: 120px 0; }
.p-close::before { content: ""; position: absolute; left: 50%; top: 35%; width: 900px; height: 600px; margin-left: -450px;
  background: radial-gradient(closest-side, #2f6bff40, transparent 70%); }
.p-close .p-wrap { position: relative; }
.p-close h2 { color: #fff; margin: 0 auto 22px; max-width: 13ch; font-size: clamp(52px, 7.6vw, 104px); }
.p-close p { color: var(--p-mist); font-size: 20px; max-width: 34rem; margin: 0 auto 36px; }
.p-close .p-fine { font-size: 15px; margin: 18px auto 0; }
.p-close .p-fine a { color: #fff; }
