/* =========================================================
   MateEazy landing page
   Brand: plum / coral / gold / cream (same tokens as the app)
   Type:  Bricolage Grotesque (display) + Poppins (text, as in the app)
   ========================================================= */

:root {
  --plum: #2B1B3D;
  --plum-2: #3A294C;
  --plum-3: #473457;
  --coral: #FF6B5B;
  --coral-press: #E85A4B;
  --coral-tint: #FFE3DE;
  --gold: #F4B740;
  --gold-tint: #FFF0C9;
  --cream: #F6EDE3;
  --cream-2: #EFE3D7;
  --paper: #FFF8F0;
  --white: #FFFFFF;
  --ink-muted: #6E6179;
  --line: #E4D6CA;
  --on-dark-muted: #C1B0CC;
  --success: #4CC38A;

  --font-display: "Bricolage Grotesque", "Poppins", system-ui, sans-serif;
  --font-text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 32px;
  --r-md: 20px;
  --r-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(43, 27, 61, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--plum); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

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

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.display span { display: block; white-space: nowrap; }
.display-2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section-lead { font-size: 18px; color: var(--ink-muted); max-width: 52ch; margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--coral); color: var(--white);
  font-weight: 600; text-decoration: none;
  padding: 14px 24px; border-radius: 999px;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--coral-press); }
.btn-small { padding: 10px 18px; font-size: 15px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(43, 27, 61, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  color: var(--paper);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-dark-muted); }
.nav-links a:not(.btn):hover { color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); padding: 8px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  background: var(--plum);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--on-dark-muted); max-width: 46ch; margin-top: 28px; }
.hero .display { color: var(--paper); }

.get-app { display: flex; align-items: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.play-badge { display: inline-block; border-radius: 10px; }
.play-badge img { width: 220px; height: auto; margin: -14px; } /* badge PNG has built-in padding */
.qr-tile {
  display: flex; align-items: center; gap: 14px;
  background: var(--plum-2); border-radius: var(--r-md);
  padding: 10px 18px 10px 10px;
}
.qr-tile img { width: 84px; height: 84px; border-radius: 10px; }
.qr-tile span { font-size: 14px; line-height: 1.35; color: var(--on-dark-muted); max-width: 13ch; }
.fine { margin-top: 18px; font-size: 14px; color: var(--on-dark-muted); }

/* The house: the app logo's silhouette used as a window into a real room */
.hero-art { position: relative; justify-self: center; width: min(100%, 500px); }
.house {
  --house: polygon(50% 0%, 100% 38%, 92% 38%, 92% 100%, 8% 100%, 8% 38%, 0% 38%);
  aspect-ratio: 5 / 5.6;
  clip-path: var(--house);
  background: var(--coral);
  padding: 14px;
  animation: house-in 900ms cubic-bezier(.2, .8, .2, 1) both;
}
.house img {
  width: 100%; height: 100%; object-fit: cover;
  clip-path: var(--house);
  object-position: 40% 40%;
}
.float {
  position: absolute;
  background: var(--paper); color: var(--plum);
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px -20px rgba(10, 4, 20, 0.6);
  animation: float-in 600ms cubic-bezier(.2, .9, .3, 1.2) both;
}
.float-match {
  left: -6%; top: 40%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  animation-delay: 550ms;
}
.float-match strong { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--coral); line-height: 1; }
.float-match span { font-weight: 600; font-size: 15px; line-height: 1.3; }
.float-match small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-muted); }
.float-room {
  right: -4%; bottom: 8%;
  display: grid; gap: 2px;
  padding: 14px 20px;
  animation-delay: 750ms;
}
.float-room .price { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--plum); }
.float-room span { font-size: 14px; font-weight: 500; }
.float-room small { font-size: 12.5px; color: var(--ink-muted); }

@keyframes house-in {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(16px) scale(.9); }
  to   { opacity: 1; transform: none; }
}

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

/* ---------- app tour (app clips in a phone frame) ---------- */
.quick-paths { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.quick-paths button {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 0; border-radius: 999px; padding: 11px 20px;
  background: var(--white); color: var(--plum);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .15s ease, box-shadow .15s ease;
}
.quick-paths button:hover { box-shadow: inset 0 0 0 1.5px var(--coral); }

.tour-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-top: 48px;
}

.tour-list { display: grid; gap: 6px; }
.tour-list button {
  position: relative; overflow: hidden;
  display: grid; gap: 2px; text-align: left;
  font: inherit; color: var(--plum); cursor: pointer;
  border: 0; background: transparent; border-radius: 16px;
  padding: 14px 18px 16px;
  transition: background-color .15s ease;
}
.tour-list button b { font-size: 16px; font-weight: 600; }
.tour-list button span { font-size: 14px; color: var(--ink-muted); }
.tour-list button:hover { background: var(--cream-2); }
.tour-list button[aria-selected="true"] { background: var(--white); box-shadow: 0 10px 30px -18px rgba(43, 27, 61, 0.45); }
.tour-list button[aria-selected="true"] b { color: var(--coral-press); }
.tour-list .prog {
  position: absolute; left: 18px; right: 18px; bottom: 8px; height: 3px; border-radius: 3px;
  background: var(--cream-2); display: none;
}
.tour-list .prog::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--coral);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.tour-list button[aria-selected="true"] .prog { display: block; }

/* the phone */
.device {
  width: 320px; padding: 12px; border-radius: 48px;
  background: #1A1024;
  box-shadow: 0 40px 80px -30px rgba(43, 27, 61, 0.55), inset 0 0 0 2px #3A294C;
}
.device-screen {
  position: relative; overflow: hidden; border-radius: 37px;
  background: #2A1A3B;
}
.statusbar {
  height: 30px; padding: 0 22px 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  color: #FFF8F0; font-size: 12px; font-weight: 600;
}
.statusbar::after { /* camera */
  content: ""; position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #0D0714;
}
.sb-icons { display: flex; gap: 4px; align-items: center; }
.sb-icons i { width: 12px; height: 9px; border-radius: 2px; background: #FFF8F0; opacity: .85; }
.sb-icons i:first-child { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.sb-icons .batt { width: 18px; }
.device video, .device #tour-still {
  display: block; width: 100%; aspect-ratio: 392 / 808; object-fit: cover; background: #2A1A3B;
}
.device #tour-still[hidden], .device video[hidden] { display: none; }
.play-toggle {
  position: absolute; right: 12px; bottom: 74px;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 248, 240, 0.9); color: var(--plum);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}
.play-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.play-toggle .i-play { fill: currentColor; stroke-width: 1.5; }
.play-toggle .i-play, .play-toggle.paused .i-pause { display: none; }
.play-toggle.paused .i-play { display: block; }
.play-toggle[hidden] { display: none; }

/* steps next to the phone */
.tour-steps { padding-top: 12px; }
.tour-steps h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 24px; }
.steps-set:not([hidden]) { animation: panel-in 300ms ease both; }
.steps { counter-reset: step; display: grid; gap: 22px; max-width: 460px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start;
}
.steps li::before {
  content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  background: var(--coral); color: var(--white);
}
.steps li:nth-child(2)::before { background: var(--gold); color: var(--plum); }
.steps li:nth-child(3)::before { background: var(--plum); color: var(--paper); }
.steps p { color: var(--ink-muted); padding-top: 9px; }
.steps b { color: var(--plum); font-weight: 600; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- match (interactive) ---------- */
.match { background: var(--plum); color: var(--paper); }
.match .section-lead { color: var(--on-dark-muted); }
.match-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px); margin-top: 48px; align-items: start;
}
.quiz { display: grid; gap: 26px; }
.quiz fieldset { border: 0; padding: 0; margin: 0; }
.quiz legend { font-weight: 600; font-size: 16px; margin-bottom: 10px; padding: 0; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--plum-2); color: var(--on-dark-muted);
  font-size: 15px; font-weight: 500;
  box-shadow: inset 0 0 0 1.5px var(--plum-3);
  transition: background-color .15s ease, color .15s ease;
}
.seg label:hover span { color: var(--paper); }
.seg input:checked + span { background: var(--paper); color: var(--plum); box-shadow: none; font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.result {
  position: sticky; top: 96px;
  background: var(--paper); color: var(--plum);
  border-radius: var(--r-lg); padding: 28px;
  display: grid; gap: 18px; justify-items: center; text-align: center;
}
.person { display: flex; align-items: center; gap: 14px; justify-self: stretch; text-align: left; }
.person img { width: 56px; height: 56px; border-radius: 50%; }
.person div { display: grid; line-height: 1.3; }
.person b { font-size: 17px; }
.person span { font-size: 14px; color: var(--ink-muted); }

.dial { position: relative; width: 200px; height: 200px; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 12; }
.dial .track { stroke: var(--cream-2); }
.dial .bar {
  stroke: var(--coral); stroke-linecap: round;
  stroke-dasharray: var(--p) 100;
  transition: stroke-dasharray .6s cubic-bezier(.2, .8, .2, 1), stroke .3s ease;
}
.dial.great .bar { stroke: var(--success); }
.dial.good .bar { stroke: var(--gold); }
.dial-num {
  position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline;
  font-family: var(--font-display); font-weight: 800;
}
.dial-num span { font-size: 64px; letter-spacing: -0.04em; line-height: 1; }
.dial-num small { font-size: 26px; }
.verdict { font-weight: 600; font-size: 18px; }
.highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 34px; }
.highlights li {
  font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: var(--gold-tint);
}
.highlights li.bad { background: var(--coral-tint); color: #A3271A; }
.her { font-size: 13.5px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- features (bento) ---------- */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: row dense;
  gap: 16px; margin-top: 48px;
}
.tile {
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px; display: grid; align-content: start; gap: 10px;
  position: relative; overflow: hidden;
}
.tile p { color: var(--ink-muted); }
.tile-map { grid-column: span 4; grid-row: span 2; grid-template-rows: 1fr auto; padding: 0; }
.tile-map .tile-copy { padding: 0 28px 28px; display: grid; gap: 10px; max-width: 60ch; }
.tile-broker { grid-column: span 2; background: var(--gold); }
.tile-broker p { color: var(--plum); }
.big-zero {
  font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: .8;
  letter-spacing: -0.05em; margin-top: 8px;
}
.tile-alerts { grid-column: span 2; }
.tile-filters { grid-column: span 6; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 40px; align-items: center; }
.tile-filters h3, .tile-filters > p { grid-column: 1; }
.tile-filters .filter-chips { grid-column: 2; grid-row: 1 / span 2; }
.tile-filters { background: var(--cream-2); }
.tile-alerts { background: var(--coral); color: var(--white); }
.tile-alerts p { color: rgba(255, 255, 255, 0.9); }
.notif {
  margin-top: 14px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  background: var(--paper); color: var(--plum); border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 18px 40px -18px rgba(43, 27, 61, 0.55);
}
.notif img { width: 40px; height: 40px; background: var(--cream); border-radius: 12px; padding: 6px; }
.notif div { display: grid; line-height: 1.35; }
.notif b { font-size: 14px; }
.notif span { font-size: 12.5px; color: var(--ink-muted); }
.tile-filters .filter-chips { margin-top: 10px; }

.map {
  position: relative; min-height: 300px; margin: 12px 12px 20px;
  border-radius: calc(var(--r-lg) - 10px);
  background:
    linear-gradient(0deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 100% 120px,
    linear-gradient(90deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%) 0 0 / 140px 100%,
    linear-gradient(35deg, transparent 49%, #fff 49%, #fff 51.5%, transparent 51.5%),
    #EAE0D3;
  overflow: hidden;
}
.ring {
  position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 2.5px dashed var(--coral); background: rgba(255, 107, 91, 0.12);
}
.pin {
  position: absolute; width: 18px; height: 18px; border-radius: 50% 50% 50% 0;
  background: var(--plum); transform: rotate(-45deg); box-shadow: 0 6px 12px rgba(43, 27, 61, .3);
}
.pin.out { background: #B9AAA0; }
.pin.you {
  width: auto; height: auto; border-radius: 999px; transform: translate(-50%, -50%);
  left: 50%; top: 50%; background: var(--coral); color: var(--white);
  font-size: 13px; font-weight: 600; padding: 4px 12px;
}
.p1 { left: 38%; top: 36%; } .p2 { left: 60%; top: 30%; } .p3 { left: 56%; top: 64%; } .p4 { left: 85%; top: 18%; }


.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.filter-chips li { background: var(--white); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* ---------- safety ---------- */
.safety { background: var(--paper); }
.safety-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.safety-list { display: grid; gap: 0; }
.safety-list li {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.safety-list li:last-child { border-bottom: 1px solid var(--line); }
.safety-list svg {
  width: 48px; height: 48px; padding: 11px; border-radius: 14px;
  background: var(--coral-tint);
  fill: none; stroke: var(--coral); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.safety-list p { color: var(--ink-muted); margin-top: 6px; }
.safety-list a { color: var(--coral-press); font-weight: 500; }

/* ---------- download ---------- */
.download { background: var(--coral); color: var(--white); padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.download::after { /* the house, again, as a big quiet watermark */
  content: ""; position: absolute; left: -90px; bottom: -70px; width: 360px; height: 390px;
  background: rgba(255, 255, 255, 0.10);
  clip-path: polygon(50% 0%, 100% 38%, 92% 38%, 92% 100%, 8% 100%, 8% 38%, 0% 38%);
}
.download-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; position: relative; z-index: 1; }
.download-copy p { font-size: 18px; max-width: 50ch; margin: 20px 0 32px; color: rgba(255, 255, 255, 0.92); }
.qr-big {
  margin: 0; background: var(--paper); color: var(--plum);
  padding: 20px 20px 16px; border-radius: var(--r-lg); text-align: center;
  box-shadow: 0 30px 60px -24px rgba(43, 27, 61, 0.5);
}
.qr-big img { width: 220px; height: 220px; }
.qr-big figcaption { font-weight: 600; font-size: 15px; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%232B1B3D' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-muted); max-width: 62ch; }
.faq-list a { color: var(--coral-press); font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { background: var(--plum); color: var(--paper); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-brand p { color: var(--on-dark-muted); margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }
.copy { grid-column: 1 / -1; font-size: 13px; color: var(--on-dark-muted); border-top: 1px solid var(--plum-3); padding-top: 24px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-map { grid-column: span 2; grid-row: auto; }
  .tile-broker, .tile-alerts { grid-column: span 1; }
  .tile-filters { grid-column: span 2; grid-template-columns: 1fr; }
  .tile-filters .filter-chips { grid-column: 1; grid-row: auto; }
  .tour-grid { grid-template-columns: auto minmax(0, 1fr); }
  .tour-list { grid-column: 1 / -1; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .tour-list button { flex: none; padding: 12px 16px 14px; }
  .tour-list button span { display: none; }
  .faq-wrap, .safety-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--plum); padding: 8px var(--gutter) 20px;
    border-top: 1px solid var(--plum-3);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--plum-3); }
  .nav-links .btn { margin-top: 16px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 420px); margin-top: 8px; }
  .qr-tile { display: none; } /* you can't scan your own phone screen */
  .match-grid { grid-template-columns: 1fr; }
  .result { position: static; }
  .download-grid { grid-template-columns: 1fr; }
  .qr-big { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile-map, .tile-broker, .tile-filters, .tile-alerts { grid-column: auto; }
  .float-match { left: -2%; top: 34%; padding: 10px 14px; }
  .float-match strong { font-size: 30px; }
  .float-room { right: -2%; bottom: 4%; padding: 10px 14px; }
  .device { width: 292px; }
  .ring { width: 200px; height: 200px; }
}

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

/* heading wording: phones can't scan their own screen */
.on-mob { display: none; }
@media (max-width: 880px) {
  .on-desk { display: none; }
  .on-mob { display: inline; }
}

/* app tour on phones: feature chips, then the phone, then the steps */
@media (max-width: 700px) {
  .tour-grid { grid-template-columns: 1fr; gap: 24px; }
  .tour-stage { justify-self: center; }
  .tour-steps { padding-top: 0; }
  .quick-paths button { flex: 1 1 100%; text-align: left; }
}
