@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --land: #f2f7f4;
  --park: #cfeadb;
  --water: #a9ddf3;
  --road: #ffffff;
  --minor: #e4ece7;
  --ink: #10302a;
  --muted: #47635b;
  --line: #d3e0da;
  --link: #0058bd;

  --s1: #007aff;
  --s2: #34c759;
  --s3: #ffcc00;
  --s4: #ff9500;
  --s5: #ff3b30;

  --display: "Overpass", "Arial Narrow", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --edge: max(var(--gutter), calc((100vw - 76rem) / 2 + var(--gutter)));
}

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

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

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

h1,
h2,
h3,
p,
dl,
dd,
ul,
figure {
  margin: 0;
}

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

img {
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3,
.brand,
dt {
  font-family: var(--display);
}

h1,
h2 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
}

.wrap {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(242 247 244 / 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4rem;
  padding-inline: var(--edge);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--link);
  text-decoration: underline;
}

.nav-download {
  padding: 0.45rem 1rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.nav-download:hover {
  background: var(--link);
}

.store-badge {
  display: inline-block;
}

.store-badge img {
  width: auto;
  height: 54px;
}

.ph-badge {
  display: inline-block;
  line-height: 0;
}

.ph-badge img {
  width: auto;
  height: 54px;
}

.cta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  min-height: min(50rem, calc(100vh - 4rem));
}

.hero-copy {
  align-self: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem) var(--edge);
}

.hero h1 {
  font-size: clamp(3.5rem, 7.2vw, 6.5rem);
  font-weight: 900;
  line-height: 0.96;
}

.hero-lede {
  max-width: 31rem;
  margin-block: 1.5rem 2rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.5;
}

.hero-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hero-action p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.hero-map {
  display: flex;
  flex-direction: column;
  min-height: 34rem;
  overflow: hidden;
}

.map {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
}

.route-casing,
.route path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-casing {
  stroke: #fff;
  stroke-width: 19;
}

.route path {
  stroke-width: 12;
}

.pin {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 6;
}

.route .h1 { stroke: var(--s1); }
.route .h2 { stroke: var(--s2); }
.route .h3 { stroke: var(--s3); }
.route .h4 { stroke: var(--s4); }
.route .h5 { stroke: var(--s5); }

.heat:has(#m-p:checked) .route .p1,
.heat:has(#m-g:checked) .route .g1,
.heat:has(#m-e:checked) .route .e1,
.heat:has(#m-c:checked) .route .c1,
.heat:has(#m-w:checked) .route .w1,
.heat:has(#m-o:checked) .route .o1,
.heat:has(#m-f:checked) .route .f1 {
  stroke: var(--s1);
}

.heat:has(#m-p:checked) .route .p2,
.heat:has(#m-g:checked) .route .g2,
.heat:has(#m-e:checked) .route .e2,
.heat:has(#m-c:checked) .route .c2,
.heat:has(#m-w:checked) .route .w2,
.heat:has(#m-o:checked) .route .o2,
.heat:has(#m-f:checked) .route .f2 {
  stroke: var(--s2);
}

.heat:has(#m-p:checked) .route .p3,
.heat:has(#m-g:checked) .route .g3,
.heat:has(#m-e:checked) .route .e3,
.heat:has(#m-c:checked) .route .c3,
.heat:has(#m-w:checked) .route .w3,
.heat:has(#m-o:checked) .route .o3,
.heat:has(#m-f:checked) .route .f3 {
  stroke: var(--s3);
}

.heat:has(#m-p:checked) .route .p4,
.heat:has(#m-g:checked) .route .g4,
.heat:has(#m-e:checked) .route .e4,
.heat:has(#m-c:checked) .route .c4,
.heat:has(#m-w:checked) .route .w4,
.heat:has(#m-o:checked) .route .o4,
.heat:has(#m-f:checked) .route .f4 {
  stroke: var(--s4);
}

.heat:has(#m-p:checked) .route .p5,
.heat:has(#m-g:checked) .route .g5,
.heat:has(#m-e:checked) .route .e5,
.heat:has(#m-c:checked) .route .c5,
.heat:has(#m-w:checked) .route .w5,
.heat:has(#m-o:checked) .route .o5,
.heat:has(#m-f:checked) .route .f5 {
  stroke: var(--s5);
}

.sheet {
  padding: 1rem var(--edge) 1.1rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.metrics legend {
  margin-bottom: 0.55rem;
  padding: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
}

.metrics input {
  position: absolute;
  opacity: 0;
}

.metrics label {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}

.metrics label:hover {
  border-color: var(--ink);
}

.metrics input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.metrics input:focus-visible + label {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.readout {
  margin-top: 0.75rem;
}

.note {
  display: none;
}

.note[data-m="h"] {
  display: block;
}

.heat:has(.metrics input:not(#m-h):checked) .note[data-m="h"] {
  display: none;
}

.heat:has(#m-p:checked) .note[data-m="p"],
.heat:has(#m-g:checked) .note[data-m="g"],
.heat:has(#m-e:checked) .note[data-m="e"],
.heat:has(#m-c:checked) .note[data-m="c"],
.heat:has(#m-w:checked) .note[data-m="w"],
.heat:has(#m-o:checked) .note[data-m="o"],
.heat:has(#m-f:checked) .note[data-m="f"] {
  display: block;
}

.note p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.scale {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.scale i {
  flex: 1;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--s1), var(--s2), var(--s3), var(--s4), var(--s5));
  border-radius: 999px;
}

.sample-note {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.whats-new {
  background: #fff;
  border-block: 1px solid var(--line);
}

.whats-new p {
  padding-block: 0.9rem;
}

.whats-new strong {
  font-weight: 600;
}

.keep {
  padding-block: var(--section) 0;
}

.keep-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
}

.keep p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.gallery-section {
  padding-block: var(--section);
}

.section-note {
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.page-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 3vw, 1.5rem);
  max-width: 38rem;
  margin-top: 2rem;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  width: min(100%, 76rem);
  margin: 2.5rem auto 0;
  padding-inline: var(--gutter);
}

.phone {
  overflow: hidden;
  padding: 2.5%;
  background: #0b1f1b;
  border-radius: 13% / 6%;
}

.phone img {
  border-radius: 11% / 5.2%;
}

.gallery figcaption {
  margin-top: 1rem;
}

.gallery h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
}

.gallery figcaption p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ipad {
  padding-block: var(--section);
  background: var(--water);
}

.ipad-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.ipad p {
  max-width: 28rem;
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

.ipad img {
  background: #0b1f1b;
  padding: 1.5%;
  border-radius: 3.2%;
}

.more {
  padding-block: var(--section);
}

.more-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}

.more-list dt {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.more-list dd {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.private {
  padding-block: var(--section);
  background: var(--ink);
  color: #fff;
}

.private-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
}

.private ul {
  padding-left: 1.2rem;
  font-size: 1.1rem;
}

.private li + li {
  margin-top: 0.5rem;
}

.private p {
  grid-column: 2;
}

.private a {
  color: #fff;
  font-weight: 600;
}

.private a:focus-visible {
  outline-color: #fff;
}

.cta {
  background: var(--park);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.cta h2 {
  max-width: 46rem;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 900;
}

.cta p {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.15rem;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 2.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link);
  text-decoration: underline;
}

.footer-legal {
  width: 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

.page {
  padding-block: clamp(3rem, 7vw, 5rem) var(--section);
}

.page h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
}

.prose {
  max-width: 42rem;
  margin-top: 2rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin-top: 3.25rem;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.prose p,
.prose ul,
.prose ol {
  margin-block: 0.85rem 0;
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose .lede {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.5;
}

.prose hr {
  margin-block: 3rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose details {
  border-bottom: 1px solid var(--line);
}

.prose h2 + details {
  margin-top: 1rem;
}

.prose summary {
  position: relative;
  padding-block: 1rem;
  padding-right: 2rem;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.prose summary::-webkit-details-marker {
  display: none;
}

.prose summary::after {
  content: "+";
  position: absolute;
  top: 0.8rem;
  right: 0.25rem;
  color: var(--link);
  font-size: 1.4rem;
  line-height: 1.4;
}

.prose details[open] summary::after {
  content: "\2212";
}

.prose summary:hover {
  color: var(--link);
}

.prose details > p {
  margin-block: 0 1.25rem;
}

.page-action {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  .route path {
    transition: stroke 0.25s ease;
    animation: light-segment 0.12s linear both;
    animation-delay: calc(var(--i) * 16ms + 150ms);
  }

  @keyframes light-segment {
    from {
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1100px) {
  .gallery {
    grid-auto-columns: min(62vw, 15rem);
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
  }

  .gallery figure {
    scroll-snap-align: start;
  }

  .more-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-copy {
    padding: 2.25rem var(--gutter) 2rem;
  }

  .hero-map {
    min-height: 0;
  }

  .map {
    flex: none;
    height: clamp(20rem, 85vw, 30rem);
  }

  .sheet {
    padding: 1rem var(--gutter) 1.25rem;
    border-left: 0;
  }

  .keep-inner,
  .ipad-inner,
  .private-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .private p {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-download {
    margin-left: auto;
  }

  .more-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
