/* ─────────────────────────────────────────────────────────
   NearLibrary landing page — navy + gold, phone-first
   Inherits the palette tokens from app.css / dark.css.
   ───────────────────────────────────────────────────────── */
.lp { background: var(--bg); overflow-x: hidden; }
.lp .btn--sm { padding: 9px 14px; font-size: 13.5px; }
.lp .btn--lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-strong);
  background: var(--gold-soft); border: 1px solid rgba(194,161,92,.35);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 14px;
}
.grad {
  background: linear-gradient(100deg, #c2a15c, #e8cf92 55%, #a5842f);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.small { font-size: 13.5px; }

/* ── Nav ── */
.lpnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px; padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.lpnav__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.lpnav__brand img { width: 40px; height: 40px; border-radius: 11px; border: 1.5px solid var(--gold); object-fit: cover; }
.lpnav .wordmark__name { font-size: 17px; }
.lpnav .wordmark__tag { color: var(--muted); }
.lpnav__links { display: flex; gap: 22px; margin-left: auto; }
.lpnav__links a {
  font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none;
  transition: color .15s;
}
.lpnav__links a:hover { color: var(--brand); }
.lpnav__cta { display: flex; gap: 9px; flex: 0 0 auto; }
.lpnav__burger { display: none; background: none; border: none; color: var(--ink); font-size: 20px; cursor: pointer; }

/* ── Hero ── */
.hero-lp { position: relative; padding: 70px 24px 80px; overflow: hidden; }
.hero-lp__grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero-lp h1 {
  margin: 0 0 18px; font-size: clamp(34px, 5vw, 56px); line-height: 1.08;
  font-weight: 800; letter-spacing: -.03em;
  font-family: "Playfair Display", Georgia, serif;
}
.hero-lp__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 20px; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; padding: 0; margin: 0; }
.ticks li { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.ticks i { color: var(--ok); }

.hero-lp__art { position: relative; display: flex; justify-content: center; }

/* phone mockup */
.phone {
  position: relative; width: 260px; aspect-ratio: 720 / 1600;
  background: #0d1420; border-radius: 34px; padding: 9px;
  box-shadow: 0 34px 70px -22px rgba(20,41,63,.7), 0 0 0 2px rgba(194,161,92,.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; display: block; }
.phone__notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.28); z-index: 2;
}
.phone--hero { width: 292px; animation: phone-float 5.5s ease-in-out infinite; }
@keyframes phone-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

.floatcard {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow-lg);
  animation: phone-float 4.5s ease-in-out infinite;
}
.floatcard i { color: var(--gold-strong); font-size: 17px; }
.floatcard b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.floatcard span { font-size: 11px; color: var(--muted); }
.floatcard--a { left: -6px; top: 18%; animation-delay: -1.5s; }
.floatcard--b { right: -14px; bottom: 16%; animation-delay: -3s; }

.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.orb--1 { width: 380px; height: 380px; left: -120px; top: -80px; background: radial-gradient(circle, var(--violet-400), transparent 70%); }
.orb--2 { width: 320px; height: 320px; right: -100px; bottom: -60px; background: radial-gradient(circle, var(--gold), transparent 70%); opacity: .28; }

/* ── Stat strip ── */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: 1120px; margin: 0 auto; background: var(--line);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.strip__item { background: var(--surface); padding: 22px 14px; text-align: center; }
.strip__item b { display: block; font-size: 26px; font-weight: 800; color: var(--brand); }
.strip__item span { font-size: 12px; color: var(--muted); }

/* ── Sections ── */
.sec { padding: 78px 24px; }
.sec--tint { background: color-mix(in srgb, var(--gold-soft) 45%, var(--bg)); }
.sec__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.sec__head h2 {
  margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em;
  font-family: "Playfair Display", Georgia, serif;
}

/* ── Feature grid ── */
.fgrid {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.fcard {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fcard:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 22px 46px -26px rgba(20,41,63,.6); }
.fcard__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px; font-size: 20px; margin-bottom: 14px;
}
.ic--gold  { background: var(--gold-soft); color: var(--gold-strong); }
.ic--navy  { background: var(--violet-50); color: var(--brand); }
.ic--green { background: #dcfce7; color: #15803d; }
.ic--amber { background: #fef3c7; color: #b45309; }
.fcard h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 800; }
.fcard p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.badge-soon {
  display: inline-block; margin-top: 12px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: var(--violet-50); color: var(--brand); border: 1px solid var(--violet-100);
  padding: 3px 10px; border-radius: 999px;
}

/* ── Gallery ── */
.gallery {
  display: flex; gap: 26px; overflow-x: auto; padding: 6px 4px 24px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  max-width: 1180px; margin: 0 auto;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 auto; margin: 0; scroll-snap-align: center; text-align: center; width: 232px; }
.gallery__item .phone { width: 232px; margin: 0 auto; transition: transform .25s; }
.gallery__item:hover .phone { transform: translateY(-8px); }
.gallery__item figcaption { margin-top: 16px; }
.gallery__item b { display: block; font-size: 14.5px; font-weight: 800; }
.gallery__item span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.gallery__hint { text-align: center; font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }

/* ── Roles ── */
.roles { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rolecard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm);
}
.rolecard header { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.rolecard__ic {
  width: 52px; height: 52px; border-radius: 15px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: var(--gold); font-size: 21px;
}
.rolecard h3 { margin: 0; font-size: 19px; font-weight: 800; }
.flow { margin: 3px 0 0; font-size: 12.5px; font-weight: 700; color: var(--gold-strong); letter-spacing: .04em; }
.rolecard--parent { border-color: var(--gold); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.checklist li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.5; }
.checklist li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px; font-size: 11px;
  color: var(--ok); background: #dcfce7; width: 19px; height: 19px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Split sections ── */
.split {
  max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 54px; align-items: center;
}
.split--rev .split__art { order: 2; }
.split__art { display: flex; justify-content: center; }
.split h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em;
  font-family: "Playfair Display", Georgia, serif; }

.flowline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0;
}
.flowline span {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.flowline i { color: var(--gold); font-size: 12px; }

/* task demo */
.demo { display: grid; gap: 14px; margin-top: 22px; }
.demo__task, .demo__progress {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm);
}
.demo__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.demo__row + .demo__row { border-top: 1px solid var(--line); }
.demo__row span { color: var(--muted); }
.demo__progress h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.demo__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; text-align: center; }
.demo__nums b { display: block; font-size: 23px; font-weight: 800; color: var(--brand); }
.demo__nums .gold { color: var(--gold-strong); }
.demo__nums span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* ── Steps ── */
.steps {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 20px; box-shadow: var(--shadow-sm); position: relative;
}
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 12px;
  background: var(--grad); color: var(--gold); font-weight: 800; font-size: 16px;
}
.step h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 800; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ── Quotes ── */
.quotes { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 820px; margin: 0 auto 34px; }
.quote {
  background: var(--surface); border: 1px dashed var(--gold);
  border-radius: 999px; padding: 12px 22px; font-size: 15px; font-style: italic; color: var(--muted);
}
.bigline {
  text-align: center; font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.35;
  font-family: "Playfair Display", Georgia, serif; margin: 0;
}

/* ── Compare ── */
.compare { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare__col { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); }
.compare__col--gold { border-color: var(--gold); }
.compare__col h3 { margin: 0 0 16px; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.compare__col h3 i { color: var(--gold-strong); }
.compare__col ul { list-style: none; margin: 0; padding: 0; }
.compare__col li { padding: 11px 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.compare__col li:first-child { border-top: none; }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 17px 20px;
  font-size: 15.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { color: var(--gold-strong); font-size: 13px; transition: transform .22s; }
.faq__item[open] summary i { transform: rotate(180deg); }
.faq__item[open] { border-color: var(--gold); }
.faq__item p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ── CTA ── */
.cta { padding: 84px 24px; background: var(--grad); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, rgba(194,161,92,.3), transparent 65%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; text-align: center; color: #fff; }
.cta__logo { width: 74px; height: 74px; border-radius: 20px; border: 2px solid var(--gold); margin-bottom: 20px; object-fit: cover; }
.cta h2 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; font-family: "Playfair Display", Georgia, serif; }
.cta .lead { color: rgba(255,255,255,.82); }
.cta .muted { color: rgba(255,255,255,.6); margin-top: 18px; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.cta .btn--primary { background: linear-gradient(100deg, #e8cf92, #c2a15c); color: #13273e; }

/* ── Footer ── */
.lpfoot {
  padding: 34px 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto;
}
.lpfoot__brand { display: flex; align-items: center; gap: 12px; }
.lpfoot__brand img { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--gold); object-fit: cover; }
.lpfoot__brand b { display: block; font-size: 15px; }
.lpfoot__brand span { font-size: 12px; color: var(--muted); }
.lpfoot__links { display: flex; gap: 18px; margin-left: auto; }
.lpfoot__links a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.lpfoot__links a:hover { color: var(--brand); }
.lpfoot__copy { width: 100%; margin: 0; font-size: 12px; color: var(--muted); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-lp__grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-lp__copy .eyebrow, .hero-lp__cta, .ticks { justify-content: center; }
  .hero-lp__cta { justify-content: center; }
  .split, .split--rev { grid-template-columns: 1fr; gap: 34px; }
  .split--rev .split__art { order: 0; }
  .roles, .compare { grid-template-columns: 1fr; }
  .lpnav__links { display: none; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lpnav { padding: 10px 14px; gap: 10px; }
  .lpnav .wordmark__tag { display: none; }
  .lpnav__cta .btn--soft { display: none; }
  .sec { padding: 56px 16px; }
  .hero-lp { padding: 46px 16px 60px; }
  .phone--hero { width: 250px; }
  .floatcard { padding: 9px 11px; }
  .floatcard--a { left: -4px; }
  .floatcard--b { right: -4px; }
  .quotes { flex-direction: column; align-items: center; }
  .lpfoot__links { margin-left: 0; width: 100%; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .phone--hero, .floatcard { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* burger-opened nav on small screens */
@media (max-width: 900px) {
  .lpnav__burger { display: inline-flex; }
  .lpnav.is-open { flex-wrap: wrap; }
  .lpnav.is-open .lpnav__links {
    display: flex; order: 3; width: 100%; margin: 8px 0 4px;
    gap: 6px; flex-direction: column;
  }
  .lpnav.is-open .lpnav__links a {
    padding: 11px 12px; border-radius: 10px; background: var(--gray-50);
  }
}
