/* Apple-style theme shared by every page except the home-specific hero. Loaded after site.css. */

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --navy: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: #d2d2d7;
  --surface: #f5f5f7;
  --panel: #ffffff;
  --panel-hover: #e8e8ed;
  --stage: #ffffff;
  --photo-line: transparent;
  --page: 76rem;
  --aw-font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI",
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --aw-section: clamp(4.5rem, 9vw, 8rem);
  --aw-r-tile: 20px;
  --aw-r-stage: 28px;
  --aw-r-pill: 980px;
  --aw-shadow-hover: 0 14px 36px rgb(0 0 0 / .12);
  --aw-mono: "Cascadia Mono", Consolas, monospace;
  font-family: var(--aw-font);
  background: var(--canvas);
  color: var(--ink);
}

h1, h2 { letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1.06; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.12; font-weight: 600; }
h3 { letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-block-start: 4.75rem; }

/* Chrome */

.skip-link {
  z-index: 60;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgb(0 0 0 / .12);
  color: var(--ink);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: rgb(255 255 255 / .86);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgb(0 0 0 / .04);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header, .header.is-scrolled { background: #fff; }
}
@media (prefers-reduced-transparency: reduce) {
  .header, .header.is-scrolled { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.header-inner { min-height: 3rem; gap: 1rem; }
.brand span { font-weight: 600; letter-spacing: -.01em; }
.main-nav { gap: clamp(.5rem, 1.8vw, 1.6rem); }
.main-nav a {
  min-height: 2.5rem;
  padding: .15rem .75rem;
  border-bottom: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
}
.main-nav .current { border-bottom: 0; color: var(--ink); font-weight: 600; }
.header-contact {
  min-height: 2.5rem;
  padding: .45rem 1rem;
  border-color: transparent;
  border-radius: var(--aw-r-pill);
  background: var(--accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  flex: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .22s cubic-bezier(.28, .11, .32, 1);
}
.header.is-menu-open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.header.is-menu-open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Nav flyouts */

.nav-item { display: flex; align-items: stretch; }
.nav-flyout { display: none; }

@media (min-width: 45.01rem) and (hover: hover) and (pointer: fine) {
  .nav-flyout {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 3.4vw, 2.75rem);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px rgb(0 0 0 / .08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .28s cubic-bezier(.28, .11, .32, 1), visibility .22s;
  }
  .nav-item.is-open > a { color: var(--ink); }
  .nav-item.is-open .nav-flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-flyout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(10rem, .75fr);
    gap: 1.75rem 2.5rem;
  }
  .nav-flyout-col { min-width: 0; }
  .nav-flyout-eyebrow {
    margin: 0 0 .65rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
  }
  .main-nav .nav-flyout a {
    display: block;
    min-height: 0;
    padding: .22rem 0;
    border: 0;
    border-radius: 0;
    color: #424245;
    font-size: .875rem;
    line-height: 1.4;
    white-space: normal;
  }
  .main-nav .nav-flyout a:hover { color: var(--accent); }
  .nav-flyout-col--quick {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: clamp(1.5rem, 2.5vw, 2.5rem);
  }
  .nav-flyout-card { padding: .5rem .6rem; margin-inline: -.6rem; border-radius: 10px; }
  .nav-flyout-card + .nav-flyout-card { margin-block-start: .35rem; }
  .nav-flyout-card strong { display: block; color: var(--ink); font-weight: 500; }
  .nav-flyout-card span { display: block; margin-block-start: .1rem; color: var(--muted); font-size: .8rem; }
  .main-nav .nav-flyout-card:hover { background: var(--surface); }
  .nav-flyout-card:hover strong { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-flyout { transition: none; }
}

/* Buttons */

.button {
  min-height: 3rem;
  padding: .7rem 1.5rem;
  border-radius: var(--aw-r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
}
.button-outline { border-color: var(--accent); background: transparent; color: var(--accent); }

/* Page hero */

.page-hero {
  background: #fff;
  border-bottom: 0;
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(1.25rem, 2.5vw, 2rem);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero h1::before { content: none; display: none; }
.page-hero p {
  margin-block-start: .9rem;
  max-width: 44em;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.22rem);
  line-height: 1.55;
}

/* Sections */

.section { padding-block: var(--aw-section); }
.section-head { align-items: end; margin-block-end: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head p { font-size: 1.0625rem; }
.text-link { font-weight: 500; text-decoration: none; }
.text-link::after { content: " \203A"; }
.row-link { font-weight: 500; text-decoration: none; }

/* Jump pills */

.section-links {
  position: sticky;
  top: var(--header-h, 3rem);
  z-index: 40;
  background: rgb(255 255 255 / .88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgb(0 0 0 / .06);
  padding-block: .5rem;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .section-links { background: #fff; }
}
@media (prefers-reduced-transparency: reduce) {
  .section-links { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
:is(.section-links ~ [id], .section-links ~ * [id]) {
  scroll-margin-block-start: calc(var(--header-h, 3rem) + 4rem);
}
@media (max-width: 45rem) {
  .section-links .jump-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .section-links .jump-list::-webkit-scrollbar { display: none; }
  .section-links .jump-list > li { flex: 0 0 auto; }
  .section-links .jump-list a { white-space: nowrap; }
}
.jump-list { gap: .5rem; }
.jump-list a {
  min-height: 2.5rem;
  padding: .45rem 1rem;
  border: 0;
  border-radius: var(--aw-r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: .9rem;
}
.jump-list span { color: var(--muted); }

/* Catalog + product cards */

.catalog { background: var(--surface); padding-block: var(--aw-section); }
.catalog-group + .catalog-group {
  margin-block-start: var(--aw-section);
  border-top: 0;
  padding-block-start: 0;
}
.catalog-group > h2 { margin-block-end: clamp(1.5rem, 3vw, 2.25rem); }

.family-grid, .product-grid { gap: clamp(1rem, 2vw, 1.5rem); }
.family-card, .product-card {
  border: 1px solid transparent;
  border-radius: var(--aw-r-tile);
  background: #fff;
  overflow: clip;
}
.family-photo, .product-photo {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 3;
  border-bottom: 0;
  background: #fff;
}
.family-photo img, .product-photo img { position: absolute; inset: 0; padding: 9% 11%; }
.family-info, .product-info { padding: 1.5rem 1.5rem 1.9rem; text-align: center; }
.family-info h3, .product-info h3 { font-size: 1.35rem; }
.family-info p, .product-info p { margin-block-start: .45rem; font-size: .95rem; }
.family-info .row-link { margin-block-start: .9rem; }
.product-card { position: relative; }
.product-info h3 a { color: inherit; text-decoration: none; }
.product-info h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.1rem;
  margin-block-start: .85rem;
}
.product-links .row-link { font-size: .9rem; }
.product-links .row-link:hover { text-decoration: underline; }

/* Detail pages */

.detail-hero { background: #fff; border-bottom: 0; }
.crumbs { padding-block: 1.25rem 0; color: var(--muted); font-size: .85rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs span[aria-hidden] { color: var(--line); }
.detail-layout { padding-block: 1.25rem clamp(2.5rem, 5vw, 4.5rem); }
.detail-layout h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.detail-layout .description { margin-block-start: .9rem; max-width: 35em; color: var(--muted); font-size: 1.05rem; }
.model { margin-block-end: .5rem; color: var(--accent); font-family: var(--aw-mono); font-weight: 600; font-size: .9rem; letter-spacing: .01em; }
.detail-photo { height: clamp(14rem, 28vw, 22rem); border: 0; border-radius: var(--aw-r-tile); background: #fff; }
.detail-photo img { padding: 1.75rem; }

/* Detail stats + showcase */

.stat-strip-band { background: var(--surface); }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  list-style: none;
  text-align: center;
}
.stat-strip li { display: grid; gap: .35rem; justify-items: center; }
.stat-strip strong {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat-strip span { color: var(--muted); font-size: .92rem; }

.showcase-media { margin: 0; }
.showcase-media img { display: block; width: 100%; height: clamp(15rem, 32vw, 26rem); object-fit: cover; }
.showcase-copy {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.showcase-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.showcase-copy p { margin-block-start: .8rem; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }

.spec-footnote { margin-block-start: .9rem; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.showcase-copy .text-link { display: inline-block; margin-block-start: 1rem; }

.detail-body { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.detail-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.detail-body h3 { margin-block: 1.4rem .6rem; }
.detail-body p, .detail-body li, .component p { color: #424245; }
.detail-body li::marker { color: var(--accent); }
.detail-body .spec-note { border-inline-start-color: var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; }

.spec-table { background: transparent; font-size: .95rem; }
.spec-table td, .spec-table th { padding: .72rem .85rem; border-bottom: 1px solid var(--line); }
.spec-table tbody tr:nth-child(even) { background: transparent; }
.spec-table th[scope="row"] { color: var(--muted); font-weight: 500; }
.spec-table .spec-group { background: var(--surface); color: var(--ink); font-weight: 600; }

.component-grid { gap: clamp(1rem, 2vw, 1.5rem); }
.component { border: 1px solid transparent; border-radius: var(--aw-r-tile); background: var(--surface); }
.component img { background: #fff; border-radius: 12px; }

/* Solutions */

.solution-row + .solution-row { border-top: 0; }
.solution-image { border: 0; border-radius: var(--aw-r-tile); }
.related .jump-list a { background: var(--surface); color: var(--accent); }

/* Download */

.download-row {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 0;
  border-radius: var(--aw-r-tile);
  background: var(--surface);
}

/* Sitemap + legal */

.section-compact { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.section-compact h2 { margin-block-end: 0; }
.section .jump-list { margin-block-start: 1.25rem; }
.prose { max-width: 46rem; }
.prose p { color: #424245; line-height: 1.65; }
.prose p + p { margin-block-start: 1rem; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* Footer */

.footer {
  background: var(--surface);
  border-top: 0;
  color: var(--muted);
}
.footer-grid {
  grid-template-columns: 1.05fr .55fr .55fr 1.15fr;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  gap: 2rem 2.5rem;
}
@media (max-width: 58rem) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .footer-grid > div:nth-child(3) { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(3) nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
}
.footer h2 { font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-bottom :is(a, small) { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* Interaction states */

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { border-bottom: 0; color: var(--ink); }
  .header-contact:hover { border-color: transparent; background: var(--accent-hover); color: #fff; }
  .button:not(.button-outline):hover { background: var(--accent-hover); }
  .button-outline:hover {
    border-color: var(--accent);
    background: rgb(0 113 227 / .08);
    color: var(--accent);
  }
  .family-card:hover, .product-card:hover {
    border-color: transparent;
    background: #fff;
    box-shadow: var(--aw-shadow-hover);
    transform: none;
  }
  .family-card:hover h3, .product-card:hover h3 { color: var(--ink); text-decoration: none; }
  .family-card:hover .row-link { color: var(--accent); text-decoration: none; }
  .jump-list a:hover { border-color: transparent; background: var(--panel-hover); color: var(--ink); }
  .text-link:hover { color: var(--accent-hover); }
}

/* Motion */

@keyframes aw-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .page-hero h1 { animation: aw-rise .6s cubic-bezier(.28, .11, .32, 1) both; }
  .page-hero p { animation: aw-rise .65s cubic-bezier(.28, .11, .32, 1) .06s both; }
  .section-arrived { animation: aw-rise .6s cubic-bezier(.28, .11, .32, 1) both; }

  .family-photo img, .product-photo img { transition: transform .4s cubic-bezier(.28, .11, .32, 1); }
  .family-card:hover .family-photo img,
  .product-card:hover .product-photo img { transform: scale(1.02); }

  .button, .header-contact, .main-nav a, .text-link, .jump-list a,
  .family-card, .product-card {
    transition: transform 100ms ease-out, background-color .2s ease,
      border-color .2s ease, color .2s ease, box-shadow .3s ease;
  }
  .button:active, .header-contact:active { transform: scale(.96); }
  .family-card:active, .product-card:active { transform: scale(.985); }
}

@media (prefers-reduced-motion: reduce) {
  .button, .header-contact, .main-nav a, .text-link, .jump-list a,
  .family-card, .product-card,
  .family-photo img, .product-photo img {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  }
  .button:active, .header-contact:active,
  .family-card:active, .product-card:active { transform: none; }
  .family-card:hover .family-photo img,
  .product-card:hover .product-photo img { transform: none; }
}

/* Narrow screens */

@media (max-width: 45rem) {
  .header { background: rgb(255 255 255 / .88); }
  .header.is-menu-open { background: #fff; }
  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    gap: .5rem;
    padding-block: .35rem;
  }
  .brand { margin-inline-end: auto; }
  .header-contact { order: 1; padding-inline: .85rem; font-size: .82rem; }
  .nav-toggle { display: inline-flex; order: 2; }
  .main-nav {
    position: absolute;
    inset-inline: -.25rem;
    top: 100%;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: .25rem 1rem .75rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    background: #fff;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 40px rgb(0 0 0 / .08);
  }
  .header.is-menu-open .main-nav { display: flex; }
  .main-nav a {
    width: 100%;
    min-height: 3rem;
    padding: .35rem .25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1rem;
  }
  .main-nav a:last-child { border-bottom: 0; }
  .page-hero { padding-block: 2.25rem 1rem; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .detail-photo { border-radius: 16px; }
  .family-info, .product-info { padding: 1.1rem 1rem 1.4rem; }
  .family-info h3, .product-info h3 { font-size: 1.08rem; }
  .family-photo img, .product-photo img { padding: 8% 9%; }
  .catalog { padding-block: 3rem; }
  .stat-strip { gap: .5rem; padding-block: 1.5rem; }
  .stat-strip strong { font-size: 1.3rem; }
  .stat-strip span { font-size: .8rem; }
  .showcase-media img { height: 13rem; }
}
