/* ==========================================================================
   LiteGR · home.css  ·  v2 Apple-style
   Landing page sections — Hero, How It Works, Features bento, Brand, Charity.
   ========================================================================== */

/* ---- HERO ---------------------------------------------------------- */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 56px) var(--container-pad) 80px;
  position: relative;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(31, 78, 92, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__eyebrow,
.hero__headline,
.hero__sub,
.hero__actions,
.hero__product,
.hero__caption {
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: #FFFFFF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 8px 16px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  position: relative;
  z-index: 2;
}
.hero__eyebrow svg { width: 14px; height: 14px; }

.hero__headline {
  position: relative;
  z-index: 2;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: #A8A8A8;
  max-width: 800px;
  margin-bottom: 24px;
}
.hero__headline em {
  font-style: normal;
  color: #A8A8A8;
}

.hero__sub {
  position: relative;
  z-index: 1;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: var(--weight-regular);
  color: #F5F5F5;
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 44px;
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero__product {
  position: relative;
  z-index: 1;
  width: min(560px, 90vw);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.10));
  border-radius: var(--radius-xl);
  background: var(--color-bg-alt);
  overflow: hidden;
}
.hero__product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__caption {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.02em;
}

/* ---- HOW IT WORKS (3-card grid on alt bg) ------------------------- */
.how {
  background: var(--color-bg-alt);
}
.how__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .how__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.how__card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.how__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.how__step {
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 20px;
}
.how__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--color-accent);
}
.how__title {
  font-size: 20px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.25;
}
.how__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ---- FEATURES (bento grid) --------------------------------------- */
.features__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.bento {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}
@media (min-width: 540px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 240px;
  }
  .bento__card--span-7 { grid-column: span 7; }
  .bento__card--span-5 { grid-column: span 5; }
  .bento__card--span-4 { grid-column: span 4; }
  .bento__card--span-8 { grid-column: span 8; }
}
.bento__card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bento__card--feature { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .bento__card--feature { grid-column: span 12; grid-row: span 2; min-height: 480px; }
}
.bento__card:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}
.bento__card-eyebrow {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.bento__card-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 8px;
}
.bento__card-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 36ch;
}
.bento__card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}
.bento__card-image + * { position: relative; z-index: 1; }

/* ---- PRODUCT (specs + price + CTA on white bg) -------------------- */
.product {
  background: var(--color-bg);
}
.product__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .product__layout { grid-template-columns: 1fr 1fr; gap: 72px; }
}
.product__visual {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--color-bg-alt);
  overflow: hidden;
  position: relative;
}
.product__gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding: 16px;
  height: 100%;
  scroll-behavior: smooth;
}
.product__gallery img {
  flex-shrink: 0;
  width: calc(100% - 32px);
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
}
.product__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
  color: rgba(255, 255, 255, 0.8);
}
.product__arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}
.product__arrow svg {
  width: 24px;
  height: 24px;
}
.product__arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}
.product__arrow--prev {
  left: 16px;
}
.product__arrow--next {
  right: 16px;
}
.product__name {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.product__lead {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  line-height: 1.55;
}
.product__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.product__spec dt {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}
.product__spec dd {
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--color-text);
}
.product__cta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 480px) {
  .product__cta-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.product__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product__price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-semibold);
}
.product__price-value {
  font-size: 28px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---- BRAND (split, alternating bg) -------------------------------- */
.brand-tease {
  background: var(--color-bg-alt);
}
.brand-tease__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .brand-tease__layout { grid-template-columns: 1fr 1fr; gap: 72px; }
}
.brand-tease__copy h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.brand-tease__copy p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}
.brand-tease__visual {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  overflow: hidden;
}
.brand-tease__visual img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---- CHARITY (dark final-CTA section) ----------------------------- */
.charity {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.charity::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(31, 78, 92, 0.20), transparent 65%);
  pointer-events: none;
}
.charity__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.charity__eyebrow {
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.charity__headline {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
}
.charity__sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Cart slide-out (restyled Apple-like) ------------------------ */
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  pointer-events: none;
}
.cart-panel[hidden] { display: none !important; }
.cart-panel:not([hidden]) { pointer-events: auto; }

.cart-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0);
  transition: background var(--transition-slow);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}
.cart-panel.is-open .cart-panel__overlay {
  background: rgba(31, 31, 31, 0.40);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}

.cart-panel__content {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.12);
}
.cart-panel.is-open .cart-panel__content { transform: translateX(0); }

@media (max-width: 480px) {
  .cart-panel__content {
    top: auto;
    height: 80dvh;
    max-width: 100%;
    transform: translateY(100%);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
  }
  .cart-panel.is-open .cart-panel__content { transform: translateY(0); }
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}
.cart-panel__title {
  font-size: 18px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}
.cart-panel__close {
  width: var(--touch-target);
  height: var(--touch-target);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background var(--transition);
}
.cart-panel__close:hover { background: rgba(58, 58, 58, 0.06); }

.cart-panel__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-panel__empty {
  text-align: center;
  color: var(--color-text-tertiary);
  padding: 56px 16px;
  font-size: 15px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  object-fit: cover;
}
.cart-item__info { display: flex; flex-direction: column; gap: 4px; }
.cart-item__name { font-weight: var(--weight-semibold); font-size: 15px; }
.cart-item__color { font-size: 12px; color: var(--color-text-tertiary); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
}
.qty-stepper button {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--color-text);
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}
.qty-stepper button:hover { background: rgba(58, 58, 58, 0.06); }
.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-stepper .qty-value { width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: var(--weight-semibold); font-size: 14px; }
.cart-item__price { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; font-size: 15px; }

.cart-panel__footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 12px;
}
.cart-panel__subtotal {
  display: flex; justify-content: space-between;
  font-size: 17px; font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}
.cart-panel__view-link {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-tertiary);
  padding: 6px;
}
.cart-panel__view-link:hover { color: var(--color-accent); }
