/* ============================================================
   AUDIENCE LANDING PAGES — property-owners.html, university-student-housing.html
   Built on index.css tokens. Everything is prefixed `au-` so it never
   collides with the homepage's own components.
   ============================================================ */

.au-main { overflow-x: clip; }

.au-section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.au-section + .au-section { border-top: 1px solid var(--border); }

/* ── Hero ──────────────────────────────────────────────────── */
.au-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding-top: clamp(118px, 13vw, 160px);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.au-crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: var(--fs-label); color: var(--text-3); margin-bottom: 1.4rem; }
.au-crumbs a { color: var(--text-2); }
.au-crumbs a:hover { color: var(--orange); }
.au-crumbs li { display: flex; gap: .45rem; align-items: center; }
.au-crumbs li + li::before { content: '/'; color: var(--border-2); }
.au-crumbs [aria-current] { color: var(--text); font-weight: 600; }

.au-hero h1 {
  font-size: var(--fs-display-sm);
  line-height: var(--lh-display);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-display);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.au-lede { font-size: var(--fs-body-lg); color: var(--text-2); line-height: var(--lh-relaxed); max-width: 34rem; margin-bottom: 2rem; }
.au-lede strong { color: var(--text); font-weight: 600; }
.au-ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.au-hero-note { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; font-size: var(--fs-body-sm); color: var(--text-3); }
.au-hero-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .14); flex: none; }

/* ── Product mock (illustrative UI, aria-hidden) ───────────── */
.au-mock { position: relative; padding: 0 0 4.4rem 1.6rem; }
.au-mock-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 1.35rem;
  font-size: .82rem;
}
.au-mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border-2); }
.au-mock-title { font-weight: 800; font-size: 1rem; letter-spacing: -.02em; }
.au-mock-sub { color: var(--text-3); font-size: .74rem; margin-top: .15rem; }
.au-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; background: var(--tint); color: var(--orange); white-space: nowrap; }
.au-pill.ok { background: rgba(22, 163, 74, .1); color: var(--green); }
.au-pill.muted { background: var(--bg-3); color: var(--text-2); }

.au-mock-label { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin: 1.1rem 0 .65rem; }
.au-mock-label b { color: var(--text); letter-spacing: 0; text-transform: none; font-size: .78rem; }

.au-beds { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.au-beds i { aspect-ratio: 1; border-radius: 5px; background: var(--grad-brand); opacity: .9; }
.au-beds i.r { background: transparent; box-shadow: inset 0 0 0 1.5px var(--orange); }
.au-beds i.o { background: var(--bg-3); opacity: 1; }
.au-legend { display: flex; gap: 1rem; margin-top: .6rem; font-size: .7rem; color: var(--text-3); }
.au-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.au-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--grad-brand); }
.au-legend span.r::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--orange); }
.au-legend span.o::before { background: var(--bg-3); }

.au-ledger { display: grid; gap: .1rem; }
.au-ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .9rem; align-items: center; padding: .62rem 0; border-bottom: 1px solid var(--border); }
.au-ledger > div:last-child { border-bottom: 0; }
.au-ledger em { font-style: normal; color: var(--text-3); font-size: .74rem; display: block; }
.au-ledger strong { font-weight: 700; font-variant-numeric: tabular-nums; }

.au-mock-float {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(270px, 78%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: .9rem 1rem;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  font-size: .78rem;
  animation: au-float 6s ease-in-out infinite;
}
.au-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: var(--grad-brand); }
.au-avatar.alt { background: linear-gradient(135deg, #3b3a36, #77736a); }
.au-mock-float b { display: block; font-size: .82rem; }
.au-mock-float span { color: var(--text-3); }
.au-mock-float .au-match { color: var(--orange); font-weight: 800; }
@keyframes au-float { 50% { transform: translateY(-6px); } }

.au-alloc { display: grid; gap: .5rem; }
.au-alloc > div { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .6rem .7rem; border-radius: 12px; background: var(--bg-card-2); border: 1px solid var(--border); }
.au-alloc code { font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; }
.au-pair { display: flex; align-items: center; }
.au-pair .au-avatar { width: 28px; height: 28px; font-size: .62rem; border: 2px solid var(--bg-card); }
.au-pair .au-avatar + .au-avatar { margin-left: -8px; }
.au-pair small { margin-left: .55rem; color: var(--text-3); font-size: .72rem; }
.au-progress { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.au-progress span { display: block; height: 100%; width: 78%; background: var(--grad-brand); border-radius: inherit; }

/* ── Type strip ─────────────────────────────────────────────── */
.au-strip { border-block: 1px solid var(--border); background: var(--band); }
.au-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; padding-block: 1.3rem; font-weight: 700; font-size: clamp(.92rem, 1.4vw, 1.05rem); letter-spacing: -.01em; color: var(--text-2); }
.au-strip li { display: flex; align-items: center; gap: 1.6rem; }
.au-strip li + li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); opacity: .6; }

/* ── Section heads ──────────────────────────────────────────── */
.au-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.au-head h2, .au-sticky h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); font-weight: var(--fw-bold); letter-spacing: var(--ls-heading); text-wrap: balance; }
.au-head p, .au-sticky p { color: var(--text-2); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
.au-head .eyebrow, .au-sticky .eyebrow { margin-bottom: .9rem; }

/* ── Editorial index rows (who it's for) ────────────────────── */
.au-index { border-top: 1px solid var(--border-2); }
.au-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.1rem) 0;
  border-bottom: 1px solid var(--border-2);
  scroll-margin-top: 100px;
  transition: background var(--t);
}
.au-row:hover { background: linear-gradient(90deg, transparent, var(--tint) 50%, transparent); }
.au-row-num { font-size: var(--fs-label); font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; padding-top: .4rem; }
.au-row h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: var(--ls-heading); line-height: var(--lh-heading); }
.au-row-for { font-size: var(--fs-body-sm); color: var(--text-3); margin-top: .5rem; line-height: 1.6; }
.au-row-body p { color: var(--text-2); line-height: 1.75; }
.au-row-body ul { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.au-row-body li { font-size: var(--fs-label); font-weight: 600; padding: .32rem .7rem; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text-2); background: var(--bg-card); }

/* ── Sticky split (features) ────────────────────────────────── */
.au-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.au-sticky { position: sticky; top: 110px; }
.au-sticky .btn { margin-top: 1.8rem; }
.au-features { display: grid; gap: 1rem; counter-reset: feat; }
.au-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.3rem, 2.6vw, 1.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem 1.5rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.au-feature:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.au-feature h3 { font-size: var(--fs-h4); font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); }
.au-feature p { grid-column: 1 / -1; color: var(--text-2); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); }
.au-feature .au-pill { align-self: start; }

/* ── Compare ───────────────────────────────────────────────── */
.au-compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-2); border-radius: 24px; overflow: hidden; background: var(--bg-card); }
.au-compare > div { padding: clamp(1.4rem, 3.5vw, 2.4rem); }
.au-compare > div + div { border-left: 1px solid var(--border-2); background: linear-gradient(160deg, var(--tint), transparent 60%); }
.au-compare h3 { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-label); font-weight: var(--fw-bold); color: var(--text-3); margin-bottom: 1.2rem; }
.au-compare > div + div h3 { color: var(--orange); }
.au-compare li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--border); font-size: var(--fs-body-sm); line-height: var(--lh-body); }
.au-compare li::before { content: '×'; font-weight: 800; color: var(--text-3); line-height: 1.55; }
.au-compare > div + div li::before { content: '✓'; color: var(--orange); }
.au-compare > div:first-child li { color: var(--text-2); }

/* ── Steps ─────────────────────────────────────────────────── */
.au-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; counter-reset: step; }
.au-step { position: relative; padding-top: 2.6rem; }
.au-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: .78rem; font-weight: 800; color: var(--orange);
  background: var(--bg); padding-right: .7rem;
  z-index: 1;
}
.au-step::after { content: ''; position: absolute; top: .55rem; left: 0; right: -1.4rem; height: 1px; background: var(--border-2); }
.au-step:last-child::after { right: 0; }
.au-step h3 { font-size: var(--fs-h4); font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); margin-bottom: .5rem; }
.au-step p { color: var(--text-2); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); }

/* ── FAQ ───────────────────────────────────────────────────── */
.au-faq-wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.au-faq details { border-bottom: 1px solid var(--border-2); }
.au-faq details:first-child { border-top: 1px solid var(--border-2); }
.au-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 1rem; align-items: center; padding: 1.25rem 0; font-weight: 700; font-size: 1.02rem; letter-spacing: -.015em; }
.au-faq summary::-webkit-details-marker { display: none; }
.au-faq summary::after { content: '+'; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-2); font-weight: 500; font-size: 1.1rem; color: var(--text-2); transition: transform var(--t), background var(--t), color var(--t); }
.au-faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: #fff; }
.au-faq summary:hover { color: var(--orange); }
.au-faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
.au-faq .au-answer { padding: 0 2.6rem 1.4rem 0; color: var(--text-2); line-height: 1.78; font-size: .95rem; }
.au-faq .au-answer p + p { margin-top: .7rem; }
.au-faq .au-answer a, .au-prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* ── Reading list ──────────────────────────────────────────── */
.au-reading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.au-reading a { display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; min-height: 150px; padding: 1.3rem; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-card); transition: border-color var(--t), transform var(--t); }
.au-reading a:hover { border-color: var(--orange); transform: translateY(-2px); }
.au-reading small { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.au-reading strong { font-size: 1.02rem; line-height: 1.4; letter-spacing: -.015em; }
.au-reading span { font-size: .82rem; color: var(--orange); font-weight: 700; }

/* ── Closing CTA ───────────────────────────────────────────── */
.au-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(2.2rem, 6vw, 4.5rem);
  background: #16140f;
  color: #f6f4ef;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 2rem;
  align-items: end;
}
[data-theme="dark"] .au-cta { background: #141311; border: 1px solid var(--border-2); }
.au-cta::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 72, 30, .55), transparent 65%); pointer-events: none; }
.au-cta > * { position: relative; }
.au-cta h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
.au-cta p { color: rgba(246, 244, 239, .68); margin-top: 1rem; max-width: 36rem; line-height: 1.7; }
.au-cta-actions { display: flex; flex-direction: column; gap: .7rem; align-items: stretch; }
.au-cta .btn-ghost { color: #f6f4ef; border-color: rgba(246, 244, 239, .28); }
.au-cta .btn-ghost:hover { color: #fff; border-color: var(--yellow); }

/* ── Footer extras ─────────────────────────────────────────── */
.au-main ~ .footer .footer-links { grid-template-columns: repeat(4, 1fr); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .au-hero { grid-template-columns: minmax(0, 1fr); }
  .au-mock { max-width: 520px; }
  .au-head, .au-split, .au-faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .au-sticky { position: static; }
  .au-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .au-step:nth-child(2n)::after { right: 0; }
  .au-reading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-cta { grid-template-columns: minmax(0, 1fr); }
  .au-cta-actions { flex-direction: row; flex-wrap: wrap; }
  .au-main ~ .footer .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .au-row { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .au-row-num { padding-top: 0; }
  .au-compare { grid-template-columns: minmax(0, 1fr); }
  .au-compare > div + div { border-left: 0; border-top: 1px solid var(--border-2); }
  .au-steps, .au-reading { grid-template-columns: minmax(0, 1fr); }
  .au-step::after { right: 0; }
  .au-mock { padding-left: .6rem; }
  .au-faq .au-answer { padding-right: 0; }
  .au-ctas .btn { flex: 1 1 auto; }
  .au-strip ul { justify-content: flex-start; gap: .4rem 1rem; }
  .au-strip li { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .au-mock-float { animation: none; }
  .au-feature:hover, .au-reading a:hover { transform: none; }
}

/* The two audience links make the header row one item longer than elsewhere. */
.navbar .nav-links a { white-space: nowrap; }
.au-steps, .au-steps li { list-style: none; }
.au-step a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.au-mock-float .au-avatar { color: #fff; }
.au-sticky h2 + p { margin-top: 1rem; }
.au-sticky p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.au-feature p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
