/* ================================================================
   GetPipsy — Home Premium 3D SaaS Design Layer
   Loads last — overrides home-shell, home-sections, styles
   ================================================================ */

/* ── @property (animated gradient border angle) ─────────────────── */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes pipsyGradFlow {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes pipsyOrbFloat {
  0%, 100% { transform: scale(1) translate(0px,   0px); }
  33%       { transform: scale(1.07) translate(22px, -18px); }
  66%       { transform: scale(0.96) translate(-12px, 22px); }
}

@keyframes pipsyOrbFloat2 {
  0%, 100% { transform: scale(1) translate(0px,   0px); }
  40%       { transform: scale(1.04) translate(-28px, 16px); }
  75%       { transform: scale(0.97) translate( 18px,-22px); }
}

@keyframes pipsyOrbFloat3 {
  0%, 100% { transform: translate(-50%, 0px)   scale(1); }
  50%       { transform: translate(-50%, -28px) scale(1.05); }
}

@keyframes pipsyStatFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

@keyframes pipsyShimmer {
  from { transform: translateX(-120%) skewX(-15deg); }
  to   { transform: translateX(210%)  skewX(-15deg); }
}

@keyframes pipsyBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(99,102,241,0),   0 2px 12px rgba(99,102,241,0.20); }
  50%       { box-shadow: 0 0 0 5px rgba(99,102,241,0.12), 0 2px 22px rgba(99,102,241,0.32); }
}

@keyframes pipsyRevealUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   BODY / BACKGROUND
   ================================================================ */

body.home-page {
  background:
    radial-gradient(ellipse 92% 72% at 10% -15%, rgba(56,189,248,0.22) 0%, transparent 56%),
    radial-gradient(ellipse 72% 62% at 92% -8%, rgba(99,102,241,0.2) 0%, transparent 52%),
    radial-gradient(ellipse 72% 56% at 50% 118%, rgba(167,139,250,0.14) 0%, transparent 50%),
    radial-gradient(ellipse 52% 42% at 5% 70%, rgba(125,211,252,0.08) 0%, transparent 52%),
    linear-gradient(175deg, #020510 0%, #040a18 30%, #050c18 65%, #030810 100%);
}

body.home-page::before {
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 130% 55% at 50% 0%, black 30%, transparent 75%);
}

/* ================================================================
   HERO BACKGROUND ORBS
   ================================================================ */

.hero {
  position: relative;
  overflow: hidden;
}

.hero > .container.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  display: none;
}

.hero-bg-orb--1 {
  width:  min(660px, 65vw);
  height: min(660px, 65vw);
  top:  -28%;
  left:  -8%;
  background: radial-gradient(circle, rgba(99,102,241,0.20) 0%, transparent 65%);
  filter: blur(72px);
  animation: pipsyOrbFloat 18s ease-in-out infinite;
}

.hero-bg-orb--2 {
  width:  min(560px, 55vw);
  height: min(560px, 55vw);
  top:  -18%;
  right: -6%;
  background: radial-gradient(circle, rgba(139,92,246,0.17) 0%, transparent 65%);
  filter: blur(80px);
  animation: pipsyOrbFloat2 22s ease-in-out infinite;
}

.hero-bg-orb--3 {
  width:  min(380px, 38vw);
  height: min(380px, 38vw);
  bottom: -2%;
  left: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.1), rgba(139,92,246,0.1) 45%, transparent 65%);
  filter: blur(60px);
  animation: pipsyOrbFloat3 25s ease-in-out infinite;
}

/* ================================================================
   HERO ANNOUNCEMENT BADGE
   ================================================================ */

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.42rem 1rem 0.42rem 0.55rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 14, 30, 0.92), rgba(7, 11, 24, 0.86)) padding-box,
    linear-gradient(140deg, rgba(56,189,248,0.58), rgba(99,102,241,0.56), rgba(167,139,250,0.5)) border-box;
  border: 1px solid transparent;
  color: #dbeafe;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 10px 28px rgba(2, 6, 23, 0.34),
    0 0 24px rgba(99, 102, 241, 0.18);
  cursor: default;
  user-select: none;
}

.home-hero-badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(140deg, #38bdf8, #818cf8 55%, #a78bfa);
  flex-shrink: 0;
  box-shadow:
    0 0 0 3px rgba(129,140,248,0.2),
    0 0 14px rgba(56,189,248,0.42);
}

.home-hero-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 10%, rgba(255,255,255,0.18) 48%, transparent 85%);
  transform: translateX(-130%);
  animation: pipsyHeroBadgeSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pipsyHeroBadgeSweep {
  0%, 55%, 100% { transform: translateX(-130%); opacity: 0; }
  65% { opacity: 0.5; }
  80% { transform: translateX(130%); opacity: 0.28; }
}

/* ================================================================
   HERO TYPOGRAPHY
   ================================================================ */

.pipsy-hero__title--home {
  font-size: clamp(3.3rem, 8.5vw, 6rem);
  line-height: 0.90;
  letter-spacing: -0.08em;
}

.pipsy-hero__brand {
  background: linear-gradient(145deg, #7dd3fc 0%, #38bdf8 28%, #818cf8 62%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 0.3rem;
  filter: saturate(1.08);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 2px 0 rgba(255, 255, 255, 0.18),
    0 8px 16px rgba(56, 189, 248, 0.24),
    0 18px 34px rgba(99, 102, 241, 0.3),
    0 30px 58px rgba(2, 6, 23, 0.52);
  transform: perspective(900px) rotateX(1.5deg) rotateY(-16deg) rotateZ(-0.6deg) translateZ(0);
  transform-origin: left center;
}

.pipsy-hero__title--home:hover .pipsy-hero__brand {
  background: linear-gradient(145deg, #7dd3fc 0%, #38bdf8 28%, #818cf8 62%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 2px 0 rgba(255, 255, 255, 0.18),
    0 8px 16px rgba(56, 189, 248, 0.24),
    0 18px 34px rgba(99, 102, 241, 0.3),
    0 30px 58px rgba(2, 6, 23, 0.52);
  transform: perspective(900px) rotateX(1.5deg) rotateY(-16deg) rotateZ(-0.6deg) translateZ(0);
}

.pipsy-hero__subtitle--landing {
  font-size: clamp(1.1rem, 2.3vw, 1.3rem);
  color: #c4cfe0;
  line-height: 1.72;
}

.pipsy-hero__text {
  color: #7c8fa6;
  font-size: 0.95rem;
  line-height: 1.82;
}

/* ================================================================
   BUTTONS — global shimmer + primary glow + secondary glass
   ================================================================ */

.btn {
  position: relative;
  overflow: hidden;
  transition:
    transform   0.22s cubic-bezier(0.23,1,0.32,1),
    box-shadow  0.22s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.13) 40%,
    rgba(255,255,255,0.20) 50%,
    rgba(255,255,255,0.13) 60%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-15deg);
  pointer-events: none;
}

.btn:hover::after {
  animation: pipsyShimmer 0.55s ease forwards;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-color: rgba(99,102,241,0.55);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.35) inset,
    0 8px 28px rgba(99,102,241,0.35),
    0 2px 6px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5955eb 0%, #8b5cf6 100%);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.55) inset,
    0 16px 44px rgba(99,102,241,0.45),
    0 4px 12px rgba(0,0,0,0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #d1d9f0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  color: #e8edf8;
}

/* ================================================================
   NAV LOGIN BUTTON
   ================================================================ */

.pipsy-login-btn.btn-primary {
  font-size: 0.9rem;
  min-height: 2.6rem;
  padding: 0 1.15rem;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.3) inset,
    0 6px 20px rgba(99,102,241,0.25);
}

.pipsy-login-btn.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.55) inset,
    0 12px 32px rgba(99,102,241,0.38);
}

/* ================================================================
   STATS CARDS
   ================================================================ */

.stats {
  gap: 0.9rem;
}

.stat {
  background:
    linear-gradient(160deg, rgba(12,18,36,0.93), rgba(8,13,24,0.90)) padding-box,
    linear-gradient(135deg, rgba(99,102,241,0.40), rgba(139,92,246,0.18) 50%, rgba(34,211,238,0.22)) border-box;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 20px 50px rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform   0.30s cubic-bezier(0.23,1,0.32,1),
    box-shadow  0.30s ease;
}

.stat::after {
  background: radial-gradient(circle, rgba(99,102,241,0.28), transparent 70%);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 32px 64px rgba(0,0,0,0.45),
    0 0 30px rgba(99,102,241,0.14);
}

.stat:nth-child(1) { animation: pipsyStatFloat 7s ease-in-out 0.0s infinite; }
.stat:nth-child(2) { animation: pipsyStatFloat 7s ease-in-out 2.3s infinite; }
.stat:nth-child(3) { animation: pipsyStatFloat 7s ease-in-out 4.6s infinite; }

.stat-count {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  background: linear-gradient(135deg, #e2e8f0, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.06em;
}

.stat-icon-svg {
  background: rgba(99,102,241,0.16);
  border: 1px solid rgba(99,102,241,0.28);
  box-shadow: 0 0 20px rgba(99,102,241,0.14);
  color: #a5b4fc;
}

/* ================================================================
   HERO 3D PREVIEW CARD
   ================================================================ */

.visual-card.home-preview-shell {
  --tilt-x: 1.2deg;
  --tilt-y: -1.4deg;
  --tilt-z: 0px;
  transform: perspective(1250px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-z));
  transform-style: preserve-3d;
  transition:
    transform  0.46s cubic-bezier(0.22,0.8,0.25,1),
    box-shadow 0.52s ease;
  background:
    radial-gradient(circle at 15% 20%, rgba(56,189,248,0.10), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(99,102,241,0.09), transparent 40%),
    linear-gradient(rgba(9,15,30,0.98), rgba(5,9,20,0.98)) padding-box,
    linear-gradient(135deg, rgba(99,102,241,0.42), rgba(139,92,246,0.22) 50%, rgba(56,189,248,0.30)) border-box;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 55px 105px rgba(0,0,0,0.65),
    0 0  65px rgba(99,102,241,0.07),
    32px 48px 75px rgba(0,0,0,0.40);
}

.visual-card.home-preview-shell:hover {
  transform: perspective(1250px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 62px 108px rgba(0,0,0,0.58),
    0 0  70px rgba(99,102,241,0.09),
    18px 30px 52px rgba(0,0,0,0.28);
}

.home-preview-chrome {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-preview-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(rgba(10, 16, 30, 0.82), rgba(10, 16, 30, 0.82)) padding-box,
    linear-gradient(135deg, rgba(56,189,248,0.35), rgba(99,102,241,0.22)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 28px rgba(2, 6, 18, 0.34);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Premium carousel dots next to GetPipsy Insight */
.screen-pagination {
  padding: 0.26rem 0.34rem;
  border-radius: 999px;
  background: rgba(10, 16, 30, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 10px 24px rgba(2, 6, 18, 0.34);
  gap: 0.4rem;
}

.carousel-dot {
  position: relative;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background:
    radial-gradient(circle at 35% 30%, rgba(226,232,240,0.8), rgba(148,163,184,0.2) 55%),
    rgba(148, 163, 184, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 0 0 rgba(56, 189, 248, 0);
  transition:
    width 0.28s cubic-bezier(0.23,1,0.32,1),
    transform 0.28s cubic-bezier(0.23,1,0.32,1),
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.carousel-dot:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(125, 211, 252, 0.58);
}

.carousel-dot:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 0 2px rgba(56, 189, 248, 0.45);
}

.carousel-dot.is-active {
  width: 1.55rem;
  border-color: rgba(56, 189, 248, 0.78);
  background:
    linear-gradient(90deg, rgba(34,211,238,0.95), rgba(99,102,241,0.92)),
    rgba(56,189,248,0.25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 0 18px rgba(56,189,248,0.42),
    0 6px 14px rgba(56,189,248,0.22);
  transform: translateY(-1px);
}

/* ================================================================
   HOME MAIN SPACING
   ================================================================ */

.home-main {
  gap: clamp(4.5rem, 7.5vw, 6.5rem);
  padding-bottom: clamp(5rem, 9vw, 7.5rem);
}

/* ── Hero copy grid spacing ───────────────────────────────────── */
.hero-copy {
  gap: 1.35rem;
}

/* ── Subtle top separator for non-hero sections ──────────────── */
.section::before {
  content: "";
  display: block;
  width: min(480px, 60%);
  height: 1px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  background: linear-gradient(90deg,
    transparent,
    rgba(99,102,241,0.25) 30%,
    rgba(139,92,246,0.20) 50%,
    rgba(99,102,241,0.25) 70%,
    transparent
  );
}

/* First section after hero doesn't need the line */
.home-trial-band::before {
  display: none;
}

/* ================================================================
   SECTION HEADINGS — gradient text
   ================================================================ */

.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  background: linear-gradient(140deg, #f1f5f9 30%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-trust-heading {
  font-family: "Plus Jakarta Sans", var(--pipsy-font-sans, "Inter", system-ui, sans-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 800;
  background: linear-gradient(140deg, #ffffff 10%, #dbeafe 40%, #93c5fd 62%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 8px 24px rgba(56, 189, 248, 0.24),
    0 12px 34px rgba(99, 102, 241, 0.20);
  display: inline-block;
  margin-bottom: 0;
}

.home-reviews-title {
  background: linear-gradient(140deg, #f1f5f9 25%, #fde68a 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================================================================
   SOLUTIONS FEATURE CARDS
   ================================================================ */

/* Per-card accent colour (r,g,b) */
.cards .card:nth-child(1) { --ca: 99,102,241; }   /* indigo  */
.cards .card:nth-child(2) { --ca: 139,92,246; }   /* violet  */
.cards .card:nth-child(3) { --ca: 34,211,238; }   /* cyan    */
.cards .card:nth-child(4) { --ca: 129,140,248; }  /* indigo 2 */
.cards .card:nth-child(5) { --ca: 168,85,247; }   /* purple   */
.cards .card:nth-child(6) { --ca: 45,212,191; }   /* cyan-teal */

/* 3-column grid */
.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  padding: 1.7rem;
  background:
    linear-gradient(160deg, rgba(12,18,36,0.96), rgba(8,12,24,0.92)) padding-box,
    linear-gradient(135deg,
      rgba(var(--ca, 99,102,241), 0.38),
      transparent 55%,
      rgba(var(--ca, 99,102,241), 0.14)
    ) border-box;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 50px rgba(0,0,0,0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform   0.30s cubic-bezier(0.23,1,0.32,1),
    box-shadow  0.30s ease;
}

/* Hide old bottom-right glow blob (::before) */
.card::before {
  display: none !important;
}

/* Remove drifting glow blob for cleaner premium look */
.card::after {
  content: none;
}

.card:hover {
  transform: translateY(-7px) scale(1.008);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 36px 72px rgba(0,0,0,0.45),
    0 0   24px rgba(var(--ca, 99,102,241), 0.10);
  background:
    linear-gradient(160deg, rgba(14,22,42,0.97), rgba(10,15,28,0.94)) padding-box,
    linear-gradient(135deg,
      rgba(var(--ca, 99,102,241), 0.62),
      rgba(var(--ca, 99,102,241), 0.26) 55%,
      rgba(var(--ca, 99,102,241), 0.28)
    ) border-box;
}

.icon {
  width: 3.2rem;
  height: 3.2rem;
  background: linear-gradient(135deg,
    rgba(var(--ca, 99,102,241), 0.22),
    rgba(var(--ca, 99,102,241), 0.10)
  );
  border: 1px solid rgba(var(--ca, 99,102,241), 0.28);
  border-radius: 1.05rem;
  box-shadow:
    0 0 0 1px rgba(var(--ca, 99,102,241), 0.10) inset,
    0 8px 22px rgba(var(--ca, 99,102,241), 0.15);
  color: rgba(var(--ca, 180,190,255), 0.92);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover .icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow:
    0 0 0 1px rgba(var(--ca, 99,102,241), 0.22) inset,
    0 12px 32px rgba(var(--ca, 99,102,241), 0.28);
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #e8eef8;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card p {
  color: #7a8dab;
  font-size: 0.94rem;
  line-height: 1.72;
}

/* ── Card plan tags ──────────────────────────────────────────── */
.card-plan-tag {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.6rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background:
    linear-gradient(rgba(10,14,28,0.9), rgba(10,14,28,0.9)) padding-box,
    linear-gradient(135deg, rgba(99,102,241,0.7), rgba(139,92,246,0.5)) border-box;
  border: 1px solid transparent;
  color: #a5b4fc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-plan-tag--pro {
  background:
    linear-gradient(rgba(10,14,28,0.9), rgba(10,14,28,0.9)) padding-box,
    linear-gradient(135deg, rgba(245,158,11,0.7), rgba(249,115,22,0.5)) border-box;
  color: #fcd34d;
}

.card-plan-tag--ultimate {
  background:
    linear-gradient(rgba(10,14,28,0.9), rgba(10,14,28,0.9)) padding-box,
    linear-gradient(135deg, rgba(168,85,247,0.7), rgba(139,92,246,0.5)) border-box;
  color: #d8b4fe;
}

/* ================================================================
   TRUST SECTION
   ================================================================ */

.section-home-trust .container {
  gap: 0.85rem;
  margin-top: -0.45rem;
}

.trust-pillars {
  gap: 1.1rem;
}

.trust-pillar {
  position: relative;
  overflow: hidden;
  padding: 1.65rem;
  background:
    linear-gradient(145deg, rgba(12,18,36,0.94), rgba(8,13,24,0.90)) padding-box,
    linear-gradient(135deg, rgba(99,102,241,0.28), transparent 55%, rgba(34,211,238,0.15)) border-box;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 16px 42px rgba(0,0,0,0.28);
  transition: transform 0.28s cubic-bezier(0.23,1,0.32,1), box-shadow 0.28s ease;
}

.trust-pillar::after {
  content: "";
  position: absolute;
  inset: -35% auto auto -20%;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 68%);
  opacity: 0.55;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.trust-pillar:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 26px 58px rgba(0,0,0,0.40),
    0 0   26px rgba(99,102,241,0.10);
}

.trust-pillar:hover::after {
  opacity: 0.86;
  transform: translate3d(6px, -4px, 0) scale(1.05);
}

.trust-pillar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dce8f8;
  letter-spacing: -0.02em;
}

.trust-band {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    linear-gradient(165deg, rgba(9, 18, 36, 0.72), rgba(6, 14, 30, 0.62));
  border: 1px solid rgba(129, 140, 248, 0.16);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.14),
    0 18px 34px rgba(2, 6, 23, 0.26);
  margin-top: 0.55rem;
}

.trust-chip {
  background:
    linear-gradient(150deg, rgba(99,102,241,0.13), rgba(129,140,248,0.08));
  border-color: rgba(129,140,248,0.28);
  color: #a5b4fc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.trust-chip:hover {
  background:
    linear-gradient(150deg, rgba(129,140,248,0.18), rgba(167,139,250,0.12));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.13),
    0 0 18px rgba(99,102,241,0.22);
  transform: translateY(-2px);
}

/* ================================================================
   TRIAL BAND
   ================================================================ */

.home-trial-card {
  padding: 2.6rem;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(99,102,241,0.16), transparent 52%),
    radial-gradient(ellipse at 20% 65%, rgba(56,189,248,0.10), transparent 50%),
    linear-gradient(145deg, rgba(14,20,38,0.97), rgba(9,14,25,0.95)) padding-box,
    linear-gradient(135deg,
      rgba(56,189,248,0.46),
      rgba(99,102,241,0.48) 50%,
      rgba(139,92,246,0.42)
    ) border-box;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 44px 88px rgba(0,0,0,0.42),
    0 0   65px rgba(99,102,241,0.08);
}

.home-trial-card__badge {
  background:
    linear-gradient(rgba(10,14,28,0.85), rgba(10,14,28,0.85)) padding-box,
    linear-gradient(135deg, rgba(249,115,22,0.72), rgba(99,102,241,0.55)) border-box;
  border: 1px solid transparent;
  color: #fdba74;
  letter-spacing: 0.10em;
}

.home-trial-card__title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.02;
  max-width: 17ch;
  background: linear-gradient(135deg, #f1f5f9 30%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-trial-card__bullets li::before {
  background: linear-gradient(135deg, #f97316, #6366f1);
  box-shadow: 0 0 8px rgba(99,102,241,0.35);
}

.home-trial-card__cta.btn-primary {
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.4) inset,
    0 8px 28px rgba(99,102,241,0.36),
    0 0   40px rgba(99,102,241,0.12);
}

/* ================================================================
   REVIEWS SECTION
   ================================================================ */

.home-reviews-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: stretch;
}

.home-reviews-hero {
  background:
    linear-gradient(145deg, rgba(12,18,36,0.94), rgba(8,13,24,0.90)) padding-box,
    linear-gradient(135deg, rgba(251,191,36,0.38), transparent 50%, rgba(99,102,241,0.22)) border-box;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 20px 52px rgba(0,0,0,0.30);
  border-radius: 1.35rem;
  padding: 1.8rem;
}

.home-reviews-score-num {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pipsy-star-cell__fill {
  color: #f59e0b;
  text-shadow: 0 0 14px rgba(245,158,11,0.55);
}

.home-reviews-testimonials {
  display: grid;
  gap: 0.8rem;
}

.home-review-quote {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 24px rgba(2, 6, 18, 0.22);
}

.home-review-quote__text {
  margin: 0;
  color: rgba(226,232,240,0.90);
  font-size: 0.95rem;
  line-height: 1.66;
  letter-spacing: -0.004em;
}

.home-review-quote__author {
  margin: 0.7rem 0 0;
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

/* ================================================================
   ABOUT / BRAND SECTION
   ================================================================ */

.about-main {
  padding: 1.9rem;
  background:
    linear-gradient(145deg, rgba(12,18,36,0.94), rgba(8,13,24,0.90)) padding-box,
    linear-gradient(135deg, rgba(99,102,241,0.32), transparent 60%) border-box;
  border: 1px solid transparent;
}

.about-side {
  padding: 1.9rem;
  background:
    linear-gradient(145deg, rgba(12,18,36,0.94), rgba(8,13,24,0.90)) padding-box,
    linear-gradient(135deg, rgba(139,92,246,0.32), transparent 60%) border-box;
  border: 1px solid transparent;
}

.about-main h2 {
  font-family: "Plus Jakarta Sans", var(--pipsy-font-sans, "Inter", system-ui, sans-serif);
  font-size: clamp(1.85rem, 3.8vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, #f1f5f9 30%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */

.home-faq-list {
  gap: 0.75rem;
}

.home-faq-list details {
  background:
    linear-gradient(145deg, rgba(10,16,31,0.92), rgba(7,11,22,0.87)) padding-box,
    linear-gradient(135deg, rgba(99,102,241,0.22), transparent 60%) border-box;
  border: 1px solid transparent;
  border-radius: 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 24px rgba(0,0,0,0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-faq-list details:hover {
  transform: translateX(3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 36px rgba(0,0,0,0.32),
    -3px 0 0 rgba(99,102,241,0.45);
}

.home-faq-list details[open] {
  background:
    linear-gradient(145deg, rgba(12,18,36,0.96), rgba(8,12,24,0.93)) padding-box,
    linear-gradient(135deg, rgba(99,102,241,0.50), rgba(139,92,246,0.22) 60%) border-box;
}

/* Summary: show + / − toggle via ::after */
.home-faq-list summary {
  font-size: 1.02rem;
  font-weight: 700;
  color: #dce8f8;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.28);
  color: #a5b4fc;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease;
}

.home-faq-list details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: rgba(99,102,241,0.28);
}

.home-faq-answer {
  color: #7a8dab;
  font-size: 0.97rem;
  line-height: 1.78;
  padding-top: 0.85rem;
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */

.contact-box {
  padding: clamp(2.6rem, 5.5vw, 4.5rem);
  background:
    radial-gradient(ellipse at 30% 65%, rgba(56,189,248,0.13), transparent 54%),
    radial-gradient(ellipse at 70% 30%, rgba(139,92,246,0.11), transparent 52%),
    linear-gradient(145deg, rgba(12,18,36,0.96), rgba(8,13,24,0.93)) padding-box,
    linear-gradient(135deg,
      rgba(56,189,248,0.46),
      rgba(99,102,241,0.42) 52%,
      rgba(139,92,246,0.36)
    ) border-box;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 44px 88px rgba(0,0,0,0.42),
    0 0   65px rgba(99,102,241,0.07);
}

/* Remove old orange blob ::before on contact */
.contact-box::before {
  display: none !important;
}

.contact-box h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  letter-spacing: -0.055em;
  background: linear-gradient(135deg, #f1f5f9 15%, #a5b4fc 55%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
}

.contact-email {
  background:
    linear-gradient(rgba(10,15,30,0.82), rgba(10,15,30,0.82)) padding-box,
    linear-gradient(135deg, rgba(56,189,248,0.65), rgba(99,102,241,0.52)) border-box;
  border: 1px solid transparent;
  color: #7dd3fc;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  min-height: 3.2rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(56,189,248,0.24);
  color: #bae6fd;
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  border-top: 1px solid rgba(99,102,241,0.10);
  background: linear-gradient(180deg, transparent, rgba(3,6,16,0.55));
}

/* ================================================================
   RESPONSIVE OVERRIDES
   ================================================================ */

@media (max-width: 920px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-card.home-preview-shell {
    transform: none;
  }

  .home-trial-card {
    padding: 1.6rem;
  }

  .contact-box {
    padding: 2rem 1.4rem;
  }

  .home-reviews-layout {
    grid-template-columns: 1fr;
  }

  .home-reviews-testimonials {
    gap: 0.7rem;
  }
}

/* Phone + tablet (≤1024px): drop continuous hero motion; same breakpoint as home-ui lite carousel */
@media (max-width: 1024px) {
  body.home-page #heroCarousel {
    touch-action: pan-y;
  }

  body.home-page .home-hero-badge::after {
    animation: none !important;
  }

  body.home-page .stat:nth-child(1),
  body.home-page .stat:nth-child(2),
  body.home-page .stat:nth-child(3) {
    animation: none !important;
  }

  body.home-page .hero-bg-orb--1,
  body.home-page .hero-bg-orb--2,
  body.home-page .hero-bg-orb--3 {
    display: none !important;
  }

  body.home-page .pipsy-hero__brand,
  body.home-page .pipsy-hero__title--home:hover .pipsy-hero__brand {
    transform: none !important;
  }

  body.home-page .visual-card.home-preview-shell {
    transform: none !important;
    transition: box-shadow 0.3s ease !important;
  }
}

@media (max-width: 480px) {
  .stat:nth-child(1),
  .stat:nth-child(2),
  .stat:nth-child(3) {
    animation: none;
  }

  .hero-bg-orb--1,
  .hero-bg-orb--2,
  .hero-bg-orb--3 {
    display: none;
  }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  .pipsy-hero__brand,
  .home-hero-badge,
  .stat:nth-child(1),
  .stat:nth-child(2),
  .stat:nth-child(3),
  .hero-bg-orb--1,
  .hero-bg-orb--2,
  .hero-bg-orb--3 {
    animation: none !important;
  }

  .visual-card.home-preview-shell {
    transform: none !important;
    transition: none !important;
  }

  .btn:hover::after {
    animation: none !important;
  }
}

/* ================================================================
   HERO CAROUSEL — Premium Slide Redesigns (2026)
   ================================================================ */

/* ── theme-analytics (Slide 2 — Visual Analytics) ─────────────── */
.screen-slide.theme-analytics {
  --slide-a: 52, 211, 153;
  --slide-b: 6, 182, 212;
}

/* Premium typography for main slide texts */
.screen-slide .screen-title {
  max-width: 17ch;
  font-family: "Plus Jakarta Sans", var(--pipsy-font-sans, sans-serif);
  font-size: clamp(1.42rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 850;
  color: #f8fafc;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.08),
    0 14px 34px rgba(2, 6, 18, 0.38);
}

.screen-slide.theme-discipline .screen-title {
  background: linear-gradient(135deg, #e0f2fe 0%, #93c5fd 46%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.screen-slide.theme-analytics .screen-title {
  background: linear-gradient(135deg, #d1fae5 0%, #67e8f9 48%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.screen-slide.theme-prop .screen-title {
  background: linear-gradient(135deg, #dcfce7 0%, #86efac 42%, #bfdbfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.screen-slide.theme-autoreview .screen-title {
  background: linear-gradient(135deg, #fef9c3 0%, #fde68a 44%, #fbcfe8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.screen-slide > p {
  max-width: 52ch;
  margin-top: 0.08rem;
  color: #cbd5e1;
  font-size: clamp(0.82rem, 0.76rem + 0.2vw, 0.95rem);
  line-height: 1.68;
  letter-spacing: 0.004em;
  text-wrap: pretty;
}

.screen-slide.theme-discipline > p { color: #dbeafe; }
.screen-slide.theme-analytics > p { color: #ccfbf1; }
.screen-slide.theme-prop > p { color: #dcfce7; }

@media (max-width: 760px) {
  .screen-slide .screen-title {
    max-width: 100%;
    font-size: clamp(1.28rem, 1.06rem + 1.35vw, 1.7rem);
  }

  .screen-slide > p {
    max-width: 100%;
    font-size: 0.83rem;
    line-height: 1.6;
  }
}

/* Do not use min-height:100% on slides: the hero carousel JS sets .screen-slides
   height from max(scrollHeight); percentage min-height creates a feedback loop and
   the preview column grows indefinitely while the tab stays open. */

.screen-slide.theme-discipline {
  display: flex;
  flex-direction: column;
}

.screen-slide.theme-discipline .sj-chart-card {
  margin-top: 0.35rem;
  min-height: 8.4rem;
}

.screen-slide.theme-discipline .sj-kpi-row {
  margin-top: auto;
}

.sj-context-grid {
  margin-top: 0.52rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sj-context-card {
  border-radius: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  padding: 0.5rem 0.55rem;
}

.sj-context-label {
  display: block;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-text-muted);
  font-weight: 700;
}

.sj-context-card strong {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.72rem;
  color: #dbeafe;
  letter-spacing: -0.01em;
}

.sj-context-meter {
  margin-top: 0.35rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.sj-context-meter span {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56,189,248,0.95), rgba(99,102,241,0.9));
  transform: scaleX(0);
  transform-origin: left;
}

.sj-context-days {
  margin-top: 0.34rem;
  display: flex;
  align-items: end;
  gap: 0.24rem;
  height: 1.35rem;
}

.sj-context-days span {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 0.28rem;
  background: linear-gradient(180deg, rgba(56,189,248,0.75), rgba(59,130,246,0.35));
  transform: scaleY(0);
  transform-origin: bottom;
}

.screen-slide.theme-analytics {
  display: flex;
  flex-direction: column;
}

.screen-slide.theme-analytics .sa-sessions-block {
  margin-top: 0.38rem;
}

.screen-slide.theme-analytics .sa-week-block {
  margin-top: auto;
}

.sa-insight-strip {
  margin-top: 0.58rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sa-insight-card {
  border-radius: 0.72rem;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(6, 18, 24, 0.5);
  padding: 0.5rem 0.55rem;
}

.sa-insight-card small {
  display: block;
  font-size: 0.52rem;
  color: var(--home-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.sa-insight-card strong {
  display: block;
  margin-top: 0.34rem;
  font-size: 0.71rem;
  color: #ccfbf1;
  letter-spacing: -0.01em;
}

.sa-dist {
  margin-top: 0.38rem;
  display: flex;
  gap: 0.22rem;
}

.sa-dist span {
  display: block;
  height: 0.42rem;
  border-radius: 999px;
  width: var(--w, 20%);
  transform: scaleX(0);
  transform-origin: left;
}

.sa-dist-a { background: rgba(59,130,246,0.95); }
.sa-dist-b { background: rgba(45,212,191,0.88); }
.sa-dist-c { background: rgba(129,140,248,0.85); }

.screen-slide.theme-prop {
  display: flex;
  flex-direction: column;
}

.screen-slide.theme-prop .sp-gauge-row {
  margin-top: 0.42rem;
}

.screen-slide.theme-prop .sp-ai-card {
  margin-top: auto;
}

.sp-snapshot-row {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.44rem;
}

.sp-snapshot-item {
  border-radius: 0.7rem;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(16, 12, 30, 0.46);
  padding: 0.48rem 0.5rem;
}

.sp-snapshot-item small {
  display: block;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-text-muted);
  font-weight: 700;
}

.sp-snapshot-item strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.72rem;
  color: #ddd6fe;
}

.sp-snapshot-risk { color: #86efac !important; }

/* Hero preview — insight blokk (desktop): arányos tipográfia, mélység, több hely */
@media (min-width: 1024px) {
  .screen-slide .screen-title {
    max-width: min(26ch, 100%);
    font-size: clamp(1.52rem, 1rem + 1.45vw, 2.14rem);
    font-weight: 800;
  }

  .screen-slide > p {
    max-width: min(52ch, 100%);
    font-size: clamp(0.87rem, 0.78rem + 0.2vw, 0.98rem);
    line-height: 1.72;
  }

  .screen-top__meta .home-insight-badge.mini-badge {
    min-height: 2.2rem;
    padding: 0 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    border-color: rgba(56, 189, 248, 0.38);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.1));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 10px 28px rgba(56, 189, 248, 0.14);
  }

  .sj-context-grid {
    margin-top: 0.72rem;
    gap: 0.65rem;
  }

  .sj-context-card {
    padding: 0.72rem 0.85rem;
    border-radius: 0.9rem;
    border-color: rgba(148, 163, 184, 0.3);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.5));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 12px 32px rgba(2, 6, 18, 0.24);
  }

  .sj-context-label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .sj-context-card strong {
    margin-top: 0.45rem;
    font-size: 0.88rem;
  }

  .sj-context-meter {
    margin-top: 0.45rem;
    height: 0.5rem;
  }

  .sj-context-days {
    margin-top: 0.4rem;
    height: 1.55rem;
    gap: 0.3rem;
  }

  .sa-insight-strip {
    margin-top: 0.75rem;
    gap: 0.65rem;
  }

  .sa-insight-card {
    padding: 0.68rem 0.8rem;
    border-radius: 0.9rem;
    border-color: rgba(52, 211, 153, 0.32);
    background: linear-gradient(165deg, rgba(6, 28, 24, 0.72), rgba(6, 18, 24, 0.48));
    box-shadow:
      inset 0 1px 0 rgba(52, 211, 153, 0.12),
      0 12px 30px rgba(2, 6, 18, 0.22);
  }

  .sa-insight-card small {
    font-size: 0.58rem;
  }

  .sa-insight-card strong {
    margin-top: 0.42rem;
    font-size: 0.88rem;
  }

  .sa-dist {
    margin-top: 0.42rem;
    gap: 0.28rem;
  }

  .sa-dist span {
    height: 0.48rem;
  }

  .sp-snapshot-row {
    margin-top: 0.72rem;
    gap: 0.55rem;
  }

  .sp-snapshot-item {
    padding: 0.62rem 0.7rem;
    border-radius: 0.82rem;
    border-color: rgba(139, 92, 246, 0.32);
    background: linear-gradient(165deg, rgba(20, 16, 40, 0.62), rgba(16, 12, 30, 0.48));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 10px 26px rgba(2, 6, 18, 0.2);
  }

  .sp-snapshot-item small {
    font-size: 0.56rem;
  }

  .sp-snapshot-item strong {
    margin-top: 0.34rem;
    font-size: 0.88rem;
  }

  .sp-ai-card {
    padding: 0.95rem 1rem;
    border-radius: 1.05rem;
    gap: 0.78rem;
    border-color: rgba(139, 92, 246, 0.32);
    background: linear-gradient(165deg, rgba(139, 92, 246, 0.14), rgba(15, 23, 42, 0.4));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 14px 36px rgba(88, 28, 135, 0.18);
  }

  .sp-ai-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.62rem;
  }

  .sp-ai-body strong {
    font-size: 0.72rem;
    margin-bottom: 0.32rem;
  }

  .sp-ai-body p {
    font-size: 0.86rem;
    line-height: 1.58;
  }
}

@media (min-width: 1280px) {
  .screen-slide .screen-title {
    max-width: min(28ch, 100%);
    font-size: clamp(1.65rem, 1.05rem + 1.25vw, 2.28rem);
  }

  .sj-context-card,
  .sa-insight-card {
    padding: 0.78rem 0.9rem;
  }
}

/* ────────────────────────────────────────────────────────────────
   SLIDE 1 — Trading Journal: P&L Sparkline + Win-Rate Donut
   ──────────────────────────────────────────────────────────────── */
.sj-chart-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(56,189,248,0.18);
  background: rgba(56,189,248,0.06);
  padding: 0.85rem 0.9rem 0.6rem;
  overflow: hidden;
}

.sj-chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.sj-chart-label {
  color: var(--home-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.sj-chart-total {
  font-family: "Plus Jakarta Sans", var(--pipsy-font-sans, sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(56,189,248,1);
  letter-spacing: -0.03em;
}

.sj-sparkline {
  width: 100%;
  height: 3rem;
  display: block;
  overflow: visible;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.sj-spark-area {
  fill: url(#sjSparkGrad);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.sj-spark-line {
  fill: none;
  stroke: rgba(56,189,248,0.88);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Animate sparkline draw on slide active */
.screen-slide.is-active .sj-spark-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: sjSparkDraw 1.75s cubic-bezier(0.23,1,0.32,1) 120ms forwards;
}

.screen-slide.is-active .sj-sparkline {
  animation: sjSparklineReveal 1.45s cubic-bezier(0.23,1,0.32,1) 100ms forwards;
}

.screen-slide.is-active .sj-spark-area {
  animation: sjAreaReveal 1.45s cubic-bezier(0.23,1,0.32,1) 110ms forwards;
}

@keyframes sjSparkDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes sjAreaReveal {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes sjSparklineReveal {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* KPI row */
.sj-kpi-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.sj-kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}

.sj-kpi-item small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-text-muted);
  font-weight: 700;
}

.sj-donut-wrap {
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
}

.sj-donut-wrap svg {
  width: 100%;
  height: 100%;
}

.sj-donut-arc {
  stroke-dasharray: 0 106.8;
}

.sj-donut-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.sj-kpi-divider {
  width: 1px;
  height: 2.4rem;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.sj-kpi-stat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.sj-kpi-stat strong {
  font-family: "Plus Jakarta Sans", var(--pipsy-font-sans, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #e2e8f0;
  line-height: 1.1;
}

.sj-kpi-stat strong span,
.sj-streak span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--home-text-muted);
}

.sj-streak {
  color: #34d399 !important;
}

.sj-kpi-stat small {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-text-muted);
  font-weight: 700;
  margin-top: 0.08rem;
}

/* Animate KPI row items */
.screen-slide.is-active .sj-chart-card {
  animation: pipsyCardIn 0.9s cubic-bezier(.2,.9,.2,1) 90ms both;
}

.screen-slide.is-active .sj-donut-arc {
  animation: sjDonutDraw 1.5s cubic-bezier(0.23,1,0.32,1) 220ms forwards;
}

.screen-slide.is-active .sj-kpi-row {
  animation: pipsyCardIn 0.9s cubic-bezier(.2,.9,.2,1) 260ms both;
}

.screen-slide.is-active .sj-context-card {
  animation: pipsyCardIn 0.85s cubic-bezier(.2,.9,.2,1) both;
}

.screen-slide.is-active .sj-context-card:nth-child(1) { animation-delay: 340ms; }
.screen-slide.is-active .sj-context-card:nth-child(2) { animation-delay: 420ms; }
.screen-slide.is-active .sj-context-meter span {
  animation: pipsyFillGrow 1.35s cubic-bezier(.2,.9,.2,1) 420ms both;
}
.screen-slide.is-active .sj-context-days span {
  animation: sjBarRise 0.8s cubic-bezier(.2,.9,.2,1) both;
}
.screen-slide.is-active .sj-context-days span:nth-child(1) { animation-delay: 430ms; }
.screen-slide.is-active .sj-context-days span:nth-child(2) { animation-delay: 470ms; }
.screen-slide.is-active .sj-context-days span:nth-child(3) { animation-delay: 510ms; }
.screen-slide.is-active .sj-context-days span:nth-child(4) { animation-delay: 550ms; }
.screen-slide.is-active .sj-context-days span:nth-child(5) { animation-delay: 590ms; }

/* ────────────────────────────────────────────────────────────────
   SLIDE 2 — Visual Analytics: Session Bars + Weekly Heatmap
   ──────────────────────────────────────────────────────────────── */
.sa-sessions-block {
  display: grid;
  gap: 0.62rem;
}

.sa-session-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sa-session-label {
  width: 4.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--home-text-soft);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.sa-session-bar {
  flex: 1;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.sa-session-fill {
  height: 100%;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(52,211,153,1), rgba(6,182,212,1));
  transform: scaleX(0);
  transform-origin: left;
}

.screen-slide.is-active .sa-session-fill {
  animation: pipsyFillGrow 1.6s cubic-bezier(.2,.9,.2,1) both;
}

.screen-slide.is-active .sa-session-row:nth-child(1) .sa-session-fill { animation-delay: 70ms; }
.screen-slide.is-active .sa-session-row:nth-child(2) .sa-session-fill { animation-delay: 160ms; }
.screen-slide.is-active .sa-session-row:nth-child(3) .sa-session-fill { animation-delay: 250ms; }

.sa-session-fill--neg {
  background: linear-gradient(90deg, rgba(248,113,113,0.9), rgba(239,68,68,0.75));
}

.sa-session-val {
  font-size: 0.76rem;
  font-weight: 700;
  width: 3.4rem;
  text-align: right;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.sa-session-val--pos { color: #34d399; }
.sa-session-val--neg { color: #f87171; }

/* Heatmap */
.sa-week-block {
  margin-top: 0.7rem;
}

.sa-week-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--home-text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sa-heatmap {
  display: flex;
  gap: 0.4rem;
}

.sa-heat-cell {
  flex: 1;
  border-radius: 0.65rem;
  padding: 0.5rem 0.25rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  opacity: 0;
  transform: translateY(8px);
}

.screen-slide.is-active .sa-heat-cell {
  animation: pipsyCardIn 0.85s cubic-bezier(.2,.9,.2,1) both;
}

.screen-slide.is-active .sa-heat-cell:nth-child(1) { animation-delay: 70ms; }
.screen-slide.is-active .sa-heat-cell:nth-child(2) { animation-delay: 120ms; }
.screen-slide.is-active .sa-heat-cell:nth-child(3) { animation-delay: 170ms; }
.screen-slide.is-active .sa-heat-cell:nth-child(4) { animation-delay: 220ms; }
.screen-slide.is-active .sa-heat-cell:nth-child(5) { animation-delay: 270ms; }

.screen-slide.is-active .sa-insight-card {
  animation: pipsyCardIn 0.85s cubic-bezier(.2,.9,.2,1) both;
}
.screen-slide.is-active .sa-insight-card:nth-child(1) { animation-delay: 340ms; }
.screen-slide.is-active .sa-insight-card:nth-child(2) { animation-delay: 420ms; }
.screen-slide.is-active .sa-dist span {
  animation: pipsyFillGrow 1.25s cubic-bezier(.2,.9,.2,1) both;
}
.screen-slide.is-active .sa-dist span:nth-child(1) { animation-delay: 440ms; }
.screen-slide.is-active .sa-dist span:nth-child(2) { animation-delay: 490ms; }
.screen-slide.is-active .sa-dist span:nth-child(3) { animation-delay: 540ms; }

.sa-heat-cell > span {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255,255,255,0.82);
  line-height: 1;
}

.sa-heat-cell > small {
  font-size: 0.56rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  line-height: 1;
  white-space: nowrap;
}

.sa-heat--pos-3 { background: rgba(52,211,153,0.44); border: 1px solid rgba(52,211,153,0.28); }
.sa-heat--pos-2 { background: rgba(52,211,153,0.27); border: 1px solid rgba(52,211,153,0.16); }
.sa-heat--pos-1 { background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.10); }
.sa-heat--neg-1 { background: rgba(248,113,113,0.26); border: 1px solid rgba(248,113,113,0.18); }
.sa-heat--neg-2 { background: rgba(248,113,113,0.40); border: 1px solid rgba(248,113,113,0.25); }

/* Override screen-footer for analytics theme */
.screen-slide.theme-analytics .screen-footer__line--strong {
  background: linear-gradient(90deg, rgba(52,211,153,0.4), rgba(6,182,212,0.25));
}

/* ────────────────────────────────────────────────────────────────
   SLIDE 3 — Prop Firm + AI Coach: Circular Gauge + AI Card
   ──────────────────────────────────────────────────────────────── */
.sp-gauge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sp-gauge-wrap {
  position: relative;
  width: 4.6rem;
  height: 4.6rem;
  flex-shrink: 0;
}

.sp-gauge-svg {
  width: 100%;
  height: 100%;
}

.sp-gauge-arc {
  stroke-dasharray: 0 175.9;
}

.sp-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sp-gauge-center strong {
  font-family: "Plus Jakarta Sans", var(--pipsy-font-sans, sans-serif);
  font-size: 0.88rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
  letter-spacing: -0.03em;
}

.sp-gauge-center small {
  font-size: 0.58rem;
  color: var(--home-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.1rem;
}

.sp-gauge-meta {
  display: grid;
  gap: 0.42rem;
  flex: 1;
  min-width: 0;
}

.sp-gauge-stat {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
}

.sp-gauge-stat small {
  font-size: 0.65rem;
  color: var(--home-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.sp-gauge-stat span {
  font-family: "Plus Jakarta Sans", var(--pipsy-font-sans, sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: -0.02em;
}

.sp-limit-max {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--home-text-muted);
}

/* AI Coach card */
.sp-ai-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem;
  border-radius: 0.95rem;
  background: rgba(139,92,246,0.10);
  border: 1px solid rgba(139,92,246,0.24);
  margin-top: 0.65rem;
}

.sp-ai-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  background: rgba(139,92,246,0.22);
  border: 1px solid rgba(139,92,246,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c4b5fd;
}

.sp-ai-body strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #c4b5fd;
  margin-bottom: 0.28rem;
}

.sp-ai-body p {
  margin: 0;
  font-size: 0.79rem;
  color: var(--home-text-soft);
  line-height: 1.52;
}

/* Animations for slide 3 */
.screen-slide.is-active .sp-gauge-row {
  animation: pipsyCardIn 0.95s cubic-bezier(.2,.9,.2,1) 100ms both;
}

.screen-slide.is-active .sp-gauge-arc {
  animation: spGaugeDraw 1.7s cubic-bezier(0.23,1,0.32,1) 180ms forwards;
}

.screen-slide.is-active .sp-ai-card {
  animation: pipsyCardIn 0.95s cubic-bezier(.2,.9,.2,1) 320ms both;
}

.screen-slide.is-active .sp-snapshot-item {
  animation: pipsyCardIn 0.9s cubic-bezier(.2,.9,.2,1) both;
}
.screen-slide.is-active .sp-snapshot-item:nth-child(1) { animation-delay: 430ms; }
.screen-slide.is-active .sp-snapshot-item:nth-child(2) { animation-delay: 500ms; }
.screen-slide.is-active .sp-snapshot-item:nth-child(3) { animation-delay: 570ms; }

@keyframes sjDonutDraw {
  to { stroke-dasharray: 71.6 35.2; }
}

@keyframes spGaugeDraw {
  to { stroke-dasharray: 123.1 52.8; }
}

@keyframes sjBarRise {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* ────────────────────────────────────────────────────────────────
   SLIDE 4 — Auto Review: calendar-style mistake journal
   ──────────────────────────────────────────────────────────────── */
.screen-slide.theme-autoreview {
  --slide-a: 251, 191, 36;
  --slide-b: 236, 72, 153;
}

.ar-badge-row {
  margin-top: 0.3rem;
}

.ar-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.62rem;
  border-radius: 999px;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.34);
}

.ar-journal {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.56rem;
}

.ar-entry {
  padding: 0.62rem 0.65rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 12, 24, 0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.ar-entry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.ar-entry__pair {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #e2e8f0;
}

.ar-entry__result {
  font-size: 0.66rem;
  font-weight: 800;
}

.ar-entry__result--neg { color: #f87171; }
.ar-entry__result--pos { color: #34d399; }

.ar-entry__mistake {
  margin: 0;
  font-size: 0.69rem;
  color: var(--home-text-soft);
  line-height: 1.48;
}

.ar-entry__mistake strong {
  color: #f8fafc;
  font-weight: 700;
}

.ar-tags {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.ar-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.2rem;
  padding: 0 0.46rem;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.12);
}

.ar-tag--warn {
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(249, 115, 22, 0.14);
}

.ar-tag--risk {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.14);
}

.ar-tag--good {
  color: #86efac;
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(52, 211, 153, 0.14);
}

.screen-slide.is-active .ar-badge {
  animation: pipsyCardIn 0.8s cubic-bezier(.2,.9,.2,1) 90ms both;
}

.screen-slide.is-active .ar-entry {
  animation: pipsyCardIn 0.85s cubic-bezier(.2,.9,.2,1) both;
}

.screen-slide.is-active .ar-entry:nth-child(1) { animation-delay: 180ms; }
.screen-slide.is-active .ar-entry:nth-child(2) { animation-delay: 300ms; }
.screen-slide.is-active .ar-entry:nth-child(3) { animation-delay: 420ms; }

/* ================================================================
   RESPONSIVE — tablet & mobile (hero, carousel, preview, fillers)
   ================================================================ */

@media (max-width: 1100px) {
  .visual-card.home-preview-shell {
    transform: perspective(1200px) rotateX(2deg) rotateY(-2deg) translateZ(0);
  }

  .hero-bg-orb {
    opacity: 0.55;
  }
}

@media (max-width: 1024px) {
  .home-main {
    gap: clamp(2rem, 5vw, 3.5rem);
  }

  .hero-grid {
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .screen-carousel {
    padding: clamp(0.75rem, 2vw, 1.1rem);
  }

  .screen-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem 0.65rem;
  }

  .sj-kpi-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
  }

  .sj-kpi {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 5.5rem;
  }

  .sj-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sa-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-snapshot-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .pipsy-hero__headline-rest {
    max-width: none;
  }

  .visual-card.home-preview-shell {
    transform: none;
    perspective: none;
    margin-inline: auto;
    max-width: min(100%, 420px);
  }

  .visual-card.home-preview-shell:hover {
    transform: none;
  }

  .screen-top {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .screen-top__meta {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }
}

@media (max-width: 768px) {
  body.home-page {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .hero {
    padding-top: clamp(1rem, 3vw, 1.75rem);
  }

  .pipsy-hero__title--home {
    font-size: clamp(2.15rem, 9vw, 3.25rem);
    line-height: 0.96;
  }

  .pipsy-hero__subtitle--landing {
    font-size: clamp(1rem, 3.8vw, 1.15rem);
  }

  .home-hero-badge {
    margin-bottom: 1rem;
    font-size: 0.72rem;
    padding: 0.28rem 0.75rem 0.28rem 0.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.85rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .stat-premium {
    padding: 0.85rem 1rem;
  }

  .screen-carousel {
    padding: 0.65rem 0.55rem 0.85rem;
    border-radius: 1.1rem;
  }

  .screen-title {
    font-size: clamp(0.72rem, 2.8vw, 0.82rem);
    max-width: 100%;
  }

  .screen-pagination__dot {
    width: 0.42rem;
    height: 0.42rem;
    min-width: 0.42rem;
    min-height: 0.42rem;
  }

  .screen-pagination__dot.is-active {
    width: 1.35rem;
  }

  .sj-context-grid {
    grid-template-columns: 1fr;
  }

  .sa-insight-strip {
    grid-template-columns: 1fr;
  }

  .sp-snapshot-row {
    grid-template-columns: 1fr;
  }

  .sj-kpi-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sj-kpi {
    flex: 1 1 auto;
    width: 100%;
  }

  .sa-heatmap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
    scrollbar-width: thin;
  }

  .sa-heatmap::-webkit-scrollbar {
    height: 4px;
  }

  .sa-heat-cell {
    flex: 0 0 auto;
    min-width: 2.25rem;
  }

  .sa-session {
    gap: 0.35rem;
  }

  .sa-session__label {
    min-width: 0;
    flex: 1 1 auto;
  }

  .sa-session__bar {
    min-width: 0;
  }

  .screen-slide .sj-context,
  .screen-slide .sa-insight,
  .screen-slide .sp-snapshot {
    padding: 0.65rem 0.75rem;
  }

  .ar-entry {
    padding: 0.55rem 0.65rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-head__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .pipsy-hero__title--home {
    font-size: clamp(1.85rem, 10vw, 2.6rem);
  }

  .screen-carousel {
    padding: 0.55rem 0.45rem 0.75rem;
  }

  .screen-pagination {
    gap: 0.4rem;
  }

  .screen-pagination__dot {
    width: 0.38rem;
    height: 0.38rem;
  }

  .screen-pagination__dot.is-active {
    width: 1.2rem;
  }

  .hero-bg-orb {
    opacity: 0.4;
  }

  .stat-premium .stat-count {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero-grid {
    gap: 1rem;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-premium {
    padding: 0.65rem 0.75rem;
  }

  .visual-card.home-preview-shell {
    max-width: min(100%, 360px);
  }
}

/* CSP-safe helpers (replaces inline style attributes on home page) */
.modal-brand-logo {
  margin: 0 auto 20px;
}

.trust-pillar-icon {
  margin-bottom: 1rem;
}

.trust-pillar-icon--indigo {
  --ca: 99, 102, 241;
}

.trust-pillar-icon--cyan {
  --ca: 34, 211, 238;
}

.trust-pillar-icon--violet {
  --ca: 139, 92, 246;
}

.solutions-badge-spaced {
  margin-bottom: 1rem;
}

.sj-day-h-56 { --h: 56%; }
.sj-day-h-74 { --h: 74%; }
.sj-day-h-42 { --h: 42%; }
.sj-day-h-88 { --h: 88%; }
.sj-day-h-68 { --h: 68%; }

.sa-fill-100 { --fill: 100%; }
.sa-fill-39 { --fill: 39%; }
.sa-fill-10 { --fill: 10%; }

.sa-w-52 { --w: 52%; }
.sa-w-34 { --w: 34%; }
.sa-w-14 { --w: 14%; }
