/* Opt-in homepage only. Existing item/query/auth surfaces keep their skin. */
:root body.jarvis-home { background: var(--j-canvas) !important; color: var(--j-ink); font-family: var(--j-font); }
:root .jarvis-home a:focus-visible, :root .jarvis-home button:focus-visible, :root .jarvis-home input:focus-visible, :root .jarvis-home summary:focus-visible { outline: 3px solid var(--j-focus); outline-offset: 4px; }
:root .jarvis-home .uc-topbar { position: relative; padding: 0 48px; border-color: var(--j-line); }
:root .jarvis-home .uc-topbar__inner { max-width: 1140px; width: 100%; margin: auto; }
:root .jarvis-home .shop-nav { min-height: 68px; gap: 20px; }
:root .jarvis-home .shop-brand { gap: 12px; }
:root .jarvis-home .shop-brand img { width: 42px; height: 42px; border-radius: 0; object-fit: contain; }
:root .jarvis-home .shop-brand__name { font-size: 20px; font-weight: 700; max-width: 300px; color: var(--j-ink); }
:root .jarvis-home .shop-nav__list { margin-left: auto; gap: 10px; }
:root .jarvis-home .shop-nav__item { color: var(--j-ink); font-size: 15px; padding: 7px 14px; border-radius: 8px; }
:root .jarvis-home .shop-nav__item:hover, :root .jarvis-home .shop-nav__item.active { color: var(--j-price); background: #edf9f5; }
:root .jarvis-home .shop-nav__item .nav-icon, :root .jarvis-home .shop-search, :root .jarvis-home .shop-auth .shop-btn--primary { display: none; }
:root .jarvis-home .shop-auth .shop-btn--ghost { min-width: 90px; min-height: 36px; border-radius: var(--j-radius-pill); border-color: var(--j-price); color: var(--j-price); font-size: 14px; padding: 0 16px; }
:root .jarvis-home .shop-btn--ghost i { display: none; }
:root .jarvis-home .shop-lang__menu, :root .jarvis-home .shop-user__menu { z-index: 50; }
:root .jarvis-home .shop-drawer__brand img { object-fit: contain; border-radius: 0; }
:root .jarvis-home .shop-drawer { background: #fff; color: var(--j-ink); }
:root .jarvis-home.shop-drawer-open { overflow: hidden; }
.jarvis-menu-close { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--j-line); border-radius: 50%; background: #fff; color: var(--j-ink); }

.jarvis-home-page { width: min(1140px, calc(100% - 96px)); max-width: 1140px; margin: 0 auto; padding-bottom: 48px; }

/* Hero Section */
.jarvis-hero { position: relative; min-height: 140px; display: flex; align-items: center; padding: 26px 0 20px; gap: 16px; }
.jarvis-hero-copy { position: relative; z-index: 1; max-width: 68%; }
.jarvis-hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #eafaf4; border: 1px solid #c2f0e0; color: var(--j-price); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.jarvis-hero-badge .material-icons-outlined { font-size: 15px; }
.jarvis-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; color: var(--j-ink); }
.jarvis-hero-lead { font-size: clamp(14px, 1.2vw, 16px); color: var(--j-muted); line-height: 1.6; margin: 0; }
.jarvis-hero-art { position: absolute; right: 8px; top: -10px; width: 160px; height: 150px; pointer-events: none; }
.jarvis-hero-art img { width: 100%; height: 100%; object-fit: contain; }
.jarvis-order-entry { display: inline-flex; align-items: center; gap: 6px; position: absolute; right: 2px; bottom: 12px; color: var(--j-muted); font-size: 14px; }
.jarvis-order-entry strong { color: var(--j-price); font-weight: 600; }
.jarvis-order-entry .material-icons-outlined { color: var(--j-price); font-size: 19px; }

/* Catalog Tools */
.jarvis-catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; min-height: 42px; }
.jarvis-home-categories { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px; margin-left: -2px; }
:root .jarvis-home .j-category { display: inline-flex; align-items: center; justify-content: center; background: #f4f4fa; color: var(--j-muted); border: 1px solid transparent; border-radius: var(--j-radius-pill); min-height: 38px; padding: 6px 20px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: all .16s ease; }
:root .jarvis-home .j-category.is-primary { background: var(--j-mint); color: var(--j-on-mint); font-weight: 600; }
:root .jarvis-home .j-category:hover:not(.is-disabled) { color: var(--j-on-mint); border-color: var(--j-mint); }
:root .jarvis-home .j-category.is-disabled { opacity: .5; cursor: not-allowed; }
.jarvis-catalog-search { display: flex; align-items: center; flex: 0 1 240px; border: 1px solid var(--j-line); border-radius: var(--j-radius-pill); background: #fff; min-width: 160px; }
.jarvis-catalog-search:focus-within { border-color: var(--j-focus); }
.jarvis-catalog-search input { border: 0; background: transparent; width: 100%; min-width: 0; height: 38px; padding: 6px 2px 6px 16px; font-size: 13.5px; color: var(--j-ink); }
.jarvis-catalog-search input:focus-visible { outline-offset: -3px; border-radius: var(--j-radius-pill); }
.jarvis-catalog-search button { border: 0; border-radius: 50%; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 38px; height: 38px; background: transparent; color: var(--j-price); }
.jarvis-catalog-summary { font-size: 13px; line-height: 1.5; color: var(--j-muted); margin: 0; }
.jarvis-catalog-summary:not(:empty) { margin-bottom: 12px; }

/* Product Cards */
:root .jarvis-home .item-list.jarvis-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; }
:root .jarvis-home .j-product { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px 18px !important; min-height: 355px; border-radius: 18px; background: #f6f6ff var(--j-pearl-image) center/cover no-repeat; border: 1px solid #dcd6fa; color: var(--j-ink); transition: box-shadow .18s, transform .18s; isolation: isolate; }
.j-product::after { content: ""; pointer-events: none; position: absolute; inset: 5px; border: 1px solid #cfc9f3; border-radius: 14px; z-index: -1; }
.j-product:hover { color: var(--j-ink); box-shadow: 0 10px 28px #211a430e; transform: translateY(-3px); }
.j-product-media { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; margin-bottom: 8px; }
.j-product-cover { width: 46px; height: 46px; object-fit: contain; border-radius: 0; }
.j-product-key { width: 50px; height: 50px; object-fit: contain; }
.j-product h2 { color: var(--j-ink); font: 650 18px/1.3 var(--j-font); letter-spacing: -.02em; margin: 0 0 3px; overflow-wrap: anywhere; }
.j-product-plan { font-size: 13px; line-height: 1.4; color: var(--j-muted); margin: 0 0 6px; }
.j-product-price { font: 700 clamp(26px, 2.3vw, 32px)/1.1 var(--j-font); color: var(--j-price); letter-spacing: -.03em; margin: 0 0 6px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.j-product-price .j-currency { font-size: .78em; margin-right: 1px; }
.j-product-price .j-price-suffix { font-size: .48em; font-weight: 500; color: var(--j-muted); letter-spacing: normal; vertical-align: baseline; margin-left: 2px; }
.j-product-stock { font-size: 12px; color: var(--j-muted); margin: 0 0 6px; line-height: 1.35; }
.j-product-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; font-size: 11px; line-height: 1.4; }
.j-product-tag { background: #ffffffab; color: #454055; border-radius: 5px; padding: 2px 6px; }
.j-product .j-product-cta { margin-top: auto; width: 100%; min-height: 40px; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: var(--j-radius-pill); }
.j-product-cta .material-icons-outlined { font-size: 18px; }
.j-product[aria-disabled="true"] { cursor: not-allowed; }
.j-product[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.j-product[aria-disabled="true"] .j-product-cta { color: #65677b; background: #e6e6ee; }
.j-product[aria-disabled="true"] .j-product-stock { color: var(--j-danger); font-weight: 600; }
.jarvis-catalog-more { grid-column: 1 / -1; display: flex; justify-content: center; margin: 24px 0 10px; }
.jarvis-show-more { min-width: 220px; padding: 12px 28px; font-size: 14px; font-weight: 600; border-radius: var(--j-radius-pill); background: #f0effc; color: var(--j-ink); border: 1px solid var(--j-line); cursor: pointer; transition: all .2s ease; box-shadow: var(--j-shadow-sm); }
.jarvis-show-more:hover { background: #e4e2f8; color: var(--j-accent); transform: translateY(-1px); }
.jarvis-catalog-state { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; min-height: 260px; padding: 30px 20px; gap: 12px; color: var(--j-muted); background: #fafaff; border: 1px solid var(--j-line); border-radius: var(--j-radius-card); }
.jarvis-catalog-state h2 { font: 600 20px/1.5 var(--j-font); color: var(--j-ink); margin: 0; }
.jarvis-catalog-state p { font-size: 14px; line-height: 1.6; margin: 0; }

/* 3-Step Service Guide */
.jarvis-home-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 20px; padding: 22px 32px; margin-bottom: 40px; background: #faf9ff; border: 1px solid var(--j-line); border-radius: 20px; }
.jarvis-home-steps > div { display: flex; align-items: center; gap: 14px; }
.j-step-number { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: #edf9f5; color: var(--j-price); font: 700 18px/1 var(--j-font); border: 1px solid #c2f0e0; }
.jarvis-home-steps h2 { font: 650 15.5px/1.4 var(--j-font); margin: 0 0 3px; color: var(--j-ink); }
.jarvis-home-steps p { font-size: 12.5px; line-height: 1.5; margin: 0; color: var(--j-muted); }
.j-step-arrow { color: #b4b6c8; font-size: 22px; }

/* Service Guarantees Section */
.jarvis-guarantee-section { margin-bottom: 44px; padding-top: 8px; }
.jarvis-section-header { text-align: center; margin-bottom: 26px; }
.jarvis-section-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--j-price); text-transform: uppercase; margin-bottom: 6px; }
.jarvis-section-header h2 { font: 700 24px/1.3 var(--j-font); color: var(--j-ink); margin: 0 0 6px; }
.jarvis-section-header p { font-size: 14px; color: var(--j-muted); margin: 0; }
.jarvis-guarantee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.jarvis-guarantee-card { background: #fff; border: 1px solid var(--j-line); border-radius: 18px; padding: 22px 18px; transition: transform .16s, box-shadow .16s; }
.jarvis-guarantee-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #211a430c; }
.jarvis-guarantee-icon { width: 44px; height: 44px; border-radius: 12px; background: #eafaf4; color: var(--j-price); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.jarvis-guarantee-icon .material-icons-outlined { font-size: 24px; }
.jarvis-guarantee-card h3 { font: 650 16px/1.4 var(--j-font); color: var(--j-ink); margin: 0 0 6px; }
.jarvis-guarantee-card p { font-size: 12.5px; line-height: 1.6; color: var(--j-muted); margin: 0; }

/* FAQ Accordion Section */
.jarvis-faq-section { margin-bottom: 36px; padding: 32px 36px; background: #faf9ff; border: 1px solid var(--j-line); border-radius: 24px; }
.jarvis-faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; margin: 0 auto; }
.jarvis-faq-item { background: #fff; border: 1px solid var(--j-line); border-radius: 14px; overflow: hidden; transition: border-color .16s; }
.jarvis-faq-item summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; cursor: pointer; list-style: none; font: 600 15px/1.4 var(--j-font); color: var(--j-ink); user-select: none; }
.jarvis-faq-item summary::-webkit-details-marker { display: none; }
.jarvis-faq-item summary .material-icons-outlined { color: var(--j-price); font-size: 20px; transition: transform .2s ease; }
.jarvis-faq-item[open] summary .material-icons-outlined { transform: rotate(180deg); }
.jarvis-faq-item[open] { border-color: var(--j-mint); }
.jarvis-faq-answer { padding: 0 20px 16px; font-size: 13.5px; line-height: 1.7; color: var(--j-muted); }
.jarvis-faq-answer p { margin: 0; }

/* Notice Accordion */
.jarvis-home-notice { border-top: 1px solid var(--j-line); padding: 16px 0; color: var(--j-muted); font-size: 13px; text-align: center; }
.jarvis-home-notice summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--j-muted); font-weight: 500; }
.jarvis-home-notice summary:hover { color: var(--j-price); }
.jarvis-home-notice summary::-webkit-details-marker { display: none; }
.jarvis-home-notice > div { padding: 14px 0 8px; max-width: 860px; margin: auto; text-align: left; overflow-wrap: anywhere; line-height: 1.75; }
.jarvis-home-notice img { max-width: 100%; height: auto; }
.jarvis-home-notice[open] summary .material-icons-outlined { transform: rotate(180deg); }

/* Official Footer */
.jarvis-home-footer { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--j-line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.jarvis-footer-brand { display: flex; flex-direction: column; gap: 4px; }
.jarvis-footer-logo { display: flex; align-items: center; gap: 8px; font: 700 15px/1.3 var(--j-font); color: var(--j-ink); }
.jarvis-footer-desc { font-size: 12px; color: var(--j-muted); margin: 0; }
.jarvis-footer-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.jarvis-footer-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--j-price); font-weight: 500; }
.jarvis-footer-badge .material-icons-outlined { font-size: 16px; }

/* Responsive Media Queries */
@media(max-width:1150px) {
  .jarvis-home-page { width: calc(100% - 64px); }
  :root .jarvis-home .uc-topbar { padding: 0 32px; }
  :root .jarvis-home .shop-brand__name { font-size: 18px; max-width: 220px; }
  :root .jarvis-home .shop-nav { gap: 10px; }
  :root .jarvis-home .shop-nav__list { gap: 0; }
  .jarvis-hero-art { right: 0; width: 130px; height: 120px; }
  .jarvis-hero { min-height: 120px; }
  .jarvis-hero h1 { font-size: 30px; }
  .jarvis-order-entry { font-size: 13px; }
  :root .jarvis-home .j-product { padding: 18px 14px !important; min-height: 330px; }
  .jarvis-guarantee-grid { grid-template-columns: repeat(2, 1fr); }
  .jarvis-home-steps { padding: 18px 20px; gap: 14px; }
}
@media(max-width:1050px) {
  :root .jarvis-home .item-list.jarvis-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
}
@media(max-width:900px) {
  .jarvis-home-page { width: calc(100% - 36px); }
  :root .jarvis-home .uc-topbar { padding: 0 18px; }
  .jarvis-hero-copy { max-width: 65%; }
  .jarvis-hero h1 { font-size: 26px; }
  .jarvis-hero-art { right: 0; width: 110px; height: 100px; top: -4px; }
  .jarvis-order-entry { right: 8px; bottom: 8px; }
  :root .jarvis-home .item-list.jarvis-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  :root .jarvis-home .j-product { min-height: 310px; padding: 18px 16px !important; }
  .j-product h2 { font-size: 19px; }
  .j-product-price { font-size: 30px; }
  .jarvis-guarantee-grid { grid-template-columns: 1fr; }
  .jarvis-home-steps { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .j-step-arrow { display: none; }
  .jarvis-home-footer { flex-direction: column; align-items: flex-start; }
}
@media(max-width:600px) {
  :root .jarvis-home .uc-topbar { padding: 0 16px; }
  :root .jarvis-home .shop-nav { min-height: 58px; gap: 8px; }
  :root .jarvis-home .shop-brand { gap: 8px; }
  :root .jarvis-home .shop-brand img { width: 36px; height: 36px; }
  :root .jarvis-home .shop-brand__name { font-size: 17px; max-width: 160px; }
  :root .jarvis-home .shop-icon-btn { width: 34px; height: 36px; }
  :root .jarvis-home .shop-auth { display: none; }
  :root .jarvis-home .shop-nav__list { display: none !important; }
  :root .jarvis-home .shop-nav__right { margin-left: auto; gap: 8px; }
  :root .jarvis-home .shop-burger { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--j-ink); }
  :root .jarvis-home .shop-drawer, :root .jarvis-home .shop-drawer__shade { display: block; }
  .jarvis-home-page { width: calc(100% - 24px); }
  .jarvis-hero { min-height: 180px; padding: 16px 0 20px; align-items: flex-start; }
  .jarvis-hero-copy { max-width: 100%; padding-top: 0; }
  .jarvis-hero h1 { font-size: clamp(24px,7vw,30px); line-height: 1.25; margin-bottom: 8px; letter-spacing: -.03em; }
  .jarvis-hero-lead { max-width: calc(100% - 110px); font-size: 13px; line-height: 1.55; }
  .jarvis-hero-art { right: -6px; top: 40px; width: 110px; height: 120px; }
  .jarvis-order-entry { left: 0; right: auto; bottom: 12px; font-size: 13px; gap: 4px; }
  .jarvis-catalog-tools { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
  .jarvis-home-categories { gap: 6px; width: 100%; }
  :root .jarvis-home .j-category { font-size: 13px; padding: 6px 16px; min-height: 36px; }
  .jarvis-catalog-search { flex: 1 1 100%; }
  :root .jarvis-home .item-list.jarvis-products { grid-template-columns: minmax(0,1fr); gap: 14px; }
  :root .jarvis-home .j-product { min-height: 320px; padding: 20px !important; }
  .j-product-media { margin-bottom: 10px; min-height: 60px; }
  .j-product-cover { width: 50px; height: 50px; }
  .j-product-key { width: 56px; height: 56px; }
  .j-product h2 { font-size: 20px; }
  .j-product-price { font-size: 34px; }
  .jarvis-faq-section { padding: 20px 16px; }
  .jarvis-faq-item summary { font-size: 14px; padding: 14px 16px; }
}
@media(prefers-reduced-motion:reduce) { .jarvis-home *, .jarvis-home *::before, .jarvis-home *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
