/* Apple.com-inspired storefront layer.
   Loaded after shop.css; it resets the palette, type scale and surfaces while
   leaving the layout primitives and JS behaviour untouched. */

:root {
  --bg: #ffffff;
  --tint: #f5f5f7;
  --tint-2: #f5f5f7;
  --ink: #1d1d1f;
  --body: #6e6e73;
  --muted: #86868b;
  --line: #d2d2d7;
  --line-strong: #86868b;
  --primary: #0066cc;
  --primary-dark: #0071e3;
  --primary-soft: #f5f5f7;
  --accent: #1d1d1f;
  --accent-dark: #000000;
  --accent-soft: #f5f5f7;
  --mint: #f5f5f7;
  --mint-ink: #1d1d1f;
  --lilac: #f5f5f7;
  --lilac-ink: #1d1d1f;
  --peach: #f5f5f7;
  --peach-ink: #1d1d1f;
  --sky: #f5f5f7;
  --sky-ink: #1d1d1f;
  --rose: #f5f5f7;
  --rose-ink: #1d1d1f;
  --error: #d70015;
  --ok: #1d1d1f;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue',
    Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 44px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 0 0 1px rgba(0, 0, 0, 0.08);

  --fs-h1: clamp(3rem, 6.2vw, 5.4rem);
  --fs-h2: clamp(2.1rem, 4vw, 3.4rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.75rem;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

p {
  letter-spacing: -0.01em;
}

a {
  color: var(--primary);
}

::selection {
  background: #b3d7ff;
  color: #1d1d1f;
}

/* ---------- announcement + header ---------- */

.announce {
  background: #f5f5f7;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.announce-in {
  min-height: 36px;
  justify-content: center;
  gap: 26px;
}

.announce-item {
  color: var(--body);
  gap: 6px;
}

.announce-item .i {
  color: var(--body);
  font-size: 13px;
}

.announce-link {
  border: 0;
  color: var(--primary);
  font-weight: 400;
  margin-left: 0;
}

.announce-link:hover {
  text-decoration: underline;
  border: 0;
}

.site-head {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: none;
}

.site-head[data-scrolled='true'] {
  box-shadow: none;
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

.head-in {
  position: relative;
  min-height: 48px;
  gap: 0;
}

.brand {
  gap: 7px;
  margin-right: 0;
}

.brand-mark {
  width: 17px;
  height: 17px;
  stroke: var(--ink);
  stroke-width: 1.8;
}

.brand-mark rect {
  fill: none;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav ul {
  gap: 28px;
}

.nav a {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
  padding: 0;
  border: 0;
  letter-spacing: -0.01em;
}

.nav a:hover {
  color: var(--primary);
}

.nav a[aria-current='page'] {
  color: var(--ink);
  border: 0;
  font-weight: 500;
}

.head-tools {
  margin-left: auto;
  gap: 2px;
}

.tool,
.cart-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  border-radius: 0;
  color: var(--ink);
}

.tool:hover,
.cart-btn:hover {
  background: none;
  color: var(--primary);
}

.cart-btn {
  border: 0;
}

.cart-count {
  top: 0;
  right: 0;
  min-width: 15px;
  height: 15px;
  font-size: 9px;
  background: var(--ink);
  color: #fff;
}

/* The quote CTA stays in the header from tablet up; below the shop header
   collapses to search + cart + menu and the card buttons carry the action. */
@media (min-width: 901px) {
  .head-cta {
    display: inline-flex;
    /* .head-tools runs on a 2 px gap, sized for two icon buttons; the pill
       needs a little air on both sides to read as its own control. */
    margin: 0 8px 0 6px;
  }
}

.nav-toggle {
  font-size: 12px;
  font-weight: 400;
  gap: 4px;
  padding: 6px 0;
}

/* ---------- buttons ---------- */

.btn {
  border-radius: 980px;
  padding: 11px 21px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: background-color 160ms ease, opacity 160ms ease, color 160ms ease;
}

.btn-primary,
.btn-accent {
  background: #0071e3;
  color: #fff;
}

.btn-primary:hover,
.btn-accent:hover {
  background: #0077ed;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--tint);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

.link-arrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 400;
  gap: 4px;
}

.link-arrow .i {
  font-size: 12px;
}

/* ---------- hero ---------- */

.hero {
  background: #fff;
  padding: clamp(44px, 5.5vw, 76px) 0 0;
  overflow: visible;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-copy {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 16px;
  color: var(--body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.live-dot {
  display: none;
}

.hero-h1 {
  max-width: none;
  font-size: clamp(2.8rem, 6.1vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero-h1 .hl {
  color: #86868b;
}

.hero-lede {
  margin: 22px auto 0;
  max-width: 660px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--body);
}

.hero-cta {
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}

.hero-cta .btn-accent {
  padding-inline: 28px;
}

.hero-cta .btn-ghost {
  border: 0;
  padding-inline: 0;
  color: var(--primary);
}

.hero-cta .btn-ghost:hover {
  background: none;
  color: #0077ed;
}

.hero-cta .btn-ghost .i {
  display: none;
}

.hero-trust {
  display: none;
}

.hero-media {
  order: 2;
  width: 100%;
  max-width: 1120px;
  margin: clamp(30px, 4vw, 48px) auto 0;
}

.hero-blob,
.hero-badge,
.float-chip {
  display: none;
}

.hero-card {
  width: 100%;
  max-width: 1120px;
  /* matches the 1600x560 lineup, so the box does not letterbox it */
  aspect-ratio: 20 / 7;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-card picture {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card img {
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}

.hero-lineup {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 34px 0 0;
  padding: 30px 0;
  background: var(--tint);
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.stat {
  padding: 0 clamp(18px, 4vw, 52px);
  border-left: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
}

.stat:first-child {
  border-left: 0;
}

.stat dd {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.stat dt {
  font-size: 12px;
  color: var(--body);
  letter-spacing: -0.01em;
}

/* ---------- sections ---------- */

.section {
  padding: var(--section) 0;
}

.section-tint {
  background: var(--tint);
}

.s-head {
  margin-bottom: clamp(30px, 4vw, 48px);
}

.kicker {
  color: var(--body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 8px;
}

.s-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.s-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 760px;
}

.s-lede {
  margin-top: 16px;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.47;
  color: var(--body);
}

.s-link {
  color: var(--primary);
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.s-link .i {
  font-size: 12px;
}

/* ---------- family tiles ---------- */

.cat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cat-card {
  background: var(--tint);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cat-card:hover {
  transform: none;
  box-shadow: none;
  background: #ececee;
}

.cat-art {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: transparent;
  display: block;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

.cat-art img {
  position: absolute;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: none;
}

.cat-diagram {
  width: 70%;
}

.cat-body {
  padding: 18px 20px 4px;
}

.cat-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cat-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--body);
}

.cat-go {
  margin-top: 14px;
  padding: 0 20px 20px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cat-go .i {
  font-size: 11px;
}

/* ---------- product cards ---------- */

/* /match/ renders the same card in a .match-card wrapper; without these two
   rules the wrapper had no display, so all 29 cards stacked full-bleed and the
   page ran to 37,000 px. */
.match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.match-card {
  display: flex;
  min-width: 0;
}

.match-card[hidden] {
  display: none;
}

.match-card > .p-card {
  width: 100%;
}

.match-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 18px;
}

.match-count {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.p-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.p-card {
  background: var(--tint);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.p-card:hover {
  box-shadow: none;
  transform: none;
}

.p-media {
  position: relative;
  background: var(--tint);
  /* The plates are 4:5 with their own 6% margin. A square box letterboxed them
     into two empty bands and shrank every part by a third. */
  aspect-ratio: 4 / 5;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

/* inset:20px together with width/height:100% made the art 20 px wider and
   taller than its box, so the media clipped it — that is what cut the "Data
   sheet" label off the bottom of every diagram plate. The plates carry their
   own margin, so the art can sit flush. */
.p-art {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}

.p-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-art,
.p-art img {
  width: 100%;
  height: 100%;
}

.p-art img {
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 400ms ease;
}

.pic-cut {
  mix-blend-mode: normal;
}

.p-card:hover .p-art img {
  transform: scale(1.03);
}

.p-badge {
  display: none;
}

.p-compare {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--body);
}

.p-compare:hover {
  background: #fff;
  color: var(--ink);
}

.p-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-kicker {
  color: var(--body);
  font-size: 12px;
  letter-spacing: -0.01em;
  gap: 6px;
}

.p-kicker .p-code {
  color: var(--body);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0;
}

.p-title {
  margin-top: 5px;
  font-size: 21px;
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.p-title a,
.p-title a:hover {
  color: var(--ink);
}

.p-sum,
.p-chips {
  display: none;
}

/* Price and CTA share a 193 px row on the three-up grid, which was too tight:
   "Choose value" wrapped to two lines and the "·" in the pack suffix dangled
   at the end of the first line. The foot stacks instead — the same shape the
   mobile header already uses — so the suffix holds one line and every CTA
   keeps its label on one line at the same width. */
.p-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border: 0;
}

.p-foot .btn {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  justify-content: center;
}

/* The header is sticky at 49 px, so an anchored section landed with its
   heading underneath it — the card CTA opened on a covered "Values and
   prices" heading. */
main [id] {
  scroll-margin-top: 72px;
}

.p-from {
  font-size: 12px;
  color: var(--body);
  display: block;
}

.p-from strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.p-per {
  font-size: 11px;
  color: var(--body);
  margin-top: 2px;
}

.p-quote {
  font-size: 17px;
  font-weight: 600;
}

.p-card-more {
  grid-column: span 2;
  background: #1d1d1f;
  color: #fff;
  padding: 32px;
  justify-content: flex-end;
  border-radius: 18px;
}

.p-more-kicker {
  color: #a1a1a6;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.p-more-title {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.p-more-text {
  color: #a1a1a6;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 10px;
}

.p-more-cta {
  color: #2997ff;
  font-size: 14px;
  margin-top: 18px;
}

/* ---------- match band ---------- */

.match-band {
  background: var(--tint);
  border: 0;
  border-radius: 18px;
  padding: clamp(30px, 4vw, 52px);
  gap: clamp(28px, 4vw, 56px);
}

.match-copy .s-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

/* ---------- promo ---------- */

.promo {
  background: #1d1d1f;
  color: #fff;
  border-radius: 18px;
  padding: clamp(32px, 5vw, 64px);
  border: 0;
}

.promo .kicker {
  color: #a1a1a6;
}

.promo-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 620px;
}

.promo-copy p {
  color: #a1a1a6;
}

.promo .btn-accent {
  background: #0071e3;
}

/* ---------- applications ---------- */

.app-grid {
  gap: 12px;
}

/* Image on top, caption on the surface below — the store-card shape rather
   than white type over a photograph. The old overlay put the lede and the
   series count inside the image and made both unreadable. */
.app-tile {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: auto;
  box-shadow: none;
}

.app-tile::after {
  display: none;
}

/* Rendered parts are 4:5 cutouts; in a 4:3 box with object-fit: cover the
   crop sliced the top of every can. Give the plate its own ratio and letterbox
   inside it. */
.app-tile-art {
  aspect-ratio: 1 / 1;
  flex: none;
  height: auto;
  overflow: hidden;
  background: var(--tint);
  display: grid;
  place-items: center;
}

.app-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-tile:hover .app-tile-art img {
  transform: scale(1.03);
}

.app-tile-body {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 22px 22px;
  color: var(--ink);
}

.app-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-body {
  font-size: 14px;
  line-height: 1.45;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-count {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-count .i {
  width: 11px;
  height: 11px;
}

.app-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- numbers and spec values ---------- */

/* apple.com sets values in SF Pro with tabular figures; mono is reserved for
   strings that are actually codes (CD19A, RFQ-…, a part number). The spec
   table was the last big slab of mono on the product page. */
.spec-table td,
.cart-thumb-spec,
.cart-variant,
.rel-meta,
.m-result-meta,
.series-mini-meta,
.variant-field select,
.cart-line-total,
.cart-sum strong,
.quote-table .num,
.calc-field output,
.calc-mult,
.chip-count {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- why / library ---------- */

.why-grid,
.lib-cards {
  gap: 12px;
}

.why-card,
.lib-card {
  background: var(--tint);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  padding: 30px;
}

.why-card:hover,
.lib-card:hover {
  background: #ececee;
  box-shadow: none;
  transform: none;
}

.why-title,
.lib-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.why-text,
.lib-body p {
  color: var(--body);
  font-size: 14px;
  line-height: 1.45;
}

.lib-no {
  color: var(--body);
  font-family: var(--font);
  font-size: 12px;
}

.lib-go {
  color: var(--primary);
}

/* ---------- newsletter ---------- */

.newsletter-band {
  background: var(--tint);
  color: var(--ink);
  padding-block: clamp(48px, 6vw, 76px);
}

.newsletter-band .kicker {
  color: var(--body);
}

.newsletter-band .news-body {
  color: var(--body);
}

.newsletter-band .news-title {
  color: var(--ink);
  font-weight: 600;
}

.newsletter-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 5px;
}

.newsletter-note {
  color: var(--muted);
}

.newsletter {
  background: var(--tint);
  border-radius: 18px;
  padding: clamp(32px, 5vw, 56px);
}

.news-title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.newsletter-note,
.news-body p {
  color: var(--body);
  font-size: 12px;
}

.newsletter input {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
}

.newsletter input:focus {
  border-color: #0071e3;
}

/* ---------- forms ---------- */

input,
select,
textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  background: #fff;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
  outline: 0;
}

label {
  font-size: 13px;
  color: var(--body);
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--tint);
  border-top: 1px solid var(--line);
  padding: 40px 0 26px;
  font-size: 12px;
  color: var(--body);
}

.foot-top {
  gap: 40px;
  padding-bottom: 28px;
}

.foot-brand .brand-name {
  font-size: 15px;
}

.foot-line,
.foot-contact {
  font-size: 12px;
  color: var(--body);
  line-height: 1.5;
}

.foot-contact a {
  color: var(--primary);
}

.f-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.f-col a {
  font-size: 12px;
  color: var(--body);
}

.f-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.foot-legal {
  gap: 18px;
}

.foot-legal a {
  color: var(--muted);
}

/* ---------- product detail ---------- */

.product {
  gap: clamp(32px, 5vw, 72px);
}

.product-media {
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: 8px;
}

.product-media-badge {
  display: none;
}

.gallery-main {
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.gallery-thumb {
  border: 1px solid transparent;
  border-radius: 8px;
}

.gallery-thumb[aria-pressed='true'] {
  border-color: var(--ink);
  box-shadow: none;
}

.product-kicker {
  color: var(--body);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.product-h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.05;
}

.product-lede {
  color: var(--body);
  font-size: 17px;
}

.product-chips span {
  background: var(--tint);
  border: 0;
  color: var(--body);
  font-size: 12px;
  padding: 6px 11px;
}

.buy-box {
  background: var(--tint);
  border: 0;
  border-radius: 18px;
  padding: 24px;
}

.buy-price {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.buy-price span {
  font-size: 13px;
  color: var(--body);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.buy-form select,
.buy-form input {
  background: #fff;
}

.qty-stepper {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 980px;
}

.buy-links {
  font-size: 12px;
  gap: 16px;
}

.buy-trust {
  font-size: 12px;
  color: var(--body);
}

.buy-trust .i {
  color: var(--body);
}

.sticky-buy {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  box-shadow: none;
  padding-top: 10px;
  padding-bottom: 10px;
}

.sticky-price {
  font-size: 15px;
}

.sticky-code {
  color: var(--body);
  font-family: var(--font);
}

.series-grid {
  gap: clamp(32px, 5vw, 64px);
}

.block-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.spec-table th,
.sku-table th {
  color: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.spec-table td,
.sku-table td {
  font-size: 14px;
}

.spec-table tr,
.sku-table tr {
  border-color: var(--line);
}

.sku-table thead th {
  background: var(--tint);
}

.aside-card {
  background: var(--tint);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  padding: 24px;
}

.aside-title {
  font-size: 19px;
  font-weight: 600;
}

.doc-list a,
.rel-list a {
  font-size: 14px;
}

/* ---------- catalogue ---------- */

.page-head .kicker {
  margin-bottom: 6px;
}

.crumbs {
  margin: 28px 0 0;
  font-size: 12px;
  color: var(--body);
}

.crumbs a {
  color: var(--body);
}

.crumbs a:hover {
  color: var(--primary);
}

.catalogue {
  gap: clamp(24px, 4vw, 48px);
}

.filter-panel {
  background: var(--tint);
  border: 0;
  border-radius: 18px;
  padding: 22px;
}

.filter-title {
  font-size: 15px;
  font-weight: 600;
}

.filter-group h3 {
  font-size: 12px;
  color: var(--body);
}

.filter-chip {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 13px;
}

.filter-chip[aria-pressed='true'],
.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.sort-select,
.compare-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 980px;
  font-size: 13px;
}

/* ---------- pricing ---------- */

.price-table,
.sku-table,
table {
  border-color: var(--line);
}

.price-series h2,
.price-series h3 {
  font-size: 24px;
  font-weight: 600;
}

.price-table th {
  background: var(--tint);
  color: var(--body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price-table th[scope='row'],
.sku-table th[scope='row'] {
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
}

.price-table th[scope='row'] a,
.sku-table th[scope='row'] a {
  color: var(--ink);
}

.price-table th[scope='row'] a:hover,
.sku-table th[scope='row'] a:hover {
  color: var(--primary);
}

.price-table td {
  font-size: 14px;
}

/* ---------- dialogs ---------- */

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.search-panel,
.compare-panel,
.cart-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.cart-panel {
  border-radius: 18px 0 0 18px;
}

.cart-head h2 {
  font-size: 28px;
  font-weight: 600;
}

.cart-title {
  font-size: 15px;
  font-weight: 600;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav ul {
    gap: 20px;
  }

  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .head-in {
    min-height: 48px;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    transform: none;
    display: none;
    padding: 8px var(--gutter) 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav[data-open='true'] {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav a {
    display: block;
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle-label {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-card {
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }

  .hero-card img {
    height: 90%;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .stat {
    padding: 22px 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(-n + 2) {
    border-top: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .s-title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .p-card-more {
    padding: 24px;
  }

  .p-more-title {
    font-size: 24px;
  }

  .product-media {
    padding: 10px;
  }

  .site-foot {
    padding-top: 28px;
  }
}

@media (max-width: 600px) {
  .announce-item:nth-child(2),
  .announce-item:nth-child(3) {
    display: none;
  }

  .announce-in {
    min-height: 34px;
    gap: 0;
  }

  .hero-h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
    letter-spacing: -0.04em;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-cta .btn-ghost {
    padding-block: 4px;
  }

  .p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-body {
    padding: 16px;
  }

  .p-title {
    font-size: 17px;
  }

  .p-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .p-foot .btn {
    padding: 7px 13px;
    font-size: 12px;
  }

  .p-from strong {
    font-size: 15px;
  }

  .p-media {
    aspect-ratio: 1 / 1;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-name {
    font-size: 15px;
  }

  .p-title {
    font-size: 20px;
  }

  .newsletter,
  .match-band,
  .promo {
    border-radius: 14px;
  }

  .buy-box {
    padding: 18px;
  }

  .gallery-thumb {
    width: 56px;
    height: 70px;
  }
}

/* ------------------------------------------------------------------
   Type scale and grid width
   ------------------------------------------------------------------
   The layer above reset colours and surfaces but left the sizes ad hoc:
   three H1 sizes in two weights (83 / 86 / 58 px, at 600 and 800) and seven
   H2 sizes between 16 and 54 px. apple.com runs three display steps and never
   goes past 600 on a heading. Everything below collapses onto that scale.
   ------------------------------------------------------------------ */

:root {
  --fs-display: clamp(2.5rem, 4.4vw, 4rem);   /* 40 → 64 */
  --fs-section: clamp(1.9rem, 3.1vw, 3rem);   /* 30 → 48 */
  --fs-sub: clamp(1.25rem, 1.8vw, 1.6rem);    /* 20 → 26 */
}

/* page titles: one size, one weight, sitewide */
.page-h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  max-width: 22ch;
}

.hero-h1 {
  font-size: clamp(2.75rem, 5.2vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.product-h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
}

/* section heads: one size */
.s-title,
.promo-title {
  font-size: var(--fs-section);
  letter-spacing: -0.022em;
  font-weight: 600;
}

.product-h1,
.block-title {
  font-weight: 600;
}

/* the half-width bands sit one step down */
.match-copy .s-title,
.news-title {
  font-size: var(--fs-sub);
  letter-spacing: -0.02em;
}

.block-title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.price-group-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Cards: the catalogue rail left 736 px for three columns, so every card was
   237 px wide with a 21 px title. apple.com gives a tile 320–400 px. */
.wrap.shop-layout {
  max-width: 1280px;
}

.p-grid,
.match-grid {
  gap: 16px;
}

.p-title {
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ------------------------------------------------------------------
   Type scale and grid width
   ------------------------------------------------------------------
   The layer above reset colours and surfaces but left the sizes ad hoc:
   three H1 sizes in two weights (83 / 86 / 58 px, at 600 and 800) and seven
   H2 sizes between 16 and 54 px. apple.com runs three display steps and never
   goes past 600 on a heading. Everything below collapses onto that scale.
   ------------------------------------------------------------------ */

:root {
  --fs-display: clamp(2.5rem, 4.4vw, 4rem);   /* 40 → 64 */
  --fs-section: clamp(1.9rem, 3.1vw, 3rem);   /* 30 → 48 */
  --fs-sub: clamp(1.25rem, 1.8vw, 1.6rem);    /* 20 → 26 */
}

/* page titles: one size, one weight, sitewide */
.page-h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  max-width: 22ch;
}

.hero-h1 {
  font-size: clamp(2.75rem, 5.2vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.product-h1 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.025em;
}

/* section heads: one size */
.s-title,
.promo-title {
  font-size: var(--fs-section);
  letter-spacing: -0.022em;
  font-weight: 600;
}

.product-h1,
.block-title {
  font-weight: 600;
}

/* the half-width bands sit one step down */
.match-copy .s-title,
.news-title {
  font-size: var(--fs-sub);
  letter-spacing: -0.02em;
}

.block-title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.price-group-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Cards: the catalogue rail left 736 px for three columns, so every card was
   237 px wide with a 21 px title. apple.com gives a tile 320–400 px. */
.wrap.shop-layout {
  max-width: 1280px;
}

.p-grid,
.match-grid {
  gap: 16px;
}

.p-title {
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* The diagram plate is 288 px wide now; at 34% the construction drawing was
   a stamp in the middle of a big white disc. */
.p-art-spec .diagram {
  width: 46%;
  height: 46%;
}

.p-art-spec {
  background:
    radial-gradient(circle at 50% 46%, #fff 0 34%, transparent 35%),
    repeating-linear-gradient(0deg, rgba(29, 29, 31, 0.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(29, 29, 31, 0.05) 0 1px, transparent 1px 24px);
}

/* The diagram plate is 288 px wide now; at 34% the construction drawing was
   a stamp in the middle of a big white disc. */
.p-art-spec .diagram {
  width: 46%;
  height: 46%;
}

.p-art-spec {
  background:
    radial-gradient(circle at 50% 46%, #fff 0 34%, transparent 35%),
    repeating-linear-gradient(0deg, rgba(29, 29, 31, 0.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(29, 29, 31, 0.05) 0 1px, transparent 1px 24px);
}

/* ------------------------------------------------------------------
   Wide tables on a narrow screen
   ------------------------------------------------------------------
   A grid column sized auto takes the table's min-content, so /pricing/ ran
   651 px wide inside a 390 px viewport and the page scrolled sideways. The
   tables keep their columns and scroll inside their own box instead.
   ------------------------------------------------------------------ */

.price-list {
  grid-template-columns: minmax(0, 1fr);
}

.table-wrap {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .series-table,
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ------------------------------------------------------------------
   Wide tables on a narrow screen
   ------------------------------------------------------------------
   A grid column sized auto takes the table's min-content, so /pricing/ ran
   651 px wide inside a 390 px viewport and the page scrolled sideways. The
   tables keep their columns and scroll inside their own box instead.
   ------------------------------------------------------------------ */

.price-list {
  grid-template-columns: minmax(0, 1fr);
}

.table-wrap {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .series-table,
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* A hidden overlay (the toast lives inside the tray markup) sat past the right
   edge and gave /pricing/ 210 px of horizontal scroll on a phone. clip does
   not create a scroll container, so the sticky header keeps working. */
html {
  overflow-x: clip;
}

/* A hidden overlay (the toast lives inside the tray markup) sat past the right
   edge and gave /pricing/ 210 px of horizontal scroll on a phone. clip does
   not create a scroll container, so the sticky header keeps working. */
html {
  overflow-x: clip;
}

/* The hero row is a 1560x380 composite. The card's own aspect ratio and the
   picture wrapper (height 100%) came from the old hand-made PNG and turned
   the box into a 1,290 px column around a 250 px image. Size the box to the
   image instead. */
.hero-card {
  aspect-ratio: auto;
  display: block;
}

.hero-card picture {
  display: block;
  height: auto;
  aspect-ratio: auto;
}

.hero-card img.hero-lineup,
.hero-card .hero-lineup {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.hero-media {
  margin-top: clamp(18px, 2.4vw, 30px);
}

@media (max-width: 700px) {
  .hero-card {
    border-radius: 18px;
  }

  .hero-card img {
    width: 100%;
    height: auto;
  }
}

/* The hero row is a 1560x380 composite. The card's own aspect ratio and the
   picture wrapper (height 100%) came from the old hand-made PNG and turned
   the box into a 1,290 px column around a 250 px image. Size the box to the
   image instead. */
.hero-card {
  aspect-ratio: auto;
  display: block;
}

.hero-card picture {
  display: block;
  height: auto;
  aspect-ratio: auto;
}

.hero-card img.hero-lineup,
.hero-card .hero-lineup {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.hero-media {
  margin-top: clamp(18px, 2.4vw, 30px);
}

@media (max-width: 700px) {
  .hero-card {
    border-radius: 18px;
  }

  .hero-card img {
    width: 100%;
    height: auto;
  }
}

/* ------------------------------------------------------------------
   Application pages
   ------------------------------------------------------------------
   The plant photo used to be a 4:5 frame sitting in the header grid, so the
   title got pushed 400 px down to align its baseline with the photograph.
   A rendered part is an object, not a photo: it gets a square plate with the
   caption under it, and the header aligns to the top.
   ------------------------------------------------------------------ */

.app-head {
  align-items: start;
}

.app-head .plant-photo {
  align-self: start;
}

.plant-photo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plant-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center bottom;
  background: var(--tint);
  border-radius: 18px;
  border: 0;
}

.plant-photo figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 0;
}

/* factory plates keep their photograph crop */
.plant-photo.is-photo img {
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 18px;
}

.app-head > div:first-child {
  padding-top: 34px;
}

/* The product plates are renderings, not photographs: say so on the page. */
.gallery-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Cross-reference / replacement guide ---------------------------------- */
.xref-jump {
  padding: 4px 0 8px;
}
.xref-jump-label,
.xref-ref span {
  display: block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.xref-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xref-jump li a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}
.xref-jump li a:hover {
  border-color: var(--line-strong);
  background: var(--tint);
}

.xref-swipe {
  display: none;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .xref-swipe {
    display: block;
  }
  .xref-group .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .xref-group .data-table {
    display: table;
    min-width: 560px;
    overflow-x: visible;
  }
  .xref-group .data-table caption {
    text-align: left;
  }
}
.xref-checks,
.xref-groups,
.xref-sources,
.xref-faq,
.xref-cta {
  padding-top: 56px;
}
.xref-checks-lede,
.xref-sources > p,
.xref-cta-in p {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}
.xref-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.xref-check {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.xref-check-n {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.xref-check h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.xref-check p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
}

.xref-group {
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}
.xref-group-head {
  max-width: 860px;
  margin-bottom: 18px;
}
.xref-group-head > p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.xref-ref {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--tint);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.xref-ref span {
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--muted);
}
.xref-group .note {
  margin: 14px 0 0;
}
.xref-group .data-table a {
  font-weight: 600;
  color: var(--ink);
}

.xref-source-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.xref-source-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.xref-source-list a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.xref-source-list p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.xref-faq .faq {
  max-width: 860px;
}

.xref-cta {
  padding-bottom: 80px;
}
.xref-cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 40px;
  border-radius: 22px;
  background: var(--tint);
}
.xref-cta-in h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.xref-cta-in p {
  margin-bottom: 0;
}
.xref-cta-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
@media (max-width: 900px) {
  .xref-cta-in {
    flex-direction: column;
    align-items: stretch;
    padding: 28px;
  }
  .xref-checks,
  .xref-groups,
  .xref-sources,
  .xref-faq,
  .xref-cta {
    padding-top: 40px;
  }
}

/* ------------------------------------------------------------------
   Real factory photographs
   Frames from the plant's walkthrough videos, cropped to 3:2. They are
   documentary evidence, so they get a plain photographic frame — not the
   tinted product plate used for the rendered capacitor images.
   ------------------------------------------------------------------ */

.plant-photo.is-factory img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
}

.factory-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.factory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.factory-head .s-lede {
  max-width: 62ch;
  margin-bottom: 0;
}

.factory-head .link-arrow {
  flex: none;
}

.factory-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.factory-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}

.factory-shot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.factory-shot picture {
  display: block;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.factory-shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.factory-shot--lead img {
  aspect-ratio: auto;
}

.factory-shot figcaption {
  padding-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .factory-grid {
    grid-template-columns: 1fr;
  }
  .factory-col {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .factory-shot--lead img {
    aspect-ratio: 16 / 9;
  }
  .factory-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .factory-col {
    grid-template-columns: 1fr;
  }
  .factory-shot--lead img {
    aspect-ratio: 3 / 2;
  }
}

/* Full-catalogue export on /datasheets/ */
.catalog-dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.catalog-dl > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}

.catalog-dl h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.catalog-dl p {
  margin: 0;
  max-width: 62ch;
}

.catalog-dl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 640px) {
  .catalog-dl {
    padding: 18px;
  }
}

/* ------------------------------------------------------------------
   Original-photo hero (restored from the phone photography)
   The launch build sized the hero for a wide Blender composite. A 4:5
   photograph needs a centred card of its own ratio instead.
   ------------------------------------------------------------------ */
.hero-media {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(100%, 520px);
  max-width: 520px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  display: block;
  overflow: hidden;
}

.hero-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .hero-card {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
  }

  .hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ------------------------------------------------------------------
   Direction A: one Apple-style action system
   The launch build re-enabled the header quote pill and stretched every
   card CTA to the full column. Keep the header to search + bag, and let
   the card CTA stay a small pill next to the price.
   ------------------------------------------------------------------ */
.head-cta {
  display: none !important;
}

.p-foot {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.p-foot .btn {
  width: auto;
  min-width: 0;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .p-foot {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .p-foot .btn {
    width: auto;
    padding: 7px 13px;
    font-size: 12px;
  }
}

/* ------------------------------------------------------------------
   JINCON Assist — catalogue chat
   ------------------------------------------------------------------ */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 11px 14px;
  border: 0;
  border-radius: 980px;
  background: #1d1d1f;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.chat-fab svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.chat-fab:hover {
  background: #0071e3;
}

@media (min-width: 701px) {
  body:has([data-sticky-buy]:not([hidden])) .chat-fab {
    bottom: 92px;
  }
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 96;
  width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.chat-panel[hidden] {
  display: none;
}

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.chat-kicker {
  color: var(--body);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-head h2 {
  margin: 1px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--body);
  font-size: 11px;
}

.chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
}

.chat-log {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}

.chat-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.chat-msg p + p {
  margin-top: 6px;
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--tint);
  color: var(--ink);
  border-bottom-left-radius: 5px;
}

.chat-msg-user {
  align-self: flex-end;
  background: #0071e3;
  color: #fff;
  border-bottom-right-radius: 5px;
}

.chat-msg a {
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-msg-user a {
  color: #fff;
}

.chat-soft {
  color: var(--body);
}

.chat-meta {
  color: var(--body);
  font-size: 11px;
}

.chat-list {
  margin: 6px 0 2px;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.chat-list li {
  line-height: 1.35;
}

.chat-msg-typing {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  min-height: 30px;
}

.chat-msg-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--body);
  animation: chat-blink 1s infinite ease-in-out;
}

.chat-msg-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-msg-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-1px); }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 14px 10px;
}

.chat-chip {
  border: 1px solid var(--line);
  border-radius: 980px;
  background: #fff;
  color: var(--ink);
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}

.chat-chip:hover {
  border-color: var(--ink);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 980px;
  background: var(--tint);
  padding: 10px 14px;
  font-size: 13px;
}

.chat-form input:focus {
  background: #fff;
  border-color: #0071e3;
}

.chat-send {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #0071e3;
  color: #fff;
  cursor: pointer;
}

.chat-send .i {
  font-size: 14px;
}

.chat-note {
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

@media (max-width: 700px) {
  .chat-fab {
    right: 16px;
    bottom: 88px;
    padding: 10px 15px 10px 12px;
  }

  .chat-panel {
    inset: 0;
    width: 100%;
    max-height: none;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    z-index: 110;
  }

  body.chat-open {
    overflow: hidden;
  }

  body.chat-open .chat-fab {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-msg-typing span {
    animation: none;
  }
}

/* ------------------------------------------------------------------
   Solutions + decision brief
   ------------------------------------------------------------------ */
.solutions-head {
  padding-top: 40px;
  padding-bottom: 8px;
}

.solutions-list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
  padding: clamp(28px, 4vw, 48px) 0 var(--section);
}

.solution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.solution:nth-child(even) .solution-media {
  order: 2;
}

.solution-media {
  background: var(--tint);
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
}

.solution-media picture,
.solution-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.solution-media img {
  mix-blend-mode: multiply;
}

.solution-copy h2 {
  margin: 4px 0 10px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.06;
}

.solution-job {
  max-width: 58ch;
  color: var(--body);
  font-size: 17px;
  line-height: 1.5;
}

.solution-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
  margin: 22px 0 18px;
  border-top: 1px solid var(--line);
}

.solution-specs > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.solution-specs dt {
  color: var(--body);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.solution-specs dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.solution-checks h3 {
  color: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.solution-checks ul {
  margin-top: 6px;
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.solution-checks li {
  padding-left: 14px;
  position: relative;
}

.solution-checks li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--body);
}

.solution-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.solution-send {
  margin-top: 18px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.45;
}

.solution-send strong {
  color: var(--ink);
  font-weight: 500;
}

.solutions-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.solutions-cta-actions {
  display: flex;
  gap: 12px;
  flex: none;
}

.hero-brief {
  background: var(--tint);
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(40px, 5vw, 64px) 0;
}

.hero-brief-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.brief-lead h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.07;
}

.brief-lead p {
  max-width: 42ch;
  color: var(--body);
  font-size: 15px;
  line-height: 1.5;
}

.brief-checks h3,
.brief-send h3 {
  color: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brief-checks ul {
  margin-top: 10px;
  display: grid;
  gap: 7px;
  font-size: 14px;
  line-height: 1.4;
}

.brief-checks li {
  padding-left: 14px;
  position: relative;
}

.brief-checks li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--body);
}

.brief-send p {
  margin-top: 10px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.45;
}

.brief-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .solution,
  .hero-brief-grid {
    grid-template-columns: 1fr;
  }

  .solution:nth-child(even) .solution-media {
    order: 0;
  }

  .solution-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solutions-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .solutions-cta-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .solution-media {
    aspect-ratio: 1 / 1;
  }

  .solution-specs {
    grid-template-columns: 1fr 1fr;
  }

  .solution-actions {
    flex-wrap: wrap;
  }
}
