/* Fixed light marketing surface. Swatches match batch 4's approved palette.dart.
   Decorative brand purple is paired with darker, readable text/action colors. */
.marketing-home {
  color-scheme: light;
  --ink: #20213e;
  --muted: #68697f;
  --primary: #6955d7;
  color: var(--ink);
  background: #fff;
  min-height: 100svh;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  overflow-wrap: break-word;
}
.marketing-home .home-width { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.marketing-home a:focus-visible { outline: 3px solid #6955d7; outline-offset: 4px; }
.marketing-home .skip:focus { top: 12px; left: 12px; padding: 12px; color: #20213e; background: #fff; }
.home-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 8px 16px; }
.home-brand { display: block; width: 150px; height: 75px; object-fit: contain; }
.home-support { margin-left: auto; font-size: 14px; font-weight: 700; padding-block: 12px; }
.home-header .language-links { margin: 0; gap: 0 18px; }
.home-header .language-links a { color: #6651cc; }
.home-hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 32px; padding-block: 48px 72px; }
.home-intro { min-width: 0; }
.home-eyebrow { font-size: 14px; font-weight: 750; color: #6651cc; margin-bottom: 20px; }
.home-intro h1 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.3; font-weight: 850; letter-spacing: -.035em; margin-bottom: 24px; text-wrap: balance; }
.home-description { font-size: 18px; line-height: 1.9; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.home-explore { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; background: #6955d7; color: #fff; border-radius: 100px; font-weight: 700; }
.home-explore:hover { background: #5944bf; color: #fff; }
.home-art { position: relative; min-width: 0; aspect-ratio: 1; border-radius: 46% 54% 49% 51%; background: linear-gradient(145deg, #8b7cf6, #5fd3e0); }
.home-art::before { content: ""; position: absolute; inset: 9% 8%; border: 1px solid #ffffffb3; border-radius: 50%; }
.home-waving { display: block; position: relative; width: 92%; height: auto; margin: -2% 0 0 5%; }
.home-sleep-bubble { position: absolute; width: 38%; aspect-ratio: 1; left: -6%; bottom: -4%; border-radius: 50%; background: #fff1bd; box-shadow: 0 0 0 7px #fff; }
.home-sleeping { display: block; width: 100%; height: auto; }
.home-zzz { position: absolute; top: 10%; right: 6%; font-size: 14px; font-weight: 800; color: #795300; transform: rotate(-12deg); }
.home-spark { position: absolute; z-index: 1; line-height: 1; }
.home-spark-one { top: 5%; left: 5%; font-size: 54px; color: #ffc83d; transform: rotate(-12deg); }
.home-spark-two { bottom: 12%; right: 0; font-size: 38px; color: #ff7eb3; }
.home-features { padding-block: 32px 72px; }
.home-features h2, .home-download h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.4; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 14px; }
.home-section-note { color: var(--muted); max-width: 42em; margin-bottom: 32px; }
.home-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-feature { min-width: 0; padding: 28px 22px; border-radius: 26px; border: 1px solid #e7e2f2; background: #f7f6fc; }
.home-feature h3 { font-size: 19px; line-height: 1.55; margin: 20px 0 12px; text-wrap: balance; }
.home-feature p { font-size: 15px; line-height: 1.85; margin: 0; color: #53546b; }
.home-purple { border-top: 4px solid #7c6cf2; }
.home-cyan { border-top: 4px solid #5fd3e0; }
.home-coral { border-top: 4px solid #ff8a5b; }
.home-mint { border-top: 4px solid #3ccb9a; }
.home-feature-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; font-size: 28px; }
.home-purple .home-feature-icon { background: #eee9ff; color: #6651cc; }
.home-cyan .home-feature-icon { background: #ddf8fb; color: #087681; }
.home-coral .home-feature-icon { background: #ffe9df; color: #a73f16; }
.home-mint .home-feature-icon { background: #ddf8ec; color: #126b4c; }
.marketing-home .home-download { padding: 48px 36px; border-radius: 32px; text-align: center; background: linear-gradient(115deg, #eee9ff, #ddf8fb); margin-bottom: 72px; }
.home-download > p { color: #53546b; }
.home-download .home-coming-soon { display: inline-block; margin: 10px 0 0; padding: 9px 22px; background: #fff1bd; color: #795300; border-radius: 100px; font-size: 18px; font-weight: 800; }
.home-footer { border-top: 1px solid #e7e2f2; padding-block: 28px 24px; }
.home-footer .public-info-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 20px; }
.home-footer .public-info-links a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 650; color: #6651cc; text-decoration: underline; text-underline-offset: 4px; }
.home-footer p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
@media (max-width: 1000px) {
  .home-header .language-links { flex-basis: 100%; }
  .home-hero { gap: 24px; padding-block: 24px 56px; }
  .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .marketing-home .home-width { width: calc(100% - 40px); }
  .home-header { gap: 4px 12px; padding-bottom: 8px; }
  .home-brand { width: 126px; height: 63px; }
  .home-header .language-links { gap: 0 18px; font-size: 13px; }
  .home-support { max-width: 52%; font-size: 13px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 28px 48px; }
  .home-intro h1 { font-size: clamp(32px, 8.5vw, 45px); }
  .home-description { font-size: 16px; line-height: 1.85; }
  .home-eyebrow { font-size: 13px; }
  .home-art { width: min(88%, 360px); margin: 0 auto 20px; }
  .home-features { padding-block: 12px 40px; }
  .home-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-feature { padding: 24px; }
  .home-feature h3 { margin-top: 16px; }
  .marketing-home .home-download { padding: 32px 24px; margin-bottom: 40px; border-radius: 24px; }
  .home-footer .public-info-links { gap: 4px 22px; }
}
@media (prefers-reduced-motion: reduce) { html:has(.marketing-home) { scroll-behavior: auto; } }
