/* The homepage has its own composition; shared public-page styles stay independent. */
.home-hero {
  --hero-accent: #6542ed;
  padding: 32px 0 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 48%, #fbfaff 100%);
}
.home-hero > .wrap { max-width: 1280px; }
.home-hero-copy { position: relative; z-index: 2; text-align: center; margin: 0 auto; }
.home-hero-eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 5px 14px;
  border: 1px solid #ded7fb;
  border-radius: 999px;
  background: #fcfbff;
  color: #5f4bb0;
  font-size: 13px;
  line-height: 1.4;
}
.home-hero h1 {
  margin: 0 auto 20px;
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  hyphens: none;
}
.home-hero-title-line { display: block; }
.home-hero-accent {
  color: var(--hero-accent);
  background: linear-gradient(105deg, #3e5cf4, #763be7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-hero-lead {
  max-width: 66ch;
  margin: 0 auto 25px;
  color: #526079;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}
.home-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.home-hero-actions .btn { min-height: 50px; border-radius: 9px; padding: 14px 23px; font-size: 15px; }
.home-hero-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #6844f3, #5834db);
  color: #fff;
  box-shadow: 0 8px 20px -9px #6542ed80, inset 0 1px 0 #ffffff30;
}
.home-hero-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, #ffffff26 50%, transparent 75%);
  transform: translateX(-110%);
  pointer-events: none;
}
.home-hero-primary:hover { background: #5834db; box-shadow: 0 12px 24px -10px #6542ed99; }
.home-hero-secondary { background: #fff; border-color: #e3e6ef; color: #172038; }
.home-hero-secondary:hover { background: #faf9ff; border-color: #cfc5f5; }
.home-hero-secondary span { display: inline-block; margin-left: 7px; }
.home-hero-providers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 26px;
  list-style: none;
  padding: 0;
  margin: 19px 0 12px;
  color: #526079;
  font-size: 14px;
}
.home-hero-providers li { display: flex; align-items: center; gap: 7px; }
.home-hero-providers img { object-fit: contain; }
.home-hero-install { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 5px 17px; font-size: 12px; color: #5b6277; }
.home-hero-install > a { text-underline-offset: 3px; }
.home-hero-beta { position: relative; text-align: left; }
.home-hero-beta summary { display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; list-style: none; }
.home-hero-beta summary::-webkit-details-marker { display: none; }
.home-hero-beta summary svg { flex: none; }
.home-hero-beta[open] summary svg { transform: rotate(180deg); }
.home-hero-beta p {
  position: absolute;
  z-index: 3;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 48px));
  padding: 16px 18px;
  margin: 0;
  border: 1px solid #e1daf5;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 12px 36px -16px #30254e40;
}
.home-hero-showcase { position: relative; margin: 34px 0 0; padding: 0 22px; perspective: 1800px; }
.home-hero-showcase::before {
  content: "";
  position: absolute;
  inset: 38px -18px 54px;
  border-radius: 22px;
  background: linear-gradient(115deg, #f0eaff, #f4f0fd 50%, #eeeaff);
  pointer-events: none;
}
.home-hero-screen {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #dcdfee;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 25px 50px -30px #27205066, 0 5px 15px -10px #30254e30;
  transform-origin: 50% 0;
}
.home-hero-window-bar { display: flex; gap: 7px; padding: 12px 15px; border-bottom: 1px solid #e8eaf1; background: linear-gradient(#fff, #f7f8fc); }
.home-hero-window-bar i { display: block; width: 9px; height: 9px; background: #ff6274; border-radius: 50%; }
.home-hero-window-bar i:nth-child(2) { background: #f7c44f; }
.home-hero-window-bar i:nth-child(3) { background: #56c888; }
.home-hero-screen > img { width: 100%; height: auto; }
.home-hero-expand { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dcdfee; border-radius: 10px; background: #ffffffed; color: #5741bd; box-shadow: 0 3px 8px #30254e0f; }
.home-hero-screen:hover .home-hero-expand, .home-hero-screen:focus-visible .home-hero-expand { background: #6542ed; color: #fff; border-color: #6542ed; }
.home-hero-showcase figcaption { position: relative; margin-top: 13px; color: #667087; font-size: 12px; text-align: center; }
.home-hero-benefits { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 0; list-style: none; padding: 0; margin: 26px 0 0; font-size: 14px; color: #526079; }
.home-hero-benefits li { display: flex; align-items: center; gap: 12px; padding: 0 28px; }
.home-hero-benefits li + li { border-left: 1px solid #e0e2ed; }
.home-hero-benefits svg { flex: none; color: #222c46; }

/* One finite entrance sequence. The page remains readable without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .home-hero-eyebrow { animation: hero-copy-in .7s both; }
  .home-hero-title-line { animation: hero-title-in .85s cubic-bezier(.2,.7,.2,1) .07s both; }
  .home-hero-title-line + .home-hero-title-line { animation-delay: .15s; }
  .home-hero-lead { animation: hero-copy-in .8s .23s both; }
  .home-hero-actions { animation: hero-copy-in .8s .31s both; }
  .home-hero-providers, .home-hero-install { animation: hero-copy-in .8s .39s both; }
  .home-hero-screen { animation: hero-screen-in 1.15s cubic-bezier(.16,1,.3,1) .28s both; }
  .home-hero-showcase::before { animation: hero-backplate-in 1.2s cubic-bezier(.16,1,.3,1) .4s both; }
  .home-hero-actions .btn { transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
  .home-hero-actions .btn:hover { transform: translateY(-2px); }
  .home-hero-actions .btn:active { transform: translateY(0); }
  .home-hero-primary:hover::after { animation: hero-button-light .75s ease-out; }
  .home-hero-secondary span { transition: transform .25s ease; }
  .home-hero-secondary:hover span { transform: translateX(3px); }
  .home-hero-expand, .home-hero-beta summary svg { transition: transform .25s ease, background .25s ease, color .25s ease; }
  .home-hero-beta[open] p { animation: hero-help-in .2s ease-out; }
  @keyframes hero-title-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes hero-copy-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes hero-screen-in { from { opacity: .35; transform: translateY(36px) rotateX(5deg) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes hero-backplate-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes hero-button-light { to { transform: translateX(110%); } }
  @keyframes hero-help-in { from { opacity: 0; margin-top: -4px; } to { opacity: 1; margin-top: 0; } }
}
@media (max-width: 720px) {
  .home-hero { padding: 28px 0 28px; }
  .home-hero-eyebrow { font-size: 12px; padding: 5px 11px; margin-bottom: 19px; }
  .home-hero h1 { font-size: clamp(33px, 7.4vw, 53px); line-height: 1.1; letter-spacing: -.04em; margin-bottom: 18px; }
  .home-hero-lead { max-width: 44ch; font-size: 16px; margin-bottom: 23px; }
  .home-hero-actions { gap: 10px; }
  .home-hero-actions .btn { padding: 13px 17px; font-size: 14px; min-height: 48px; }
  .home-hero-providers { font-size: 12px; gap: 12px 17px; margin: 18px 0 13px; }
  .home-hero-providers img { width: 15px; height: 15px; }
  .home-hero-install { flex-direction: column; align-items: center; gap: 7px; }
  .home-hero-showcase { padding: 0; margin-top: 28px; }
  .home-hero-showcase::before { inset: 20px -9px 46px; border-radius: 15px; }
  .home-hero-screen { border-radius: 10px; }
  .home-hero-window-bar { padding: 8px 10px; gap: 5px; }
  .home-hero-window-bar i { width: 6px; height: 6px; }
  .home-hero-expand { right: 8px; bottom: 8px; width: 29px; height: 29px; border-radius: 8px; }
  .home-hero-benefits { flex-direction: column; align-items: flex-start; width: fit-content; margin: 23px auto 0; gap: 15px; font-size: 13px; }
  .home-hero-benefits li { padding: 0; gap: 11px; }
  .home-hero-benefits li + li { border: 0; }
  .home-hero-benefits svg { width: 21px; height: 21px; }
}
@media (max-width: 380px) {
  .home-hero-actions { flex-direction: column; align-items: stretch; }
  .home-hero h1 { font-size: 31px; }
  .home-hero-providers { gap: 12px; font-size: 11px; }
}
