/* Styles for the expanded public homepage. */
.expanded-home { --header-height: 77px; --header-space: calc(var(--header-height) + 15px); }
.expanded-home [id] { scroll-margin-top: var(--header-space); }
.expanded-home :focus-visible { outline: 3px solid #2977d8; outline-offset: 4px; }
.expanded-home .nav { gap: 16px; }
.expanded-home .nav-actions .pricing-link { display: inline-flex; min-height: 44px; padding: 10px 17px; white-space: nowrap; color: #344054; background: #fff; border: 1px solid #dce5ee; }
.expanded-home .nav-actions .pricing-link:hover { color: #1d5caa; background: #f5f9ff; border-color: #b8d3f2; }
.expanded-home .nav-actions .customer-login { display: inline-flex; white-space: nowrap; min-height: 44px; padding: 10px 17px; color: #1d5caa; background: #edf5ff; border: 1px solid #cfe2fa; }
.expanded-home .nav-actions .signup-start { display: inline-flex; min-height: 44px; white-space: nowrap; }
.expanded-home .feature-tile { text-decoration: none; }
.expanded-home .feature-tile:focus-visible { border-radius: 18px; }
.product-chapter { padding: 90px 0; position: relative; }
.chapter-inner { width: min(var(--max), calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 64px; }
.chapter-inner > * { min-width: 0; }
.chapter-copy h2 { margin: 16px 0 22px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.2; letter-spacing: -.9px; }
.chapter-copy h2 span { color: var(--chapter-color, var(--blue)); }
.chapter-copy > p { color: var(--text); font-size: 17px; line-height: 1.9; margin: 0 0 24px; }
.chapter-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 17px; }
.chapter-points li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--text); font-size: 14px; line-height: 1.7; }
.chapter-points li::before { content: '✓'; width: 24px; height: 24px; display: grid; place-items: center; color: var(--chapter-color, var(--blue)); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 800; }
.chapter-points strong { display: block; color: var(--ink); font-size: 15px; }
.chapter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.chapter-actions .text-link { font-size: 14px; }
.chapter-campaign { --chapter-color: #de7d20; background: #fffaf3; }
.chapter-education { --chapter-color: #2872cb; background: #fff; }
.chapter-lending { --chapter-color: #188967; background: #f2faf7; }
.chapter-portal { --chapter-color: #258fa5; background: #fff; }
.chapter-seats { --chapter-color: #7370c3; background: #f7f7fd; }
.chapter-education .chapter-visual, .chapter-portal .chapter-visual { order: -1; }
.chapter-visual { position: relative; border: 1px solid #dfe7ee; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px #1520330d; overflow: hidden; }
.demo-bar { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #edf1f5; color: var(--ink); font-size: 13px; font-weight: 700; }
.demo-caption { flex-shrink: 0; color: #697a8a; font-size: 11px; font-weight: 400; }
.demo-content { padding: 25px; }
.campaign-cover { padding: 26px; color: #fff; background: linear-gradient(125deg, #183e43, #237763); position: relative; overflow: hidden; }
.campaign-cover::after { content: ''; position: absolute; width: 170px; height: 170px; border: 25px solid #ffffff0e; border-radius: 50%; left: -40px; top: -55px; }
.campaign-cover small { color: #cde8df; }
.campaign-cover h3 { font-size: 28px; margin: 12px 0 6px; }
.campaign-cover p { margin: 0; font-size: 13px; color: #d9eae4; }
.demo-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.demo-total strong { font-size: 34px; letter-spacing: -1px; }
.demo-total span { color: var(--muted); font-size: 13px; }
.demo-progress { height: 9px; background: #eef2f6; border-radius: 20px; overflow: hidden; margin: 14px 0 10px; }
.demo-progress > span { display: block; height: 100%; width: var(--progress); background: linear-gradient(90deg, #35b98d, #7cd9b5); border-radius: inherit; }
.demo-progress-label { display: flex; justify-content: space-between; color: var(--text); font-size: 12px; }
.demo-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.demo-stat { padding: 14px 8px; background: #f7fafc; border-radius: 12px; text-align: center; }
.demo-stat strong { display: block; font-size: 19px; color: var(--ink); }
.demo-stat span { color: var(--text); font-size: 11px; }
.demo-list { display: grid; gap: 0; margin-top: 18px; }
.demo-record { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf1f5; font-size: 13px; }
.demo-record:last-child { border-bottom: 0; }
.demo-record > div { min-width: 0; }
.demo-record small { display: block; color: var(--text); font-size: 11px; margin-top: 3px; }
.demo-record b { white-space: nowrap; font-size: 13px; }
.demo-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 20px; background: #eaf7f1; color: #157654; font-size: 11px; white-space: nowrap; }
.demo-pill.blue { background: #edf4ff; color: #2561aa; }
.demo-pill.orange { background: #fff3df; color: #946018; }
.demo-person { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.demo-avatar { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: #eaf2ff; color: #3675bf; font-size: 17px; font-weight: 700; }
.demo-person h3 { font-size: 18px; margin: 0; }
.demo-person p { font-size: 12px; color: var(--text); margin: 4px 0 0; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 12px; }
.demo-tabs span { padding: 6px 11px; border-radius: 8px; }
.demo-tabs .selected { background: #eaf2ff; color: #2764ad; font-weight: 700; }
.demo-note { display: flex; gap: 9px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #f0f8f5; color: #32745f; font-size: 12px; line-height: 1.7; margin-top: 17px; }
.loan-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 22px 0; }
.loan-steps span { padding: 10px 3px; border-bottom: 3px solid #dceee7; color: #608271; text-align: center; font-size: 11px; }
.loan-steps span.done { border-color: #37af87; color: #157653; font-weight: 700; }
.portal-demo { max-width: 400px; margin-inline: auto; border-radius: 28px; }
.portal-welcome { padding: 24px; background: linear-gradient(135deg, #edf9fb, #f6fbff); border-bottom: 1px solid #e3f1f4; }
.portal-welcome small { color: #488394; }
.portal-welcome h3 { font-size: 23px; margin: 8px 0; }
.portal-welcome p { margin: 0; color: var(--text); font-size: 13px; }
.demo-document { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.demo-document svg { width: 28px; height: 28px; fill: none; stroke: #258fa5; stroke-width: 1.5; }
.demo-document small { display: block; color: var(--muted); margin-top: 4px; }
.demo-download { font-size: 11px; color: #268294; white-space: nowrap; }
.seat-stage { border-radius: 8px; background: #efedf8; color: #777299; padding: 9px; text-align: center; font-size: 12px; margin-bottom: 22px; }
.seat-map { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; direction: ltr; max-width: 330px; margin: auto; }
.seat-map span { aspect-ratio: 1; border-radius: 7px 7px 4px 4px; border: 1px solid #cecce2; background: #f5f4fa; }
.seat-map .taken { background: #d4d2e1; border-color: #d4d2e1; }
.seat-map .chosen { background: #7770c5; border-color: #655cb6; }
.seat-map .aisle { visibility: hidden; }
.seat-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; color: #74728d; font-size: 11px; margin-top: 20px; }
.seat-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: #eeedf5; border: 1px solid #cecce2; margin-inline-end: 5px; }
.seat-legend .taken::before { background: #d4d2e1; }
.seat-legend .chosen::before { background: #7770c5; }
.expanded-home .plans-teaser { padding: 80px 0; background: #f4f8fc; }
.plans-inner { width: min(var(--max), calc(100% - 48px)); margin: auto; text-align: center; }
.plans-inner h2 { font-size: clamp(28px, 4vw, 42px); margin: 15px 0; }
.plans-inner > p { color: var(--text); line-height: 1.8; max-width: 650px; margin: 0 auto 30px; }
.plan-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: right; margin: 28px 0; }
.plan-step { padding: 24px; border: 1px solid #e0e9f3; border-radius: 18px; background: #fff; }
.plan-step > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #edf4ff; color: #3675bf; font-weight: 800; }
.plan-step h3 { font-size: 18px; margin: 16px 0 10px; }
.plan-step p { color: var(--text); font-size: 14px; line-height: 1.8; margin: 0; }
.plans-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; }
.expanded-home .legal-links { flex-wrap: wrap; }
.expanded-home .homepage-video-card { text-decoration: none; isolation: isolate; }
.expanded-home .homepage-video-card::before { z-index: 1; }
.homepage-video-preview { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.homepage-video-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: .24; }
.homepage-video-copy { position: relative; z-index: 1; }
.homepage-video-dialog { --video-inset: 24px; width: min(380px, calc(100vw - 2 * var(--video-inset) - env(safe-area-inset-left) - env(safe-area-inset-right))); max-height: calc(100vh - 2 * var(--video-inset)); max-height: calc(100dvh - 2 * var(--video-inset) - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: auto; padding: 0; border: 1px solid #e2e8f0; border-radius: 20px; background: #fff; color: #0f172a; box-shadow: 0 25px 50px -12px #0005; overflow: hidden; }
.homepage-video-dialog[open] { display: flex; flex-direction: column; }
.homepage-video-focus-guard { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.homepage-video-dialog::backdrop { background: rgba(15,23,42,.4); backdrop-filter: blur(8px); }
.homepage-video-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 12px 16px; background: linear-gradient(135deg, rgba(37,99,235,.13), rgba(20,184,166,.09)), #fff; }
.homepage-video-head::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg,#2563eb,#14b8a6,#f59e0b); }
.homepage-video-head h2 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 900; min-width: 0; }
.homepage-video-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #334155; font: inherit; font-size: 24px; cursor: pointer; }
.homepage-video-close:hover { background: #eff6ff; color: #2563eb; }
.homepage-video-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #0b1323; }
.homepage-video-body video { display: block; width: 100%; height: auto; max-height: min(68vh, 580px); max-height: min(68dvh, 580px); object-fit: contain; background: #0b1323; direction: ltr; }
.homepage-video-status { margin: 0; padding: 12px 16px; background: #f8fafc; color: #334155; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .chapter-inner { gap: 34px; }
}
@media (max-width: 800px) {
  .homepage-video-dialog { --video-inset: 12px; }
  .expanded-home .brand img.company-logo, .expanded-home .brand-logo-stack::before { display: none; }
  .product-chapter { padding: 58px 0; }
  .chapter-inner { grid-template-columns: minmax(0, 1fr); max-width: 600px; gap: 32px; }
  .chapter-education .chapter-visual, .chapter-portal .chapter-visual { order: 0; }
  .chapter-copy h2 { font-size: 34px; }
  .chapter-visual { width: 100%; }
  .plan-steps { gap: 12px; }
  .plan-step { padding: 18px; }
}
@media (max-width: 680px) {
  .homepage-video-dialog { --video-inset: 8px; border-radius: 14px; }
  .homepage-video-head { padding: 10px 12px; }
  .homepage-video-head h2 { font-size: 16px; }
  .expanded-home { --header-height: 113px; }
  .expanded-home .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: calc(100% - 24px); gap: 8px 12px; padding-block: 8px; }
  .expanded-home .nav .brand { grid-area: 1 / 1; justify-self: start; }
  .expanded-home .brand img.product-logo { width: 106px; }
  .expanded-home .brand img.company-logo, .expanded-home .brand-logo-stack::before { display: none; }
  .expanded-home .nav-actions { display: contents; }
  .expanded-home .nav-actions .pricing-link { grid-area: 1 / 2; padding: 9px 12px; font-size: 12px; }
  .expanded-home .nav-actions .signup-start { grid-area: 2 / 1; padding: 9px 14px; font-size: 14px; }
  .expanded-home .nav-actions .customer-login { grid-area: 2 / 2; padding: 9px 12px; font-size: 12px; }
  .chapter-inner, .plans-inner { width: calc(100% - 32px); }
  .chapter-copy h2 { font-size: 32px; }
  .chapter-copy > p { font-size: 16px; }
  .chapter-visual { border-radius: 18px; }
  .demo-content { padding: 20px; }
  .demo-bar { padding: 13px 16px; }
  .demo-total strong { font-size: 30px; }
  .demo-stat strong { font-size: 17px; }
  .plan-steps { grid-template-columns: minmax(0, 1fr); }
  .expanded-home .plans-teaser { padding: 55px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .expanded-home { scroll-behavior: auto; }
  /* Override the retained homepage's more specific animated demonstrations. */
  .expanded-home *, .expanded-home *::before, .expanded-home *::after { animation: none !important; transition: none !important; }
}
