:root {
    color-scheme: light;
    --bg: #f4f4f5;
    --text: #18181b;
    --muted: #71717a;
    --primary: #84cc16;
    --primary-dim: #65a30d;
    --secondary: #e4e4e7;
    --tertiary: #ffffff;
    --border: rgba(0, 0, 0, 0.05);
    --line: #d4d4d8;
    --danger: #ef4444;
    --link: #0a7ea4;
    --shadow: rgba(9, 9, 11, 0.14);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #09090b;
    --text: #ffffff;
    --muted: #a1a1aa;
    --primary: #c0eb75;
    --primary-dim: #aabf68;
    --secondary: #27272a;
    --tertiary: #18181b;
    --border: rgba(255, 255, 255, 0.05);
    --line: #3f3f46;
    --danger: #ef4444;
    --link: #0a7ea4;
    --shadow: rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg: #09090b;
        --text: #ffffff;
        --muted: #a1a1aa;
        --primary: #c0eb75;
        --primary-dim: #aabf68;
        --secondary: #27272a;
        --tertiary: #18181b;
        --border: rgba(255, 255, 255, 0.05);
        --line: #3f3f46;
        --danger: #ef4444;
        --link: #0a7ea4;
        --shadow: rgba(0, 0, 0, 0.45);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--primary);
    color: #18181b;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 5;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--primary);
    color: #18181b;
    font-weight: 700;
    text-decoration: none;
}

.skip:focus {
    top: 1rem;
}

.page {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 3rem;
}

.page--landing {
    max-width: 72rem;
    padding-left: clamp(1.25rem, 4vw, 2rem);
    padding-right: clamp(1.25rem, 4vw, 2rem);
    overflow-x: clip;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.brand,
nav a,
footer a {
    text-decoration: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.03em;
}

nav a:hover,
footer a:hover {
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 0.28rem;
}

.brand img {
    width: 48px;
    height: 48px;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem 1.15rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--tertiary);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle:hover {
    background: var(--secondary);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.nav-toggle__icon {
    position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__icon::before {
    top: -5px;
}

.nav-toggle__icon::after {
    top: 5px;
}

header.is-nav-open .nav-toggle__icon {
    background: transparent;
}

header.is-nav-open .nav-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
}

header.is-nav-open .nav-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

nav ul {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: var(--text);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

a[aria-current="page"],
a[aria-current="true"] {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.28rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--tertiary);
    color: var(--text);
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--secondary);
}

[data-theme="dark"] .theme-toggle {
    background: color-mix(in srgb, var(--primary) 18%, var(--tertiary));
    color: var(--primary);
}

.theme-toggle__icon {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

[data-theme="dark"] .theme-toggle__icon--moon,
:root:not([data-theme="dark"]) .theme-toggle__icon--sun {
    display: none;
}

main {
    background: var(--tertiary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
}

.page--landing main {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

main a:not(.store) {
    color: var(--link);
}

h1 {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 0.75rem;
}

address {
    margin: 0.75rem 0 0;
    font-style: normal;
    line-height: 1.8;
}

footer {
    margin-top: 2.5rem;
    color: var(--muted);
    font-size: 0.75rem;
}

footer a {
    color: inherit;
}

footer p {
    margin: 0.75rem 0 0;
}

.locale {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.locale select {
    font: inherit;
    font-weight: 700;
    color: var(--text);
    background: var(--tertiary);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 1.6rem 0.35rem 0.75rem;
    cursor: pointer;
}

form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

input {
    font: inherit;
    color: var(--text);
    background: var(--tertiary);
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
}

form button {
    justify-self: start;
    font: inherit;
    font-weight: 700;
    color: #ffffff;
    background: #dc2626;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
}

form button:hover {
    background: var(--danger);
}

.notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--secondary);
    color: var(--text);
}

.notice.error {
    background: color-mix(in srgb, var(--danger) 16%, var(--tertiary));
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 2rem 3rem;
    align-items: center;
    padding: 0.5rem 0 1rem;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.55rem, 4.6vw, 3.75rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.lede {
    margin: 0;
    max-width: 38rem;
    font-size: 1.15rem;
    line-height: 1.5;
}

.hero__note {
    margin: 0.95rem 0 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.store {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.25rem;
    padding: 0.45rem 1.05rem 0.45rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
}

.store svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: none;
}

.store__label small,
.store__label strong {
    display: block;
    line-height: 1.15;
}

.store__label small {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.store__label strong {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.store--apple {
    background: var(--primary);
    color: #18181b;
}

.store--apple:hover {
    background: var(--primary-dim);
}

.store--google {
    background: var(--tertiary);
    color: var(--text);
    border-color: var(--line);
}

.store--google:hover {
    background: var(--secondary);
}

.stage {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1.75rem 0.5rem 2rem;
}

.stage::before {
    content: "";
    position: absolute;
    width: 68%;
    height: 68%;
    top: 16%;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 42%, transparent);
    filter: blur(40px);
}

.phone {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    padding: 1.3rem 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--tertiary);
    box-shadow:
        0 28px 60px var(--shadow),
        0 0 0 10px color-mix(in srgb, var(--primary) 28%, transparent);
    transform: rotate(-5deg);
}

.phone__day {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.phone__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.phone__card,
.phone__note {
    border-radius: 14px;
    background: var(--bg);
}

.phone__metric {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    padding: 0.45rem 0.5rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 12px;
}

.phone__metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.phone__metric-name {
    color: var(--text);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.phone__metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    border-radius: 5px;
}

.phone__metric-icon svg {
    width: 0.72rem;
    height: 0.72rem;
}

.phone__metric-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.phone__metric strong {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.phone__metric small,
.phone__kicker {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.phone__metric--hydration {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.3);
}

.phone__metric--hydration .phone__metric-icon {
    background: #38bdf833;
    color: #38bdf8;
}

.phone__metric--activity {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.phone__metric--activity .phone__metric-icon {
    background: #10b98133;
    color: #10b981;
}

.phone__metric--sleep {
    background: rgba(167, 139, 250, 0.05);
    border-color: rgba(167, 139, 250, 0.3);
}

.phone__metric--sleep .phone__metric-icon {
    background: #a78bfa33;
    color: #a78bfa;
}

.phone__section {
    margin: 0.8rem 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.phone__card {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
}

.phone__card strong {
    min-width: 0;
    font-size: 0.85rem;
}

.phone__card em {
    margin-left: auto;
    color: var(--muted);
    font-style: normal;
    font-size: 0.72rem;
}

.phone__check {
    width: 0.75rem;
    height: 0.75rem;
    flex: none;
    border-radius: 4px;
    background: var(--primary);
}

.phone__note {
    margin: 0.35rem 0 0;
    padding: 0.55rem 0.65rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.block {
    margin-top: 4.25rem;
}

.section-heading {
    max-width: 38rem;
    margin-bottom: 1.35rem;
}

.section-heading h2,
.cta h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.features,
.merits,
.steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature,
.merits li {
    background: var(--tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.25rem 1.2rem 1.35rem;
}

.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: var(--secondary);
    color: var(--primary);
}

.feature__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.feature h3,
.merits h3 {
    margin: 0.9rem 0 0.35rem;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

.feature p,
.merits p {
    margin: 0;
    color: var(--muted);
}

.pace {
    margin-top: 4.25rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: 28px;
    background: var(--primary);
    color: #18181b;
}

.pace .section-heading {
    margin-bottom: 0;
}

.pace h2,
.pace p,
.pace li,
.pace strong {
    color: #18181b;
}

.pace .section-heading p {
    color: #18181b;
    max-width: 40rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.steps li {
    padding: 1.05rem 1rem 1.15rem;
    border-radius: 18px;
    background: color-mix(in srgb, #18181b 9%, transparent);
}

.steps span {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.steps strong {
    display: block;
    font-size: 1.05rem;
}

.steps p {
    margin: 0.35rem 0 0;
}

.merits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.cta {
    margin-top: 4.25rem;
    padding: clamp(1.75rem, 4vw, 3rem) 1.5rem;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(ellipse at top right, color-mix(in srgb, var(--primary) 46%, transparent), transparent 52%),
        var(--tertiary);
    text-align: center;
}

.cta p {
    margin: 0 auto;
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.cta .stores {
    justify-content: center;
}

.ahead {
    margin-top: 4.25rem;
}

.ahead-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ahead-list li {
    padding: 1.1rem 1.15rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--tertiary);
}

.ahead-list h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.ahead-list p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 900px) {
    .hero,
    .features,
    .steps,
    .merits,
    .ahead-list {
        grid-template-columns: 1fr;
    }

    .header-actions {
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
    }

    header nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.65rem);
        right: 0;
        z-index: 3;
        min-width: 16rem;
        padding: 0.85rem 1rem;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--tertiary);
        box-shadow: 0 18px 40px var(--shadow);
    }

    header.is-nav-open nav {
        display: block;
    }

    .hero h1 {
        font-size: clamp(2.05rem, 8vw, 2.8rem);
    }

    .stage {
        padding-right: 0.25rem;
        padding-left: 0.25rem;
    }

    .phone {
        width: min(100%, 280px);
        transform: none;
        box-shadow:
            0 18px 40px var(--shadow),
            0 0 0 6px color-mix(in srgb, var(--primary) 28%, transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .phone {
        transform: none;
    }
}
