/* ============================================================
   РиелторAI — landing styles
   Mobile-first, responsive, no framework.
   ============================================================ */

:root {
  --blue: #1a56db;
  --blue-dark: #1442ab;
  --blue-light: #e8f0fe;
  --ink: #101828;
  --body: #475467;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-cta: #0f1e3d;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.14);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

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

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

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

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid rgba(26, 86, 219, 0.5);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(26, 86, 219, 0.32);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
}
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--blue); font-size: 20px; }
.logo-text strong { color: var(--blue); }

.main-nav { display: none; align-items: center; gap: 26px; }
.main-nav a { color: var(--body); font-weight: 500; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav .nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
}
.main-nav .nav-cta:hover { background: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(26, 86, 219, 0.12), transparent 60%),
    linear-gradient(180deg, var(--blue-light), #ffffff 70%);
  padding: 56px 0 64px;
}
.hero-inner { max-width: 820px; }
.badge {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.lead {
  font-size: 19px;
  color: var(--body);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.hero-note { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 28px;
  text-align: center;
  letter-spacing: -0.01em;
}
.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- Features ---------- */
.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--blue-light);
  border-radius: 12px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; }
.feature-card p { margin: 0; color: var(--body); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 22px;
}
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: var(--shadow);
}
.step-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { margin: 0; }

/* ---------- Early access / CTA ---------- */
.section-cta {
  background: var(--bg-cta);
  color: #cdd7ee;
}
.section-cta .section-title { color: #fff; text-align: left; }
.section-cta .section-subtitle { color: #aeb9d6; text-align: left; margin-left: 0; }
.early-access-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}
.perks { list-style: none; padding: 0; margin: 0; }
.perks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: #dbe3f5;
}
.perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4ade80;
  font-weight: 700;
}

.lead-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-lg);
}
.lead-form h3 { font-size: 20px; margin-bottom: 18px; }
.lead-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.lead-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input[type="text"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
  margin-bottom: 20px;
}
.checkbox input { margin-top: 3px; flex: 0 0 auto; }
.form-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}
.form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e7f8ee; color: #087443; }
.form-status.is-error { background: #fdecec; color: #b42318; }

/* ---------- Pricing / subscribe ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.subscribe-form { margin: 0 auto; max-width: 640px; }

/* Price calculator */
.calc {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}
.calc-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.calc-field input[type="number"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.calc-field input[type="number"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.calc-price {
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-align: center;
}
.calc-price-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.calc-price-value {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
}
.calc-price-value small { font-size: 16px; font-weight: 500; color: var(--muted); }
.calc-price-note {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.subscribe-checkout {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  margin: 0 auto;
}
.checkout-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.subscribe-checkout input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.subscribe-checkout input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.subscribe-checkout .checkbox { color: var(--body); }
.subscribe-checkout .btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  margin-bottom: 14px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 0;
  font-size: 17px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--blue);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--body); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1220;
  color: #8b97b3;
  padding: 44px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.footer-brand .logo-text { color: #fff; font-size: 20px; font-weight: 700; }
.footer-brand .logo-text strong { color: #6d9bff; }
.footer-brand p { margin: 10px 0 0; max-width: 360px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: #aeb9d6; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
}
.footer-bottom p { margin: 0; font-size: 14px; }

/* ============================================================
   Responsive breakpoints
   ============================================================ */
@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
  .main-nav { display: flex; }
  .hero { padding: 84px 0 92px; }
  .hero h1 { font-size: 50px; }
  .lead { font-size: 21px; }
  .section { padding: 88px 0; }
  .section-title { font-size: 36px; }
  .early-access-inner { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .calc { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 20px; }
}

@media (min-width: 1000px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 56px; }
}

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