/* ==========================================================================
   Aurora One — product detail page
   Layered on top of styles.css
   ========================================================================== */

/* ── Local (product) nav ─────────────────────────────────────────────── */
.lnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(251,251,253,.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.09);
}
.lnav__inner {
  max-width: var(--shell);
  margin: 0 auto;
  height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.lnav__title { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.lnav__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.lnav__links a {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lnav__links a:hover { color: var(--ink); }
.lnav__links a.is-current { color: var(--ink); border-bottom-color: var(--ink); }
.lnav__buy {
  margin-left: 4px;
  padding: 6px 14px !important;
  border-radius: 980px;
  background: var(--blue);
  color: #fff !important;
  font-size: 12px;
  transition: background .2s var(--ease);
}
.lnav__buy:hover { background: #0077ed; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.phero {
  position: relative;
  background: #000;
  color: #f5f5f7;
  text-align: center;
  padding: 78px 22px 0;
  overflow: hidden;
  isolation: isolate;
}
.phero__aurora {
  position: absolute; inset: -30% -20% auto;
  height: 110%;
  background:
    radial-gradient(40% 50% at 30% 36%, rgba(120,160,255,.30), transparent 70%),
    radial-gradient(36% 46% at 70% 32%, rgba(200,120,255,.24), transparent 72%),
    radial-gradient(34% 44% at 50% 62%, rgba(0,230,190,.18), transparent 72%);
  filter: blur(40px);
  animation: auroraShift 20s ease-in-out infinite alternate;
  z-index: 0;
}
.phero__copy { position: relative; z-index: 2; }
.phero__eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue-dark);
}
.phero__title {
  margin-top: 8px;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600; line-height: 1; letter-spacing: -.025em;
}
.phero__sub {
  margin-top: 12px;
  font-size: clamp(19px, 2.4vw, 28px);
  color: #d2d2d7; letter-spacing: .004em;
}
.phero__price {
  margin-top: 18px; font-size: 17px; color: #86868b;
}
.phero__stage {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  padding: 56px 0 84px;
}
.phero__product {
  display: flex; align-items: center; gap: clamp(24px, 5vw, 72px);
  flex-wrap: wrap; justify-content: center;
}
/* Both views share the 9:19.2 aspect, so one height keeps them matched. */
.phero__product .device--phone,
.phero__product .device--back {
  width: auto;
  height: min(520px, 44vh);
}

.phero__badge {
  position: absolute;
  bottom: 28px;
  font-size: 12px;
  color: #86868b;
}

/* ── Colour-driven frame ─────────────────────────────────────────────── */
.phero__product {
  --f1: #d9d9de; --f2: #8e8e94; --f3: #f2f2f4;
  --f4: #7c7c82; --f5: #c9c9cf; --f6: #6f6f75;
}
.device--phone.device--tinted {
  background: linear-gradient(150deg,
    var(--f1) 0%, var(--f2) 18%, var(--f3) 34%,
    var(--f4) 56%, var(--f5) 74%, var(--f6) 100%);
}

/* back-of-phone view with camera plateau */
.device--back {
  position: relative;
  width: min(240px, 50vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 40px;
  background: linear-gradient(150deg,
    var(--f1) 0%, var(--f2) 16%, var(--f3) 30%,
    var(--f4) 58%, var(--f5) 76%, var(--f6) 100%);
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.10);
}
.device--back::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.24) 0%, transparent 28%,
                              transparent 72%, rgba(255,255,255,.12) 100%);
}
.plateau {
  position: absolute; top: 18px; left: 18px;
  width: 108px; height: 108px; border-radius: 30px;
  /* Above the ::after shine, which would otherwise wash the lenses out. */
  z-index: 1;
  background: linear-gradient(150deg, rgba(255,255,255,.42), rgba(0,0,0,.18));
  box-shadow: 0 2px 6px rgba(255,255,255,.35) inset, 0 8px 18px -8px rgba(0,0,0,.5);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  align-items: center; justify-items: center;
  padding: 12px; gap: 6px;
}
.lens {
  width: 38px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(60% 60% at 36% 30%, #6d7488, #14161d 62%, #05060a);
  box-shadow: 0 0 0 3px rgba(20,20,24,.55), 0 0 0 4px rgba(255,255,255,.22) inset;
}
/* Second row: the periscope lens sits left, the flash right. */
.lens--third { grid-area: 2 / 1; justify-self: start; width: 26px; }
.lens--flash {
  grid-area: 2 / 2; justify-self: end;
  width: 20px;
  background: radial-gradient(60% 60% at 40% 34%, #fffaf0, #d9c9a8);
}

/* ── Highlights (oversized gradient type) ────────────────────────────── */
.hl { background: #000; color: #f5f5f7; padding: 92px 22px 104px; }
.hl__inner { max-width: 900px; margin: 0 auto; }
.hl h2 {
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 600; line-height: 1.16; letter-spacing: -.02em;
  text-wrap: balance;
}
.hl em {
  font-style: normal;
  background: linear-gradient(96deg, #7fd8ff 0%, #b98cff 44%, #6bffc4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl__list {
  margin-top: 54px;
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.hl__list dt {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #86868b; margin-bottom: 8px;
}
.hl__list dd { margin: 0; font-size: 21px; line-height: 1.28; letter-spacing: -.01em; }
.hl__list dd b { font-weight: 600; }

/* ── Buy box ─────────────────────────────────────────────────────────── */
.buy { padding: 78px 22px 92px; background: var(--bg); }
.buy__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid; gap: 56px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}
.buy__visual {
  display: grid; place-items: center;
  padding: 34px;
  border-radius: 26px;
  background: var(--tile);
}
.buy__visual .device--phone { width: min(220px, 46vw); }

.buy__panel h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600; letter-spacing: -.017em; line-height: 1.14;
}
.opt { margin-top: 30px; border: 0; padding: 0; }
.opt__legend {
  font-size: 12px; font-weight: 600; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 0; margin-bottom: 12px;
}
.opt__legend span { text-transform: none; letter-spacing: -.01em; color: var(--ink); margin-left: 6px; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.14) inset, 0 1px 3px rgba(0,0,0,.16);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-checked="true"] {
  box-shadow: 0 0 0 1px rgba(0,0,0,.14) inset, 0 0 0 2px var(--bg), 0 0 0 4px var(--blue);
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-width: 132px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: #fff;
  text-align: left;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pill:hover { border-color: #b8b8bd; }
.pill[aria-pressed="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.pill b { display: block; font-size: 15px; font-weight: 600; }
.pill span { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

.buy__total {
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
}
.buy__total span { font-size: 14px; color: var(--ink-muted); }
.buy__total b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.buy__cta {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 30px;
  border-radius: 980px;
  background: var(--blue); color: #fff;
  font-size: 17px;
  transition: background .2s var(--ease);
}
.buy__cta:hover { background: #0077ed; }
.buy__note { margin-top: 16px; font-size: 12px; color: var(--ink-muted); max-width: 46ch; }

/* ── Feature cards ───────────────────────────────────────────────────── */
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px;
  max-width: var(--tileshell);
  margin: 0 auto;
}
.feat {
  padding: 40px 34px 46px;
  border-radius: 22px;
  background: var(--tile);
  min-height: 340px;
  display: flex; flex-direction: column;
}
.feat--dark { background: #101012; color: #f5f5f7; }
.feat__num {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 600; letter-spacing: -.025em; line-height: 1;
}
.feat__num small { font-size: .42em; font-weight: 600; letter-spacing: -.01em; margin-left: .2em; }
.feat h3 { margin-top: 12px; font-size: 19px; font-weight: 600; letter-spacing: -.014em; }
.feat p { margin-top: 8px; font-size: 15px; line-height: 1.42; color: var(--ink-muted); }
.feat--dark p { color: #a1a1a6; }
.feat__art { margin-top: auto; padding-top: 26px; }

/* animated chip die + battery bar inside feature cards */
.chiplet {
  width: 116px; aspect-ratio: 1; border-radius: 16px;
  background: linear-gradient(150deg, #2a2f42, #101320);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
  display: grid; place-items: center;
  position: relative;
}
.chiplet::before {
  content: ""; position: absolute; inset: -7px; border-radius: 20px;
  background: repeating-linear-gradient(90deg, rgba(120,170,255,.5) 0 3px, transparent 3px 13px);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude; -webkit-mask-composite: xor;
  padding: 7px; opacity: .55;
}
.chiplet span {
  font-size: 26px; font-weight: 600; letter-spacing: -.02em;
  background: linear-gradient(100deg, #7fd8ff, #b98cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.batt {
  height: 14px; border-radius: 7px; background: rgba(0,0,0,.10);
  overflow: hidden;
}
.feat--dark .batt { background: rgba(255,255,255,.14); }
.batt i {
  display: block; height: 100%; width: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #34c759, #5bff9d);
  transition: width 1.6s var(--ease) .2s;
}
.is-in .batt i { width: var(--w, 82%); }

/* ── Tech specs ──────────────────────────────────────────────────────── */
.specs { padding: 84px 22px 96px; background: var(--bg); }
.specs__inner { max-width: 760px; margin: 0 auto; }
.specs h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600; letter-spacing: -.018em; margin-bottom: 34px;
}
.specs details { border-bottom: 1px solid var(--hairline); }
.specs details:first-of-type { border-top: 1px solid var(--hairline); }
.specs summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 19px; font-weight: 600; letter-spacing: -.014em;
  position: relative;
}
.specs summary::-webkit-details-marker { display: none; }
.specs summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--ink-muted);
  transition: transform .25s var(--ease);
}
.specs details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.specs__body { padding: 0 0 24px; display: grid; gap: 14px; }
.specs__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  font-size: 15px;
}
.specs__row dt { color: var(--ink-muted); }
.specs__row dd { margin: 0; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1068px) {
  .feats { grid-template-columns: 1fr; }
  .feat { min-height: 260px; }
}
@media (max-width: 833px) {
  .lnav__links { display: none; }
  .lnav__buy { margin-left: auto; }
  .buy__inner { grid-template-columns: 1fr; gap: 34px; }
  .phero__product { gap: 34px; }
}
@media (max-width: 600px) {
  .specs__row { grid-template-columns: 1fr; gap: 2px; }
  .specs__row dt { font-size: 13px; }
  .buy { padding: 56px 22px 68px; }
  .hl { padding: 64px 22px 76px; }
}
