/* LifeMap website. One look everywhere: night-blue ground, ice-blue light (the Explore fog palette). */
:root {
  --bg: #050a15;
  --bg-2: #0a1324;
  --panel: rgba(140, 180, 255, 0.06);
  --panel-line: rgba(160, 200, 255, 0.14);
  --fg: #eaf2ff;
  --muted: #9aabc6;
  --dim: #6d7f9c;
  --ice: #7cc4ff;
  --ice-2: #bfe3ff;
  --days: #ff9f2e;
  --walk: #3ccf6a;
  --cities: #3a8dff;
  --countries: #9b6cff;
  --display: "Inter Tight", "SF Pro Display", system-ui, sans-serif;
  --body: "Inter", "SF Pro Text", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font: 700 25px/1.2 var(--display);
  letter-spacing: -0.01em;
  color: #9fd0ff;
}
.notice .eyebrow { font-size: 18px; }
.grad {
  background: linear-gradient(92deg, var(--ice-2), var(--ice) 55%, #5b8dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(5, 10, 21, 0.55);
  border-bottom: 1px solid rgba(160, 200, 255, 0.08);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px var(--display); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 30px; font: 600 15.5px var(--body); color: #c3d0e6; }
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px var(--body);
  padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: #05101f; }
.btn-glass { border: 1px solid var(--panel-line); background: var(--panel); color: var(--ice-2); backdrop-filter: blur(10px); }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(780px, 100svh); display: flex; align-items: center; }
.hero::after { /* fade into the page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 180px;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 1;
}
#globe {
  position: absolute; z-index: 0;
  top: 50%; left: 72%;
  width: min(820px, 110vw); height: min(820px, 110vw);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 1.6s ease;
}
#globe.ready { opacity: 1; }
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(36% 50% at 72% 50%, rgba(80, 150, 255, 0.18), transparent 70%),
    radial-gradient(30% 40% at 10% 20%, rgba(124, 196, 255, 0.06), transparent 70%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; padding-block: 32px 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 0.98; font-weight: 800; letter-spacing: -0.045em; }
.hero-copy > p { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.hero-stats div { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1px solid var(--panel-line); background: var(--panel); backdrop-filter: blur(10px); }
.hero-stats img { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(124,196,255,.16); }
.hero-stats b { display: block; font: 700 15.5px var(--display); color: var(--fg); line-height: 1.2; }
.hero-stats span { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.hero-phone { justify-self: center; }

/* ---------- phone: real App screenshots inside Apple's official iPhone 17 Pro Max bezel (baked into one PNG) ---------- */
.phone { position: relative; width: min(340px, 74vw); aspect-ratio: 1470 / 3000; filter: drop-shadow(0 50px 60px rgba(0,0,0,.55)) drop-shadow(0 0 50px rgba(124,196,255,.18)); }
.phone > img { width: 100%; height: 100%; display: block; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding-block: clamp(24px, 3vw, 42px); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.03; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 19px; max-width: 58ch; }
.center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }

/* auto detection strip */
.detect { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chip {
  border: 1px solid var(--panel-line); background: var(--panel); border-radius: 22px;
  padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.chip i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.chip i svg { width: 22px; height: 22px; }
.chip b { font: 700 18px var(--display); }
.chip span { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.chip img { width: 48px; height: 48px; }
@media (max-width: 900px) { .detect { grid-template-columns: repeat(2, 1fr); } }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3.5vw, 50px); align-items: center; }
.feature.flip .feature-media { order: -1; }
.feature-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.feature-copy h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.03; font-weight: 800; }
.feature-copy > p { color: var(--muted); font-size: 19px; max-width: 48ch; }
.kicker { font: 700 25px/1.2 var(--display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.kicker img { width: 38px; height: 38px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #cfdcf0; font-size: 17px; }
.ticks svg { flex: none; width: 20px; height: 20px; color: var(--ice); margin-top: 3px; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media .halo {
  position: absolute; inset: 10% 0; z-index: -1; filter: blur(60px); opacity: .55;
  background: radial-gradient(closest-side, var(--halo, rgba(124,196,255,.45)), transparent);
}
@media (max-width: 860px) {
  .hero .container, .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .hero .container { padding-block: 24px 12px; }
  .hero { min-height: 0; }
  #globe { left: 50%; top: 34%; opacity: .55; }
  #globe.ready { opacity: .55; }
}

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; min-width: 0;
  border: 1px solid var(--panel-line); border-radius: 28px;
  background: linear-gradient(180deg, rgba(140,180,255,.07), rgba(140,180,255,.02));
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 24px; font-weight: 700; }
.card p { color: var(--muted); font-size: 16px; max-width: 42ch; }
.card .tag { font: 700 18px/1.2 var(--display); letter-spacing: -0.01em; }
.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card .shot { margin-top: auto; padding-top: 18px; display: flex; justify-content: center; }
.card .shot img { width: 78%; border-radius: 26px 26px 0 0; margin-bottom: -28px; box-shadow: 0 -10px 60px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.08); border-bottom: 0; object-fit: cover; object-position: top; aspect-ratio: 1320 / 1500; }
.rings { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.ring { --p: 70; width: 76px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.ring span { font: 700 16px var(--display); }
.ring small { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) { .card.span-3, .card.span-2 { grid-column: span 6; } }

/* privacy */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { border-top: 1px solid var(--panel-line); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.pillar svg { width: 28px; height: 28px; color: var(--ice); }
.pillar h3 { font-size: 22px; }
.pillar p { color: var(--muted); font-size: 17px; }
.pillar img { width: 40px; height: 40px; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--panel-line); background: var(--panel); border-radius: 18px; padding: 0 24px; transition: background .2s; }
.faq details[open] { background: rgba(140,180,255,.09); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 600 19px var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--body); color: var(--ice); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 68ch; font-size: 17px; }
.faq-more { text-align: center; margin-top: 28px; }

/* what's new */
[hidden] { display: none !important; }
.news { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start; }
.notice {
  border-radius: 24px; padding: 26px; border: 1px solid rgba(124,196,255,.35);
  background: radial-gradient(120% 120% at 0% 0%, rgba(124,196,255,.16), rgba(124,196,255,.03));
  display: flex; flex-direction: column; gap: 10px;
}
.notice img { border-radius: 14px; }
.notice h3 { font-size: 22px; }
.notice p { color: var(--muted); }
.log { display: grid; gap: 0; }
.log article { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--panel-line); }
.log article:first-child { border-top: 0; padding-top: 0; }
.log .v { font: 700 20px var(--display); }
.log time { display: block; font: 500 12px var(--mono); color: var(--dim); margin-top: 4px; }
.log h4 { margin: 0 0 6px; font: 600 17px var(--display); }
.log ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
@media (max-width: 800px) { .news { grid-template-columns: 1fr; } .log article { grid-template-columns: 1fr; gap: 6px; } }

/* final cta */
.final { text-align: center; padding-block: clamp(28px, 4vw, 55px); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 100%, rgba(80,150,255,.25), transparent 70%); }
.final .container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 60px rgba(60,140,255,.35); }
.final h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; }
.final p { color: var(--muted); font-size: 18px; }

/* footer */
.site-footer { border-top: 1px solid rgba(160,200,255,.08); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

/* ---------- document pages (help, legal, changelog) ---------- */
.doc { padding-block: 72px 110px; }
.doc .container { max-width: 820px; }
.doc header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.04; }
.doc .meta { color: var(--dim); font: 500 13px var(--mono); }
.prose { color: #cad6ea; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; color: var(--fg); }
.prose h3 { font-size: 19px; margin: 28px 0 10px; color: var(--fg); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--ice); text-underline-offset: 3px; }
.prose strong { color: var(--fg); }
.prose .note { border: 1px solid var(--panel-line); background: var(--panel); border-radius: 16px; padding: 16px 20px; color: var(--muted); font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 18px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--panel-line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 500; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.toc a { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--panel-line); text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* official badges */
.store-badge { display: inline-block; line-height: 0; transition: transform .2s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 54px; width: auto; }
.designed { height: 64px; width: auto; filter: invert(1); opacity: .92; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.facts span { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--muted); font-size: 15px; }
.facts b { color: var(--fg); font-weight: 600; margin-left: 6px; }
.globe-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.globe-badge { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2.5px rgba(255,255,255,.92), 0 6px 18px rgba(0,0,0,.45); transition: opacity 1.2s ease, scale 1.2s ease; pointer-events: none; animation: badge-in 1s ease-out both; }
.globe-badge.pop { width: 32px; height: 32px; animation-duration: 1.2s; }
.globe-badge.out { opacity: 0; scale: .8; }
@keyframes badge-in { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }
.ring-icon { display: block; width: 30px; height: 30px; margin: 0 auto 8px; background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ring-col { display: flex; flex-direction: column; align-items: center; }

/* Scroll-in "data loading" animations (site.js adds .in when a .reveal block comes into view) */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.ring { transition: --p 1.6s cubic-bezier(.2,.8,.2,1); }
.rings.reveal:not(.in) .ring { --p: 0 !important; }
.rings.reveal .ring-col:nth-child(2) .ring { transition-delay: .12s; }
.rings.reveal .ring-col:nth-child(3) .ring { transition-delay: .24s; }
.rings.reveal .ring-col:nth-child(4) .ring { transition-delay: .36s; }
.day-card { position: absolute; z-index: 2; left: max(-40px, calc(50% - 330px)); top: 62%; width: 290px; padding: 22px 20px 14px; border-radius: 26px; background: rgba(16,26,46,.72); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.day-head b { font: 700 19px var(--display); }
.day-head span { font-size: 14px; color: var(--muted); }
.day-card ul { list-style: none; margin: 0; padding: 0; position: relative; }
.day-card ul::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 26px; width: 2px; background: rgba(255,255,255,.14); transform-origin: top; transition: transform 1.4s ease; }
.day-card li { display: flex; align-items: center; gap: 14px; padding: 13px 0; position: relative; transition: opacity .5s, transform .5s cubic-bezier(.2,.9,.3,1.2); }
.day-card li img { width: 36px; height: 36px; flex: none; }
.day-card li.trip img { width: 24px; height: 24px; margin: 0 4px; }
.day-card li p { margin: 0; line-height: 1.3; }
.day-card li b { display: block; font: 600 16px var(--display); margin-bottom: 2px; }
.day-card li.trip b { font-weight: 500; font-size: 14px; color: #c9d6ea; }
.day-card li span { font-size: 13.5px; color: var(--muted); }
.day-card:not(.in) li { opacity: 0; transform: translateY(10px) scale(.96); }
.day-card:not(.in) ul::before { transform: scaleY(0); }
.day-card.in li:nth-child(2) { transition-delay: .25s; } .day-card.in li:nth-child(3) { transition-delay: .5s; }
.day-card.in li:nth-child(4) { transition-delay: .75s; } .day-card.in li:nth-child(5) { transition-delay: 1s; }
.day-card.in li:nth-child(6) { transition-delay: 1.25s; }
@media (max-width: 760px) { .day-card { left: -6px; top: 63%; width: 270px; transform: scale(.74); transform-origin: left top; } }
@media (prefers-reduced-motion: reduce) { .day-card li, .ring, .day-card ul::before { transition: none !important; } }

/* Real App cards cropped from screenshots, sliding up into their card on scroll */
.card .crop { margin-top: auto; padding-top: 18px; overflow: hidden; }
.card .crop img { display: block; width: 100%; aspect-ratio: var(--ar, auto); object-fit: cover; object-position: center 40%; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 50px rgba(0,0,0,.35); transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s; }
.card .crop.reveal:not(.in) img { transform: translateY(36px) scale(.97); opacity: 0; }

/* ---------- Explore pieces drawn in the page (explore-ui.js) ---------- */
[data-fit] { position: relative; overflow: hidden; }
[data-fit] > * { transform-origin: 0 0; }
.fitbox { margin-top: auto; padding-top: 0; }
.card .fitbox { margin-top: auto; }
.card > p + .fitbox { margin-top: auto; }
.lm-glyph { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* phone with a live screen inside Apple's bezel */
.phone.live { isolation: isolate; }
.phone.live .bezel { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.phone.live .screen { position: absolute; left: 5.102%; top: 2.2%; width: 89.796%; height: 95.6%; border-radius: 12.6% / 5.8%; overflow: hidden; background: #1d2533; z-index: 1; }
.ui { width: 440px; height: 956px; position: relative; font-family: -apple-system, "SF Pro Text", var(--body); color: #fff; letter-spacing: 0; }
.ui-top { position: absolute; top: 0; left: 0; width: 440px; height: 72px; display: block; }
.sheet { position: absolute; top: 70px; left: 0; right: 0; bottom: 0; padding: 0 20px; border-radius: 36px 36px 0 0;
  background: linear-gradient(180deg, #364257 0%, #2c3646 40%, #283141 100%); border-top: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 -10px 30px rgba(0,0,0,.35); }
.sheet .grab { display: block; width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 7px auto 0; }
.sh { display: flex; justify-content: space-between; align-items: flex-start; margin: 14px 0 12px; }
.sh h4 { margin: 0; font: 700 28px/1.15 -apple-system, "SF Pro Display", var(--display); letter-spacing: -.01em; }
.sh p { margin: 2px 0 0; font-size: 16px; line-height: 1.3; color: rgba(235,242,255,.62); }
.sh .round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.sheet .sh:first-of-type { margin-top: 18px; }
.tabbar { position: absolute; z-index: 5; left: 50%; bottom: 24px; transform: translateX(-50%); width: 296px; height: 66px; border-radius: 33px; padding: 5px;
  display: grid; grid-template-columns: 1fr 1fr; background: #3a4456; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.tabbar span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.86); border-radius: 28px; }
.tabbar .lm-glyph { font-size: 24px; }
.tabbar .on { background: rgba(18,24,34,.55); color: #45a6ff; }

/* Growing tiles */
.lm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lm-tile { display: flex; flex-direction: column; align-items: center; padding: 11px 0 10px; border-radius: 20px;
  background: color-mix(in srgb, var(--c) 17%, rgba(255,255,255,.04)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.lm-tile > .lm-glyph { font-size: 23px; color: var(--c); }
.lm-ring { position: relative; width: 74px; height: 74px; margin: 6px 0 6px; }
.lm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lm-ring circle { fill: none; stroke-width: 6.5; }
.lm-ring .t { stroke: color-mix(in srgb, var(--c) 22%, transparent); }
.lm-ring .v { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1) calc(var(--i) * .12s); }
.lm-play:not(.in) .lm-ring .v { stroke-dashoffset: 1; }
.lm-ring span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lm-ring b { font: 700 17px/1.1 -apple-system, "SF Pro Rounded", var(--display); letter-spacing: -.01em; }
.lm-ring small { font-size: 9.5px; color: rgba(255,255,255,.6); white-space: nowrap; }
.lm-tile em { font-style: normal; font-size: 14px; font-weight: 600; }

/* Moments cards */
.lm-moments { display: flex; gap: 14px; }
.lm-moment { position: relative; flex: 0 0 154px; height: 212px; border-radius: 22px; overflow: hidden; color: #fff;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 28px rgba(0,0,0,.35); background: #222b38;
  transition: transform .9s cubic-bezier(.2,.8,.2,1) calc(var(--i) * .1s), opacity .9s calc(var(--i) * .1s); }
.lm-play:not(.in) .lm-moment { transform: translateY(26px); opacity: 0; }
.lm-moment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lm-moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,20,.62) 0%, rgba(8,12,20,.25) 30%, rgba(0,0,0,0) 46%, rgba(0,0,0,0) 54%, rgba(8,12,20,.7) 100%); }
.lm-chip { position: absolute; z-index: 1; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,26,36,.5); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lm-chip .lm-glyph { font-size: 15px; color: var(--c); }
.lm-q { position: absolute; z-index: 1; top: 10px; right: 12px; margin: 0; text-align: right; font-size: 15px; line-height: 1.22; text-shadow: 0 1px 3px rgba(0,0,0,.45), 0 0 14px rgba(0,0,0,.35); }
.lm-q b { display: block; font-size: 16px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.lm-a { position: absolute; z-index: 1; left: 12px; right: 10px; bottom: 11px; margin: 0; line-height: 1; white-space: nowrap; overflow: hidden; }
.lm-a b { font: 700 34px/1 -apple-system, "SF Pro Rounded", var(--display); letter-spacing: -.01em; }
.lm-a span { font-size: 15px; font-weight: 600; }
.lm-a small { display: block; margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.85); }

/* Flights map */
.lm-flights { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.lm-flights svg { display: block; width: 100%; height: auto; }
.lm-flights .sea { fill: #101826; }
.lm-flights .land { fill: #1f2b3d; stroke: rgba(160,190,230,.16); stroke-width: .5; stroke-linejoin: round; }
.lm-flights .arc { fill: none; stroke: #ff5fa8; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.4,.1,.2,1) calc(.2s + var(--i) * .09s); }
.lm-flights .arw { fill: #ffd2e6; transition: opacity .5s calc(1.2s + var(--i) * .09s); }
.lm-flights .halo { fill: rgba(255,95,168,.28); }
.lm-flights .dot { fill: #ffe3ef; }
.lm-play:not(.in) .lm-flights .arc { stroke-dashoffset: 1; }
.lm-play:not(.in) .lm-flights .arw { opacity: 0; }
.lm-flights::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,14,22,0) 55%, rgba(10,14,22,.75) 100%); }
.lm-fl-text { position: absolute; z-index: 1; left: 18px; bottom: 14px; font-family: -apple-system, "SF Pro Text", var(--body); color: #fff; line-height: 1.15; }
.lm-fl-text b { display: block; font: 700 34px/1.05 -apple-system, "SF Pro Rounded", var(--display); letter-spacing: -.01em; }
.lm-fl-text span { font-size: 15px; color: rgba(255,255,255,.85); }
.lm-view { position: absolute; z-index: 1; right: 14px; bottom: 16px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 16px;
  font: 600 14px -apple-system, var(--body); color: #fff; background: rgba(30,38,52,.7); border: 1px solid rgba(255,255,255,.18); }
.lm-view .lm-glyph { font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .lm-ring .v, .lm-moment, .lm-flights .arc, .lm-flights .arw { transition: none !important; } }
.lm-next { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 16px 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.lm-next > .lm-glyph { font-size: 22px; color: var(--days); }
.lm-next p { margin: 0; flex: 1; line-height: 1.2; }
.lm-next small { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.lm-next b { font: 700 17px var(--display); }
.lm-next span { font-size: 14px; font-weight: 600; color: var(--days); }
.lm-next .bar { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 3px; border-radius: 2px; background: rgba(255,159,46,.18); }
.lm-next .bar i { display: block; height: 100%; width: 91.3%; border-radius: 2px; background: var(--days); transition: width 1.6s cubic-bezier(.2,.8,.2,1) .3s; }
.lm-play:not(.in) .lm-next .bar i { width: 0; }

/* Moments text: white with a soft shadow, as in the app (the bento's .card p colour must not reach it) */
.lm-moment p { color: #fff; max-width: none; }
.lm-moment .lm-q { font-size: 15px; }
.lm-q, .lm-a { text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 12px rgba(0,0,0,.45); }
.lm-a small { color: #fff; }

/* room for the Today card hanging below the Journey phone */
#journey .feature-media { padding-bottom: 90px; }
@media (max-width: 860px) { .hero-space { display: none; } .section { padding-block: 14px; } #how { padding-top: 32px; } #journey .feature-media { padding-bottom: 96px; } }
/* Wide screens: phone to the right of its column, Today card mostly beside it, touching only the
   map's left edge where the route never goes. Narrow screens keep it under the route (above). */
@media (min-width: 861px) {
  #journey .feature-media { justify-content: flex-end; padding-bottom: 0; }
  #journey .day-card { left: calc(100% - 505px); top: 40%; transform: scale(.88); transform-origin: left top; }
}
/* hero: Designed for iOS + facts, under the App Store button */
.hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-meta .designed { width: 120px; height: auto; display: block; }
.hero-meta .facts { justify-content: flex-start; }
.hero-meta .facts span { font-size: 14px; padding: 8px 14px; }
/* hero copy: centred within its column (Owner 2026-11-27) */
.hero-copy { align-items: flex-start; text-align: left; }
.hero-copy > .hero-designed, .hero-copy > .store-badge, .hero-copy > .facts, .hero-copy > .hero-stats { align-self: center; }
.hero-designed { width: 120px; height: auto; display: block; margin-top: 4px; }
.hero-copy .facts { justify-content: center; }
.hero-copy .facts span { font-size: 14px; padding: 8px 14px; }
.hero-stats { flex-direction: column; align-items: center; gap: 12px; margin-top: 4px; }
.hero-stats .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 0; border: 0; background: none; backdrop-filter: none; border-radius: 0; }
.hero-stats p { margin: 0; text-align: left; }
@media (max-width: 480px) {
  .hero-stats .row { flex-wrap: nowrap; gap: 8px; }
  .hero-stats div { gap: 8px; padding: 7px 12px 7px 7px; }
  .hero-stats img { width: 28px; height: 28px; padding: 6px; }
  .hero-stats b { font-size: 13px; white-space: nowrap; }
  .hero-stats span { font-size: 11.5px; white-space: nowrap; }
}
/* centred badges line up with the middle of the text as it actually wraps (home.js sets --hero-shift) */
.hero-copy > .hero-designed, .hero-copy > .store-badge, .hero-copy > .facts, .hero-copy > .hero-stats { translate: calc(var(--hero-shift, 0px) * -1) 0; }
