:root {
  --paper: #faf7ef;
  --ink: #14312c;
  --muted: #455d55;
  --teal: #0c5144;
  --line: #d9ded1;
  --tint: #edf1e5;
  --warm: #efe3ca;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.62 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: .24em; }
a:focus-visible, audio:focus-visible { outline: 3px solid #a13e29; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1240px, 100% - 64px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 5; transform: translateY(-170%); padding: .45rem .75rem; background: white; }
.skip:focus { transform: none; }
.site-header, .site-footer { border-color: var(--line); border-style: solid; border-width: 0 0 1px; }
.masthead, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand img { width: clamp(218px, 24vw, 296px); height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
nav a { text-decoration: none; font-size: .87rem; font-weight: 650; }
nav a:hover, .tile a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font: 400 2.1rem/1.04 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
p { margin: 0; }
.eyebrow { color: var(--teal); font-weight: 760; letter-spacing: .095em; text-transform: uppercase; font-size: .74rem; line-height: 1.45; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.125rem); max-width: 39rem; }
.home-hero {
  --hero-inset: max(32px, calc((100vw - 1300px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  max-width: 1800px;
  margin-inline: auto;
}
.hero-copy { padding: clamp(26px, 2.5vw, 44px) 0 clamp(26px, 2.5vw, 44px) var(--hero-inset); position: relative; z-index: 1; }
.hero-copy h1 { font-size: clamp(3.15rem, 7.35vw, 7.1rem); line-height: .94; margin-bottom: 24px; letter-spacing: -.06em; }
.hero-copy .lead { font-size: clamp(1.12rem, 2.1vw, 1.9rem); line-height: 1.3; }
.hero-sample { margin-top: 9px; color: var(--teal); font-weight: 700; }
.hero-modes { margin-top: clamp(18px, 2vw, 31px); gap: 10px 0; }
.hero-modes a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-size: clamp(.92rem, 1.5vw, 1.24rem); }
.hero-modes a + a { margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line); }
.hero-modes img { filter: invert(25%) sepia(29%) saturate(1455%) hue-rotate(120deg) brightness(92%) contrast(94%); }
.hero-actions { display: flex; gap: 12px 36px; align-items: start; margin-top: 21px; }
.hero-actions .download-block { width: 144px; flex: 0 0 144px; }
.browse-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 10px 19px; border-radius: 9px;
  background: var(--teal); color: white; font-weight: 740; text-decoration: none;
}
.browse-link:hover { background: var(--ink); }
.app-store { display: inline-block; width: max-content; border-radius: 7px; }
.app-store img { width: 144px; height: 48px; }
.download-block { display: grid; gap: 3px; }
.download-block small { max-width: 25ch; color: var(--muted); line-height: 1.35; }
.miami-map { position: relative; isolation: isolate; align-self: stretch; width: 100%; min-width: 0; aspect-ratio: 1100 / 730; background: #75c0c7; }
.miami-map .map-base { width: 100%; height: 100%; position: absolute; inset: 0; }
.miami-map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper), transparent 23%); pointer-events: none; z-index: 1; }
.tour-pin {
  position: absolute; z-index: 2; left: var(--pin-x); top: var(--pin-y); transform: translate(-50%, -100%);
  display: grid; min-width: 44px; justify-items: center; color: var(--ink); text-decoration: none;
  white-space: nowrap; font-size: clamp(.78rem, 1.3vw, 1.03rem); font-weight: 750;
}
.tour-pin img { width: clamp(26px, 3.2vw, 44px); height: auto; filter: drop-shadow(0 1px 1px white) drop-shadow(0 1px 2px #16302d66); }
.tour-pin span { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); padding: 2px 10px; background: var(--paper); border-radius: 30px; box-shadow: 0 2px 5px #16302d42; }
.tour-pin:hover span, .tour-pin:focus-visible span { background: var(--teal); color: white; }
.map-label { position: absolute; z-index: 2; font-family: var(--serif); letter-spacing: .22em; text-transform: uppercase; pointer-events: none; }
.map-city { left: 20%; top: 24%; font-size: clamp(.75rem, 1.9vw, 1.8rem); }
.map-bay { left: 68%; top: 73%; font-size: clamp(.57rem, 1.2vw, 1.05rem); font-style: italic; }
.map-credit { position: absolute; z-index: 2; bottom: 0; right: 0; background: #faf7efeb; color: var(--ink); padding: 1px 5px; font-size: .61rem; line-height: 1.5; }
.map-credit a { color: inherit; }
.first-stop-band { border-top: 5px solid var(--teal); }
.first-stop { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .86fr) auto; align-items: center; gap: clamp(18px, 3.2vw, 48px); padding-block: clamp(22px, 3vw, 38px); }
.first-stop-image { width: 100%; height: auto; aspect-ratio: 2.3; object-fit: cover; border-radius: 14px; }
.first-stop h2 { font-size: clamp(2rem, 4.5vw, 4.5rem); margin-bottom: 9px; }
.first-stop h2 a { color: inherit; text-decoration: none; }
.first-stop h2 a:hover { text-decoration: underline; }
.first-stop p { color: var(--muted); max-width: 34ch; }
.first-stop-download { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; border-left: 1px solid var(--line); padding-left: clamp(12px, 2.6vw, 36px); font-weight: 760; text-decoration: none; max-width: 16rem; }
.first-stop-download:hover { text-decoration: underline; }
.play-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 50%; background: var(--teal); }
.play-mark img { filter: invert(1); }
.section { padding-block: clamp(32px, 5vw, 68px); }
.route-section { border-top: 1px solid var(--line); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(20px, 3vw, 36px); }
.section-title h2, .how h2 { font-size: clamp(2.3rem, 4.7vw, 4.1rem); }
.section-title p { color: var(--muted); max-width: 32ch; }
#tours { border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2.2vw, 28px); }
.tiles.drives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; position: relative; }
.tile > img { width: 100%; height: auto; aspect-ratio: 1.58; object-fit: cover; background: var(--warm); border-radius: 13px 13px 0 0; }
.drives .tile > img { aspect-ratio: 1.85; }
.tile-copy { padding: clamp(15px, 2vw, 25px); }
.tile-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-block: 8px 9px; }
.tile-copy h3 a { color: inherit; text-decoration: none; }
.tile-copy h3 a::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: 14px; }
.tile-copy h3 a:focus-visible { outline: none; }
.tile-copy h3 a:focus-visible::after { outline: 3px solid #a13e29; outline-offset: 4px; }
.tile:hover h3 a, .tile-copy h3 a:focus-visible { text-decoration: underline; }
.tile-copy p:last-child { color: var(--muted); font-size: .96rem; }

.planning { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-auto-rows: 1fr; }
.planning .tile-featured { grid-row: span 2; display: grid; align-items: end; min-height: 400px; isolation: isolate; }
.planning .tile-featured > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 13px; z-index: -2; }
.planning .tile-featured::before { content: ""; position: absolute; inset: 0; border-radius: 13px; background: linear-gradient(0deg, #102620f2, #10262082 32%, transparent 67%); z-index: -1; }
.planning .tile-featured .tile-copy, .planning .tile-featured .tile-copy p { color: #fffdf5; }
.planning .tile-featured h3 { font-size: clamp(2.1rem, 3.6vw, 3.7rem); }
.planning .tile:not(.tile-featured) { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: 185px; }
.planning .tile:not(.tile-featured) > img { position: absolute; inset: 0 auto 0 0; width: 42%; height: 100%; aspect-ratio: auto; border-radius: 13px 0 0 13px; }
.planning .tile:not(.tile-featured) .tile-copy { grid-column: 2; align-self: center; }
.how { background: var(--tint); padding-block: clamp(42px, 6vw, 76px); }
.how-inner { display: grid; grid-template-columns: 1fr .8fr; gap: 28px 50px; align-items: center; }
.how ol { color: var(--muted); padding-inline-start: 1.35rem; margin: 20px 0 0; }
.how li { margin-block: 8px; }
.how li strong { color: var(--ink); }
.guide-person { display: grid; grid-template-columns: minmax(70px, 125px) 1fr; gap: 18px; align-items: center; }
.guide-person img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.guide-person p { margin-top: 8px; color: var(--muted); max-width: 23ch; }
.site-footer { border-width: 1px 0 0; color: var(--muted); font-size: .9rem; }
.footer-inner { flex-wrap: wrap; }
.guide { padding-block: 24px clamp(48px, 8vw, 88px); }
.back { display: inline-flex; min-height: 38px; align-items: center; font-weight: 700; font-size: .9rem; }
.guide-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px clamp(24px, 5vw, 68px); align-items: center; padding-block: 20px 40px; border-bottom: 1px solid var(--line); }
.guide-hero h1 { font-size: clamp(2.85rem, 5.7vw, 5.2rem); margin-block: 10px 15px; }
.guide-facts { margin-bottom: 10px; color: var(--teal); font-weight: 750; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.guide-preview { width: fit-content; margin-top: 16px; }
.guide-actions .guide-preview { margin-top: 0; }
.guide-hero > img { width: 100%; height: auto; aspect-ratio: 1.52; object-fit: cover; border-radius: 15px; background: var(--warm); }
.guide-content { display: grid; gap: clamp(23px, 4vw, 37px); width: min(100%, 850px); margin: clamp(24px, 4vw, 45px) auto 0; }
.guide-content h2 { margin-block: 4px 12px; font-size: clamp(1.65rem, 3.4vw, 2.6rem); text-wrap: initial; }
.guide-content p:not(.eyebrow) { color: var(--muted); }
.guide-content p + a { display: inline-block; margin-top: 9px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.plan, .listen, .crime-route { border-radius: 14px; padding: clamp(17px, 3vw, 27px); }
.plan, .crime-route { border: 1px solid var(--line); background: #fffdf8; }
.listen { background: var(--tint); }
.listen audio { display: block; width: min(100%, 430px); height: 48px; margin-top: 10px; }
.audio-transcript { margin-top: 10px; }
.audio-transcript summary { cursor: pointer; width: fit-content; color: var(--teal); font-weight: 680; }
.audio-transcript summary:focus-visible { outline: 3px solid #a13e29; outline-offset: 4px; }
.audio-transcript p { margin-top: 8px; }
.listen-continuation { margin-top: 14px; }
.listen .download-block, .after-route .download-block { margin-top: 14px; }
.directions { font-weight: 680; }
.route-list { margin: 10px 0 0; padding-inline-start: 1.4rem; color: var(--muted); }
.route-list li { margin-block: 8px; }
.route-list strong { color: var(--ink); }
.crime-routes { display: grid; gap: 14px; }
.crime-route .listen { margin-top: 18px; padding: 16px; }
.crime-route .listen h3 { font: 700 1rem/1.3 var(--sans); letter-spacing: 0; margin: 0 0 6px; }
.after-route p { margin-top: 10px; }
.app-preview { text-align: center; }
.app-preview .section-title { display: block; }
.app-preview > .download-block { width: fit-content; margin: 20px auto 0; }
.app-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 3vw, 24px); width: min(100%, 500px); margin-inline: auto; }
.app-screens a { display: block; border-radius: 12px; color: var(--ink); text-decoration: none; }
.app-screens a:hover span { text-decoration: underline; }
.app-screens img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.app-screens span { display: block; margin-top: 10px; font-size: clamp(.77rem, 1.8vw, 1rem); font-weight: 700; line-height: 1.3; }
.drive-comparison { margin-top: 16px; }
.drive-comparison h3 { margin-bottom: 8px; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.drive-comparison p { margin-bottom: 8px; }
@media (max-width: 850px) {
  .section-title { align-items: start; flex-direction: column; }
  .shell { width: calc(100% - 42px); }
}
@media (max-width: 650px) {
  .app-screens { max-width: 280px; }
  .shell { width: calc(100% - 32px); }
  .masthead { min-height: 66px; gap: 12px; padding-block: 13px; }
  .masthead .brand img { width: clamp(154px, 49vw, 216px); }
  .masthead nav { gap: 8px 13px; }
  .masthead nav a { font-size: .78rem; }
  .home-hero, .guide-hero, .how-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 31px 16px 24px; text-align: center; }
  .hero-copy h1 { font-size: clamp(3rem, 12vw, 5.2rem); margin-bottom: 13px; }
  .hero-copy .lead { max-width: 30ch; margin-inline: auto; text-wrap: balance; }
  .hero-line-break { display: none; }
  .hero-modes { justify-content: center; margin-top: 12px; }
  .hero-modes a + a { margin-left: 12px; padding-left: 12px; }
  .hero-actions { justify-content: center; gap: 24px; margin-top: 12px; }
  .hero-actions .browse-link { gap: 7px; padding-inline: 12px; font-size: .9rem; white-space: nowrap; }
  .miami-map { aspect-ratio: 1100 / 730; }
  .miami-map::before { background: linear-gradient(180deg, var(--paper), transparent 13%); }
  .tour-pin:first-of-type span { transform: translateX(calc(-50% + 16px)); }
  .first-stop { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 14px; }
  .first-stop-image { aspect-ratio: 1.35; }
  .first-stop h2 { font-size: clamp(1.65rem, 6.4vw, 2.25rem); }
  .first-stop p { font-size: .88rem; }
  .first-stop-download { grid-column: 1 / -1; border: 0; padding-left: 0; }
  .tiles, .tiles.drives, .plan-grid { grid-template-columns: 1fr; }
  .tile > img, .drives .tile > img { aspect-ratio: 1.78; }
  .planning { grid-auto-rows: auto; }
  .planning .tile-featured { grid-row: auto; min-height: 295px; }
  .planning .tile:not(.tile-featured) { grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); min-height: 136px; }
  .planning .tile:not(.tile-featured) > img { width: 34%; }
  .planning .tile:not(.tile-featured) h3 { font-size: 1.45rem; }
  .guide-hero { padding-block: 15px 24px; }
  .guide-hero h1 { font-size: clamp(2.45rem, 9vw, 3.7rem); }
}

@media (max-width: 355px) {
  .hero-actions { gap: 18px; }
  .hero-actions .download-block { width: 132px; flex-basis: 132px; }
  .hero-actions .app-store img { width: 132px; object-fit: contain; }
  .hero-actions .browse-link { padding-inline: 10px; }
}
