/**
 * S-ERUM Reward Points Guide — Warm Luxury Skincare Editorial
 * Scoped to body.page-points-guide only. Does not redesign global chrome.
 */

html:has(body.page-points-guide),
body.page-points-guide {
  --serum-navy: #0A2855;
  --serum-navy-deep: #071C3D;
  --serum-gold: #B9975B;
  --serum-gold-light: #D8BC82;
  --serum-gold-pale: #F1E4CB;
  --serum-cream: #F7F2EA;
  --serum-cream-light: #FCFAF6;
  --serum-white: #FFFFFF;
  --serum-brown: #4A4036;
  --serum-text: #2D2924;
  --serum-muted: #81786D;
  --serum-line: #E8DED0;
  --serum-green: #557461;
  --serum-green-dark: #405C4C;
  --serum-green-soft: #EAF0EB;
  --accent-pink: #F7DDE0;
  --accent-blue: #DCEAF7;
  --accent-green: #DCEFE7;
  --accent-gold: #F5E8C9;
  --accent-lilac: #EAE4F3;

  background-color: #FCFAF6 !important;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(216, 188, 130, 0.10), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(85, 116, 97, 0.07), transparent 25%),
    linear-gradient(180deg, #FCFAF6 0%, #F7F2EA 48%, #FBF8F2 100%) !important;
  color: var(--serum-text);
}

body.page-points-guide .page-shell {
  background: transparent !important;
}

body.page-points-guide .page-tone-warm__main,
body.page-points-guide .pg-main {
  padding-bottom: 3.5rem;
}

/* Embed on other pages (e.g. gift/detail) — tokens only, no full-page restyle */
.pg-embed {
  --serum-navy: #0A2855;
  --serum-navy-deep: #071C3D;
  --serum-gold: #B9975B;
  --serum-gold-light: #D8BC82;
  --serum-gold-pale: #F1E4CB;
  --serum-cream: #F7F2EA;
  --serum-cream-light: #FCFAF6;
  --serum-white: #FFFFFF;
  --serum-brown: #4A4036;
  --serum-text: #2D2924;
  --serum-muted: #81786D;
  --serum-line: #E8DED0;
  --serum-green: #557461;
  --serum-green-dark: #405C4C;
  --serum-green-soft: #EAF0EB;
  --accent-pink: #F7DDE0;
  --accent-blue: #DCEAF7;
  --accent-green: #DCEFE7;
  --accent-gold: #F5E8C9;
  --accent-lilac: #EAE4F3;
  color: var(--serum-text);
  margin: 2rem 0 2.5rem;
}

.pg-wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 767px) {
  .pg-wrap {
    width: min(1180px, calc(100% - 32px));
  }
}

/* ---------- Hero ---------- */
.pg-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: end;
  min-height: 360px;
  margin: 1.75rem auto 2.75rem;
  padding: 2.4rem 2.4rem 2rem;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(185, 151, 91, 0.16);
  background-color: #F4ECE1;
  background-image:
    linear-gradient(
      105deg,
      rgba(252, 250, 246, 0.92) 0%,
      rgba(252, 250, 246, 0.78) 42%,
      rgba(252, 250, 246, 0.28) 68%,
      rgba(252, 250, 246, 0.12) 100%
    ),
    url("../images/serum/hero-points-gide-pc_result.webp");
  background-repeat: no-repeat;
  background-position: right center, right center;
  background-size: cover, cover;
  box-shadow: 0 18px 50px rgba(55, 43, 28, 0.08);
}

.pg-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding-bottom: 0.5rem;
}

.pg-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--serum-gold);
}

.pg-hero h1,
.pg-hero .pg-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--serum-navy);
}

/* CTA banner embed (gift detail) — copy only, keep page h1 unique */
.pg-hero--cta {
  grid-template-columns: 1fr;
  min-height: 0;
  align-items: center;
}

.pg-hero__lead {
  margin: 0 0 1.35rem;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--serum-muted);
}

.pg-hero__aio {
  margin: 0 0 1.5rem;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--serum-brown);
}

.btn-reward-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #C6A363, #A98248);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(169, 130, 72, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-reward-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(169, 130, 72, 0.28);
  color: #fff !important;
}

.pg-hero__visual {
  position: relative;
  z-index: 1;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pg-hero__product {
  display: block;
  width: min(100%, 420px);
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 22px 25px rgba(30, 40, 55, 0.16));
}

.pg-hero__benefits {
  position: absolute;
  right: 0.25rem;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 3;
}

.pg-hero-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(60, 45, 25, 0.06);
}

.pg-hero-benefit__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--serum-gold);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(60, 45, 25, 0.06);
}

.pg-hero-benefit span {
  font-size: 13px;
  font-weight: 600;
  color: var(--serum-navy);
  padding-right: 0.35rem;
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.pg-section {
  margin: 0 auto 3.25rem;
}

.pg-section__head {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.pg-section-title {
  margin: 0;
  color: var(--serum-navy);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  scroll-margin-top: 5.5rem;
}

.pg-section-desc {
  margin: 10px 0 0;
  color: var(--serum-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Cards ---------- */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pg-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #E9E0D5;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 25px rgba(60, 45, 25, 0.045);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 151, 91, 0.35);
  box-shadow: 0 16px 35px rgba(60, 45, 25, 0.09);
}

.pg-card.is-soon {
  opacity: 0.92;
}

.pg-card.is-soon:hover {
  transform: none;
}

.pg-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--serum-gold-pale);
  color: #8F6D39;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pg-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 18px;
  font-size: 25px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  background: var(--accent-gold);
  color: #A67C35;
}

.pg-card--gold .pg-icon { background: var(--accent-gold); color: #A67C35; }
.pg-card--pink .pg-icon { background: var(--accent-pink); color: #B86770; }
.pg-card--blue .pg-icon { background: var(--accent-blue); color: #4D78A8; }
.pg-card--green .pg-icon { background: var(--accent-green); color: #4C8068; }
.pg-card--lilac .pg-icon { background: var(--accent-lilac); color: #766493; }

.pg-card-title {
  margin: 0 0 8px;
  color: var(--serum-navy);
  font-size: 19px;
  font-weight: 700;
}

.pg-card-desc {
  margin: 0;
  min-height: 56px;
  color: var(--serum-muted);
  font-size: 14px;
  line-height: 1.7;
}

.pg-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid var(--serum-gold);
  border-radius: 999px;
  color: #8F6D39 !important;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.pg-card-link:hover {
  background: var(--serum-gold);
  color: #fff !important;
}

.pg-card-link.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  border-color: #d4c7b4;
  color: var(--serum-muted) !important;
}

/* ---------- Editorial ---------- */
.pg-editorial {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border-radius: 22px;
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(185, 151, 91, 0.15);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  background-color: #F1E4D2;
  background-image:
    linear-gradient(
      105deg,
      rgba(251, 248, 242, 0.88) 0%,
      rgba(251, 248, 242, 0.55) 45%,
      rgba(251, 248, 242, 0.15) 100%
    ),
    url("../images/serum/hero-points-gide-banner-1-pc_result.webp");
  background-repeat: no-repeat;
  background-position: left center, center center;
  background-size: cover, cover;
}

.pg-editorial__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--serum-gold);
}

.pg-editorial__quote {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--serum-navy);
}

.pg-editorial__img {
  width: min(180px, 28vw);
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(30, 40, 55, 0.12));
}

/* ---------- Use points ---------- */
.pg-use {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.pg-use__card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #E9E0D5;
  border-radius: 22px;
  padding: 1.75rem 1.6rem;
  box-shadow: 0 8px 25px rgba(60, 45, 25, 0.045);
}

.pg-use__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.pg-use__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--serum-brown);
}

.pg-use__list i {
  margin-top: 0.15rem;
  color: var(--serum-gold);
  width: 1.1rem;
  text-align: center;
}

.pg-member {
  background: linear-gradient(145deg, #526E5D, #405B4B);
  color: #fff;
  border-radius: 22px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pg-member h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.pg-member p {
  margin: 0 0 1.35rem;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.pg-member__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: var(--serum-green-dark) !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.pg-member__cta:hover {
  transform: translateY(-2px);
  color: var(--serum-green-dark) !important;
}

/* ---------- FAQ ---------- */
.pg-faq {
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--serum-line);
  border-radius: 18px;
  overflow: hidden;
}

.pg-faq details {
  border-bottom: 1px solid var(--serum-line);
}

.pg-faq details:last-child {
  border-bottom: 0;
}

.pg-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 1.25rem;
  color: var(--serum-navy);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pg-faq summary::-webkit-details-marker {
  display: none;
}

.pg-faq summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--serum-gold);
  font-weight: 400;
}

.pg-faq details[open] summary::after {
  content: "–";
}

.pg-faq__a {
  padding: 0 1.25rem 1.15rem;
  color: var(--serum-muted);
  font-size: 14px;
  line-height: 1.8;
}

.pg-updated {
  margin: 2rem auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--serum-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .pg-hero {
    grid-template-columns: 1fr 0.9fr;
    padding: 1.75rem;
  }

  .pg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-use {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .pg-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.5rem 1.25rem 1.25rem;
    background-image:
      linear-gradient(
        180deg,
        rgba(252, 250, 246, 0.94) 0%,
        rgba(252, 250, 246, 0.82) 38%,
        rgba(252, 250, 246, 0.35) 70%,
        rgba(252, 250, 246, 0.18) 100%
      ),
      url("../images/serum/hero-points-gide-mobile_result.webp");
    background-position: center top, center top;
    background-size: cover, cover;
  }

  .pg-hero__visual {
    min-height: 0;
    order: 2;
  }

  .pg-hero__benefits {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1rem;
  }

  .pg-hero__product {
    max-height: 240px;
  }

  .pg-grid {
    grid-template-columns: 1fr;
  }

  .pg-editorial {
    text-align: left;
    min-height: 180px;
    background-position: left center, center top;
  }

  .pg-use__list {
    grid-template-columns: 1fr;
  }

  .pg-card-desc {
    min-height: 0;
  }
}
