/* LifeTrack landing page. Warm paper, ink type, the app's indigo as a quiet accent. */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f4ee;
  --paper-2: #efe9dd;
  --card: #fffdf9;
  --ink: #16171d;
  --ink-2: #3a3c46;
  --muted: #6b6a72;
  --line: #e3dccd;
  --brand: #4f46e5;
  --brand-ink: #3b33c4;
  --taken: #15803d;
  --alarm: #d9480f;
  --night: #121318;

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Instrument Sans', 'Segoe UI', 'Helvetica Neue', 'Noto Sans Devanagari', 'Kohinoor Devanagari', sans-serif;

  --radius: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  font-variation-settings: 'opsz' 144;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  font-variation-settings: 'opsz' 120;
}
h3 { font-size: 1.35rem; line-height: 1.25; font-variation-settings: 'opsz' 36; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--brand); }

.eyebrow, .kicker {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.kicker::before { content: ''; display: inline-block; width: 22px; height: 1.5px; background: currentColor; vertical-align: middle; margin: -3px 10px 0 0; }
.kicker--light { color: #a9a8b4; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; margin: 26px 0 0; }
.section__lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; margin: 20px 0 0; }
.note { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(22, 23, 29, .55); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { padding: 10px 18px; font-size: .92rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.nav__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 120px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ticks { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: .95rem; }
.ticks li::before { content: '✓'; color: var(--taken); font-weight: 700; margin-right: 8px; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  position: relative;
  width: min(290px, 72vw);
  aspect-ratio: 540 / 1200;
  border-radius: 46px;
  padding: 10px;
  background: #0e0f13;
  box-shadow:
    0 0 0 1.5px #2a2c33 inset,
    0 50px 80px -40px rgba(22, 23, 29, .55),
    0 30px 40px -30px rgba(22, 23, 29, .35);
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #1c1b1f; }
.phone--hero { z-index: 2; animation: float 7s ease-in-out infinite; }

.rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.rings span {
  position: absolute;
  width: min(330px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  opacity: 0;
  animation: ring 4.2s cubic-bezier(.15, .55, .3, 1) infinite;
}
.rings span:nth-child(2) { animation-delay: 1.4s; }
.rings span:nth-child(3) { animation-delay: 2.8s; }
@keyframes ring {
  0% { transform: scale(.55); opacity: 0; }
  12% { opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-12px) rotate(-1.2deg); } }

.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: .88rem;
  color: var(--ink-2);
  box-shadow: 0 18px 30px -18px rgba(22, 23, 29, .35);
  white-space: nowrap;
}
.chip strong { color: var(--ink); }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip--taken { top: 14%; left: -6%; animation: float 7s ease-in-out -2s infinite; }
.chip--taken .chip__dot { background: var(--taken); box-shadow: 0 0 0 4px #15803d22; }
.chip--refill { bottom: 13%; right: -4%; animation: float 7s ease-in-out -4.5s infinite; }
.chip--refill .chip__dot { background: var(--alarm); box-shadow: 0 0 0 4px #d9480f22; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section--tint { background: var(--paper-2); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 34px; }
.pillar p { color: var(--ink-2); margin: 12px 0 0; }
.pillar__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #4f46e512; margin-bottom: 22px; }
.pillar__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* People */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.person {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.person:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -36px rgba(22, 23, 29, .5); }
.person__age {
  font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1;
  color: var(--brand); letter-spacing: -0.03em;
}
.person h3 { margin-top: 14px; }
.person p { color: var(--ink-2); font-size: .97rem; margin: 10px 0 26px; flex: 1; }
.person img {
  width: 84%; margin: 0 auto; aspect-ratio: 540 / 700; object-fit: cover; object-position: top;
  border-radius: 22px 22px 0 0; border: 6px solid #0e0f13; border-bottom: 0;
  transform: translateY(8px); transition: transform .35s ease;
}
.person:hover img { transform: translateY(0); }
.person img.person__shot--center { object-position: center 42%; }

/* Gallery */
.gallery {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 56px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery:focus-visible { outline-offset: -6px; }
.gallery figure { margin: 0; flex: 0 0 auto; width: clamp(200px, 22vw, 250px); scroll-snap-align: center; }
.gallery img { border-radius: 26px; border: 7px solid #0e0f13; aspect-ratio: 540 / 1200; object-fit: cover; box-shadow: 0 24px 40px -30px rgba(22, 23, 29, .6); }
.gallery figcaption { text-align: center; margin-top: 16px; font-size: .95rem; color: var(--ink-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps li { padding: 0 34px 0 0; border-top: 1.5px solid var(--ink); padding-top: 26px; margin-right: 24px; }
.steps__n { font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--brand); display: block; margin-bottom: 16px; }
.steps p { color: var(--ink-2); margin: 10px 0 0; }

/* Demo */
.demo { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 7vw, 100px); align-items: center; }
.phone--video { width: min(320px, 78vw); }
.phone--video video { display: block; }

/* Privacy */
.privacy { background: var(--night); color: #f2efe8; padding: clamp(80px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.privacy::after {
  content: ''; position: absolute; width: 720px; aspect-ratio: 1; border-radius: 50%;
  right: -260px; top: -260px; border: 1.5px solid #4f46e555; box-shadow: 0 0 0 90px #4f46e50d, 0 0 0 180px #4f46e508;
  pointer-events: none;
}
.privacy h2 em { color: #a5a0ff; }
.privacy__list { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; position: relative; z-index: 1; }
.privacy__list li { color: #b9b7c2; border-top: 1px solid #2c2d36; padding-top: 22px; }
.privacy__list strong { display: block; color: #fff; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 6px; }

/* Languages */
.langs { border-bottom: 1px solid var(--line); padding: 54px 0; }
.langs__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.langs .kicker { margin: 0; }
.langs__row { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 40px; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.2; }
.langs__row span[lang='hi'], .langs__row span[lang='mr'] { font-family: var(--sans); font-weight: 500; }
.langs__row span:nth-child(even) { color: var(--brand); }

/* Download */
.download { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.install { margin: 30px 0 0; padding-left: 1.3em; color: var(--ink-2); display: grid; gap: 10px; max-width: 34em; }
.install li::marker { font-family: var(--serif); font-style: italic; color: var(--brand); }
.qr {
  margin: 0; justify-self: center; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 28px 28px 22px;
  box-shadow: 0 40px 60px -48px rgba(22, 23, 29, .55);
  transform: rotate(1.5deg);
}
.qr img { width: min(240px, 60vw); height: auto; image-rendering: pixelated; }
.qr figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.22rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.6rem; font-weight: 300; color: var(--brand); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 40em; }

/* Footer */
.footer { padding: 48px 0 56px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.footer__disclaimer { margin: 0; color: var(--muted); font-size: .88rem; max-width: 46em; }
.footer__links { margin: 0; display: flex; gap: 22px; font-size: .92rem; }
.footer__links a { color: var(--ink-2); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 999px; font-size: .95rem;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* The hero animates on load with CSS only, so the headline never waits on scroll events. */
.js .hero .reveal { opacity: 1; transform: none; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .08s; }
.js .hero .reveal:nth-child(3) { animation-delay: .16s; }
.js .hero .reveal:nth-child(4) { animation-delay: .24s; }
.js .hero .reveal:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .privacy__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .hero__grid, .demo, .download, .faq { grid-template-columns: 1fr; }
  .hero__visual { min-height: 520px; margin-top: 8px; }
  .chip--taken { left: 0; }
  .chip--refill { right: 0; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .steps { gap: 34px; }
  .steps li { margin-right: 0; padding-right: 0; }
  .demo .phone--video { justify-self: center; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .people { grid-template-columns: 1fr; }
  .privacy__list { grid-template-columns: 1fr; gap: 28px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .chip { font-size: .8rem; padding: 9px 12px; }
  .chip--taken { top: 6%; }
  .chip--refill { bottom: 6%; }
  .langs__row { gap: 6px 22px; }
  .footer__links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rings span:first-child { opacity: .35; transform: scale(1.2); }
}
