/* ============================================================
   Aqaris · Product page (Figma "Product v2 / Desktop 1440",
   "Product - tablet", "Product - mobile")
   Loaded only by product.html, after style.css and home.css.
   The page body is "home product": header, buttons, final CTA and
   footer come from home.css; everything here is scoped to
   body.product or to pd-* classes.
   Breakpoints: desktop > 1024 · tablet 641–1024 · mobile ≤ 640
   ============================================================ */

.product .nav-links a[aria-current="page"] { color: var(--hp-indigo); font-weight: 600; }

/* ---------- Hero ---------- */
.pd-hero { background: var(--hp-slate); padding-top: 96px; }
.pd-hero-top {
  display: grid;
  grid-template-columns: 600fr 504fr;
  gap: 96px;
  align-items: start;
}
.pd-hero h1 {
  font-size: clamp(52px, 4.72vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.pd-hero-lead { margin-top: 26px !important; font-size: 20px; line-height: 1.5; }
.pd-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 36px; }

/* Module index (2 columns, numbered) */
.pd-index {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px;
  border-top: 2px solid var(--hp-ink);
}
.pd-index li { border-bottom: 1px solid var(--hp-line); }
.pd-index a {
  display: flex; align-items: center;
  height: 52px;
  font-size: 17px; font-weight: 600; line-height: 26px;
  color: var(--hp-ink);
  transition: color .2s var(--ease);
}
.pd-index span {
  flex: 0 0 36px;
  font-size: 14px; font-weight: 500; line-height: 22px;
  color: var(--hp-muted);
  font-variant-numeric: tabular-nums;
  transition: color .2s var(--ease);
}
.pd-index a:hover, .pd-index a:hover span { color: var(--hp-indigo); }

/* Walkthrough video */
.pd-video {
  position: relative;
  margin-top: 72px;
  aspect-ratio: 16 / 9;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: var(--hp-night);
}
.pd-video video {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.pd-play {
  position: absolute; right: 32px; bottom: 32px;
  width: 80px; height: 80px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  transition: transform .25s var(--hp-smooth), box-shadow .25s var(--ease);
}
.pd-play:hover { transform: scale(1.06); box-shadow: 0 12px 32px rgba(15,23,42,.28); }
.pd-play:focus-visible { outline: 3px solid #C4C0FF; outline-offset: 3px; }
.pd-video-caption {
  position: absolute; left: 28px; bottom: 24px;
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 16px;
  border-radius: 18px;
  background: rgba(22,20,46,.78);
  font-size: 15px; font-weight: 500; line-height: 23px;
  color: #FFFFFF;
  pointer-events: none;
}
.pd-video.is-playing .pd-play,
.pd-video.is-playing .pd-video-caption { display: none; }

/* ---------- Module explorer ---------- */
.pd-head {
  display: grid;
  grid-template-columns: 600fr 520fr;
  gap: 80px;
  align-items: end;
}
.pd-head p { font-size: 18px; line-height: 1.55; }

.pd-explorer-body {
  display: flex; gap: 40px; align-items: flex-start;
  margin-top: 56px;
}

/* Sidebar (desktop) */
.pd-tabs { flex: 0 0 300px; }
.pd-tab-group + .pd-tab-group { padding-top: 22px; }
.pd-tab-label {
  margin-bottom: 8px !important;
  padding-left: 16px;
  font-size: 14px; font-weight: 600; line-height: 22px;
  color: var(--hp-muted) !important;
}
.pd-tab {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 46px;
  padding: 0 15px;
  border: 1px solid transparent; border-radius: 10px;
  background: none;
  font: inherit; font-size: 17px; font-weight: 500; line-height: 26px;
  text-align: left; white-space: nowrap;
  color: var(--hp-body);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.pd-tab:hover { background: var(--hp-slate); color: var(--hp-ink); }
.pd-tab.is-active {
  background: var(--hp-lav);
  border-color: var(--hp-indigo);
  font-weight: 600;
  color: var(--hp-indigo);
}
.pd-tab.is-active::after {
  content: "";
  flex: 0 0 18px; height: 18px;
  background: url(../img/product/chevron-active.svg) center / 18px 18px no-repeat;
}
.pd-tab:focus-visible { outline: 2px solid var(--hp-indigo); outline-offset: 2px; }

/* Stage card */
.pd-stage {
  flex: 1; min-width: 0;
  padding: 44px;
  background: var(--hp-slate);
  border: 1px solid var(--hp-line);
  border-radius: 22px;
}
.pd-panel { animation: pd-fade .45s var(--hp-smooth); }
.pd-panel[hidden] { display: none; }
@keyframes pd-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.pd-panel-label { font-size: 15px; font-weight: 600; line-height: 24px; color: var(--hp-indigo) !important; }
.pd-panel-row {
  display: grid;
  grid-template-columns: 430fr 292fr;
  gap: 48px;
  margin-top: 12px;
}
.pd-panel-copy h3 {
  font-size: 32px; line-height: 1.15; letter-spacing: -0.025em;
}
.pd-panel-copy p { margin-top: 16px; font-size: 17px; line-height: 1.55; }

.pd-checks {
  list-style: none; margin: 0; padding: 6px 0 0;
  display: grid; gap: 10px; align-content: start;
}
.pd-checks li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 17px; line-height: 1.55; color: var(--hp-ink);
}
.pd-checks img { flex: 0 0 auto; margin-top: 4px; }

.pd-shot {
  margin: 34px 0 0;
  background: #FFFFFF;
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(15,23,42,.1);
  overflow: hidden;
}
.pd-shot img { display: block; width: 100%; height: auto; }

.pd-stage-foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px 24px;
  padding-top: 28px;
}
.pd-pager { display: flex; align-items: center; gap: 14px; }
.pd-pager[hidden] { display: none; }
.pd-arrow {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hp-line-strong); border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.pd-arrow:hover { border-color: var(--hp-indigo); }
.pd-arrow-next { background: var(--hp-indigo); border-color: var(--hp-indigo); }
.pd-arrow-next:hover { background: var(--hp-indigo-deep); border-color: var(--hp-indigo-deep); }
.pd-arrow:active { transform: scale(.94); }
.pd-arrow:focus-visible, .pd-dot:focus-visible { outline: 2px solid var(--hp-indigo); outline-offset: 3px; }
.pd-dots { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.pd-dot {
  position: relative;
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 4px;
  background: var(--hp-line-strong);
  cursor: pointer;
  transition: width .35s var(--hp-smooth), background-color .25s var(--ease);
}
.pd-dot::after { content: ""; position: absolute; inset: -8px -3px; }
.pd-dot:hover { background: #A5B4FC; }
.pd-dot.is-active { width: 24px; background: var(--hp-indigo); }

/* ============================================================
   Small desktop (1025–1240): let fixed Figma columns flex
   ============================================================ */
@media (max-width: 1240px) {
  .pd-hero-top, .pd-head { gap: 56px; }
  .pd-explorer-body { gap: 32px; }
  .pd-tabs { flex-basis: 248px; }
  .pd-stage { padding: 36px; }
  .pd-panel-row { gap: 32px; }
}

/* ============================================================
   Tablet (≤ 1024) — "Product - tablet", 768 frame, 32px gutter
   ============================================================ */
@media (max-width: 1024px) {
  .pd-hero-top { grid-template-columns: 1fr; gap: 40px; }
  .pd-hero h1 { font-size: 52px; line-height: 1.05; }
  .pd-hero-lead { font-size: 18px; }

  .pd-video { margin-top: 56px; }
  .pd-play { right: 21px; bottom: 19px; width: 64px; height: 64px; }
  .pd-video-caption { left: 21px; bottom: 16px; }

  .pd-head { display: block; }
  .pd-head p { margin-top: 18px !important; font-size: 17px; }

  /* Sidebar becomes a row of scrollable pills */
  .pd-explorer-body { flex-direction: column; align-items: stretch; gap: 24px; }
  .pd-tabs {
    flex: none;
    display: flex; gap: 7px;
    overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--hp-gutter));
    padding: 0 var(--hp-gutter) 6px;
    scroll-padding: 0 var(--hp-gutter);
  }
  .pd-tabs::-webkit-scrollbar { display: none; }
  .pd-tab-group { display: contents; }
  .pd-tab-label { display: none; }
  .pd-tab {
    flex: 0 0 auto; width: auto; height: 42px;
    padding: 0 17px;
    border-color: var(--hp-line); border-radius: 999px;
    background: #FFFFFF;
  }
  .pd-tab:hover { background: #FFFFFF; border-color: var(--hp-line-strong); }
  .pd-tab.is-active { background: var(--hp-lav); border-color: var(--hp-indigo); }
  .pd-tab.is-active::after { display: none; }

  .pd-stage { padding: 32px; }
  .pd-panel-row { grid-template-columns: 1fr; gap: 20px; margin-top: 11px; }
  .pd-checks { padding-top: 6px; gap: 9px; }
  .pd-shot { margin-top: 11px; }
  .pd-stage-foot { padding-top: 17px; }
}

/* ============================================================
   Mobile (≤ 640) — "Product - mobile", 390 frame, 20px gutter
   ============================================================ */
@media (max-width: 640px) {
  .pd-hero { padding-top: 64px; }
  .pd-hero h1 { font-size: 36px; line-height: 1.08; }
  .pd-hero-lead { margin-top: 25px !important; font-size: 17px; }
  .pd-hero-cta .hp-btn { height: 48px; font-size: 16px; }
  .pd-index { grid-template-columns: 1fr; }

  .pd-video { margin-top: 40px; border-radius: 14px 14px 0 0; }
  .pd-play { right: 10px; bottom: 10px; }
  .pd-video-caption { display: none; }

  .pd-head p { margin-top: 17px !important; font-size: 16px; }

  .pd-stage { padding: 22px; }
  .pd-panel-copy h3 { font-size: 24px; }
  .pd-shot { margin-top: 34px; }
  .pd-stage-foot { flex-direction: column; align-items: flex-start; }

  /* Final CTA (shared hp-cta) at the product-mobile sizes */
  .product .hp-cta-copy p { font-size: 20px; }
  .product .hp-cta-btns .hp-btn { height: 48px; font-size: 16px; }
}
