:root {
  --ink: #071b13;
  --forest: #0c2d20;
  --leaf: #2d8a51;
  --leaf-bright: #43ad69;
  --cream: #f6f2e9;
  --paper: #fffdf8;
  --gold: #d5ae47;
  --sky: #cde9f0;
  --line: rgba(7, 27, 19, 0.16);
  --max: 1180px;
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

button, a { font: inherit; }

a { color: inherit; }

img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: var(--cream);
  background: rgba(7, 27, 19, 0.9);
  border-bottom: 1px solid rgba(246, 242, 233, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 800;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-header .brand img { mix-blend-mode: screen; }

nav { display: flex; align-items: center; gap: 26px; }

nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 6px;
}

.nav-download svg { width: 17px; }

.hero {
  position: relative;
  min-height: min(86svh, 760px);
  padding: 150px max(24px, calc((100vw - var(--max)) / 2)) 88px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("assets/jamaat-finder-logo-transparent.png");
  background-repeat: no-repeat;
  background-size: min(38vw, 430px) auto;
  background-position: calc(50% + 350px) center;
}

.hero::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(590px, 54vw);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1, h2, h3, p { letter-spacing: 0; }

h1, h2 {
  font-family: "Libre Franklin", sans-serif;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.94;
}

.hero-lead {
  max-width: 560px;
  margin: 26px 0 30px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  color: rgba(7, 27, 19, 0.74);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button svg { width: 19px; }

.button-primary { color: var(--ink); background: var(--gold); }

.button-primary:hover { background: #e5c15c; }

.button-secondary {
  color: var(--ink);
  border-color: rgba(7, 27, 19, 0.42);
  background: rgba(255, 253, 248, 0.58);
}

.release-note { margin: 16px 0 0; color: rgba(7, 27, 19, 0.58); font-size: 13px; }

.hero-mobile-logo { display: none; }

.hero-marker {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.marker-pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(213, 174, 71, 0.16);
}

.band {
  width: 100%;
  padding: 110px max(24px, calc((100vw - var(--max)) / 2));
}

.section-intro { max-width: 760px; }

.section-intro h2, .nearby h2, .accuracy h2, .download h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
}

.reason {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8vw;
  background: var(--cream);
}

.reason-copy {
  align-self: end;
  padding-top: 50px;
  font-size: 18px;
  line-height: 1.75;
}

.reason-copy p { margin: 0 0 18px; }

.route-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin-top: 54px;
}

.route-dot { width: 12px; height: 12px; background: var(--gold); border-radius: 50%; }

.route-track { height: 2px; flex: 1; background: var(--ink); opacity: 0.28; }

.route-pin {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--leaf);
  border-radius: 50%;
}

.route-pin svg { width: 24px; }

.band-dark { color: var(--cream); background: #112b3a; }

.nearby {
  min-height: 860px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px 300px;
  gap: 28px;
  align-items: center;
  overflow: hidden;
}

.nearby-copy { padding-right: 6vw; }

.nearby-copy > p:not(.eyebrow) {
  margin: 28px 0;
  color: rgba(246, 242, 233, 0.76);
  font-size: 18px;
  line-height: 1.7;
}

.feature-list { list-style: none; margin: 30px 0 0; padding: 0; }

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid rgba(246, 242, 233, 0.14);
}

.feature-list svg { width: 20px; color: var(--gold); }

.phone-shot, .screen-frame {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
  cursor: zoom-in;
}

.phone-shot {
  width: 300px;
  aspect-ratio: 9 / 19;
  border: 8px solid #06130e;
  border-radius: 30px;
}

.phone-shot img, .screen-frame img { width: 100%; height: 100%; object-fit: cover; }

.phone-shot-secondary { transform: translateY(72px); }

.zoom-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 5px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  font-size: 11px;
  font-weight: 700;
}

.zoom-label svg { width: 14px; }

.walkthrough { background: var(--paper); }

.walkthrough-heading { margin-bottom: 72px; }

.walkthrough-heading > p:last-child {
  max-width: 600px;
  margin-top: 20px;
  color: rgba(7, 27, 19, 0.66);
  font-size: 18px;
}

.steps { margin: 0; padding: 0; list-style: none; }

.step {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 9vw;
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.step:nth-child(even) { grid-template-columns: 360px 1fr; }

.step:nth-child(even) .step-copy { grid-column: 2; }

.step:nth-child(even) .screen-frame { grid-column: 1; grid-row: 1; }

.step-copy { max-width: 580px; }

.step-number {
  display: block;
  margin-bottom: 34px;
  color: var(--leaf);
  font-family: "Libre Franklin", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.step h3 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }

.step p { margin: 0; color: rgba(7, 27, 19, 0.7); font-size: 18px; line-height: 1.72; }

.screen-frame {
  width: 360px;
  height: 520px;
  justify-self: center;
  border: 7px solid var(--ink);
  border-radius: 26px;
}

.screen-frame img { object-position: top; }

.step:nth-child(4) .screen-frame img { object-position: center; }

.accuracy {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 7vw;
  align-items: center;
  background: var(--sky);
}

.accuracy-mark {
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.accuracy-mark svg { width: 68px; height: 68px; }

.accuracy p:last-child { max-width: 760px; margin: 26px 0 0; font-size: 18px; line-height: 1.7; }

.download {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 8vw;
  align-items: center;
  color: var(--ink);
  background: var(--cream);
}

.download-logo { width: 340px; height: 470px; object-fit: contain; }

.download-copy > p:not(.eyebrow, .install-note) { margin: 22px 0 28px; color: rgba(7, 27, 19, 0.7); font-size: 18px; }

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(7, 27, 19, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.install-note svg { width: 17px; min-width: 17px; }

footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding: 30px max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(7, 27, 19, 0.66);
  background: var(--cream);
  font-size: 13px;
}

.footer-brand { color: var(--ink); }

.image-dialog {
  width: min(92vw, 440px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  border: 7px solid var(--ink);
  border-radius: 24px;
  background: var(--ink);
}

.image-dialog::backdrop { background: rgba(4, 15, 10, 0.82); backdrop-filter: blur(6px); }

.image-dialog img { width: 100%; max-height: calc(92vh - 14px); object-fit: contain; border-radius: 16px; }

.dialog-close {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  cursor: pointer;
}

.dialog-close svg { width: 22px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero { background-position: calc(100% + 54px) center; background-size: 360px auto; }
  .hero-copy { width: min(600px, 68vw); }
  .nearby { grid-template-columns: 1fr 270px; }
  .nearby-copy { grid-column: 1 / -1; max-width: 760px; padding: 0 0 26px; }
  .phone-shot { width: 270px; justify-self: center; }
  .phone-shot-secondary { transform: translateY(0); }
  .step { grid-template-columns: 1fr 330px; gap: 6vw; }
  .step:nth-child(even) { grid-template-columns: 330px 1fr; }
  .screen-frame { width: 330px; height: 490px; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; padding-inline: 16px; }
  .brand span { font-size: 15px; }
  .brand img { width: 38px; height: 38px; }
  nav > a:not(.nav-download) { display: none; }
  .nav-download { padding: 9px 11px; font-size: 13px; }
  .hero {
    min-height: min(78svh, 700px);
    align-items: flex-start;
    padding: 118px 20px 50px;
    background-image: none;
  }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(52px, 18vw, 78px); }
  .hero-lead { max-width: 92%; font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 340px); }
  .hero-marker { display: none; }
  .hero-mobile-logo {
    display: block;
    width: 150px;
    height: 225px;
    margin: 16px auto 0;
    object-fit: contain;
  }
  .band { padding: 76px 20px; }
  .reason { grid-template-columns: 1fr; gap: 22px; }
  .reason-copy { padding-top: 0; }
  .route-line { margin-top: 24px; }
  .nearby { min-height: auto; grid-template-columns: 1fr 1fr; gap: 12px; }
  .nearby-copy { grid-column: 1 / -1; }
  .phone-shot { width: min(100%, 230px); border-width: 5px; border-radius: 20px; }
  .zoom-label { display: none; }
  .walkthrough-heading { margin-bottom: 36px; }
  .step, .step:nth-child(even) {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }
  .step:nth-child(even) .step-copy, .step:nth-child(even) .screen-frame { grid-column: 1; grid-row: auto; }
  .step-number { margin-bottom: 20px; }
  .screen-frame { width: min(100%, 340px); height: 510px; }
  .accuracy { grid-template-columns: 1fr; }
  .accuracy-mark { width: 110px; height: 110px; }
  .accuracy-mark svg { width: 48px; height: 48px; }
  .download { grid-template-columns: 1fr; text-align: left; }
  .download-logo { width: 190px; height: 284px; }
  footer { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 430px) {
  .nav-download {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    font-size: 0;
  }
  .nav-download svg { width: 19px; height: 19px; }
  .hero-lead { width: calc(100vw - 40px); }
  .hero-actions { width: calc(100vw - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
