/* andnrby.com
   Palette: ink from the logo, electric lime, quiet map greys. */

:root {
  --ink: #1F1F1F;
  --ink-soft: #545454;
  --paper: #FFFFFF;
  --map: #EDEDE9;
  --map-line: #FFFFFF;
  --park: #DEDFDA;
  --lime: #C8F03C;
  --lime-soft: rgba(200, 240, 60, 0.34);
  --rule: #DADAD5;

  --font: "Outfit", "Helvetica Neue", Arial, system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-lg: 22px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-small { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #D6F56A; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img { width: 138px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 400;
  color: var(--ink-soft);
}
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  font: 500 1rem var(--font);
  background: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--ink);
  cursor: pointer;
}

/* Hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.hero-copy { padding-top: clamp(8px, 4vw, 64px); }

.hero h1 {
  font-weight: 300;
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.lead {
  margin-top: 26px;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34ch;
}

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

/* Map demo */
.map-card { margin: 0; }

.map {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--map);
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

.map-ground { fill: var(--map); }
.map-park { fill: var(--park); }
.map-park-label { font: 400 14px var(--font); fill: #8C8C86; }
.map-roads line { stroke: var(--map-line); stroke-width: 16; stroke-linecap: round; }
.map-lanes line { stroke: var(--map-line); stroke-width: 7; stroke-linecap: round; }
.map-street-names text {
  font: 500 11.5px var(--font);
  fill: #9A9A94;
  text-anchor: end;
}
.map-street-names text:nth-child(n+3) { text-anchor: start; }

.map-radius {
  fill: var(--lime-soft);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  pointer-events: none;
}

.shop-pin { pointer-events: none; }
.shop-pin rect {
  fill: var(--paper);
  stroke: #B8B8B2;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .2s ease, stroke .2s ease, transform .2s ease;
}
.shop-pin.is-near rect { fill: var(--lime); stroke: var(--ink); transform: scale(1.35); }

.map-you { cursor: grab; touch-action: none; outline: none; }
.map-you:active { cursor: grabbing; }
.map-you-hit { fill: transparent; }
.map-you-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 4; }
.map-you:focus-visible .map-you-dot { stroke: var(--lime); stroke-width: 5; }

.map-hint {
  margin-top: 12px;
  font-size: .9rem;
  color: var(--ink-soft);
}

.map-stage { position: relative; }

.map-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.bubble {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 8px;
  align-items: start;
  width: max-content;
  max-width: 172px;
  padding: 8px 11px 9px 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  opacity: 0;
  transform: scale(.85);
  transform-origin: var(--ox, 50%) var(--oy, 100%);
  transition: opacity .38s ease, transform .5s cubic-bezier(.22, 1.25, .36, 1);
  will-change: transform, opacity;
}
.bubble.is-shown { opacity: 1; transform: scale(1); }

.bubble-icon {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}
.bubble-icon svg { width: 17px; height: 17px; }

.bubble-name { font-size: .8rem; font-weight: 500; line-height: 1.25; }
.bubble-offer { font-size: .78rem; line-height: 1.3; color: #D9D9D4; margin-top: 2px; }
.bubble-walk { font-size: .72rem; font-weight: 500; color: var(--lime); margin-top: 4px; }

.map-leader { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transition: opacity .3s ease; }

.nearby { margin-top: 18px; }
.nearby-count { font-weight: 500; font-size: 1.05rem; }

.map-legend {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.legend-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
}
.legend-icon svg { width: 14px; height: 14px; }

@media (max-width: 560px) {
  .bubble { max-width: 128px; padding: 6px 8px 7px 6px; gap: 0 6px; border-radius: 11px; }
  .bubble-icon { width: 22px; height: 22px; grid-row: 1 / span 2; }
  .bubble-icon svg { width: 13px; height: 13px; }
  .bubble-name { font-size: .68rem; }
  .bubble-offer { font-size: .66rem; margin-top: 1px; }
  .bubble-walk { display: none; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }

.section h2 {
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: -0.03em;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px 72px;
  align-items: end;
}
.section-head h2 { max-width: 14ch; }
.section-head p { color: var(--ink-soft); max-width: 42ch; font-size: 1.125rem; }

/* Shoppers */
.shoppers { background: var(--map); }

.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 36px;
  margin-top: clamp(48px, 6vw, 80px);
}
.point-icon { width: 44px; height: 44px; color: var(--ink); }
.point h3 { margin-top: 20px; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; }
.point p { margin-top: 10px; color: var(--ink-soft); }

/* Shops */
.shops { background: var(--ink); color: var(--paper); }

.shops-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.shops-copy h2 { max-width: 13ch; }
.shops-copy > p { margin-top: 24px; max-width: 46ch; color: #C9C9C4; font-size: 1.125rem; }

.shop-facts { margin: 44px 0 0; }
.shop-facts div {
  display: grid;
  grid-template-columns: minmax(150px, 2fr) minmax(0, 5fr);
  gap: 6px 28px;
  padding: 20px 0;
  border-top: 1px solid #3D3D3D;
}
.shop-facts div:last-child { border-bottom: 1px solid #3D3D3D; }
.shop-facts dt { font-weight: 500; color: var(--lime); }
.shop-facts dd { margin: 0; color: #C9C9C4; }

.shop-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.shop-form h3 { font-weight: 500; font-size: 1.5rem; letter-spacing: -0.015em; }
.form-intro { margin-top: 8px; color: var(--ink-soft); }

.field { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: 6px; }
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  font: 400 1rem var(--font);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #C4C4BE;
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F1F1F' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime-soft); }
.field input[aria-invalid="true"] { border-color: #B3261E; }

.form-error { margin: 16px 0 0; color: #B3261E; font-size: .95rem; min-height: 0; }
.form-error:empty { display: none; }
.shop-form .btn { margin-top: 22px; }
.form-status { margin-top: 14px; font-size: .95rem; color: var(--ink-soft); }
.form-status:empty { display: none; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 40px 72px;
  align-items: start;
}
.about .about-title {
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.about .w-light { font-weight: 200; display: block; }
.about .w-bold { font-weight: 700; display: block; }
.about-copy p + p { margin-top: 18px; }
.about-copy { color: var(--ink-soft); font-size: 1.125rem; max-width: 46ch; }

/* Download */
.download { background: var(--lime); padding: clamp(64px, 9vw, 112px) 0; }
.download-inner { text-align: center; }
.download h2 {
  font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  letter-spacing: -0.035em;
}
.download p { margin-top: 14px; font-size: 1.15rem; }

.notify-form {
  display: flex;
  gap: 10px;
  max-width: 540px;
  margin: 32px auto 0;
}
.notify-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 22px;
  font: 400 1rem var(--font);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.notify-form input:focus { outline: none; box-shadow: 0 0 0 4px rgba(31, 31, 31, 0.18); }
.notify-form input[aria-invalid="true"] { border-color: #B3261E; }
.download .notify-status { margin-top: 16px; font-size: 1rem; font-weight: 500; }
.download .notify-status:empty { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #BDBDB8;
  padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 40px;
  align-items: center;
}
.footer-logo { width: 120px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--paper); }
.footer-note { grid-column: 1 / -1; font-size: .9rem; border-top: 1px solid #3D3D3D; padding-top: 22px; }
.heart {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.14em;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 1000px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .hero-grid,
  .section-head,
  .shops-grid,
  .about-grid { grid-template-columns: 1fr; }

  .hero-copy { padding-top: 0; }
  .hero h1 { max-width: 13ch; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
  .site-nav .btn { margin-top: 18px; }
}

@media (max-width: 560px) {
  .points { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .shop-facts div { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .notify-form { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
