/* RentalLeak — public marketing site
   Dark navy / charcoal · construction orange · green for savings.
   No web fonts (system sans, fastest + no layout shift). Mobile-first. */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071426;
  --surface: #12263f;
  --surface-2: #1b324f;
  --border: #2c4a6b;
  --border-soft: #21395640;

  --orange: #ff6a3d;
  --orange-hover: #ff835c;
  --green: #2ecc71;
  --money: #4ade80;
  --warning: #ffb020;

  --text: #ffffff;
  --text-2: #c2d0de;
  --text-muted: #93a8be;

  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  color: var(--orange-hover);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  font-weight: 800;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

strong {
  color: var(--text);
}

.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;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--navy-deep);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(28px, 5vw, 52px);
  text-align: center;
}
.section-head p {
  color: var(--text-2);
  font-size: 1.05rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.7rem;
}

.bg-deep {
  background: var(--navy-deep);
}
.bg-surface {
  background: var(--surface);
}

/* small utilities (kept so the page needs no inline styles -> strict CSP) */
.tac {
  text-align: center;
}
.mt-28 {
  margin-top: 28px;
}
.mt-44 {
  margin-top: 44px;
}
.callout--center {
  max-width: 720px;
  margin: 24px auto 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--orange);
  /* dark text on orange: ~6.6:1, clears WCAG AA where white (~2.8:1) would fail */
  color: var(--navy-deep);
  border-color: var(--orange);
}
.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--navy-deep);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--text-2);
  color: var(--text);
}
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  min-height: auto;
  padding: 10px 14px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-row--center {
  justify-content: center;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 20, 38, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand span b {
  color: var(--orange);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a:not(.btn) {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
  color: var(--text);
}
.nav .btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--border);
    padding: 16px 22px 24px;
    transform: translateY(-140%);
    transition: transform 0.22s ease;
  }
  .nav[data-open="true"] {
    transform: translateY(0);
  }
  .nav a:not(.btn) {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1.05rem;
  }
  .nav .btn {
    margin-top: 10px;
    min-height: 50px;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 92px) 0 clamp(52px, 8vw, 104px);
}
.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -180px;
  top: -220px;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.16), transparent 62%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__copy h1 {
  margin-bottom: 0.4em;
}
.hero__lead {
  font-size: 1.18rem;
  color: var(--text-2);
  max-width: 34ch;
}
.hero__art {
  justify-self: center;
  width: min(420px, 82vw);
  aspect-ratio: 1;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #0d1526;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the master art carries a thin black frame around a rounded tile;
     a small zoom pushes that off-canvas so the CSS radius clips clean art */
  transform: scale(1.07);
}
.hero__note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero__note strong {
  color: var(--money);
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .btn-row {
    justify-content: center;
  }
  .hero__art {
    order: -1;
    width: min(320px, 74vw);
  }
}

/* ---------- generic grids ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  margin-bottom: 0.35em;
}
.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-2);
}

.card--pro {
  border-color: #3a5c86;
}
.pro-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--money);
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 106, 61, 0.14);
  color: var(--orange);
  font-weight: 800;
  font-size: 1.25rem;
}
.step h3 {
  margin: 4px 0 0.3em;
}
.step p {
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- problem list ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  display: grid;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--text-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 77, 79, 0.16);
  border: 1px solid #ff4d4f66;
}
.checklist--good li::before {
  background: rgba(46, 204, 113, 0.16);
  border-color: #2ecc7166;
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan--featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow);
}
.plan__badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--orange);
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 0 6px;
}
.plan__name {
  font-size: 1.3rem;
  margin: 0;
}
.plan__price {
  margin: 4px 0 0;
}
.plan__amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
}
.plan__cycle {
  color: var(--text-muted);
  font-weight: 600;
}
.plan__seats {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}
.plan__tagline {
  margin: 2px 0 14px;
  color: var(--text-2);
  font-size: 0.96rem;
  min-height: 2.8em;
}
.plan__cta {
  width: 100%;
}
.plan__features {
  list-style: none;
  padding: 18px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.plan__features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--text-2);
}
.plan__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}
.plans__foot {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---------- comparison matrix ---------- */
.matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.94rem;
}
.matrix caption {
  text-align: left;
}
.matrix th,
.matrix td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.matrix thead th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.98rem;
  position: sticky;
  top: 0;
}
.matrix thead th span.matrix__price {
  display: block;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.matrix tbody th {
  font-weight: 600;
  color: var(--text-2);
}
.matrix td {
  text-align: center;
  width: 130px;
}
.matrix__note {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 4px;
  max-width: 44ch;
}
.matrix__yes {
  color: var(--green);
  font-weight: 800;
  font-size: 1.05rem;
}
.matrix__no {
  color: var(--text-muted);
}
.matrix__val {
  color: var(--text);
  font-weight: 700;
}
.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
}
.cta-band .inner {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px);
}
.cta-band h2 {
  margin-bottom: 0.3em;
}
.cta-band p {
  max-width: 46ch;
  margin: 0 auto 1.6rem;
  color: var(--text-2);
}
.cta-band .btn-row {
  justify-content: center;
}

/* ---------- legal / prose ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
}
.prose h3 {
  margin-top: 1.6em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin: 0.4em 0;
}
.prose .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-2);
}

/* ---------- contact ---------- */
.contact-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}
.contact-card .email {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 40px;
  font-size: 0.92rem;
}
.site-footer .container {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer h4 {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer a {
  color: var(--text-2);
  display: block;
  padding: 4px 0;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer .foot-brand p {
  color: var(--text-muted);
  max-width: 32ch;
  margin: 10px 0 0;
}
.foot-legal {
  border-top: 1px solid var(--border-soft);
  margin-top: 34px;
  padding-top: 22px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

@media (max-width: 720px) {
  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .foot-brand {
    grid-column: 1 / -1;
  }
}
