/* Weeekly landing page
   Colors come from the app's Theme.swift (dark #0A0A0A, warm paper #F7F3EC, accent #3D7BFF). */

:root {
    --accent: #3D7BFF;
    --accent-dark: #2C63E0;
    --ink: #1D1D1F;
    --ink-2: #6E6E73;
    --paper: #F7F3EC;
    --paper-2: #EBE5DA;
    --card: #FFFFFF;
    --night: #0A0A0A;
    --radius: 28px;
    --shadow: 0 30px 80px -20px rgba(20, 30, 60, .35);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Nunito", 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(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h2 { font-family: var(--font-round); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; margin-bottom: .4rem; }
.muted { color: var(--ink-2); }
.eyebrow {
    margin: 0 0 .75rem;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 600;
    color: var(--ink-2);
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 40rem; margin: 1.25rem auto 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1.6rem;
    border: 0;
    border-radius: 999px;
    font: 600 1.05rem/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-glass {
    color: #fff;
    background: rgba(20, 50, 110, .22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(20, 50, 110, .32); }
.btn-small { padding: .55rem 1rem; font-size: .9rem; background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-apple { width: 1em; height: 1.18em; margin-top: -.18em; fill: currentColor; flex: 0 0 auto; }

/* Navigation: transparent over the sky, frosted once scrolled */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem clamp(1rem, 4vw, 2.5rem);
    color: #fff;
    transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
    color: var(--ink);
    background: rgba(247, 243, 236, .78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 rgba(74, 59, 40, .12);
}
.nav-brand { display: flex; align-items: center; gap: .55rem; font: 700 1.15rem var(--font-round); text-decoration: none; }
.nav-brand img { border-radius: 22.4%; }
.nav-links { display: flex; gap: 1.75rem; font-size: .92rem; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav:not(.is-scrolled) .btn-small { background: rgba(255, 255, 255, .92); color: var(--ink); }

/* Hero */
.hero {
    position: relative;
    min-height: max(760px, 100svh, 50vw);
    display: flex;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 50% 8%; transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translateY(-1.5%); } }
.hero::after {
    /* Soft fade into the page so the Mac window can overlap */
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 22%;
    background: linear-gradient(to bottom, rgba(247, 243, 236, 0), var(--paper));
}
.hero-content { position: relative; z-index: 1; padding: clamp(6.5rem, 15vh, 8.5rem) 1.5rem 0; max-width: 60rem; }
.hero-logo img {
    width: min(66vw, 520px);
    margin: 0 auto;
    filter: drop-shadow(0 18px 30px rgba(40, 70, 140, .35));
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-tagline {
    margin: .35rem 0 1.6rem;
    font: 600 clamp(1.25rem, 2.3vw, 1.7rem)/1.25 var(--font-round);
    text-shadow: 0 2px 20px rgba(30, 60, 120, .45);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero-platforms {
    display: inline-block;
    margin: 0 0 1.75rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    background: rgba(20, 50, 110, .22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mac window. The frame is a size container, so the window chrome scales with it. */
.showcase { position: relative; z-index: 2; margin-top: clamp(-6rem, -6vw, -3rem); padding: 0 clamp(1rem, 4vw, 3rem); }
.window-frame {
    container-type: inline-size;
    max-width: 1180px;
    margin: 0 auto;
    /* Tilted back and slightly smaller at the top of the page; script.js sets --p (0…1)
       while the page scrolls, so the window straightens up and comes forward. */
    transform: perspective(1800px) rotateX(calc((1 - var(--p, 0)) * 18deg)) scale(calc(.9 + var(--p, 0) * .1));
    transform-origin: 50% 0;
    will-change: transform;
    animation: window-in 1s cubic-bezier(.2, .8, .2, 1) both .15s;
}
@keyframes window-in { from { opacity: 0; translate: 0 60px; } }

/* macOS desktop on the MacBook screen: meadow wallpaper, menu bar and the app window.
   Sized in units of the screen (.mb-screen is a size container). */
.desktop {
    position: absolute;
    inset: 0;
    padding: 7cqw 8cqw 0;
}
.desktop-wallpaper, .desktop-wallpaper img { position: absolute; inset: 0; width: 100%; height: 100%; }
.desktop-wallpaper img { object-fit: cover; object-position: 50% 55%; }
.menubar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.2cqw;
    padding: 0 2cqw;
    color: #fff;
    font-size: 1.45cqw;
    text-shadow: 0 0 .6cqw rgba(20, 50, 110, .45);
    background: linear-gradient(rgba(20, 50, 110, .18), rgba(20, 50, 110, .06));
    backdrop-filter: blur(1.2cqw);
    -webkit-backdrop-filter: blur(1.2cqw);
}
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 2cqw; white-space: nowrap; }
.menubar b { font-weight: 700; }
.menubar svg { height: 1.6cqw; width: auto; fill: currentColor; }
.menubar-right svg:nth-child(2) { height: 1.3cqw; }
.apple-logo { height: 1.75cqw !important; }

.mac-window {
    position: relative;
    z-index: 1;
    border-radius: 1.4cqw;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 3cqw 6cqw -1.5cqw rgba(10, 20, 50, .55), 0 0 0 1px rgba(0, 0, 0, .18);
    transition: background-color .4s ease;
}
.mac-titlebar { display: flex; gap: .7cqw; padding: 1.2cqw 1.4cqw .4cqw; }
.mac-titlebar span { width: 1.05cqw; height: 1.05cqw; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.mac-titlebar span:nth-child(2) { background: #FEBC2E; }
.mac-titlebar span:nth-child(3) { background: #28C840; }
.shot { width: 100%; }
.window-frame .mac-window { box-shadow: 0 1.4cqw 3.5cqw -1.2cqw rgba(10, 20, 50, .28), 0 0 0 1px rgba(0, 0, 0, .1); }

/* App theme shown in every screenshot: Warm Light by default, Dark when switched */
.t-dark { display: none !important; }
[data-app-theme="dark"] .t-dark { display: block !important; }
[data-app-theme="dark"] .t-light { display: none !important; }
[data-app-theme="dark"] .mac-window { background: var(--night); }

.theme-switch {
    display: flex;
    width: max-content;
    margin: 1.75rem auto 0;
    padding: 4px;
    position: relative;
    z-index: 1;
    border-radius: 999px;
    background: var(--paper-2);
}
.theme-switch button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: 600 .9rem var(--font);
    color: #5E574D;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.theme-switch button:not(.is-active):hover { color: var(--ink); }
.theme-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch button[data-set-theme="dark"] svg { fill: currentColor; stroke: none; }
.theme-switch button.is-active { background: var(--ink); color: #fff; }

/* Sections */
section { scroll-margin-top: 4rem; }
.devices .section-head { padding-bottom: 1.25rem; }
.devices .theme-switch { margin: 0 auto 1rem; }
.statement, .section-head { text-align: center; padding: clamp(5rem, 12vw, 9rem) 1.5rem clamp(3rem, 6vw, 4.5rem); max-width: 62rem; margin: 0 auto; }

/* Features: one row per feature, lots of space, a single calm visual each */
.features { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem); }
.feature {
    display: grid;
    grid-template-columns: 5fr 6fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    padding: clamp(2rem, 4.5vw, 3.75rem) 0;
}
.feature-flip { grid-template-columns: 6fr 5fr; }
.feature-flip .feature-text { order: 2; }
.feature-text h3 {
    margin: 0 0 1.1rem;
    font-family: var(--font-round);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.feature-text p { margin: 0; max-width: 26rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.feature-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    position: relative;
    min-height: 420px;
    padding: 2.5rem;
    border-radius: 32px;
    overflow: hidden;
    text-align: left;
    /* A crop of the hero illustration */
    background: #8DB8E0 url("assets/meadow.webp") no-repeat;
    background-size: var(--bg-size, 240%) auto;
    background-position: var(--bg-x, 50%) var(--bg-y, 50%);
}
.feature-visual > * { position: relative; }
/* Which part of the illustration each panel shows */
.v-colors { --bg-size: 250%; --bg-x: 4%; --bg-y: 8%; }
.v-stickers { --bg-size: 280%; --bg-x: 62%; --bg-y: 4%; }
.v-repeat { --bg-size: 260%; --bg-x: 96%; --bg-y: 6%; }
.v-remind { --bg-size: 280%; --bg-x: 100%; --bg-y: 60%; }
.v-cloud { --bg-size: 260%; --bg-x: 80%; --bg-y: 2%; }

/* Frosted glass for everything that sits on the illustration */
.glass {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 20px 40px -18px rgba(20, 40, 90, .45), inset 0 0 0 1px rgba(255, 255, 255, .6);
}

/* Feature icons in colored circles */
.badge {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .55);
}
.badge svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge-repeat { background: #4CAF64; }
.badge-bell { background: #FF7A4D; }

/* Feature entrances: text slides in from its side, the visual rises and settles,
   then the visual's own parts arrive one after another. Triggered by .is-visible. */
.reveal-feature .feature-text,
.reveal-feature .feature-visual { opacity: 0; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal-feature .feature-text { transform: translateX(-40px); }
.reveal-feature.feature-flip .feature-text { transform: translateX(40px); }
.reveal-feature .feature-visual { transform: translateY(40px) scale(.95); transition-delay: .12s; }
.reveal-feature.is-visible .feature-text,
.reveal-feature.is-visible .feature-visual { opacity: 1; transform: none; }

.reveal-feature .badge { transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) .45s; }
.reveal-feature.is-visible .badge { transform: none; }

.reveal-feature .day-mock-row,
.reveal-feature .repeat-menu li { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.reveal-feature.is-visible .day-mock-row,
.reveal-feature.is-visible .repeat-menu li { opacity: 1; transform: none; }
.reveal-feature .day-mock-row:nth-child(2), .reveal-feature .repeat-menu li:nth-child(1) { transition-delay: .45s; }
.reveal-feature .day-mock-row:nth-child(3), .reveal-feature .repeat-menu li:nth-child(2) { transition-delay: .53s; }
.reveal-feature .day-mock-row:nth-child(4), .reveal-feature .repeat-menu li:nth-child(3) { transition-delay: .61s; }
.reveal-feature .day-mock-row:nth-child(5), .reveal-feature .repeat-menu li:nth-child(4) { transition-delay: .69s; }
.reveal-feature .day-mock-row:nth-child(6), .reveal-feature .repeat-menu li:nth-child(5) { transition-delay: .77s; }
.reveal-feature .repeat-menu li:nth-child(6) { transition-delay: .85s; }

.reveal-feature .stickers span { opacity: 0; }
.reveal-feature.is-visible .stickers span { animation: slap .7s cubic-bezier(.25, .8, .3, 1) both; animation-delay: var(--d); }
@keyframes slap {
    from { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--r) - 6deg)) scale(1.12); }
    to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
}

.reveal-feature .notification { opacity: 0; transform: translateY(-24px); transition: opacity .5s ease .55s, transform .7s cubic-bezier(.2, 1.3, .4, 1) .55s; }
.reveal-feature.is-visible .notification { opacity: 1; transform: none; }

.reveal-feature .cloud-glyph { opacity: 0; transform: translateY(20px); transition: opacity .6s ease .4s, transform .9s cubic-bezier(.2, .8, .2, 1) .4s; }
.reveal-feature.is-visible .cloud-glyph { opacity: 1; transform: none; animation: cloud-float 5s ease-in-out 1.4s infinite; }
@keyframes cloud-float { 50% { transform: translateY(-6px); } }

/* Task pills, like TaskLabel in the app */
.pill {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--c);
    color: #111;
    font-weight: 550;
    font-size: .98rem;
    white-space: nowrap;
}

/* One day, drawn like a day column in the app */
.day-mock { width: min(100%, 380px); padding: 1.25rem 1.5rem .5rem; border-radius: 22px; font-size: 1.05rem; font-weight: 500; }
.day-mock-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--accent);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
}
.day-mock-head span:last-child { font-size: 1.05rem; font-weight: 500; color: var(--ink-2); }
.day-mock-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 3.1rem;
    border-bottom: 1px solid rgba(74, 59, 40, .12);
}
.day-mock-row .check { margin-left: auto; }
.check { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid var(--ink); }

/* Repeat menu, like the task menu in the app */
.repeat-menu {
    width: min(100%, 250px);
    margin: 0;
    padding: .4rem;
    list-style: none;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 500;
}
.repeat-menu li { position: relative; padding: .55rem .8rem .55rem 2.1rem; border-radius: 10px; }
.repeat-menu li.is-checked { background: var(--accent); color: #fff; }
.repeat-menu li.is-checked::before { content: "✓"; position: absolute; left: .8rem; font-weight: 700; }

/* Reminder notification */
.notification-stack { display: flex; flex-direction: column; align-items: center; width: min(100%, 340px); }
.notification {
    position: relative;
    z-index: 1;
    display: flex;
    gap: .8rem;
    width: 100%;
    padding: .9rem 1.05rem;
    border-radius: 22px;
    text-align: left;
}
.notification img { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 22.4%; }
.notification > div { flex: 1; }
.notification p { margin: 0; }
.notification-top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-2); }
.notification-top b { color: var(--ink); font-weight: 600; }
.notification-title { font-weight: 650; }
.notification-body { font-size: .92rem; color: var(--ink-2); }
.notification-back { width: 88%; height: 12px; border-radius: 0 0 16px 16px; background: rgba(255, 255, 255, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Stickers: emoji drawn like die-cut stickers (white outline + soft shadow) */
.v-stickers { min-height: 420px !important; }
.stickers { position: absolute !important; inset: 0; }
.stickers span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: var(--s);
    line-height: 1;
    transform: translate(-50%, -50%) rotate(var(--r));
    /* Smooth white outline from the SVG filter in index.html, then a soft shadow */
    filter: url(#sticker-outline) drop-shadow(0 8px 10px rgba(20, 40, 90, .22));
}

/* iCloud: the cloud above the four devices it keeps in sync */
.cloud-sync { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.cloud-glyph { width: min(100%, 200px); height: auto; filter: drop-shadow(0 16px 24px rgba(20, 50, 110, .35)); }
.cloud-devices { display: flex; gap: 1.6rem; }
.cloud-devices { padding: .8rem 1.3rem; border-radius: 999px; }
.cloud-devices svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Devices: a lineup sized in container units, so it scales as one picture */
.devices { padding-bottom: clamp(5rem, 10vw, 8rem); overflow: hidden; }
.lineup {
    container-type: inline-size;
    position: relative;
    width: min(1100px, 100% - 2rem);
    margin: 0 auto;
}
.lineup::before { content: ""; display: block; padding-top: 43%; }
.lu {
    position: absolute;
    margin: 0;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.lu.is-focused { transform: translateY(-1.8cqw); }

/* MacBook */
.lu-mac { left: 20cqw; bottom: 3cqw; width: 62cqw; z-index: 1; }
.mb-lid {
    width: 56cqw;
    margin: 0 auto;
    padding: 1cqw 1cqw 1.3cqw;
    border-radius: 2cqw 2cqw .4cqw .4cqw;
    background: #0B0B0C;
    box-shadow: inset 0 0 0 .18cqw #3A3A3E, 0 2cqw 4cqw -1cqw rgba(20, 30, 60, .35);
    position: relative;
}
.mb-lid::before {
    /* Notch with camera */
    content: "";
    position: absolute;
    top: 1cqw; left: 50%;
    width: 5cqw; height: .9cqw;
    transform: translateX(-50%);
    border-radius: 0 0 .5cqw .5cqw;
    background: #0B0B0C;
    z-index: 3;
}
.mb-screen {
    container-type: inline-size;
    position: relative;
    aspect-ratio: 16 / 10.4;
    overflow: hidden;
    border-radius: .8cqw .8cqw 0 0;
    background: #6FA3D8;
}
.mb-base {
    position: relative;
    height: 1.9cqw;
    border-radius: .3cqw .3cqw 1.6cqw 1.6cqw / .3cqw .3cqw 1.4cqw 1.4cqw;
    background: linear-gradient(#E3E4E8, #B9BBC2 60%, #8E9098);
    box-shadow: 0 1.6cqw 2.4cqw -1cqw rgba(20, 30, 60, .45);
}
.mb-base::before {
    /* Opening notch in the front edge */
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 9cqw; height: .55cqw;
    transform: translateX(-50%);
    border-radius: 0 0 .7cqw .7cqw;
    background: linear-gradient(#A7A9B0, #C9CBD1);
}

/* iPad Pro */
.lu-ipad { left: 2cqw; bottom: 0; width: 27cqw; z-index: 2; }
.ipad-body {
    padding: 1cqw;
    border-radius: 2.4cqw;
    background: #111113;
    box-shadow: inset 0 0 0 .22cqw #4A4A4F, 0 3cqw 5cqw -1.5cqw rgba(20, 30, 60, .5);
}
.ipad-body img { width: 100%; border-radius: 1.5cqw; }

/* iPhone */
.lu-iphone { right: 13cqw; bottom: 0; width: 14cqw; z-index: 3; }
.iphone-body {
    padding: .55cqw;
    border-radius: 2.6cqw;
    background: linear-gradient(135deg, #5B5D63, #2A2B2F 40%, #47494E);
    box-shadow: inset 0 0 0 .12cqw rgba(255, 255, 255, .25), 0 3cqw 4cqw -1.5cqw rgba(20, 30, 60, .55);
}
.iphone-body img { width: 100%; border-radius: 2.1cqw; }

/* Apple Watch */
.lu-watch { right: 0; bottom: 3.5cqw; width: 11cqw; z-index: 3; }
.watch { position: relative; width: 11cqw; height: 13.2cqw; }
.watch-band {
    position: absolute;
    left: 1.4cqw; right: 1.6cqw;
    height: 5cqw;
    background: linear-gradient(90deg, #E9D9C6, #F6EBDD 50%, #E2D0BB);
}
.watch-band-top { bottom: 100%; margin-bottom: -1cqw; border-radius: 1cqw 1cqw 0 0;
    -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%); }
.watch-band-bottom { top: 100%; margin-top: -1cqw; border-radius: 0 0 1cqw 1cqw;
    -webkit-mask: linear-gradient(#000 30%, transparent); mask: linear-gradient(#000 30%, transparent); }
.watch-crown {
    position: absolute;
    right: -.55cqw; top: 3.2cqw;
    width: .9cqw; height: 2.3cqw;
    border-radius: .4cqw;
    background: linear-gradient(90deg, #8D8F96, #D5D7DC, #8D8F96);
}
.watch-button {
    position: absolute;
    right: -.25cqw; top: 7cqw;
    width: .5cqw; height: 2.6cqw;
    border-radius: .3cqw;
    background: #9A9CA3;
}
.watch-case {
    position: relative;
    height: 100%;
    padding: .55cqw;
    border-radius: 3cqw;
    background: linear-gradient(145deg, #DADCE1, #9EA1A8 45%, #C8CACF);
    box-shadow: 0 2.5cqw 3cqw -1cqw rgba(20, 30, 60, .5);
}
.watch-screen {
    height: 100%;
    padding: 1.2cqw .9cqw;
    border-radius: 2.5cqw;
    background: #000;
    color: #EDEDED;
    font-size: .78cqw;
    line-height: 1.2;
    overflow: hidden;
}
.watch-head { display: flex; justify-content: space-between; margin: 0 .2cqw .5cqw; font-weight: 700; font-size: .9cqw; }
.watch-day { color: var(--accent); }
.watch-time { color: #8E8E93; font-weight: 500; }
.watch-task {
    display: flex;
    align-items: center;
    gap: .45cqw;
    padding: .45cqw .2cqw;
    border-bottom: .08cqw solid rgba(255, 255, 255, .12);
    font-weight: 500;
    white-space: nowrap;
}
.watch-task .pill { font-size: .72cqw; padding: .12cqw .45cqw; }
.watch-check { flex: 0 0 auto; width: .85cqw; height: .85cqw; border-radius: 50%; border: .1cqw solid #EDEDED; }
.watch-task.is-done { color: #6B6B6B; text-decoration: line-through; }
.watch-task.is-done .watch-check { background: #6B6B6B; border-color: #6B6B6B; }

/* One card per device, with an outline icon */
.device-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1180px;
    margin: clamp(3rem, 6vw, 4.5rem) auto 0;
    padding: 0 clamp(1rem, 3vw, 2rem);
    list-style: none;
}
.device-card {
    padding: 1.75rem 1.5rem;
    border-radius: 32px;
    background: var(--card);
    text-align: center;
    transition: transform .3s ease;
}
.device-card:hover { transform: translateY(-4px); }
.device-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1rem;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.device-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.device-card { display: flex; flex-direction: column; align-items: center; }

/* Store buttons, styled after Apple's black "Download on the App Store" badges */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    padding: .45rem .95rem .45rem .8rem;
    border-radius: 10px;
    background: #000;
    color: #fff;
    text-decoration: none;
    line-height: 1.05;
    text-align: left;
    transition: transform .2s ease, background-color .2s ease;
}
.device-card p + .store-badge { margin-top: 1.4rem; }
.device-card p { flex: 1; }
.store-badge:hover { background: #222; }
.store-badge:active { transform: scale(.97); }
.store-badge svg { width: 1.25rem; height: 1.5rem; fill: currentColor; flex: 0 0 auto; }
.store-badge span { display: flex; flex-direction: column; font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.store-badge small { font-size: .66rem; font-weight: 500; letter-spacing: .01em; }

.sync-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
    color: var(--ink-2);
    font-weight: 500;
    text-align: center;
    flex-wrap: wrap;
}
.sync-note svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }

/* Pricing, over the meadow again */
.pricing {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(5rem, 10vw, 8rem) 1.5rem;
    overflow: hidden;
}
.pricing-bg, .pricing-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pricing-bg img { object-fit: cover; object-position: 50% 40%; }
.pricing::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 25%;
    background: linear-gradient(var(--paper), rgba(247, 243, 236, 0));
}
.price-card {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    padding: 2.5rem 2.25rem 2rem;
    border-radius: 36px;
    text-align: center;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
/* The app icon pops in when the card scrolls into view; the card itself is always shown */
.reveal-icon { opacity: 0; transform: scale(.6) rotate(-10deg); transition: opacity .5s ease, transform .8s cubic-bezier(.3, 1.5, .5, 1); }
.reveal-icon.is-visible { opacity: 1; transform: none; }
.no-js .reveal-icon { opacity: 1; transform: none; }
.price-icon { width: 112px; height: 112px; margin: 0 auto 1.4rem; border-radius: 22.4%; box-shadow: 0 10px 24px -6px rgba(30, 60, 120, .35); }
.price-card .eyebrow { margin-bottom: .3rem; }
.price { margin: 0; font: 800 5.5rem/1 var(--font-round); letter-spacing: -.04em; }
.currency { font-size: .45em; vertical-align: .95em; margin-right: .05em; }
.price-note { margin: .6rem 0 1.6rem; color: var(--ink-2); }
.price-list { list-style: none; margin: 0 0 1.8rem; padding: 0; text-align: left; }
.price-list li { position: relative; padding: .55rem 0 .55rem 2rem; border-top: 1px solid rgba(74, 59, 40, .1); }
.price-list li::before {
    content: "";
    position: absolute;
    left: .2rem; top: .85rem;
    width: 1.1rem; height: 1.1rem;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 65% no-repeat;
}
.price-fine { margin: 1rem 0 0; font-size: .82rem; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) 1.5rem; }
.faq h2 { text-align: center; margin-bottom: 2.5rem; }
.faq details { border-bottom: 1px solid rgba(74, 59, 40, .15); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--ink-2); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; color: var(--ink-2); }

/* Footer */
/* Footer: the hero illustration again, a last call to action and links */
.footer {
    /* One screen tall, so scrolling to the end lands on the whole footer below the nav */
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: max(600px, 100svh);
    overflow: hidden;
    color: #fff;
    text-shadow: 0 1px 12px rgba(30, 60, 120, .35);
}
.footer-sky, .footer-sky img { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-sky img { object-fit: cover; object-position: 50% 12%; }
.footer-sky::after {
    /* Fades in from the page, and keeps the links readable */
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(var(--paper), rgba(247, 243, 236, .93) 3%, rgba(247, 243, 236, .76) 7%, rgba(247, 243, 236, .53) 11%,
            rgba(247, 243, 236, .3) 15%, rgba(247, 243, 236, .13) 19%, rgba(247, 243, 236, .04) 23%, rgba(247, 243, 236, 0) 27%),
        linear-gradient(rgba(25, 60, 130, 0) 75%, rgba(20, 45, 25, .45)), linear-gradient(rgba(25, 60, 130, .15), rgba(25, 60, 130, .05));
}
.footer-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(7.5rem, 17vh, 10rem) clamp(1.5rem, 4vw, 3rem) 0;
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
.footer-tagline {
    margin: 0 0 1.75rem;
    font: 700 clamp(2.4rem, 5.5vw, 4.5rem)/1 var(--font-round);
    letter-spacing: -0.03em;
}
.btn-light { background: #fff; color: var(--ink); text-shadow: none; }
.btn-light:hover { background: #F2F2F2; }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); }
.footer-cols div { display: flex; flex-direction: column; gap: .55rem; }
.footer-cols a, .footer-cols span { font-size: 1rem; font-weight: 500; text-decoration: none; opacity: .92; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-head { margin: 0 0 .4rem; font-size: .9rem; font-weight: 700; opacity: .75; }
.footer-fine {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem 2rem;
    margin: auto 0 0;
    padding: 3rem 0 2rem;
    font-size: .8rem;
}
.footer-fine p { margin: 0; max-width: 46rem; opacity: .85; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-weight: 600; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-email { display: none; }

/* Phones: no link columns, everything centered; Email joins the legal links */
@media (max-width: 640px) {
    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .footer-cols { display: none; }
    .footer-fine { flex-direction: column; align-items: center; text-align: center; }
    .footer-legal { flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; }
    .footer-email { display: inline; }
}

/* Legal pages: Privacy Policy, Terms of Use, Support */
.legal-page { background: var(--paper); }
.legal { max-width: 44rem; margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.legal h1 { font: 700 clamp(2.4rem, 5vw, 3.4rem)/1.05 var(--font-round); letter-spacing: -0.03em; margin-bottom: .5rem; }
.legal h2 { margin: 2.75rem 0 .75rem; font-size: 1.35rem; font-weight: 700; }
.legal h3 { margin: 1.75rem 0 .4rem; font-size: 1.08rem; }
.legal p, .legal li { color: #3E3A36; font-size: 1.02rem; line-height: 1.65; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: .35rem 0; }
.legal a { color: var(--accent); }
.legal .btn { color: #fff; margin-top: .5rem; }
.legal-meta { color: var(--ink-2) !important; font-size: .92rem !important; }
.legal-lead { font-size: 1.2rem !important; color: var(--ink) !important; margin: 1.5rem 0 1rem; }
.legal-address { padding: 1rem 1.25rem; border-radius: 16px; background: var(--card); }
.legal-footer { padding: 2rem 1.5rem 3rem; text-align: center; font-size: .85rem; color: var(--ink-2); border-top: 1px solid rgba(74, 59, 40, .12); }
.legal-footer a { color: inherit; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* "Coming soon" toast for the buy button */
.toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    z-index: 60;
    padding: .9rem 1.4rem;
    border-radius: 999px;
    background: rgba(29, 29, 31, .92);
    color: #fff;
    font-weight: 500;
    transform: translate(-50%, 150%);
    opacity: 0;
    transition: transform .4s cubic-bezier(.2, 1.2, .4, 1), opacity .3s ease;
    pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .reveal-feature *:not(.stickers span) { opacity: 1 !important; transform: none !important; }
.no-js .reveal-feature .stickers span { opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
    .feature, .feature-flip { grid-template-columns: 1fr; text-align: center; }
    .feature-flip .feature-text { order: 0; }
    .feature-text p { margin: 0 auto; }
    .device-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .feature-visual { min-height: 0; padding: 2.5rem 1.25rem; }
    .v-stickers { min-height: 340px !important; }
    .stickers span { font-size: calc(var(--s) * .7); }
    .device-card { padding: 1.4rem 1rem; }
    .device-icon { width: 44px; height: 44px; }
    .hero-bg img { object-position: 45% 80%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .window-frame { transform: none; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .reveal-icon { opacity: 1; transform: none; }
    .reveal-feature *:not(.stickers span) { opacity: 1 !important; transform: none !important; }
    .reveal-feature .stickers span { opacity: 1 !important; }
}
