/* ═══════════════════════════════════════════════════════════════════
   pawtrck — homepage cinematic layer
   Loaded after styles.css, homepage only.
   ═══════════════════════════════════════════════════════════════════ */

@view-transition {
  navigation: auto;
}

/* ── Hero: route + live chips ───────────────────────────────────── */

.hero {
  isolation: isolate;
}

.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.hero-route .route-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.45));
  opacity: 0;
}

.hero-route .route-path.is-drawing {
  opacity: 1;
}

.hero-route .route-dot {
  fill: #fff;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-route .route-dot.is-on {
  opacity: 1;
}

.hero-route .route-pin {
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.4);
}

.hero-route .route-pin.is-on {
  opacity: 1;
  transform: scale(1);
}

/* Floating live stat chips over the hero */
.stat-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 13, 18, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stat-chip.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stat-chip strong {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stat-chip small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.stat-chip .chip-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(43, 61, 220, 0.28);
  color: #8b9aff;
  flex-shrink: 0;
}

.stat-chip .chip-ico svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.stat-chip--km    { right: clamp(24px, 20vw, 340px); top: 26%; }
.stat-chip--steps { right: clamp(12px, 9vw, 140px);  top: 52%; }
.stat-chip--streak{ right: clamp(40px, 26vw, 460px); top: 70%; }

/* Hero headline: two-tone, second line italic blue */
.hero h1 .h1-line {
  display: block;
}

.hero h1 .h1-flip {
  font-style: italic;
  background: linear-gradient(100deg, #8b9aff 0%, var(--blue) 55%, #6d7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: 0.08em;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

/* ── Recognition (pain lines) ────────────────────────────────────── */

.recognition {
  padding: clamp(90px, 12vw, 150px) clamp(20px, 5vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
}

.recognition .eyebrow {
  margin-bottom: 34px;
}

.pain-line {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-size: clamp(30px, 5.4vw, 66px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.14);
  transition: color 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateY(24px);
}

.pain-line.is-visible {
  color: rgba(255, 255, 255, 0.92);
  transform: none;
}

.pain-line em {
  font-style: inherit;
  color: var(--blue);
}

.recognition .pivot {
  max-width: 620px;
  margin-top: clamp(36px, 5vw, 56px);
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.recognition .pivot strong {
  color: #fff;
  font-weight: 800;
}

/* ── Live phone (shared component) ───────────────────────────────── */

.lp-frame {
  position: relative;
  width: min(310px, 78vw);
  aspect-ratio: 393 / 852;
  border-radius: 50px;
  background: #1c1c1e;
  box-shadow:
    0 0 0 10px #1c1c1e,
    0 0 0 11.5px rgba(160, 160, 168, 0.3),
    0 48px 120px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.lp-frame::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 999px;
  background: #000;
  z-index: 30;
}

.lp-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #f4f4f6;
  color: #17171a;
  font-size: 13px;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  padding: 56px 16px 76px;
  overflow: hidden;
}

.lp-screen.is-active {
  opacity: 1;
  transform: none;
}

.lp-title {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.lp-weather {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 11px;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
}

.lp-toggle {
  display: flex;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 12px;
}

.lp-toggle span {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  color: var(--blue);
}

.lp-toggle .on {
  background: var(--blue);
  color: #fff;
}

.lp-big-metric {
  text-align: center;
  margin: 10px 0 6px;
}

.lp-big-metric strong {
  font-size: 52px;
  font-weight: 900;
  font-style: italic;
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.lp-big-metric small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
}

.lp-substats {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
}

.lp-substats b {
  font-variant-numeric: tabular-nums;
}

.lp-play {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 6px auto 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 26px rgba(43, 61, 220, 0.45);
}

.lp-screen.is-active .lp-play {
  animation: lp-pulse 2s ease-in-out infinite;
}

@keyframes lp-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(43, 61, 220, 0.45), 0 0 0 0 rgba(43, 61, 220, 0.35); }
  50%      { box-shadow: 0 10px 26px rgba(43, 61, 220, 0.45), 0 0 0 16px rgba(43, 61, 220, 0); }
}

.lp-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 3px;
}

.lp-route-mini {
  display: block;
  margin: 20px auto 0;
  width: 86%;
}

.lp-route-mini path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-route-mini .rm-dot { fill: var(--blue); }
.lp-route-mini .rm-ring { fill: none; stroke: var(--blue); stroke-width: 5; }

/* Bottom tab bar */
.lp-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 6px 14px;
  background: #fff;
  border-top: 1px solid #ececf0;
  font-size: 9px;
  font-weight: 700;
  color: #9ca3af;
}

.lp-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.lp-tabbar span b {
  font-weight: 650;
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lp-tabbar svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.lp-tabbar .lp-tab-main {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(43, 61, 220, 0.4);
}

.lp-tabbar .lp-tab-main svg {
  width: 22px;
  height: 22px;
}

.lp-tabbar .on {
  color: var(--blue);
}

/* Health screen bits */
.lp-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lp-card h5 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #17171a;
}

.lp-weight-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.lp-weight-val .up {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  border: 1px solid #e2e5f8;
  border-radius: 999px;
  padding: 3px 8px;
}

.lp-chart {
  width: 100%;
  margin-top: 6px;
}

.lp-chart .chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
}

.lp-chart .chart-fill {
  fill: url(#lpChartGrad);
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}

.lp-screen.is-active .lp-chart .chart-fill {
  opacity: 1;
}

.lp-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lp-chip {
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 10.5px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lp-screen.is-active .lp-chip {
  opacity: 1;
  transform: none;
}

.lp-screen.is-active .lp-chip:nth-child(1) { transition-delay: 0.25s; }
.lp-screen.is-active .lp-chip:nth-child(2) { transition-delay: 0.4s; }
.lp-screen.is-active .lp-chip:nth-child(3) { transition-delay: 0.55s; }

.lp-chip--warn { background: #fdf6dd; color: #8a6d1a; }
.lp-chip--bad  { background: #fdeaea; color: #a13333; }
.lp-chip--ok   { background: #e7f6ee; color: #1f7a4d; }

/* Diet / training rows */
.lp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lp-screen.is-active .lp-row {
  opacity: 1;
  transform: none;
}

.lp-screen.is-active .lp-row:nth-child(4) { transition-delay: 0.12s; }
.lp-screen.is-active .lp-row:nth-child(5) { transition-delay: 0.24s; }
.lp-screen.is-active .lp-row:nth-child(6) { transition-delay: 0.36s; }
.lp-screen.is-active .lp-row:nth-child(7) { transition-delay: 0.48s; }

.lp-row .row-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(43, 61, 220, 0.09);
  flex-shrink: 0;
  font-size: 16px;
}

.lp-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.lp-row b {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-row small {
  display: block;
  color: #6b7280;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-row .row-val {
  margin-left: auto;
  font-weight: 800;
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}

/* ── Walk card (share card component) ────────────────────────────── */

.walk-card {
  background: #fff;
  color: #17171a;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.walk-card .wc-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.wc-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #e5e7ef;
  color: var(--blue);
  flex-shrink: 0;
}

.wc-avatar svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.wc-head-meta b {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.wc-head-meta small {
  color: #6b7280;
  font-size: 11.5px;
  line-height: 1.5;
}

.wc-stats {
  margin-left: auto;
  display: flex;
  gap: 14px;
  text-align: center;
}

.wc-stats div {
  border-left: 1px solid #e5e7ef;
  padding-left: 14px;
}

.wc-stats div:first-child {
  border-left: none;
  padding-left: 0;
}

.wc-stats b {
  display: block;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.wc-stats small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
}

.wc-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 0 14px;
}

.wc-pawsteps small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #17171a;
  margin-bottom: 4px;
  text-align: center;
}

.wc-pawsteps strong {
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 900;
  font-style: italic;
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.wc-squiggle {
  width: clamp(58px, 7vw, 84px);
  flex-shrink: 0;
}

.wc-squiggle .sq-path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 11;
  stroke-linecap: round;
}

.wc-squiggle .sq-start { fill: var(--blue); }

.wc-squiggle .sq-end {
  fill: none;
  stroke: var(--blue);
  stroke-width: 8;
}

.wc-milestone {
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
  margin: 0 0 16px;
}

.wc-milestone b {
  color: var(--blue);
  font-weight: 800;
}

.wc-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 13px 0;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.wc-share svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Small variant inside phone */
.walk-card--phone {
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

.walk-card--phone .wc-pawsteps strong { font-size: 40px; }
.walk-card--phone .wc-head-meta b { font-size: 14px; }
.walk-card--phone .wc-stats b { font-size: 13px; }
.walk-card--phone .wc-milestone { font-size: 11.5px; }
.walk-card--phone .wc-squiggle { width: 48px; }
.walk-card--phone .wc-share { font-size: 12px; padding: 10px 0; }

/* ── Day-with-pawtrck scrollytelling ─────────────────────────────── */

.day {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 72px) 40px;
}

.day-header {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.day-header h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
}

.day-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.day-phone-sticky {
  position: sticky;
  top: max(84px, calc(50vh - 340px));
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
}

.day-steps {
  padding-top: 8vh;
}

.day-step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.25;
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.day-step.is-active {
  opacity: 1;
}

.day-step .step-num {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

.day-step h3 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.04;
  margin-bottom: 14px;
}

.day-step h3 em {
  font-style: italic;
  color: var(--blue);
}

.day-step p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

/* ── Share act ───────────────────────────────────────────────────── */

.share-act {
  position: relative;
  padding: clamp(90px, 12vw, 160px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}

.share-act::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 70% 45%, rgba(43, 61, 220, 0.20), transparent 70%),
    radial-gradient(ellipse 45% 40% at 20% 80%, rgba(43, 61, 220, 0.10), transparent 70%);
  pointer-events: none;
}

.share-act-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.share-act-copy h2 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 0.98;
  margin-bottom: 20px;
}

.share-act-copy h2 em {
  font-style: italic;
  color: var(--blue);
}

.share-act-copy p {
  max-width: 480px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.share-act-copy p strong {
  color: #fff;
}

/* Tilting card stage */
.share-stage {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.share-stage .walk-card {
  max-width: 460px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  overflow: hidden;
}

/* sheen sweep */
.share-stage .walk-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(140, 155, 255, 0.25) 52%,
    transparent 68%
  );
  transform: translateX(-130%);
  pointer-events: none;
}

.share-stage.is-visible .walk-card::after {
  animation: wc-sheen 3.6s cubic-bezier(0.4, 0, 0.2, 1) 0.7s infinite;
}

@keyframes wc-sheen {
  0%       { transform: translateX(-130%); }
  38%, 100%{ transform: translateX(130%); }
}

/* floating badges around the card */
.float-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(19, 19, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.float-badge--a { top: -8px; right: 4%; animation: badge-float 4.2s ease-in-out infinite; }
.float-badge--b { bottom: 10%; left: -4%; animation: badge-float 5s ease-in-out 0.8s infinite; }
.float-badge--c { top: 34%; left: -10%; animation: badge-float 4.6s ease-in-out 1.6s infinite; }

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* drifting paw prints in the section background */
.paw-drift {
  position: absolute;
  width: 34px;
  height: 34px;
  color: rgba(43, 61, 220, 0.16);
  animation: paw-drift-anim 14s linear infinite;
  pointer-events: none;
}

.paw-drift svg { width: 100%; height: 100%; fill: currentColor; }

@keyframes paw-drift-anim {
  0%   { transform: translateY(40px) rotate(-12deg); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(-72vh) rotate(14deg); opacity: 0; }
}

/* ── Foundation (health + patterns) ─────────────────────────────── */

.foundation {
  padding: clamp(80px, 10vw, 130px) clamp(20px, 5vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
}

.foundation-header {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.foundation-header h2 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1;
  margin-bottom: 18px;
}

.foundation-header h2 em {
  font-style: italic;
  color: var(--blue);
}

.foundation-header p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.foundation-grid .f-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 24px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.foundation-grid .f-card:hover {
  transform: translateY(-5px);
  border-color: rgba(43, 61, 220, 0.28);
  box-shadow: 0 20px 50px rgba(43, 61, 220, 0.15);
}

.f-card .f-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(43, 61, 220, 0.13);
  margin-bottom: 16px;
  font-size: 20px;
}

.f-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.f-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.f-wide {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.f-wide .f-chart-wrap {
  margin-top: auto;
  padding-top: 18px;
}

.f-weekbars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  padding-top: 18px;
  margin-top: auto;
}

.f-weekbars i {
  flex: 1;
  height: 100%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(to top, rgba(43, 61, 220, 0.55), var(--blue));
  transform-origin: bottom;
  transform: scaleY(0.08);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.f-card.is-visible .f-weekbars i { transform: scaleY(var(--h, 0.5)); }
.f-card.is-visible .f-weekbars i:nth-child(2) { transition-delay: 0.07s; }
.f-card.is-visible .f-weekbars i:nth-child(3) { transition-delay: 0.14s; }
.f-card.is-visible .f-weekbars i:nth-child(4) { transition-delay: 0.21s; }
.f-card.is-visible .f-weekbars i:nth-child(5) { transition-delay: 0.28s; }
.f-card.is-visible .f-weekbars i:nth-child(6) { transition-delay: 0.35s; }
.f-card.is-visible .f-weekbars i:nth-child(7) { transition-delay: 0.42s; }

.f-chart {
  width: 100%;
}

.f-chart .fc-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
}

.f-chart .fc-fill {
  fill: url(#fChartGrad);
  opacity: 0;
  transition: opacity 0.9s ease 0.7s;
}

.f-card.is-visible .f-chart .fc-fill { opacity: 1; }

/* ── Hero exercise summary (white stats around the dog) ─────────── */

.hero-summary {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-stat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-stat.is-on {
  opacity: 1;
  transform: none;
}

.hero-stat small {
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  margin-bottom: 2px;
}

.hero-stat strong {
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.6);
}

.hero-stat strong em {
  font-style: normal;
  font-size: 0.42em;
  font-weight: 800;
  margin-left: 4px;
  vertical-align: 6%;
  text-transform: uppercase;
}

.hs-ico {
  width: clamp(34px, 3.4vw, 52px);
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.5));
}

.hero-stat--distance { right: 42%; top: 13%; }
.hero-stat--duration { right: 53%; top: 47%; }
.hero-stat--pawsteps { right: 8%;  top: 44%; }

.f-card .f-ico img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}


/* Activity title above the hero distance stat, like the real summary */
.hs-title {
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 10px;
}

.hero-stat--distance .hs-ico {
  width: clamp(170px, 17vw, 270px);
  margin-bottom: 10px;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-stat--duration { display: none; }
  .hero-stat--distance { right: 20px; top: 16%; }
  .hero-stat--pawsteps { right: 28px; top: 46%; }

  .day-grid {
    grid-template-columns: 1fr;
  }

  .day-phone-sticky {
    position: sticky;
    top: 72px;
    z-index: 5;
  }

  .lp-frame {
    width: min(230px, 48vw);
  }

  .day-steps {
    padding-top: 2vh;
  }

  /* text lives in the lower zone of the viewport, below the sticky phone */
  .day-step {
    min-height: 84vh;
    text-align: center;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 4vh;
  }

  .day-step h3 { font-size: clamp(22px, 6.4vw, 30px); }
  .day-step p  { font-size: 15px; }

  .day-step p { margin-inline: auto; }

  .share-act-grid {
    grid-template-columns: 1fr;
  }

  .float-badge--c { display: none; }
  .float-badge--a { right: 0; }
  .float-badge--b { left: 0; }

  .foundation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .hero-stat strong { font-size: 26px; }
  .hero-stat small { font-size: 11px; }
  .hs-ico { width: 30px; }
  .hero-stat--distance { right: 14px; top: 12%; }
  .hero-stat--pawsteps { right: 14px; top: auto; bottom: 7%; }

  .pain-line { font-size: clamp(26px, 8vw, 34px); }

  .foundation-grid { grid-template-columns: 1fr; }
  .f-wide { grid-column: span 1; }

  .wc-stats { display: none; }
  .share-stage .walk-card { max-width: 100%; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero-stat,
  .pain-line,
  .day-step,
  .lp-screen .lp-chip,
  .lp-screen .lp-row {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .lp-screen.is-active .lp-play,
  .share-stage.is-visible .walk-card::after,
  .float-badge,
  .paw-drift {
    animation: none;
  }

  .f-weekbars i {
    transform: scaleY(var(--h, 0.5));
    transition: none;
  }
}

/* Real app screenshots inside the live phone frame */
.lp-screen {
  padding: 0;
}

.lp-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

