/* xRent waitlist — internal unpublished.
   Visual values match /workspace/xrent-config/tokens.css. Do not diverge. */

:root {
  --xrent-page: #FBFBFD;
  --xrent-wash: #F7F3EC;
  --xrent-ink: #1D1D1F;
  --xrent-secondary: #6E6E73;
  --xrent-hairline: rgba(0, 0, 0, 0.08);
  --xrent-cta: #E8A317;
  --xrent-cta-hover: #C98A0F;
  --xrent-on-cta: #1A1814;

  --xrent-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --xrent-hero-size: clamp(3.5rem, 6vw, 4.5rem);
  --xrent-hero-weight: 600;
  --xrent-hero-tracking: -0.03em;
  --xrent-body-size: clamp(1.0625rem, 1.1vw, 1.1875rem);
  --xrent-body-weight: 400;
  --xrent-body-leading: 1.47;

  --xrent-radius-cta: 980px;
  --xrent-radius-field: 12px;
  --xrent-radius-media: 18px;
  --xrent-shadow-focus: 0 1px 2px rgba(0, 0, 0, 0.04);
  --xrent-section-gap: clamp(5rem, 8vw, 7.5rem);
  --xrent-motion: 240ms ease;
  --xrent-nav-blur: 20px;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--xrent-font);
  font-size: var(--xrent-body-size);
  font-weight: var(--xrent-body-weight);
  line-height: var(--xrent-body-leading);
  color: var(--xrent-ink);
  background: var(--xrent-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--xrent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: opacity var(--xrent-motion);
}

a:hover {
  opacity: 0.7;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--xrent-page);
  padding: 8px 12px;
  border-radius: var(--xrent-radius-field);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: blur(var(--xrent-nav-blur));
  -webkit-backdrop-filter: blur(var(--xrent-nav-blur));
  border-bottom: 1px solid var(--xrent-hairline);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  min-height: 64px;
  padding-block: 10px;
}

.logo {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  opacity: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-left: auto;
}

.nav-links a:not(.btn-primary) {
  text-decoration: none;
  color: var(--xrent-ink);
  font-size: 1.0625rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--xrent-cta);
  color: var(--xrent-on-cta);
  border: 0;
  border-radius: var(--xrent-radius-cta);
  padding: 0.8rem 1.45rem;
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--xrent-motion), opacity var(--xrent-motion);
}

.btn-primary:hover {
  background: var(--xrent-cta-hover);
  opacity: 1;
  color: var(--xrent-on-cta);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--xrent-ink);
  outline-offset: 3px;
}

.hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: var(--xrent-section-gap);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: var(--xrent-hero-size);
  font-weight: var(--xrent-hero-weight);
  letter-spacing: var(--xrent-hero-tracking);
  line-height: 1.05;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34em;
  color: var(--xrent-ink);
}

.hero-media {
  margin: 0;
  border-radius: var(--xrent-radius-media);
  overflow: hidden;
  background: var(--xrent-wash);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.band {
  padding-block: var(--xrent-section-gap);
}

.band-wash {
  background: var(--xrent-wash);
}

.band h2,
.form-block h2,
.success h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.band p,
.form-block .sub {
  margin: 0;
  max-width: 38em;
  color: var(--xrent-ink);
}

.muted {
  color: var(--xrent-secondary);
}

.trust p {
  max-width: 42em;
  font-size: var(--xrent-body-size);
}

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

.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem;
  max-width: 40em;
}

.step-n {
  font-weight: 600;
  color: var(--xrent-secondary);
  letter-spacing: -0.02em;
}

.quiet-link {
  display: inline-block;
  margin-top: 1.75rem;
  color: var(--xrent-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--xrent-hairline);
}

.quiet-link:hover {
  color: var(--xrent-ink);
  opacity: 1;
}

.tiles {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--xrent-hairline);
}

.tiles li {
  padding: 1.35rem 1.25rem 1.35rem 0;
  border-bottom: 1px solid var(--xrent-hairline);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tiles li:nth-child(odd) {
  padding-right: 1.5rem;
  border-right: 1px solid var(--xrent-hairline);
}

.tiles li:nth-child(even) {
  padding-left: 1.5rem;
}

.caption {
  margin-top: 1.35rem;
  color: var(--xrent-secondary);
}

.form-block {
  padding-block: var(--xrent-section-gap);
}

.form-block .sub {
  margin-bottom: 2rem;
  color: var(--xrent-secondary);
}

.stack {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

[hidden] {
  display: none !important;
}

label.field,
fieldset.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label,
legend {
  font-size: 1.0625rem;
  color: var(--xrent-ink);
  padding: 0;
}

.hint {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--xrent-secondary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--xrent-ink);
  background: #fff;
  border: 1px solid var(--xrent-hairline);
  border-radius: var(--xrent-radius-field);
  padding: 0.9rem 1rem;
  box-shadow: none;
  appearance: none;
  transition: box-shadow var(--xrent-motion), border-color var(--xrent-motion);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: var(--xrent-shadow-focus);
}

.phone {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  border: 1px solid var(--xrent-hairline);
  border-radius: var(--xrent-radius-field);
  background: #fff;
  overflow: hidden;
}

.phone:focus-within {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: var(--xrent-shadow-focus);
}

.phone .prefix {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  color: var(--xrent-secondary);
  border-right: 1px solid var(--xrent-hairline);
  user-select: none;
}

.phone input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone input:focus {
  box-shadow: none;
}

.choices {
  display: grid;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
}

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

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1.0625rem;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--xrent-cta);
  flex: none;
}

.form-actions {
  margin-top: 0.5rem;
}

.alert {
  display: none;
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: var(--xrent-ink);
}

.alert.is-visible {
  display: block;
}

.alert-error {
  color: #8b1e1e;
}

.success {
  display: none;
  max-width: 38em;
}

.success.is-visible {
  display: block;
  animation: rise 240ms ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.success p {
  margin: 0 0 1rem;
}

.faq-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  max-width: 42em;
}

.faq-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.faq-list p {
  margin: 0;
  color: var(--xrent-ink);
}

.site-footer {
  border-top: 1px solid var(--xrent-hairline);
  padding: 2.5rem 0 3.5rem;
}

.site-footer p {
  margin: 0 0 0.85rem;
  max-width: 44em;
}

.footnotes {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--xrent-secondary);
}

@media (max-width: 800px) {
  .wrap {
    width: min(1080px, calc(100% - 32px));
  }

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

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

  .tiles li,
  .tiles li:nth-child(odd),
  .tiles li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

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

  .nav-links {
    margin-left: 0;
  }
}

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

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