/* Home and error page; common components are defined in site-theme.css. */
.hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: 570px; padding: 60px max(32px, calc((100vw - 1240px) / 2)) 74px;
  background: #f7faf9; overflow: hidden;
}
.hero-image, .hero-overlay { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-image { background: url("/assets/junxin-hero-luminous.webp") 74% center / cover no-repeat; }
.hero-overlay { background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,0) 56%); }
.hero-content { width: min(600px, 51%); }
.section-label { margin-bottom: 17px; color: var(--muted); font-size: 12px; font-weight: 550; line-height: 1.6; }
.hero h1 { margin: 0 0 24px; max-width: 11em; font-size: clamp(42px, 4.25vw, 62px); line-height: 1.23; font-weight: 550; }
.hero-lead { max-width: 33em; margin: 0; color: #3c555d; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
.products-section, .company-section, .privacy-section { padding: 76px max(32px, calc((100vw - 1240px) / 2)); }
.products-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; background: #fff; }
.section-intro { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 8px 30px; margin-bottom: 10px; }
.section-intro .section-label { grid-column: 1 / -1; margin: 0; }
h2 { margin-bottom: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.4; }
.section-intro > p:last-child { align-self: end; justify-self: end; margin: 0 0 6px; color: var(--muted); line-height: 1.8; }
.product-entry { min-width: 0; display: flex; flex-direction: column; border: 1px solid rgba(23,53,60,.055); border-radius: 18px; background: var(--mint); }
.product-entry#multi-identity-keyboard { background: var(--lilac); }
.product-name { padding: 28px 32px 12px; }
.product-name > p { margin: 0 0 17px; font-size: 11px; color: var(--muted); }
.product-identity { display: flex; align-items: center; gap: 23px; }
.product-icon { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 23%; object-fit: cover; box-shadow: 0 7px 15px rgba(27,57,49,.10); }
.product-title { min-width: 0; }
.product-name h3 { margin: 0 0 6px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.product-title--long h3 { font-size: clamp(24px, 2.15vw, 31px); }
.product-name span { display: block; color: var(--muted); font-size: 11px; }
.product-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px 32px 30px; }
.product-audience { margin-bottom: 16px; color: var(--ink); font-size: 18px; font-weight: 550; line-height: 1.75; }
.product-copy > p:not(.product-audience) { margin-bottom: 17px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.product-copy > p:nth-of-type(3) { font-size: 13px; }
.app-store-download { display: inline-grid; max-width: 100%; grid-template-columns: minmax(0, 1fr) 88px; gap: 24px; align-items: center; margin: auto 0 20px; padding: 16px 20px; border: 1px solid rgba(23,53,60,.08); border-radius: 10px; background: rgba(255,255,255,.8); }
.app-store-download-main { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
.app-store-download-label { color: var(--muted); font-size: 11px; line-height: 1.6; }
.app-store-badge-link { display: inline-block; line-height: 0; }
.app-store-badge-link img { display: block; width: 128px; height: auto; }
.app-store-page-link { min-height: 30px; display: inline-flex; align-items: center; color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.6; }
.app-store-page-link:hover { text-decoration: underline; }
.app-store-qr-link { display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.app-store-qr-link img { display: block; width: 88px; height: 88px; }
.product-actions, .privacy-links { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; }
.product-capabilities { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 32px; padding: 20px 0 25px; list-style: none; border-top: 1px solid var(--line); }
.product-capabilities li { color: var(--muted); font-size: 12px; line-height: 1.7; }
.privacy-section { background: var(--mint); display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.3fr); align-items: start; gap: 55px; }
.privacy-intro h2 { margin-bottom: 24px; font-size: clamp(28px, 2.6vw, 38px); }
.privacy-intro > p:not(.section-label) { color: var(--muted); margin-bottom: 22px; font-size: 15px; line-height: 1.85; }
.privacy-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); padding-top: 43px; }
.privacy-facts article { min-width: 0; padding: 0 24px; border-left: 1px solid var(--line); }
.privacy-facts article:first-child { border-left: 0; padding-left: 0; }
.privacy-facts article:last-child { padding-right: 0; }
.privacy-facts article > span { display: block; margin-bottom: 14px; color: var(--muted); font-size: 11px; }
.privacy-facts h3 { font-size: 19px; font-weight: 550; margin-bottom: 14px; white-space: nowrap; }
.privacy-facts p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.85; }
.company-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; background: #fff; }
.company-copy h2 { margin-bottom: 24px; }
.company-copy > p:last-child { max-width: 33em; color: var(--muted); line-height: 1.9; margin-bottom: 0; }
.company-details { font-style: normal; border-top: 1px solid var(--line); }
.company-details p { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 14px; margin: 0; padding: 19px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.company-details span { color: var(--muted); font-size: 12px; }
.company-details a { color: var(--accent); overflow-wrap: anywhere; }
.footer-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-group h2 { font-size: 14px; font-weight: 600; margin-bottom: 8px; letter-spacing: 0; }
.footer-group a { display: inline-flex; align-items: center; min-height: 30px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer-group a:hover { color: var(--accent); text-decoration: underline; }
.not-found { display: flex; align-items: center; justify-content: center; min-height: 100svh; padding: 80px 24px; background: radial-gradient(ellipse at 80% 10%, var(--lilac), transparent 65%), var(--mint); }
.not-found-content { width: min(680px, 100%); }
.not-found h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.3; margin-bottom: 22px; }
.not-found-content > p:not(.section-label) { color: var(--muted); }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (min-width: 1800px) {
  .hero { min-height: 650px; }
}
@media (max-width: 1100px) {
  .hero-content { width: 53%; }
  .hero h1 { font-size: 48px; }
  .product-name { padding: 26px 24px 12px; }
  .product-copy { padding: 18px 24px 24px; }
  .product-capabilities { margin: 0 24px; }
  .product-icon { width: 78px; height: 78px; }
  .product-identity { gap: 18px; }
  .privacy-section { grid-template-columns: 1fr; gap: 32px; }
  .privacy-intro { max-width: 650px; }
  .privacy-facts { padding-top: 0; }
}
@media (max-width: 800px) {
  .hero {
    min-height: 510px; padding: 48px 24px 64px;
    background: linear-gradient(160deg, #f7faf9, #eef4f8 55%, #f7faf9);
  }
  .hero-image {
    background-size: auto 88%; background-position: 74% bottom;
    -webkit-mask-image: linear-gradient(to bottom, transparent 13%, #000 34%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 13%, #000 34%, #000 88%, transparent 100%);
  }
  .hero-content { width: 57%; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 15px; }
  .products-section { grid-template-columns: 1fr; }
  .products-section, .privacy-section, .company-section { padding: 54px 24px; }
  .product-name { padding: 28px 28px 12px; }
  .product-copy { padding: 14px 28px 25px; }
  .product-capabilities { margin: 0 28px; }
  .product-name h3, .product-title--long h3 { font-size: 29px; }
  .product-icon { width: 82px; height: 82px; }
  .app-store-download { margin-top: 8px; }
  .company-section { grid-template-columns: 1fr; gap: 36px; }
}
@media (min-width: 541px) and (max-width: 599px) {
  .hero-content { width: 62%; }
  .hero-actions { gap: 10px; }
}
@media (max-width: 540px) {
  .hero { min-height: 540px; padding: 48px 20px 62px; }
  .hero-content { width: 100%; }
  .hero-image {
    background-size: auto 85%; background-position: 82% bottom;
    -webkit-mask-image: linear-gradient(to bottom, transparent 17%, #000 40%, #000 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent 17%, #000 40%, #000 90%, transparent);
  }
  .hero-overlay { background: linear-gradient(90deg, rgba(255,255,255,.91), rgba(255,255,255,.75) 58%, rgba(255,255,255,.4)); }
  .hero h1 { font-size: clamp(34px, 9vw, 43px); margin-bottom: 21px; }
  .hero-lead { font-size: 15px; line-height: 1.85; max-width: 32em; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .hero-actions .primary-link, .hero-actions .quiet-link { padding: 12px 18px; gap: 18px; }
  .products-section, .privacy-section, .company-section { padding: 44px 20px; }
  .section-intro { grid-template-columns: 1fr; gap: 10px; margin-bottom: 0; }
  .section-intro > p:last-child { justify-self: start; font-size: 14px; margin: 0; }
  h2 { font-size: 30px; }
  .product-name { padding: 22px 20px 8px; }
  .product-copy { padding: 16px 20px 22px; }
  .product-name > p { margin-bottom: 13px; }
  .product-name h3, .product-title--long h3 { font-size: 24px; }
  .product-icon { width: 66px; height: 66px; }
  .product-identity { gap: 16px; }
  .product-audience { font-size: 16px; }
  .product-capabilities { margin: 0 20px; }
  .app-store-download { width: 100%; padding: 14px; gap: 12px; grid-template-columns: minmax(0,1fr) 72px; }
  .app-store-badge-link img { width: 109px; }
  .app-store-qr-link img { width: 72px; height: 72px; }
  .app-store-download-label { font-size: 10px; }
  .privacy-facts { grid-template-columns: 1fr; }
  .privacy-facts article, .privacy-facts article:first-child, .privacy-facts article:last-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .privacy-facts article > span { margin-bottom: 7px; }
  .privacy-facts h3 { margin-bottom: 8px; }
  .company-details p { grid-template-columns: 1fr; gap: 4px; }
  .footer-groups { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 16px; }
}
