/* ==========================================================================
   Micro Center — AI Landing Page
   Layout + components. Mobile-first; breakpoints mirror the Figma artboards:
     base   → iPhone SE  (320)
     480px  → iPhone 13/14 (390)
     768px  → iPad Pro 11" (834)
     1024px → MacBook Pro 14" (1512, 1220 content)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

/* Anchor targets clear the top edge when jumped to. */
[id] {
  scroll-margin-top: 24px;
}

body {
  background: var(--page-bg);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
}

.page {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-block: var(--section-gap);
  overflow-x: clip;
}

/* Visually hidden but available to assistive tech. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--solid {
  fill: currentcolor;
  stroke: none;
}

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The white rounded panel most sections sit inside. */
.panel {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel--soft {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-panel);
}

.panel__inner {
  padding: clamp(1rem, 0.55rem + 2.2vw, 2.6875rem);
}

/* Small grey "Features" eyebrow pill. */
.eyebrow {
  display: inline-block;
  padding: 1px 12px;
  background: var(--gray-100);
  border-radius: 80px;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 22px;
}

.section-heading {
  font-size: var(--fs-section);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  text-align: center;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(1.25rem, 0.9rem + 1.7vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--mc-blue);
  color: var(--white);
  border-radius: 5px;
}

.btn--primary:hover {
  background: #005cb4;
}

.btn--on-blue {
  background: var(--white);
  color: var(--mc-blue);
  border-radius: 5px;
}

.btn--on-blue:hover {
  background: #eaf3fd;
}

.btn--outline {
  border: 1px solid currentcolor;
  color: var(--white);
}

.btn--outline:hover {
  background: rgb(255 255 255 / 12%);
}

.btn--sm {
  min-height: 32px;
  padding: 7px 12px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: 18px;
}

.btn--cart {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 2px;
  font-size: var(--fs-sm);
}

.btn--nvidia {
  background: var(--nvidia-green);
  color: var(--black);
  border-radius: 0;
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  text-transform: none;
  min-height: 41px;
  padding: 8px 16px;
}

.btn--nvidia:hover {
  background: #67a300;
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--mc-gradient-flat);
}

.hero__side {
  display: none;
  position: relative;
  overflow: hidden;
  background: #c0c0c0;
}

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

.hero__main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem) clamp(1rem, 0.4rem + 3vw, 2rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 0.6rem + 2vw, 1.5rem);
  max-width: 490px;
  color: var(--white);
  text-align: center;
}

.hero__logo {
  width: clamp(140px, 40vw, 184px);
  height: auto;
  color: var(--white);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
}

.hero__copy {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

@media (min-width: 1024px) {
  .hero {
    /* 350 / 521 / 349 of the 1220px content width */
    grid-template-columns: 350fr 521fr 349fr;
  }

  .hero__side {
    display: block;
  }

  .hero__main {
    min-height: 512px;
  }
}

/* --------------------------------------------------------------------------
   5. Jump to
   -------------------------------------------------------------------------- */

.jump__title {
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  text-align: center;
  margin-bottom: clamp(1.25rem, 0.9rem + 1.7vw, 2.25rem);
}

.jump__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 0.8rem + 2.2vw, 3.375rem);
  justify-items: center;
  list-style: none;
  padding: 0;
}

.jump__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.jump__icon {
  display: grid;
  place-items: center;
  width: 127px;
  height: 127px;
  font-size: 127px;
  background: var(--mc-blue);
  border-radius: var(--r-pill);
  color: var(--white);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.jump__icon .icon {
  width: 0.5em;
  height: 0.5em;
  stroke-width: 1.4;
}

/* iPhone SE and narrower: shrink so the circle still clears the gutters. */
@media (max-width: 359px) {
  .jump__icon {
    width: 104px;
    height: 104px;
    font-size: 104px;
  }
}

.jump__link:hover .jump__icon {
  background: #005cb4;
  transform: translateY(-2px);
}

.jump__label {
  color: var(--mc-blue);
  font-size: var(--fs-jump-label);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

@media (min-width: 560px) {
  .jump__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .jump__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .jump__list {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --------------------------------------------------------------------------
   6. NVIDIA DGX Spark banner
   -------------------------------------------------------------------------- */

.dgx {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: #0b0b0b;
}

.dgx__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

/* Keeps the copy legible where it overlaps the photograph. */
.dgx::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(0 0 0 / 82%) 0%, rgb(0 0 0 / 55%) 45%, rgb(0 0 0 / 10%) 75%);
}

.dgx__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 620px;
  padding: clamp(1.25rem, 0.9rem + 1.7vw, 1.375rem) clamp(1.25rem, 0.8rem + 2.2vw, 3.625rem)
    clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem);
}

.dgx__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.dgx__tagline {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: var(--fw-medium);
}

.dgx__subtitle {
  margin-top: 12px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: var(--fw-bold);
}

.dgx__copy {
  max-width: 401px;
  font-weight: var(--fw-medium);
}

.dgx__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-weight: var(--fw-medium);
}

.dgx__links a:hover {
  text-decoration: underline;
}

.dgx__divider {
  width: 1px;
  height: 13px;
  background: var(--nvidia-green);
}

@media (min-width: 1024px) {
  .dgx__bg {
    object-position: center;
  }

  .dgx::before {
    background: linear-gradient(90deg, rgb(0 0 0 / 75%) 0%, rgb(0 0 0 / 45%) 38%, transparent 62%);
  }
}

/* --------------------------------------------------------------------------
   7. Features grid
   -------------------------------------------------------------------------- */

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
  list-style: none;
  padding: 0;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 13px 24px;
  border: 1px solid var(--gray-300);
  border-radius: var(--r-md);
}

.feature__icon {
  color: var(--mc-blue);
}

.feature__icon .icon {
  width: clamp(56px, 14vw, 90px);
  height: clamp(56px, 14vw, 90px);
  stroke-width: 1.3;
}

.feature__title {
  font-size: var(--fs-feature-title);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  text-align: center;
}

.feature__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding-left: 24px;
  font-weight: var(--fw-medium);
}

.feature__list li {
  list-style: disc;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   8. About AI Pro Workstations (callout)
   -------------------------------------------------------------------------- */

.callout {
  position: relative;
  border: 1px solid rgb(31 27 27 / 8%);
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  background: var(--mc-gradient);
  color: var(--white);
}

.callout__pattern {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

.callout__pattern--a {
  top: -8%;
  left: -2%;
  width: 105%;
}

.callout__pattern--b {
  right: -20%;
  bottom: -10%;
  width: 80%;
}

.callout__inner {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem) clamp(1rem, 0.6rem + 2vw, 2.4375rem);
}

.callout__title {
  font-size: var(--fs-section-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

.callout__intro {
  margin-top: 14px;
  font-weight: var(--fw-medium);
}

.callout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 1rem + 2.5vw, 2rem) 18px;
  margin-top: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
}

.callout__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.callout__figure img {
  width: auto;
  max-height: 218px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgb(0 0 0 / 25%));
}

.callout__caption {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}

.callout-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(1.25rem, 0.9rem + 1.7vw, 1.5rem) clamp(1rem, 0.7rem + 1.5vw, 2.25rem)
    clamp(1.5rem, 1rem + 2.5vw, 1.875rem);
  background: var(--surface);
  border-radius: var(--r-md);
  color: var(--black);
}

.callout-card__title {
  font-size: var(--fs-card-title);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

.callout-card__list {
  display: flex;
  flex-direction: column;
  gap: 19px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: var(--fw-medium);
}

.callout-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.callout-card__list .icon {
  width: 15px;
  height: 15px;
  margin-top: 5px;
  color: var(--mc-blue);
}

.callout-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 768px) {
  /* Tablet mirrors the pairs: shot/card, then card/shot. */
  .callout__grid {
    grid-template-columns: repeat(10, 1fr);
    align-items: center;
  }

  .callout__grid > :nth-child(1) { grid-column: 1 / 5; grid-row: 1; }
  .callout__grid > :nth-child(2) { grid-column: 5 / 11; grid-row: 1; }
  .callout__grid > :nth-child(3) { grid-column: 7 / 11; grid-row: 2; }
  .callout__grid > :nth-child(4) { grid-column: 1 / 7; grid-row: 2; }
}

@media (min-width: 1024px) {
  /* Desktop stacks by kind: both product shots on top, both cards below. */
  .callout__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .callout__grid > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .callout__grid > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .callout__grid > :nth-child(3) { grid-column: 2; grid-row: 1; }
  .callout__grid > :nth-child(4) { grid-column: 2; grid-row: 2; }

  .callout__figure {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .callout__figure img {
    max-height: 277px;
  }

  .callout-card {
    height: 100%;
  }
}

/* --------------------------------------------------------------------------
   9. Inside AI (exploded diagram)
   -------------------------------------------------------------------------- */

.inside {
  position: relative;
  border-radius: var(--r-md);
  background: var(--inside-ai-gradient);
  padding: clamp(0.75rem, 0.4rem + 1.7vw, 1.5rem);
}

/*
 * The stage is the full gradient panel, not the photograph — the labels sit
 * in the margin around the exploded view, so they need that outer box as
 * their coordinate space. Geometry below is taken straight from Figma:
 * desktop panel 1096x432 with the image at 191,33 (675x387).
 */
.inside__stage {
  position: relative;
  aspect-ratio: 360 / 312;
  width: 100%;
  margin-inline: auto;
}

.inside__img {
  position: absolute;
  left: 4.3%;
  top: 22.1%;
  width: 94.2%;
  height: 57.7%;
  object-fit: contain;
}

.inside__label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: clamp(0.6875rem, 0.5rem + 0.9vw, 1rem);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  white-space: nowrap;
  color: var(--black);
}

/* Connector line running from the label toward its component. */
.inside__label::after {
  content: '';
  position: absolute;
  background: var(--gray-200);
}

.inside__label--down::after {
  left: 50%;
  top: 100%;
  width: 1px;
  height: var(--len);
}

.inside__label--up::after {
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: var(--len);
}

.inside__label--right::after {
  left: 100%;
  top: 50%;
  height: 1px;
  width: var(--len);
}

/* -- Mobile / tablet label placement (Figma 390px artboard) -- */
.is-cpu-cooling   { --x: 2.7%;  --y: 13.1%; --len: 26%; }
.is-gpus-top      { --x: 30%;   --y: 17%;   --len: 10%; }
.is-ram           { --x: 41.6%; --y: 19.2%; --len: 8%; }
.is-cpu           { --x: 47.1%; --y: 11.9%; --len: 14%; }
.is-cooling       { --x: 52.3%; --y: 75.3%; --len: 8%; }
.is-drives        { --x: 74.8%; --y: 7.7%;  --len: 18%; }
.is-psu           { --x: 14.3%; --y: 59.9%; --len: 6%; }
.is-gpus-bottom   { --x: 31.3%; --y: 78.8%; --len: 8%; }
.is-motherboard   { --x: 19.8%; --y: 88.8%; --len: 12%; }

/* "Cooling" points up to the unit on mobile rather than down. */
@media (max-width: 1023px) {
  .is-cooling::after {
    top: auto;
    bottom: 100%;
  }
}

/* -- Desktop: wide panel, image inset from the left (Figma 1512 artboard) -- */
@media (min-width: 1024px) {
  .inside__stage {
    aspect-ratio: 1096 / 432;
    max-width: 1096px;
  }

  .inside__img {
    left: 17.43%;
    top: 7.64%;
    width: 61.59%;
    height: 89.58%;
  }

  .is-cpu-cooling   { --x: 26.8%; --y: 10.4%; --len: 27.1%; }
  .is-gpus-top      { --x: 38.9%; --y: 13%;   --len: 6.7%; }
  .is-ram           { --x: 46.4%; --y: 11.8%; --len: 47.2%; }
  .is-cpu           { --x: 49.5%; --y: 5.3%;  --len: 43.1%; }
  .is-cooling       { --x: 55%;   --y: 4.2%;  --len: 9%; }
  .is-drives        { --x: 70.8%; --y: 6.7%;  --len: 6%; }
  .is-psu           { --x: 31.1%; --y: 63%;   --len: 2.6%; }
  .is-gpus-bottom   { --x: 37.3%; --y: 85.9%; --len: 5.8%; }
  .is-motherboard   { --x: 47%;   --y: 90.3%; --len: 16.7%; }
}

/* --------------------------------------------------------------------------
   10. Compare devices
   -------------------------------------------------------------------------- */

.compare__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: clamp(1.25rem, 0.9rem + 1.7vw, 2rem);
}

.compare__title {
  font-size: var(--fs-section);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
}

.compare__intro {
  font-size: var(--fs-body);
}

.compare__group-label {
  margin: 20px 0 10px;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  letter-spacing: 0.02em;
}

/* Column-header pills, reused by both the table and the accordion. */
.pill {
  display: inline-block;
  padding: 2px 12px;
  background: var(--mc-blue);
  border-radius: var(--r-pill);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1.5;
  white-space: nowrap;
}

/* -- Desktop table -- */
.compare__table-wrap {
  display: none;
  overflow-x: auto;
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  text-align: center;
}

.compare__table th,
.compare__table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.compare__table thead th {
  padding-bottom: 18px;
  font-weight: var(--fw-medium);
}

.compare__table th:first-child,
.compare__table td:first-child {
  text-align: center;
  border-right: 1px solid var(--gray-200);
  width: 13%;
}

.compare__table .compare__group td {
  padding: 16px 8px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-weight: var(--fw-regular);
}

.compare__table tbody th {
  font-weight: var(--fw-regular);
}

.compare__gpu {
  color: var(--black);
}

@media (min-width: 1024px) {
  .compare__table-wrap {
    display: block;
  }

  .compare__accordion-wrap {
    display: none;
  }

  .compare__head {
    grid-template-columns: 1fr 1.4fr;
    align-items: center;
    gap: 32px;
  }

  .compare__intro {
    padding-left: 32px;
    border-left: 1px solid var(--gray-200);
  }
}

/* -- Mobile/tablet accordion -- */
.compare__rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.crow {
  border: 1px solid var(--gray-300);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.crow__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  font-size: 1.0625rem;
  font-weight: var(--fw-regular);
  text-align: left;
}

.crow__trigger .icon {
  width: 18px;
  height: 18px;
  color: var(--mc-blue);
  stroke-width: 2;
  transition: transform var(--dur) var(--ease);
}

.crow__trigger[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}

.crow__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
  padding: 0 18px 20px;
}

.crow__trigger[aria-expanded='false'] + .crow__panel {
  display: none;
}

.crow__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.crow__val {
  font-size: var(--fs-sm);
  text-align: left;
}

/* --------------------------------------------------------------------------
   11. Top picks
   -------------------------------------------------------------------------- */

.picks {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  background: var(--mc-gradient);
  color: var(--white);
}

.picks__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.picks__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 0.9rem + 1.7vw, 1.5rem);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.1875rem) clamp(1rem, 0.6rem + 2vw, 2.1875rem);
}

.picks__title {
  font-size: var(--fs-section-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  max-width: 16ch;
}

.picks__copy {
  margin-top: 14px;
  font-weight: var(--fw-medium);
}

.picks__intro .btn {
  margin-top: 20px;
}

.picks__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--r-sm);
  color: var(--black);
}

.product__media {
  display: grid;
  place-items: center;
  height: 128px;
}

.product__media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product__badge {
  align-self: flex-start;
  padding: 0 11px;
  background: var(--badge-navy);
  border-radius: 3000px;
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 20px;
}

.product__name {
  color: var(--mc-blue);
  font-size: var(--fs-body);
  line-height: 1.3;
}

.product__name:hover {
  text-decoration: underline;
}

.product__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
}

.product__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--star-gold);
}

.product__stars .icon {
  width: 15px;
  height: 15px;
}

.product__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
}

.product__was {
  color: var(--price-sale);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  text-decoration: line-through;
}

.product .btn {
  align-self: flex-start;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .picks__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .picks__inner {
    grid-template-columns: 320fr 830fr;
    align-items: start;
    gap: 34px;
  }
}

/* --------------------------------------------------------------------------
   12. Shop AI Pro Products
   -------------------------------------------------------------------------- */

.shop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 1rem + 2.5vw, 2.25rem) 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.shop__thumb {
  display: grid;
  place-items: center;
  width: clamp(120px, 30vw, 168px);
  aspect-ratio: 1;
  border: 1px solid var(--gray-250);
  border-radius: 50%;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.shop__thumb img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.shop__link:hover .shop__thumb {
  border-color: var(--mc-blue);
  transform: translateY(-2px);
}

.shop__label {
  color: var(--mc-blue);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  max-width: 14ch;
}

@media (min-width: 560px) {
  .shop__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .shop__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .shop__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --------------------------------------------------------------------------
   13. AMD banner
   -------------------------------------------------------------------------- */

.banner {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   14. AI News
   -------------------------------------------------------------------------- */

.news {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  background: var(--mc-gradient);
  color: var(--white);
}

.news__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.news__inner {
  padding: clamp(1.25rem, 0.9rem + 1.7vw, 2rem);
}

.news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: clamp(1rem, 0.7rem + 1.5vw, 1.5rem);
}

.news__title {
  font-size: var(--fs-section-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

.news__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-semibold);
}

.news__all:hover {
  text-decoration: underline;
}

.news__all .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.news__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--black);
}

.article__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-200);
  overflow: hidden;
}

.article__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 16px 18px 20px;
}

.article__title {
  font-size: 1.375rem;
  font-weight: var(--fw-regular);
  line-height: 1.25;
}

.article__excerpt {
  flex: 1;
}

.article__link {
  color: var(--mc-blue);
  font-weight: var(--fw-regular);
}

.article__link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  /* Tablet lays the cards out horizontally: image left, copy right. */
  .article {
    flex-direction: row;
  }

  .article__media {
    flex: 0 0 38%;
    aspect-ratio: auto;
  }
}

@media (min-width: 1024px) {
  .news__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .article {
    flex-direction: column;
  }

  .article__media {
    flex: none;
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */

.faq__title {
  font-size: var(--fs-section);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  margin-bottom: clamp(1.25rem, 0.9rem + 1.7vw, 1.75rem);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq__item {
  border: 1px solid var(--gray-300);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq__trigger {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.faq__q-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--mc-blue);
}

.faq__label {
  flex: 1;
}

.faq__chevron {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--mc-blue);
  stroke-width: 2;
  transition: transform var(--dur) var(--ease);
}

.faq__trigger[aria-expanded='true'] .faq__chevron {
  transform: rotate(180deg);
}

.faq__panel {
  padding: 0 18px 18px 48px;
}

.faq__trigger[aria-expanded='false'] + .faq__panel {
  display: none;
}

.faq__panel p + p,
.faq__panel p + ul {
  margin-top: 10px;
}

.faq__panel ul {
  padding-left: 22px;
}

.faq__panel li {
  list-style: disc;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--footer-bg);
  color: var(--white);
  padding-block: 41px;
  margin-top: var(--section-gap);
}

.footer a {
  color: var(--mc-blue-pale);
}

.footer a:hover {
  text-decoration: underline;
}

.footer__promos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--gray-600);
  border-radius: var(--r-lg);
}

.promo__title {
  font-size: 1.375rem;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
}

.promo__copy {
  font-size: var(--fs-sm);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
  margin-top: 40px;
}

.footer__col h3 {
  margin-bottom: 12px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  font-size: var(--fs-sm);
}

.footer__hiring {
  margin-top: 32px;
}

.footer__hiring .promo__copy {
  max-width: 46ch;
}

.footer__hiring .btn {
  align-self: stretch;
  text-align: center;
}

.footer__divider {
  height: 1px;
  margin: 32px 0 24px;
  background: var(--gray-500);
  border: 0;
}

.footer__logo {
  width: 132px;
  height: auto;
  color: var(--white);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  font-size: var(--fs-sm);
}

.footer__copyright {
  color: var(--white);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
}

.footer__social {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--white);
}

.footer__social .icon {
  width: 18px;
  height: 18px;
}

.footer__social a:hover {
  color: var(--mc-blue-pale);
}

@media (min-width: 768px) {
  .footer__promos {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__hiring {
    max-width: 340px;
  }

  .footer__hiring .btn {
    align-self: flex-start;
  }
}

@media (min-width: 1024px) {
  .footer__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
  }

  .footer__cols {
    margin-top: 0;
  }

  .footer__hiring {
    width: 200px;
    margin-top: 0;
  }

  .footer__bottom {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: start;
  }

  .footer__legal {
    margin-top: 0;
  }

  .footer__social {
    justify-content: flex-end;
  }
}

/* --------------------------------------------------------------------------
   17. Logo
   -------------------------------------------------------------------------- */

.hero__logo,
.footer__logo {
  fill: currentcolor;
  stroke: none;
}
