/* mylifeos.net — A's calm order, B's look. One coloured moment per section at most. */

:root {
  --bg: #F2F1EE;
  --bg-2: #FFFFFF;
  --ink: #0B0B0C;
  --ink-2: #3F3F46;
  --muted: #62626B;
  --line: #DEDCD7;
  --blue: #1D4ED8;
  --grad: linear-gradient(100deg, #8B5CF6, #E0609A 32%, #F08A4B 58%, #A3CF62 82%, #34B27B);
  --band: #0B0B0C;
  --band-ink: #F4F4F5;
  --band-muted: #A1A1AA;
  --band-line: #26262B;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1200px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08080A;
    --bg-2: #121215;
    --ink: #F4F4F5;
    --ink-2: #D4D4D8;
    --muted: #A1A1AA;
    --line: #26262B;
    --blue: #5A8CFF;
    --band: #F4F4F5;
    --band-ink: #0B0B0C;
    --band-muted: #52525B;
    --band-line: #DCDCE0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

h2 { margin: 0; font: 800 clamp(2.1rem, 4.8vw, 3.9rem)/1 var(--sans); letter-spacing: -.045em; text-wrap: balance; max-width: 17ch; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.125rem/1 var(--sans); letter-spacing: -.02em; }
.brand img { border-radius: 8px; display: block; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav-cta { text-decoration: none; font-weight: 600; font-size: .875rem; padding: 9px 15px; border-radius: 99px; background: var(--blue); color: #fff; }
@media (max-width: 760px) { .nav nav { display: none; } .nav-cta { margin-left: auto; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav { animation: navrule linear both; animation-timeline: scroll(); animation-range: 0 120px; }
    @keyframes navrule { to { border-bottom-color: var(--line); } }
  }
}

/* Store button */
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px 11px 17px; border-radius: 15px; background: var(--ink); color: var(--bg); text-decoration: none; font: 600 1.1875rem/1.1 var(--sans); letter-spacing: -.01em; transition: transform .2s, box-shadow .2s; }
.store:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: .6875rem; font-weight: 500; opacity: .8; }
.store.small { font-size: 1rem; padding: 8px 16px 8px 13px; border-radius: 12px; }
.store.small svg { width: 22px; height: 22px; }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 100px) var(--gutter) clamp(64px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 0; font: 800 clamp(3rem, 6vw, 5.4rem)/.95 var(--sans); letter-spacing: -.055em; text-wrap: balance; }
.lede { margin: 1.5rem 0 2.1rem; max-width: 36ch; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-2); text-wrap: pretty; }
.ctas { display: grid; gap: 14px; justify-items: start; }
.soon { margin: 0; font-size: .9375rem; color: var(--muted); }
.soon strong { color: var(--ink); font-weight: 600; }
.soon a { color: var(--blue); font-weight: 600; text-decoration: none; }
.soon a:hover { text-decoration: underline; }
.hero-shot { margin: 0; width: 100%; }
.pair { position: relative; padding: 0 9% 14% 0; }
.hero-win { border-radius: 12px; overflow: hidden; background: #FAF9F6; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .28), 0 30px 60px -24px rgba(10, 10, 20, .4), 0 10px 20px -12px rgba(10, 10, 20, .2); }
.hero-win .bar { display: flex; gap: 7px; align-items: center; height: 28px; padding: 0 12px; background: #ECEAE6; border-bottom: 1px solid #DEDBD5; }
.hero-win .bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.hero-win .bar i + i { background: #FEBC2E; }
.hero-win .bar i + i + i { background: #28C840; }
.hero-win img { display: block; width: 100%; height: auto; }
.pair .phone { position: absolute; right: 0; bottom: 0; width: 30%; }
.hero-shot figcaption { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-size: .875rem; color: var(--muted); }
.hero-shot figcaption span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; border: 1.5px solid currentColor; vertical-align: 1px; }
.hero-shot figcaption .on::before { background: currentColor; }
@media (prefers-color-scheme: dark) {
  .hero-win { background: #0A0A0B; box-shadow: 0 0 0 1px #2e2e33, 0 30px 60px -24px rgba(0, 0, 0, .7); }
  .hero-win .bar { background: #222226; border-bottom-color: #2e2e33; }
}
@media (max-width: 600px) { .hero-win .bar { height: 18px; gap: 5px; padding: 0 8px; } .hero-win .bar i { width: 7px; height: 7px; } .hero-win { border-radius: 8px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-shot .pair { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both .1s; }
  .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* Section heads */
.sec-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* The day — sticky story */
.day { padding: clamp(64px, 9vw, 120px) 0 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.story { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.stage { display: none; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: clamp(48px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.when { margin: 0 0 .7rem; font-weight: 600; font-size: .8125rem; letter-spacing: .02em; color: var(--muted); }
.step h3 { margin: 0 0 .7rem; font: 800 clamp(1.75rem, 3vw, 2.5rem)/1.05 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.step p:not(.when) { margin: 0; max-width: 36ch; color: var(--ink-2); text-wrap: pretty; }
.step .inline { width: min(250px, 62vw); margin: 32px 0 0; }
@media (min-width: 900px) {
  .js .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .js .stage { display: grid; place-items: center; position: sticky; top: 72px; height: min(calc(100vh - 72px), 900px); grid-column: 2; grid-row: 1; }
  .js .stage .dev { width: min(340px, 28vw, calc((100vh - 140px) * 1320 / 2868)); }
  .js .stage .scr img { position: absolute; inset: 0; opacity: 0; transform: scale(1.015); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js .stage .scr img.on { opacity: 1; transform: none; }
  .js .steps { grid-column: 1; grid-row: 1; }
  .js .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; border-bottom: 0; opacity: .4; transition: opacity .4s; }
  .js .step.on { opacity: 1; }
  .js .step .inline { display: none; }
  html:not(.js) .step { display: grid; grid-template-columns: 1fr auto; column-gap: 64px; align-items: center; }
  html:not(.js) .step .inline { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .js .stage .scr img, .js .step { transition: none; } }

/* Quote */
.quote { max-width: 1100px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); text-align: center; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0 auto; font: 700 clamp(1.75rem, 4.2vw, 3.4rem)/1.12 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.quote-foot { margin: 26px 0 0; color: var(--muted); }
.quote-foot span { color: var(--blue); font-weight: 600; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .quote blockquote p { animation: ink linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes ink { from { opacity: .2; transform: translateY(16px); } }
  }
}

/* Circle */
.circle { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; border-top: 1px solid var(--line); }
.circle p { color: var(--ink-2); max-width: 40ch; font-size: 1.125rem; margin: 1.2rem 0 0; }
.circle .dev { width: min(280px, 58vw); justify-self: center; }
@media (max-width: 760px) { .circle { grid-template-columns: 1fr; } }

/* Everywhere */
.everywhere { padding: clamp(64px, 9vw, 120px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.mac-feature { max-width: var(--max); margin: clamp(32px, 5vw, 64px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mac-copy h3, .soon-card h3 { margin: 14px 0 8px; font: 800 clamp(1.5rem, 2.4vw, 2rem)/1.05 var(--sans); letter-spacing: -.035em; }
.mac-copy p { margin: 0 0 22px; color: var(--ink-2); max-width: 36ch; }
.mac-feature .mac { width: 100%; margin-bottom: 4%; }
@media (max-width: 860px) { .mac-feature { grid-template-columns: 1fr; } .mac-feature .mac { order: -1; width: 92%; justify-self: center; } }

.soon-grid { max-width: var(--max); margin: clamp(48px, 7vw, 96px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.soon-card { container-type: inline-size; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 28px 28px 32px; }
.soon-card p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.devs { height: 260px; margin: 4px 0 24px; display: flex; align-items: flex-end; justify-content: center; }
.pair-ios .tablet { height: 96%; }
.pair-ios .phone { height: 70%; margin-left: -7%; }
.pair-fold .fold-open { height: 84%; }
.pair-fold .fold-cover { height: 92%; margin-left: -5%; }
.devs .dev { width: auto; }
@container (max-width: 380px) { .devs { height: 200px; } }
@media (max-width: 760px) { .soon-grid { grid-template-columns: 1fr; } }

/* Duo — opens as you scroll */
.open { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.open-sticky { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.open-head { text-align: center; }
.kicker { margin: 0 0 14px; }
.open h2 { margin: 0 auto; }
.open-sub { margin: 18px auto 0; max-width: 34ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); text-wrap: balance; }
.unfold { display: none; }
.static-pair { display: flex; gap: clamp(16px, 3vw, 40px); justify-content: center; align-items: center; margin: clamp(32px, 5vw, 56px) auto 0; }
.static-pair .duo-closed { width: min(240px, 30%); }
.static-pair .duo-open { width: min(560px, 62%); }

.open.live { padding: 0; }
.open.live .open-track { height: 300vh; }
.open.live .open-sub { display: grid; }
.open.live .open-sub > span { grid-area: 1 / 1; }
.open.live .open-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: auto 1fr; align-items: center; padding-top: clamp(80px, 11vh, 120px); padding-bottom: 4vh; }
.open.live .static-pair { display: none; }
.open.live .s-closed { opacity: calc(1 - var(--t, 0) * 2); }
.open.live .s-open { opacity: calc(var(--t, 0) * 2 - 1); }
.open.live .unfold {
  --w: min(960px, 88vw, calc((100vh - 320px) * 1902 / 1338));
  --r: calc(var(--w) * .05);
  --b: calc(var(--w) * .022);
  display: block; position: relative; justify-self: center;
  width: var(--w); aspect-ratio: 1902 / 1338;
  perspective: calc(var(--w) * 2.4);
  transform: translateX(calc((1 - var(--t, 0)) * 25%));
}
.leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(145deg, #2a2a2e, #0d0d10 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 40px 70px -30px rgba(0, 0, 0, .5); }
.leaf .pg { position: relative; height: 100%; overflow: hidden; background: #000; }
.leaf.left { left: 0; padding: var(--b) calc(var(--b) * (1 - var(--t, 0))) var(--b) var(--b); border-radius: var(--r) calc(var(--r) * (1 - var(--t, 0))) calc(var(--r) * (1 - var(--t, 0))) var(--r) / calc(var(--r) * 1.4) calc(var(--r) * 1.4 * (1 - var(--t, 0))) calc(var(--r) * 1.4 * (1 - var(--t, 0))) calc(var(--r) * 1.4); }
.leaf.left .pg { border-radius: calc(var(--r) * .7) calc(var(--r) * .7 * (1 - var(--t, 0))) calc(var(--r) * .7 * (1 - var(--t, 0))) calc(var(--r) * .7) / var(--r) calc(var(--r) * (1 - var(--t, 0))) calc(var(--r) * (1 - var(--t, 0))) var(--r); }
.leaf.right { left: 50%; padding: var(--b) var(--b) var(--b) 0; border-radius: 0 var(--r) var(--r) 0 / 0 calc(var(--r) * 1.4) calc(var(--r) * 1.4) 0; transform-origin: left center; transform: rotateY(calc((1 - var(--t, 0)) * -178deg)); backface-visibility: hidden; }
.leaf.right .pg { border-radius: 0 calc(var(--r) * .7) calc(var(--r) * .7) 0 / 0 var(--r) var(--r) 0; }
.leaf .half { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover; }
.leaf.left .half { left: 0; }
.leaf.right .half { left: -100%; }
.leaf .closed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: calc(1 - var(--t, 0) * 2.5); }
.leaf.right .pg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); opacity: calc(1 - var(--t, 0)); }

/* Privacy band */
.privacy { background: var(--band); color: var(--band-ink); }
.privacy-in { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.ledger { margin: clamp(36px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px); }
.ledger div { padding: 22px 0; border-top: 1px solid var(--band-line); display: grid; grid-template-columns: 11rem 1fr; gap: 16px; }
.ledger dt { font-weight: 600; font-size: .875rem; color: var(--band-muted); padding-top: 2px; }
.ledger dd { margin: 0; font-size: 1.125rem; line-height: 1.45; text-wrap: pretty; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ledger div { grid-template-columns: 1fr; gap: 6px; } }

/* Footer */
.foot-in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .fine { margin: 0 0 0 auto; font-size: .8125rem; color: var(--muted); }
@media (max-width: 720px) { .foot .fine { margin: 0; flex-basis: 100%; } }
@media (max-width: 899px) { .step[data-step="0"] .inline { display: none; } }

/* White on the lifted dark-mode blue is under 4.5:1; filled controls keep a deeper blue. */
@media (prefers-color-scheme: dark) { .nav-cta { background: #2B5BE8; } }
