/* Real Estate AI Academy — landing page styles */
:root {
  --navy: #0f1d3a;
  --navy-2: #1b2d55;
  --teal: #0e9f8e;
  --teal-dark: #0b8073;
  --teal-light: #6fe0d2;
  --teal-tint: #e6f6f3;
  --amber: #f2a93b;
  --ink: #1c2333;
  --mute: #5b6478;
  --line: #e1e5ec;
  --tint: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(15, 29, 58, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy); }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mute); font-size: 0.95rem; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin: 0 0 0.7rem; }
.eyebrow-amber { color: var(--amber); }
.ph { color: #a4560a; font-weight: 600; }

/* Brand + buttons */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: 0.02em; }
.brand-light { color: var(--white); }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--teal); color: var(--white); display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; letter-spacing: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white); border: 0; border-radius: 10px;
  font: inherit; font-weight: 700; padding: 0.8em 1.4em; text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: wait; }
.btn-sm { font-size: 0.9rem; padding: 0.55em 1.05em; }
.btn-lg { font-size: 1.05rem; padding: 0.95em 1.6em; width: 100%; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; padding: 72px 0 84px; scroll-margin-top: 64px; }
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 60%, rgba(14, 159, 142, 0.45), rgba(14, 159, 142, 0) 45%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--teal-light); }
.hero .lead { font-size: 1.15rem; color: #cbd5e8; margin: 1.1rem 0 1.8rem; max-width: 34em; }
.hero .lead b { color: var(--white); }
.hero-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 560px; }
.hero-art img { width: 100%; max-width: 400px; margin-left: auto; border-radius: 10px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); transform: rotate(3deg); }

/* Form */
.signup { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.field input, .field select {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 0.7em 0.85em; background: var(--white); width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 159, 142, 0.18); }
.field input.invalid { border-color: #d0533c; }
.form-msg { margin: 0; min-height: 0; font-size: 0.92rem; font-weight: 600; color: #c0412b; }
.form-msg:empty { display: none; }
.fineprint { margin: 0; font-size: 0.8rem; color: var(--mute); }
.fineprint a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Strip */
.strip { border-bottom: 1px solid var(--line); background: var(--white); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.strip-grid div { display: flex; align-items: center; gap: 12px; }
.strip-grid b { font-size: 2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.strip-grid span { font-size: 0.92rem; color: var(--mute); line-height: 1.35; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-lead { font-size: 1.1rem; color: var(--mute); max-width: 40em; margin: 0.9rem 0 2.4rem; }
.section-dark .section-lead { color: #cbd5e8; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.card .num { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-tint); border-radius: 999px; padding: 3px 11px; margin-bottom: 14px; }
.card p { color: var(--mute); font-size: 0.97rem; margin: 8px 0 0; }
.card-accent { background: var(--navy); border-color: var(--navy); }
.card-accent h3 { color: var(--white); }
.card-accent p { color: #cbd5e8; }
.card-accent .num { background: var(--amber); color: var(--navy); }

.try-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.prompt-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.prompt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: #cbd5e8; font-size: 0.85rem; font-weight: 600; padding: 12px 18px; }
.copy { font: inherit; font-size: 0.82rem; font-weight: 700; background: var(--teal); color: var(--white); border: 0; border-radius: 8px; padding: 6px 14px; cursor: pointer; }
.copy.done { background: var(--amber); color: var(--navy); }
.prompt-card p { margin: 0; padding: 22px 22px 24px; border-left: 4px solid var(--teal); font-size: 1rem; line-height: 1.65; }

.real { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.real div { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 24px 22px; }
.real b { display: block; font-size: 2.8rem; line-height: 1; font-weight: 800; color: var(--teal-light); margin-bottom: 10px; }
.real h3 { color: var(--white); }
.real p { color: #cbd5e8; font-size: 0.95rem; margin: 8px 0 0; }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.road-item { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 24px; background: rgba(255, 255, 255, 0.03); }
.road-first { border-color: var(--teal); background: rgba(14, 159, 142, 0.14); }
.road-item .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 10px; }
.road-item p { color: #cbd5e8; font-size: 0.97rem; margin: 8px 0 0; }
.founding { margin: 28px 0 0; font-weight: 700; color: var(--amber); }

.about { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: start; max-width: 900px; }
.headshot { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.headshot-initials { display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-dark); font-size: 2.6rem; font-weight: 800; }
.about h2 { margin-bottom: 16px; }
.about p { color: #3c4457; }

.faq-wrap { max-width: 820px; }
.faq-wrap h2 { margin-bottom: 28px; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--teal); }
details[open] summary::after { content: "–"; }
details p { color: var(--mute); margin: 0 0 18px; }

.cta-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; background: var(--tint); border: 1px solid var(--line); border-radius: 20px; padding: 44px; }
.cta .signup { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(15, 29, 58, 0.08); }

/* Footer */
.footer { background: var(--navy); color: #94a0b8; padding: 40px 0; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: #cbd5e8; text-decoration: none; }
.footer nav a:hover { color: var(--white); }
.footer p { margin: 0 0 0 auto; }

/* Thank-you page */
.thanks { padding: 72px 0 96px; }
.thanks-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.thanks h1 { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--navy); }
.thanks .lead { font-size: 1.12rem; color: var(--mute); margin: 1rem 0 1.6rem; }
.thanks .btn-lg { width: auto; }
.thanks-cover { width: 100%; max-width: 340px; margin-left: auto; border-radius: 10px; box-shadow: var(--shadow); transform: rotate(2deg); }
.next { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 28px; }
.next h2 { font-size: 1.4rem; margin-bottom: 12px; }
.next ol { padding-left: 1.2em; margin: 0 0 16px; }
.next li { margin-bottom: 10px; }

/* Simple pages */
.prose { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.prose h1 { font-size: 2.4rem; color: var(--navy); margin-bottom: 8px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; }
body.simple { background: var(--tint); min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.simple-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; max-width: 460px; width: 100%; }
.simple-card h1 { font-size: 1.8rem; color: var(--navy); margin: 24px 0 12px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .try-grid, .cta-grid, .thanks-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { display: none; }
  .cards, .roadmap { grid-template-columns: 1fr 1fr; }
  .real { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .thanks-cover { margin: 0; max-width: 240px; }
  .cta-grid { padding: 28px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 56px; }
  .hero-form { padding: 18px; }
  .field-row, .cards, .roadmap, .real, .strip-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .headshot { width: 110px; height: 110px; }
  .headshot-initials { font-size: 1.8rem; }
  .cta-grid { padding: 20px; border-radius: 16px; }
  .cta .signup { padding: 18px; }
  .footer p { margin: 0; }
  .topbar .btn-sm { display: none; }
}
