/* Roomiemate coming-soon page. Colours and type follow the app's shared theme
   (packages/shared/tailwind-preset.js) so the page and the product look alike. */

:root {
  --ink: #17163a;
  --ink-soft: #403e59;
  --muted: #55536f;
  --paper: #f4f3fb;
  --indigo: #211c6e;
  --indigo-hover: #2d2790;
  --orange: #e4572e;
  --orange-deep: #c8401f;
  --glow: #f59a6c;
  --on-dark: #c5c3dc;

  --hairline: 0 0 0 1px rgb(23 22 58 / 0.07);
  --lift: 0 1.75rem 3.5rem -1.5rem rgb(23 22 58 / 0.38);
  --lift-soft: 0 1.25rem 2.5rem -1.75rem rgb(23 22 58 / 0.4);

  --gutter: clamp(0.5rem, 1.5vw, 1.5rem);
  --frame: clamp(1.75rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  padding: var(--gutter);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ---------- Hero: framed photo with an S-curve bottom edge ---------- */

.sky {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 2 * var(--gutter));
  /* The wave covers the bottom, so only the top corners are rounded. Rounded
     bottom corners would leave a faint arc showing beside the wave. */
  border-radius: var(--frame) var(--frame) 0 0;
  overflow: hidden;
  color: #fff;
  background: #6f6c86;
}

.sky__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

/* Tints the grey sky towards the brand indigo and keeps white text readable. */
.sky::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgb(33 28 110 / 0.62) 0%,
    rgb(33 28 110 / 0.42) 38%,
    rgb(23 22 58 / 0.3) 62%,
    rgb(23 22 58 / 0.55) 100%
  );
}

.sky__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(2.5rem, 6.5vw, 6rem);
  fill: var(--paper);
  pointer-events: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.875rem, 2.2vw, 1.5rem) clamp(1rem, 3.2vw, 2.25rem);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.top__links {
  display: flex;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.25s, transform 0.4s var(--ease);
}

.pill:hover {
  background: rgb(255 255 255 / 0.22);
  transform: translateY(-1px);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25rem clamp(1rem, 4vw, 2rem) clamp(3.5rem, 6vw, 5.5rem);
  text-align: center;
  text-shadow: 0 2px 28px rgb(23 22 58 / 0.4);
}

.intro {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-align: left;
}

.mark {
  flex: none;
  width: clamp(3.25rem, 6vw, 4.5rem);
  height: auto;
  filter: drop-shadow(0 4px 18px rgb(23 22 58 / 0.35));
}

.intro p {
  margin: 0;
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.35;
}

.headline {
  margin: clamp(0.5rem, 1.5vh, 1rem) 0 0;
  font-size: clamp(3.25rem, min(13.5vw, 14vh), 9rem);
  font-weight: 100;
  line-height: 0.9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.headline span { display: block; }

.headline .soon {
  font-weight: 400;
  letter-spacing: 0.07em;
}

.lede {
  max-width: 34rem;
  margin: clamp(0.875rem, 2vh, 1.25rem) auto 0;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 400;
}

/* ---------- Sign-up: frosted glass, dark text ---------- */

.signup {
  width: min(100%, 47rem);
  margin-top: clamp(1rem, 3vh, 2rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 2rem;
  border: 1px solid rgb(255 255 255 / 0.7);
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: var(--lift);
  color: var(--ink);
  text-align: left;
  text-shadow: none;
}

.signup h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.signup__lead {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.fields {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.125rem;
}

@media (min-width: 46rem) {
  .fields {
    grid-template-columns: 1.1fr 1fr auto;
    align-items: start;
    gap: 0.625rem;
  }

  /* Lines the button up with the inputs, under their labels. */
  .fields .btn { margin-top: 1.55rem; }
}

.field label {
  display: block;
  margin: 0 0 0.3rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: var(--ink-soft);
}

.input {
  width: 100%;
  height: 3.25rem;
  padding: 0 1.125rem;
  border: 1px solid rgb(23 22 58 / 0.14);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder,
.phone input::placeholder { color: #8f8daa; }

.input:focus,
.phone:focus-within {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgb(33 28 110 / 0.14);
}

.phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.phone span {
  flex: none;
  font-weight: 400;
  color: var(--muted);
}

.phone input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

.phone input:focus { outline: none; }

.field.is-invalid .input { border-color: var(--orange-deep); }

.field__error {
  margin: 0.3rem 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #b23516;
}

.field__error:empty { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--indigo);
  box-shadow: 0 0.875rem 1.75rem -0.875rem rgb(33 28 110 / 0.7);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.4s var(--ease);
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.4s var(--ease);
}

.btn:hover { background: var(--indigo-hover); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn[aria-busy='true'] {
  cursor: progress;
  opacity: 0.8;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine {
  margin: 0.75rem 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.form-status {
  margin: 0.5rem 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #b23516;
}

.form-status:empty { display: none; }

.form-status a,
.done a {
  color: var(--indigo);
  font-weight: 500;
}

.done {
  padding: 0.25rem 0;
  text-align: center;
}

.done__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.875rem;
  border-radius: 50% 50% 50% 18%;
  background: var(--indigo);
  color: #fff;
}

.done__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.done h2:focus { outline: none; }

.done p {
  max-width: 30rem;
  margin: 0.375rem auto 0;
  color: var(--ink-soft);
}

.link-btn {
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0 0.75rem;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.connect {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: clamp(0.75rem, 2vh, 1.25rem);
  font-size: 0.9375rem;
  font-weight: 400;
}

.connect span { margin-right: 0.375rem; }

.connect a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.25s, transform 0.4s var(--ease);
}

.connect a:hover {
  background: rgb(255 255 255 / 0.16);
  transform: translateY(-2px);
}

.connect svg {
  width: 1.25rem;
  height: 1.25rem;
  filter: drop-shadow(0 2px 10px rgb(23 22 58 / 0.4));
}

/* ---------- What's coming ---------- */

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.eyebrow--light { color: var(--glow); }

.about h2,
.ela h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.about {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 60rem) {
  .about {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
}

.about__intro > p {
  max-width: 32rem;
  margin: 1.125rem 0 0;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--hairline), var(--lift-soft);
  font-size: 0.875rem;
  font-weight: 400;
  animation: drift 6s ease-in-out infinite;
}

.chips li:nth-child(2) { animation-delay: -2s; }
.chips li:nth-child(3) { animation-delay: -4s; }

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding: 1.5rem 1.625rem;
  border-radius: 2.25rem 2.25rem 2.25rem 0.75rem;
  background: #fff;
  box-shadow: var(--hairline), var(--lift-soft);
}

/* Staggers the cards so they read as a flowing line rather than a stack. */
@media (min-width: 60rem) {
  .step:nth-child(2) { margin: 0 3rem 0 -1rem; }
  .step:nth-child(odd) { margin-left: 2rem; }
}

.step h3 {
  margin: 0.125rem 0 0;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
}

.step p {
  margin: 0.375rem 0 0;
  font-size: 0.96875rem;
  color: var(--ink-soft);
}

.drop {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50% 50% 50% 18%;
  background: linear-gradient(140deg, #3a33a8, var(--indigo));
  color: #fff;
}

.drop svg {
  width: 1.375rem;
  height: 1.375rem;
}

.drop--warm {
  background: rgb(245 154 108 / 0.16);
  color: var(--glow);
}

.landlords {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.125rem 1.5rem;
  border-radius: 1.75rem;
  background: rgb(33 28 110 / 0.06);
  text-align: center;
  color: var(--ink-soft);
}

.landlords a {
  margin-left: 0.25rem;
  font-weight: 500;
  color: var(--indigo);
  text-underline-offset: 3px;
}

/* ---------- Ela Tech ---------- */

.ela {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 5rem) 0;
  border-radius: var(--frame);
  color: #fff;
  background:
    radial-gradient(55rem 28rem at 100% 0%, rgb(245 154 108 / 0.22), transparent 60%),
    radial-gradient(45rem 30rem at 0% 100%, rgb(112 105 255 / 0.28), transparent 60%),
    var(--ink);
}

.ela__head { max-width: 48rem; }

.ela__head > p:last-child {
  margin: 1.125rem 0 0;
  font-size: 1.0625rem;
  color: var(--on-dark);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 0.875rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 1.625rem;
  border-radius: 1.75rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  transition: background 0.3s;
}

.service:hover { background: rgb(255 255 255 / 0.09); }

.service h3 {
  margin: 1.125rem 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.service p {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: var(--on-dark);
}

.service--cta {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background:
    radial-gradient(16rem 12rem at 100% 0%, rgb(245 154 108 / 0.38), transparent 70%),
    #fff;
  color: var(--ink);
}

.service--cta:hover {
  background:
    radial-gradient(16rem 12rem at 100% 0%, rgb(245 154 108 / 0.5), transparent 70%),
    #fff;
}

.service--cta h3 {
  margin-top: 0;
  font-size: 1.375rem;
}

.service--cta p { color: var(--ink-soft); }

.service--cta .btn {
  align-self: flex-start;
  margin-top: auto;
}

.service--cta p + .btn { margin-top: 1.25rem; }

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.18);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.25s;
}

.contacts a:hover { background: rgb(255 255 255 / 0.08); }

.contacts svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--glow);
}

.foot {
  padding: 1.5rem 1rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.foot a { text-underline-offset: 3px; }

/* ---------- Small screens ---------- */

@media (max-width: 30rem) {
  .pill--wide { display: none; }
  .wide-only { display: none; }
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.1rem, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -0.4em, 0); }
}

.js .rise { animation: rise 1.1s var(--ease) var(--d, 0s) both; }

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
