/* =========================================================
   Masjid.ly — marketing site styles
   Brand: warm orange, ink, off-white. Editorial + premium.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* brand */
  --orange: #f2551e;
  --orange-light: #ff7d50;
  --orange-soft: #ff9362;
  --grad-hero: linear-gradient(135deg, #ff9362 0%, #ff6d3f 52%, #f2551e 100%);

  /* ink + surfaces */
  --ink: #1b2333;
  --muted: #4a5568;
  --muted-2: #6b7587;
  --white: #ffffff;
  --cream: #fbf8f5;
  --mist: #f5f6fa;
  --line: rgba(27, 35, 51, 0.08);
  --line-2: rgba(27, 35, 51, 0.14);

  /* warm dark */
  --dark-bg: #141210;
  --dark-card: #201b17;
  --dark-text: #f6f2ee;
  --dark-muted: #b7ada3;
  --dark-accent: #ff7d50;

  /* type */
  --font-display: "General Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* layout */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::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-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); text-transform: none;
}
.eyebrow--light { color: rgba(246,242,238,0.72); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242,85,30,0.16); }
.eyebrow--light .eyebrow__dot { background: var(--dark-accent); box-shadow: 0 0 0 4px rgba(255,125,80,0.2); }

.section-title {
  font-size: clamp(30px, 4.4vw, 56px);
  letter-spacing: -0.03em; line-height: 1.02; max-width: 16ch;
  margin-top: 16px;
}
.section-title--light { color: var(--dark-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 12px 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn--pill {
  background: var(--grad-hero); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(242,85,30,0.6);
  background-size: 150% 150%;
}
.btn--pill:hover { box-shadow: 0 14px 34px -10px rgba(242,85,30,0.7); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

/* App Store badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 10px 18px 10px 16px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 8px 22px -12px rgba(27,35,51,0.6);
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(27,35,51,0.7); }
.appstore-badge svg { color: #fff; flex: none; }
.appstore-badge__text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.appstore-badge__text small { font-size: 10px; opacity: 0.78; letter-spacing: 0.02em; }
.appstore-badge__text strong { font-size: 17px; font-weight: 600; font-family: var(--font-display); margin-top: 2px; }
.appstore-badge--light { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -14px rgba(0,0,0,0.4); }
.appstore-badge--light svg { color: var(--ink); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(251,248,245,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.wordmark__mark { display: inline-flex; color: var(--orange); }
.wordmark__tile { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--orange); box-shadow: 0 6px 16px -8px rgba(242,85,30,0.7); }
.wordmark__dot { color: var(--orange); }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--muted); position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--orange); transition: width .3s var(--ease); border-radius: 2px; }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav .btn--pill { padding: 9px 18px; font-size: 14px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: 140px; padding-bottom: 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__mesh {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(48% 42% at 78% 8%, rgba(255,147,98,0.40), transparent 70%),
    radial-gradient(40% 38% at 92% 36%, rgba(242,85,30,0.30), transparent 72%),
    radial-gradient(50% 50% at 14% 0%, rgba(255,125,80,0.18), transparent 70%);
  filter: blur(6px);
}
.hero__pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(242,85,30,0.10) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(70% 60% at 70% 18%, #000 0%, transparent 72%);
  opacity: 0.9;
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 64px); align-items: center;
}

.hero__copy { max-width: 600px; }
.hero__title {
  font-size: clamp(44px, 7vw, 84px);
  letter-spacing: -0.035em; line-height: 0.98; margin: 20px 0 0;
}
.hero__title-accent { display: block; background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 22px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 50ch; line-height: 1.62; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }

.hero__stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.stat { min-width: 0; }
.stat__label { font-size: 13.5px; color: var(--muted-2); margin: 6px 0 0; max-width: none; white-space: nowrap; }
.stat--lg .stat__num { font-size: clamp(34px, 4vw, 52px); }

/* Hero device */
.hero__device-wrap { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1200px; }
.phone__glow {
  position: absolute; width: 78%; height: 70%; left: 11%; top: 14%;
  background: radial-gradient(circle, rgba(242,85,30,0.45), transparent 68%);
  filter: blur(54px); z-index: -1;
}

/* ---------- iPhone mockup (shared) ---------- */
.phone {
  position: relative;
  width: 300px; aspect-ratio: 300 / 620;
  background: #0d0f14;
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    0 30px 70px -28px rgba(27,35,51,0.55),
    inset 0 0 0 2px rgba(255,255,255,0.06);
  transform-style: preserve-3d;
  will-change: transform;
}
.phone--hero { transform: translateZ(0); }
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0d0f14; border-radius: 0 0 16px 16px; z-index: 5;
}
.phone__notch::after { content: ""; position: absolute; top: 9px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: #1c2733; box-shadow: inset 0 0 0 2px #0a2e3a; }
.phone__screen {
  position: relative; width: 100%; height: 100%;
  background: var(--cream); border-radius: 36px; overflow: hidden;
}

/* ---------- App UI inside phone ---------- */
.appui { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: var(--font-body); }
.appui--compact { padding-top: 26px; }
.appui__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 4px; font-size: 12px; font-weight: 600; color: var(--ink); }
.appui__status-icons { display: inline-flex; gap: 4px; }
.appui__status-icons .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .55; }

.appui__header { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 12px; }
.appui--compact .appui__header { padding-top: 12px; }
.appui__hello { font-size: 12px; color: var(--orange); font-weight: 600; }
.appui__h { font-size: 22px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-top: 2px; }
.appui__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-hero); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }

.appui__chips { display: flex; gap: 8px; padding: 0 20px 12px; overflow: hidden; }
.appui__chips--wrap { flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip--on { background: var(--ink); color: #fff; border-color: var(--ink); }

.appui__feed { flex: 1; overflow: hidden; padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }

.ecard { display: flex; gap: 12px; background: var(--white); border-radius: 16px; padding: 10px; box-shadow: 0 6px 18px -12px rgba(27,35,51,0.3); border: 1px solid var(--line); }
.ecard__poster { flex: none; width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(150deg, var(--g1), var(--g2)); position: relative; overflow: hidden; display: grid; place-items: end start; }
.ecard__poster::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.18) 1px, transparent 0); background-size: 11px 11px; }
.ecard__poster-label { position: relative; font-size: 9px; font-weight: 700; color: #fff; padding: 4px 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.ecard__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; justify-content: center; }
.ecard__date { font-size: 11px; font-weight: 600; color: var(--orange); }
.ecard__title { font-size: 14.5px; font-weight: 600; font-family: var(--font-display); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecard__masjid { font-size: 12px; color: var(--muted-2); }
.ecard__tag { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.ecard--lg .ecard__poster { width: 72px; height: 72px; }

.appui__tabbar { display: flex; justify-content: space-around; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.92); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--muted-2); }
.tab i { width: 18px; height: 18px; border-radius: 6px; background: currentColor; opacity: .45; }
.tab--on { color: var(--orange); }
.tab--on i { opacity: 1; }

/* =========================================================
   PROBLEM → SOLUTION
   ========================================================= */
.problem { padding: clamp(70px, 10vw, 130px) 0; }
.problem__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.problem__kicker { font-size: 13px; font-weight: 600; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.problem__kicker--accent { color: var(--orange); }
.problem__words { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.05; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.problem__words span { display: block; }
.problem__miss { color: var(--ink); position: relative; width: fit-content; }
.problem__miss::after { content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 3px; background: var(--orange); transform: scaleX(var(--strike, 0)); transform-origin: left; border-radius: 3px; transition: transform .6s var(--ease); }
.problem__words--solve { color: var(--ink); background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.problem__arrow { color: var(--orange); opacity: .9; }
@media (max-width: 820px) {
  .problem__row { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .problem__arrow { transform: rotate(90deg); width: fit-content; }
}

/* =========================================================
   FEATURES (pinned)
   ========================================================= */
.features { padding-top: clamp(30px, 5vw, 60px); }
.features__head { margin-bottom: clamp(20px, 4vw, 40px); }

.features__stage { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.features__pin { position: relative; }
.features__device { display: flex; justify-content: center; align-items: center; perspective: 1200px; }
.phone--feature .phone__screen { background: var(--cream); }

/* Feature screens stacked */
.fscreen { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.fscreen.is-active { opacity: 1; }
.fscreen--night .phone__screen, .appui--night { background: var(--dark-bg); }

/* Map screen */
.mapui { position: relative; flex: 1; margin: 4px 14px 14px; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #eef1f6, #e3e8f0); }
.mapui__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.mappin { position: absolute; width: 16px; height: 16px; }
.mappin i { position: absolute; inset: 0; border-radius: 50% 50% 50% 0; background: var(--orange); transform: rotate(-45deg); box-shadow: 0 4px 10px -3px rgba(242,85,30,0.6); }
.mappin i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; transform: rotate(45deg); }
.mappin--1 { top: 22%; left: 28%; } .mappin--2 { top: 38%; left: 62%; } .mappin--3 { top: 55%; left: 36%; } .mappin--4 { top: 30%; left: 78%; } .mappin--5 { top: 64%; left: 70%; }
.mapui__me { position: absolute; top: 48%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #2f7df6; box-shadow: 0 0 0 4px rgba(47,125,246,0.25), 0 0 0 9px rgba(47,125,246,0.12); transform: translate(-50%,-50%); }
.mapui__sheet { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 20px -10px rgba(27,35,51,0.4); }
.mapui__sheet strong { font-size: 14px; font-family: var(--font-display); }
.mapui__sheet span { font-size: 12px; color: var(--muted-2); }

/* Filter screen */
.filterui { padding: 0 18px; }
.filterui__label { font-size: 12px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0 8px; }
.filterui__result { margin-top: 22px; background: var(--grad-hero); color: #fff; font-weight: 600; font-size: 14px; padding: 12px; border-radius: 12px; text-align: center; }

/* Scholar screen */
.scholarui { padding: 4px 16px; display: flex; flex-direction: column; gap: 10px; }
.scholarui__row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.scholarui__row strong { display: block; font-size: 14px; font-family: var(--font-display); }
.scholarui__row span { font-size: 12px; color: var(--muted-2); }
.scholarui__row > div { flex: 1; min-width: 0; }
.scholarui__bell { color: var(--orange); font-size: 10px; }
.savatar, .schip__avatar, .scholarui .savatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; font-family: var(--font-display); background: linear-gradient(150deg, var(--orange-soft), var(--orange)); }

/* Detail screen */
.detailui { padding: 4px 18px; display: flex; flex-direction: column; }
.detailui__poster { height: 150px; border-radius: 16px; background: linear-gradient(150deg, var(--g1), var(--g2)); position: relative; overflow: hidden; display: grid; place-items: end start; }
.detailui__poster::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 3px 3px, rgba(255,255,255,0.16) 1px, transparent 0); background-size: 14px 14px; }
.detailui__poster .ecard__poster-label { font-size: 11px; padding: 10px; }
.detailui__title { font-size: 19px; font-family: var(--font-display); font-weight: 600; margin-top: 14px; letter-spacing: -0.02em; }
.detailui__meta { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.detailui__actions { display: flex; gap: 8px; margin-top: 16px; }
.dbtn { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 11px 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.dbtn--primary { background: var(--grad-hero); color: #fff; border-color: transparent; }
.detailui__note { font-size: 12px; color: #1f9e75; font-weight: 600; margin-top: 12px; text-align: center; }

/* Night cards */
.appui--night .appui__h, .appui--night .detailui__title { color: var(--dark-text); }
.appui--night .appui__hello { color: var(--dark-accent); }
.ecard--night { background: var(--dark-card); border-color: rgba(255,255,255,0.06); box-shadow: none; }
.ecard--night .ecard__title { color: var(--dark-text); }
.ecard--night .ecard__masjid { color: var(--dark-muted); }
.ecard--night .ecard__date { color: var(--dark-accent); }

/* Chat / assistant */
.chatui { padding: 4px 16px; display: flex; flex-direction: column; gap: 10px; }
.chatui__bubble { font-size: 13.5px; line-height: 1.5; padding: 12px 14px; border-radius: 16px; max-width: 88%; }
.chatui__bubble--me { align-self: flex-end; background: var(--grad-hero); color: #fff; border-bottom-right-radius: 5px; }
.chatui__bubble--ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); display: flex; flex-direction: column; gap: 7px; }
.chatui__pill { font-size: 12px; font-weight: 600; background: var(--cream); color: var(--orange); padding: 5px 9px; border-radius: 8px; width: fit-content; }
.chatui__input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; font-size: 13px; color: var(--muted-2); }
.chatui__input i { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-hero); }

/* Copy panels */
.features__panels { position: relative; }
.fpanel { opacity: 0.28; transition: opacity .45s var(--ease), transform .45s var(--ease); padding: 22px 0; transform: translateY(6px); }
.fpanel.is-active { opacity: 1; transform: translateY(0); }
.fpanel__num { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--orange); letter-spacing: 0.05em; }
.fpanel__title { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.03em; margin: 10px 0 14px; line-height: 1.05; }
.fpanel__text { font-size: clamp(15px, 1.3vw, 18px); color: var(--muted); max-width: 42ch; line-height: 1.62; }

/* On small screens we drop the pin and stack each feature as a card */
.features__stack { display: none; }

/* =========================================================
   NJ MAP
   ========================================================= */
.njmap { padding: clamp(70px, 10vw, 130px) 0 0; }
.njmap__grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.njmap__text { margin-top: 22px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 46ch; line-height: 1.62; }
.njmap__stats { display: flex; gap: clamp(28px, 5vw, 56px); margin-top: 36px; }
.njmap__viz { display: flex; justify-content: center; }
.njmap__svg { width: 100%; max-width: 360px; filter: drop-shadow(0 30px 50px rgba(242,85,30,0.18)); }
.njmap__shape { transition: none; }
.njpin { fill: var(--orange); transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; }
.njpin.is-lit { animation: pinPop .5s var(--ease) forwards; }
@keyframes pinPop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* Marquee */
.marquee { margin-top: clamp(60px, 8vw, 100px); overflow: hidden; display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 26px; padding-right: 26px; flex: none; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2.4vw, 30px); color: var(--ink); white-space: nowrap; letter-spacing: -0.02em; }
.marquee__track span:nth-child(even) { color: var(--orange); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* =========================================================
   SOURCES / COVERAGE STRIP
   Restrained, low-contrast lockups — reads as "sources we
   aggregate," not a sponsor wall.
   ========================================================= */
.sources { padding: clamp(40px, 6vw, 64px) 0 0; }
.sources__eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted-2);
  text-align: center;
}
.sources__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(18px, 3.4vw, 40px);
  margin-top: clamp(20px, 3vw, 30px);
}

.logomark {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--muted); opacity: 0.62;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.logomark:hover { opacity: 1; color: var(--ink); }
.logomark__glyph { color: inherit; flex: none; }
.logomark__text { display: flex; flex-direction: column; line-height: 1.1; }
.logomark__text strong {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em; color: inherit;
}
.logomark__text small {
  font-size: 11px; font-weight: 500; color: var(--muted-2);
  letter-spacing: 0.01em; margin-top: 2px;
}

/* Faded "+ N more" coverage chip */
.logomark--more { opacity: 0.5; }
.logomark__more {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  letter-spacing: -0.01em; color: var(--muted-2);
  padding: 9px 16px; border-radius: 999px;
  border: 1px dashed var(--line-2);
}

.sources__caption {
  text-align: center; margin-top: clamp(20px, 3vw, 28px);
  font-size: 13.5px; color: var(--muted-2);
}
.sources__caption a {
  color: var(--orange); font-weight: 600;
  border-bottom: 1px solid rgba(242,85,30,0.3);
  transition: border-color .2s;
}
.sources__caption a:hover { border-color: var(--orange); }

@media (max-width: 560px) {
  .sources__row { gap: 16px 24px; }
  .logomark__text small { display: none; }
}

/* =========================================================
   SCHOLARS
   ========================================================= */
.scholars { padding: clamp(70px, 10vw, 130px) 0; }
.scholars__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.scholars__sub { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 54ch; line-height: 1.6; }
.scholars__grid { display: flex; flex-wrap: wrap; gap: 14px; }
.schip { display: inline-flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px 9px 9px; box-shadow: 0 6px 18px -14px rgba(27,35,51,0.4); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.schip:hover { transform: translateY(-3px); border-color: rgba(242,85,30,0.4); box-shadow: 0 14px 26px -16px rgba(242,85,30,0.5); }
.schip__avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; font-family: var(--font-display); background: linear-gradient(150deg, var(--orange-soft), var(--orange)); }
.schip:nth-child(2n) .schip__avatar { background: linear-gradient(150deg, #4fae93, #1f6b58); }
.schip:nth-child(3n) .schip__avatar { background: linear-gradient(150deg, #7b8bd6, #3f4f9e); }
.schip__name { font-size: 16px; font-weight: 600; font-family: var(--font-display); letter-spacing: -0.01em; }

/* =========================================================
   PRIVACY (warm dark)
   ========================================================= */
.privacy { background: var(--dark-bg); color: var(--dark-text); padding: clamp(80px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.privacy::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,125,80,0.08) 1px, transparent 0); background-size: 32px 32px; -webkit-mask-image: radial-gradient(60% 60% at 80% 0%, #000, transparent 70%); mask-image: radial-gradient(60% 60% at 80% 0%, #000, transparent 70%); }
.privacy > .container { position: relative; }
.privacy__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.privacy__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vcard { background: var(--dark-card); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); padding: 30px 28px; transition: transform .35s var(--ease), border-color .35s; }
.vcard:hover { transform: translateY(-4px); border-color: rgba(255,125,80,0.35); }
.vcard__icon { display: inline-flex; padding: 11px; border-radius: 13px; background: rgba(255,125,80,0.14); color: var(--dark-accent); margin-bottom: 18px; }
.vcard__title { font-size: 20px; font-family: var(--font-display); letter-spacing: -0.02em; color: var(--dark-text); }
.vcard__text { margin-top: 10px; font-size: 15px; color: var(--dark-muted); line-height: 1.6; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta { padding: clamp(60px, 8vw, 110px) 0; }
.cta__panel { position: relative; }
.cta__inner { position: relative; z-index: 1; background: var(--grad-hero); background-size: 160% 160%; border-radius: var(--radius-lg); padding: clamp(46px, 8vw, 90px) clamp(28px, 5vw, 64px); text-align: center; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(242,85,30,0.65); }
.cta__pattern { display: none; }
.cta__inner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.16) 1px, transparent 0); background-size: 30px 30px; -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent 75%); pointer-events: none; }
.cta__inner > * { position: relative; }
.cta__title { font-size: clamp(30px, 5vw, 60px); color: #fff; letter-spacing: -0.03em; line-height: 1.02; max-width: 18ch; margin-inline: auto; }
.cta__sub { color: rgba(255,255,255,0.92); margin-top: 18px; font-size: clamp(16px, 1.5vw, 19px); max-width: 46ch; margin-inline: auto; }
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
.cta__soon { color: rgba(255,255,255,0.85); font-size: 13.5px; font-weight: 500; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 50px 0 60px; background: var(--cream); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__made { font-size: 14px; color: var(--muted-2); }
.footer__links { display: flex; gap: 24px; margin-left: auto; }
.footer__links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--orange); }
.footer__copy { font-size: 14px; color: var(--muted-2); width: 100%; padding-top: 18px; border-top: 1px solid var(--line); }

/* =========================================================
   REVEAL (JS-driven). Base state hidden, .is-in reveals.
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav .btn--pill { margin-left: auto; }
  .nav__toggle { display: none; }

  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__device-wrap { order: -1; margin-bottom: 12px; }
  .hero__copy { max-width: 100%; }

  .features__stage { grid-template-columns: 1fr; }
  .features__device { display: none; }       /* hide sticky phone */
  .features__pin { height: auto !important; } /* unpin via JS too */
  .fpanel { opacity: 1; transform: none; border-top: 1px solid var(--line); }
  .fpanel:first-child { border-top: 0; }

  .njmap__grid { grid-template-columns: 1fr; }
  .njmap__viz { order: -1; }
  .privacy__cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 110px; }
  .phone { width: 260px; }
  .hero__stats { flex-wrap: wrap; gap: 22px; }
  .footer__links { margin-left: 0; width: 100%; flex-wrap: wrap; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .njpin { opacity: 1; transform: scale(1); }
  .marquee__track { animation: none; }
  .faq__a { transition: none !important; }
}

/* =========================================================
   How it works (added)
   ========================================================= */
.how { padding: clamp(60px, 9vw, 120px) 0; background: var(--cream); }
.how__head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
.how__head .section-title { max-width: 22ch; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.hstep { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.hstep__num { font-size: 13px; font-weight: 700; color: var(--orange); letter-spacing: 0.04em; }
.hstep__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; margin: 12px 0 14px; color: #fff; }
.hstep__icon--find { background: #f2551e; }
.hstep__icon--save { background: #1f7a6e; }
.hstep__icon--remind { background: #b5451f; }
.hstep__title { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; }
.hstep__text { color: var(--muted); margin-top: 6px; font-size: 15px; line-height: 1.55; }
.how__steps .hstep:nth-child(2)[data-reveal] { transition-delay: .08s; }
.how__steps .hstep:nth-child(3)[data-reveal] { transition-delay: .16s; }
@media (max-width: 760px) { .how__steps { grid-template-columns: 1fr; } }

/* =========================================================
   Social proof (added)
   ========================================================= */
.proof { padding: clamp(56px, 8vw, 110px) 0; }
.proof__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 6vw, 80px); padding-bottom: clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line); margin-bottom: clamp(30px, 4vw, 48px); }
.proof__stat { text-align: center; }
.proof__num { display: block; font-family: var(--font-display); font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -0.03em; background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.proof__label { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.proof__quotes { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 22px); max-width: 860px; }
.quote { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.quote__text { font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.4; letter-spacing: -0.01em; }
.quote__by { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 12px; }
@media (max-width: 700px) { .proof__quotes { grid-template-columns: 1fr; } }

/* =========================================================
   FAQ (added)
   ========================================================= */
.faq { padding: clamp(56px, 8vw, 110px) 0; background: var(--cream); }
.faq__inner { max-width: 760px; }
.faq__head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(26px, 4vw, 44px); }
.faq__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; cursor: pointer; text-align: left; padding: 18px 20px; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--ink); }
.faq__chev { width: 11px; height: 11px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .35s var(--ease); flex-shrink: 0; margin-right: 5px; }
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(-135deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* =========================================================
   What's next / coming soon (added)
   ========================================================= */
.next { padding: clamp(56px, 8vw, 110px) 0; }
.next__head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(28px, 4vw, 50px); }
.next__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 22px); }
.ncard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.ncard__badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); background: rgba(242,85,30,0.10); border-radius: 999px; padding: 5px 11px; }
.ncard__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; margin: 16px 0 14px; }
.ncard__icon--sponsor { background: #f2551e; }
.ncard__icon--campus { background: #1f7a6e; }
.ncard__title { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.ncard__text { color: var(--muted); margin-top: 8px; font-size: 15px; line-height: 1.6; }
.ncard__link { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 600; font-size: 14.5px; }
.ncard__link:hover { text-decoration: underline; }
.next__cards .ncard:nth-child(2)[data-reveal] { transition-delay: .08s; }
@media (max-width: 700px) { .next__cards { grid-template-columns: 1fr; } }

/* =========================================================
   Feature rows — phone beside its copy, alternating (replaces pinned)
   ========================================================= */
.frows { display: flex; flex-direction: column; gap: clamp(54px, 10vw, 130px); margin-top: clamp(24px, 5vw, 60px); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.frow:nth-child(even) .frow__media { order: 2; }
.frow__media { display: flex; justify-content: center; perspective: 1200px; }
.frow__media .phone { width: min(300px, 80vw); }
@media (max-width: 820px) {
  .frow { grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: center; }
  .frow:nth-child(even) .frow__media, .frow__media { order: 0; }
  .frow__copy .fpanel__text { margin-inline: auto; }
}

/* ---------- Feature showcase carousel: one spot, click to advance ---------- */
.fcar {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  margin-top: clamp(28px, 5vw, 64px);
}
.fcar__stage { position: relative; display: flex; justify-content: center; }
.fcar__stage .phone { width: min(300px, 78vw); cursor: pointer; }
.fcar__stage:focus { outline: none; }
.fcar__stage:focus-visible .phone { box-shadow: 0 0 0 3px var(--orange), 0 30px 70px -28px rgba(27,35,51,0.55); }
.fcar__shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.fcar__shot.is-active { opacity: 1; }
.fcar__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.94); color: var(--ink);
  font-family: var(--font-body); font-size: 26px; line-height: 1; padding-bottom: 3px;
  display: grid; place-items: center; cursor: pointer; z-index: 6;
  box-shadow: 0 10px 24px -12px rgba(27,35,51,0.45);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.fcar__nav:hover { background: var(--orange); color: #fff; transform: translateY(-50%) scale(1.07); }
.fcar__nav--prev { left: -10px; }
.fcar__nav--next { right: -10px; }
.fcar__slides { position: relative; }
.fcar__slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease; pointer-events: none;
}
.fcar__slide.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.fcar__dots { display: flex; gap: 9px; margin-top: 28px; }
.fcar__dot {
  width: 30px; height: 5px; border-radius: 99px; border: 0; padding: 0;
  background: var(--line); cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.fcar__dot.is-active { background: var(--orange); width: 48px; }
.fcar__hint { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) {
  .fcar { grid-template-columns: 1fr; gap: 30px; justify-items: center; text-align: center; }
  .fcar__copy { width: 100%; }
  .fcar__slide .fpanel__text { margin-inline: auto; }
  .fcar__dots { justify-content: center; }
  .fcar__hint { text-align: center; }
  .fcar__nav--prev { left: 0; }
  .fcar__nav--next { right: 0; }
}

/* =========================================================
   Contact (Typeform embed)
   ========================================================= */
.contact { padding: clamp(56px, 8vw, 110px) 0; background: var(--cream); }
.contact__inner { max-width: 780px; }
.contact__head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(22px, 4vw, 38px); }
.contact__sub { color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; margin-top: 14px; max-width: 52ch; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.contact__form > div { min-height: 540px; }
@media (max-width: 600px) { .contact__form > div { min-height: 460px; } }

/* =========================================================
   Interactive hero phone — switchable screens via tab bar
   ========================================================= */
.heroscreen { display: none; }
.appui .heroscreen.is-active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.appui__tabbar .tab { cursor: pointer; background: none; border: 0; font: inherit; padding: 4px 2px; -webkit-appearance: none; appearance: none; transition: color .2s var(--ease); }
.appui__tabbar .tab:hover { color: var(--orange); }
.heroscreen .mapui { flex: 1; min-height: 210px; }
.youui__hint { margin: 14px 16px 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.ecard__tag--going { color: var(--orange); font-weight: 700; }

/* Real app screenshots inside the feature-row phone frames */
.phone--shot .phone__screen { background: #fff; }
.phone--shot .shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
