:root {
  --az-bg: #f7f8fa;
  --az-surface: #fff;
  --az-soft: #e5e8ee;
  --az-text: #18191c;
  --az-body: #454c59;
  --az-muted: #626a79;
  --az-border: #d7dce5;
  --az-link: #2057b8;
  --az-panel: linear-gradient(115deg, #eaf4ef, #eef0fa 65%, #eee8ff);
}
:root[data-theme="dark"] {
  --az-bg: #18191c;
  --az-surface: #22252b;
  --az-soft: #2a2f38;
  --az-text: #f7f8fa;
  --az-body: #d6dce5;
  --az-muted: #bbc3d0;
  --az-border: #454c59;
  --az-link: #afcbef;
  --az-panel: linear-gradient(115deg, #253b35, #252c40 65%, #342b44);
}
html {
  scroll-padding-top: 110px;
}
body.arzen-site,
.az-home {
  background: var(--az-bg) !important;
  color: var(--az-text) !important;
}
.az-header {
  background: var(--az-bg);
  color: var(--az-text);
  border-color: var(--az-border);
  gap: 20px;
}
.az-header nav {
  gap: 22px;
}
.az-header nav a:hover {
  color: var(--az-link);
}
.az-header arzen-theme {
  flex-shrink: 0;
}
.az-header .az-logo img {
  width: 155px;
}
.az-floating-theme {
  position: fixed;
  right: 18px;
  top: 12px;
  z-index: 10000;
}
:root[data-theme="dark"] :is(.az-logo img, .az-footer-logo) {
  filter: invert(1);
}
.az-hero h1,
.az-tagline {
  color: var(--az-text) !important;
}
.az-hero h1 span,
.az-link,
.az-product-copy small,
.az-values span {
  color: var(--az-link);
}
.az-eyebrow,
.az-lede,
.az-rule,
.az-story p,
.az-story-page p,
.az-footer p {
  color: var(--az-body);
}
.az-section-head p,
.az-product-copy p,
.az-values p,
.az-note,
.az-signature span,
.az-footer-bottom span {
  color: var(--az-muted);
}
.az-product {
  background: var(--az-surface);
  border-color: var(--az-border);
}
.az-story {
  background: var(--az-panel);
}
.az-footer {
  background: var(--az-soft);
  color: var(--az-text);
}
.az-rule,
.az-footer-bottom {
  border-color: var(--az-border);
}
.az-button.secondary,
.az-cart {
  color: var(--az-text);
  border-color: var(--az-border);
}
.az-subscribe input {
  background: var(--az-surface);
  color: var(--az-text);
  border-color: var(--az-border);
}
.az-skip {
  background: var(--az-surface);
  color: var(--az-text);
}
.az-wide-hero {
  padding: 64px 0 32px;
}
.az-wide-hero .az-hero-art {
  border-radius: 24px;
  min-height: 470px;
  background: var(--az-panel);
}
.az-wide-hero .az-hero-art img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  mix-blend-mode: normal;
}
.az-kicker {
  display: inline-block;
  border: 1px solid var(--az-border);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--az-muted);
  margin: 0 0 22px;
}
.az-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  align-items: center;
}
.az-editorial > img,
.az-editorial > figure {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}
.az-editorial > img {
  height: 480px;
  object-fit: cover;
}
.az-editorial p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--az-body);
}
.az-editorial h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.13;
}
.az-editorial.reverse > img {
  order: 2;
}
.az-photo-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.az-photo-strip img {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
}
.az-product-image.photo {
  background: var(--az-soft);
}
.az-product-image.photo img {
  object-fit: cover;
  mix-blend-mode: normal;
}
.az-product-image.contain img {
  object-fit: contain;
  mix-blend-mode: normal;
}
.az-product-copy h3 {
  line-height: 1.2;
}
.az-products .az-button {
  margin-top: 22px;
}
.az-app {
  background: var(--az-panel);
  border-radius: 28px;
  padding: 48px;
}
.az-app > img {
  object-fit: contain;
  height: 430px;
}
.az-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.az-pills a,
.az-pill {
  padding: 10px 16px;
  border: 1px solid var(--az-border);
  border-radius: 99px;
  font-size: 12px;
  color: var(--az-text);
  text-decoration: none;
  background: var(--az-surface);
}
.az-pills a:hover {
  border-color: var(--az-link);
}
.az-story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.az-story-grid .az-product-image {
  height: 260px;
}
.az-detail {
  border-top: 1px solid var(--az-border);
  padding: 56px 0;
}
.az-detail-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 6%;
  align-items: start;
}
.az-detail-image {
  background: #e5e8ee;
  border-radius: 20px;
  overflow: hidden;
  position: sticky;
  top: 110px;
}
.az-detail-image img {
  width: 100%;
  height: 340px;
  object-fit: contain;
}
.az-detail h3 {
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 4px 0 18px;
}
.az-detail p,
.az-detail li {
  color: var(--az-body);
  line-height: 1.8;
  font-size: 16px;
}
.az-detail ul {
  padding-left: 20px;
  list-style: disc;
}
.az-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--az-border);
  border: 1px solid var(--az-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
}
.az-spec div {
  background: var(--az-surface);
  padding: 16px;
  font-size: 14px;
  color: var(--az-body);
}
.az-spec small {
  display: block;
  color: var(--az-muted);
  margin-bottom: 5px;
}
.az-section-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-block: 1px solid var(--az-border);
}
.az-section-nav a {
  font-size: 13px;
  color: var(--az-link);
  padding: 8px 14px;
  background: var(--az-surface);
  border-radius: 99px;
}
.az-faq {
  border-bottom: 1px solid var(--az-border);
  padding: 20px 0;
}
.az-faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
}
.az-faq p {
  color: var(--az-body);
  line-height: 1.8;
  max-width: 850px;
}
.az-callout {
  padding: 24px;
  border-left: 3px solid #3b82f6;
  background: var(--az-surface);
  border-radius: 0 12px 12px 0;
  line-height: 1.7;
  color: var(--az-body);
}
.az-mini-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--az-link);
  text-transform: uppercase;
}
.az-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  background: #18191c;
}
.az-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  opacity: 0.6;
}
.az-banner > div {
  position: absolute;
  left: 40px;
  bottom: 30px;
  max-width: 650px;
  color: #fff;
}
.az-banner p {
  color: #f7f8fa;
}
.az-banner h2 {
  color: #fff;
}
.az-company-list {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-top: 1px solid var(--az-border);
  padding: 24px 0;
  gap: 28px;
}
.az-company-list p {
  margin: 0;
  color: var(--az-body);
  line-height: 1.7;
}
.az-product-copy .az-mini-label {
  display: block;
  margin-bottom: 14px;
}
@media (max-width: 1000px) {
  .az-header nav {
    gap: 14px;
    font-size: 12px;
  }
  .az-header {
    gap: 12px;
  }
  .az-header .az-logo img {
    width: 135px;
  }
  .az-header > .az-cart {
    display: none;
  }
  .az-header > .az-button {
    display: none;
  }
}
@media (max-width: 760px) {
  .az-editorial,
  .az-detail-grid {
    grid-template-columns: 1fr;
  }
  .az-editorial.reverse > img {
    order: 0;
  }
  .az-editorial > img {
    height: 320px;
  }
  .az-editorial {
    gap: 28px;
  }
  .az-app {
    padding: 24px;
  }
  .az-detail-image {
    position: static;
  }
  .az-spec {
    grid-template-columns: 1fr 1fr;
  }
  .az-photo-strip {
    grid-template-columns: 1fr 1fr;
  }
  .az-photo-strip img:first-child {
    grid-column: 1/-1;
  }
  .az-photo-strip img {
    height: 230px;
  }
  .az-company-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .az-wide-hero .az-hero-art,
  .az-wide-hero .az-hero-art img {
    min-height: 320px;
    height: 320px;
  }
  .az-banner > div {
    left: 24px;
    right: 24px;
  }
  .az-story-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .az-header nav {
    background: var(--az-bg);
    border-color: var(--az-border);
  }
  .az-header .az-logo img {
    width: 115px;
  }
  .az-header {
    padding-inline: 16px;
  }
  .az-menu {
    color: var(--az-text);
  }
  .az-products {
    grid-template-columns: 1fr 1fr;
  }
  .az-hero-art {
    margin-top: 14px;
  }
  .az-hero h1 {
    font-size: 38px;
  }
}

/* Artwork and video keep their photographic contrast in either theme. */
.az-legacy [class*="bg-black/"] {
  --az-text: #f7f8fa;
  --az-body: #d6dce5;
  --az-muted: #bbc3d0;
}
:root[data-theme="dark"] #main-content [class~="bg-white"] {
  background: var(--az-surface) !important;
  color: var(--az-text);
}
:root[data-theme="dark"] #main-content [class*="text-[#18191C]"] {
  color: var(--az-text) !important;
}
:root[data-theme="dark"] #main-content [class*="bg-[#F5F5F5]"] {
  background: var(--az-surface) !important;
}

/* Keep the wider Science Gothic card titles within the two-column phone grid. */
@media (max-width: 600px) {
  .az-product-copy h3 { font-size: 16px; }
}
@media(max-width:360px){.az-products{grid-template-columns:1fr}}
