Habit app landing page
A mobile app page where a CSS-drawn phone stays pinned while you scroll and its screen changes to match each section.
"use client";
import { useEffect, useRef, useState } from "react";
import "./habit-app-page.css";
/**
* HabitAppPage: a landing page for a habit app ("Kept").
* On wide screens the phone stays pinned while you scroll, and its screen
* changes to match the section in view. On phones each section shows its own screen.
* All screens are drawn in code, so no images are needed.
*/
const HABITS = [
{ name: "Read 10 pages", done: true },
{ name: "Walk after lunch", done: true },
{ name: "No phone in bed", done: false },
{ name: "Stretch for 5 minutes", done: false },
];
// 5 weeks of a streak calendar: 2 = done, 1 = partly, 0 = missed, -1 = future
const WEEKS = [
[2, 2, 1, 2, 2, 2, 0],
[2, 2, 2, 2, 1, 2, 2],
[2, 0, 2, 2, 2, 2, 2],
[2, 2, 2, 2, 2, 1, 2],
[2, 2, 2, -1, -1, -1, -1],
];
const FRIENDS = [
{ name: "Lina", habit: "Morning run", streak: 41, tone: "#ff5a1f" },
{ name: "Tomás", habit: "Guitar practice", streak: 12, tone: "#2b35ff" },
{ name: "Aiko", habit: "Write 200 words", streak: 87, tone: "#0e0e10" },
];
const FEATURES = [
{
title: "Four habits, not forty.",
text: "Kept caps your list at four, so every check feels like it counts. Tap once to mark it done.",
},
{
title: "Streaks that forgive a bad day.",
text: "Miss one day and your streak bends instead of breaking. Miss two and it starts again. Most people stop failing on day three.",
},
{
title: "Friends who notice.",
text: "Share one habit with up to three friends. They see your streak, you see theirs, and a nudge costs one tap.",
},
];
function Screen({ index }: { index: number }) {
if (index === 0)
return (
<div className="gu-kept__screen" key="today">
<p className="gu-kept__s-date">Thursday 5 December</p>
<p className="gu-kept__s-title">Today</p>
<ul className="gu-kept__habits">
{HABITS.map((h, i) => (
<li
key={h.name}
className={h.done ? "is-done" : ""}
style={{ ["--d" as string]: i }}
>
<span className="gu-kept__check" aria-hidden="true" />
{h.name}
</li>
))}
</ul>
<p className="gu-kept__s-foot">2 of 4 done, 23-day streak</p>
</div>
);
if (index === 1)
return (
<div className="gu-kept__screen" key="streak">
<p className="gu-kept__s-date">Read 10 pages</p>
<p className="gu-kept__s-title">
<span className="gu-kept__big">23</span> days
</p>
<div className="gu-kept__cal" aria-hidden="true">
{WEEKS.flat().map((v, i) => (
<i key={i} className={`v${v}`} style={{ ["--d" as string]: i }} />
))}
</div>
<p className="gu-kept__s-foot">Half-filled days are forgiven days.</p>
</div>
);
return (
<div className="gu-kept__screen" key="friends">
<p className="gu-kept__s-date">Shared habits</p>
<p className="gu-kept__s-title">Friends</p>
<ul className="gu-kept__friends">
{FRIENDS.map((f, i) => (
<li key={f.name} style={{ ["--d" as string]: i }}>
<span
className="gu-kept__av"
style={{ background: f.tone }}
aria-hidden="true"
>
{f.name[0]}
</span>
<span>
<b>{f.name}</b>
<small>{f.habit}</small>
</span>
<span className="gu-kept__streak">{f.streak}d</span>
</li>
))}
</ul>
<p className="gu-kept__nudge">Nudge Tomás</p>
</div>
);
}
function Phone({ index, label }: { index: number; label: string }) {
return (
<div className="gu-kept__phone" role="img" aria-label={label}>
<span className="gu-kept__notch" aria-hidden="true" />
<Screen index={index} />
</div>
);
}
const SCREEN_LABELS = [
"The Today screen: four habits, two checked off.",
"The streak screen: a 23-day calendar with two forgiven days.",
"The friends screen: three friends and their streaks.",
];
export function HabitAppPage() {
const [active, setActive] = useState(0);
const steps = useRef<(HTMLElement | null)[]>([]);
// The section crossing the middle of the screen decides which phone screen shows.
useEffect(() => {
const io = new IntersectionObserver(
(entries) => {
for (const e of entries)
if (e.isIntersecting)
setActive(Number((e.target as HTMLElement).dataset.i));
},
{ rootMargin: "-45% 0px -45% 0px" },
);
steps.current.forEach((el) => el && io.observe(el));
return () => io.disconnect();
}, []);
return (
<div className="gu-kept">
<nav className="gu-kept__nav" aria-label="Main">
<a href="#" className="gu-kept__logo">
kept
</a>
<a href="#kept-get" className="gu-kept__btn is-small">
Get the app
</a>
</nav>
<header className="gu-kept__hero">
<h1>
Keep four habits.
<br />
Drop the guilt.
</h1>
<p>
A habit tracker that asks for less, forgives more, and still works on
day 200.
</p>
<div className="gu-kept__stores">
<a href="#kept-get" className="gu-kept__btn">
Download for iPhone
</a>
<a href="#kept-get" className="gu-kept__btn is-ghost">
Get it on Android
</a>
</div>
<p className="gu-kept__rating">
<b>4.8</b> average from 21,000 ratings
</p>
</header>
<section className="gu-kept__tour" aria-label="How Kept works">
<div className="gu-kept__pin">
<Phone index={active} label={SCREEN_LABELS[active]} />
<div className="gu-kept__dots" aria-hidden="true">
{FEATURES.map((f, i) => (
<i key={f.title} className={i === active ? "is-on" : ""} />
))}
</div>
</div>
<div className="gu-kept__steps">
{FEATURES.map((f, i) => (
<article
key={f.title}
data-i={i}
ref={(el) => {
steps.current[i] = el;
}}
className={`gu-kept__step ${i === active ? "is-active" : ""}`}
>
<div className="gu-kept__inline-phone">
<Phone index={i} label={SCREEN_LABELS[i]} />
</div>
<h2>{f.title}</h2>
<p>{f.text}</p>
</article>
))}
</div>
</section>
<section className="gu-kept__quote" aria-label="What people say">
<blockquote>
<p>
“I’ve deleted six habit apps. This is the first one that
didn’t make me feel bad on a Monday.”
</p>
<footer>Priya, using Kept since March</footer>
</blockquote>
</section>
<section id="kept-get" className="gu-kept__get">
<h2>Start with one habit tonight.</h2>
<p>
Free to use. Kept Plus adds shared habits and widgets for €3 a month.
</p>
<div className="gu-kept__stores">
<a href="#" className="gu-kept__btn is-light">
Download for iPhone
</a>
<a href="#" className="gu-kept__btn is-ghost-light">
Get it on Android
</a>
</div>
</section>
<footer className="gu-kept__foot">
<span>© 2026 Kept</span>
<a href="#">Privacy</a>
<a href="#">Support</a>
</footer>
</div>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Habit app landing page
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A light landing page for a habit app ("Kept") that tracks at most four habits. Its signature: on wide screens a phone drawn in CSS stays pinned beside the text while you scroll, and its screen changes to match the section in view (Today list, streak calendar, friends). Sections: nav, centered hero with two download buttons and a rating line, the pinned scroll tour, a big quote, an orange download block and a footer. No images: every screen is built from HTML and CSS.
## Palette
Background #f3eee3, surface #fbf8f2, text #0e0e10, muted #57534b, lines rgba(14,14,16,0.14), accent #ff5a1f (checked habits, streak days, download block), focus ring #2b35ff. Friend avatars use #ff5a1f, #2b35ff and #0e0e10.
## Layout
- Root uses container queries (container-type: inline-size) and overflow-x: clip (not hidden, so position: sticky still works). Side padding 5%.
- Hero: centered headline in two lines up to 7.5rem, weight 900, line-height 0.88, tracking -0.055em; a short muted intro (34ch); two pill buttons (solid ink and outlined).
- Tour at ≥760px: two columns. The left column is `position: sticky; top: 40px` and holds the phone plus three progress dots (the active dot stretches to 28px). The right column has three steps, each at least 520px tall and vertically centered. Inactive steps fade to 30% opacity.
- Tour on phones: the pinned phone is hidden and each step shows its own phone above its text, on a surface panel.
- Phone: 260px wide, aspect 9:18.5, ink body with a 44px radius, a pill-shaped notch and a cream screen with a 33px radius.
- Today: four habit rows with round checks; done rows are struck through with an orange filled check.
- Streak: a big "23 days" and a 7-column calendar; full days orange, forgiven days half orange, missed days outlined.
- Friends: three rows with a colored initial avatar, name, habit and streak, plus a "Nudge" pill.
- Quote: one big sentence (up to 3rem, weight 800) with an attribution.
- Download block: orange, a huge headline, a short line about pricing and the two buttons in ink.
## Motion
- An IntersectionObserver with rootMargin "-45% 0px -45% 0px" picks the step crossing the middle of the screen. The phone screen then swaps with a 0.5s fade and scale from 0.97.
- Inside each screen, rows slide in from the left 70–80ms apart and calendar days pop in 18ms apart.
## Accessibility
- Each phone has role="img" and a sentence describing its screen. The progress dots are aria-hidden.
- Only one phone is ever displayed (pinned on wide screens, inline on phones), so screen readers hear each screen once.
- Focus ring: 2px #2b35ff.
- prefers-reduced-motion: screens swap instantly, rows and days appear without animation, and steps don't fade.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### HabitAppPage.tsx
```tsx
"use client";
import { useEffect, useRef, useState } from "react";
import "./habit-app-page.css";
/**
* HabitAppPage: a landing page for a habit app ("Kept").
* On wide screens the phone stays pinned while you scroll, and its screen
* changes to match the section in view. On phones each section shows its own screen.
* All screens are drawn in code, so no images are needed.
*/
const HABITS = [
{ name: "Read 10 pages", done: true },
{ name: "Walk after lunch", done: true },
{ name: "No phone in bed", done: false },
{ name: "Stretch for 5 minutes", done: false },
];
// 5 weeks of a streak calendar: 2 = done, 1 = partly, 0 = missed, -1 = future
const WEEKS = [
[2, 2, 1, 2, 2, 2, 0],
[2, 2, 2, 2, 1, 2, 2],
[2, 0, 2, 2, 2, 2, 2],
[2, 2, 2, 2, 2, 1, 2],
[2, 2, 2, -1, -1, -1, -1],
];
const FRIENDS = [
{ name: "Lina", habit: "Morning run", streak: 41, tone: "#ff5a1f" },
{ name: "Tomás", habit: "Guitar practice", streak: 12, tone: "#2b35ff" },
{ name: "Aiko", habit: "Write 200 words", streak: 87, tone: "#0e0e10" },
];
const FEATURES = [
{
title: "Four habits, not forty.",
text: "Kept caps your list at four, so every check feels like it counts. Tap once to mark it done.",
},
{
title: "Streaks that forgive a bad day.",
text: "Miss one day and your streak bends instead of breaking. Miss two and it starts again. Most people stop failing on day three.",
},
{
title: "Friends who notice.",
text: "Share one habit with up to three friends. They see your streak, you see theirs, and a nudge costs one tap.",
},
];
function Screen({ index }: { index: number }) {
if (index === 0)
return (
<div className="gu-kept__screen" key="today">
<p className="gu-kept__s-date">Thursday 5 December</p>
<p className="gu-kept__s-title">Today</p>
<ul className="gu-kept__habits">
{HABITS.map((h, i) => (
<li
key={h.name}
className={h.done ? "is-done" : ""}
style={{ ["--d" as string]: i }}
>
<span className="gu-kept__check" aria-hidden="true" />
{h.name}
</li>
))}
</ul>
<p className="gu-kept__s-foot">2 of 4 done, 23-day streak</p>
</div>
);
if (index === 1)
return (
<div className="gu-kept__screen" key="streak">
<p className="gu-kept__s-date">Read 10 pages</p>
<p className="gu-kept__s-title">
<span className="gu-kept__big">23</span> days
</p>
<div className="gu-kept__cal" aria-hidden="true">
{WEEKS.flat().map((v, i) => (
<i key={i} className={`v${v}`} style={{ ["--d" as string]: i }} />
))}
</div>
<p className="gu-kept__s-foot">Half-filled days are forgiven days.</p>
</div>
);
return (
<div className="gu-kept__screen" key="friends">
<p className="gu-kept__s-date">Shared habits</p>
<p className="gu-kept__s-title">Friends</p>
<ul className="gu-kept__friends">
{FRIENDS.map((f, i) => (
<li key={f.name} style={{ ["--d" as string]: i }}>
<span
className="gu-kept__av"
style={{ background: f.tone }}
aria-hidden="true"
>
{f.name[0]}
</span>
<span>
<b>{f.name}</b>
<small>{f.habit}</small>
</span>
<span className="gu-kept__streak">{f.streak}d</span>
</li>
))}
</ul>
<p className="gu-kept__nudge">Nudge Tomás</p>
</div>
);
}
function Phone({ index, label }: { index: number; label: string }) {
return (
<div className="gu-kept__phone" role="img" aria-label={label}>
<span className="gu-kept__notch" aria-hidden="true" />
<Screen index={index} />
</div>
);
}
const SCREEN_LABELS = [
"The Today screen: four habits, two checked off.",
"The streak screen: a 23-day calendar with two forgiven days.",
"The friends screen: three friends and their streaks.",
];
export function HabitAppPage() {
const [active, setActive] = useState(0);
const steps = useRef<(HTMLElement | null)[]>([]);
// The section crossing the middle of the screen decides which phone screen shows.
useEffect(() => {
const io = new IntersectionObserver(
(entries) => {
for (const e of entries)
if (e.isIntersecting)
setActive(Number((e.target as HTMLElement).dataset.i));
},
{ rootMargin: "-45% 0px -45% 0px" },
);
steps.current.forEach((el) => el && io.observe(el));
return () => io.disconnect();
}, []);
return (
<div className="gu-kept">
<nav className="gu-kept__nav" aria-label="Main">
<a href="#" className="gu-kept__logo">
kept
</a>
<a href="#kept-get" className="gu-kept__btn is-small">
Get the app
</a>
</nav>
<header className="gu-kept__hero">
<h1>
Keep four habits.
<br />
Drop the guilt.
</h1>
<p>
A habit tracker that asks for less, forgives more, and still works on
day 200.
</p>
<div className="gu-kept__stores">
<a href="#kept-get" className="gu-kept__btn">
Download for iPhone
</a>
<a href="#kept-get" className="gu-kept__btn is-ghost">
Get it on Android
</a>
</div>
<p className="gu-kept__rating">
<b>4.8</b> average from 21,000 ratings
</p>
</header>
<section className="gu-kept__tour" aria-label="How Kept works">
<div className="gu-kept__pin">
<Phone index={active} label={SCREEN_LABELS[active]} />
<div className="gu-kept__dots" aria-hidden="true">
{FEATURES.map((f, i) => (
<i key={f.title} className={i === active ? "is-on" : ""} />
))}
</div>
</div>
<div className="gu-kept__steps">
{FEATURES.map((f, i) => (
<article
key={f.title}
data-i={i}
ref={(el) => {
steps.current[i] = el;
}}
className={`gu-kept__step ${i === active ? "is-active" : ""}`}
>
<div className="gu-kept__inline-phone">
<Phone index={i} label={SCREEN_LABELS[i]} />
</div>
<h2>{f.title}</h2>
<p>{f.text}</p>
</article>
))}
</div>
</section>
<section className="gu-kept__quote" aria-label="What people say">
<blockquote>
<p>
“I’ve deleted six habit apps. This is the first one that
didn’t make me feel bad on a Monday.”
</p>
<footer>Priya, using Kept since March</footer>
</blockquote>
</section>
<section id="kept-get" className="gu-kept__get">
<h2>Start with one habit tonight.</h2>
<p>
Free to use. Kept Plus adds shared habits and widgets for €3 a month.
</p>
<div className="gu-kept__stores">
<a href="#" className="gu-kept__btn is-light">
Download for iPhone
</a>
<a href="#" className="gu-kept__btn is-ghost-light">
Get it on Android
</a>
</div>
</section>
<footer className="gu-kept__foot">
<span>© 2026 Kept</span>
<a href="#">Privacy</a>
<a href="#">Support</a>
</footer>
</div>
);
}
```
### habit-app-page.css
```css
/* HabitAppPage: change these colors to match your brand. */
.gu-kept {
--bg: #f3eee3;
--surface: #fbf8f2;
--text: #0e0e10;
--muted: #57534b;
--line: rgb(14 14 16 / 0.14);
--accent: #ff5a1f;
--volt: #d7ff3a;
--focus: #2b35ff;
--ease: cubic-bezier(0.16, 1, 0.3, 1);
container-type: inline-size;
/* clip (not hidden) so the pinned phone can stick */
overflow-x: clip;
background: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
}
.gu-kept a {
color: inherit;
text-decoration: none;
}
.gu-kept :focus-visible {
outline: 2px solid var(--focus);
outline-offset: 3px;
}
.gu-kept h1,
.gu-kept h2,
.gu-kept p {
margin: 0;
}
.gu-kept__btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 0 22px;
border-radius: 999px;
background: var(--text);
color: var(--bg);
font-weight: 800;
transition: transform 0.3s var(--ease);
}
.gu-kept__btn:hover {
transform: translateY(-2px);
}
.gu-kept__btn.is-small {
min-height: 44px;
padding: 0 18px;
}
.gu-kept__btn.is-ghost {
background: transparent;
color: var(--text);
box-shadow: inset 0 0 0 2px var(--text);
}
.gu-kept__btn.is-light {
background: var(--bg);
color: var(--text);
}
.gu-kept__btn.is-ghost-light {
background: transparent;
color: var(--bg);
box-shadow: inset 0 0 0 2px var(--bg);
}
.gu-kept__nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 5%;
}
.gu-kept__logo {
font-size: 1.6rem;
font-weight: 900;
letter-spacing: -0.06em;
}
.gu-kept__logo::after {
content: "";
display: inline-block;
width: 0.28em;
height: 0.28em;
margin-left: 2px;
border-radius: 50%;
background: var(--accent);
}
/* Hero */
.gu-kept__hero {
padding: 48px 5% 64px;
text-align: center;
}
.gu-kept__hero h1 {
font-size: clamp(2.8rem, 10cqi, 7.5rem);
font-weight: 900;
line-height: 0.88;
letter-spacing: -0.055em;
}
.gu-kept__hero > p:first-of-type {
max-width: 34ch;
margin: 24px auto 0;
font-size: 1.15rem;
line-height: 1.45;
color: var(--muted);
}
.gu-kept__stores {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin-top: 28px;
}
.gu-kept__rating {
margin-top: 16px !important;
font-size: 0.9rem;
color: var(--muted);
}
.gu-kept__rating b {
color: var(--text);
}
/* Scroll tour: phone pinned on the left, text steps on the right */
.gu-kept__tour {
display: grid;
padding: 0 5% 40px;
}
.gu-kept__pin {
display: none;
}
@container (min-width: 760px) {
.gu-kept__tour {
grid-template-columns: 1fr 1fr;
gap: 6%;
}
.gu-kept__pin {
position: sticky;
top: 40px;
display: grid;
justify-items: center;
gap: 18px;
align-self: start;
padding: 20px 0;
}
}
.gu-kept__dots {
display: flex;
gap: 8px;
}
.gu-kept__dots i {
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--line);
transition:
width 0.4s var(--ease),
background-color 0.3s;
}
.gu-kept__dots i.is-on {
width: 28px;
background: var(--text);
}
.gu-kept__step {
display: grid;
gap: 14px;
padding: 40px 0;
}
@container (min-width: 760px) {
.gu-kept__step {
min-height: 520px;
align-content: center;
opacity: 0.3;
transition: opacity 0.5s var(--ease);
}
.gu-kept__step.is-active {
opacity: 1;
}
}
.gu-kept__step h2 {
max-width: 14ch;
font-size: clamp(2rem, 4.6cqi, 3.6rem);
font-weight: 900;
line-height: 0.95;
letter-spacing: -0.045em;
}
.gu-kept__step p {
max-width: 36ch;
font-size: 1.1rem;
line-height: 1.5;
color: var(--muted);
}
.gu-kept__inline-phone {
display: grid;
justify-items: center;
margin-bottom: 12px;
padding: 28px 0;
border-radius: 28px;
background: var(--surface);
}
/* With the pinned phone showing, the per-step phones hide,
and extra room under the last step keeps the phone pinned while it is read. */
@container (min-width: 760px) {
.gu-kept__inline-phone {
display: none;
}
.gu-kept__steps {
padding-bottom: 180px;
}
}
/* The phone, drawn in CSS */
.gu-kept__phone {
position: relative;
width: 260px;
max-width: 100%;
aspect-ratio: 9 / 18.5;
padding: 12px;
border-radius: 44px;
background: var(--text);
box-shadow:
0 40px 70px -30px rgb(14 14 16 / 0.5),
inset 0 0 0 2px #2a2a2e;
}
.gu-kept__notch {
position: absolute;
top: 20px;
left: 50%;
z-index: 2;
width: 74px;
height: 22px;
border-radius: 999px;
background: var(--text);
transform: translateX(-50%);
}
.gu-kept__screen {
height: 100%;
overflow: hidden;
padding: 46px 18px 18px;
border-radius: 33px;
background: var(--surface);
animation: gu-kept-swap 0.5s var(--ease);
}
@keyframes gu-kept-swap {
from {
opacity: 0;
transform: scale(0.97);
}
}
.gu-kept__s-date {
font-size: 0.72rem;
font-weight: 600;
color: var(--muted);
}
.gu-kept__s-title {
margin: 2px 0 16px !important;
font-size: 1.6rem;
font-weight: 900;
letter-spacing: -0.04em;
}
.gu-kept__big {
font-size: 3rem;
line-height: 1;
}
.gu-kept__s-foot {
margin-top: 14px !important;
font-size: 0.72rem;
color: var(--muted);
}
.gu-kept__habits,
.gu-kept__friends {
display: grid;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.gu-kept__habits li {
display: flex;
align-items: center;
gap: 10px;
padding: 12px;
border-radius: 14px;
background: var(--bg);
font-size: 0.82rem;
font-weight: 700;
animation: gu-kept-row 0.5s var(--ease) both;
animation-delay: calc(var(--d) * 70ms + 100ms);
}
@keyframes gu-kept-row {
from {
opacity: 0;
transform: translateX(-10px);
}
}
.gu-kept__check {
flex: none;
width: 20px;
height: 20px;
border: 2px solid var(--line);
border-radius: 50%;
}
.gu-kept__habits li.is-done {
color: var(--muted);
text-decoration: line-through;
}
.gu-kept__habits li.is-done .gu-kept__check {
position: relative;
border-color: var(--accent);
background: var(--accent);
}
.gu-kept__habits li.is-done .gu-kept__check::after {
content: "";
position: absolute;
left: 5px;
top: 1px;
width: 5px;
height: 10px;
border: solid var(--text);
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.gu-kept__cal {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 5px;
}
.gu-kept__cal i {
aspect-ratio: 1;
border-radius: 6px;
animation: gu-kept-pop 0.4s var(--ease) both;
animation-delay: calc(var(--d) * 18ms);
}
@keyframes gu-kept-pop {
from {
transform: scale(0.4);
opacity: 0;
}
}
.gu-kept__cal .v2 {
background: var(--accent);
}
.gu-kept__cal .v1 {
background: linear-gradient(
135deg,
var(--accent) 50%,
color-mix(in srgb, var(--accent) 25%, var(--bg)) 50%
);
}
.gu-kept__cal .v0 {
background: var(--bg);
box-shadow: inset 0 0 0 1.5px var(--line);
}
.gu-kept__cal .v-1 {
background: var(--bg);
}
.gu-kept__friends li {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 10px;
padding: 10px;
border-radius: 14px;
background: var(--bg);
font-size: 0.8rem;
animation: gu-kept-row 0.5s var(--ease) both;
animation-delay: calc(var(--d) * 80ms + 100ms);
}
.gu-kept__friends span:nth-child(2) {
display: grid;
}
.gu-kept__friends small {
color: var(--muted);
}
.gu-kept__av {
display: grid;
place-items: center;
width: 32px;
height: 32px;
border-radius: 50%;
color: var(--bg);
font-weight: 800;
}
.gu-kept__streak {
font-weight: 900;
}
.gu-kept__nudge {
margin-top: 14px !important;
padding: 12px;
border-radius: 999px;
background: var(--text);
color: var(--bg);
font-size: 0.8rem;
font-weight: 800;
text-align: center;
}
/* Quote */
.gu-kept__quote {
padding: 72px 5%;
border-top: 1px solid var(--line);
}
.gu-kept__quote blockquote {
max-width: 900px;
margin: 0 auto;
}
.gu-kept__quote p {
font-size: clamp(1.6rem, 4.4cqi, 3rem);
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.035em;
text-wrap: balance;
}
.gu-kept__quote footer {
margin-top: 18px;
color: var(--muted);
}
/* Download */
.gu-kept__get {
padding: 80px 5%;
background: var(--accent);
text-align: center;
}
.gu-kept__get h2 {
font-size: clamp(2.4rem, 8cqi, 6rem);
font-weight: 900;
line-height: 0.9;
letter-spacing: -0.055em;
text-wrap: balance;
}
.gu-kept__get > p {
max-width: 36ch;
margin: 18px auto 0;
font-weight: 600;
}
.gu-kept__get .gu-kept__btn.is-light {
background: var(--text);
color: var(--bg);
}
.gu-kept__get .gu-kept__btn.is-ghost-light {
color: var(--text);
box-shadow: inset 0 0 0 2px var(--text);
}
.gu-kept__foot {
display: flex;
gap: 20px;
padding: 20px 5%;
font-size: 0.85rem;
color: var(--muted);
}
.gu-kept__foot span {
margin-right: auto;
}
@media (prefers-reduced-motion: reduce) {
.gu-kept__screen,
.gu-kept__habits li,
.gu-kept__cal i,
.gu-kept__friends li {
animation: none;
}
.gu-kept__step,
.gu-kept__dots i,
.gu-kept__btn {
transition: none;
}
}
```
You might also want
Next piece: Help center FAQAgency page with stacking cases
Landing pages, intermediate
E-bike launch page with colour wipe
Landing pages, advanced
App launch page
Landing pages, advanced