/* LWYL — same look as the app: New York titles, SF text, ink on off-white. */
:root {
  --bg: #F4F3F0;
  --tile: #FFFFFF;
  --ink: #1A1A1F;
  --ink-2: #6B6B73;
  --line: rgba(26, 26, 31, 0.08);
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
/* Dark: the header switch's choice (data-theme), else the visitor's setting. */
:root[data-theme="dark"] {
  --bg: #0E0E10;
  --tile: #1A1A1E;
  --ink: #F2F2F4;
  --ink-2: #9A9AA3;
  --line: rgba(242, 242, 244, 0.10);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E10;
    --tile: #1A1A1E;
    --ink: #F2F2F4;
    --ink-2: #9A9AA3;
    --line: rgba(242, 242, 244, 0.10);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

/* Header / footer */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px var(--sans); letter-spacing: 0.04em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav a { color: var(--ink-2); text-decoration: none; margin-left: 18px; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--ink-2); text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--ink); }

/* Home */
.hero { text-align: center; padding: 40px 0 8px; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.eyebrow { font: 600 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(44px, 9vw, 72px); line-height: 1.02; margin: 0; }
.hero p.lead { font: 500 clamp(22px, 3.4vw, 28px)/1.25 var(--serif); color: var(--ink); max-width: 620px; margin: 26px auto 0; }
.hero .sublead { font-size: 17px; color: var(--ink-2); max-width: 600px; margin: 10px auto 0; text-wrap: balance; }
.usps { list-style: none; padding: 0; margin: 20px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 920px; }
.usps li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--tile);
           font: 500 14px var(--sans); color: var(--ink); }
.usps li:nth-child(1) svg { color: #D9890B; }   /* any plan: amber */
.usps li:nth-child(2) svg { color: #2F7FE0; }   /* iCloud: blue */
.usps li:nth-child(3) svg { color: #8A5CE6; }   /* private: violet */
:root[data-theme="dark"] .usps li:nth-child(1) svg { color: #F2B544; }
:root[data-theme="dark"] .usps li:nth-child(2) svg { color: #6AA8F5; }
:root[data-theme="dark"] .usps li:nth-child(3) svg { color: #B193F5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .usps li:nth-child(1) svg { color: #F2B544; }
  :root:not([data-theme="light"]) .usps li:nth-child(2) svg { color: #6AA8F5; }
  :root:not([data-theme="light"]) .usps li:nth-child(3) svg { color: #B193F5; }
}
.usps .short { display: none; }
@media (max-width: 640px) { .usps .short { display: inline; } }
.usps svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* App Store badge: Apple's artwork as is — black on light, white on dark. */
.get { text-align: center; margin-top: 40px; }
.store { display: inline-block; line-height: 0; }
.store img { height: 50px; width: auto; }
.store .on-dark { display: none; }
:root[data-theme="dark"] .store .on-light { display: none; }
:root[data-theme="dark"] .store .on-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .store .on-light { display: none; }
  :root:not([data-theme="light"]) .store .on-dark { display: inline; }
}
.soon { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }

/* Screenshots come framed (Bezel, transparent PNG → WebP): no extra border. */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 20px -40px 0; }
.shot { display: grid; margin: 0; }
.shots-more { margin-top: 48px; }
/* The App Store headline under each phone. */
.shot figcaption { grid-row: 2; font: 500 17px/1.3 var(--serif); text-align: center; color: var(--ink);
                   margin-top: 12px; padding: 0 6px; }
.shot img { grid-area: 1 / 1; display: block; width: 100%; height: auto; transition: opacity 0.45s ease; }
/* Light or dark screenshots, with the site's theme. */
.shot .dark { opacity: 0; }
:root[data-theme="dark"] .shot .dark { opacity: 1; }
:root[data-theme="dark"] .shot .light { opacity: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .dark { opacity: 1; }
  :root:not([data-theme="light"]) .shot .light { opacity: 0; }
}
body { transition: background-color 0.35s ease, color 0.35s ease; }

/* Theme switch in the header: the ink pill slides to the chosen side. */
.top-right { display: flex; align-items: center; gap: 14px; }
/* One round button: a moon in light mode, a sun in dark (the theme it switches to). */
.theme-button { appearance: none; border: 0; cursor: pointer; flex: none; width: 36px; height: 36px; border-radius: 50%;
                display: grid; place-items: center; background: var(--tile); color: var(--ink);
                box-shadow: 0 1px 2px rgba(0,0,0,0.06); -webkit-tap-highlight-color: transparent; }
.theme-button[hidden] { display: none; }
.theme-button:hover { color: var(--ink); background: var(--line); }
.theme-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.theme-button svg { grid-area: 1 / 1; }
.theme-button .sun, .theme-button[aria-checked="true"] .moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-button[aria-checked="true"] .sun { opacity: 1; transform: none; }
.theme-button.ready svg { transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1); }
@media (prefers-reduced-motion: reduce) {
  .theme-button.ready svg, .shot img, body { transition-duration: 0.01s; }
}
@media (max-width: 480px) {
  .brand span { display: none; }   /* logo only, so the links and switch fit */
  .top nav a { margin-left: 14px; }
  .top-right { gap: 12px; }
}

@media (max-width: 1000px) {
  /* Narrow screens: all ten phones on one swipeable line. */
  .shots-wrap { display: grid; grid-auto-flow: column; grid-auto-columns: min(64%, 300px); gap: 16px; margin-top: 20px; }
  .shots-wrap > .shots { display: contents; }
  .shots-wrap { overflow-x: auto;
           /* Only clearly sideways swipes move the strip: proximity snapping
              doesn't grab diagonal flicks, up/down passes to the page, and the
              strip doesn't bounce the page sideways at its ends. */
           scroll-snap-type: x proximity; touch-action: pan-x pan-y; overscroll-behavior-x: contain;
           padding-bottom: 8px; margin-left: -16px; margin-right: -16px;
           padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .shots-wrap::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; }
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 64px; }
.feature { background: var(--tile); border-radius: 22px; padding: 22px; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px;
                background: var(--bg); color: var(--ink); }
/* Each feature tile has its own colour: the icon, on a soft tint of it. */
.features .feature:nth-child(1) .feature-icon { --fc: #D9890B; }
:root[data-theme="dark"] .features .feature:nth-child(1) .feature-icon { --fc: #F2B544; }
.features .feature:nth-child(2) .feature-icon { --fc: #E0663A; }
:root[data-theme="dark"] .features .feature:nth-child(2) .feature-icon { --fc: #F28A62; }
.features .feature:nth-child(3) .feature-icon { --fc: #E0475F; }
:root[data-theme="dark"] .features .feature:nth-child(3) .feature-icon { --fc: #F27387; }
.features .feature:nth-child(4) .feature-icon { --fc: #C2559F; }
:root[data-theme="dark"] .features .feature:nth-child(4) .feature-icon { --fc: #E07EC0; }
.features .feature:nth-child(5) .feature-icon { --fc: #0F9DA8; }
:root[data-theme="dark"] .features .feature:nth-child(5) .feature-icon { --fc: #4CC6CF; }
.features .feature:nth-child(6) .feature-icon { --fc: #8A5CE6; }
:root[data-theme="dark"] .features .feature:nth-child(6) .feature-icon { --fc: #B193F5; }
.features .feature:nth-child(7) .feature-icon { --fc: #2F7FE0; }
:root[data-theme="dark"] .features .feature:nth-child(7) .feature-icon { --fc: #6AA8F5; }
.features .feature:nth-child(8) .feature-icon { --fc: #1E9E5A; }
:root[data-theme="dark"] .features .feature:nth-child(8) .feature-icon { --fc: #4CC98A; }
.features .feature:nth-child(9) .feature-icon { --fc: #5B6BE0; }
:root[data-theme="dark"] .features .feature:nth-child(9) .feature-icon { --fc: #8D99F2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .features .feature:nth-child(1) .feature-icon { --fc: #F2B544; }
  :root:not([data-theme="light"]) .features .feature:nth-child(2) .feature-icon { --fc: #F28A62; }
  :root:not([data-theme="light"]) .features .feature:nth-child(3) .feature-icon { --fc: #F27387; }
  :root:not([data-theme="light"]) .features .feature:nth-child(4) .feature-icon { --fc: #E07EC0; }
  :root:not([data-theme="light"]) .features .feature:nth-child(5) .feature-icon { --fc: #4CC6CF; }
  :root:not([data-theme="light"]) .features .feature:nth-child(6) .feature-icon { --fc: #B193F5; }
  :root:not([data-theme="light"]) .features .feature:nth-child(7) .feature-icon { --fc: #6AA8F5; }
  :root:not([data-theme="light"]) .features .feature:nth-child(8) .feature-icon { --fc: #4CC98A; }
  :root:not([data-theme="light"]) .features .feature:nth-child(9) .feature-icon { --fc: #8D99F2; }
}
.features .feature-icon { color: var(--fc, var(--ink)); background: color-mix(in srgb, var(--fc, var(--ink)) 13%, var(--tile)); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
                    stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 21px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Text pages */
.page h1 { font-size: clamp(36px, 7vw, 48px); margin: 24px 0 4px; line-height: 1.1; }
.page .updated { color: var(--ink-2); font-size: 14px; margin: 0 0 32px; }
.page h2 { font-size: 24px; margin: 40px 0 8px; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 20px; }
.page li { margin: 4px 0; }
.page .card { background: var(--tile); border-radius: 22px; padding: 20px 22px; margin: 24px 0; }
.page .card p { margin: 0; }
.muted { color: var(--ink-2); }
details { background: var(--tile); border-radius: 18px; padding: 16px 20px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--ink-2); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink-2); }

/* Phones: a tighter hero so the screenshots start on the first screen. */
@media (max-width: 640px) {
  .top { padding-top: 12px; padding-bottom: 12px; }
  .hero { padding-top: 16px; }
  .hero .icon { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 12px; }
  .hero h1 { font-size: 40px; }
  .hero p.lead { font-size: 19px; margin-top: 16px; text-wrap: balance; }
  .hero .sublead { font-size: 15px; line-height: 1.45; margin-top: 6px; }
  /* Phones: the pitch and four short points in a 2×2 grid; the long line waits for the page. */
  .hero .sublead { display: none; }
  .usps { margin-top: 14px; gap: 6px; max-width: 360px; }
  .usps li { justify-content: center; padding: 7px 8px; font-size: 13px; }
  .usps .long { display: none; }
  /* Two phones side by side, the third peeking in: whole phones on the first screen. */
  .shots-wrap { grid-auto-columns: 46%; gap: 12px; margin-top: 12px; }
  .shot figcaption { font-size: 14px; margin-top: 8px; }
}

/* Routines page */
.small { font-size: 14px; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--tile); padding: 1px 6px; border-radius: 6px; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0 10px; }
.download { appearance: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
            display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 20px;
            background: var(--tile); text-decoration: none; transition: transform 0.15s; }
.download:hover { transform: translateY(-1px); }
.dl-title { font: 500 21px var(--serif); }
.dl-text { font-size: 15px; color: var(--ink-2); }
.dl-file { font-size: 13px; font-weight: 600; margin-top: 6px; }
.dl-file::before { content: "↓ "; }
.steps { padding-left: 22px; }
.steps li { margin: 6px 0; }
.prompt { position: relative; background: var(--tile); border-radius: 18px; margin: 16px 0; }
.prompt pre { margin: 0; padding: 20px; padding-top: 52px; overflow-x: auto; white-space: pre-wrap;
              font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
.copy { position: absolute; top: 12px; right: 12px; appearance: none; border: 0; cursor: pointer;
        background: var(--ink); color: var(--bg); font: 600 14px var(--sans); padding: 7px 14px; border-radius: 999px; }
.more { text-align: center; margin-top: 28px; }
.more a { font-weight: 600; }

/* Program library */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page h2.section-break { margin-top: 64px; }
.page > h3 { font-size: 20px; margin: 28px 0 6px; }

.search-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12vh 0 0; }
.search-hero h1 { margin-top: 0; }
.search-hero .updated { max-width: 520px; margin-bottom: 28px; }

.search { position: relative; width: 100%; text-align: left; }
.search-field { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 58px;
                padding: 9px 18px 9px 50px; border: 1px solid var(--line); border-radius: 29px; background: var(--tile);
                cursor: text; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); scroll-margin-top: 12px; }
.search-field:focus-within { border-color: var(--ink); }
.search-icon { position: absolute; left: 18px; top: 19px; width: 20px; height: 20px;
               fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.chips { display: contents; }
.token { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 4px 0 13px; border-radius: 999px;
         background: var(--ink); color: var(--bg); font: 500 14px var(--sans); white-space: nowrap; }
.token-remove { appearance: none; border: 0; background: none; color: inherit; cursor: pointer; opacity: 0.7;
                width: 28px; height: 28px; border-radius: 50%; font-size: 12px; }
.token-remove:hover { opacity: 1; }
.search input { flex: 1; min-width: 150px; height: 38px; border: 0; background: none; color: var(--ink);
                font: 17px var(--sans); padding: 0; outline: none; -webkit-appearance: none; }
.search input::placeholder { color: var(--ink-2); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; width: 18px; height: 18px; cursor: pointer; background: var(--ink-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.2 12.8-1.4 1.4L12 13.4l-2.8 2.8-1.4-1.4 2.8-2.8-2.8-2.8 1.4-1.4 2.8 2.8 2.8-2.8 1.4 1.4-2.8 2.8 2.8 2.8Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.suggestions { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 8px); background: var(--tile);
               border-radius: 20px; padding: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--line);
               max-height: min(420px, 55vh); overflow-y: auto; }
.suggest-group { margin: 6px 12px 4px; font: 600 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.suggest { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px;
           border-radius: 12px; cursor: pointer; font-size: 16px; }
.suggest small { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.suggest b { font-weight: 650; }
.suggest[aria-selected="true"], .suggest:hover { background: var(--line); }
.suggest-empty { padding: 10px 12px; color: var(--ink-2); font-size: 15px; }

.browse-row[hidden], .browse[hidden] { display: none; }
.browse-row { display: flex; align-items: center; gap: 14px; margin: 28px 0 14px; }
.browse { margin: 0; font: 600 15px var(--sans); color: var(--ink-2); text-decoration: none; }
.browse:hover { color: var(--ink); }

.clear { appearance: none; border: 0; background: none; cursor: pointer; font: 600 14px var(--sans); color: var(--ink);
         text-decoration: underline; text-underline-offset: 3px; padding: 0 2px; }

.programs { scroll-margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 14px 0 10px; }
.program { background: var(--tile); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px;
           cursor: pointer; transition: transform 0.15s ease; }
.program:hover { transform: translateY(-2px); }
.program:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.program-actions { display: flex; align-items: center; gap: 14px; }
.program-more { font: 600 14px var(--sans); color: var(--ink-2); }
.program-eyebrow { margin: 0; font: 600 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.program-title { margin: 0; font: 500 21px var(--serif); }
.program-summary { margin: 0; font-size: 15px; color: var(--ink-2); flex: 1; }
.program-meta { margin: 4px 0 8px; font-size: 13px; color: var(--ink-2); }
.program-download { appearance: none; border: 0; cursor: pointer; align-self: flex-start; font: 600 14px var(--sans);
                    color: var(--bg); background: var(--ink); height: 36px; padding: 0 18px; border-radius: 999px; }
.program-download:disabled { opacity: 0.5; }

/* Program details */
.sheet { border: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; width: min(640px, calc(100% - 32px)); max-height: min(86vh, 900px); border-radius: 28px;
         background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.sheet::backdrop { background: rgba(10, 10, 12, 0.45); }
.sheet[open] { animation: sheet-in 0.22s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
.sheet-body { padding: 24px 24px 28px; }
.sheet-close { position: sticky; top: 0; float: right; margin: -8px -8px 0 12px; appearance: none; border: 0; cursor: pointer;
               width: 38px; height: 38px; border-radius: 50%; background: var(--tile); color: var(--ink); font-size: 18px; line-height: 38px; }
.sheet h2 { font-size: 30px; margin: 4px 0 8px; line-height: 1.15; }
.sheet .program-summary { flex: none; font-size: 16px; }
.sheet h3 { font-size: 19px; margin: 26px 0 10px; }
.sheet .program-download { margin-top: 16px; height: 44px; padding: 0 22px; font-size: 16px; }
@media (max-width: 600px) {
  .sheet { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .sheet-body { padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
}

.week { background: var(--tile); border-radius: 18px; padding: 14px 14px 12px; margin: 0 0 8px; }
.week-label { margin: 0 0 10px; font: 600 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { text-align: center; }
.day-name { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.day-dot { display: grid; place-items: center; margin: 0 auto; width: 30px; height: 30px; border-radius: 50%;
           font: 600 13px var(--sans); background: var(--line); color: var(--ink-2); }
.day-dot.on { background: var(--ink); color: var(--bg); }
.legend { margin: 10px 2px 0; font-size: 13px; color: var(--ink-2); }
.legend b { color: var(--ink); font-weight: 600; }
.legend span { margin-right: 14px; white-space: nowrap; }
.sheet-body:focus { outline: none; }
.sheet-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.routine { background: var(--tile); border-radius: 18px; padding: 16px 18px; margin: 0 0 8px; }
.routine h4 { margin: 0 0 8px; font: 500 18px var(--serif); }
.routine ol { margin: 0; padding: 0; list-style: none; }
.routine li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.routine li:first-child { border-top: 0; }
.routine li span:last-child { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.routine-notes { margin: -2px 0 8px; font-size: 14px; color: var(--ink-2); }

/* Home: Bring your own plan */
.byo { margin-top: 56px; text-align: center; }
.byo h2 { font-size: clamp(32px, 6vw, 44px); line-height: 1.1; margin: 0; }
.byo-lead { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 14px auto 0; }
.byo-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.byo-steps li { background: var(--tile); border-radius: 22px; padding: 22px; }
.byo-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg);
           font: 600 14px var(--sans); margin-bottom: 14px; }
.byo-steps h3 { margin: 0 0 6px; font-size: 21px; }
.byo-steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.byo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; text-decoration: none;
          font: 600 16px var(--sans); background: var(--ink); color: var(--bg); }
.button.secondary { background: var(--tile); color: var(--ink); }
.byo-switch { margin: 22px auto 0; max-width: 560px; font-size: 15px; color: var(--ink-2); }
.byo-switch strong { color: var(--ink); font-weight: 600; }
.byo-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.byo + .features { margin-top: 72px; }
#ai { scroll-margin-top: 16px; }
@media (max-width: 760px) {
  .byo { margin-top: 44px; }
  .byo-lead { font-size: 17px; }
  .byo-steps { grid-template-columns: none; }
}

.more-coming { text-align: center; color: var(--ink-2); font-size: 14px; margin: 18px 0 8px; }

/* Motion: one easing, 12–16 px, opacity and transform only; off with Reduce Motion. */
:root { --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.06); } }
.motion .hero .icon { animation: settle 0.7s var(--ease-out) both; }
.motion .hero h1 { animation: rise 0.6s var(--ease-out) 0.12s both; }
.motion .hero .lead { animation: rise 0.6s var(--ease-out) 0.24s both; }
.motion .hero .sublead { animation: rise 0.6s var(--ease-out) 0.32s both; }
.motion .hero .usps li { animation: rise 0.5s var(--ease-out) both; }
.motion .hero .usps li:nth-child(1) { animation-delay: 0.42s; }
.motion .hero .usps li:nth-child(2) { animation-delay: 0.50s; }
.motion .hero .usps li:nth-child(3) { animation-delay: 0.58s; }
.motion [data-reveal] { opacity: 0; transform: translateY(16px);
                        transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.motion [data-reveal].in { opacity: 1; transform: none; }
/* Settled (first touch or scroll): phones appear in place, no slide. */
.motion-settled .shot[data-reveal] { transform: none; transition: opacity 0.25s ease; }
/* The first row of phones follows the hero on load. */
.motion .shots:first-child .shot[data-reveal] { transition-duration: 0.7s; }
.shot img { transition: opacity 0.45s ease, transform 0.35s var(--ease-out), filter 0.35s var(--ease-out); }
@media (hover: hover) {
  .shot:hover img { transform: translateY(-4px); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.14)); }
}
/* Pill icons: one small gesture each, once, after the hero settles. */
@keyframes flicker { 0%, 100% { opacity: 1; } 20% { opacity: 0.25; } 40% { opacity: 1; } 55% { opacity: 0.45; } }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-3px, 3px); } }
@keyframes drift { 0%, 100% { transform: none; } 50% { transform: translateX(2px); } }
@keyframes click { 0% { transform: translateY(-2.5px); } 60% { transform: translateY(0.6px); } 100% { transform: none; } }
.usps svg path, .usps svg rect { transform-box: fill-box; transform-origin: center; }
.motion .usps .bolt { animation: flicker 0.7s ease 1.05s both; }
.motion .usps .trend { animation: draw 0.6s var(--ease-out) 1.1s both; }
.motion .usps .trend-head { animation: pop 0.3s var(--ease-out) 1.55s both; }
.motion .usps .cloud { animation: drift 1.2s ease-in-out 1.15s both; }
.motion .usps .shackle { animation: click 0.45s var(--ease-out) 1.25s both; }

/* Plans: program cards ease in on each update. */
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
.motion .program { animation: card-in 0.35s var(--ease-out) both; }

/* Buttons press in a little. */
.button, .program-download, .theme-button, .chip { transition: transform 0.12s ease; }
.button:active, .program-download:active, .theme-button:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .hero *, .usps *, .program, .shot img { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .shot:hover img { transform: none; }
}

/* The slogan's language roll (home hero): a clipped window, lines slide up. */
.slogan { position: relative; }
.slogan-text { display: inline-block; white-space: nowrap; vertical-align: top; }
.slogan-text.rolling { display: inline-grid; overflow: hidden; padding: 0 0.1em 0.12em; margin: 0 -0.1em -0.12em; }
.slogan-line { grid-area: 1 / 1; justify-self: center;
               transition: transform 0.65s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.65s ease; }
.slogan-line.from-below { transform: translateY(105%); opacity: 0; transition: none; }
.slogan-line.to-above { transform: translateY(-105%); opacity: 0; }

/* Launch waiting list: an email field and Notify me, in a pill. */
.notify { display: flex; gap: 8px; max-width: 420px; margin: 22px auto 0; padding: 5px; border-radius: 999px;
          background: var(--tile); box-shadow: 0 0 0 1px var(--line); }
.notify input[type="email"] { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 999px;
          background: transparent; color: var(--ink); font: 16px var(--sans); outline: none; }
.notify input[type="email"]::placeholder { color: var(--ink-2); }
.notify:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.notify .button { border: 0; cursor: pointer; flex: none; }
.notify-note { margin: 10px auto 0; max-width: 420px; font-size: 13px; color: var(--ink-2); }
.notify-note a { color: inherit; }
.notify-end { text-align: center; margin: 72px auto 24px; max-width: 640px; }
.notify-end h2 { margin: 0; }
.notify-lead { margin: 12px auto 0; max-width: 480px; color: var(--ink-2); }
.notify.is-sending .button { opacity: 0.6; }
.notify-note.is-done { color: var(--ink); font-size: 15px; }
.notify-note.is-error { color: #C0392B; }
/* Plans page: the three steps as a horizontal timeline — a dot each on one line. */
.plan-timeline { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.plan-timeline li { position: relative; padding-top: 22px; }
.plan-timeline li::before { content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px;
                            border-radius: 50%; background: var(--ink); }
/* The line: from each dot to the next one. */
.plan-timeline li + li::after { content: ""; position: absolute; top: 4.5px; right: calc(50% + 11px); width: calc(100% + 12px - 22px);
                                height: 1.5px; background: var(--ink); opacity: 0.2; }
.plan-timeline h3 { margin: 0 0 4px; font-size: 17px; }
.plan-timeline p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.plan-timeline a { color: inherit; }
@media (max-width: 640px) {
  .plan-timeline { gap: 8px; margin: 22px 0 24px; }
  .plan-timeline h3 { font-size: 15px; }
  .plan-timeline p { font-size: 13px; }
}
/* Signups in a card, like the feature tiles; the field sits on the page colour inside it. */
.notify-card { max-width: 480px; margin: 30px auto 0; padding: 24px 22px 20px; border-radius: 22px; background: var(--tile); text-align: center; }
.notify-card h3 { margin: 0; font-size: 21px; }
.notify-card .notify { margin-top: 16px; background: var(--bg); box-shadow: none; }
.notify-card .notify:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.notify-card .notify-note { margin-top: 12px; }
.notify-end.notify-card { max-width: 560px; margin: 72px auto 24px; padding: 36px 26px 26px; }
@media (max-width: 640px) {
  .notify-card { padding: 20px 16px 18px; }
  .notify-end.notify-card { padding: 30px 18px 22px; }
}
.download-hint { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.sheet .download-hint { margin-top: 10px; }
