Free
Hero
Cardiora Hero
A hero block extracted from the Cardiora template, available in Tailwind CSS.
0
15
A hero block extracted from the Cardiora template, available in Tailwind CSS.
Free download · up to 5 blocks per day. Unlimited with All-Access
<!DOCTYPE html>
<html lang="en">
<head>
<script>
window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cardiora Hero | Tailwind CSS UI Block</title>
<meta name="description" content="A hero block extracted from the Cardiora template, available in Tailwind CSS.">
<meta name="keywords" content="Cardiora, Tailwind CSS template, HTML website template, health app template, heart rate monitor, wellbeing app, pulse tracking, wearables, fitness dashboard, telehealth">
<meta name="author" content="Let's templates">
<link rel="canonical" href="">
<meta property="og:type" content="product">
<meta property="og:site_name" content="Let's templates">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="">
<meta property="og:title" content="Cardiora | Tailwind CSS Health & Fitness Template">
<meta property="og:description" content="A blush and coral Tailwind CSS health app template with live pulse widgets, a tap-to-measure pulse checker and analytics, programs and pricing pages.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Cardiora template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Cardiora | Tailwind CSS Health & Fitness Template">
<meta name="twitter:description" content="A blush and coral Tailwind CSS health app template with live pulse widgets, a tap-to-measure pulse checker and analytics, programs and pricing pages.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Cardiora template preview">
<script src="https://cdn.tailwindcss.com/3.4.17"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { blush: { DEFAULT: '#fff4f0', deep: '#ffe4da' }, peach: '#ffd2bd', rose: '#f7a8c8', orchid: '#d97ef0', lilac: '#b9a4f5', coral: { DEFAULT: '#ec6a50', deep: '#d4523a' }, teal: { DEFAULT: '#159a9c', deep: '#0f7b7d' }, ink: '#141414', lime: '#86d01f' },
fontFamily: { sans: ['"Plus Jakarta Sans"', 'sans-serif'] }
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-out both page-fade-out; }
::view-transition-new(root) { animation: 220ms ease-in both page-fade-in; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.sparkles { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 22q1 9 10 10q-9 1-10 10q-1-9-10-10q9-1 10-10z' fill='%23f2ecea'/%3E%3C/svg%3E"); }
.stripes { background-image: repeating-linear-gradient(135deg, currentColor 0 2px, transparent 2px 7px); }
.beat { animation: beat 1s ease-in-out infinite; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-ready [data-chart] .bar { transform: scaleY(0); }
[data-chart] .bar { transform-origin: bottom; transform-box: fill-box; transition: transform .7s ease; transition-delay: var(--bar-delay, 0ms); }
.reveal-ready [data-chart].is-visible .bar { transform: none; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.beat { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-blush font-sans text-ink antialiased">
<!-- block:start hero -->
<section class="mx-auto max-w-7xl px-5 pb-16 pt-6 md:px-8">
<div class="sparkles relative overflow-hidden rounded-[2.5rem] bg-white p-5 shadow-[0_30px_80px_-40px_rgba(236,106,80,.45)] md:p-10">
<div class="pointer-events-none absolute -right-24 -top-24 h-72 w-72 rounded-full bg-orchid/30 blur-3xl" aria-hidden="true"></div>
<div class="grid gap-10 lg:grid-cols-[1fr_1.15fr]">
<div class="relative z-10">
<div class="relative">
<span class="absolute -left-2 top-2 hidden h-36 w-36 md:block" aria-hidden="true"><span class="absolute left-1/2 top-0 h-full w-9 -translate-x-1/2 rotate-45 rounded-md bg-gradient-to-b from-peach to-rose/70"></span><span class="absolute left-1/2 top-0 h-full w-9 -translate-x-1/2 -rotate-45 rounded-md bg-gradient-to-b from-rose/60 to-peach"></span></span>
<h1 class="text-5xl font-bold leading-[1.05] tracking-tight sm:text-6xl lg:text-7xl" data-reveal>
<span class="block md:pl-40">Stay in</span>
<span class="flex items-center gap-3 md:pl-40">tune <span class="hidden -space-x-3 sm:flex" aria-hidden="true"><span class="grid h-14 w-14 place-items-center rounded-full bg-gradient-to-br from-peach to-rose text-2xl"><i class="fa-solid fa-wave-square"></i></span><span class="grid h-14 w-14 place-items-center rounded-full bg-ink text-xl text-white"><i class="fa-solid fa-ranking-star"></i></span></span></span>
<span class="flex items-center gap-4">with your <span class="grid h-16 w-16 shrink-0 place-items-center rounded-full bg-gradient-to-br from-orchid to-lilac text-xl text-white" aria-hidden="true"><i class="fa-solid fa-heart-pulse"></i></span></span>
<span class="flex items-center gap-5"><span class="grid h-14 w-24 shrink-0 place-items-center rounded-full bg-coral text-2xl text-white" aria-hidden="true"><i class="fa-solid fa-staff-snake"></i></span><span class="bg-gradient-to-r from-orchid via-lilac to-rose bg-clip-text pb-2 text-transparent">well-being</span></span>
</h1>
<p class="mt-4 flex max-w-sm items-center gap-3 text-sm font-semibold leading-snug" data-reveal style="--reveal-delay: 80ms"><span class="h-px w-10 bg-ink/30" aria-hidden="true"></span>Live pulse tracking is now part of every plan.</p>
</div>
<div class="mt-10 rounded-[2rem] border border-ink/10 bg-white p-5" data-rr>
<div class="flex items-start justify-between gap-4">
<div class="flex items-center gap-4">
<span class="grid h-14 w-14 place-items-center rounded-full bg-lime/10 text-xl text-lime"><i class="fa-solid fa-wave-square" aria-hidden="true"></i></span>
<p><span class="text-3xl font-bold" data-rr-value>791</span><span class="text-ink/60">/ms</span><span class="block text-sm font-semibold">R-R interval</span></p>
</div>
<a href="analytics.html" class="grid h-10 w-10 place-items-center rounded-full hover:bg-blush" aria-label="Open heart analytics"><i class="fa-solid fa-ellipsis" aria-hidden="true"></i></a>
</div>
<div class="mt-4 grid grid-cols-4 gap-2" role="group" aria-label="Recent R-R readings">
<button type="button" data-rr-reading="850" aria-pressed="false" class="group grid gap-2 text-sm font-medium">
<span class="stripes h-14 rounded-xl border-b-4 border-ink/10 text-ink/10 transition group-hover:text-ink/20 group-aria-pressed:border-lime group-aria-pressed:text-lime/50"></span>
<span class="rounded-full border border-ink/10 py-2 transition group-aria-pressed:border-ink group-aria-pressed:bg-ink group-aria-pressed:text-white">850ms</span>
</button>
<button type="button" data-rr-reading="841" aria-pressed="false" class="group grid gap-2 text-sm font-medium">
<span class="stripes h-14 rounded-xl border-b-4 border-ink/10 text-ink/10 transition group-hover:text-ink/20 group-aria-pressed:border-lime group-aria-pressed:text-lime/50"></span>
<span class="rounded-full border border-ink/10 py-2 transition group-aria-pressed:border-ink group-aria-pressed:bg-ink group-aria-pressed:text-white">841ms</span>
</button>
<button type="button" data-rr-reading="871" aria-pressed="false" class="group grid gap-2 text-sm font-medium">
<span class="stripes h-14 rounded-xl border-b-4 border-ink/10 text-ink/10 transition group-hover:text-ink/20 group-aria-pressed:border-lime group-aria-pressed:text-lime/50"></span>
<span class="rounded-full border border-ink/10 py-2 transition group-aria-pressed:border-ink group-aria-pressed:bg-ink group-aria-pressed:text-white">871ms</span>
</button>
<button type="button" data-rr-reading="881" aria-pressed="false" class="group grid gap-2 text-sm font-medium">
<span class="stripes h-14 rounded-xl border-b-4 border-ink/10 text-ink/10 transition group-hover:text-ink/20 group-aria-pressed:border-lime group-aria-pressed:text-lime/50"></span>
<span class="rounded-full border border-ink/10 py-2 transition group-aria-pressed:border-ink group-aria-pressed:bg-ink group-aria-pressed:text-white">881ms</span>
</button>
</div>
</div>
<div class="mt-4 rounded-[2rem] bg-gradient-to-br from-rose/60 via-peach/70 to-orchid/40 p-5" data-categories>
<div class="flex flex-wrap gap-2" role="group" aria-label="Health categories">
<button type="button" data-category aria-pressed="false" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Heart health</button>
<button type="button" data-category aria-pressed="false" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Fitness</button>
<button type="button" data-category aria-pressed="true" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Sleep</button>
<button type="button" data-category aria-pressed="false" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Diet</button>
<button type="button" data-category aria-pressed="false" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Running</button>
<button type="button" data-category aria-pressed="false" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Stress</button>
<button type="button" data-category aria-pressed="false" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Plant food</button>
<button type="button" data-category aria-pressed="true" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Recovery</button>
<button type="button" data-category aria-pressed="false" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Lifestyle</button>
<button type="button" data-category aria-pressed="false" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Weight</button>
<button type="button" data-category aria-pressed="false" class="rounded-full bg-white/50 px-4 py-2 text-sm font-medium transition hover:bg-white aria-pressed:bg-ink aria-pressed:text-white">Immunity</button>
</div>
<div class="mt-5 flex items-center justify-between gap-4">
<p class="font-semibold">Following <span data-category-count>2</span> categories</p>
<a href="programs.html" class="grid h-14 w-14 place-items-center rounded-full bg-white text-lg transition hover:bg-ink hover:text-white" aria-label="See programs for your categories"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></a>
</div>
</div>
</div>
<div class="relative">
<div class="relative min-h-[26rem] overflow-hidden rounded-[2rem] bg-gradient-to-b from-white to-blush lg:h-[40rem]">
<img src="https://images.unsplash.com/photo-1594824476967-48c8b964273f?auto=format&fit=crop&w=900&h=1100&q=80" alt="Smiling nurse in teal scrubs with a stethoscope" class="absolute inset-0 h-full w-full object-cover object-[50%_15%]">
<svg viewBox="0 0 400 300" class="absolute inset-x-0 top-[12%] h-[55%] w-full" preserveAspectRatio="none" aria-hidden="true"><path d="M0 250 C60 240 90 150 130 160 C170 170 175 230 210 200 C245 170 250 40 290 40 C330 40 345 200 400 240" fill="none" stroke="#ec6a50" stroke-width="3" opacity=".8"/><line x1="290" y1="44" x2="290" y2="200" stroke="#ec6a50" stroke-dasharray="4 4" opacity=".6"/><circle cx="290" cy="40" r="7" fill="#ec6a50"/></svg>
<p class="absolute right-5 top-6 text-right"><span class="block text-6xl font-bold leading-none" data-bpm>63</span><span class="text-lg text-ink/70">bpm · <span data-bpm-zone>mid range</span></span></p>
<div class="absolute bottom-5 right-5 rounded-3xl bg-white/80 p-3 backdrop-blur">
<p class="text-sm font-semibold leading-tight">Your friends<br>are already here</p>
<div class="mt-2 flex -space-x-3"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-1.jpg" alt="" class="h-10 w-10 rounded-full border-2 border-white object-cover"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-4.jpg" alt="" class="h-10 w-10 rounded-full border-2 border-white object-cover"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-6.jpg" alt="" class="h-10 w-10 rounded-full border-2 border-white object-cover"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-9.jpg" alt="" class="h-10 w-10 rounded-full border-2 border-white object-cover"></div>
</div>
</div>
<div class="relative z-10 mt-4 grid grid-cols-2 gap-3 sm:grid-cols-[1.7fr_1fr_1fr] lg:-mt-40 lg:ml-[-6%]">
<div class="col-span-2 overflow-hidden rounded-[2rem] bg-teal/85 p-3 sm:col-span-1 text-white backdrop-blur-xl" data-insights>
<div class="grid grid-cols-3 gap-1 rounded-full bg-white/20 p-1" role="tablist" aria-label="Health insights">
<button type="button" role="tab" id="insight-tab-diagnosis" aria-controls="insight-diagnosis" aria-selected="true" tabindex="0" class="rounded-full px-1 py-2 text-xs font-semibold transition hover:bg-white/20 aria-selected:bg-white aria-selected:text-coral">Diagnosis</button>
<button type="button" role="tab" id="insight-tab-circulation" aria-controls="insight-circulation" aria-selected="false" tabindex="-1" class="rounded-full px-1 py-2 text-xs font-semibold transition hover:bg-white/20 aria-selected:bg-white aria-selected:text-coral">Circulation</button>
<button type="button" role="tab" id="insight-tab-option" aria-controls="insight-option" aria-selected="false" tabindex="-1" class="rounded-full px-1 py-2 text-xs font-semibold transition hover:bg-white/20 aria-selected:bg-white aria-selected:text-coral">Option</button>
</div>
<div id="insight-diagnosis" role="tabpanel" aria-labelledby="insight-tab-diagnosis" class="px-2 pb-1 pt-4" >
<div class="flex items-center justify-between gap-2">
<div class="flex -space-x-2"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-2.jpg" alt="" class="h-9 w-9 rounded-full border-2 border-teal object-cover"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-3.jpg" alt="" class="h-9 w-9 rounded-full border-2 border-teal object-cover"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-7.jpg" alt="" class="h-9 w-9 rounded-full border-2 border-teal object-cover"></div>
<a href="analytics.html" class="flex items-center gap-2 rounded-full bg-ink px-4 py-2 text-xs font-semibold transition hover:bg-coral">Explore<i class="fa-solid fa-chevron-right text-[10px]" aria-hidden="true"></i></a>
</div>
<p class="mt-3 font-bold">Share your result</p>
<p class="text-xs text-white/75">Send this week's heart summary to friends or your doctor in one tap.</p>
<div class="relative mt-2 pt-10">
<svg viewBox="0 0 240 70" class="h-16 w-full" aria-hidden="true">
<rect x="0" y="52.0" width="2" height="18.0" rx="1" fill="#141414"/><rect x="5" y="37.533657470725444" width="2" height="32.466342529274556" rx="1" fill="#141414"/><rect x="10" y="26.847225956552236" width="2" height="43.152774043447764" rx="1" fill="#141414"/><rect x="15" y="34.003041413549894" width="2" height="35.996958586450106" rx="1" fill="#141414"/><rect x="20" y="34.43292275769275" width="2" height="35.56707724230725" rx="1" fill="#141414"/><rect x="25" y="37.25623144914918" width="2" height="32.74376855085082" rx="1" fill="#141414"/><rect x="30" y="50.67666690449474" width="2" height="19.323333095505266" rx="1" fill="#141414"/><rect x="35" y="47.798651738435304" width="2" height="22.201348261564696" rx="1" fill="#141414"/><rect x="40" y="40.007403700638484" width="2" height="29.992596299361516" rx="1" fill="#141414"/><rect x="45" y="41.26266443819887" width="2" height="28.73733556180113" rx="1" fill="#141414"/><rect x="50" y="31.16769826925389" width="2" height="38.83230173074611" rx="1" fill="#141414"/><rect x="55" y="25.251915413221127" width="2" height="44.74808458677887" rx="1" fill="#141414"/><rect x="60" y="37.27602462983996" width="2" height="32.72397537016004" rx="1" fill="#141414"/><rect x="65" y="42.35866710677165" width="2" height="27.641332893228352" rx="1" fill="#141414"/><rect x="70" y="38.662326047326495" width="2" height="31.337673952673505" rx="1" fill="#141414"/><rect x="75" y="37.801152727838804" width="2" height="32.198847272161196" rx="1" fill="#141414"/><rect x="80" y="30.096635561915505" width="2" height="39.903364438084495" rx="1" fill="#141414"/><rect x="85" y="28.242462974557917" width="2" height="41.75753702544208" rx="1" fill="#141414"/><rect x="90" y="42.3161637240513" width="2" height="27.6838362759487" rx="1" fill="#141414"/><rect x="95" y="44.7313737634608" width="2" height="25.2686262365392" rx="1" fill="#141414"/><rect x="100" y="43.96299622473687" width="2" height="26.03700377526313" rx="1" fill="#141414"/><rect x="105" y="50.23186046244399" width="2" height="19.768139537556014" rx="1" fill="#141414"/><rect x="110" y="40.35514978976491" width="2" height="29.64485021023509" rx="1" fill="#141414"/><rect x="115" y="29.361909231810756" width="2" height="40.638090768189244" rx="1" fill="#141414"/><rect x="120" y="33.05447433785645" width="2" height="36.94552566214355" rx="1" fill="#141414"/><rect x="125" y="30.193139004391007" width="2" height="39.80686099560899" rx="1" fill="#141414"/><rect x="130" y="33.159265221201466" width="2" height="36.840734778798534" rx="1" fill="#141414"/><rect x="135" y="51.72763233166658" width="2" height="18.272367668333423" rx="1" fill="#141414"/><rect x="140" y="37.94236318066386" width="2" height="32.05763681933614" rx="1" fill="#141414"/><rect x="145" y="27.55991866707859" width="2" height="42.44008133292141" rx="1" fill="#141414"/><rect x="150" y="35.01885516490893" width="2" height="34.98114483509107" rx="1" fill="#141414"/><rect x="155" y="35.56527600408698" width="2" height="34.43472399591302" rx="1" fill="#141414"/><rect x="160" y="38.20524408282078" width="2" height="31.794755917179216" rx="1" fill="#141414"/><rect x="165" y="51.15794377501466" width="2" height="18.842056224985342" rx="1" fill="#141414"/><rect x="170" y="47.66850919091203" width="2" height="22.331490809087967" rx="1" fill="#86d01f"/><rect x="175" y="39.326092330936696" width="2" height="30.673907669063304" rx="1" fill="#86d01f"/><rect x="180" y="40.266082723945544" width="2" height="29.733917276054456" rx="1" fill="#86d01f"/><rect x="185" y="30.160897942070754" width="2" height="39.839102057929246" rx="1" fill="#86d01f"/><rect x="190" y="24.47425017931515" width="2" height="45.52574982068485" rx="1" fill="#86d01f"/><rect x="195" y="36.80091094741334" width="2" height="33.19908905258666" rx="1" fill="#86d01f"/><rect x="200" y="42.07445157110262" width="2" height="27.92554842889738" rx="1" fill="#141414"/><rect x="205" y="38.98220522315251" width="2" height="31.017794776847488" rx="1" fill="#141414"/><rect x="210" y="38.3726377081936" width="2" height="31.6273622918064" rx="1" fill="#141414"/><rect x="215" y="31.004191368280686" width="2" height="38.995808631719314" rx="1" fill="#141414"/><rect x="220" y="29.380747925089445" width="2" height="40.619252074910555" rx="1" fill="#141414"/><rect x="225" y="43.42264097548892" width="2" height="26.577359024511082" rx="1" fill="#141414"/><rect x="230" y="45.49541801449858" width="2" height="24.504581985501414" rx="1" fill="#141414"/><rect x="235" y="43.83906225902293" width="2" height="26.16093774097707" rx="1" fill="#141414"/>
</svg>
<p class="absolute top-0 text-xs font-semibold" style="left: 70.8%"><i class="fa-solid fa-circle-check text-lime" aria-hidden="true"></i> Goal <span class="text-lg font-bold">784<span class="text-xs">bp</span></span></p>
</div>
</div>
<div id="insight-circulation" role="tabpanel" aria-labelledby="insight-tab-circulation" class="px-2 pb-1 pt-4" hidden>
<div class="flex items-center justify-between gap-2">
<div class="flex -space-x-2"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-2.jpg" alt="" class="h-9 w-9 rounded-full border-2 border-teal object-cover"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-3.jpg" alt="" class="h-9 w-9 rounded-full border-2 border-teal object-cover"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-7.jpg" alt="" class="h-9 w-9 rounded-full border-2 border-teal object-cover"></div>
<a href="analytics.html" class="flex items-center gap-2 rounded-full bg-ink px-4 py-2 text-xs font-semibold transition hover:bg-coral">Explore<i class="fa-solid fa-chevron-right text-[10px]" aria-hidden="true"></i></a>
</div>
<p class="mt-3 font-bold">Blood pressure steady</p>
<p class="text-xs text-white/75">Your average this week sits comfortably in the healthy range.</p>
<div class="relative mt-2 pt-10">
<svg viewBox="0 0 240 70" class="h-16 w-full" aria-hidden="true">
<rect x="0" y="52.0" width="2" height="18.0" rx="1" fill="#141414"/><rect x="5" y="37.533657470725444" width="2" height="32.466342529274556" rx="1" fill="#141414"/><rect x="10" y="26.847225956552236" width="2" height="43.152774043447764" rx="1" fill="#141414"/><rect x="15" y="34.003041413549894" width="2" height="35.996958586450106" rx="1" fill="#141414"/><rect x="20" y="34.43292275769275" width="2" height="35.56707724230725" rx="1" fill="#141414"/><rect x="25" y="37.25623144914918" width="2" height="32.74376855085082" rx="1" fill="#141414"/><rect x="30" y="50.67666690449474" width="2" height="19.323333095505266" rx="1" fill="#141414"/><rect x="35" y="47.798651738435304" width="2" height="22.201348261564696" rx="1" fill="#141414"/><rect x="40" y="40.007403700638484" width="2" height="29.992596299361516" rx="1" fill="#141414"/><rect x="45" y="41.26266443819887" width="2" height="28.73733556180113" rx="1" fill="#141414"/><rect x="50" y="31.16769826925389" width="2" height="38.83230173074611" rx="1" fill="#141414"/><rect x="55" y="25.251915413221127" width="2" height="44.74808458677887" rx="1" fill="#141414"/><rect x="60" y="37.27602462983996" width="2" height="32.72397537016004" rx="1" fill="#141414"/><rect x="65" y="42.35866710677165" width="2" height="27.641332893228352" rx="1" fill="#141414"/><rect x="70" y="38.662326047326495" width="2" height="31.337673952673505" rx="1" fill="#141414"/><rect x="75" y="37.801152727838804" width="2" height="32.198847272161196" rx="1" fill="#141414"/><rect x="80" y="30.096635561915505" width="2" height="39.903364438084495" rx="1" fill="#141414"/><rect x="85" y="28.242462974557917" width="2" height="41.75753702544208" rx="1" fill="#141414"/><rect x="90" y="42.3161637240513" width="2" height="27.6838362759487" rx="1" fill="#141414"/><rect x="95" y="44.7313737634608" width="2" height="25.2686262365392" rx="1" fill="#141414"/><rect x="100" y="43.96299622473687" width="2" height="26.03700377526313" rx="1" fill="#141414"/><rect x="105" y="50.23186046244399" width="2" height="19.768139537556014" rx="1" fill="#141414"/><rect x="110" y="40.35514978976491" width="2" height="29.64485021023509" rx="1" fill="#86d01f"/><rect x="115" y="29.361909231810756" width="2" height="40.638090768189244" rx="1" fill="#86d01f"/><rect x="120" y="33.05447433785645" width="2" height="36.94552566214355" rx="1" fill="#86d01f"/><rect x="125" y="30.193139004391007" width="2" height="39.80686099560899" rx="1" fill="#86d01f"/><rect x="130" y="33.159265221201466" width="2" height="36.840734778798534" rx="1" fill="#86d01f"/><rect x="135" y="51.72763233166658" width="2" height="18.272367668333423" rx="1" fill="#86d01f"/><rect x="140" y="37.94236318066386" width="2" height="32.05763681933614" rx="1" fill="#141414"/><rect x="145" y="27.55991866707859" width="2" height="42.44008133292141" rx="1" fill="#141414"/><rect x="150" y="35.01885516490893" width="2" height="34.98114483509107" rx="1" fill="#141414"/><rect x="155" y="35.56527600408698" width="2" height="34.43472399591302" rx="1" fill="#141414"/><rect x="160" y="38.20524408282078" width="2" height="31.794755917179216" rx="1" fill="#141414"/><rect x="165" y="51.15794377501466" width="2" height="18.842056224985342" rx="1" fill="#141414"/><rect x="170" y="47.66850919091203" width="2" height="22.331490809087967" rx="1" fill="#141414"/><rect x="175" y="39.326092330936696" width="2" height="30.673907669063304" rx="1" fill="#141414"/><rect x="180" y="40.266082723945544" width="2" height="29.733917276054456" rx="1" fill="#141414"/><rect x="185" y="30.160897942070754" width="2" height="39.839102057929246" rx="1" fill="#141414"/><rect x="190" y="24.47425017931515" width="2" height="45.52574982068485" rx="1" fill="#141414"/><rect x="195" y="36.80091094741334" width="2" height="33.19908905258666" rx="1" fill="#141414"/><rect x="200" y="42.07445157110262" width="2" height="27.92554842889738" rx="1" fill="#141414"/><rect x="205" y="38.98220522315251" width="2" height="31.017794776847488" rx="1" fill="#141414"/><rect x="210" y="38.3726377081936" width="2" height="31.6273622918064" rx="1" fill="#141414"/><rect x="215" y="31.004191368280686" width="2" height="38.995808631719314" rx="1" fill="#141414"/><rect x="220" y="29.380747925089445" width="2" height="40.619252074910555" rx="1" fill="#141414"/><rect x="225" y="43.42264097548892" width="2" height="26.577359024511082" rx="1" fill="#141414"/><rect x="230" y="45.49541801449858" width="2" height="24.504581985501414" rx="1" fill="#141414"/><rect x="235" y="43.83906225902293" width="2" height="26.16093774097707" rx="1" fill="#141414"/>
</svg>
<p class="absolute top-0 text-xs font-semibold" style="left: 45.8%"><i class="fa-solid fa-circle-check text-lime" aria-hidden="true"></i> Goal <span class="text-lg font-bold">118/76<span class="text-xs">mmHg</span></span></p>
</div>
</div>
<div id="insight-option" role="tabpanel" aria-labelledby="insight-tab-option" class="px-2 pb-1 pt-4" hidden>
<div class="flex items-center justify-between gap-2">
<div class="flex -space-x-2"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-2.jpg" alt="" class="h-9 w-9 rounded-full border-2 border-teal object-cover"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-3.jpg" alt="" class="h-9 w-9 rounded-full border-2 border-teal object-cover"><img src="https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-7.jpg" alt="" class="h-9 w-9 rounded-full border-2 border-teal object-cover"></div>
<a href="analytics.html" class="flex items-center gap-2 rounded-full bg-ink px-4 py-2 text-xs font-semibold transition hover:bg-coral">Explore<i class="fa-solid fa-chevron-right text-[10px]" aria-hidden="true"></i></a>
</div>
<p class="mt-3 font-bold">Recovery is ready</p>
<p class="text-xs text-white/75">HRV is up 9%. A hard session today will land well.</p>
<div class="relative mt-2 pt-10">
<svg viewBox="0 0 240 70" class="h-16 w-full" aria-hidden="true">
<rect x="0" y="52.0" width="2" height="18.0" rx="1" fill="#141414"/><rect x="5" y="37.533657470725444" width="2" height="32.466342529274556" rx="1" fill="#141414"/><rect x="10" y="26.847225956552236" width="2" height="43.152774043447764" rx="1" fill="#141414"/><rect x="15" y="34.003041413549894" width="2" height="35.996958586450106" rx="1" fill="#141414"/><rect x="20" y="34.43292275769275" width="2" height="35.56707724230725" rx="1" fill="#141414"/><rect x="25" y="37.25623144914918" width="2" height="32.74376855085082" rx="1" fill="#141414"/><rect x="30" y="50.67666690449474" width="2" height="19.323333095505266" rx="1" fill="#141414"/><rect x="35" y="47.798651738435304" width="2" height="22.201348261564696" rx="1" fill="#141414"/><rect x="40" y="40.007403700638484" width="2" height="29.992596299361516" rx="1" fill="#141414"/><rect x="45" y="41.26266443819887" width="2" height="28.73733556180113" rx="1" fill="#141414"/><rect x="50" y="31.16769826925389" width="2" height="38.83230173074611" rx="1" fill="#141414"/><rect x="55" y="25.251915413221127" width="2" height="44.74808458677887" rx="1" fill="#141414"/><rect x="60" y="37.27602462983996" width="2" height="32.72397537016004" rx="1" fill="#141414"/><rect x="65" y="42.35866710677165" width="2" height="27.641332893228352" rx="1" fill="#141414"/><rect x="70" y="38.662326047326495" width="2" height="31.337673952673505" rx="1" fill="#141414"/><rect x="75" y="37.801152727838804" width="2" height="32.198847272161196" rx="1" fill="#141414"/><rect x="80" y="30.096635561915505" width="2" height="39.903364438084495" rx="1" fill="#141414"/><rect x="85" y="28.242462974557917" width="2" height="41.75753702544208" rx="1" fill="#141414"/><rect x="90" y="42.3161637240513" width="2" height="27.6838362759487" rx="1" fill="#141414"/><rect x="95" y="44.7313737634608" width="2" height="25.2686262365392" rx="1" fill="#141414"/><rect x="100" y="43.96299622473687" width="2" height="26.03700377526313" rx="1" fill="#141414"/><rect x="105" y="50.23186046244399" width="2" height="19.768139537556014" rx="1" fill="#141414"/><rect x="110" y="40.35514978976491" width="2" height="29.64485021023509" rx="1" fill="#141414"/><rect x="115" y="29.361909231810756" width="2" height="40.638090768189244" rx="1" fill="#141414"/><rect x="120" y="33.05447433785645" width="2" height="36.94552566214355" rx="1" fill="#141414"/><rect x="125" y="30.193139004391007" width="2" height="39.80686099560899" rx="1" fill="#141414"/><rect x="130" y="33.159265221201466" width="2" height="36.840734778798534" rx="1" fill="#141414"/><rect x="135" y="51.72763233166658" width="2" height="18.272367668333423" rx="1" fill="#141414"/><rect x="140" y="37.94236318066386" width="2" height="32.05763681933614" rx="1" fill="#141414"/><rect x="145" y="27.55991866707859" width="2" height="42.44008133292141" rx="1" fill="#141414"/><rect x="150" y="35.01885516490893" width="2" height="34.98114483509107" rx="1" fill="#141414"/><rect x="155" y="35.56527600408698" width="2" height="34.43472399591302" rx="1" fill="#141414"/><rect x="160" y="38.20524408282078" width="2" height="31.794755917179216" rx="1" fill="#141414"/><rect x="165" y="51.15794377501466" width="2" height="18.842056224985342" rx="1" fill="#141414"/><rect x="170" y="47.66850919091203" width="2" height="22.331490809087967" rx="1" fill="#141414"/><rect x="175" y="39.326092330936696" width="2" height="30.673907669063304" rx="1" fill="#141414"/><rect x="180" y="40.266082723945544" width="2" height="29.733917276054456" rx="1" fill="#141414"/><rect x="185" y="30.160897942070754" width="2" height="39.839102057929246" rx="1" fill="#141414"/><rect x="190" y="24.47425017931515" width="2" height="45.52574982068485" rx="1" fill="#141414"/><rect x="195" y="36.80091094741334" width="2" height="33.19908905258666" rx="1" fill="#141414"/><rect x="200" y="42.07445157110262" width="2" height="27.92554842889738" rx="1" fill="#141414"/><rect x="205" y="38.98220522315251" width="2" height="31.017794776847488" rx="1" fill="#141414"/><rect x="210" y="38.3726377081936" width="2" height="31.6273622918064" rx="1" fill="#141414"/><rect x="215" y="31.004191368280686" width="2" height="38.995808631719314" rx="1" fill="#141414"/><rect x="220" y="29.380747925089445" width="2" height="40.619252074910555" rx="1" fill="#86d01f"/><rect x="225" y="43.42264097548892" width="2" height="26.577359024511082" rx="1" fill="#86d01f"/><rect x="230" y="45.49541801449858" width="2" height="24.504581985501414" rx="1" fill="#86d01f"/><rect x="235" y="43.83906225902293" width="2" height="26.16093774097707" rx="1" fill="#86d01f"/>
</svg>
<p class="absolute top-0 text-xs font-semibold" style="left: 91.7%"><i class="fa-solid fa-circle-check text-lime" aria-hidden="true"></i> Goal <span class="text-lg font-bold">92<span class="text-xs">%</span></span></p>
</div>
</div>
</div>
<a href="performance.html" class="group relative rounded-[2rem] bg-white/90 p-4 shadow-sm backdrop-blur transition hover:-translate-y-0.5">
<span class="flex items-start justify-between"><span class="grid h-12 w-12 place-items-center rounded-full bg-ink text-white"><i class="fa-solid fa-person-running" aria-hidden="true"></i></span><i class="fa-solid fa-arrow-up-right-from-square text-ink/60 transition group-hover:text-coral" aria-hidden="true"></i></span>
<span class="mt-4 block text-sm">Running</span>
<span class="block text-2xl font-bold">7.2 km</span>
<svg viewBox="0 0 120 60" class="mt-2 h-16 w-full" aria-hidden="true"><polyline points="4,54 22,18 36,40 52,16 66,40 86,6" fill="none" stroke="#d97ef0" stroke-width="2"/><circle cx="4" cy="54" r="3" fill="#fff" stroke="#d97ef0" stroke-width="1.5"/><circle cx="22" cy="18" r="3" fill="#fff" stroke="#d97ef0" stroke-width="1.5"/><circle cx="36" cy="40" r="3" fill="#fff" stroke="#d97ef0" stroke-width="1.5"/><circle cx="52" cy="16" r="3" fill="#fff" stroke="#d97ef0" stroke-width="1.5"/><circle cx="66" cy="40" r="3" fill="#fff" stroke="#d97ef0" stroke-width="1.5"/><circle cx="86" cy="6" r="3" fill="#fff" stroke="#d97ef0" stroke-width="1.5"/></svg>
</a>
<div class="rounded-[2rem] bg-white/90 p-4 shadow-sm backdrop-blur" data-mindful>
<span class="flex items-start justify-between"><span class="grid h-12 w-12 place-items-center rounded-full bg-ink text-white"><i class="fa-solid fa-spa" aria-hidden="true"></i></span><a href="programs.html" class="text-ink/60 hover:text-coral" aria-label="Open mindfulness programs"><i class="fa-solid fa-arrow-up-right-from-square" aria-hidden="true"></i></a></span>
<span class="mt-4 block text-sm">Mindfulness</span>
<span class="block text-2xl font-bold"><span data-mindful-count>2</span>/7</span>
<div class="mt-2 grid grid-cols-7 gap-1" role="group" aria-label="Mindful days this week">
<button type="button" data-mindful-day aria-pressed="false" aria-label="Sunday" class="group grid justify-items-center gap-1 text-[10px] font-semibold"><span class="h-14 w-1.5 rounded-full bg-ink/10 transition group-hover:bg-ink/20 group-aria-pressed:bg-coral"></span>S</button>
<button type="button" data-mindful-day aria-pressed="false" aria-label="Monday" class="group grid justify-items-center gap-1 text-[10px] font-semibold"><span class="h-14 w-1.5 rounded-full bg-ink/10 transition group-hover:bg-ink/20 group-aria-pressed:bg-coral"></span>M</button>
<button type="button" data-mindful-day aria-pressed="true" aria-label="Tuesday" class="group grid justify-items-center gap-1 text-[10px] font-semibold"><span class="h-14 w-1.5 rounded-full bg-ink/10 transition group-hover:bg-ink/20 group-aria-pressed:bg-coral"></span>T</button>
<button type="button" data-mindful-day aria-pressed="false" aria-label="Wednesday" class="group grid justify-items-center gap-1 text-[10px] font-semibold"><span class="h-14 w-1.5 rounded-full bg-ink/10 transition group-hover:bg-ink/20 group-aria-pressed:bg-coral"></span>W</button>
<button type="button" data-mindful-day aria-pressed="false" aria-label="Thursday" class="group grid justify-items-center gap-1 text-[10px] font-semibold"><span class="h-14 w-1.5 rounded-full bg-ink/10 transition group-hover:bg-ink/20 group-aria-pressed:bg-coral"></span>T</button>
<button type="button" data-mindful-day aria-pressed="true" aria-label="Friday" class="group grid justify-items-center gap-1 text-[10px] font-semibold"><span class="h-14 w-1.5 rounded-full bg-ink/10 transition group-hover:bg-ink/20 group-aria-pressed:bg-coral"></span>F</button>
<button type="button" data-mindful-day aria-pressed="false" aria-label="Saturday" class="group grid justify-items-center gap-1 text-[10px] font-semibold"><span class="h-14 w-1.5 rounded-full bg-ink/10 transition group-hover:bg-ink/20 group-aria-pressed:bg-coral"></span>S</button>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- block:end hero -->
<script>
const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
const popovers = [...document.querySelectorAll('[data-menu-toggle], [data-search-toggle], [data-notes-toggle]')];
popovers.forEach((button) => {
const panel = document.getElementById(button.getAttribute('aria-controls'));
button.addEventListener('click', () => {
const open = button.getAttribute('aria-expanded') === 'true';
popovers.forEach((other) => { other.setAttribute('aria-expanded', 'false'); document.getElementById(other.getAttribute('aria-controls')).classList.add('hidden'); });
button.setAttribute('aria-expanded', String(!open));
panel.classList.toggle('hidden', open);
if (!open && button.matches('[data-notes-toggle]')) button.querySelector('[data-notes-dot]')?.remove();
if (!open) panel.querySelector('input')?.focus();
});
});
document.querySelectorAll('[data-search]').forEach((root) => {
const input = root.querySelector('[data-search-input]');
const items = [...root.querySelectorAll('[data-search-item]')];
input.addEventListener('input', () => {
const query = input.value.trim().toLowerCase();
let shown = 0;
items.forEach((item) => { item.hidden = !item.dataset.label.includes(query); if (!item.hidden) shown += 1; });
root.querySelector('[data-search-empty]').hidden = shown > 0;
});
});
document.querySelectorAll('[data-rr]').forEach((root) => {
const readings = [...root.querySelectorAll('[data-rr-reading]')];
readings.forEach((button) => button.addEventListener('click', () => {
readings.forEach((other) => other.setAttribute('aria-pressed', String(other === button)));
root.querySelector('[data-rr-value]').textContent = button.dataset.rrReading;
}));
});
document.querySelectorAll('[data-categories]').forEach((root) => {
const chips = [...root.querySelectorAll('[data-category]')];
chips.forEach((chip) => chip.addEventListener('click', () => {
chip.setAttribute('aria-pressed', String(chip.getAttribute('aria-pressed') !== 'true'));
root.querySelector('[data-category-count]').textContent = chips.filter((c) => c.getAttribute('aria-pressed') === 'true').length;
}));
});
document.querySelectorAll('[data-insights]').forEach((root) => {
const tabs = [...root.querySelectorAll('[role="tab"]')];
const select = (tab, focus) => {
tabs.forEach((other) => { const on = other === tab; other.setAttribute('aria-selected', String(on)); other.tabIndex = on ? 0 : -1; document.getElementById(other.getAttribute('aria-controls')).hidden = !on; });
if (focus) tab.focus();
};
tabs.forEach((tab, i) => {
tab.addEventListener('click', () => select(tab));
tab.addEventListener('keydown', (event) => {
if (event.key === 'ArrowRight') select(tabs[(i + 1) % tabs.length], true);
if (event.key === 'ArrowLeft') select(tabs[(i - 1 + tabs.length) % tabs.length], true);
});
});
});
document.querySelectorAll('[data-mindful]').forEach((root) => {
const days = [...root.querySelectorAll('[data-mindful-day]')];
days.forEach((day) => day.addEventListener('click', () => {
day.setAttribute('aria-pressed', String(day.getAttribute('aria-pressed') !== 'true'));
root.querySelector('[data-mindful-count]').textContent = days.filter((d) => d.getAttribute('aria-pressed') === 'true').length;
}));
});
document.querySelectorAll('[data-bpm]').forEach((el) => {
if (reducedMotion || navigator.webdriver) return;
setInterval(() => { el.textContent = 61 + Math.round(Math.random() * 5); }, 1600);
});
document.querySelectorAll('[data-devices]').forEach((root) => {
const toggles = [...root.querySelectorAll('[data-device]')];
toggles.forEach((toggle) => toggle.addEventListener('change', () => {
root.querySelector('[data-device-count]').textContent = toggles.filter((t) => t.checked).length;
}));
});
document.querySelectorAll('[data-story]').forEach((root) => {
const steps = [...root.querySelectorAll('[data-story-step]')];
const activate = (index) => {
steps.forEach((step, i) => step.setAttribute('aria-pressed', String(i === index)));
root.querySelectorAll('[data-story-image]').forEach((img) => { img.hidden = Number(img.dataset.storyImage) !== index; });
root.querySelector('[data-story-number]').textContent = index + 1;
};
steps.forEach((step, i) => step.addEventListener('click', () => activate(i)));
if ('IntersectionObserver' in window && matchMedia('(min-width: 1024px)').matches) {
const observer = new IntersectionObserver((entries) => entries.forEach((entry) => { if (entry.isIntersecting) activate(steps.indexOf(entry.target)); }), { rootMargin: '-45% 0px -45% 0px' });
steps.forEach((step) => observer.observe(step));
}
});
document.querySelectorAll('[data-pulse]').forEach((root) => {
const dots = [...root.querySelectorAll('[data-pulse-dot]')];
const heart = root.querySelector('[data-pulse-heart]');
let taps = [];
const zone = (bpm) => (bpm < 60 ? 'Athletic resting rate' : bpm <= 80 ? 'Calm and steady' : bpm <= 100 ? 'Slightly elevated' : 'High: rest and re-check');
const render = (intervals) => {
dots.forEach((dot, i) => { dot.classList.toggle('bg-rose', i < taps.length); dot.classList.toggle('bg-white/20', i >= taps.length); });
const cells = root.querySelectorAll('[data-pulse-intervals] li');
const last = intervals.slice(-4);
cells.forEach((cell, i) => { cell.textContent = last[i] ? `${Math.round(last[i])}ms` : '--'; });
if (intervals.length >= 3) {
const bpm = Math.round(60000 / (intervals.reduce((sum, value) => sum + value, 0) / intervals.length));
root.querySelector('[data-pulse-bpm]').textContent = bpm;
root.querySelector('[data-pulse-zone]').textContent = zone(bpm);
if (!reducedMotion) heart.classList.add('beat');
} else {
root.querySelector('[data-pulse-bpm]').textContent = '--';
root.querySelector('[data-pulse-zone]').textContent = taps.length ? `${8 - taps.length} more taps` : 'Tap 8 times to measure';
heart.classList.remove('beat');
}
};
const intervalsFrom = (times) => times.slice(1).map((time, i) => time - times[i]).filter((gap) => gap >= 300 && gap <= 2000);
root.querySelector('[data-pulse-tap]').addEventListener('click', () => {
if (taps.length >= 8) taps = [];
taps.push(performance.now());
render(intervalsFrom(taps));
});
root.querySelector('[data-pulse-sample]').addEventListener('click', () => {
const sample = [812, 798, 805, 790, 820, 801, 795];
taps = [0, ...sample].map((_, i, list) => list.slice(0, i + 1).reduce((sum, value) => sum + value, 0));
render(sample);
});
root.querySelector('[data-pulse-reset]').addEventListener('click', () => { taps = []; render([]); });
});
document.querySelectorAll('[data-stack]').forEach((root) => {
const list = root.querySelector('[data-stack-cards]');
let index = 0;
const layout = () => {
[...list.children].forEach((card, i) => {
card.style.zIndex = list.children.length - i;
card.style.transform = `translate(${i * 14}px, ${i * 14}px) rotate(${i * 2}deg)`;
card.setAttribute('aria-hidden', String(i !== 0));
});
};
const next = () => {
list.append(list.firstElementChild);
index = (index + 1) % list.children.length;
root.querySelector('[data-stack-index]').textContent = index + 1;
layout();
};
root.querySelector('[data-stack-next]').addEventListener('click', next);
list.addEventListener('click', next);
});
document.querySelectorAll('[data-faq-chat]').forEach((root) => {
const faqs = JSON.parse(root.querySelector('[data-faq-data]').textContent);
const log = root.querySelector('[data-faq-log]');
const bubble = (text, mine) => {
const p = document.createElement('p');
p.className = mine ? 'max-w-[85%] self-end rounded-3xl rounded-tr-md bg-ink px-4 py-3 text-white' : 'max-w-[85%] rounded-3xl rounded-tl-md bg-white px-4 py-3';
p.textContent = text;
log.append(p);
};
root.querySelectorAll('[data-faq-question]').forEach((button) => button.addEventListener('click', () => {
const [question, answer] = faqs[Number(button.dataset.faqQuestion)];
button.disabled = true;
bubble(question, true);
if (reducedMotion || navigator.webdriver) bubble(answer); else setTimeout(() => bubble(answer), 450);
}));
});
document.querySelectorAll('[data-app-link]').forEach((form) => {
const status = form.querySelector('[data-form-status]');
form.addEventListener('submit', (event) => {
event.preventDefault();
const email = form.querySelector('[name="email"]');
if (!email.value.trim() || !email.checkValidity()) { status.textContent = 'Please enter a valid email address.'; email.focus(); return; }
status.textContent = `Link sent to ${email.value}. Check your inbox.`;
form.reset();
});
});
if (watchMotion) {
document.documentElement.classList.add('reveal-ready');
const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
if (entry.isIntersecting) { entry.target.classList.add('is-visible'); observer.unobserve(entry.target); }
}), { threshold: 0.15 });
document.querySelectorAll('[data-reveal]').forEach((el) => observer.observe(el));
}
</script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>
Premium
Health & Fitness
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.