/* LifeOS site — tokens, base, type scale, grounds and the glass material.
   Apple product-page grammar (measurements only; no Apple code, text, images or fonts) with Liquid Glass surfaces. */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card-w: #f5f5f7;
  --card-g: #ffffff;
  --card: #ffffff;
  --card-alt: var(--card-w);
  --hair: rgba(0, 0, 0, .12);
  --link: #0066cc;
  --accent: #0071e3;
  --accent-2: #2997ff;
  --teal: #5ee0c8;
  --sky: #64d2ff;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --ok: #30d158;
  --ctl: #e8e8ed;
  --paddle: #d2d2d7;
  --ctl-ink: rgba(0, 0, 0, .56);

  /* the glass material */
  --g-bg: rgba(255, 255, 255, .55);
  --g-edge: rgba(255, 255, 255, .85);
  --g-line: rgba(255, 255, 255, .45);
  --g-shadow: 0 24px 60px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .04);
  --g-blur: 28px;

  --r-card: 28px;
  --r-thumb: 18px;
  --r-pill: 980px;
  --ease: cubic-bezier(.165, .84, .44, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-hover: cubic-bezier(0, 0, .5, 1);
  --pad: 144px;
  --font: system-ui, -apple-system, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: system-ui, -apple-system, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
  --bg: #000000; --bg-alt: #161617;
  --card-w: #1d1d1f; --card-g: #000000; --card: #1d1d1f;
  --hair: rgba(255, 255, 255, .16);
  --link: #2997ff; --accent: #2997ff; --accent-2: #5ac8fa;
  --ctl: rgba(66, 66, 69, .72); --ctl-ink: rgba(255, 255, 255, .85); --paddle: rgba(66, 66, 69, .72);
  --g-bg: rgba(28, 28, 30, .6); --g-edge: rgba(255, 255, 255, .22); --g-line: rgba(255, 255, 255, .12);
  --g-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
  --bg: #000000; --bg-alt: #161617;
  --card-w: #1d1d1f; --card-g: #000000; --card: #1d1d1f;
  --hair: rgba(255, 255, 255, .16);
  --link: #2997ff; --accent: #2997ff; --accent-2: #5ac8fa;
  --ctl: rgba(66, 66, 69, .72); --ctl-ink: rgba(255, 255, 255, .85); --paddle: rgba(66, 66, 69, .72);
  --g-bg: rgba(28, 28, 30, .6); --g-edge: rgba(255, 255, 255, .22); --g-line: rgba(255, 255, 255, .12);
  --g-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark;
} }
@media (max-width: 1068px) { :root { --pad: 120px; } }
@media (max-width: 734px)  { :root { --pad: 112px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.47059 var(--font); letter-spacing: -.022em; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(0, 125, 250, .6); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap      { width: 87.5%; max-width: 1260px; margin: 0 auto; }
.wrap-text { width: 87.5%; max-width: 980px;  margin: 0 auto; }

/* ---------- type scale: measured from Apple's product pages at 1440 (desktop / ≤1068 / ≤734) ---------- */
.t-hero       { font: 600 48px/1.08349 var(--font-display); letter-spacing: -.003em; }
.t-headline   { font: 600 48px/1.08349 var(--font-display); letter-spacing: -.003em; }
.t-headline-s { font: 600 32px/1.125   var(--font-display); letter-spacing: .004em; }
.t-eyebrow    { font: 600 21px/1       var(--font-display); letter-spacing: .011em; }
.t-intro      { font: 600 21px/1.381   var(--font-display); letter-spacing: .011em; color: var(--text-2); }
.t-lead       { font: 400 21px/1.381   var(--font);         letter-spacing: .011em; }
.t-small      { font: 400 14px/1.42859 var(--font);         letter-spacing: -.016em; }
.t-fine       { font: 400 12px/1.33337 var(--font);         letter-spacing: -.01em; }
@media (max-width: 1068px) {
  .t-hero, .t-headline { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
  .t-headline-s { font-size: 28px; line-height: 1.14286; letter-spacing: .007em; }
  .t-intro, .t-lead { font-size: 19px; line-height: 1.4211; }
}
@media (max-width: 734px) {
  .t-hero, .t-headline { font-size: 32px; line-height: 1.125; letter-spacing: .004em; }
  .t-headline-s { font-size: 24px; line-height: 1.16667; letter-spacing: .009em; }
  .t-eyebrow { font-size: 19px; }
  .t-intro, .t-lead { font-size: 17px; line-height: 1.47059; letter-spacing: -.022em; }
}
.muted { color: var(--text-2); }
b, strong { font-weight: 600; }

/* ---------- grounds: white, #f5f5f7 or black, never in between ---------- */
.g-white { background: var(--bg); }
.g-gray  { background: var(--bg-alt); --card-alt: var(--card-g); }
.g-black {
  background: #000; color: #f5f5f7;
  --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
  --link: #2997ff; --accent: #2997ff;
  --card: #161617; --card-alt: #161617; --hair: rgba(255, 255, 255, .16);
  --ctl: rgba(66, 66, 69, .72); --ctl-ink: rgba(255, 255, 255, .85); --paddle: rgba(66, 66, 69, .72);
  --g-bg: rgba(28, 28, 30, .55); --g-edge: rgba(255, 255, 255, .28); --g-line: rgba(255, 255, 255, .14);
  --g-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04);
}
.section { padding: var(--pad) 0; position: relative; }

/* ---------- the glass material ----------
   A translucent sheet that lenses whatever sits behind it: blur and saturation, a bright top edge, a soft
   specular across the top-left, and a shadow that only shows against the ground. Keep content on its own layer. */
.glass {
  position: relative; isolation: isolate;
  background: var(--g-bg);
  -webkit-backdrop-filter: saturate(180%) blur(var(--g-blur)); backdrop-filter: saturate(180%) blur(var(--g-blur));
  border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 var(--g-edge), inset 0 0 0 1px var(--g-line), var(--g-shadow);
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%),
              radial-gradient(70% 60% at 100% 100%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%); }
.g-black .glass::before { background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%),
                                      radial-gradient(70% 60% at 100% 100%, rgba(41, 151, 255, .14), rgba(255, 255, 255, 0) 60%); }
.glass-pill { border-radius: var(--r-pill); }
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- liquid mesh: a slow field of colour behind the glass ---------- */
.mesh-wrap { position: relative; overflow: hidden; }
.mesh { position: absolute; inset: -25%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .95;
  background: radial-gradient(38% 38% at 22% 30%, rgba(41, 151, 255, .55), transparent 70%),
              radial-gradient(32% 32% at 78% 22%, rgba(94, 224, 200, .45), transparent 70%),
              radial-gradient(42% 42% at 62% 86%, rgba(0, 113, 227, .55), transparent 70%),
              radial-gradient(30% 30% at 10% 90%, rgba(100, 210, 255, .45), transparent 70%); }
.g-black .mesh { opacity: .7; }
.mesh-wrap > :not(.mesh) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .mesh { animation: drift 26s var(--ease-io) infinite alternate; }
}
@keyframes drift { to { transform: translate3d(5%, -4%, 0) rotate(8deg) scale(1.08); } }

/* ---------- buttons, links, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); background: var(--btn); color: #fff; font-size: 17px; letter-spacing: -.022em; border: 0; cursor: pointer; white-space: nowrap; transition: background-color .2s, transform .18s var(--ease), box-shadow .3s var(--ease); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:hover { background: var(--btn-hover); text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px rgba(0, 113, 227, .28); }
.btn:active { transform: scale(.97); }
.btn-s { min-height: 30px; padding: 0 14px; font-size: 13px; letter-spacing: -.01em; }
.btn-glass { background: var(--g-bg); color: var(--text); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 1px 0 var(--g-edge), inset 0 0 0 1px var(--g-line), 0 8px 24px rgba(0, 0, 0, .08); }
.btn-glass:hover { background: var(--g-bg); box-shadow: inset 0 1px 0 var(--g-edge), inset 0 0 0 1px var(--g-line), 0 14px 32px rgba(0, 0, 0, .12); }
.btn-white { background: #fff; color: #1d1d1f; }
.btn-white:hover { background: #fff; }
.btn[aria-disabled="true"] { background: var(--ctl); color: var(--ctl-ink); cursor: not-allowed; box-shadow: none; transform: none; }
.more { font-size: 17px; white-space: nowrap; }
.more::after { content: "\00a0›"; }
.ctas { display: flex; gap: 16px 30px; align-items: center; flex-wrap: wrap; }
.center .ctas, .ctas.center { justify-content: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1; letter-spacing: 0; color: var(--text-2); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.live::before { background: var(--ok); }
.tag.soon::before { background: #ff9f0a; }

/* ---------- reveal: once, at 85% of the viewport; rise 30px over .7s, fade .9s, .15s apart ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * .15s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
