/* Public homepage only. Backend and legal pages never load this stylesheet. */
.public-home {
  --home-ink: #22263d;
  --home-muted: #65718a;
  --home-purple: #6654e8;
  --home-blue: #477ae9;
  --home-border: #e5e8f1;
  margin: 0;
  background: #f9faff;
  color: var(--home-ink);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.public-home *, .public-home *::before, .public-home *::after { box-sizing: border-box; }
.public-home a { color: inherit; text-decoration: none; }
.public-home button, .public-home input { font: inherit; }
.public-home svg { width: 22px; height: 22px; flex: 0 0 auto; }
.public-home a:focus-visible { outline: 3px solid #8272f2; outline-offset: 5px; border-radius: 6px; }
.public-home ::selection { background: #e6e0ff; color: #393057; }
.home-container { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.home-skip-link { position: absolute; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: #fff; border: 1px solid var(--home-purple); border-radius: 8px; opacity: 0; pointer-events: none; }
.home-skip-link:focus { opacity: 1; pointer-events: auto; }
.home-header { position: relative; z-index: 2; border-bottom: 1px solid #eceef6; background: #ffffffb8; }
.home-header-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 28px; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 24px; font-weight: 800; letter-spacing: -.8px; }
.home-brand img { display: block; object-fit: contain; border-radius: 8px; }
.home-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; color: #626d84; }
.home-nav a, .home-footer a { transition: color .18s ease; }
.home-nav a:hover, .home-footer a:hover { color: var(--home-purple); }
.home-nav .home-nav-action { display: inline-flex; align-items: center; gap: 14px; min-height: 42px; padding: 0 18px; border: 1px solid #dedaf8; border-radius: 10px; background: #f7f5ff; color: #6551d5; font-weight: 650; }
.home-nav-action svg { width: 16px; height: 16px; }
.home-hero { position: relative; isolation: isolate; background: radial-gradient(ellipse at 84% 35%, #e9e4ff8c, transparent 49%), radial-gradient(ellipse at 3% 3%, #e1effb87, transparent 38%); }
.home-hero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .34; background-image: linear-gradient(#dfe5f8 1px, transparent 1px), linear-gradient(90deg, #dfe5f8 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(ellipse at 76% 45%, #000, transparent 65%); }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 68px; padding-block: 72px 78px; }
.home-hero-copy { min-width: 0; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 12px; border: 1px solid #e4dff9; border-radius: 30px; background: #f5f2ff; color: #7564c1; font-size: 12px; font-weight: 550; letter-spacing: .1px; }
.home-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #8b7be8; box-shadow: 0 0 0 4px #eae4ff; }
.home-hero h1 { margin: 24px 0 21px; font-size: clamp(64px, 4.3vw, 72px); font-weight: 780; line-height: 1.24; letter-spacing: -.035em; }
.home-hero h1 > span { display: block; color: var(--home-purple); background: linear-gradient(105deg, #7553e8, #427dea 85%); background-clip: text; -webkit-text-fill-color: transparent; }
.home-hero-description { margin: 0; color: var(--home-muted); font-size: 16px; font-weight: 400; line-height: 1.9; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 29px; }
.home-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 22px; padding: 0 23px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 650; transition: background-color .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-button svg { width: 18px; height: 18px; }
.public-home .home-button-primary { color: #fff; background: linear-gradient(112deg, #7155e8, #5077e7); box-shadow: 0 6px 18px #6757db24; }
.public-home .home-button-primary:hover { background: linear-gradient(112deg, #6145d8, #4067d7); box-shadow: 0 8px 24px #6757db35; }
.home-button-secondary { background: #ffffffbe; border-color: #e0e4ef; color: #58627a; }
.home-button-secondary:hover { background: #f6f3ff; border-color: #cfc5f7; }
.home-trust-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--home-muted); font-size: 11px; }
.home-trust-note svg { width: 15px; height: 15px; color: #8c87aa; }
.home-preview { width: 100%; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #e0dff0; border-radius: 22px; background: #ffffffeb; box-shadow: 0 22px 64px #5145850d, 0 4px 14px #51458505; animation: home-card-appear .55s ease both; }
.home-preview-bar { display: flex; min-height: 61px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 24px; border-bottom: 1px solid #ececf5; background: #fdfcff; }
.home-preview-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.home-preview-brand > svg { width: 19px; height: 19px; color: var(--home-purple); }
.home-preview-brand > strong { font-size: 14px; letter-spacing: -.3px; }
.home-preview-brand > span { margin-left: 4px; color: #9c9dad; font-size: 10px; }
.home-demo-label { flex-shrink: 0; padding: 4px 8px; border: 1px solid #e5dff6; border-radius: 6px; background: #f8f5ff; color: #7b66a3; font-size: 10px; }
.home-preview-body { padding: 24px 25px 25px; }
.home-preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.home-preview-kicker { font-size: 10px; color: #a1a4b6; letter-spacing: 1px; }
.home-preview-heading h2 { margin: 6px 0 0; font-size: 19px; font-weight: 680; letter-spacing: -.3px; }
.home-preview-caption { padding-bottom: 2px; color: #9a9eaf; font-size: 10px; }
.home-demo-accounts { display: grid; gap: 9px; }
.home-demo-account { display: flex; min-height: 68px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #ecebf5; border-radius: 11px; background: #fff; }
.home-demo-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: #eeeaff; color: #8a75dd; font-size: 13px; font-weight: 650; }
.home-demo-avatar-b { background: #eaf2ff; color: #6088c9; }
.home-demo-avatar-c { background: #fff1ea; color: #c6987d; }
.home-demo-account-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.home-demo-account-copy strong { font-size: 12px; font-weight: 600; }
.home-demo-account-copy small { color: #a4a7b6; font-size: 10px; }
.home-demo-status { display: inline-flex; flex-shrink: 0; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 6px; background: #f0faf5; color: #268060; font-size: 10px; }
.home-demo-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.home-demo-status.pending { background: #fff7e9; color: #896528; }
.home-demo-workflow { margin-top: 23px; padding-top: 19px; border-top: 1px solid #eeedf5; }
.home-demo-workflow-heading { display: flex; align-items: center; justify-content: space-between; }
.home-demo-workflow-heading h3 { margin: 0; font-size: 12px; font-weight: 650; }
.home-demo-workflow-heading > span { color: #a8aabb; font-size: 10px; }
.home-demo-workflow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.home-demo-workflow li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 10px; }
.home-demo-workflow li:not(:last-child)::after { position: absolute; top: 13px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 1px; background: #e8e7f2; content: ""; }
.home-demo-workflow li > span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #e9e8f1; border-radius: 50%; background: #fbfbfd; color: #b7b6c6; font-size: 9px; }
.home-demo-workflow li > span.complete { border-color: #e8e0ff; background: #eee8ff; color: #937adb; }
.home-demo-workflow li > span.active { border-color: #8b76e6; background: #8b76e6; color: #fff; }
.home-demo-workflow .complete svg { width: 14px; height: 14px; }
.home-demo-workflow li > strong { color: #9595ac; font-size: 10px; font-weight: 500; }
.home-demo-workflow li:nth-child(2) > strong { color: #8a72cf; }
.home-preview figcaption { padding: 12px 20px; border-top: 1px solid #efedf6; background: #fcfbff; color: #79758a; font-size: 10px; text-align: center; line-height: 1.6; }
.home-features { padding-block: 23px 79px; }
.home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.home-section-kicker { display: block; color: #9496aa; font-size: 11px; font-weight: 500; letter-spacing: .8px; }
.home-section-heading h2 { margin: 9px 0 0; font-size: 30px; font-weight: 720; letter-spacing: -.6px; line-height: 1.35; }
.home-section-heading p { margin: 0; padding-bottom: 3px; color: var(--home-muted); font-size: 13px; line-height: 1.8; }
.home-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-feature { position: relative; min-width: 0; padding: 28px; border: 1px solid var(--home-border); border-radius: 17px; background: #fff; transition: transform .18s ease, border-color .18s ease; }
.home-feature:hover { transform: translateY(-2px); border-color: #d4ccf5; }
.home-feature-icon { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 21px; border: 1px solid #eae4fd; border-radius: 13px; background: #f3efff; color: #8e77d8; }
.home-feature-icon-send { border-color: #e2ecfd; background: #f0f5ff; color: #789aca; }
.home-feature-icon-history { border-color: #e7e9f9; background: #f2f3fc; color: #8c91c5; }
.home-feature-icon svg { width: 22px; height: 22px; }
.home-feature-category { position: absolute; top: 34px; right: 28px; color: #a1a6b5; font-size: 10px; }
.home-feature h3 { margin: 0 0 10px; font-size: 18px; font-weight: 650; }
.home-feature p { margin: 0; color: var(--home-muted); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.home-workflow { padding-block: 47px 77px; border-top: 1px solid #e8ebf3; scroll-margin-top: 32px; }
.home-section-heading-centered { display: grid; justify-items: center; gap: 7px; margin-bottom: 47px; text-align: center; }
.home-section-heading-centered h2 { margin: 6px 0; }
.home-workflow-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px; margin: 0; padding: 0; list-style: none; }
.home-workflow-step { position: relative; min-width: 0; }
.home-step-number { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #e3dff8; border-radius: 12px; background: #f3f0ff; color: #9481d6; font-size: 13px; font-weight: 600; }
.home-workflow-step:not(:last-child)::after { position: absolute; top: 20px; left: 60px; right: -19px; height: 1px; background: linear-gradient(90deg, #ddd8ee, #ebedf7); content: ""; }
.home-workflow-step h3 { margin: 19px 0 10px; font-size: 16px; font-weight: 650; }
.home-workflow-step p { margin: 0; color: var(--home-muted); font-size: 12px; line-height: 1.9; }
.home-cta-wrap { padding-bottom: 70px; }
.home-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 41px 46px; border: 1px solid #e4e1f7; border-radius: 22px; background: radial-gradient(ellipse at 97% 16%, #dfeffd85, transparent 53%), linear-gradient(100deg, #f0eaff, #eef4ff); }
.home-cta h2 { margin: 12px 0 10px; font-size: 26px; font-weight: 700; letter-spacing: -.6px; line-height: 1.45; }
.home-cta p { margin: 0; color: #8b8fa9; font-size: 13px; line-height: 1.85; }
.home-cta .home-button { flex-shrink: 0; }
.home-footer { padding-block: 30px 27px; border-top: 1px solid #e8ebf3; background: #fff; }
.home-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home-footer-brand { font-size: 19px; gap: 8px; }
.home-footer-top nav { display: flex; flex-wrap: wrap; gap: 28px; color: #69768c; font-size: 12px; }
.home-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 21px; color: #69768c; font-size: 11px; }
.home-footer-bottom p { margin: 0; line-height: 1.8; }
@keyframes home-card-appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1199px) {
  .home-container { width: calc(100% - 64px); }
  .home-hero-inner { gap: 36px; padding-block: 60px 65px; }
  .home-hero h1 { font-size: 56px; }
  .home-hero-description { font-size: 15px; }
  .home-preview-bar { padding-inline: 18px; }
  .home-preview-body { padding: 22px 18px; }
  .home-preview-brand > span { display: none; }
  .home-preview-caption { font-size: 9px; }
  .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-workflow-list { gap: 28px; }
  .home-workflow-step:not(:last-child)::after { right: -12px; }
}
@media (max-width: 900px) {
  .home-header-inner { min-height: 78px; gap: 20px; }
  .home-nav { gap: 20px; font-size: 12px; }
  .home-nav .home-nav-action { gap: 7px; padding-inline: 12px; }
  .home-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 49px 55px; }
  .home-hero-copy { max-width: 650px; }
  .home-hero h1 { font-size: 60px; }
  .home-desktop-break { display: none; }
  .home-hero-description { max-width: 600px; line-height: 1.9; }
  .home-preview { max-width: 600px; justify-self: center; }
  .home-preview-brand > span { display: inline; }
  .home-preview-caption { font-size: 10px; }
  .home-features { padding-block: 21px 55px; }
  .home-workflow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .home-workflow-step:nth-child(2)::after { content: none; }
  .home-workflow-step:not(:last-child)::after { right: 0; }
  .home-cta { padding: 34px; }
  .home-cta h2 { font-size: 23px; }
}
@media (max-width: 767px) {
  .home-container { width: calc(100% - 40px); }
  .home-header-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 17px; }
  .home-brand { font-size: 22px; }
  .home-nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 12px; }
  .home-nav .home-nav-action { min-height: 34px; gap: 6px; padding-inline: 10px; font-size: 11px; }
  .home-nav-action svg { width: 13px; height: 13px; }
  .home-hero-inner { gap: 35px; padding-block: 40px 45px; }
  .home-eyebrow { gap: 9px; min-height: 30px; padding-inline: 10px; font-size: 10px; }
  .home-hero h1 { font-size: 44px; margin-block: 22px 19px; line-height: 1.28; }
  .home-hero-description { font-size: 15px; line-height: 1.95; }
  .home-hero-actions { gap: 10px; margin-top: 24px; }
  .home-button { min-height: 46px; padding-inline: 18px; font-size: 12px; gap: 14px; }
  .home-trust-note { margin-top: 16px; font-size: 10px; gap: 6px; }
  .home-preview { border-radius: 17px; }
  .home-preview-bar { min-height: 55px; padding-inline: 16px; }
  .home-preview-brand { gap: 7px; }
  .home-preview-brand > span { display: none; }
  .home-preview-body { padding: 20px 16px; }
  .home-preview-heading { gap: 8px; }
  .home-preview-heading h2 { font-size: 18px; }
  .home-preview-caption { font-size: 9px; }
  .home-demo-account { min-height: 64px; padding: 10px; gap: 10px; }
  .home-demo-account-copy small { font-size: 9px; }
  .home-preview figcaption { padding-inline: 12px; font-size: 9px; }
  .home-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 20px; }
  .home-section-heading h2 { font-size: 27px; }
  .home-section-heading p { font-size: 12px; }
  .home-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-feature { padding: 25px; }
  .home-feature-category { right: 25px; }
  .home-workflow { padding-block: 39px 47px; }
  .home-section-heading-centered { align-items: center; gap: 7px; margin-bottom: 30px; }
  .home-workflow-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-workflow-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 19px; padding-bottom: 28px; }
  .home-workflow-step:last-child { padding-bottom: 0; }
  .home-step-number { grid-column: 1; grid-row: 1 / 3; }
  .home-workflow-step h3 { grid-column: 2; margin: 1px 0 7px; }
  .home-workflow-step p { grid-column: 2; }
  .home-workflow-step:not(:last-child)::after { top: 48px; bottom: 8px; left: 20px; right: auto; width: 1px; height: auto; background: #e1ddf0; content: ""; }
  .home-cta-wrap { padding-bottom: 45px; }
  .home-cta { align-items: flex-start; flex-direction: column; gap: 24px; padding: 29px 25px; border-radius: 18px; }
  .home-cta h2 { font-size: 23px; }
  .home-cta p { font-size: 12px; }
  .home-footer { padding-block: 25px; }
  .home-footer-top, .home-footer-bottom { align-items: flex-start; flex-direction: column; gap: 19px; }
  .home-footer-top nav { gap: 23px; }
  .home-footer-bottom { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-home *, .public-home *::before, .public-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .home-feature:hover { transform: none; }
}
