/* www.housing-iq.com: the HOUSING-iQ design system (the same one the app uses: blue bar, underlined links, Atkinson
   Hyperlegible Next, square-edged controls, strong focus), with a few marketing touches. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/atkinson-next-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #004aad;
  --blue-press: #003a88;
  --blue-edge: #00306f;
  --soft: #e2eaff;
  --soft-2: #f1f5ff;
  --ink: #0b1220;
  --text: #0b1220;
  --text-2: #39424f;
  --muted: #4c5666;
  --rule: #b4bcc9;
  --line: #dde2ea;
  --shade: #f2f4f7;
  --focus: #ffb81c;
  --white: #ffffff;
  --green-bg: #d5efdd;
  --green-fg: #0b4f2e;
  --yellow-bg: #fff0ba;
  --yellow-fg: #553d00;
  --red: #b3261e;
  --page: 1440px;
  --read: 720px;
  --gutter: 40px;
  --radius: 4px;
  --font: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.35rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue-press);
  text-decoration-thickness: 3px;
}

/* Keyboard focus that cannot be missed: an amber band with a dark edge, the same as the app. */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--ink);
}

a:focus-visible {
  background: var(--focus);
  color: var(--ink);
  box-shadow: 0 -2px var(--focus), 0 4px var(--ink);
  outline: none;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 16px;
  background: var(--focus);
  color: var(--ink);
  font-weight: 700;
  z-index: 100;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.small {
  font-size: 1rem;
  color: var(--muted);
}

.caption {
  color: var(--text-2);
  font-size: 1.25rem;
  margin: 0 0 0.4em;
}

.lead {
  font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
}

.lead--narrow {
  max-width: var(--read);
}

/* ---------------------------------------------------------------------------------------------- header + nav */

.bar {
  background: var(--blue);
  border-bottom: 5px solid var(--blue-edge);
  color: var(--white);
}

.bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
  margin-right: auto;
}

.brand:hover {
  color: var(--white);
}

.brand img {
  height: 34px;
  width: auto;
}

.brand__name {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.3;
}

.bar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bar__link {
  color: var(--white);
  font-weight: 700;
  font-size: 1.0625rem;
}

.bar__link:hover {
  color: var(--white);
}

.nav {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

/* One row that slides sideways when the links do not fit (phones), never a second row. */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  column-gap: 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav ul::-webkit-scrollbar {
  display: none;
}

.nav li {
  flex: none;
  scroll-snap-align: start;
}

.nav a {
  display: inline-block;
  padding: 14px 0 10px;
  border-bottom: 4px solid transparent;
  font-size: 1.125rem;
  white-space: nowrap;
}

.nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom-color: var(--blue);
}

/* ------------------------------------------------------------------------------------------------- buttons */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 28px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 22px 8px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.btn svg {
  width: 22px;
  height: 22px;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-bottom-color: var(--blue-edge);
}

.btn--primary:hover {
  background: var(--blue-press);
  color: var(--white);
}

.btn--secondary {
  background: var(--soft);
  color: var(--blue);
  border-bottom-color: var(--rule);
}

.btn--secondary:hover {
  background: #d3dffb;
  color: var(--blue-press);
}

.btn--white {
  background: var(--white);
  color: var(--blue);
  border-bottom-color: #c9d6f5;
}

.btn--white:hover {
  background: var(--soft);
  color: var(--blue-press);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  box-shadow: 0 0 0 6px var(--ink);
  background: var(--focus);
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ------------------------------------------------------------------------------------------------- sections */

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 48px 0 64px;
}

.section--soft {
  background: var(--soft-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band--rule {
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split--media {
  align-items: center;
}

.split--wide-media {
  grid-template-columns: 5fr 7fr;
  align-items: center;
  margin-bottom: 56px;
}

.split > div > :last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------------------------------------------------- hero */

.hero {
  padding: 64px 0 72px;
  background: var(--soft-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.3rem);
  margin-bottom: 0.4em;
}

.hero__note {
  margin: 24px 0 0;
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 34em;
}

.hero__visual {
  position: relative;
  padding-bottom: 48px;
}

.hero__visual .browser {
  margin: 0;
}

.hero__phone {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 31%;
  min-width: 150px;
}

/* --------------------------------------------------------------------------------------------- device frames */

.browser {
  margin: 32px 0 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 18px 40px -18px rgba(11, 18, 32, 0.28);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  background: var(--shade);
  border-bottom: 1px solid var(--line);
}

.browser__dots {
  display: flex;
  gap: 6px;
}

.browser__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c3cad5;
}

.browser__url {
  flex: 1;
  max-width: 420px;
  height: 24px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 22px;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone {
  margin: 0;
  border: 9px solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 22px 44px -20px rgba(11, 18, 32, 0.45);
}

.phone img {
  border-radius: 29px;
}

.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 560px;
  margin-left: auto;
}

.phones--one {
  grid-template-columns: minmax(0, 280px);
  justify-content: end;
}

.phones--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.shot-note {
  margin: 14px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------------------------------------ who strip */

.who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.who__label {
  margin: 0;
  font-weight: 700;
}

.who__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

.who__list li {
  padding: 0 18px;
  border-left: 2px solid var(--rule);
  color: var(--text-2);
}

.who__list li:first-child {
  border-left: 0;
  padding-left: 0;
}

/* --------------------------------------------------------------------------------------------- summary list */

.summary {
  margin: 0 0 18px;
  border-top: 1px solid var(--rule);
}

.summary > div {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.summary dt {
  font-weight: 700;
}

.summary dd {
  margin: 0;
}

/* ---------------------------------------------------------------------------------------------------- ticks */

.ticks {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}

.ticks li {
  position: relative;
  padding: 0 0 0 36px;
  margin: 0 0 12px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ---------------------------------------------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: 20px;
  margin: 40px 0 28px;
}

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

.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px 22px 18px;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 1.0625rem;
}

/* ------------------------------------------------------------------------------------------------ page head */

.page-head {
  padding: 48px 0 8px;
}

.crumbs {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 1rem;
}

.crumbs li + li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 12px 2px 10px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}

.crumbs a {
  color: var(--ink);
}

.page-head .lead {
  max-width: 46em;
}

/* ------------------------------------------------------------------------------------------------ catalogue */

.catalogue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
}

.catalogue h2 {
  font-size: 1.6rem;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--blue);
}

.catalogue dl {
  margin: 0;
}

.catalogue dl > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.catalogue dt {
  font-weight: 700;
}

.catalogue dd {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 1.0625rem;
}

/* ------------------------------------------------------------------------------------------------ CTA panel */

.cta {
  padding: 0 0 80px;
}

.cta__panel {
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
  padding: 56px 56px 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta__panel h2 {
  margin: 0 0 10px;
}

.cta__panel p {
  margin: 0;
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 34em;
}

.cta__mark {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 340px;
  opacity: 0.12;
  pointer-events: none;
}

.cta .btn-row {
  margin: 0;
  position: relative;
}

/* --------------------------------------------------------------------------------------------------- footer */

.foot {
  background: var(--shade);
  border-top: 4px solid var(--blue);
  padding: 40px 0 28px;
  font-size: 1.0625rem;
}

.foot__cols {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.foot__brand img {
  height: 24px;
  width: auto;
}

.foot h2 {
  font-size: 1.0625rem;
  margin: 0 0 10px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot li {
  margin: 0 0 8px;
}

.foot a {
  color: var(--ink);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  color: var(--text-2);
}

.foot__product {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.foot__product a {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

/* ------------------------------------------------------------------------------------------- small screens */

@media (max-width: 1024px) {
  .hero__grid,
  .split,
  .split--wide-media {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    max-width: 760px;
  }

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

  .phones {
    margin: 0;
  }

  .cta__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 1.0625rem;
  }

  .caption {
    font-size: 1.125rem;
  }

  .bar__inner {
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand img {
    height: 28px;
  }

  .brand__name {
    font-size: 1.25rem;
  }

  .brand__sub {
    font-size: 0.9375rem;
  }

  .bar__actions .bar__link--wide {
    display: none;
  }

  .nav ul {
    column-gap: 20px;
    /* A soft edge on the right says there is more to slide to. */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    padding-right: 24px;
  }

  .nav a {
    padding: 10px 0 6px;
    font-size: 1.0625rem;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero__phone {
    width: 38%;
    right: -4px;
  }

  .cards--2,
  .cards--3,
  .catalogue {
    grid-template-columns: 1fr;
  }

  .phones--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .phone {
    border-width: 5px;
    border-radius: 22px;
  }

  .phone img {
    border-radius: 17px;
  }

  .summary > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta__panel {
    padding: 36px 24px;
  }

  .foot__cols {
    grid-template-columns: 1fr;
  }

  .browser__bar {
    height: 30px;
  }

  .browser__url {
    height: 20px;
    line-height: 18px;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  .rise.is-in {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .bar,
  .nav,
  .cta,
  .foot {
    display: none;
  }
}

/* Read by screen readers, not shown: keeps each page's headings in order (h1, h2, h3). */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------------------------------ footer, guides, steps */

.foot__two {
  columns: 2;
  column-gap: 24px;
}

.foot__two li {
  break-inside: avoid;
}

.guides {
  border-bottom: 1px solid var(--line);
  background: var(--soft-2);
  padding: 22px 0 18px;
}

.guides h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--text-2);
}

.guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guides a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue);
  font-weight: 600;
}

.guides a:hover {
  border-color: var(--blue);
}

.steps {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 0 52px;
  margin: 0 0 18px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ------------------------------------------------------------------------------------------------- status page */

.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--muted);
  border-radius: var(--radius);
  background: var(--shade);
  margin: 0 0 32px;
  font-size: 1.25rem;
}

.status-banner[data-overall='ok'] {
  border-left-color: #1d7a46;
  background: var(--green-bg);
}

.status-banner[data-overall='degraded'] {
  border-left-color: #a06b00;
  background: var(--yellow-bg);
}

.status-banner[data-overall='down'] {
  border-left-color: var(--red);
  background: #fde7e5;
}

.status-banner__time {
  display: block;
  font-size: 1rem;
  color: var(--text-2);
}

.status-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot[data-state='operational'] {
  background: #1d7a46;
}

.status-dot[data-state='degraded'] {
  background: #c58500;
}

.status-dot[data-state='down'] {
  background: var(--red);
}

.status-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.status-list__name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
}

.status-list__name small {
  display: block;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-2);
}

.status-list__state {
  font-weight: 600;
  text-align: right;
}

.status-note {
  color: var(--text-2);
  max-width: var(--read);
}
