/* AI & Automation feature page (app/features/public_website/ui/feature_ai_automation_page.html).
   Builds on the shared kit in public-feature-page.css; everything here is scoped to .ai2-page. */
.ai2-page { --ai2-stage-h: 560px; }
/* Hero: an even split gives the briefing card room to be read. */
@media (min-width: 1024px) { .ai2-page .fp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ai2-page .ai2-nowrap { white-space: nowrap; }
.ai2-page .ai2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* How it works: each step tab shows its helper; the stage holds a product card or the reminder motion. */
.ai2-page .fp-step-list .ai2-step-art { flex: none; width: 64px; height: 64px; margin: -4px 0; object-fit: contain; }
.ai2-page .fp-panel.ai2-panel { height: var(--ai2-stage-h); }
.ai2-page .fp-panel.ai2-panel[hidden] { display: none; }
.ai2-page .ai2-panel-shot { display: grid; place-items: center; padding: 32px; background: #F6F4FD; }
.ai2-page .ai2-panel-shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(var(--ai2-stage-h) - 64px); }

/* The approved rent reminder motion (_pilot_reminder_motion.html, static/js/public-pilot-reminder.js).
   Its own stylesheet is scoped to the Pilot Modes page, so the same scene is sized here to fill the stage. */
.ai2-page .pm-reminder-motion { --pmr-deep: var(--brand-purple-deep-1, #3B2A8C); --pmr-lime: var(--brand-lime, #C4F25A); position: relative; display: grid; grid-template: 1fr / 1fr; container-type: inline-size; container-name: ai2-reminder; width: 100%; height: 100%; margin: 0; overflow: hidden; isolation: isolate; background: #131225; color: #fff; font-family: "Open Sans", Arial, sans-serif; }
.ai2-page .pm-reminder-motion .pmr-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 76% 45%; transform: scaleX(-1); }
.ai2-page .pm-reminder-motion::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 25%, #100821b8 100%), linear-gradient(0deg, #100821cd, transparent 84%); }
.ai2-page .pmr-title { position: absolute; inset: 16px auto auto 16px; padding: 6px 12px; background: var(--pmr-deep); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5; }
.ai2-page .pmr-orbit { position: absolute; left: 24%; top: 45%; width: 27%; height: 20%; transform: translate(-50%, -50%) rotate(-15deg); pointer-events: none; }
.ai2-page .pmr-orbit::before { content: ""; position: absolute; inset: 0; border: 1px dashed #fff9; border-radius: 50%; opacity: var(--track, 1); }
.ai2-page .pmr-card { position: absolute; display: flex; align-items: center; justify-content: center; gap: 3px; width: clamp(35px, 8cqi, 58px); aspect-ratio: 1.55; background: #fff; border: 1px solid #c8bcf1; border-radius: 4px; box-shadow: 0 2px 6px #180e3547; transform: translate(-50%, -50%) rotate(15deg); }
.ai2-page .pmr-card svg { width: 42%; height: auto; color: var(--pmr-deep); background: var(--pmr-lime); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.8; }
.ai2-page .pmr-card::after { content: ""; width: 25%; height: 6px; border-block: 2px solid #8978bd; }
.ai2-page .pmr-steps { align-self: end; justify-self: end; width: min(56%, 350px); margin: 0 12px 20px 0; padding: 0; list-style: none; color: #fff; }
.ai2-page .pmr-step { display: grid; grid-template-rows: var(--reveal, 1fr); margin: 0; padding: 0; opacity: var(--opacity, 1); transform: translateX(var(--offset, 0px)); }
.ai2-page .pmr-step > div { min-height: 0; overflow: hidden; }
.ai2-page .pmr-line { display: flex; gap: 8px; align-items: center; padding: 8px 12px; color: #fff; font-size: clamp(16px, 3.1cqi, 23px); font-weight: 700; line-height: 1.25; }
.ai2-page .pmr-step.is-current .pmr-line { background: var(--pmr-deep); border-radius: 4px; }
.ai2-page .pmr-check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--pmr-deep); }
.ai2-page .pmr-check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; }
.ai2-page .pmr-label small { display: block; margin-top: 2px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; }
/* Phones: the trail keeps to the right of the orbit so the two never overlap in the shorter stage. */
@container ai2-reminder (max-width: 410px) {
  .ai2-page .pmr-orbit { left: 22%; }
  .ai2-page .pmr-steps { width: 60%; margin: 0 8px 12px 0; }
  .ai2-page .pmr-line { gap: 6px; padding-inline: 6px; }
  .ai2-page .pmr-check { width: 20px; height: 20px; }
  .ai2-page .pmr-label small { font-size: 13px; }
}

/* Two-column sections: a photo or card beside the copy. */
.ai2-page .ai2-band-sky { background: #F3F8FF; }
.ai2-page .ai2-copy h2 { margin: 0 0 16px; }
.ai2-page .ai2-copy > p:not(.fp-eyebrow):not(.fp-small) { margin: 0 0 24px; }
.ai2-page .ai2-copy .fp-small, .ai2-page .fp-band-dark .fp-small { margin: 24px 0 0; color: var(--fp-grey); }
.ai2-page .ai2-photo { margin: 0 10px 10px 0; }
.ai2-page .ai2-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }

/* Pilot Modes: the shared playground, then the rules that apply in every mode. */
.ai2-page .ai2-pilot .pm-workspace { box-shadow: var(--fp-card); }
.ai2-page .ai2-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.ai2-page .ai2-rules li { padding: 20px; background: #fff; border: 2px solid var(--fp-line); border-top: 4px solid var(--fp-purple); border-radius: 4px; }
.ai2-page .ai2-rules h3 { margin: 0 0 8px; }
.ai2-page .ai2-rules p { margin: 0; }

/* Luna: the tenant conversation that ends with a person. */
.ai2-page .ai2-chat { margin: 0; padding: 24px; background: #fff; border: 2px solid var(--fp-line); border-radius: 4px; box-shadow: var(--fp-card); }
.ai2-page .ai2-chat-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--fp-line); font-size: 16px; line-height: 24px; color: var(--fp-grey); }
.ai2-page .ai2-chat-head img { flex: none; width: 64px; height: 64px; }
.ai2-page .ai2-chat-head b { display: block; font: 600 20px/28px Poppins, "Open Sans", sans-serif; color: var(--fp-navy); }
.ai2-page .ai2-chat-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ai2-page .ai2-chat-list li { max-width: 88%; padding: 10px 14px; border-radius: 4px; font-size: 16px; line-height: 24px; color: var(--fp-navy); }
.ai2-page .ai2-chat-who { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; line-height: 18px; color: #4B3A9E; }
.ai2-page .ai2-chat-list .is-tenant { justify-self: end; background: #F0EBFF; }
.ai2-page .ai2-chat-list .is-luna { display: flex; gap: 10px; align-items: flex-start; justify-self: start; padding-left: 8px; background: #E8F4FF; }
.ai2-page .ai2-chat-list .is-luna img { flex: none; width: 36px; height: 36px; }
.ai2-page .ai2-chat-list .is-you { justify-self: start; background: #EEFAD6; }
.ai2-page .ai2-chat-list .is-you .ai2-chat-who { color: #3A5A12; }

/* Connect your own AI: the purple band and the key permissions card. */
.ai2-page .fp-band-dark .fp-small { color: #E6E1FF; }
.ai2-page .fp-band-dark .ai2-dark-link { margin: 20px 0 0; }
.ai2-page .fp-band-dark .ai2-dark-link a { display: inline-flex; align-items: center; min-height: 44px; color: #D1F48C; text-decoration: underline; text-underline-offset: 4px; }
.ai2-page .fp-band-dark .ai2-dark-link a:is(:hover, :focus-visible) { color: #fff; }
.ai2-page .fp-band-dark .ai2-dark-link a:focus-visible { outline: 3px solid #D1F48C; outline-offset: 2px; }
.ai2-page .ai2-access { padding: 24px; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 18px 40px -16px rgba(8, 4, 30, .55); color: var(--fp-navy); }
.ai2-page .ai2-access-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ai2-page .ai2-access-head img { flex: none; width: 48px; height: 48px; }
.ai2-page .fp-band-dark .ai2-access-head b { font: 600 20px/28px Poppins, "Open Sans", sans-serif; color: var(--fp-navy); }
.ai2-page .ai2-access-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.ai2-page .ai2-access-table :is(th, td) { padding: 12px 8px; border-bottom: 1px solid var(--fp-line); text-align: left; vertical-align: top; }
.ai2-page .ai2-access-table :is(th, td):first-child { padding-left: 0; }
.ai2-page .ai2-access-table thead th { font-size: 13px; font-weight: 700; line-height: 18px; color: var(--fp-grey); }
.ai2-page .ai2-access-table tbody th { font-weight: 600; }
.ai2-page .ai2-access-table td { color: #334155; }
.ai2-page .fp-band-dark .ai2-access :is(.ai2-access-note, .ai2-access-caption) { margin: 16px 0 0; font-size: 14px; line-height: 21px; color: #334155; }
.ai2-page .fp-band-dark .ai2-access .ai2-access-caption { margin-top: 8px; color: var(--fp-grey); }

/* Questions, grouped by tool. */
.ai2-page .ai2-faq-group { margin: 36px 0 4px; }
.ai2-page .ai2-faq-group:first-child { margin-top: 0; }
.ai2-page .fp-questions .ai2-faq-group + details { border-top: 1px solid var(--fp-line); }

@media (max-width: 1023.98px) {
  .ai2-page .ai2-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai2-page .ai2-photo { max-width: 640px; }
}
@media (max-width: 767.98px) {
  .ai2-page { --ai2-stage-h: 400px; }
  .ai2-page :is(.fp-crumbs a, .fp-plan .fp-link) { display: inline-flex; align-items: center; min-height: 44px; }
  .ai2-page .fp-plan .fp-link { justify-self: start; }
  .ai2-page .fp-step-list .ai2-step-art { width: 48px; height: 48px; margin: 0; }
  .ai2-page .ai2-panel-shot { padding: 12px; }
  .ai2-page .ai2-panel-shot img { max-height: calc(var(--ai2-stage-h) - 24px); }
  .ai2-page .ai2-rules { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ai2-page .ai2-rules li { padding: 16px; }
  .ai2-page .ai2-chat, .ai2-page .ai2-access { padding: 16px; }
  .ai2-page .ai2-chat-head img { width: 48px; height: 48px; }
  .ai2-page .ai2-chat-list li { max-width: 100%; }
  .ai2-page .ai2-access-table { font-size: 14px; line-height: 20px; }
  .ai2-page .ai2-access-table :is(th, td) { padding: 10px 6px; }
}
