/* Home styles are scoped. Shared tool panels retain their established palette. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/public/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
.ds-home { font-family: var(--ds-home-font); -webkit-font-smoothing: antialiased; }
.ds-home .ds-container { width: min(1248px, calc(100% - clamp(40px, 8vw, 96px))); }
.ds-home :is(h1,h2,h3,p) { margin: 0; }
.ds-home :is(h1,h2,h3) { color: var(--text); text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.ds-home .hero__copy { min-width: 0; }
.ds-home :is(p,a,button) { overflow-wrap: break-word; }
.ds-home main { outline: none; }
.ds-home section, .ds-home .anchor-alias { scroll-margin-top: calc(var(--ds-header-height) + 24px); }
.ds-home .eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 650; margin-bottom: 20px; }
.ds-home .hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 56px; padding-block: 88px 80px; }
.ds-home h1 { font-size: clamp(48px, 5vw, 68px); line-height: 1.1; letter-spacing: -.055em; font-weight: 750; }
.ds-home h1 span { display: block; }
.ds-home .hero__accent { color: var(--primary); }
.ds-home .hero__desc { color: var(--muted); font-size: 17px; line-height: 1.7; margin-top: 28px; max-width: 47ch; word-break: keep-all; }
.ds-home .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ds-home .home-button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 46px; padding: 12px 20px; border-radius: var(--ds-button-radius); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; background: var(--panel); color: var(--text); cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.ds-home .home-button--primary { color: var(--ds-accent-text); background: var(--primary); border-color: var(--primary); }
.ds-home .home-button--primary:hover { background: color-mix(in srgb, var(--primary) 90%, var(--text)); }
.ds-home .home-button--secondary:hover { border-color: var(--muted); background: var(--ds-surface-raised); }
.ds-home .home-button--quiet { background: transparent; border-color: transparent; color: var(--muted); }
.ds-home .home-button--quiet:hover { background: var(--ds-surface-raised); }
.ds-home .hero__footnote { color: var(--muted); font-size: 12px; margin-top: 28px; }
.ds-home .hero__visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; padding: 24px 0; }
.ds-home .hero__visual::before { content: ''; position: absolute; inset: 0 8%; z-index: -1; background: radial-gradient(ellipse, var(--ds-accent-soft), transparent 70%); }
.ds-home .hero-product:first-child { grid-column: 1 / -1; width: 84%; justify-self: center; }
.ds-home .hero-product:not(:first-child) { margin-top: 0; }
.ds-home .hero-product:first-child .product-cover { aspect-ratio: 2.6 / 1; }
.ds-home .hero-product .product-cover { aspect-ratio: 2 / 1; }
.ds-home .hero-product:not(:first-child) .product-cover { aspect-ratio: 1.8 / 1; }
.ds-home .hero-product .product-body { padding: 14px 18px; }
.ds-home .hero-product .loading-label { display: block; height: 19px; }
.ds-home .hero-product :is(.product-meta,.product-description,.product-foot) { display: none; }
.ds-home .hero-product .product-title { font-size: 15px; letter-spacing: -.02em; }
.ds-home .home-section { padding-block: var(--ds-section-space); border-top: 1px solid var(--line); }
.ds-home .section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.ds-home h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.2; font-weight: 650; }
.ds-home .section-head .eyebrow { margin-bottom: 12px; }
.ds-home .text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.ds-home .text-link:hover { color: var(--primary); }
.ds-home .section-description { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 35ch; }
.ds-home .featured-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.ds-home .product-card { display: flex; flex-direction: column; min-width: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--ds-home-radius); overflow: clip; text-decoration: none; box-shadow: var(--ds-home-shadow); transition: border-color .16s ease, transform .16s ease; }
.ds-home a.product-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.ds-home .product-card--lead { grid-row: span 2; }
.ds-home .product-card--side { display: grid; grid-template-columns: 40% 1fr; }
.ds-home .product-card--side .product-cover { height: 100%; aspect-ratio: auto; min-height: 200px; }
.ds-home .product-cover { position: relative; aspect-ratio: 16 / 9; background: var(--ds-surface-raised); flex-shrink: 0; }
.ds-home .product-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-home .product-cover--fallback { background: var(--ds-accent-soft); }
.ds-home .illustration-label { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); font-size: 12px; font-weight: 500; padding: 4px 7px; background: var(--panel); color: var(--muted); border-radius: 4px; }
.ds-home .product-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.ds-home .product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; margin-bottom: 16px; }
.ds-home .product-group { color: var(--muted); }
.ds-home .status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 5px; color: var(--muted); background: var(--ds-surface-raised); }
.ds-home .status--available { color: var(--ds-success); background: var(--ds-success-bg); }
.ds-home .status--available::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.ds-home .product-title { font-size: 20px; letter-spacing: -.035em; font-weight: 650; line-height: 1.25; }
.ds-home .product-card--lead .product-title { font-size: 28px; }
.ds-home .product-description { color: var(--muted); margin-top: 12px; font-size: 14px; line-height: 1.65; word-break: keep-all; }
.ds-home .product-foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding-top: 28px; margin-top: auto; }
.ds-home .product-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.ds-home .product-action { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ds-home .category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.ds-home .category-card { display: flex; flex-direction: column; align-items: stretch; text-align: left; padding: 28px; color: var(--text); border: 1px solid var(--line); background: var(--ds-surface-raised); border-radius: var(--ds-home-radius); cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.ds-home .category-card:hover { border-color: var(--primary); background: var(--panel); }
.ds-home .category-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.ds-home .category-index { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ds-home .category-card h3 { font-size: 21px; font-weight: 650; letter-spacing: -.03em; }
.ds-home .category-card p { color: var(--muted); margin-top: 12px; font-size: 14px; line-height: 1.65; }
.ds-home .category-note { display: block; margin-top: auto; padding-top: 28px; font-size: 12px; font-weight: 500; }
.ds-home .anchor-alias { display: block; }
.ds-home .directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ds-home .searchbox { display: flex; align-items: center; gap: 12px; width: min(440px,100%); min-height: 48px; padding: 0 16px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: var(--ds-button-radius); }
.ds-home .searchbox:focus-within { outline: 3px solid var(--ds-focus); outline-offset: 3px; }
.ds-home .searchbox input { min-width: 0; width: 100%; min-height: 46px; padding: 8px 0; background: transparent; border: 0; color: var(--text); font-size: 14px; outline: none; }
.ds-home .searchbox input::placeholder { color: var(--muted); }
.ds-home .product-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-home .product-filter { min-height: 44px; border-radius: 8px; border: 1px solid transparent; padding: 10px 16px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.ds-home .product-filter[aria-pressed="true"] { background: var(--ds-accent-soft); color: var(--primary); font-weight: 600; }
.ds-home .product-filter:hover { border-color: var(--line); }
.ds-home .detail-filters { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.ds-home .detail-filters select { max-width: 100%; min-height: 44px; padding: 8px 32px 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 13px; }
.ds-home .directory-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-block: 24px 16px; color: var(--muted); font-size: 12px; }
.ds-home .product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.ds-home .product-grid .product-cover { aspect-ratio: 2 / 1; }
.ds-home .products-empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--ds-home-radius); }
.ds-home .products-empty h3 { font-size: 22px; font-weight: 600; }
.ds-home .products-empty p { color: var(--muted); margin: 12px 0 24px; font-size: 15px; }
.ds-home :is(.about,.guide,.privacy) { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.ds-home .about__copy { color: var(--muted); font-size: 16px; line-height: 1.7; }
.ds-home .about__copy .about__lead { font-size: 22px; line-height: 1.5; color: var(--text); letter-spacing: -.025em; }
.ds-home .about__copy p + p { margin-top: 20px; }
.ds-home .about__copy .text-link { margin-top: 24px; color: var(--text); }
.ds-home .guide .section-description { margin-top: 16px; }
.ds-home .faq details { border-bottom: 1px solid var(--line); }
.ds-home .faq summary { padding-block: 20px; font-size: 15px; font-weight: 550; cursor: pointer; }
.ds-home .faq details:first-child summary { padding-top: 0; }
.ds-home .faq p { padding-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.ds-home .privacy ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.ds-home .privacy li + li { margin-top: 14px; }
.ds-home .site-footer { padding-block: 48px 24px; background: var(--panel); border-top: 1px solid var(--line); }
.ds-home .footer-top { display: grid; grid-template-columns: 1fr auto; gap: 12px 48px; }
.ds-home .footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.ds-home .footer-top p { font-size: 13px; color: var(--muted); grid-column: 1; }
.ds-home .footer-top nav { display: flex; flex-wrap: wrap; gap: 4px 24px; grid-column: 2; grid-row: 1 / 3; align-self: center; }
.ds-home .footer-top nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration: none; }
.ds-home .footer-top nav a:hover { color: var(--text); }
.ds-home .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) {
  .ds-home .hero { gap: 32px; }
  .ds-home .product-card--side { display: flex; }
  .ds-home .product-card--side .product-cover { height: auto; min-height: 0; aspect-ratio: 2.8 / 1; }
  .ds-home .product-card--lead .product-cover { flex: 1; }
  .ds-home .category-card { padding: 24px; }
}
@media (max-width: 800px) {
  .ds-home { --ds-section-space: 64px; }
  .ds-home .hero { grid-template-columns: 1fr; padding-block: 56px 48px; gap: 40px; }
  .ds-home .hero__copy { max-width: 600px; }
  .ds-home h1 { font-size: 52px; }
  .ds-home .hero__visual { max-width: 540px; width: 100%; justify-self: center; padding-block: 0; }
  .ds-home .hero-product:first-child { width: 100%; }
  .ds-home .featured-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ds-home .product-card--lead { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .ds-home .product-card--lead .product-cover { aspect-ratio: auto; }
  .ds-home .category-grid { grid-template-columns: 1fr; gap: 12px; }
  .ds-home .category-card__top { margin-bottom: 24px; }
  .ds-home .category-card { position: relative; }
  .ds-home .category-note { padding-top: 16px; }
  .ds-home .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .ds-home :is(.about,.guide,.privacy) { gap: 32px; }
  .ds-home .footer-top { grid-template-columns: 1fr; }
  .ds-home .footer-top nav { grid-column: 1; grid-row: 3; }
}
@media (max-width: 540px) {
  .ds-home h1 { font-size: clamp(36px, 8.8vw, 44px); letter-spacing: -.05em; }
  .ds-home h2 { font-size: 28px; }
  .ds-home .eyebrow { letter-spacing: .1em; }
  .ds-home .hero__desc { font-size: 15px; margin-top: 24px; }
  .ds-home .hero__actions { gap: 8px; margin-top: 24px; }
  .ds-home .home-button { padding-inline: 16px; gap: 12px; }
  .ds-home .hero__footnote { font-size: 12px; }
  .ds-home .hero__visual { gap: 12px; }
  .ds-home .hero-product:first-child { grid-column: auto; width: auto; }
  .ds-home .hero-product:not(:first-child) { margin-top: 0; }
  .ds-home .hero-product:last-child { display: none; }
  .ds-home .hero-product .product-cover, .ds-home .hero-product:not(:first-child) .product-cover { aspect-ratio: 1.3 / 1; }
  .ds-home .hero-product .product-body { padding: 14px 12px; }
  .ds-home .hero-product .product-title { font-size: 14px; }
  .ds-home .illustration-label { left: 8px; bottom: 8px; padding: 3px 5px; }
  .ds-home .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .ds-home .featured-grid,.ds-home .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .ds-home .product-card--lead { display: flex; grid-column: auto; }
  .ds-home .product-card--lead .product-cover,.ds-home .product-card--side .product-cover { aspect-ratio: 2 / 1; }
  .ds-home .product-card--lead .product-title { font-size: 24px; }
  .ds-home .product-body { padding: 24px; }
  .ds-home .directory-toolbar { flex-wrap: wrap; gap: 8px; }
  .ds-home .searchbox { width: 100%; }
  .ds-home .product-filter { padding-inline: 12px; }
  .ds-home :is(.about,.guide,.privacy) { grid-template-columns: 1fr; gap: 32px; }
  .ds-home .about__copy .about__lead { font-size: 20px; }
  .ds-home .footer-top nav { gap: 4px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-home a.product-card:hover { transform: none; }
  .ds-home *, .ds-home *::before { transition: none; scroll-behavior: auto; }
}
