/* Agent Lead Engine: AI setup for small offices. Light, lavender and purple, Inter with IBM Plex Mono labels. */
:root {
  --ground: #f7f4ff;
  --panel: #ffffff;
  --lav: #f1ebff;
  --lav-2: #e6dcff;
  --purple: #6200ff;
  --purple-dark: #4b00c4;
  --ink: #241d3b;
  --muted: #625a79;
  --line: #e4daf8;
  --ok: #0f6f47;
  --no: #9b2c3a;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 29, 59, 0.07);
  --measure: 64ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.header { background: rgba(247, 244, 255, 0.92); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand img { height: 40px; width: auto; display: block; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--purple); }
.nav-links a.btn { color: #fff; }

/* Type */
.eyebrow { font: 600 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 750; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 58ch; margin-top: 18px; }
.lede-sm { color: var(--muted); max-width: var(--measure); margin-top: 10px; }
.note { font-size: 14px; color: var(--muted); max-width: 58ch; }
.list-gap { margin-top: 18px; }
.more-link { margin-top: 18px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--purple); color: #fff; text-decoration: none; font-weight: 650; font-size: 16px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--purple);
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn:disabled { opacity: 0.65; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); border-color: var(--purple); color: var(--purple); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Sections */
section { padding-block: 72px; }
.band { background: var(--lav); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Hero */
.hero { padding-block: 64px 72px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.hero .note { margin-top: 18px; }
.leave { padding: 26px 26px 22px; }
.card-title { font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; margin-bottom: 14px; }

/* Lists with markers */
.checks, .crosses { list-style: none; display: grid; gap: 10px; }
.checks li, .crosses li { position: relative; padding-left: 30px; }
.checks li::before, .crosses li::before {
  position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font: 700 12px/1 var(--sans);
}
.checks li::before { content: "\2713"; background: #e2f3ea; color: var(--ok); }
.crosses li::before { content: "\2715"; background: #f8e4e7; color: var(--no); }

.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fit h3 { margin-bottom: 12px; }

/* Steps: a real sequence */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(step); font: 600 14px/1 var(--mono); color: var(--purple);
  width: 34px; height: 34px; border-radius: 50%; background: var(--lav-2); display: grid; place-items: center; margin-bottom: 6px;
}
.steps p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 26px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font: 500 22px/1 var(--mono); color: var(--purple); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: var(--measure); }

/* Final CTA */
.final { padding-block: 72px 88px; }
.final-inner { background: var(--ink); color: #fff; border-radius: 20px; padding: 44px clamp(22px, 5vw, 56px); display: grid; gap: 12px; }
.final-inner h2 { color: #fff; }
.final-inner p { color: #d9d2ec; max-width: 58ch; }
.final-inner .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.final-inner .btn-ghost:hover { background: transparent; border-color: #fff; color: #fff; }

/* Plain content pages */
.page { padding-block: 56px 72px; }
.page h1 { font-size: clamp(32px, 4.4vw, 48px); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin-top: 36px; margin-bottom: 10px; letter-spacing: -0.02em; }
.prose h3 { margin-top: 22px; margin-bottom: 6px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 10px; }
.updated { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; margin-top: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }

/* Booking */
.booking { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.booking .note + .note { margin-top: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 28px 36px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--purple); }


/* Agent Care components (2026-10): plans, ownership table, power-ups, guarantee, cost table */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; display: grid; gap: 14px; align-content: start; }
.plan.featured { border: 2px solid var(--purple); box-shadow: var(--shadow); }
.plan-name { font: 600 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-see { font-size: 15px; color: var(--ink); background: var(--lav); border-radius: 10px; padding: 10px 12px; }
.plan .checks { font-size: 15px; }
.plan .btn { margin-top: 6px; }
.plan-foot { margin-top: 22px; display: grid; gap: 6px; }
.own { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.own th, .own td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.own th { font: 600 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--lav); }
.own tr:last-child td { border-bottom: 0; }
.own td:first-child { font-weight: 650; }
.table-scroll { overflow-x: auto; }
.powerups { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.powerup { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.powerup p { color: var(--muted); font-size: 15px; }
.tag { justify-self: start; font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; background: var(--lav-2); color: var(--purple-dark); }
.tag.warn { background: #fdecd9; color: #8a4a06; }
.guarantee { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; background: var(--panel); border: 2px dashed var(--purple); border-radius: var(--radius); padding: 22px 24px; margin-top: 26px; }
.guarantee-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; font: 700 15px/1 var(--mono); }
.guarantee p { color: var(--muted); }
.cost { display: grid; gap: 8px; max-width: 560px; }
.cost-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cost-row span:last-child { font-weight: 650; text-align: right; }
.learn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan-choice { position: relative; cursor: pointer; }
.plan-choice input { position: absolute; top: 20px; right: 20px; width: 20px; height: 20px; accent-color: var(--purple); }
.plan-choice:has(input:checked) { border: 2px solid var(--purple); box-shadow: var(--shadow); }
.plan-choice:focus-within { outline: 3px solid var(--purple); outline-offset: 3px; }
.plan-choice .checks { display: grid; gap: 10px; }
.plan-choice .checks span { padding-left: 30px; position: relative; }
.plan-choice .checks span::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--sans); background: #e2f3ea; color: var(--ok); }
.checkout-box { max-width: 780px; margin-top: 28px; padding: 24px; display: grid; gap: 18px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--purple); flex: none; }
.status { min-height: 1.5em; color: var(--no); font-weight: 600; }
.booking-panel { padding: 24px; display: grid; gap: 16px; }
.booking-panel select { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.library .card { padding: 22px; display: grid; gap: 9px; align-content: start; }
.library .card p { color: var(--muted); }
@media (max-width: 960px) { .library { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .library { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .plans, .learn { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .guarantee { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 960px) {
  .hero-grid, .grid-2, .booking { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.steps-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  section { padding-block: 52px; }
  .hero { padding-block: 40px 52px; }
  .nav { flex-wrap: wrap; }
  .nav-links { gap: 14px; }
  .nav-links .hide-sm { display: none; }
  .fit, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Queva section */
.queva-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.queva-hood { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.queva-hood summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 10px; }
.queva-hood summary::-webkit-details-marker { display: none; }
.queva-hood summary::before { content: "+"; font: 700 18px/1 var(--mono); color: var(--purple); width: 22px; }
.queva-hood[open] summary::before { content: "\2013"; }
.queva-hood-in { padding: 0 20px 20px; display: grid; gap: 12px; max-width: var(--measure); color: var(--muted); }
.queva-hood-in a { color: var(--purple); }

/* Restructure 2026-10-08: Queva sub-pages, results table, sample chats */
.price-line { font-weight: 650; color: var(--ink); margin-top: 18px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.subnav a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.subnav a[aria-current="page"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.link-cards a.powerup { text-decoration: none; color: var(--ink); }
.link-cards a.powerup:hover { border-color: var(--purple); }
.faq-group { font-size: 22px; margin-top: 40px; }
.test-pair { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.test-table { min-width: 0; display: grid; gap: 8px; }
.own.wide { min-width: 720px; }
.caveat { padding: 22px; display: grid; gap: 12px; font-size: 15px; }
.chats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.bubble.me { justify-self: end; background: var(--purple); color: #fff; border-bottom-right-radius: 6px; }
.bubble.q { justify-self: start; background: var(--lav); color: var(--ink); border-bottom-left-radius: 6px; }
@media (max-width: 960px) { .test-pair { grid-template-columns: minmax(0, 1fr); } }

/* Parent company story and QUEVA for Real Estate entry, without changing legacy components. */
.ale-intro h1 { max-width: 15ch; }
.ale-family { padding-left: 28px; border-left: 2px solid var(--lav-2); display: grid; gap: 28px; }
.ale-family span { display: block; color: var(--muted); font-size: 14px; }
.ale-family strong, .ale-family a { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 750; line-height: 1.25; letter-spacing: -.03em; }
.ale-family p { color: var(--muted); margin-top: 6px; }
.ale-family > :last-child { border-left: 4px solid #076b70; padding-left: 24px; margin-left: -30px; }
.ale-family > :last-child a, .real-estate-word { color: #076b70; }
.real-estate-word { font-size: clamp(30px, 5vw, 48px); font-weight: 750; letter-spacing: -.05em; margin-bottom: 18px; }
.ale-demo-links { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 24px; font-weight: 600; }
.ale-demo-section { padding-block: 28px; scroll-margin-top: 20px; }
.ale-demo-title { font-size: 21px; margin-bottom: 16px; }
@media (max-width: 640px) {
  .ale-intro h1 { max-width: none; }
  .nav-links { justify-content: flex-start; }
}
