/* Pico website — the app's palette (PicoColors) and rounded type. */

:root {
  --dark-green: #075B3B;
  --deep-green: #064A32;
  --green: #3CCB72;
  --lime: #A8F07B;
  --pale-green: #DFF8D0;
  --cream: #F7FFF2;
  --sky: #42B7F5;
  --sky-top: #1F86DB;
  --sky-bottom: #C9ECFD;
  --yellow: #FFD95A;
  --coral: #FF7F6E;
  --ink: #12352A;
  --ink-2: rgba(18, 53, 42, 0.66);
  --page: #064A32;
  --page-bottom: #03402A;
  --card: #04382A;
  --card-raised: #074A31;
  --on-dark-2: #BFE5CF;
  --stroke: rgba(18, 53, 42, 0.08);

  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-light: 0 10px 30px rgba(11, 59, 38, 0.10);
  --shadow-card: 0 8px 14px rgba(0, 0, 0, 0.22);
  --max: 1080px;
  --font: "SF Pro Rounded", ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 17px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--ink-2); }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark-green);
  background: var(--pale-green);
  padding: 6px 12px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.center { text-align: center; }
.lede { font-size: 1.2rem; max-width: 40rem; margin: 14px auto 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-lime { background: var(--lime); color: var(--dark-green); box-shadow: 0 8px 20px rgba(168, 240, 123, 0.35); }
.btn-dark { background: var(--dark-green); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.85); color: var(--dark-green); border: 1px solid var(--stroke); }
.btn svg { width: 22px; height: 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 255, 242, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--stroke);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
@media (max-width: 640px) { .nav a:not(.store-badge) { display: none; } }

/* Hero — Pico's onboarding sky */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 55%, var(--sky-bottom) 100%);
  color: #fff;
  padding: 72px 0 0;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: end; }
.hero-copy { padding-bottom: 88px; }
.hero h1 { text-shadow: 0 2px 14px rgba(9, 60, 110, 0.25); }
.hero h1 .hl { color: var(--yellow); text-shadow: 0 2px 0 rgba(11, 53, 99, 0.35), 0 4px 16px rgba(9, 60, 110, 0.35); }
.hero .lede { color: rgba(255, 255, 255, 0.92); margin-left: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.hero-art { position: relative; align-self: end; }
.hero-art img { width: min(100%, 420px); height: auto; margin: 0 auto; filter: drop-shadow(0 24px 30px rgba(9, 60, 110, 0.28)); animation: bob 5s ease-in-out infinite; }
.hero-art .sun { position: absolute; right: 6%; top: -6%; width: 96px; height: 96px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 18px rgba(255, 217, 90, 0.25), 0 0 0 40px rgba(255, 217, 90, 0.10); }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: 0.95; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud-a { left: -20px; top: 90px; width: 150px; height: 44px; }
.cloud-a::before { width: 60px; height: 60px; left: 26px; top: -30px; }
.cloud-a::after { width: 44px; height: 44px; left: 78px; top: -18px; }
.cloud-b { right: 10%; top: 48px; width: 110px; height: 34px; opacity: 0.8; }
.cloud-b::before { width: 46px; height: 46px; left: 20px; top: -22px; }
.cloud-b::after { width: 34px; height: 34px; left: 56px; top: -14px; }
.grass {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: -2px; height: 90px; pointer-events: none;
  background: var(--cream);
  clip-path: ellipse(60% 100% at 50% 100%);
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
@media (max-width: 820px) {
  /* Phone order: headline, intro, Pico, then the buttons and the small print. */
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; text-align: center; justify-items: center; padding-bottom: 104px; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero .lede { order: 2; margin: 12px auto 0; font-size: 1.05rem; max-width: 30rem; }
  .hero-art { order: 3; width: 100%; margin-top: 18px; }
  .hero-art img { width: min(64%, 260px); }
  .hero-art .sun { display: none; }
  .hero-actions {
    order: 4; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; width: 100%;
  }
  .hero-actions .store-badge-lg img { height: 54px; }
  .hero-actions .btn { min-height: 48px; padding: 0 22px; font-size: 0.98rem; }
  .hero-note { order: 5; margin-top: 14px; font-size: 0.82rem; max-width: 22rem; }
  .cloud-a { top: 14px; left: -70px; }
  .cloud-b { top: 8px; right: -20px; }
  .cloud-c { display: none; }
}

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 42rem; margin: 0 auto 44px; text-align: center; }

/* Shared glyphs */
.bolt {
  display: inline-block; width: 12px; height: 16px; vertical-align: -2px; margin-right: 6px;
  background: var(--lime); clip-path: polygon(58% 0, 12% 58%, 46% 58%, 36% 100%, 88% 38%, 54% 38%);
}
.bolt-dark { background: var(--dark-green); }
.lock, .lock-ico {
  display: inline-block; width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23075B3B'><path d='M7 10V8a5 5 0 0 1 10 0v2h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1Zm2 0h6V8a3 3 0 0 0-6 0v2Z'/></svg>") center / contain no-repeat;
}
.lock-ico { margin-right: 6px; vertical-align: -2px; }

/* App Store badge (Apple's official artwork) */
.store-badge { display: inline-flex; line-height: 0; transition: transform 0.15s ease, opacity 0.15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:active { transform: scale(0.98); }
.store-badge img { height: 40px; width: auto; }
.store-badge-lg img { height: 56px; }
.nav .store-badge img { height: 36px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero extras: drifting clouds and floating chips */
.cloud-a { animation: drift 38s linear infinite; }
.cloud-b { animation: drift 52s linear infinite reverse; }
.cloud-c { left: 42%; top: 30px; width: 90px; height: 28px; opacity: 0.55; animation: drift 64s linear infinite; }
.cloud-c::before { width: 38px; height: 38px; left: 16px; top: -18px; }
.cloud-c::after { width: 28px; height: 28px; left: 46px; top: -12px; }
@keyframes drift { 0% { transform: translateX(-40px); } 50% { transform: translateX(60px); } 100% { transform: translateX(-40px); } }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none; } }

/* How it works: alternating visual + copy rows */
.how-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 28px 0; }
.how-row.flip .stage { order: 2; }
.how-row .copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.how-row .copy p { margin-top: 12px; color: var(--ink-2); font-size: 1.08rem; max-width: 30rem; }
.num {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  font-weight: 800; color: var(--dark-green); margin-bottom: 16px; font-size: 1.15rem;
}
.n1 { background: var(--yellow); } .n2 { background: var(--pale-green); } .n3 { background: #DFF3FD; }
.stage {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-light); background: var(--pale-green);
}
.stage > img, .stage > video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) {
  .how-row { grid-template-columns: 1fr; gap: 22px; }
  .how-row.flip .stage { order: 0; }
}


/* Stage 1: pick your apps, then they fly into Pico's shield */
.picker {
  position: absolute; z-index: 3; left: 5%; top: 50%; width: min(47%, 240px);
  background: rgba(255, 255, 255, 0.97); border-radius: 20px; padding: 12px 12px 12px;
  box-shadow: 0 18px 36px rgba(7, 60, 40, 0.25); color: var(--ink);
  display: grid; gap: 4px; transform: translateY(-50%); transform-origin: left center;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.picker.gone { opacity: 0; transform: translateY(-50%) translateX(-24px) scale(0.94); }
.pk-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 4px; }
.pk-head b { font-size: 14px; font-weight: 800; }
.pk-head span { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.pk-row {
  display: grid; grid-template-columns: 28px 1fr 22px; align-items: center; gap: 9px;
  padding: 6px 6px; border-radius: 12px; font-size: 13px; font-weight: 700; transition: background 0.25s ease;
}
.pk-row img { width: 28px; height: 28px; border-radius: 7px; display: block; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); }
.pk-row.on { background: var(--pale-green); }
.tick {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9D6CF; display: block;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pk-row.on .tick {
  border-color: var(--green); transform: scale(1.08);
  background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5.5 12.5l4 4 9-9'/></svg>") center / 13px no-repeat;
}
.pk-btn {
  margin-top: 6px; text-align: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--dark-green);
  border-radius: 999px; padding: 10px 0; opacity: 0.4; transition: opacity 0.25s ease, transform 0.15s ease;
}
.pk-btn.ready { opacity: 1; }
.flyer {
  position: absolute; z-index: 4; left: 0; top: 0; border-radius: 7px; pointer-events: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.75s cubic-bezier(0.55, 0, 0.3, 1), opacity 0.3s ease 0.5s;
}
.shield-glow {
  position: absolute; z-index: 1; left: 62%; top: 69%; width: 150px; height: 150px; margin: -75px 0 0 -75px;
  border-radius: 50%; background: radial-gradient(circle, rgba(168, 240, 123, 0.9) 0%, rgba(168, 240, 123, 0) 68%);
  opacity: 0; transform: scale(0.4); pointer-events: none;
}
.shield-glow.pulse { animation: glow 1.1s ease-out; }
@keyframes glow { 0% { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
.pk-badge {
  position: absolute; z-index: 3; left: 7%; top: 38%; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--dark-green); font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 10px 22px rgba(7, 60, 40, 0.22); opacity: 0; transform: translateY(-10px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pk-badge .lock { width: 14px; height: 14px; }
.pk-badge.show { opacity: 1; transform: none; }
@media (max-width: 520px) {
  .picker { width: 60%; transform: translateY(-50%) scale(0.8); }
  .picker.gone { transform: translateY(-50%) translateX(-24px) scale(0.75); }
  .pk-badge { font-size: 12px; }
}

/* Stage 2: the walk video with a live steps → Energy readout */
.hud {
  position: absolute; left: 14px; right: 14px; top: 14px;
  background: rgba(4, 56, 42, 0.86); color: #fff; border-radius: 18px; padding: 12px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; gap: 8px; font-size: 0.92rem;
}
.hud-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hud-label { color: var(--on-dark-2); font-weight: 600; font-size: 0.82rem; }
.hud-steps b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hud-energy { font-weight: 800; color: var(--lime); }
.hud-energy b { font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--lime)); box-shadow: 0 0 12px rgba(168, 240, 123, 0.6); }

/* Stage 2 extras: "+1 Energy" bubbles rising over the walk */
.floats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float {
  position: absolute; bottom: 30%; background: #fff; color: var(--dark-green); font-weight: 800; font-size: 0.9rem;
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  display: inline-flex; align-items: center; animation: floatUp 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.float .bolt { background: var(--green); }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(20px) scale(0.7); } 15% { opacity: 1; transform: translateY(0) scale(1.05); } 30% { transform: translateY(-14px) scale(1); } 100% { opacity: 0; transform: translateY(-120px); } }
.hud-energy.bump b { display: inline-block; animation: bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Stage 3: a real-looking iPhone running Pico's Block screen */
.stage-phone {
  aspect-ratio: auto; padding: 36px 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 217, 90, 0.55) 0 40px, transparent 41px),
    linear-gradient(180deg, var(--sky-bottom) 0%, #E6F7EA 60%, var(--pale-green) 100%);
}
.stage > .stage-pico { position: absolute; left: 3%; bottom: 10px; width: 118px; height: auto; object-fit: contain; z-index: 2; filter: drop-shadow(0 10px 14px rgba(7, 60, 40, 0.25)); animation: bob 4s ease-in-out infinite; }
.stage-phone.celebrate .stage-pico { animation: hop 0.6s ease-in-out 3; }
@keyframes hop { 50% { transform: translateY(-18px) rotate(-4deg); } }
@media (max-width: 520px) { .stage > .stage-pico { width: 72px; left: 0; } }

.iphone {
  --w: 272px;
  position: relative; z-index: 1; width: var(--w); aspect-ratio: 9 / 19.3; padding: 9px; border-radius: 50px;
  background: linear-gradient(145deg, #3A3F44, #16191C 40%, #2B3034);
  box-shadow: 0 0 0 1.5px #5B6166, 0 40px 70px -20px rgba(7, 60, 40, 0.45), 0 18px 30px -12px rgba(0, 0, 0, 0.35);
}
.hw { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2B3034, #50565B); }
.hw-action { left: -3px; top: 17%; height: 26px; }
.hw-vol1 { left: -3px; top: 25%; height: 46px; }
.hw-vol2 { left: -3px; top: 34%; height: 46px; }
.hw-power { right: -3px; top: 27%; height: 72px; }
.iphone-screen {
  position: relative; height: 100%; border-radius: 41px; overflow: hidden; color: #fff; font-size: 11px; line-height: 1.3;
  background: linear-gradient(180deg, #2A8A4C 0 150px, var(--page) 260px, var(--page-bottom) 100%);
}
.island { position: absolute; z-index: 5; left: 50%; top: 10px; width: 86px; height: 25px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.status { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 44px; padding: 0 22px 0 30px; display: flex; align-items: center; justify-content: space-between; }
.status-time { font-weight: 700; font-size: 13px; }
.status-icons { display: flex; gap: 5px; align-items: center; color: #fff; fill: currentColor; }

.scr-header { position: relative; height: 150px; }
.scr-header img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.scr-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, #2A8A4C 100%); }
.scr-title { position: absolute; z-index: 1; left: 14px; bottom: 22px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); }
.scr-title b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.scr-title span { font-size: 10.5px; font-weight: 600; opacity: 0.95; }

.scr-body { position: relative; margin-top: -14px; padding: 0 11px; display: grid; gap: 8px; }
.scr-card { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 17px; padding: 10px 12px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18); }
.cap { font-weight: 800; font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.cap-count { background: rgba(168, 240, 123, 0.18); color: var(--lime); border-radius: 999px; padding: 1px 7px; font-size: 10px; }

.energy-card { background: var(--card-raised); }
.ec-row { display: flex; justify-content: space-between; align-items: center; }
.ec-label { font-weight: 700; color: var(--on-dark-2); font-size: 10.5px; }
.ec-num { font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.ec-num .bolt { width: 11px; height: 15px; }
.ec-num.drop b { animation: drop 0.5s ease; display: inline-block; }
@keyframes drop { 40% { transform: translateY(3px) scale(0.9); color: var(--yellow); } }
.ec-bar { margin-top: 7px; height: 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.3); overflow: hidden; }
.ec-bar span { display: block; height: 100%; width: 70%; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--lime)); transition: width 0.8s ease; }

.apps-card { display: grid; gap: 7px; }
.app-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px; }
.ico { width: 26px; height: 26px; border-radius: 7px; display: block; transition: filter 0.4s ease; filter: saturate(0.35) brightness(0.7); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); }
.app-name { font-weight: 700; font-size: 11.5px; }
.app-state { font-style: normal; font-weight: 800; font-size: 9.5px; display: grid; }
.app-state > span { grid-area: 1 / 1; justify-self: end; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; transition: opacity 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.st-locked { background: rgba(255, 255, 255, 0.12); color: #fff; }
.st-locked .lock { width: 9px; height: 9px; filter: brightness(0) invert(1); }
.st-open { background: var(--lime); color: var(--dark-green); opacity: 0; transform: scale(0.6); }
.app-row.open .ico { filter: none; }
.app-row.open .st-locked { opacity: 0; transform: scale(0.6); }
.app-row.open .st-open { opacity: 1; transform: scale(1); }

.slot { display: grid; }
.slot > * { grid-area: 1 / 1; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.unlocked-card { opacity: 0; transform: translateY(10px) scale(0.97); pointer-events: none; display: flex; align-items: center; gap: 12px; border-color: rgba(168, 240, 123, 0.4); }
.slot.unlocked .unlock-card { opacity: 0; transform: translateY(-8px) scale(0.97); }
.slot.unlocked .unlocked-card { opacity: 1; transform: none; }
.pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.pills span {
  display: grid; justify-items: center; line-height: 1.05; padding: 6px 0; border-radius: 11px;
  background: rgba(255, 255, 255, 0.08); color: var(--on-dark-2); font-size: 8.5px; font-weight: 700;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.pills b { font-size: 13px; color: #fff; }
.pills span.on { background: var(--lime); color: var(--dark-green); }
.pills span.on b { color: var(--dark-green); }
.hint { text-align: center; color: var(--on-dark-2); font-size: 9.5px; font-weight: 600; margin: 8px 0 7px; }
.ph-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 999px;
  background: var(--lime); color: var(--dark-green); transition: transform 0.15s ease;
}
.ph-cta .bolt { width: 11px; height: 15px; margin: 0; }
.cta-text { display: grid; line-height: 1.15; }
.cta-text b { font-size: 11.5px; }
.cta-text small { font-size: 9px; font-weight: 700; opacity: 0.8; }
.pressed { transform: scale(0.94) !important; }

.uc-ring { position: relative; width: 58px; height: 58px; flex: none; }
.uc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.uc-ring .track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 6; }
.uc-ring .fill { fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 169.6; stroke-dashoffset: 0; }
.uc-ring .lock-open { position: absolute; inset: 0; margin: auto; }
.uc-text { display: grid; }
.uc-text b { font-size: 24px; font-weight: 800; color: var(--lime); font-variant-numeric: tabular-nums; line-height: 1.1; }
.uc-text small { color: var(--on-dark-2); font-weight: 600; font-size: 9.5px; }
.lock-open {
  display: block; width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A8F07B'><path d='M17 10H9V8a3 3 0 0 1 5.8-1.1 1 1 0 1 0 1.9-.6A5 5 0 0 0 7 8v2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2h-1Z'/></svg>") center / contain no-repeat;
}
.lock-open-dark {
  width: 22px; height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23075B3B'><path d='M17 10H9V8a3 3 0 0 1 5.8-1.1 1 1 0 1 0 1.9-.6A5 5 0 0 0 7 8v2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2h-1Z'/></svg>");
}

/* The confirmation popup (same as the app's) */
.ph-dim { position: absolute; inset: 0; z-index: 6; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.25s ease; }
.ph-modal {
  position: absolute; z-index: 7; left: 14px; right: 14px; top: 50%;
  background: var(--card-raised); border: 1px solid rgba(168, 240, 123, 0.25); border-radius: 22px;
  padding: 16px 14px 8px; display: grid; justify-items: center; text-align: center; gap: 5px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(-50%) translateY(18px) scale(0.9); transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.pm-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; box-shadow: 0 0 0 7px rgba(168, 240, 123, 0.16); margin-bottom: 4px; }
.pm-title { font-size: 15px; font-weight: 800; }
.pm-sub { color: var(--on-dark-2); font-size: 10px; font-weight: 600; }
.pm-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; margin: 6px 0 4px; }
.pm-figs div { background: rgba(0, 0, 0, 0.28); border-radius: 12px; padding: 6px 0; display: grid; }
.pm-figs div.hl { background: rgba(168, 240, 123, 0.14); }
.pm-figs b { font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pm-figs .bolt { width: 9px; height: 12px; margin-right: 4px; }
.pm-figs small { color: var(--on-dark-2); font-size: 8.5px; font-weight: 700; }
.pm-confirm { width: 100%; background: var(--lime); color: var(--dark-green); font-weight: 800; font-size: 11.5px; border-radius: 999px; padding: 10px 0; transition: transform 0.15s ease; }
.pm-cancel { color: var(--on-dark-2); font-weight: 700; font-size: 10.5px; padding: 6px 0 4px; }
.iphone-screen.modal .ph-dim { opacity: 1; }
.iphone-screen.modal .ph-modal { opacity: 1; transform: translateY(-50%); }

.ph-toast {
  position: absolute; z-index: 8; left: 14px; right: 14px; top: 50px; display: flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.96); color: var(--dark-green); font-weight: 800; font-size: 10.5px;
  padding: 9px 12px; border-radius: 16px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translateY(-30px); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.ph-toast .lock { width: 12px; height: 12px; flex: none; }
.ph-toast.show { opacity: 1; transform: none; }
.home-bar { position: absolute; z-index: 9; left: 50%; bottom: 7px; width: 104px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.75); transform: translateX(-50%); }

.touch {
  position: absolute; z-index: 10; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55); border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); opacity: 0; pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s ease;
}
.touch::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.touch.show { opacity: 1; }
.touch.down { background: rgba(255, 255, 255, 0.8); }
.touch.down::after { animation: ripple 0.5s ease-out; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }

@media (max-width: 400px) { .iphone { --w: 250px; } }
@media (prefers-reduced-motion: reduce) { .stage > .stage-pico { animation: none; } .touch { display: none; } }

/* Worlds: jigsaw cards */
.world .art { position: absolute; inset: 0; transition: transform 0.5s ease; }
.world:hover .art { transform: scale(1.04); }
.world .art img { width: 100%; height: 100%; object-fit: cover; }
.world svg.cuts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cuts .shade { fill: none; stroke: rgba(0, 0, 0, 0.32); stroke-width: 4.2; transform: translate(1.2px, 1.6px); }
.cuts .line { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-width: 2.4; }
.cuts .hole { fill: rgba(247, 255, 242, 0.94); stroke: rgba(60, 203, 114, 0.95); stroke-width: 2.4; stroke-dasharray: 6 4; }
.world .wname { z-index: 1; display: inline-flex; gap: 6px; align-items: baseline; }
.world .wname small { font-size: 0.75rem; color: var(--green); font-weight: 800; }

/* Worlds: a jigsaw that assembles itself */
.assemble { margin-top: 56px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.board { position: relative; border-radius: 26px; background: #fff; padding: 18px; box-shadow: var(--shadow-light); border: 1px solid var(--stroke); }
.board svg { display: block; width: 100%; height: auto; overflow: visible; }
.board .slot-outline { fill: var(--pale-green); stroke: rgba(60, 203, 114, 0.55); stroke-width: 1.2; stroke-dasharray: 5 4; }
.board .piece { transform-box: fill-box; transform-origin: center; opacity: 0; transition: transform 0.75s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.35s ease; }
.board .piece.placed { opacity: 1; transform: none !important; }
.board .piece .edge { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.2; transition: opacity 0.8s ease 0.3s; }
.board .piece .edge-shadow { fill: none; stroke: rgba(0, 0, 0, 0.22); stroke-width: 2.2; transform: translate(0.6px, 0.8px); transition: opacity 0.8s ease 0.3s; }
.board.complete { box-shadow: 0 0 0 6px rgba(168, 240, 123, 0.45), var(--shadow-light); transition: box-shadow 0.4s ease; }
.board.complete .piece .edge, .board.complete .piece .edge-shadow { opacity: 0; }
.assemble-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; }
.assemble-copy p { margin-top: 12px; }
.piece-count { margin-top: 22px; }
.pc-num { font-weight: 700; color: var(--ink-2); }
.pc-num b { color: var(--ink); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.pc-bar { margin-top: 8px; height: 12px; border-radius: 99px; background: var(--pale-green); overflow: hidden; }
.pc-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--lime)); transition: width 0.5s ease; }
.board-done {
  margin-top: 18px; display: inline-block; background: var(--dark-green); color: #fff; font-weight: 800;
  padding: 10px 16px; border-radius: 999px; opacity: 0; transform: translateY(8px) scale(0.95);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.board-done.show { opacity: 1; transform: none; }
@media (max-width: 820px) { .assemble { grid-template-columns: 1fr; gap: 24px; } }

/* Video card (privacy) */
.video-card { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-light); aspect-ratio: 1; }
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Worlds */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.world {
  position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-light);
}
.world span {
  position: absolute; left: 14px; bottom: 12px; background: rgba(255, 255, 255, 0.92);
  color: var(--dark-green); font-weight: 800; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 0.9rem;
}
@media (max-width: 820px) { .worlds { grid-template-columns: repeat(2, 1fr); } }

/* Push-ups: Pico's loop with a live counter, and the rate per difficulty */
.pushups { background: linear-gradient(180deg, var(--cream), var(--pale-green) 55%, var(--cream)); }
.pu-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stage-pushups { aspect-ratio: 1 / 1; }
.pu-hud {
  position: absolute; left: 14px; right: 14px; top: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(4, 56, 42, 0.86); color: #fff; border-radius: 18px; padding: 10px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pu-count { display: flex; align-items: baseline; gap: 8px; }
.pu-count b { font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pu-count span { color: var(--on-dark-2); font-weight: 700; font-size: 0.9rem; }
.pu-energy { font-weight: 800; color: var(--lime); font-size: 1.05rem; }
.pu-energy b { font-variant-numeric: tabular-nums; }
.pu-count.bump b, .pu-energy.bump b { display: inline-block; animation: bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.stage-pushups .float { bottom: 56%; white-space: nowrap; }
.stage-situps .float { bottom: 44%; }
.float.half { background: rgba(255, 255, 255, 0.85); color: var(--ink-2); }
.pu-live {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.92); color: var(--dark-green); font-weight: 800; font-size: 0.82rem;
  padding: 7px 12px; border-radius: var(--radius-pill); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.pu-live .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(60, 203, 114, 0.25); animation: recPulse 1.6s ease-in-out infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 7px rgba(60, 203, 114, 0.05); } }
.pu-copy .lede { margin-left: 0; }
.pu-copy h2 { margin-top: 2px; }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.rate {
  font: inherit; color: var(--ink); cursor: pointer; text-align: left;
  display: grid; gap: 2px; padding: 14px 14px 12px;
  background: #fff; border: 2px solid var(--stroke); border-radius: 18px;
  box-shadow: var(--shadow-light);
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.rate:hover { transform: translateY(-2px); }
.rate:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.rate-name { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.rate b { font-size: 1.05rem; }
.rate-eq { font-weight: 800; color: var(--dark-green); }
.rate.on { border-color: var(--green); background: #F2FFEA; }
.rate.on .rate-name { color: var(--dark-green); }
.pu-copy .list { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { .pu-live .rec { animation: none; } }
@media (max-width: 820px) {
  .pu-split { grid-template-columns: 1fr; gap: 28px; }
  .stage-situps { order: -1; }
}
@media (max-width: 560px) {
  .rates { grid-template-columns: 1fr; gap: 8px; }
  .rate { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; }
  .rate-name { min-width: 72px; }
}

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 28px; box-shadow: var(--shadow-light); }
.list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 12px; align-items: flex-start; }
.list li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075B3B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 14px no-repeat;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split > :last-child { order: -1; } }

/* FAQ */
.faq { max-width: 44rem; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--stroke); border-radius: 18px; padding: 4px 22px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--green); font-weight: 800; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* Final call */
.cta {
  background: linear-gradient(180deg, var(--pale-green), var(--cream));
}
.cta .card {
  background: var(--dark-green); color: #fff; border-radius: 32px; padding: 56px 32px; text-align: center;
  display: grid; justify-items: center; gap: 14px; box-shadow: 0 24px 60px rgba(7, 91, 59, 0.28);
}
.cta .card img { width: 120px; }
.cta .card p { color: var(--on-dark-2); max-width: 34rem; }

/* Footer */
.site-footer { background: var(--page-bottom); color: var(--on-dark-2); padding: 40px 0; font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Legal pages */
.legal-hero { background: linear-gradient(180deg, var(--pale-green), var(--cream)); padding: 64px 0 36px; }
.legal-hero .wrap { max-width: 44rem; }
.legal-hero .eyebrow { background: #fff; }
.legal-hero .date { margin-top: 10px; }
.legal { padding: 20px 0 88px; }
.legal .wrap { max-width: 44rem; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p { margin: 0 0 14px; color: rgba(18, 53, 42, 0.86); }
.legal ul { margin: 0 0 16px; padding-left: 22px; color: rgba(18, 53, 42, 0.86); }
.legal li { margin: 6px 0; }
.legal .summary {
  background: #fff; border: 1px solid var(--stroke); border-radius: var(--radius-card); padding: 22px 26px;
  box-shadow: var(--shadow-light); margin: 12px 0 8px;
}
.legal .summary h2 { margin-top: 0; }
.legal-switch { display: flex; gap: 10px; margin: 24px 0 0; flex-wrap: wrap; }
.legal-switch a { text-decoration: none; }
.legal-switch .btn { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

/* Guides: the hub and the article pages */
.guide-hero { background: linear-gradient(180deg, var(--pale-green), var(--cream)); padding: 40px 0 36px; }
.guide-hero .wrap { max-width: 44rem; }
.guide-hero .eyebrow { background: #fff; }
.guide-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.12; margin: 10px 0 0; }
.guide-hero .lede { margin: 14px 0 0; max-width: 36rem; }
.crumbs { font-size: 0.85rem; font-weight: 700; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--dark-green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }

.guide { padding: 28px 0 72px; }
.guide .wrap { max-width: 44rem; }
.guide h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.guide h2:first-child { margin-top: 0; }
.guide h3 { font-size: 1.12rem; margin: 28px 0 8px; color: var(--dark-green); }
.guide p { margin: 0 0 15px; color: rgba(18, 53, 42, 0.86); line-height: 1.65; }
.guide ul, .guide ol { margin: 0 0 18px; padding-left: 24px; color: rgba(18, 53, 42, 0.86); }
.guide li { margin: 8px 0; line-height: 1.6; }
.guide a { color: var(--dark-green); font-weight: 700; }
.guide .callout {
  background: #fff; border-left: 4px solid var(--green); border-radius: 0 14px 14px 0;
  padding: 16px 20px; margin: 22px 0; box-shadow: var(--shadow-light); color: var(--ink);
}

/* Closing download block on every guide */
.guide-cta { background: linear-gradient(180deg, var(--cream), var(--pale-green)); padding: 56px 0 64px; text-align: center; }
.guide-cta h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
.guide-cta .lede { margin: 12px auto 24px; max-width: 34rem; }
.guide-cta .store-badge { display: inline-block; }

/* Hub grid */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card {
  display: block; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--stroke); border-radius: var(--radius-card); padding: 22px 24px;
  box-shadow: var(--shadow-light); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11, 59, 38, 0.14); }
.guide-card .eyebrow { background: var(--pale-green); font-size: 0.68rem; }
.guide-card h2 { font-size: 1.2rem; margin: 10px 0 8px; }
.guide-card p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; margin: 0; }
.guide-more { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--dark-green); font-size: 0.9rem; }
.guide-more::after { content: " →"; }
@media (max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; }
}
