/* Shared look of the marketing pages. The palette & the system-ui font are the app's: /palette.css
   (app/src/theme/palette.css, copied in by deploy.sh), linked ahead of this file. */
:root {
  --card: rgb(var(--surface-rgb));
  --line: rgb(var(--ink-rgb) / 0.08);
}
* {
  box-sizing: border-box;
}
/* The footer's full-bleed band is painted with a 100vmax shadow; without this it widens the page
   into a sideways scroll (both, so `body` clips itself rather than handing its overflow to the viewport). */
html,
body {
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font:
    18px/1.55 system-ui,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--text);
}
/* Atmosphere: a brand-coloured glow over a faint map graticule, fading out from the top of the page
   & again from the bottom, so neither end is a flat sheet. Pure CSS (nothing to load); engines
   without color-mix keep the plain page. */
body {
  position: relative;
}
body::before,
body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 70% at 50% 0%,
      color-mix(in srgb, var(--brand) var(--glow, 18%), transparent),
      transparent 75%
    ),
    linear-gradient(rgb(var(--ink-rgb) / 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(var(--ink-rgb) / 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
}
body::before {
  top: 0;
  mask-image: linear-gradient(#000 35%, transparent);
}
body::after {
  /* A third of the top's height, grid only; the footer's solid band covers its lowest part. */
  --glow: 0%;
  height: 380px;
  bottom: 0;
  mask-image: linear-gradient(transparent, #000 65%);
}
header,
main,
footer {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}
main {
  flex: 1;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.brand svg {
  width: 32px;
  height: 32px;
  fill: var(--brand);
}
h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.1;
  margin: 48px 0 16px;
}
.lead {
  color: var(--text-muted);
  font-size: clamp(20px, 3vw, 28px);
  margin: 0 0 32px;
}
.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-segment);
  font-weight: 700;
  text-decoration: none;
}
/* The button is the page's one action, so it answers the pointer & keyboard focus: a lift, a
   brighter fill & an arrow that leans forward. */
.cta::after {
  content: '\2192';
  display: inline-block;
  margin-left: 8px;
}
.cta:hover,
.cta:focus-visible {
  filter: brightness(1.1);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 40%, transparent);
}
.cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .cta {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      filter 0.2s ease;
  }
  .cta::after {
    transition: transform 0.2s ease;
  }
  .cta:hover,
  .cta:focus-visible {
    transform: translateY(-2px);
  }
  .cta:hover::after,
  .cta:focus-visible::after {
    transform: translateX(4px);
  }
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 64px 0;
}
.features section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.features h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.features p {
  margin: 0;
  color: var(--text-muted);
}
.usecases {
  display: grid;
  gap: 56px;
  /* Compact rows: the pictures stay this size while the rest of the page uses the wider frame. */
  max-width: 912px;
  margin: 40px 0 72px;
}
.usecases section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px 40px;
  align-items: center;
}
/* Alternate sides only when the two columns sit side by side; stacked, the picture leads. */
@media (min-width: 700px) {
  .usecases section:nth-child(even) .shot {
    order: 2;
  }
}
/* Stacked, a picture sits close to its own text & far from the next feature's, so each pair reads
   as one. */
@media (max-width: 699px) {
  .usecases {
    gap: 72px;
  }
  .usecases section {
    gap: 12px;
  }
}
.usecases h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.heading {
  margin: 72px 0 0;
  font-size: 32px;
}
/* The hero button sits at the right edge, apart from the left-aligned text above it. */
main > .cta {
  display: block;
  width: fit-content;
  margin-left: auto;
}
/* Breathing room between the hero & the first section. */
.cta + .heading {
  margin-top: 120px;
}
.note {
  margin: 8px 0 0;
  color: var(--text-muted);
}
.note .str {
  color: var(--segment-str);
}
.note .sfr {
  color: var(--segment-sfr);
}
.note .mls {
  color: var(--segment-mls);
}
.markets {
  list-style: none;
  margin: 20px 0 160px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.markets a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
}
.markets .action a {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-segment);
  font-weight: 700;
}
/* Beats the plain pills' brand-coloured hover text, which would vanish on the brand fill. */
.markets .action a:hover,
.markets .action a:focus-visible {
  color: var(--on-segment);
  filter: brightness(1.1);
}
.markets a:hover,
.markets a:focus-visible {
  color: var(--brand);
}
/* The full-frame pictures (maps) get the lift the cut-out cards carry in their own pixels. */
.shot:has(img) {
  padding: 0;
  overflow: hidden;
  border-style: solid;
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.26);
}
.shot.bare:has(img) {
  aspect-ratio: auto;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.shot img {
  /* A picture to look at, not to drag out of the page. */
  -webkit-user-drag: none;
  user-select: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot.bare img {
  height: auto;
}
.shot .dark,
:root[data-theme='dark'] .shot .light {
  display: none;
}
:root[data-theme='dark'] .shot .dark {
  display: block;
}
.usecases p {
  margin: 0 0 8px;
  color: var(--text-muted);
}
.shot {
  margin: 0;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
footer {
  /* A solid, full-bleed band in the card colour (the shadow, clipped to the sides only) under a
     full-width rule, so the page & its pattern visibly end above it. */
  position: relative;
  background: var(--card);
  box-shadow: 0 0 0 100vmax var(--card);
  clip-path: inset(0 -100vmax);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100vmax;
  right: -100vmax;
  border-top: 1px solid rgb(var(--ink-rgb) / 0.16);
}
footer p {
  margin: 0;
}
footer nav a {
  margin-right: 20px;
  color: var(--text-muted);
}
footer nav a:last-child {
  margin-right: 0;
}
footer nav a:hover,
footer nav a:focus-visible {
  color: var(--brand);
}
footer .copyright {
  color: var(--text-faint);
}
.prose h1 {
  margin-top: 24px;
}
.prose .lead {
  font-size: 16px;
}
.prose h2 {
  margin: 32px 0 8px;
  font-size: 20px;
}
.prose p,
.prose li {
  margin: 0;
  color: var(--text-muted);
}
.prose ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.prose p + ul,
.prose ul + p {
  margin-top: 8px;
}
.prose {
  max-width: 720px;
  padding-bottom: 96px;
}
.extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 40px;
  margin: 24px 0 0;
}
.extras h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.extras p {
  margin: 0;
  color: var(--text-muted);
}
/* Pictures tilt in as they scroll into view & lean toward the visitor on hover. The perspective
   sits on the parent so `rotate` (hover) & `transform` (scroll) compose without a matrix fight. */
@media (prefers-reduced-motion: no-preference) {
  .usecases section {
    perspective: 1200px;
  }
  .shot {
    transition:
      rotate 0.35s ease,
      scale 0.35s ease;
  }
  /* Touch screens keep :hover stuck after a tap, so only real pointers get it. */
  @media (hover: hover) {
    .usecases section:nth-child(odd) .shot:hover {
      rotate: 0.3 1 0 -7deg;
      scale: 1.03;
    }
    .usecases section:nth-child(even) .shot:hover {
      rotate: 0.3 1 0 7deg;
      scale: 1.03;
    }
  }
  /* reveal.js adds `.reveal` & `.in` wherever the scroll timeline above doesn't run: engines
     without it & touch screens. */
  .reveal .usecases .shot:not(.in) {
    transform: rotateX(22deg) translateY(48px);
    opacity: 0.2;
  }
  .reveal .usecases .shot {
    transition:
      transform 0.7s ease,
      opacity 0.7s ease,
      rotate 0.35s ease,
      scale 0.35s ease;
  }
  @supports (animation-timeline: view()) and (hover: hover) {
    .usecases .shot {
      animation: tilt-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
  }
}
@keyframes tilt-in {
  from {
    transform: rotateX(22deg) translateY(48px);
    opacity: 0.2;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.extras .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: 0 0 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  fill: var(--brand);
}

/* An aside the reader shouldn't miss: a card with a brand-coloured edge. */
.callout {
  margin: 20px 0;
  padding: 14px 18px;
  font-size: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
}

/* The field guide's tables: wider than the legal text, scrolling sideways on a phone rather than
   squeezing columns. */
.prose.wide {
  max-width: 960px;
}
.table-scroll {
  overflow-x: auto;
  margin: 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}
.prose thead th {
  color: var(--text);
  background: var(--card);
}
.prose tr.group th {
  color: var(--text);
  background: var(--card);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose td:first-child {
  white-space: nowrap;
}
.prose code {
  font-size: 0.9em;
  color: var(--text);
}
.cta.download::after {
  content: '\2193';
}
/* A plain download link, not the page's one call to action: no glow. */
.cta.download:hover,
.cta.download:focus-visible {
  box-shadow: none;
}
/* A column's requirement, under its name: translucent so it tags the row without shouting. */
:root {
  --info: #2f6fb3;
}
:root[data-theme='dark'] {
  --info: #7db0e8;
}
.pill {
  --tone: var(--info);
  display: table;
  margin: 4px 0 0;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.7;
  text-transform: uppercase;
}
.pill.req {
  --tone: var(--danger);
}
.prose td ul {
  margin: 6px 0 0;
  gap: 2px;
}
/* The example is a hint, not content: keep its column slim. */
.prose td:last-child {
  width: 11em;
  max-width: 11em;
  overflow-wrap: anywhere;
}
/* Segment tabs without script (the page's CSP allows none beyond its own files): radios before the
   table pick which segment's rows show; a third shows those common to all. */
.tabs {
  position: relative;
  margin-top: 12px;
}
.tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tabs > label {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
}
.tabs > input:checked + label {
  border-color: var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
}
.tabs > input:focus-visible + label {
  outline: 2px solid var(--brand);
}
.tabs .table-scroll {
  margin-top: 0;
  border-top-left-radius: 0;
}
#seg-rental:checked ~ .table-scroll :is(.seg-sale, .seg-all),
#seg-sale:checked ~ .table-scroll :is(.seg-rental, .seg-all),
#seg-all:checked ~ .table-scroll :is(.seg-rental, .seg-sale) {
  display: none;
}
.prose .lead + p {
  margin-top: 40px;
}
.prose p + .cta {
  margin-top: 8px;
}
