/* Landing page.
 *
 * The design follows cursor.com's system, measured off the live site rather than guessed:
 * a warm off-white ground (#F7F7F4), ink at #26251E, quiet type -- the headline is regular
 * weight with negative tracking, not a heavy display face -- fully round pill buttons, and
 * every visual is the real product inside a small frame. Nothing glows. The product does the
 * talking and the page gets out of its way.
 *
 * Our own rust (#C4461A, the map's accent) is the only colour, used the way the reference uses
 * its orange: small links, and one number at a time.
 */
:root {
  --page: #F7F7F4;
  --frame: #F1F0EC;
  --soft: #E6E5E0;
  --ink: #26251E;
  --muted: #6B6A60;
  --faint: #91908A;
  --line: rgba(38, 37, 30, .14);
  --hair: rgba(38, 37, 30, .08);
  --accent: #C4461A;
  --go: #1C7449;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.003em;
}
[hidden] { display: none !important; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* ---------- type: quiet on purpose ---------- */
h1 {
  font-size: clamp(26px, 2.7vw, 34px); font-weight: 400; line-height: 1.2;
  letter-spacing: -0.0125em; margin: 0; max-width: 21ch; text-wrap: balance;
}
h2 {
  font-size: clamp(21px, 2.1vw, 26px); font-weight: 400; line-height: 1.24;
  letter-spacing: -0.008em; margin: 0; text-wrap: balance;
}
h3 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.004em; }
.lede { color: var(--muted); font-size: 15px; max-width: 58ch; margin-top: 12px; }
.label {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin: 0;
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons: fully round, like the reference ---------- */
.btn {
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1;
  border-radius: 999px; padding: 13px 22px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; white-space: nowrap;
  background: var(--soft); color: var(--ink); border: 1px solid transparent;
  transition: background .14s ease, border-color .14s ease;
}
.btn:hover { background: #DEDDD7; }
.btn.primary { background: var(--ink); color: var(--page); border-color: var(--ink); }
.btn.primary:hover { background: #3A382E; border-color: #3A382E; }
.btn.small { font-size: 13.5px; padding: 8px 14px; }
.btn.quiet { background: transparent; border-color: var(--line); }
/* The free ZIP is the offer with no catch, so it gets the one coloured button on the page. */
.btn.free { background: #F6DDD0; color: #8A3113; border-color: #EBC3AE; }
.btn.free:hover { background: #F0CDB8; }
.btn.quiet:hover { background: var(--soft); }
.btn:focus-visible, input:focus-visible, .chip:focus-visible, .link:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* The one place colour is used for navigation. */
.more {
  color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 500;
  display: inline-flex; gap: 5px; align-items: center; margin-top: 4px;
}
.more:hover { text-decoration: underline; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 247, 244, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
header.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 58px;
}
.mark { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.mark .glyph { width: 18px; height: 18px; border-radius: 4px; flex: none; background: var(--ink); position: relative; }
.mark .glyph::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.navlinks { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.navlinks a { text-decoration: none; }
.navlinks a:hover { color: var(--ink); }
.navactions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .navlinks { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 84px) 0; }
.hero .sub { color: var(--muted); font-size: 16px; max-width: 56ch; margin-top: 16px; }
.hero .sub b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.herocta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.zipform { display: flex; gap: 8px; align-items: center; }
.zipform input {
  font: inherit; font-family: var(--f-mono); font-size: 14.5px; letter-spacing: .05em;
  width: 190px; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #FFFFFF; color: var(--ink);
}
.zipform input::placeholder { color: var(--faint); letter-spacing: .02em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.chips .lbl { font-size: 13px; color: var(--faint); margin-right: 3px; }
.chip {
  font: inherit; font-family: var(--f-mono); font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 4px 11px;
}
.chip:hover { background: var(--soft); color: var(--ink); }

.answer {
  margin-top: 20px; border: 1px solid var(--line); border-radius: 12px;
  background: #FFFFFF; padding: 16px 18px; display: grid; gap: 10px; max-width: 560px;
}
.answer .head { font-size: 18px; letter-spacing: -0.01em; }
.answer .head b { font-weight: 600; font-variant-numeric: tabular-nums; }
.answer .facts { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 13.5px; color: var(--muted); }
.answer.miss { color: var(--muted); font-size: 14.5px; }
.freeline { margin-top: 16px; font-size: 14.5px; color: var(--muted); max-width: 56ch; }
.freeline b { color: var(--ink); font-weight: 600; }
.pill {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 9px; border: 1px solid var(--go); color: var(--go);
}
.pill.taken { border-color: var(--line); color: var(--faint); }

/* ---------- the framed product: the page's main visual ---------- */
.frame {
  border: 1px solid var(--line); border-radius: 12px; background: var(--frame);
  overflow: hidden; margin-top: clamp(34px, 5vw, 54px);
}
.frame .bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--hair); background: #FAFAF8;
}
.frame .dots { display: flex; gap: 5px; }
.frame .dots i { width: 9px; height: 9px; border-radius: 50%; background: #D8D7D0; display: block; }
.frame .bar .name { font-size: 12.5px; color: var(--muted); }
.frame .bar .right { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--faint); }
#heroMap { height: clamp(360px, 42vw, 500px); background: var(--frame); }
.caption { margin-top: 10px; font-size: 13px; color: var(--faint); }

/* ---------- the tour: a locked city, one ZIP that opens in place ---------- */
.frame .bar .backcity {
  font: inherit; font-size: 12.5px; color: var(--accent); background: none;
  border: 0; padding: 0 0 0 4px; cursor: pointer; text-decoration: none;
}
.frame .bar .backcity:hover { text-decoration: underline; }

/* The map and everything laid over it. */
.stage { position: relative; }

/* The step panel: what to do next, in the picture rather than beside it. */
.step {
  position: absolute; left: 14px; top: 14px; z-index: 3; max-width: min(360px, calc(100% - 28px));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  display: grid; gap: 7px; font-size: 13.5px; color: var(--muted);
  box-shadow: 0 6px 22px rgba(38, 37, 30, .10);
}
.step b { color: var(--ink); font-weight: 600; font-size: 14px; }
.step .btn { justify-self: start; margin-top: 3px; }
.step .key { display: flex; align-items: center; gap: 5px; font-size: 12px; flex-wrap: wrap; }
.step .key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.step .key i:first-child { margin-left: 0; }

/* The card. Sits over the map on the right, and drops below the step panel on a phone. */
.peek {
  position: absolute; right: 14px; top: 14px; z-index: 4; width: min(310px, calc(100% - 28px));
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; display: grid; gap: 9px; font-size: 13.5px;
  box-shadow: 0 8px 26px rgba(38, 37, 30, .14);
  animation: peekin .18s ease-out;
}
@keyframes peekin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.peekhead { display: flex; align-items: center; gap: 8px; }
.peekhead .masked {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--faint);
  background: var(--frame); border-radius: 4px; padding: 2px 8px;
}
.peekclose {
  margin-left: auto; font: inherit; font-size: 18px; line-height: 1; color: var(--faint);
  background: none; border: 0; cursor: pointer; padding: 0 2px;
}
.peekclose:hover { color: var(--ink); }
.peekrow { display: grid; grid-template-columns: 62px 1fr; gap: 10px; border-top: 1px solid var(--hair); padding-top: 8px; }
.peekrow .k {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--faint); padding-top: 3px;
}
.peekrow .v { color: var(--ink); }
.peekrow .v small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }

/* The beacon. A still dot on a busy map is invisible, so it breathes. */
.beacon {
  position: relative; width: 22px; height: 22px; border: 0; background: none;
  cursor: pointer; padding: 0; display: block;
}
.beacon .core {
  position: absolute; inset: 6px; border-radius: 50%; background: var(--accent);
  border: 2px solid #FFFFFF; box-shadow: 0 1px 4px rgba(38, 37, 30, .35);
}
.beacon .ring {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; animation: pulse 2.1s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(.45); opacity: .85; }
  70%  { transform: scale(2.4);  opacity: 0; }
  100% { transform: scale(2.4);  opacity: 0; }
}
.beacon .flag {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  background: var(--ink); color: var(--page); border-radius: 999px; padding: 3px 9px;
  box-shadow: 0 2px 8px rgba(38, 37, 30, .25);
}
.beacon:hover .flag { background: var(--accent); }
.beacon:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .beacon .ring { animation: none; opacity: .7; transform: scale(1.6); }
  .peek { animation: none; }
}

@media (max-width: 760px) {
  /* Two floating panels do not fit over a phone-sized map: stack them under it instead. */
  .step, .peek {
    position: static; width: auto; max-width: none; margin: 10px 12px 0;
    box-shadow: none; backdrop-filter: none; background: #FFFFFF;
  }
  .frame { padding-bottom: 12px; }
}

/* ---------- the live strip ---------- */
.strip { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-top: clamp(42px, 6vw, 68px); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 14px 44px; padding-block: 20px; align-items: baseline; }
.strip .note { font-size: 13.5px; color: var(--muted); }
.strip .asof { margin-left: auto; font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); }
.stat { display: flex; align-items: baseline; gap: 7px; }
.stat b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- alternating feature blocks ---------- */
section { padding-block: clamp(52px, 7vw, 86px); }
.block { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.block + .block { margin-top: clamp(46px, 6vw, 78px); }
.block.flip .copy { order: 2; }
.block .copy { display: grid; gap: 10px; align-content: center; }
.block .copy p { color: var(--muted); font-size: 14.5px; }
.block .shot {
  border: 1px solid var(--line); border-radius: 12px; background: var(--frame);
  overflow: hidden; padding: 18px;
}
@media (max-width: 880px) {
  .block { grid-template-columns: 1fr; }
  .block.flip .copy { order: 0; }
}

.ziprows { display: grid; gap: 6px; }
.ziprow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: #FFFFFF; border: 1px solid var(--hair); border-radius: 8px; padding: 10px 13px;
  font-size: 13.5px;
}
.ziprow b { font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
.ziprow .mid { color: var(--muted); }
.ziprow .spots { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* The home card is drawn as an example: a real one would put an address on a public page. */
.card {
  background: #FFFFFF; border: 1px solid var(--hair); border-radius: 10px;
  padding: 14px 16px; display: grid; gap: 9px; font-size: 13.5px;
}
.card .addr { display: flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; }
.card .addr .masked {
  font-family: var(--f-mono); letter-spacing: .12em; color: var(--faint);
  background: var(--frame); border-radius: 4px; padding: 1px 7px; font-size: 12px; font-weight: 400;
}
.card .tag {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 8px; background: #F6DDD0; color: #8A3113;
}
.card .line { display: grid; grid-template-columns: 78px 1fr; gap: 10px; border-top: 1px solid var(--hair); padding-top: 8px; }
.card .line .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.card .line .v { color: var(--ink); font-size: 13.5px; }
.card .line .v small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }

/* ---------- pricing ---------- */
.spotsblock { margin-top: clamp(46px, 6vw, 78px); }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 26px; }
.plan {
  border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF;
  padding: 20px; display: grid; gap: 7px; align-content: start;
}
.plan .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.plan .amount { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.plan .amount span { font-size: 13.5px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan p { color: var(--muted); font-size: 13.5px; }
.plan.first { background: var(--frame); }
.plainnote { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 66ch; }
.plainnote b { color: var(--ink); font-weight: 600; }

/* ---------- never ---------- */
.never { display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); margin-top: 28px; }
.never div { border-top: 2px solid var(--ink); padding-top: 11px; font-size: 14px; color: var(--muted); }
.never b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ---------- closing ---------- */
.close { text-align: center; border-top: 1px solid var(--hair); }
.close h2, .close .lede { margin-inline: auto; }
.close .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

footer { border-top: 1px solid var(--hair); padding-block: 30px 44px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: grid; gap: 10px; }
footer a { color: var(--muted); }
.link {
  background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline;
  cursor: pointer; font: inherit; font-size: 13.5px; text-align: left; justify-self: start;
}
footer form { display: grid; gap: 9px; max-width: 360px; margin-top: 6px; }
footer label { display: grid; gap: 4px; font-size: 13px; color: var(--ink); font-weight: 500; }
footer input {
  font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); width: 100%;
}

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--page); font-size: 14px;
  padding: 10px 16px; border-radius: 999px; z-index: 50; opacity: 0;
  transition: opacity .18s; pointer-events: none; max-width: 90vw;
}
#toast.on { opacity: 1; }

.broken {
  background: #F6DDD0; color: #8A3113; border-bottom: 1px solid #EBC3AE;
  font-size: 14px; padding-block: 12px;
}
.broken a { color: inherit; }

@media (max-width: 560px) {
  .zipform { width: 100%; }
  .zipform input { flex: 1; width: auto; }
  /* The window title and the data date stop fitting on one line; the date is on the strip too. */
  .frame .bar .right { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
