/* ═══════════════════════════════════════════════════════════════
   xLibrary — stylesheet
   Extracted to an external file to keep index.html lean (improves
   text-to-HTML ratio for crawlers/AI agents).
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #FFFFFF;
  color: #1A1F2B;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --teal:        #008FAE;
  --teal-dark:   #005D7E;
  --teal-bright: #00BDC8;
  --teal-glow:   rgba(0,143,174,0.14);
  --cream:       #FFFFFF;
  --parchment:   #F0F4F5;
  --dark:        #171B2B;
  --mid:         #4A5568;
  --light:       #8A9AB0;
  --border:      #DDE4E8;
  --white:       #FFFFFF;
}

/* ─── Type ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--mid); }

/* ─── Layout ─────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 100px 0; }
.section--alt { background: var(--parchment); }

/* ─── Eyebrow ─────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.nav-icon {
  width: 34px; height: 34px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; line-height: 1.1;
}
.nav-sub { font-size: 0.68rem; color: var(--light); font-weight: 400; }
.nav-dl {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff;
  padding: 9px 20px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: background .2s;
}
.nav-dl:hover { background: var(--teal-dark); }

/* ─── HERO ───────────────────────────────────────────── */
.hero-wrap {
  background: linear-gradient(175deg, #F0F8FA 0%, #FFFFFF 100%);
  padding: 80px 28px 0;
  overflow: hidden;
}
.hero {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: flex-end;
}
.hero-text { padding-bottom: 80px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 22px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-lead {
  font-size: 1.08rem; line-height: 1.75;
  color: var(--mid); margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-app {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--dark); color: #fff;
  padding: 13px 26px; border-radius: 50px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-app:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-google {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--dark);
  padding: 13px 26px; border-radius: 50px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color .2s, transform .15s;
}
.btn-google:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--dark); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; padding: 13px 18px;
  border: 1.5px solid var(--border); border-radius: 50px;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--dark);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.7rem; color: var(--light);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-top: 3px;
}

/* ─── Phone stack visual ──────────────────────────────── */
.hero-phones {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  height: 480px;
}
.phone {
  position: absolute; bottom: 0;
  border-radius: 30px; overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,30,50,0.18);
}
.phone img { display: block; width: 100%; }
.phone-main {
  width: 220px; z-index: 3;
  left: 50%; transform: translateX(-50%);
}
.phone-left {
  width: 180px; z-index: 2;
  left: 0; bottom: -20px;
  transform: rotate(-6deg) translateX(10px);
  opacity: 0.82;
  box-shadow: 0 20px 52px rgba(0,30,50,0.12);
}
.phone-right {
  width: 180px; z-index: 2;
  right: 0; bottom: -20px;
  transform: rotate(6deg) translateX(-10px);
  opacity: 0.82;
  box-shadow: 0 20px 52px rgba(0,30,50,0.12);
}
.hero-glow {
  position: absolute; bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 340px; height: 200px;
  background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ─── Platform strip ──────────────────────────────────── */
.platform-bar {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px; text-align: center;
  font-size: 0.84rem; color: var(--mid);
}

/* ─── Features Grid ───────────────────────────────────── */
.section-head { text-align: center; max-width: 580px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 0.97rem; line-height: 1.7; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px;
  transition: box-shadow .2s, transform .2s;
}
.feat-card:hover {
  box-shadow: 0 16px 48px rgba(0,30,50,0.08);
  transform: translateY(-4px);
}
.feat-card h3 { margin-bottom: 9px; font-size: 1.05rem; }
.feat-card p { font-size: 0.88rem; line-height: 1.65; }

/* ─── Screenshots strip ───────────────────────────────── */
.screens-section {
  background: var(--dark); padding: 80px 0 0;
  overflow: hidden;
  background: #171B2B;
}
.screens-head { text-align: center; padding: 0 28px 52px; }
.screens-head h2 { color: #fff; margin-bottom: 12px; }
.screens-head p { color: rgba(255,255,255,0.5); font-size: 0.95rem; }
.screens-track {
  display: flex; gap: 18px;
  padding: 0 60px 60px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
  align-items: flex-end;
  justify-content: center;
}
.screens-track::-webkit-scrollbar { display: none; }
.screen-item {
  flex-shrink: 0; scroll-snap-align: start;
  width: 210px;
}
.screen-item img {
  width: 100%; border-radius: 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  display: block;
}

/* ─── How it works ────────────────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 20px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-n {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step h3 { margin-bottom: 5px; }
.step p { font-size: 0.88rem; }
.how-phone {
  display: flex; justify-content: center;
}
.how-phone img {
  width: 240px; border-radius: 28px;
  box-shadow: 0 28px 72px rgba(0,30,50,0.12);
}

/* ─── Split highlight ─────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split-text h2 { margin-bottom: 16px; }
.split-text p {
  font-size: 0.93rem; line-height: 1.78;
  margin-bottom: 12px;
}
.check-list {
  list-style: none; margin-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--mid);
}
.tick {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.tick svg { width: 10px; height: 10px; }
.split-phone { display: flex; justify-content: center; }
.split-phone img {
  width: 240px; border-radius: 28px;
  box-shadow: 0 28px 72px rgba(0,30,50,0.12);
}

/* ─── FAQ ──────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 4px; max-width: 760px; margin: 0 auto; }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.02rem; }
.faq-item p { font-size: 0.9rem; line-height: 1.7; }

/* ─── Privacy bar ─────────────────────────────────────── */
.privacy-bar {
  background: var(--teal);
  padding: 36px 28px; text-align: center;
}
.privacy-bar h3 {
  color: #fff; font-size: 1.25rem; margin-bottom: 7px;
}
.privacy-bar p { color: rgba(255,255,255,0.75); font-size: 0.88rem; }

/* ─── CTA ────────────────────────────────────────────── */
.cta-section {
  background: #171B2B; padding: 80px 28px;
  text-align: center;
}
.cta-section h2 {
  color: #fff; margin-bottom: 12px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-section > p {
  color: rgba(255,255,255,0.45);
  max-width: 440px; margin: 0 auto 32px;
  font-size: 0.95rem;
}
.cta-btns { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.as-btn {
  display: inline-flex; align-items: center; gap: 16px;
  background: #fff; color: #111;
  padding: 14px 28px; border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(0,0,0,0.25);
  transition: transform .15s, box-shadow .2s;
}
.as-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(0,0,0,0.35); }
.as-btn-apple, .as-btn-google { width: 32px; height: 32px; flex-shrink: 0; }
.as-btn-copy { text-align: left; }
.as-btn-copy small { display: block; font-size: 0.65rem; font-weight: 400; color: #555; line-height: 1; margin-bottom: 2px; }
.as-btn-copy strong { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1; color: #111; }
.cta-note { margin-top: 20px; color: rgba(255,255,255,0.3); font-size: 0.78rem; }

/* ─── Footer ──────────────────────────────────────────── */
footer {
  background: #0F1320; padding: 52px 28px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 22px;
}
.footer-icon {
  width: 30px; height: 30px; border-radius: 7px; overflow: hidden;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700;
  color: rgba(255,255,255,0.65);
}
.footer-links {
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.footer-links a {
  color: var(--teal); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy {
  color: rgba(255,255,255,0.25); font-size: 0.78rem;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero-text { padding-bottom: 40px; }
  .hero-phones { height: 360px; margin-bottom: 0; }
  .phone-main  { width: 170px; }
  .phone-left  { width: 140px; }
  .phone-right { width: 140px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .how-grid  { grid-template-columns: 1fr; }
  .how-phone { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip { direction: ltr; }
  .split-phone { display: none; }
  .hero-wrap { padding-top: 56px; }
}
@media (max-width: 540px) {
  .feat-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
}
