/* ==========================================================================
   RentalApp.io marketing site — shared styles
   Palette, type, radii and components are pulled directly from the
   in-app brand system (templates/base.html) so the marketing site and
   the product feel like one continuous experience.
   ========================================================================== */

:root {
  --brand-ink: #14163a;
  --brand-ink-deep: #000000;
  --brand-text: #262b3d;
  --brand-muted: #64748b;
  --brand-muted-2: #40465a;
  --brand-bg: #f5f6fb;
  --brand-primary: #5b57c9;
  --brand-primary-2: #815bda;
  --brand-glow: #7cdafe;
  --brand-primary-dark: #42489f;
  --brand-accent-light: #cdbdf7;
  --brand-border: #e3e5f1;
  --white: #ffffff;

  --on-dark-text: #c9cce8;
  --on-dark-muted: #9297d1;

  --radius: .65rem;
  --radius-sm: .45rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 2px rgba(20, 20, 60, .03), 0 6px 18px rgba(20, 20, 60, .05);
  --shadow-lg: 0 20px 44px rgba(30, 27, 75, .22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--brand-text);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

/* ---------- Typography ---------- */

.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin: 0 0 14px 0;
}

.kicker.on-dark { color: var(--brand-accent-light); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-ink); }

h1 { font-size: 46px; line-height: 1.12; }
h2 { font-size: 34px; line-height: 1.18; }
h3 { font-size: 19px; line-height: 1.3; }

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark p { color: var(--white); }

p { margin: 0; color: var(--brand-muted-2); }

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--brand-muted-2);
  max-width: 560px;
}

.on-dark .lede { color: var(--on-dark-text); }

@media (max-width: 720px) {
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 13px 26px;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(91, 87, 201, .25);
}
.btn-primary:hover { background: var(--brand-primary-dark); border-color: var(--brand-primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline:hover { background: var(--brand-primary); color: var(--white); }

.btn-outline.on-dark {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline.on-dark:hover { border-color: var(--brand-accent-light); color: var(--brand-accent-light); background: transparent; }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-pill { border-radius: 999px !important; padding-left: 1.4rem; padding-right: 1.4rem; }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--brand-border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-lockup {
  display: block;
  height: 58px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--brand-muted-2);
}
.nav-links a:not(.btn):hover { color: var(--brand-primary); }
.nav-links a.active { color: var(--brand-ink); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--brand-ink); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }

  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--brand-border);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open .nav-cta .btn-outline { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, #14163a 0%, #42489f 55%, #815bda 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero::before {
  width: 480px; height: 480px;
  background: rgba(91, 87, 201, 0.45);
  top: -220px; right: -120px;
}
.hero::after {
  width: 380px; height: 380px;
  background: rgba(200, 210, 251, 0.16);
  bottom: -220px; left: -140px;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 18px;
}

.hero h1 { font-size: 48px; margin-bottom: 20px; }

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--white);
}
.hero-points li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-accent-light);
  flex-shrink: 0;
}

/* mock product panel used in hero + feature sections */

.mock-panel {
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.mock-panel.dark {
  background: var(--brand-ink-deep);
  border-color: var(--brand-primary-dark);
}

.mock-card-header {
  background: var(--brand-ink);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--white);
  margin-bottom: 16px;
}
.mock-card-header .addr { font-size: 17px; font-weight: 700; }
.mock-card-header .meta { font-size: 12px; color: var(--brand-accent-light); margin-top: 4px; }
.mock-card-header .rent { font-size: 16px; font-weight: 700; color: var(--brand-accent-light); margin-top: 10px; }

.mock-stat-row { display: flex; gap: 10px; margin-bottom: 16px; }
.mock-stat {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
}
.mock-stat .val { font-size: 16px; font-weight: 700; color: var(--brand-primary); }
.mock-stat .lbl { font-size: 10.5px; color: var(--brand-muted); margin-top: 4px; }

.mock-activity {
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--brand-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mock-activity .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-border); flex-shrink: 0; }
.mock-activity .dot.on { background: var(--brand-primary); }

/* ---------- Sections / generic ---------- */

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-offwhite { background: var(--brand-bg); }
.bg-navy { background: var(--brand-ink); }

/* ---------- Feature grid (brochure-matched) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px;
}
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-item { padding: 22px 0; border-bottom: 1px solid var(--brand-border); }
.feature-item h3 { display: flex; align-items: center; gap: 10px; color: var(--brand-ink); margin-bottom: 8px; }
.feature-item .dot-icon {
  width: 9px; height: 9px; border-radius: 2px; background: var(--brand-primary); flex-shrink: 0;
}
.feature-item p { font-size: 14.5px; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 26px;
}
.card.on-dark { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); box-shadow: none; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(91, 87, 201, .3);
}
.card-icon img { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; color: var(--brand-ink); }
.card.on-dark h3 { color: var(--white); }
.card p { font-size: 14.5px; }

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

.stat-card {
  background: var(--brand-ink);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  color: var(--white);
  border-left: 4px solid var(--brand-accent-light);
}
.stat-card .num { font-size: 40px; font-weight: 800; color: var(--brand-accent-light); line-height: 1; margin-bottom: 14px; }
.stat-card p { color: var(--on-dark-text); font-size: 13.5px; line-height: 1.5; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card.featured {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
@media (max-width: 900px) { .price-card.featured { transform: none; } }

.price-card .tier-name { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 12px; }
.price-card.featured .tier-name { color: var(--brand-accent-light); }

.price-card .badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  background: rgba(91,87,201,0.12); color: var(--brand-primary);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
  width: fit-content;
}
.price-card.featured .badge { background: rgba(200,210,251,0.18); color: var(--brand-accent-light); }

.price-card .price { font-size: 42px; font-weight: 800; color: var(--brand-ink); margin-bottom: 4px; }
.price-card.featured .price { color: var(--white); }
.price-card .price span { font-size: 15px; font-weight: 600; color: var(--brand-muted); }
.price-card.featured .price span { color: var(--on-dark-text); }

.price-card .limit { font-size: 14px; color: var(--brand-muted-2); margin-bottom: 4px; }
.price-card.featured .limit { color: var(--on-dark-text); }
.price-card .limit-note { font-size: 12px; color: var(--brand-muted-2); opacity: 0.8; margin-bottom: 20px; line-height: 1.4; }
.price-card.featured .limit-note { color: var(--on-dark-text); opacity: 0.75; }

.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.price-card li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--brand-muted-2); padding: 7px 0;
}
.price-card.featured li { color: #e4e5f8; }
.price-card li::before {
  content: "";
  width: 6px; height: 6px; margin-top: 6px;
  border-radius: 2px; background: var(--brand-primary); flex-shrink: 0;
}
.price-card.featured li::before { background: var(--brand-accent-light); }

/* ---------- Role pills ---------- */

.role-pills { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.role-pill {
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-ink);
}

/* ---------- Split band ---------- */

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .split-band { grid-template-columns: 1fr; } }
.split-band h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--brand-primary); margin-bottom: 10px;
}
.split-band p { font-size: 14.5px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--brand-ink);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%;
}
.cta-band::before { width: 400px; height: 400px; background: rgba(15,61,235,0.5); top: -220px; left: -140px; }
.cta-band::after { width: 320px; height: 320px; background: rgba(91,87,201,0.35); bottom: -200px; right: -100px; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: var(--on-dark-text); margin-bottom: 32px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; color: var(--brand-ink); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid #d7d9ea;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--brand-text);
  background: var(--white);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(91, 87, 201, 0.14);
}
.form-note {
  font-size: 12.5px;
  color: var(--brand-muted);
  margin-top: 14px;
}

.contact-info-card {
  background: var(--brand-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 18px;
}
.contact-info-card h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-primary); margin-bottom: 8px; }
.contact-info-card p { font-size: 14.5px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-ink);
  color: var(--white);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-lockup { height: 68px; }
.footer-brand p { color: var(--on-dark-muted); font-size: 13.5px; max-width: 260px; }

.footer-col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--on-dark-muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--on-dark-text); }
.footer-col a:hover { color: var(--brand-accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--on-dark-muted);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(135deg, #14163a 0%, #42489f 55%, #815bda 100%);
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero .lede { margin: 16px auto 0; text-align: center; }

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ===== Contact form: CAPTCHA + status states (added when the contact
   form was wired to a real backend - see js/contact.js and the main
   app's properties/contact.py) ===== */
.form-field.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.captcha-row img {
  border: 1px solid #d7d9ea;
  border-radius: var(--radius);
  height: 44px;
  background: #fff;
}
.captcha-refresh {
  border: 1px solid #d7d9ea;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  cursor: pointer;
}
.captcha-refresh:hover { background: var(--brand-bg); }
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success {
  background: #e9f9f1;
  color: #1a7a4c;
  border: 1px solid #bfe9d3;
}
.form-status.error {
  background: #fdecec;
  color: #b3261e;
  border: 1px solid #f6c6c3;
}
.form-field-error {
  color: #b3261e;
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}
.form-field-error.visible { display: block; }
.form-field input.field-invalid, .form-field select.field-invalid {
  border-color: #b3261e;
}
button[type="submit"][disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
