/* ═══════════════════════════════════════════
   菠萝手机官网 — Apple-inspired design system
   ═══════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-dark: #000000;
  --bg-dark-elevated: #1d1d1f;

  /* Text */
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-on-dark: #f5f5f7;
  --text-on-dark-secondary: #a1a1a6;

  /* Brand */
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-link: #0066cc;
  --blue-link-dark: #2997ff;

  /* Chrome */
  --nav-bg: rgba(251, 251, 253, 0.8);
  --nav-border: rgba(0, 0, 0, 0.08);
  --local-nav-bg: rgba(251, 251, 253, 0.72);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast: 160ms;
  --duration-ui: 220ms;
  --duration-enter: 700ms;

  /* Layout */
  --nav-h: 44px;
  --local-nav-h: 52px;
  --content-max: 980px;
  --content-wide: 1200px;
  --gutter: 22px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ── Typography utilities ── */
.eyebrow {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.band--dark .eyebrow,
.bento__card--dark .eyebrow,
.bento__card--gradient .eyebrow {
  color: var(--blue-link-dark);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.17648;
  letter-spacing: -0.022em;
  min-width: 28px;
  padding: 8px 16px;
  border-radius: 980px;
  transition: background-color var(--duration-ui) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-ui) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--sm {
  font-size: 12px;
  line-height: 1.33337;
  padding: 4px 11px;
}

.btn--lg {
  font-size: 17px;
  padding: 12px 22px;
  min-width: 120px;
}

.btn--blue {
  background: var(--blue);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .btn--blue:hover {
    background: var(--blue-hover);
  }
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-link);
  font-size: 17px;
  transition: color var(--duration-ui) var(--ease-out),
    opacity var(--duration-ui) var(--ease-out);
}

.link-more span {
  transition: transform var(--duration-ui) var(--ease-out);
  display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
  .link-more:hover {
    text-decoration: underline;
  }
  .link-more:hover span {
    transform: translateX(3px);
  }
}

.link-more:active {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   GLOBAL NAV — translucent material
   ═══════════════════════════════════════════ */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-ui) var(--ease-out),
    background var(--duration-ui) var(--ease-out);
}

.global-nav.is-scrolled {
  border-bottom-color: var(--nav-border);
}

.global-nav__inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.global-nav__logo {
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.global-nav__logo:hover {
  opacity: 1;
}

.global-nav__logo:active {
  transform: scale(0.97);
}

.global-nav__links {
  display: none;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

@media (min-width: 834px) {
  .global-nav__links {
    display: flex;
  }
}

.global-nav__links a {
  font-size: 12px;
  line-height: var(--nav-h);
  letter-spacing: -0.01em;
  padding: 0 10px;
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .global-nav__links a:hover {
    opacity: 1;
  }
}

.global-nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  padding: 4px;
}

.icon-btn:hover {
  opacity: 1;
}

.icon-btn:active {
  transform: scale(0.94);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 6px;
}

@media (min-width: 834px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform var(--duration-ui) var(--ease-out),
    opacity var(--duration-ui) var(--ease-out);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile drawer */
.global-nav.is-open {
  background: rgba(251, 251, 253, 0.96);
}

.global-nav.is-open .global-nav__links {
  display: flex;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: #fbfbfd;
  padding: 20px 40px 40px;
  gap: 0;
  z-index: 999;
  overflow-y: auto;
  animation: drawerIn 280ms var(--ease-drawer);
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.global-nav.is-open .global-nav__links a {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 12px 0;
  opacity: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════
   LOCAL NAV
   ═══════════════════════════════════════════ */
.local-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--local-nav-h);
  background: var(--local-nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transform: translateY(0);
  transition: transform 280ms var(--ease-drawer),
    opacity 200ms var(--ease-out);
}

.local-nav.is-hidden {
  transform: translateY(calc(-1 * (var(--nav-h) + var(--local-nav-h))));
  opacity: 0;
  pointer-events: none;
}

.local-nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.local-nav__title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  line-height: 1.381;
}

.local-nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.local-nav__links {
  display: none;
  gap: 20px;
}

@media (min-width: 734px) {
  .local-nav__links {
    display: flex;
  }
}

.local-nav__links a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.local-nav__links a.is-active {
  color: var(--text);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .local-nav__links a:hover {
    color: var(--text);
  }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  padding: calc(var(--nav-h) + var(--local-nav-h) + 48px) var(--gutter) 0;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}

.hero__eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.hero__title {
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}

.hero__subhead {
  font-size: clamp(21px, 4vw, 28px);
  line-height: 1.14286;
  font-weight: 400;
  letter-spacing: 0.007em;
  color: var(--text);
  margin-bottom: 14px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 10px;
}

.hero__price {
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero__stage {
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
  perspective: 1200px;
}

/* ═══════════════════════════════════════════
   PHONE MOCKUP
   ═══════════════════════════════════════════ */
.phone {
  position: relative;
  --phone-w: 280px;
  --phone-h: 572px;
  --frame: #c4b7a6;
  --frame-shine: #d9cec0;
  --bezel: #0a0a0a;
  width: var(--phone-w);
  height: var(--phone-h);
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.22))
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

.phone--hero {
  --phone-w: min(300px, 72vw);
  --phone-h: calc(var(--phone-w) * 2.043);
}

.phone--sm {
  --phone-w: 148px;
  --phone-h: 302px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.16));
}

.phone[data-color="natural"] {
  --frame: #c4b7a6;
  --frame-shine: #d9cec0;
}
.phone[data-color="blue"] {
  --frame: #3d4f6f;
  --frame-shine: #526887;
}
.phone[data-color="white"] {
  --frame: #e8e6df;
  --frame-shine: #f5f4ef;
}
.phone[data-color="black"] {
  --frame: #3a3a3c;
  --frame-shine: #4a4a4c;
}
.phone[data-color="pink"] {
  --frame: #f2c7d0;
  --frame-shine: #f8dce2;
}
.phone[data-color="sky"] {
  --frame: #b8d4e8;
  --frame-shine: #d0e4f2;
}

.phone__frame {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(
    145deg,
    var(--frame-shine) 0%,
    var(--frame) 40%,
    color-mix(in srgb, var(--frame) 80%, #000) 100%
  );
  padding: calc(var(--phone-w) * 0.028);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--phone-w) * 0.13);
  background: var(--bezel);
  overflow: hidden;
}

.phone__island {
  position: absolute;
  top: calc(var(--phone-w) * 0.045);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--phone-w) * 0.32);
  height: calc(var(--phone-w) * 0.09);
  background: #000;
  border-radius: 999px;
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone__island--pill {
  width: calc(var(--phone-w) * 0.28);
  height: calc(var(--phone-w) * 0.08);
  top: calc(var(--phone-w) * 0.04);
}

.phone__wallpaper {
  position: absolute;
  inset: 0;
}

.phone__wallpaper--pro {
  background: linear-gradient(
      165deg,
      #1a1a2e 0%,
      #16213e 30%,
      #0f3460 55%,
      #533483 80%,
      #e94560 100%
    ),
    radial-gradient(ellipse at 30% 20%, rgba(255, 200, 100, 0.35), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(100, 180, 255, 0.3), transparent 45%);
  background-blend-mode: soft-light, normal, normal;
}

.phone__wallpaper--std {
  background: linear-gradient(160deg, #ffecd2 0%, #fcb69f 40%, #a18cd1 100%);
}

.phone__wallpaper--air {
  background: linear-gradient(160deg, #a1c4fd 0%, #c2e9fb 50%, #e0c3fc 100%);
}

.phone__ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(var(--phone-w) * 0.16) calc(var(--phone-w) * 0.06)
    calc(var(--phone-w) * 0.06);
  color: #fff;
  z-index: 2;
}

.phone__time {
  text-align: center;
  font-size: calc(var(--phone-w) * 0.18);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: calc(var(--phone-w) * 0.06);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.phone__widgets {
  display: flex;
  flex-direction: column;
  gap: calc(var(--phone-w) * 0.035);
  flex: 1;
}

.widget {
  border-radius: calc(var(--phone-w) * 0.06);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.widget--large {
  padding: calc(var(--phone-w) * 0.045);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.widget__label {
  font-size: calc(var(--phone-w) * 0.038);
  opacity: 0.85;
  font-weight: 500;
}

.widget__value {
  font-size: calc(var(--phone-w) * 0.12);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.widget__meta {
  font-size: calc(var(--phone-w) * 0.032);
  opacity: 0.75;
  margin-top: 2px;
}

.widget--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--phone-w) * 0.03);
  padding: calc(var(--phone-w) * 0.04);
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.app-icon {
  aspect-ratio: 1;
  border-radius: 22%;
  background: linear-gradient(145deg, #5ac8fa, #007aff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.app-icon--photos {
  background: linear-gradient(135deg, #ff2d55, #ff9500, #ffcc00, #34c759, #007aff);
}
.app-icon--camera {
  background: linear-gradient(180deg, #8e8e93, #636366);
}
.app-icon--music {
  background: linear-gradient(180deg, #fc3c44, #d70015);
}
.app-icon--maps {
  background: linear-gradient(180deg, #64d2ff, #0a84ff 40%, #30d158 70%, #ffd60a);
}
.app-icon--phone {
  background: linear-gradient(180deg, #30d158, #28a745);
}
.app-icon--safari {
  background: linear-gradient(180deg, #5ac8fa, #007aff);
}
.app-icon--msg {
  background: linear-gradient(180deg, #30d158, #34c759);
}

.phone__dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--phone-w) * 0.03);
  padding: calc(var(--phone-w) * 0.035);
  border-radius: calc(var(--phone-w) * 0.08);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: auto;
}

.phone__side {
  position: absolute;
  background: linear-gradient(
    180deg,
    var(--frame-shine),
    var(--frame),
    color-mix(in srgb, var(--frame) 70%, #000)
  );
  border-radius: 2px;
  z-index: -1;
}

.phone__side--left {
  left: -2px;
  top: 18%;
  width: 3px;
  height: 12%;
  box-shadow: 0 28px 0 0 var(--frame), 0 52px 0 0 var(--frame);
}

.phone__side--right {
  right: -2px;
  top: 22%;
  width: 3px;
  height: 18%;
}

/* ═══════════════════════════════════════════
   COLOR SWATCHES
   ═══════════════════════════════════════════ */
.colors {
  text-align: center;
  padding: 48px var(--gutter) 64px;
}

.colors__row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-ui) var(--ease-out);
  position: relative;
}

.swatch:active {
  transform: scale(0.92);
}

.swatch.is-active {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.colors__caption {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.016em;
}

/* ═══════════════════════════════════════════
   BANDS & SECTIONS
   ═══════════════════════════════════════════ */
.section {
  position: relative;
}

.section--pad {
  padding: 80px var(--gutter);
}

.section--tight {
  padding-top: 0;
  padding-bottom: 0;
}

.section__header {
  max-width: var(--content-max);
  margin: 0 auto 48px;
  text-align: center;
}

.section__title {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.08349;
  font-weight: 600;
  letter-spacing: -0.003em;
  margin-bottom: 12px;
}

.section__sub {
  font-size: 19px;
  line-height: 1.4211;
  font-weight: 400;
  letter-spacing: 0.012em;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.band {
  padding: 100px var(--gutter);
  text-align: center;
}

.band--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.band__inner {
  max-width: 720px;
  margin: 0 auto;
}

.band__title {
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}

.band__copy {
  font-size: 19px;
  line-height: 1.4211;
  letter-spacing: 0.012em;
  color: var(--text-on-dark-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   BENTO GRID
   ═══════════════════════════════════════════ */
.bento {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 734px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .bento__card--wide {
    grid-column: 1 / -1;
  }
}

.bento__card {
  border-radius: 28px;
  overflow: hidden;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  position: relative;
  transition: transform var(--duration-ui) var(--ease-out);
}

@media (min-width: 734px) {
  .bento__card {
    min-height: 420px;
    padding: 48px 44px;
  }
  .bento__card--wide {
    flex-direction: row;
    align-items: center;
    min-height: 360px;
  }
}

.bento__card--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.bento__card--light {
  background: var(--bg-secondary);
  color: var(--text);
}

.bento__card--gradient {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1030 40%, #0d1b2a 100%);
  color: var(--text-on-dark);
}

.bento__text {
  position: relative;
  z-index: 2;
  max-width: 340px;
}

.bento__text h3 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: 0.004em;
  margin-bottom: 10px;
}

.bento__text p {
  font-size: 17px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.bento__card--dark .bento__text p,
.bento__card--gradient .bento__text p {
  color: var(--text-on-dark-secondary);
}

.bento__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 180px;
  margin-top: 24px;
}

.bento__card--wide .bento__visual {
  margin-top: 0;
}

/* Design ring */
.design-ring {
  width: min(220px, 50vw);
  height: min(220px, 50vw);
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    #c4b7a6,
    #3d4f6f,
    #f0efe9,
    #3a3a3c,
    #c4b7a6
  );
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

.design-ring::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.06);
}

/* Display glow */
.display-glow {
  width: min(160px, 40vw);
  height: min(280px, 55vw);
  border-radius: 24px;
  background: linear-gradient(
    165deg,
    #667eea 0%,
    #764ba2 40%,
    #f093fb 70%,
    #f5576c 100%
  );
  box-shadow: 0 0 80px rgba(118, 75, 162, 0.5),
    0 0 120px rgba(245, 87, 108, 0.25);
  animation: glowPulse 4s var(--ease-in-out) infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

/* Battery ring */
.battery-ring {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.battery-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.battery-ring__track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 8;
}

.battery-ring__fill {
  fill: none;
  stroke: #30d158;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 40;
}

.battery-ring span {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.battery-ring .unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 1px;
}

/* Chip */
.chip {
  width: min(200px, 50vw);
  height: min(200px, 50vw);
  border-radius: 28px;
  background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1e 50%, #0e0e12 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(100, 180, 255, 0.03) 3px,
      rgba(100, 180, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(100, 180, 255, 0.03) 3px,
      rgba(100, 180, 255, 0.03) 4px
    );
}

.chip__die {
  width: 62%;
  height: 62%;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 50%, #1a1040 100%);
  border: 1px solid rgba(100, 180, 255, 0.25);
  box-shadow: 0 0 40px rgba(41, 151, 255, 0.2),
    inset 0 0 20px rgba(41, 151, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.chip__brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

.chip__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(90deg, #7ec8ff, #c4a0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════════
   CAMERA
   ═══════════════════════════════════════════ */
.section--camera {
  background: var(--bg-secondary);
}

.camera-showcase {
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
}

.camera-module {
  width: min(320px, 80vw);
  aspect-ratio: 1;
  border-radius: 48px;
  background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 50%, #2c2c2e 100%);
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.camera-module__lens {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2a2e, #0a0a0a 60%, #1a1a1c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lens-glass {
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(100, 160, 220, 0.35) 0%,
    rgba(20, 40, 80, 0.6) 40%,
    rgba(5, 10, 20, 0.95) 70%
  );
  box-shadow: inset 0 0 12px rgba(100, 180, 255, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lens-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.camera-module__lens--main {
  width: 38%;
  height: 38%;
  top: 14%;
  left: 14%;
}

.camera-module__lens--tele {
  width: 38%;
  height: 38%;
  top: 14%;
  right: 14%;
}

.camera-module__lens--ultra {
  width: 30%;
  height: 30%;
  bottom: 16%;
  left: 18%;
}

.camera-module__flash {
  position: absolute;
  width: 12%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #f5f0e0, #c8c0a8);
  bottom: 22%;
  right: 28%;
  box-shadow: 0 0 12px rgba(255, 240, 200, 0.3);
}

.camera-module__mic {
  position: absolute;
  width: 4%;
  height: 4%;
  border-radius: 50%;
  background: #111;
  bottom: 28%;
  right: 18%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.feature-row {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 734px) {
  .feature-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.feature-item h4 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   LINEUP
   ═══════════════════════════════════════════ */
.section--lineup {
  background: var(--bg);
}

.lineup {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 734px) {
  .lineup {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.lineup__card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lineup__phone {
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 20px;
}

.lineup__colors {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.lineup__colors span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lineup__new {
  font-size: 12px;
  font-weight: 400;
  color: #bf4800;
  margin-bottom: 4px;
}

.lineup__name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.007em;
  line-height: 1.14286;
  margin-bottom: 6px;
}

.lineup__tag {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: -0.016em;
}

.lineup__price {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.016em;
}

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

/* ═══════════════════════════════════════════
   SPECS
   ═══════════════════════════════════════════ */
.section--specs {
  background: var(--bg-secondary);
}

.specs-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 734px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
  }
}

@media (min-width: 1068px) {
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec {
  text-align: center;
}

.spec__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text);
}

.spec__icon svg {
  width: 100%;
  height: 100%;
}

.spec h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.012em;
  margin-bottom: 8px;
}

.spec p {
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  color: var(--text-secondary);
  max-width: 240px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   CTA / TRADE-IN
   ═══════════════════════════════════════════ */
.section--cta {
  background: var(--bg);
}

.cta-card {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 56px 32px;
  background: var(--bg-secondary);
  border-radius: 28px;
}

.cta-card h2 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: 0em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.cta-card > p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: -0.022em;
}

.cta-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cta-card__fine {
  font-size: 12px !important;
  color: var(--text-tertiary) !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 0 !important;
}

.trade-in {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 734px) {
  .trade-in {
    grid-template-columns: 1fr 1fr;
  }
}

.trade-in__item {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 36px 32px;
}

.trade-in__item h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  margin-bottom: 8px;
}

.trade-in__item p {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.016em;
  margin-bottom: 12px;
  line-height: 1.42859;
}

/* ═══════════════════════════════════════════
   ACCESSORIES
   ═══════════════════════════════════════════ */
.section--accessories {
  background: var(--bg-secondary);
}

.acc-row {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.acc-card {
  display: block;
  background: var(--bg);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform var(--duration-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .acc-card:hover {
    transform: scale(1.02);
  }
}

.acc-card:active {
  transform: scale(0.99);
}

.acc-card__visual {
  height: 160px;
  margin-bottom: 20px;
  border-radius: 16px;
  position: relative;
}

.acc-card__visual--case {
  background: linear-gradient(160deg, #c4b7a6 0%, #a89880 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.acc-card__visual--case::after {
  content: "";
  position: absolute;
  inset: 20% 32%;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.acc-card__visual--magsafe {
  background: linear-gradient(160deg, #f5f5f7 0%, #e8e8ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-card__visual--magsafe::after {
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 30%, #e0e0e5 70%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 0 0 8px #f0f0f2,
    inset 0 0 0 12px #dddde0;
}

.acc-card__visual--buds {
  background: linear-gradient(160deg, #1c1c1e 0%, #2c2c2e 100%);
}

.acc-card__visual--buds::before,
.acc-card__visual--buds::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 48px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, #3a3a3c, #1c1c1e);
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.acc-card__visual--buds::before {
  left: calc(50% - 36px);
}
.acc-card__visual--buds::after {
  right: calc(50% - 36px);
}

.acc-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.acc-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   SUPPORT
   ═══════════════════════════════════════════ */
.section--support {
  background: var(--bg);
}

.support-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 734px) {
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.support-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
}

.support-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.009em;
  margin-bottom: 10px;
}

.support-card p {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.016em;
  margin-bottom: 14px;
  line-height: 1.42859;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  padding: 20px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer__disclaimer {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-tertiary);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.footer__col h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.footer__col li {
  margin-bottom: 8px;
}

.footer__col a {
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover {
    text-decoration: underline;
    color: var(--text);
  }
}

.footer__bottom {
  padding: 16px 0 24px;
}

.footer__bottom > p {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer__bottom a {
  color: var(--blue-link);
}

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

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--text-tertiary);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer__legal-links a {
  color: var(--text-secondary);
  padding: 0 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 12px;
}

.footer__legal-links a:first-child {
  padding-left: 0;
}

.footer__legal-links a:last-child {
  border-right: none;
}

.footer__locale {
  margin-left: auto;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.016em;
  padding: 12px 22px;
  border-radius: 980px;
  z-index: 2000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out),
    transform 280ms var(--ease-out);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] {
  display: block;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-enter) var(--ease-out),
    transform var(--duration-enter) var(--ease-out);
  will-change: opacity, transform;
}

.reveal--scale {
  transform: translateY(32px) scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children via JS delay, or nth-child fallbacks */
.feature-item.reveal:nth-child(2) {
  transition-delay: 60ms;
}
.feature-item.reveal:nth-child(3) {
  transition-delay: 120ms;
}
.lineup__card.reveal:nth-child(2) {
  transition-delay: 80ms;
}
.lineup__card.reveal:nth-child(3) {
  transition-delay: 160ms;
}
.spec.reveal:nth-child(2) {
  transition-delay: 50ms;
}
.spec.reveal:nth-child(3) {
  transition-delay: 100ms;
}
.spec.reveal:nth-child(4) {
  transition-delay: 150ms;
}
.acc-card.reveal:nth-child(2) {
  transition-delay: 60ms;
}
.acc-card.reveal:nth-child(3) {
  transition-delay: 120ms;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 200ms ease;
  }

  .reveal--scale {
    transform: none;
  }

  .display-glow {
    animation: none;
  }

  .btn,
  .link-more span,
  .swatch,
  .acc-card,
  .icon-btn,
  .local-nav,
  .toast {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .global-nav,
  .local-nav {
    background: #fbfbfd;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .widget,
  .phone__dock {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(60, 60, 67, 0.7);
  }
}

/* Focus visible for a11y */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn:focus-visible,
.swatch:focus-visible {
  outline-offset: 4px;
}

/* �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T
   SUBPAGES �� shared shell
   �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T */
body.page-sub .local-nav { display: none; }
body.page-sub main {
  padding-top: calc(var(--nav-h) + 8px);
  min-height: 70vh;
}

.page-hero {
  text-align: center;
  padding: 48px var(--gutter) 32px;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.003em;
  line-height: 1.08349;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 19px;
  line-height: 1.4211;
  color: var(--text-secondary);
  letter-spacing: 0.012em;
}

.page-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

.page-wrap--wide {
  max-width: var(--content-wide);
}

.breadcrumb {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--blue-link);
}

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

.breadcrumb span {
  margin: 0 6px;
  color: var(--text-tertiary);
}

/* Bag badge on nav */
.icon-btn--bag {
  position: relative;
}

.bag-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  display: none;
}

.bag-badge.is-on {
  display: block;
}

/* �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T
   BUY �� configure
   �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T */
.buy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 24px var(--gutter) 96px;
}

@media (min-width: 900px) {
  .buy-layout {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
}

.buy-preview {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-secondary);
  border-radius: 28px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.buy-preview__caption {
  font-size: 14px;
  color: var(--text-secondary);
}

.buy-form h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.007em;
  margin-bottom: 8px;
}

.buy-form > .lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.config-block {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.config-block:last-of-type {
  border-bottom: none;
}

.config-block h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.config-block .hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .option-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.option-card {
  display: block;
  text-align: left;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--duration-ui) var(--ease-out),
    box-shadow var(--duration-ui) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  position: relative;
}

.option-card:active {
  transform: scale(0.99);
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card.is-selected,
.option-card:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.option-card__title {
  font-size: 17px;
  font-weight: 600;
  display: block;
}

.option-card__meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}

.option-card__price {
  font-size: 14px;
  color: var(--text);
  margin-top: 6px;
  display: block;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.swatch-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 64px;
}

.swatch-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatch-option .swatch {
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.swatch-option.is-selected .swatch,
.swatch-option:has(input:checked) .swatch {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.swatch-option__label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 72px;
  line-height: 1.25;
}

.buy-summary {
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 24px;
  margin-top: 8px;
}

.buy-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.buy-summary__row strong {
  color: var(--text);
  font-weight: 400;
  text-align: right;
}

.buy-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 21px;
  font-weight: 600;
}

.buy-summary__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.buy-summary__actions .btn {
  width: 100%;
}

.buy-summary__note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 12px;
  line-height: 1.4;
}

/* �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T
   BAG
   �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T */
.bag-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-secondary);
  border-radius: 28px;
}

.bag-empty h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.bag-empty p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.bag-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.bag-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 18px;
}

@media (max-width: 600px) {
  .bag-item {
    grid-template-columns: 72px 1fr;
  }
  .bag-item__side {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.bag-item__thumb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e8e6df, #c4b7a6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bag-item__thumb .phone--sm {
  --phone-w: 36px;
  --phone-h: 74px;
  filter: none;
}

.bag-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bag-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bag-item__price {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.bag-item__remove {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--blue-link);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.bag-item__remove:hover {
  text-decoration: underline;
}

.bag-checkout {
  max-width: 420px;
  margin-left: auto;
  background: var(--bg-secondary);
  border-radius: 18px;
  padding: 28px;
}

.bag-checkout h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 16px;
}

.bag-checkout__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.bag-checkout__row--total {
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bag-checkout .btn {
  width: 100%;
  margin-top: 20px;
}

/* �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T
   STORE FINDER
   �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T */
.store-search {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 0 var(--gutter);
}

.store-search input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
  font-size: 17px;
  background: var(--bg);
  outline: none;
  transition: border-color var(--duration-ui) var(--ease-out),
    box-shadow var(--duration-ui) var(--ease-out);
}

.store-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 18px;
  align-items: start;
}

.store-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}

.store-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.store-card__status {
  font-size: 12px;
  font-weight: 600;
  color: #1f8f3a;
  white-space: nowrap;
}

.store-card__status.is-busy {
  color: #bf4800;
}

/* �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T
   SUPPORT / CARE / TRADE-IN / CONTACT
   �T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T�T */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.hub-card {
  display: block;
  padding: 28px 24px;
  background: var(--bg-secondary);
  border-radius: 18px;
  transition: transform var(--duration-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .hub-card:hover {
    transform: scale(1.015);
  }
}

.hub-card:active {
  transform: scale(0.99);
}

.hub-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hub-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.panel {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.panel p,
.panel li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.panel ul {
  margin: 12px 0 0 1.1em;
  list-style: disc;
}

.panel li {
  margin-bottom: 8px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
  font-size: 17px;
  background: var(--bg);
  outline: none;
  transition: border-color var(--duration-ui) var(--ease-out),
    box-shadow var(--duration-ui) var(--ease-out);
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.estimate-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: none;
}

.estimate-result.is-on {
  display: block;
}

.estimate-result strong {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin: 6px 0 10px;
}

.success-banner {
  display: none;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(48, 209, 88, 0.12);
  color: #1f8f3a;
  font-size: 15px;
  margin-bottom: 20px;
}

.success-banner.is-on {
  display: block;
}

/* Search modal / page */
.search-box {
  max-width: 680px;
  margin: 0 auto 40px;
}

.search-box input {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
  font-size: 21px;
  background: var(--bg-secondary);
  outline: none;
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result {
  display: block;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-secondary);
  transition: background var(--duration-ui) var(--ease-out);
}

.search-result:hover {
  background: #ebebed;
}

.search-result h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.search-result p {
  font-size: 14px;
  color: var(--text-secondary);
}

.search-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 0;
}
