/*
 * home.css — Pipa marketing home page
 * Color theme sourced from the Claude artifact design.
 * Framer-style animations added.
 */

/* ── Framer-style animation utilities ──────────────────── */

/* Custom cursor */
.hp-cursor {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(111, 143, 179, 0.15);
  border: 1px solid rgba(111, 143, 179, 0.3);
  pointer-events: none; z-index: 9999;
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
  will-change: transform;
  mix-blend-mode: multiply;
}
.hp-cursor.hp-cursor--hover {
  width: 60px; height: 60px;
  background: rgba(111, 143, 179, 0.08);
  border-color: rgba(111, 143, 179, 0.5);
}
.hp-cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hp-primary);
  pointer-events: none; z-index: 9999;
  will-change: transform;
}
@media (max-width: 960px) {
  .hp-cursor, .hp-cursor-dot { display: none; }
}

/* Scroll progress bar */
.hp-scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--hp-primary);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
}

/* Phone float animation */
@keyframes hp-float {
  0%, 100% { transform: translateY(-50%) translateY(0px); }
  50%       { transform: translateY(-50%) translateY(-12px); }
}
@keyframes hp-float-mobile {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.hp-hero-phone--desktop {
  animation: hp-phoneReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             hp-float 5s ease-in-out 2.5s infinite !important;
}

/* Spring easing for reveals */
.reveal,
.hp-step,
.hp-feature-card,
.hp-price-card,
.hp-stat {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Entrance state */
.hp-step:not(.visible),
.hp-feature-card:not(.visible),
.hp-price-card:not(.visible),
.hp-stat:not(.visible) {
  opacity: 0;
  transform: translateY(32px);
}

/* Visible state */
.hp-step.visible,
.hp-feature-card.visible,
.hp-price-card.visible,
.hp-stat.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal headings */
.reveal:not(.visible) {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced card hover (overrides tilt JS when mouse leaves) */
.hp-feature-card {
  will-change: transform;
}
.hp-price-card {
  will-change: transform;
}
.hp-proof-card {
  will-change: transform;
  transition: box-shadow 0.3s, transform 0.3s !important;
}

/* Section label */
.hp-section-label {
  overflow: hidden;
  letter-spacing: 1.5px;
}

/* Statement words */
.hp-word-inner {
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Smooth image/card entry for proof track */
.hp-proof-track .hp-proof-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s !important;
}
.hp-proof-track .hp-proof-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--hp-shadow-lg) !important;
}

/* Step cards hover glow */
.hp-step:hover {
  box-shadow: 0 0 0 1px rgba(111,143,179,0.25),
              0 8px 24px rgba(111,143,179,0.1) !important;
}

/* Pricing card hover lift */
.hp-price-card:not(.featured):hover {
  box-shadow: var(--hp-shadow-lg) !important;
}
.hp-price-card.featured:hover {
  box-shadow: 0 12px 40px rgba(111,143,179,0.3) !important;
}

/* Button shine effect */
.hp-btn-primary {
  position: relative; overflow: hidden;
}
.hp-btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.hp-btn-primary:hover::after { left: 150%; }

/* Nav CTA shine */
#main-nav .nav-cta {
  position: relative !important; overflow: hidden !important;
}

/* Hero headline lines */
.hp-headline .hline {
  will-change: transform;
}

/* Hero content will-change */
.hp-hero-content {
  will-change: transform, opacity;
}

/* Marquee pause on hover */
.hp-marquee-wrap:hover .hp-marquee-track {
  animation-play-state: paused;
}
.hp-proof-section:hover .hp-proof-track {
  animation-play-state: paused;
}

/* Feature icon animate on card hover */
.hp-feature-card:hover .hp-feature-icon-box {
  transform: scale(1.1) rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-feature-icon-box {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stat number color pulse when counted */
.hp-stat-num {
  transition: color 0.3s;
}

/* Section entry glow on statement */
.hp-statement {
  position: relative;
}
.hp-statement::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169,194,219,0.3), transparent);
}

/* Pricing badge pulse */
.hp-price-badge {
  animation: hp-badge-pulse 3s ease-in-out infinite;
}
@keyframes hp-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111,143,179,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(111,143,179,0); }
}

/* ── Phone screenshot ───────────────────────────────────── */
.hp-phone-img {
  width: clamp(200px, 20vw, 340px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
}

/* ── Reduced motion overrides ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hp-cursor, .hp-cursor-dot, .hp-scroll-progress { display: none; }
  .hp-hero-phone--desktop { animation: hp-phoneReveal 1s ease forwards !important; }
  .hp-hero-phone--mobile { animation: hp-phoneReveal-mobile 0.9s ease 0.55s forwards !important; }
  .hp-price-badge { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── Variables ─────────────────────────────────────────── */
:root {
  --hp-primary:    #6F8FB3;
  --hp-accent:     #A9C2DB;
  --hp-secondary:  #6B89AD;
  --hp-bg:         #F7F6F3;
  --hp-bg-warm:    #F2F0EC;
  --hp-text:       #2F3440;
  --hp-muted:      #7A8496;
  --hp-light:      #B0B8C8;
  --hp-white:      #FFFFFF;
  --hp-border:     rgba(111, 143, 179, 0.15);
  --hp-shadow-sm:  0 1px 3px rgba(47,52,64,0.06), 0 1px 2px rgba(47,52,64,0.04);
  --hp-shadow-md:  0 4px 16px rgba(47,52,64,0.08), 0 2px 6px rgba(47,52,64,0.04);
  --hp-shadow-lg:  0 12px 40px rgba(47,52,64,0.10), 0 4px 12px rgba(47,52,64,0.06);
  --hp-radius:     14px;
  --hp-radius-sm:  10px;
  --hp-radius-lg:  20px;

  /* Legacy aliases used throughout */
  --hp-black:       var(--hp-bg);
  --hp-blue-light:  var(--hp-accent);
  --hp-blue-sky:    var(--hp-accent);
  --hp-blue-mid:    var(--hp-primary);
  --hp-blue-deep:   var(--hp-text);
  --hp-grey-warm:   var(--hp-bg-warm);
  --hp-white-var:   var(--hp-white);
  --hp-grey:        var(--hp-border);
  --hp-mid:         var(--hp-muted);
  --hp-dark-sec:    var(--hp-white);
  --hp-card:        var(--hp-white);
  --hp-card-border: var(--hp-border);
}

/* ── Body ───────────────────────────────────────────────── */
body { background: var(--hp-bg); color: var(--hp-text); }

/* ── Nav ────────────────────────────────────────────────── */
#main-nav {
  background: rgba(247, 246, 243, 0.85);
  border-bottom: 1px solid var(--hp-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0 48px;
  height: 68px;
  display: flex; align-items: center;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

#main-nav.scrolled {
  background: rgba(247, 246, 243, 0.97);
  box-shadow: var(--hp-shadow-sm);
  border-bottom-color: rgba(111, 143, 179, 0.25);
}

#main-nav .nav-logo-img-wrap {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--hp-border);
  padding: 5px;
}

#main-nav .nav-links {
  list-style: none;
  gap: 32px;
}

#main-nav .nav-links a {
  font-size: 14px;
  color: var(--hp-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

#main-nav .nav-links a:hover { color: var(--hp-text); }
#main-nav .nav-links a.active { color: var(--hp-text); font-weight: 600; }
#main-nav .nav-links a.active::after { background: var(--hp-text); }

#main-nav .nav-cta {
  background: var(--hp-text) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  transition: opacity 0.2s !important;
}

#main-nav .nav-cta:hover { opacity: 0.85 !important; transform: none !important; }
#main-nav .nav-hamburger span { background: var(--hp-text); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--hp-text);
  color: rgba(255,255,255,0.5);
  padding: 48px 48px;
  border-top: none;
}

footer .footer-inner {
  max-width: 100%; margin: 0;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}

footer .footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

footer .footer-brand-text {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.88;
  color: #ffffff;
}

footer .footer-brand-text span { color: var(--hp-primary); }

footer .footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 20px;
  font-weight: 300;
  max-width: 260px;
  line-height: 1.75;
}

footer .footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 12px;
}

footer .footer-col-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hp-primary);
  margin-bottom: 18px;
}

footer .footer-col ul { list-style: none; }
footer .footer-col li { margin-bottom: 10px; }
footer .footer-col a {
  font-size: 13px; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.2s; font-weight: 300;
}
footer .footer-col a:hover { color: #ffffff; }

footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }

footer .footer-socials { display: flex; gap: 24px; list-style: none; }
footer .footer-socials a {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s;
}
footer .footer-socials a:hover { color: #ffffff; }

/* ═══════════════════════════════════════════════════════
   HOME PAGE SECTIONS
   ═══════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────── */
.hp-hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 48px 80px;
  position: relative; overflow: hidden;
  background: var(--hp-bg);
}

.hp-hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(111,143,179,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,143,179,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

.hp-hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(169, 194, 219, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(111, 143, 179, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 20% 70%, rgba(169, 194, 219, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

/* Phone mockup wrapper — desktop (absolute, right side) */
.hp-hero-phone--desktop {
  position: absolute;
  right: clamp(32px, 5vw, 80px);
  top: 54%;
  transform: translateY(-50%);
  opacity: 0;
  animation: hp-phoneReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.6s;
  /* float is added by the combined animation rule at top of file */
}

/* Mobile phone — in-flow, hidden on desktop */
.hp-hero-phone--mobile {
  display: none;
}

@keyframes hp-phoneReveal {
  from { opacity: 0; transform: translateY(calc(-50% + 30px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}
@keyframes hp-phoneReveal-mobile {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero content */
.hp-hero-content { position: relative; z-index: 2; }

.hp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(111, 143, 179, 0.1);
  border: 1px solid rgba(111, 143, 179, 0.2);
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  font-size: 12.5px; font-weight: 500;
  color: var(--hp-secondary);
  margin-bottom: 32px;
}

.hp-eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--hp-primary); border-radius: 50%;
}

.hp-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.07; letter-spacing: -1.5px;
  color: var(--hp-text);
  max-width: 820px; margin-bottom: 24px;
}

.hp-headline .hline {
  display: block;
  transform: translateY(110%);
  animation: hp-slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hp-headline .hline:nth-child(1) { animation-delay: 0.1s; color: var(--hp-text); }
.hp-headline .hline:nth-child(2) { animation-delay: 0.22s; color: var(--hp-text); }
.hp-headline .hline:nth-child(3) { animation-delay: 0.34s; color: var(--hp-text); }
.hp-headline .hline:nth-child(4) {
  animation-delay: 0.46s;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--hp-primary);
  font-size: clamp(36px, 5.5vw, 72px);
}

@keyframes hp-slideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

.hp-hero-sub {
  display: flex; align-items: flex-start; gap: 48px;
  margin-top: 44px;
  opacity: 0;
  animation: hp-fadeIn 0.8s ease forwards;
  animation-delay: 0.9s;
}

@keyframes hp-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hp-hero-desc {
  max-width: 400px; font-size: 15px;
  line-height: 1.65; color: var(--hp-muted); font-weight: 300;
}

.hp-hero-actions { display: flex; gap: 14px; flex-shrink: 0; align-items: center; }

.hp-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hp-text); color: white;
  font-size: 15px; font-weight: 500;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(47, 52, 64, 0.2);
}

.hp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(47, 52, 64, 0.25); color: white; }

.hp-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--hp-muted);
  font-size: 15px; font-weight: 400;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid var(--hp-border);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.hp-btn-ghost:hover {
  color: var(--hp-text);
  border-color: rgba(111, 143, 179, 0.35);
  background: rgba(111, 143, 179, 0.04);
}

/* ── Marquee ─────────────────────────────────────────────── */
.hp-marquee-wrap {
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
  overflow: hidden; padding: 15px 0;
  background: var(--hp-bg-warm);
}

.hp-marquee-track {
  display: flex;
  animation: hp-marquee 35s linear infinite;
  white-space: nowrap; width: max-content;
}

.hp-marquee-item {
  font-family: 'Instrument Serif', serif;
  font-size: 14px; letter-spacing: 0.18em;
  color: var(--hp-muted); padding: 0 36px;
  display: inline-flex; align-items: center; gap: 36px;
}

.hp-marquee-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--hp-primary); display: inline-block; flex-shrink: 0;
}

@keyframes hp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section base ────────────────────────────────────────── */
.hp-section { padding: 100px 48px; }

.hp-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hp-primary); margin-bottom: 12px;
  display: flex; align-items: center; gap: 16px;
}

.hp-section-label::before { display: none; }

/* ── Social proof ────────────────────────────────────────── */
.hp-proof-section {
  background: var(--hp-bg-warm); padding: 80px 0;
  overflow: hidden; border-bottom: 1px solid var(--hp-border);
}

.hp-proof-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--hp-primary);
  margin-bottom: 40px; padding: 0 48px;
  display: flex; align-items: center; gap: 16px;
}

.hp-proof-track {
  display: flex; gap: 20px;
  animation: hp-marqueeProof 45s linear infinite;
  width: max-content; padding: 0 20px;
}

@keyframes hp-marqueeProof {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hp-proof-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 32px 28px; width: 320px; flex-shrink: 0;
  box-shadow: var(--hp-shadow-sm);
}

.hp-proof-stars { color: var(--hp-primary); font-size: 13px; margin-bottom: 14px; letter-spacing: 3px; }

.hp-proof-text {
  font-family: 'DM Serif Display', serif;
  font-size: 15px; font-style: italic; line-height: 1.65;
  color: var(--hp-text); margin-bottom: 16px;
}

.hp-proof-author { font-size: 11px; color: var(--hp-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── How it works ────────────────────────────────────────── */
.hp-how { background: var(--hp-white); }

.hp-how-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 50px); line-height: 1.1;
  letter-spacing: -0.8px; margin-bottom: 64px;
  color: var(--hp-text);
}

.hp-how-headline em {
  font-family: 'DM Serif Display', serif;
  font-style: italic; color: var(--hp-primary);
}

.hp-steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--hp-border);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: var(--hp-shadow-md);
}

.hp-step {
  background: var(--hp-white); padding: 44px 36px;
  position: relative;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hp-step.visible { opacity: 1; transform: translateY(0); }
.hp-step:nth-child(2) { transition-delay: 0.1s; }
.hp-step:nth-child(3) { transition-delay: 0.2s; }

.hp-step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 56px; line-height: 1;
  color: rgba(111, 143, 179, 0.12);
  position: absolute; top: 24px; right: 28px;
  letter-spacing: -2px;
}

.hp-step-icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(169,194,219,0.2), rgba(111,143,179,0.1));
  border: 1px solid rgba(111, 143, 179, 0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 22px;
}

.hp-step-icon-box svg {
  width: 20px; height: 20px;
  stroke: var(--hp-primary); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.hp-step h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px; letter-spacing: -0.3px;
  margin-bottom: 10px; color: var(--hp-text); line-height: 1.2;
}

.hp-step p { font-size: 14px; line-height: 1.65; color: var(--hp-muted); font-weight: 300; }

/* Stats */
.hp-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin-top: 2px;
}

.hp-stat {
  background: var(--hp-white); padding: 40px;
  border-top: 1px solid var(--hp-border);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hp-stat.visible { opacity: 1; transform: translateY(0); }
.hp-stat:nth-child(2) { transition-delay: 0.08s; }
.hp-stat:nth-child(3) { transition-delay: 0.16s; }
.hp-stat:nth-child(4) { transition-delay: 0.24s; }

.hp-stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 52px; line-height: 1;
  color: var(--hp-primary); margin-bottom: 8px;
}

.hp-stat-num span { color: var(--hp-accent); font-size: 32px; }
.hp-stat-label { font-size: 12px; color: var(--hp-muted); font-weight: 300; line-height: 1.5; }

/* ── Statement / Trust (dark section) ───────────────────── */
.hp-statement {
  background: linear-gradient(135deg, #2F3440 0%, #3d4455 100%);
  color: #ffffff;
  padding: 100px 48px; text-align: center; position: relative; overflow: hidden;
}

.hp-statement::before {
  content: 'PIPA';
  position: absolute; font-family: 'Instrument Serif', serif;
  font-size: 38vw; color: rgba(255, 255, 255, 0.03);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; white-space: nowrap;
}

.hp-statement-words {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 50px); line-height: 1.1;
  letter-spacing: -0.8px; position: relative;
}

.hp-word {
  display: inline-block; overflow: hidden;
  vertical-align: top; margin: 0 6px;
}

.hp-word-inner {
  display: block; transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-word.visible .hp-word-inner { transform: translateY(0); }
.hp-word.blue { color: var(--hp-accent); }

.hp-statement-sub {
  font-size: 16px; color: rgba(255,255,255,0.6); margin-top: 16px; font-weight: 300;
  max-width: 480px; margin-left: auto; margin-right: auto;
  line-height: 1.65; position: relative;
}

/* ── Features ────────────────────────────────────────────── */
.hp-features { background: var(--hp-white); }

.hp-features-header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px;
}

.hp-features-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 50px); line-height: 1.1;
  letter-spacing: -0.8px; max-width: 55%;
  color: var(--hp-text);
}

.hp-features-headline em {
  font-family: 'DM Serif Display', serif;
  font-style: italic; color: var(--hp-primary);
}

.hp-features-desc {
  max-width: 260px; font-size: 14px; line-height: 1.65;
  color: var(--hp-muted); font-weight: 300;
}

.hp-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.hp-feature-card {
  background: var(--hp-bg);
  border-radius: var(--hp-radius);
  padding: 36px;
  border: 1px solid transparent;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.hp-feature-card:hover {
  border-color: rgba(111, 143, 179, 0.2);
  box-shadow: var(--hp-shadow-md);
  transform: translateY(-2px);
}
.hp-feature-card.visible { opacity: 1; transform: translateY(0); }
.hp-feature-card:hover { transform: translateY(-2px); }
.hp-feature-card:nth-child(2) { transition-delay: 0.07s; }
.hp-feature-card:nth-child(3) { transition-delay: 0.14s; }
.hp-feature-card:nth-child(4) { transition-delay: 0.21s; }
.hp-feature-card:nth-child(5) { transition-delay: 0.28s; }

.hp-feature-icon-box {
  font-size: 28px; margin-bottom: 16px; display: block;
}

.hp-feature-icon-box svg {
  width: 20px; height: 20px;
  stroke: var(--hp-primary); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.hp-feature-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px; letter-spacing: -0.3px;
  margin-bottom: 8px; color: var(--hp-text);
}

.hp-feature-card p { font-size: 14px; line-height: 1.65; color: var(--hp-muted); font-weight: 300; }

/* ── Pricing ─────────────────────────────────────────────── */
.hp-pricing { background: var(--hp-bg); }

.hp-pricing-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 4vw, 50px); line-height: 1.1;
  letter-spacing: -0.8px; margin-bottom: 20px;
  color: var(--hp-text); text-align: center;
}

.hp-pricing-sub {
  font-size: 16px; color: var(--hp-muted);
  font-weight: 300; margin-bottom: 64px;
  text-align: center;
}

.hp-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.hp-price-card {
  background: var(--hp-white); padding: 40px 36px;
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow-sm);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
  color: var(--hp-text);
}

.hp-price-card:hover { box-shadow: var(--hp-shadow-lg); }
.hp-price-card.visible { opacity: 1; transform: translateY(0); }
.hp-price-card:nth-child(2) { transition-delay: 0.1s; }
.hp-price-card:nth-child(3) { transition-delay: 0.2s; }

.hp-price-card.featured {
  border: 2px solid var(--hp-primary);
  box-shadow: 0 8px 32px rgba(111, 143, 179, 0.2);
  position: relative;
}

.hp-price-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  background: var(--hp-primary); color: white;
  padding: 4px 12px; border-radius: 999px; display: inline-block;
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  margin-bottom: 0;
}

.hp-price-name {
  font-size: 12px; font-weight: 500; color: var(--hp-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.hp-price-amount {
  font-family: 'Instrument Serif', serif;
  font-size: 48px; line-height: 1; margin-bottom: 4px;
  display: flex; align-items: flex-start; gap: 0;
  color: var(--hp-text); letter-spacing: -1.5px;
}

.hp-price-currency { font-size: 22px; vertical-align: super; margin-top: 4px; }

.hp-price-period {
  font-size: 13px; color: var(--hp-muted); margin-bottom: 24px;
  font-weight: 300;
}

.hp-price-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }

.hp-price-features li {
  font-size: 14px;
  color: var(--hp-text);
  display: flex; align-items: center; gap: 10px; font-weight: 400;
  line-height: 1.4;
}

.hp-price-features li::before {
  content: '';
  width: 20px; height: 20px; flex-shrink: 0;
  background: rgba(111, 143, 179, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M1 4.5L4 7.5L10 1.5' stroke='%236F8FB3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/11px no-repeat;
  border-radius: 50%;
  border: 1px solid rgba(111, 143, 179, 0.25);
}

.hp-price-cta {
  display: block; text-align: center;
  padding: 13px 0; font-size: 14.5px; font-weight: 500;
  text-decoration: none; border-radius: 10px;
  transition: all 0.2s; letter-spacing: 0;
  text-transform: none;
}

.hp-price-card:not(.featured) .hp-price-cta {
  border: 1.5px solid var(--hp-border); color: var(--hp-text);
}

.hp-price-card:not(.featured) .hp-price-cta:hover {
  border-color: var(--hp-primary); color: var(--hp-primary);
}

.hp-price-card.featured .hp-price-cta {
  background: var(--hp-text); color: white;
  box-shadow: 0 4px 12px rgba(47, 52, 64, 0.18);
}

.hp-price-card.featured .hp-price-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── CTA ─────────────────────────────────────────────────── */
.hp-cta {
  background: var(--hp-bg);
  padding: 120px 48px; text-align: center; position: relative; overflow: hidden;
}

.hp-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(169, 194, 219, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hp-cta-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.1;
  letter-spacing: -1px; position: relative;
  color: var(--hp-text); margin-bottom: 20px;
}

.hp-cta-headline em {
  font-family: 'DM Serif Display', serif;
  font-style: italic; color: var(--hp-primary);
}

.hp-cta-sub {
  font-size: 16px; color: var(--hp-muted);
  margin: 0 auto 36px; max-width: 380px;
  line-height: 1.65; font-weight: 300; position: relative;
}

.hp-cta-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; position: relative;
}

/* ── Reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  #main-nav { padding: 0 24px; }
  .hp-hero { padding: 0 24px 60px; }
  .hp-hero-phone--desktop { display: none; }
  .hp-hero-phone--mobile {
    display: flex;
    justify-content: center;
    margin: 32px auto 8px;
    opacity: 0;
    animation: hp-phoneReveal-mobile 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards,
               hp-float-mobile 5s ease-in-out 1.5s infinite;
  }
  .hp-hero-phone--mobile .hp-phone-img {
    width: 72vw;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(0,0,0,0.15));
  }
  .hp-headline { max-width: 100%; }
  .hp-hero-sub { flex-direction: column; gap: 24px; }
  .hp-section { padding: 80px 24px; }
  .hp-proof-label { padding: 0 24px; }
  .hp-steps-grid { grid-template-columns: 1fr; gap: 1px; }
  .hp-features-grid { grid-template-columns: 1fr; }
  .hp-pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .hp-features-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hp-features-headline { max-width: 100%; }
  .hp-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hp-statement { padding: 80px 24px; }
  .hp-cta { padding: 80px 24px; }
  footer { padding: 48px 24px; }
  footer .footer-top { grid-template-columns: 1fr; gap: 40px; }
  footer .footer-links { grid-template-columns: repeat(2, 1fr); }
  .hp-school-check { padding: 60px 24px; }
  .hp-school-check-title { font-size: 28px; }
}

/* ── School selector section ──────────────────────────── */
.hp-school-check {
  padding: 80px 40px;
  background: var(--hp-bg-warm);
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
}
.hp-school-check-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.hp-school-check-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--hp-text);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.hp-school-check-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--hp-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}
.hp-school-search-wrap { position: relative; text-align: left; }
.hp-school-check-input {
  width: 100%;
  padding: 16px 44px 16px 20px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  border: 1.5px solid var(--hp-border);
  border-radius: 12px;
  background: var(--hp-card);
  color: var(--hp-text);
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.hp-school-check-input:focus {
  border-color: var(--hp-primary);
  box-shadow: 0 0 0 3px rgba(111, 143, 179, 0.18);
}
.hp-school-check-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 1rem; color: var(--hp-muted);
  cursor: pointer; padding: 2px 4px;
}
.hp-school-check-dd {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--hp-card);
  border: 1.5px solid var(--hp-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 40;
  overflow: hidden;
}
.hp-school-check-dd-item {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 12px 18px;
  font-size: 14px; color: var(--hp-text);
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  border-bottom: 1px solid var(--hp-border);
  transition: background .15s;
}
.hp-school-check-dd-item:last-child { border-bottom: none; }
.hp-school-check-dd-item:hover { background: var(--hp-bg-warm); }
.hp-school-check-dd-item .pc {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--hp-text); border-radius: 100px; padding: 2px 8px;
  flex-shrink: 0;
}
.hp-school-check-result {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}
.hp-school-check-result.enrolled {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #15803d;
}
.hp-school-check-result.not-enrolled {
  background: var(--hp-card);
  border: 1.5px solid var(--hp-border);
  color: var(--hp-text);
}
.hp-school-check-result .result-title {
  font-weight: 700; margin-bottom: 6px; display: block;
}
.hp-school-check-result .result-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
.hp-school-result-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--hp-text); color: #fff;
  font-size: 13px; font-weight: 500; padding: 10px 20px;
  border-radius: 8px; text-decoration: none; transition: opacity .2s;
}
.hp-school-result-btn-primary:hover { opacity: .85; }
.hp-school-result-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--hp-text);
  font-size: 13px; font-weight: 500; padding: 10px 20px;
  border-radius: 8px; border: 1.5px solid var(--hp-border);
  text-decoration: none; transition: border-color .2s;
}
.hp-school-result-btn-ghost:hover { border-color: var(--hp-text); }

@media (max-width: 768px) {
  #main-nav {
    background: rgba(247,246,243,0.97) !important;
    padding: 0 20px !important;
    height: 60px !important;
    /* Remove backdrop-filter — it creates a new containing block for position:fixed children,
       trapping the full-screen nav overlay inside the 60px nav bar */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #main-nav .nav-links {
    background: var(--cream) !important;
  }
  #main-nav .nav-links a { color: var(--hp-text) !important; }
  #main-nav .nav-hamburger span { background: var(--hp-text) !important; }
  #main-nav .nav-cta { display: none; }
}

@media (max-width: 600px) {
  .hp-statement { padding: 72px 20px; }
  .hp-section { padding: 60px 20px; }
  .hp-cta { padding: 72px 20px; }
  .hp-stats-bar { grid-template-columns: 1fr; }
  .hp-cta-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hp-btn-primary,
  .hp-btn-ghost { text-align: center; justify-content: center; }
  footer { padding: 40px 20px; }
  footer .footer-links { grid-template-columns: 1fr; }
  footer .footer-top { gap: 28px; }
  .hp-step { padding: 32px 20px; }
  .hp-feature-card { padding: 28px 20px; }
  .hp-price-card { padding: 32px 20px; }
  .hp-stat { padding: 24px 20px; }
  .hp-stat-num { font-size: 40px; }
}

/* "See it in action" nudge on how-it-works step 2 */
.hp-step-try-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,.3);
  transition: text-decoration-color .15s;
}
.hp-step-try-link:hover {
  text-decoration-color: #111;
}
