/* PlanySoft site. One stylesheet for every page.
   Colours and fonts are the Lifey landing page's (Website/Lifey/Css/lifey.css),
   so the two sites read as one family. Dark only, like Lifey.
   Shape rule: interactive things (buttons, inputs, chips) are full pills,
   panels are --r (20px). Nothing else. */

/* ── Fonts: variable woff2, one file per style and subset ─────────── */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 800; font-display: swap;
    src: url(../Fonts/QGYvz_MVcBeNP4NJtEtq.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 800; font-display: swap;
    src: url(../Fonts/QGYvz_MVcBeNP4NJuktqQ4E.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url(../Fonts/rP2Hp2ywxg089UriCZOIHQ.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url(../Fonts/rP2Hp2ywxg089UriCZ2IHSeH.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 300 700; font-display: swap;
    src: url(../Fonts/rP2Fp2ywxg089UriCZa4Hz-D.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Tokens (Lifey's) ─────────────────────────────────────────────── */
:root {
    color-scheme: dark;
    --bg: #040D12;
    --bg-raised: #071519;
    --surface: #0d2424;
    --surface-2: #132e2e;
    --border: rgba(147, 177, 166, 0.12);
    --border-hover: rgba(147, 177, 166, 0.28);
    --accent: #93B1A6;
    --accent-dim: rgba(147, 177, 166, 0.18);
    --accent-glow: rgba(147, 177, 166, 0.08);
    --green: #56c896;
    --text-1: #edf2f0;
    --text-2: #8faaa0;
    --text-3: #6f8f84;
    --r: 20px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font-head: 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --wrap: 1180px;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 84px; }
html { -webkit-text-size-adjust: 100%; }
/* Lenis drives the scroll (site.js). Native smooth scroll only when it isn't running. */
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
    background: var(--bg);
    color: var(--text-1);
    font: 400 1rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 18ch; }
.section-lede { color: var(--text-2); font-size: 1.075rem; max-width: 56ch; margin-top: 18px; }
.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    font: 600 0.95rem/1 var(--font-head);
    padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
    transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #a9c4ba; }
.btn-ghost { border-color: var(--border-hover); color: var(--text-1); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-glow); }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(4, 13, 18, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-color: var(--border);
}
.nav-inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1 var(--font-head); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.nav-inner > nav { margin-right: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
    color: var(--text-2); font-size: 0.925rem; padding: 8px 14px; border-radius: 999px;
    transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-1); background: var(--accent-glow); }
.menu-btn {
    display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border-hover);
    background: transparent; color: var(--text-1); cursor: pointer; place-items: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: ""; display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn span { position: relative; }
.menu-btn span::before { position: absolute; top: -5px; }
.menu-btn span::after { position: absolute; top: 5px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 148px 0 96px; min-height: min(100dvh, 880px); display: flex; align-items: center;
}
/* Two soft glows that drift slowly behind the hero. Oversized layers moved by
   transform only, so the animation stays on the compositor and never repaints. */
.hero::before, .hero::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 120%; height: 120%; will-change: transform;
}
.hero::before {
    top: -30%; right: -35%;
    background:
        radial-gradient(closest-side at 55% 45%, rgba(92, 131, 116, 0.30), transparent),
        radial-gradient(closest-side at 30% 70%, rgba(86, 200, 150, 0.08), transparent);
}
.hero::after {
    bottom: -45%; left: -40%;
    background:
        radial-gradient(closest-side at 50% 50%, rgba(24, 61, 61, 0.75), transparent),
        radial-gradient(closest-side at 70% 30%, rgba(147, 177, 166, 0.10), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--text-2); font-size: 1.15rem; max-width: 42ch; margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* The Lifey panel: the app's real icon and its nine real page icons. */
.app-panel {
    position: relative; border-radius: calc(var(--r) + 8px); padding: 28px;
    background: linear-gradient(160deg, var(--surface-2), var(--bg-raised) 70%);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(237, 242, 240, 0.06), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.app-head { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.app-head img { width: 40px; height: 40px; border-radius: 10px; }
.app-head strong { font: 600 1.15rem/1.2 var(--font-head); display: block; }
.app-head span { color: var(--text-2); font-size: 0.875rem; }
.app-head .chip { margin-left: auto; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 500;
    padding: 6px 12px; border-radius: 999px; background: rgba(86, 200, 150, 0.12); color: var(--green);
}

/* The Today view: rows from the app's own example data (features/*/data/mock.js). */
.today { margin-top: 18px; display: grid; gap: 6px; }
.task {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
    background: rgba(4, 13, 18, 0.45); border: 1px solid var(--border); font-size: 0.925rem;
}
.tick { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--border-hover); position: relative; }
.tick::after {
    content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px;
    border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
.t-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.tag { font-size: 0.75rem; color: var(--text-2); padding: 3px 10px; border-radius: 999px; background: var(--accent-glow); }
.tag.hi { color: #f0c38a; background: rgba(240, 195, 138, 0.1); }
.task.done .tick { background: var(--accent); border-color: var(--accent); }
.task.done .tick::after { transform: rotate(45deg) scale(1); }
.task.done .t-title { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-3); }
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mini, .habit-row { padding: 14px 16px; border-radius: 14px; background: rgba(4, 13, 18, 0.45); border: 1px solid var(--border); }
.mini small, .habit-row small { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 0.75rem; }
.mini small img, .habit-row small img { width: 14px; height: 14px; opacity: .7; }
.mini b { display: block; font: 600 1.6rem/1.1 var(--font-head); margin: 8px 0 2px; letter-spacing: -0.02em; }
.mini .clock { color: var(--accent); font-variant-numeric: tabular-nums; }
.mini span, .habit-row span { font-size: 0.85rem; color: var(--text-2); }
.meter { display: block; height: 4px; border-radius: 4px; margin-top: 10px; background: rgba(147, 177, 166, 0.12); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(var(--p)); }
.habit-row { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.habit-row span { display: block; margin-top: 4px; color: var(--text-1); }
.week { list-style: none; display: flex; gap: 5px; }
.week li {
    width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
    font-size: 0.68rem; color: var(--text-3); background: rgba(147, 177, 166, 0.07);
}
.week li.on { background: var(--accent-dim); color: var(--text-1); }

/* ── Lifey bento ──────────────────────────────────────────────────── */
.bento {
    display: grid; gap: 14px; margin-top: 56px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "tasks tasks cal habits"
        "goals notes budget habits"
        "books focus capture capture";
}
.cell {
    position: relative; overflow: hidden; border-radius: var(--r); padding: 28px;
    background: var(--bg-raised); border: 1px solid var(--border);
    transition: border-color .3s, transform .4s var(--ease);
}
.cell:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.cell img { width: 26px; height: 26px; margin-bottom: 20px; }
.cell h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cell p { color: var(--text-2); font-size: 0.95rem; }
.cell ul { margin-top: 18px; display: grid; gap: 8px; }
.cell li { font-size: 0.9rem; color: var(--text-1); padding-left: 22px; position: relative; }
.cell li::before {
    content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 7px;
    border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg) translateY(-3px);
}
.c-tasks { grid-area: tasks; background: linear-gradient(135deg, #183D3D, #0d2424 60%); }
.c-cal { grid-area: cal; }
.c-habits { grid-area: habits; background: linear-gradient(180deg, var(--surface), var(--bg-raised)); display: flex; flex-direction: column; }
.c-goals { grid-area: goals; }
.c-notes { grid-area: notes; }
.c-budget { grid-area: budget; }
.c-books { grid-area: books; }
.c-focus { grid-area: focus; }
.c-capture { grid-area: capture; background: linear-gradient(120deg, var(--surface-2), #183D3D); }
.c-tasks h3, .c-capture h3 { font-size: 1.5rem; }
.c-tasks ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }

/* Habit heat grid: a real 12-week pattern of the kind the app draws. */
.heat { margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: rgba(147, 177, 166, 0.08); }
.heat i.l1 { background: rgba(147, 177, 166, 0.28); }
.heat i.l2 { background: rgba(147, 177, 166, 0.55); }
.heat i.l3 { background: var(--accent); }
.heat-cap { color: var(--text-3); font-size: 0.8rem; margin-top: 10px; }

/* ── Two doors ────────────────────────────────────────────────────── */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.door {
    display: flex; flex-direction: column; gap: 14px; padding: 36px; border-radius: var(--r);
    border: 1px solid var(--border); background: var(--bg-raised);
    transition: border-color .3s, background .3s;
}
.door:hover { border-color: var(--border-hover); background: var(--surface); }
.door h3 { font-size: 1.6rem; }
.door p { color: var(--text-2); max-width: 42ch; }
.door .platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.door .platforms span {
    font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-hover); color: var(--text-1);
}

/* ── Principles ───────────────────────────────────────────────────── */
.principles-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.principles-grid .sticky { position: sticky; top: 110px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; }
.principle h3 { font-size: 1.2rem; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.principle h3::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; flex: none; }
.principle p { color: var(--text-2); font-size: 0.975rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; margin-top: 28px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Roadmap ──────────────────────────────────────────────────────── */
.road { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--border-hover); }
.step { position: relative; padding: 36px 28px 0 0; }
.step::before {
    content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--border-hover);
}
.step.done::before { background: var(--accent); border-color: var(--accent); }
.step.now::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 6px rgba(86, 200, 150, 0.15); }
.step small { display: block; color: var(--text-3); font-size: 0.85rem; margin-bottom: 8px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* ── CTA band ─────────────────────────────────────────────────────── */
.cta-band {
    border-radius: calc(var(--r) + 8px); padding: 72px 56px; text-align: left;
    background:
        radial-gradient(500px 300px at 90% 0%, rgba(147, 177, 166, 0.2), transparent 70%),
        linear-gradient(135deg, #183D3D, var(--surface) 70%);
    border: 1px solid var(--border-hover);
    display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.cta-band p { color: var(--text-2); margin-top: 14px; max-width: 46ch; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); margin-top: 112px; padding: 72px 0 36px; background: var(--bg-raised); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.6fr; gap: 48px; }
.footer p { color: var(--text-2); font-size: 0.925rem; }
.footer .brand { margin-bottom: 16px; }
.footer h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-2); font-size: 0.925rem; transition: color .2s; }
.footer-links a:hover { color: var(--text-1); }
.social { display: flex; gap: 8px; margin-top: 22px; }
.social a {
    width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
    border: 1px solid var(--border); color: var(--text-2); transition: color .2s, border-color .2s, transform .25s var(--ease);
}
.social a:hover { color: var(--text-1); border-color: var(--border-hover); transform: translateY(-2px); }
.footer-bottom {
    margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--text-1); }
.footer-bottom nav { display: flex; gap: 20px; }

/* Newsletter */
.nl label { display: block; font-size: 0.875rem; color: var(--text-2); margin-bottom: 10px; }
.nl-row { display: flex; gap: 8px; }
.nl input {
    flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; color: var(--text-1);
    background: var(--bg); border: 1px solid var(--border-hover); border-radius: 999px; padding: 12px 18px;
    transition: border-color .2s;
}
.nl input::placeholder { color: var(--text-3); }
.nl input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.nl input.error { border-color: #e2807a; }
.nl input.success { border-color: var(--green); }
.nl button { cursor: pointer; }
.nl button:disabled { opacity: 0.6; cursor: progress; }
.nl-msg { min-height: 1.4em; margin-top: 10px; font-size: 0.85rem; }
.nl-msg.error { color: #f0a09a; }
.nl-msg.success { color: var(--green); }

/* ── About page ───────────────────────────────────────────────────── */
.page-hero { padding: 168px 0 72px; position: relative; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(640px 360px at 85% 20%, rgba(92, 131, 116, 0.2), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.page-hero p { color: var(--text-2); font-size: 1.15rem; max-width: 52ch; margin-top: 24px; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story article { padding: 36px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-raised); }
.story article:nth-child(1) { background: linear-gradient(150deg, #183D3D, var(--bg-raised) 70%); }
.story article:nth-child(4) { background: linear-gradient(150deg, var(--surface-2), var(--bg-raised) 70%); }
.story small { color: var(--accent); font-weight: 600; font-family: var(--font-head); font-size: 0.95rem; }
.story h2 { font-size: 1.6rem; margin: 10px 0 12px; }
.story p { color: var(--text-2); }
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.contact a {
    display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--r);
    border: 1px solid var(--border); background: var(--bg-raised); transition: border-color .25s, transform .35s var(--ease);
}
.contact a:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact small { color: var(--text-3); font-size: 0.85rem; }
.contact strong { font: 500 1.02rem/1.3 var(--font-head); word-break: break-all; }

/* ── 404 ──────────────────────────────────────────────────────────── */
.lost { min-height: 100dvh; display: grid; place-items: center; padding: 120px 24px 64px; text-align: center; }
.lost b { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-head); color: var(--accent); letter-spacing: -0.05em; }
.lost h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 12px; }
.lost p { color: var(--text-2); margin: 16px auto 32px; max-width: 44ch; }
.lost .hero-ctas { justify-content: center; }

/* ── Motion: hero entrance + scroll reveal ────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
    .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
    .reveal.in { opacity: 1; transform: none; }
    .step.now::before { animation: pulse 2.4s ease-in-out infinite; }
    .meter i { animation: fill 1.4s var(--ease) .9s both; }
    .hero::before { animation: drift-a 24s ease-in-out infinite alternate; }
    .hero::after { animation: drift-b 30s ease-in-out infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift-a {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { transform: translate(-24%, 10%) scale(1.12); opacity: 0.8; }
    100% { transform: translate(-40%, -4%) scale(0.95); opacity: 1; }
}
@keyframes drift-b {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(26%, -10%) scale(1.15); }
    100% { transform: translate(44%, 4%) scale(1.05); }
}
@keyframes fill { from { transform: scaleX(0); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(86, 200, 150, 0.04); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero { min-height: 0; }
    .bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: "tasks tasks" "cal habits" "goals habits" "notes budget" "books focus" "capture capture";
    }
    .principles-grid { grid-template-columns: 1fr; gap: 40px; }
    .principles-grid .sticky { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .road { grid-template-columns: 1fr 1fr; row-gap: 48px; }
    .road::before { display: none; }
}
@media (max-width: 767px) {
    .wrap { padding: 0 16px; }
    .section { padding: 80px 0; }
    .nav-links, .nav .nav-cta { display: none; }
    .menu-btn { display: grid; margin-left: auto; }
    .nav.open { background: var(--bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
    .nav.open .nav-links {
        display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
        padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border); gap: 4px;
    }
    .nav.open .nav-links a { display: block; padding: 14px 16px; font-size: 1.05rem; }
    .nav-links .mobile-only { display: block; margin-top: 8px; }
    .nav.open .nav-links .mobile-only a { background: var(--accent); color: var(--bg); font-weight: 600; text-align: center; }
    .hero { padding: 120px 0 72px; }
    .app-panel { padding: 18px; }
    .week li { width: 20px; height: 20px; }
    .mini b { font-size: 1.35rem; }
    .bento, .doors, .story, .contact, .principles, .footer-grid, .road { grid-template-columns: 1fr; }
    .bento { grid-template-areas: "tasks" "cal" "habits" "goals" "notes" "budget" "books" "focus" "capture"; }
    .c-tasks ul { grid-template-columns: 1fr; }
    .heat { grid-template-columns: repeat(14, 1fr); gap: 4px; }
    .cta-band { grid-template-columns: 1fr; padding: 44px 24px; }
    .door, .story article { padding: 28px 22px; }
    .page-hero { padding: 132px 0 48px; }
    .footer { margin-top: 80px; }
}
@media (min-width: 768px) { .nav-links .mobile-only { display: none; } }
