/* ==========================================================================
   JHU TECH — Apple-design-language rebuild
   Design tokens per DESIGN.md (Apple-design-analysis)
   ========================================================================== */

/* ---------- Fonts (Inter variable = SF Pro substitute off-Apple) --------- */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ------------------------------- Tokens ---------------------------------- */
:root {
  /* colors */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --body-on-dark: #ffffff;
  --body-muted: #cccccc;
  --ink-muted-80: #333333;
  --ink-muted-48: #7a7a7a;
  --divider-soft: #f0f0f0;
  --hairline: #e0e0e0;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-1: #272729;
  --tile-2: #2a2a2c;
  --tile-3: #252527;
  --black: #000000;
  --chip-translucent: rgba(210, 210, 215, 0.64);

  /* type */
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Inter var", "Segoe UI", system-ui, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Inter var", "Segoe UI", system-ui, sans-serif;

  /* radius */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-pill: 9999px;

  /* spacing */
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 17px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 80px;

  /* chrome */
  --nav-h: 44px;
  --subnav-h: 52px;
  --content-max: 980px;
  --grid-max: 1440px;

  /* the single product shadow in the system */
  --product-shadow: 3px 5px 30px 0 rgba(0, 0, 0, 0.22);
}

/* ------------------------------- Reset ----------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--subnav-h) + 12px);
}

body {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: rgba(0, 102, 204, 0.18);
}

/* ---------------------------- Type scale ---------------------------------- */
.t-hero {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.9px;
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.4px;
}
.t-display-md {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.374px;
}
.t-lead {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
}
.t-lead-airy {
  font-family: var(--font-text);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}
.t-tagline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}
.t-body-strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
}
.t-caption {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.224px;
}
.t-caption-strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}
.t-fine {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.12px;
}
.muted {
  color: var(--ink-muted-48);
}

/* ------------------------------ Buttons ----------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  line-height: 1.17647;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  text-align: center;
  transition: transform 0.12s ease, background-color 0.15s ease;
  user-select: none;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: scale(0.95);
}
.btn:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-focus);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  font-size: 18px;
  font-weight: 300;
  padding: 14px 28px;
}
.btn-sm {
  font-size: 14px;
  letter-spacing: -0.224px;
  padding: 8px 16px;
}

.link-more {
  white-space: nowrap;
}
.link-more::after {
  content: " ›";
}
.on-dark .link-more,
.on-dark a:not(.btn) {
  color: var(--primary-on-dark);
}

/* --------------------------- Global nav (black) --------------------------- */
.gnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.gnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 var(--sp-lg);
}
.gnav-logo {
  color: #f5f5f7;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.gnav-logo:hover {
  text-decoration: none;
  color: #fff;
}
.gnav-logo .logo-tech {
  font-weight: 300;
  opacity: 0.85;
}
.gnav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.gnav-links > li > a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  line-height: var(--nav-h);
  display: block;
  white-space: nowrap;
}
.gnav-links > li > a:hover {
  color: #fff;
  text-decoration: none;
}
.gnav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.gnav-icons a,
.gnav-icons button {
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  padding: 6px;
}
.gnav-icons a:hover,
.gnav-icons button:hover {
  color: #fff;
}
.gnav-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* flyout */
.gnav-item {
  position: relative;
}
.flyout {
  position: absolute;
  top: var(--nav-h);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: rgba(22, 22, 23, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 22px 28px 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.gnav-item:hover .flyout,
.gnav-item:focus-within .flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.flyout .flyout-head {
  color: var(--ink-muted-48);
  font-size: 12px;
  margin-bottom: 10px;
  white-space: nowrap;
}
.flyout ul {
  list-style: none;
}
.flyout li a {
  display: block;
  color: #f5f5f7;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  line-height: 2.2;
  white-space: nowrap;
}
.flyout li a:hover {
  color: #fff;
  text-decoration: none;
}
.flyout li a.flyout-all {
  color: var(--primary-on-dark);
  font-weight: 400;
  font-size: 12px;
  margin-top: 8px;
}

/* mobile trigger */
.gnav-burger {
  display: none;
  width: 40px;
  height: var(--nav-h);
  position: relative;
}
.gnav-burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 1px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.gnav-burger span:nth-child(1) {
  transform: translate(-50%, -4px);
}
.gnav-burger span:nth-child(2) {
  transform: translate(-50%, 0);
}
.gnav-burger span:nth-child(3) {
  transform: translate(-50%, 4px);
}
body.nav-open .gnav-burger span:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}
body.nav-open .gnav-burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .gnav-burger span:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* mobile sheet */
.mnav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #000;
  z-index: 55;
  overflow-y: auto;
  padding: 20px 32px 60px;
}
body.nav-open .mnav {
  display: block;
}
body.nav-open {
  overflow: hidden;
}
.mnav ul {
  list-style: none;
}
.mnav > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mnav > ul > li > a,
.mnav .mnav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #f5f5f7;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  padding: 14px 0;
  text-align: left;
}
.mnav > ul > li > a:hover {
  text-decoration: none;
}
.mnav .mnav-group-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink-muted-48);
  stroke-width: 2;
  transition: transform 0.25s ease;
}
.mnav li.open .mnav-group-toggle svg {
  transform: rotate(90deg);
}
.mnav .mnav-sub {
  display: none;
  padding: 0 0 16px;
}
.mnav li.open .mnav-sub {
  display: block;
}
.mnav .mnav-sub a {
  display: block;
  color: var(--body-muted);
  font-size: 17px;
  line-height: 2.2;
}

/* ------------------------- Sub-nav (frosted) ------------------------------ */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.subnav-inner {
  max-width: var(--grid-max);
  margin: 0 auto;
  height: var(--subnav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  padding: 0 var(--sp-lg);
}
.subnav-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  color: var(--ink);
  white-space: nowrap;
}
.subnav-title:hover {
  text-decoration: none;
}
.subnav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-links::-webkit-scrollbar {
  display: none;
}
.subnav-links a {
  color: var(--ink-muted-80);
  font-size: 14px;
  letter-spacing: -0.224px;
  white-space: nowrap;
}
.subnav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.subnav-links a.active {
  color: var(--ink);
  font-weight: 600;
}
.subnav .btn {
  flex-shrink: 0;
}

/* ------------------------------ Sections ---------------------------------- */
.tile {
  padding: var(--sp-section) var(--sp-lg);
}
.tile-tight {
  padding: 56px var(--sp-lg);
}
.tile-white {
  background: var(--canvas);
}
.tile-parchment {
  background: var(--parchment);
}
.tile-dark {
  background: var(--tile-1);
  color: var(--body-on-dark);
}
.tile-dark-2 {
  background: var(--tile-2);
  color: var(--body-on-dark);
}
.tile-dark-3 {
  background: var(--tile-3);
  color: var(--body-on-dark);
}
.on-dark {
  color: var(--body-on-dark);
}
.on-dark .muted,
.tile-dark .muted {
  color: var(--body-muted);
}

.center {
  text-align: center;
}
.content {
  max-width: var(--content-max);
  margin: 0 auto;
}
.content-narrow {
  max-width: 700px;
  margin: 0 auto;
}
.content-wide {
  max-width: var(--grid-max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-muted-48);
  margin-bottom: 14px;
}
.tile-dark .eyebrow {
  color: var(--body-muted);
}

.section-head {
  margin-bottom: var(--sp-xxl);
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-muted-80);
}
.tile-dark .section-head p {
  color: var(--body-muted);
}

.cta-row {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cta-row.left {
  justify-content: flex-start;
}

/* ------------------------------- Hero ------------------------------------- */
.hero {
  background: var(--parchment);
  text-align: center;
  padding: 72px var(--sp-lg) 0;
  overflow: hidden;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto;
}
.hero .hero-lead {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--ink-muted-80);
}
.hero-media {
  max-width: var(--grid-max);
  margin: 56px auto 0;
}
.hero-media img {
  width: 100%;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

/* banner hero — headline overlaid on the empty left of the photography,
   the way the original head banners were art-directed */
.hero-banner {
  position: relative;
  background: var(--parchment);
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-banner .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(245, 245, 247, 0.94) 0%,
    rgba(245, 245, 247, 0.62) 40%,
    rgba(245, 245, 247, 0) 62%
  );
}
.hero-banner-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 72px var(--sp-xxl);
}
.hero-banner h1 {
  max-width: 560px;
}
.hero-banner .hero-lead {
  max-width: 460px;
  margin: 20px 0 0;
  color: var(--ink-muted-80);
}
.hero-banner .cta-row {
  justify-content: flex-start;
}

/* --------------------------- Card grids ----------------------------------- */
.grid {
  display: grid;
  gap: 20px;
  max-width: var(--grid-max);
  margin: 0 auto;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
a.card {
  color: var(--ink);
}
a.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.solution-card .card-media {
  background: var(--pearl);
  border-radius: var(--r-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
}
.solution-card .card-media img {
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.solution-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.1px;
  margin-bottom: 8px;
}
.solution-card p {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
  flex-grow: 1;
  margin-bottom: 12px;
}

/* ---------------------------- Product cards -------------------------------- */
.product-card {
  text-align: center;
  align-items: center;
  padding: var(--sp-lg) var(--sp-lg) 28px;
}
.product-card .card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.product-card .card-media img {
  max-height: 100%;
  object-fit: contain;
}
.product-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.product-card .price {
  margin-top: auto;
}

.price {
  font-size: 17px;
}
.price .was {
  color: var(--ink-muted-48);
  text-decoration: line-through;
  margin-right: 8px;
  font-size: 14px;
}
.price .now {
  font-weight: 600;
}
.badge-sale {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--primary);
  background: rgba(0, 102, 204, 0.08);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-bottom: 10px;
}

/* chips (configurator grammar) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto var(--sp-xxl);
  max-width: var(--grid-max);
}
.chip {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  transition: transform 0.12s ease;
}
.chip:hover {
  text-decoration: none;
  border-color: var(--ink-muted-48);
}
.chip:active {
  transform: scale(0.95);
}
.chip.selected {
  border: 2px solid var(--primary-focus);
  padding: 9px 17px;
  font-weight: 600;
}

/* ------------------------------ Product page ------------------------------- */
.pdp {
  max-width: var(--grid-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  padding: 56px var(--sp-lg) var(--sp-section);
}
.pdp-gallery .main {
  background: var(--pearl);
  border-radius: var(--r-lg);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: sticky;
  top: calc(var(--nav-h) + var(--subnav-h) + 24px);
}
.pdp-gallery .main img {
  max-height: 100%;
  object-fit: contain;
}
.pdp-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.pdp-thumbs button {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 8px;
  transition: transform 0.12s ease;
}
.pdp-thumbs button:active {
  transform: scale(0.95);
}
.pdp-thumbs button.active {
  border: 2px solid var(--primary-focus);
}
.pdp-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-info h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.374px;
  margin-bottom: 14px;
}
.pdp-info .price {
  font-size: 24px;
  margin-bottom: 6px;
}
.pdp-info .price .was {
  font-size: 17px;
}
.pdp-tax {
  color: var(--ink-muted-48);
  font-size: 12px;
  margin-bottom: 22px;
}
.pdp-short {
  border-top: 1px solid var(--divider-soft);
  padding-top: 22px;
  margin-bottom: 28px;
}
.pdp-short ul {
  list-style: none;
}
.pdp-short li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
}
.pdp-short li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  max-width: 320px;
}
.pdp-actions .btn {
  width: 100%;
}
.pdp-links {
  margin-top: 20px;
  font-size: 14px;
}
.pdp-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pdp-cats {
  margin-top: 26px;
  font-size: 12px;
  color: var(--ink-muted-48);
}
.pdp-cats a {
  color: var(--ink-muted-48);
  text-decoration: underline;
}

/* description */
.pdp-desc {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg) var(--sp-section);
}
.pdp-desc-inner {
  border-top: 1px solid var(--divider-soft);
  padding-top: var(--sp-xxl);
}
.pdp-desc h2.desc-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}
.wp-content {
  color: var(--ink-muted-80);
}
.wp-content p {
  margin-bottom: 16px;
}
.wp-content strong {
  color: var(--ink);
  font-weight: 600;
}
.wp-content > strong {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.1px;
  margin: 28px 0 10px;
}
.wp-content ul {
  margin: 0 0 18px;
  padding-left: 20px;
}
.wp-content li {
  margin-bottom: 6px;
}
.wp-content h6,
.wp-content h5,
.wp-content h4 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.224px;
}
.wp-content h6 strong,
.wp-content h5 strong,
.wp-content h4 strong {
  font-weight: 600;
}
.wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  letter-spacing: -0.224px;
}
.wp-content table td,
.wp-content table th {
  border: 0;
  border-bottom: 1px solid var(--divider-soft);
  padding: 12px 16px 12px 0;
  vertical-align: top;
  text-align: left;
}
.wp-content table tr td:first-child {
  width: 38%;
  color: var(--ink);
}
.wp-content img {
  border-radius: var(--r-sm);
  margin: 12px 0;
}
.wp-content a {
  color: var(--primary);
}

/* related */
.related {
  background: var(--parchment);
}
.related h2 {
  margin-bottom: var(--sp-xxl);
}

/* ------------------------------ Solution page ------------------------------ */
.sol-hero {
  background: var(--parchment);
  padding: 64px var(--sp-lg) 0;
  text-align: center;
}
.sol-hero .hero-lead {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--ink-muted-80);
}
.sol-hero-media {
  max-width: var(--grid-max);
  margin: 48px auto 0;
}
.sol-hero-media img {
  width: 100%;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  object-fit: cover;
}
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.1px;
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
}
.diagram-frame img {
  margin: 0 auto;
  border-radius: var(--r-sm);
}
.diagram-frame .shadowed {
  box-shadow: var(--product-shadow);
}

/* ------------------------------ Contact page ------------------------------- */
.contact-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-cards .card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-cards .card p {
  font-size: 14px;
  color: var(--ink-muted-80);
  margin-bottom: 10px;
}
.contact-cards .card a.t-body-strong {
  color: var(--primary);
}

.form {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--ink-muted-80);
  margin: 0 0 6px 2px;
}
.form .field {
  margin-bottom: 16px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--r-md);
  padding: 12px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a7a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary-focus);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}
.form textarea {
  min-height: 120px;
  resize: vertical;
}
.form .btn {
  width: 100%;
  margin-top: 6px;
}
.form-note {
  font-size: 12px;
  color: var(--ink-muted-48);
  text-align: center;
  margin-top: 12px;
}

/* ------------------------------ Search overlay ----------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.48);
  display: none;
}
body.search-open .search-overlay {
  display: block;
}
body.search-open {
  overflow: hidden;
}
.search-sheet {
  background: var(--canvas);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  max-height: 82vh;
  overflow-y: auto;
  padding: 28px var(--sp-lg) 36px;
}
.search-sheet-inner {
  max-width: 680px;
  margin: 0 auto;
}
.search-input-wrap {
  position: relative;
}
.search-input-wrap svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  fill: var(--ink-muted-48);
}
.search-input {
  width: 100%;
  height: 44px;
  font: inherit;
  font-size: 17px;
  letter-spacing: -0.374px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--parchment);
  border-radius: var(--r-pill);
  padding: 12px 20px 12px 44px;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary-focus);
  background: var(--canvas);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}
.search-results {
  margin-top: 18px;
}
.search-results a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--ink);
}
.search-results a:hover {
  background: var(--parchment);
  text-decoration: none;
}
.search-results img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.search-results .sr-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
}
.search-results .sr-meta {
  font-size: 12px;
  color: var(--ink-muted-48);
}
.search-empty {
  color: var(--ink-muted-48);
  font-size: 14px;
  text-align: center;
  padding: 24px 0 8px;
}

/* ------------------------------ Clients ------------------------------------ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 24px;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}
.clients-grid .client {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
}
.clients-grid img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.clients-grid .client:hover img {
  opacity: 1;
}

/* ------------------------------ Footer ------------------------------------- */
.footer {
  background: var(--parchment);
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted-80);
  padding: 40px var(--sp-lg) 48px;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 24px 0 32px;
}
.footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer ul {
  list-style: none;
}
.footer li a {
  color: var(--ink-muted-80);
  font-size: 12px;
  letter-spacing: -0.12px;
  line-height: 2.2;
}
.footer li a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-note {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  font-size: 12px;
  color: var(--ink-muted-48);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-note a {
  color: var(--ink-muted-80);
}

/* --------------------------- Promo / dark band ----------------------------- */
.promo-band {
  text-align: center;
}
.promo-band .promo-imgs {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-xxl);
}
.promo-band .promo-imgs img {
  width: min(340px, 80vw);
  border-radius: var(--r-lg);
}

.package-grid img {
  border-radius: var(--r-lg);
}

/* ----------------------------- WhatsApp fab -------------------------------- */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease;
}
.wa-fab:active {
  transform: scale(0.95);
}
.wa-fab svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* ------------------------------ Reveal motion ------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
      transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ Article ------------------------------------ */
.article {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px var(--sp-lg) var(--sp-section);
}
.article h1 {
  margin-bottom: 12px;
}
.article .article-sub {
  color: var(--ink-muted-48);
  margin-bottom: 40px;
}
.article h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 40px 0 14px;
}
.article p {
  color: var(--ink-muted-80);
  margin-bottom: 16px;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}
.article td,
.article th {
  border-bottom: 1px solid var(--divider-soft);
  padding: 10px 12px 10px 0;
  text-align: left;
}

/* ------------------------------ 404 ---------------------------------------- */
.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

/* =========================== Responsive ==================================== */
@media (max-width: 1068px) {
  .t-hero {
    font-size: 40px;
    letter-spacing: -0.4px;
  }
  .t-display-lg {
    font-size: 34px;
  }
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .pdp {
    gap: 36px;
  }
  /* more nav items than Apple — collapse earlier */
  .gnav-links {
    display: none;
  }
  .gnav-burger {
    display: block;
  }
}

@media (max-width: 833px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-banner {
    min-height: 0;
    display: block;
  }
  .hero-banner::before {
    display: none;
  }
  .hero-banner .hero-bg {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    object-position: right center;
    margin-top: 8px;
  }
  .hero-banner-inner {
    padding: 56px var(--sp-lg) 0;
    text-align: center;
  }
  .hero-banner h1,
  .hero-banner .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-banner .cta-row {
    justify-content: center;
  }
  .pdp {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .pdp-gallery .main {
    position: static;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile {
    padding: 64px var(--sp-lg);
  }
  .subnav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .t-hero {
    font-size: 34px;
  }
  .t-display-lg {
    font-size: 30px;
  }
  .t-display-md {
    font-size: 26px;
  }
  .t-lead {
    font-size: 22px;
  }
  .t-lead-airy {
    font-size: 20px;
  }
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .tile {
    padding: 48px var(--sp-md);
  }
  .tile-tight {
    padding: 40px var(--sp-md);
  }
  .hero {
    padding-top: 48px;
  }
  .pdp-info h1 {
    font-size: 28px;
  }
}

@media (max-width: 419px) {
  .t-hero {
    font-size: 28px;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
