/* RentLens holding page. Colours are the brand tokens in brand/tokens/tokens.json. */
@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B2F6B;
  --navy-deep: #071F49;
  --lilac: #C87ECA;
  --pale-lilac: #F3E8F7;
  --white: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.8);
  --text-faint: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.16);
  --field: rgba(255, 255, 255, 0.08);
  --success-surface: #ECFDF5;
  --success-text: #047857;
  --danger-surface: #FEF2F2;
  --danger-text: #B91C1C;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}

.top .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: inline-block;
}

.logo img {
  display: block;
  width: 150px;
  height: auto;
}

main {
  flex: 1;
}

/* Hero */
.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 48px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    padding-top: 40px;
    padding-bottom: 72px;
  }
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34rem;
  margin: 0 0 32px;
  color: var(--text-soft);
  font-size: 1.125rem;
}

/* Sign-up */
.signup {
  max-width: 30rem;
}

.signup-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field input {
  flex: 1 1 14rem;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--white);
  font: inherit;
}

.field input::placeholder {
  color: var(--text-faint);
}

.field button {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--lilac);
  color: var(--navy-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.field button:hover {
  background: var(--pale-lilac);
}

.field button:disabled {
  opacity: 0.7;
  cursor: progress;
}

@media (max-width: 479px) {
  .field button {
    flex: 1 1 100%;
  }
}

/* The honeypot: off screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.small {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.875rem;
}

.note {
  display: none;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 500;
}

.note.show,
.note:target {
  display: block;
}

.note.ok {
  background: var(--success-surface);
  color: var(--success-text);
}

.note.err {
  background: var(--danger-surface);
  color: var(--danger-text);
}

/* Carousel: views of the site. Without JavaScript it is a strip you can swipe or scroll. */
.carousel {
  min-width: 0;
}

.slides {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.carousel.is-live .slides {
  scrollbar-width: none;
}

.carousel.is-live .slides::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--white);
}

.slide figcaption {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.slide figcaption strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

/* A source credit the licence requires, kept quiet. */
.slide .credit {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-controls[hidden] {
  display: none;
}

.ctl {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.ctl:hover {
  background: var(--field);
}

.dots {
  display: flex;
}

/* A 24px target around a small visible dot. */
.dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-faint);
}

.dot[aria-current="true"]::before {
  width: 20px;
  background: var(--lilac);
}

@media (prefers-reduced-motion: no-preference) {
  .slides {
    scroll-behavior: smooth;
  }

  .dot::before {
    transition: width 200ms ease, background-color 200ms ease;
  }
}

/* What RentLens does */
.points {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.points ul {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  list-style: none;
}

@media (min-width: 720px) {
  .points ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

.points h2 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.points p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  color: var(--text-soft);
  font-size: 0.875rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Privacy notice */
.doc {
  max-width: 44rem;
  padding-top: 16px;
  padding-bottom: 64px;
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.doc h2 {
  margin: 32px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.doc p,
.doc li {
  color: var(--text-soft);
}

.doc ul {
  padding-left: 20px;
}

.doc .updated {
  color: var(--text-faint);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: no-preference) {
  .field button {
    transition: background-color 120ms ease;
  }
}
