/* All In One series blocks of the Baekseol product list. Uses the home's tone and the shared blocks of brand.css. */

/* the hero line is the series name, not the brand logo: no registered mark after it */
.hero-logo.plain::after { content: none; }

/* Baekseol list: the page title sits alone above the series blocks */
.plp .in.splp-top { padding-bottom: 26px; }

/* three reasons under the opening statement: the home's step cards */
.spoints { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 16px; margin-top: 22px; width: 100%; }
.bdecl .spoints p { font-size: 13px; line-height: 19.5px; }
/* the Baekseol list has six reasons: wider cards, and a large figure where a reason has a number */
.bdecl h2[data-s], .bdecl p[data-s] { white-space: pre-line; max-width: none; word-break: keep-all; }
#sPoints { grid-template-columns: repeat(3, minmax(0, 330px)); margin-top: 34px; word-break: keep-all; }
#sPoints .step { height: auto; padding: 36px 24px 32px; gap: 10px; justify-content: flex-start; }
#sPoints .step h3 { margin-top: 6px; font-size: 16.5px; line-height: 1.4; text-wrap: balance; }
#sPoints .step p { margin-top: 0; font-size: 13.5px; line-height: 1.65; text-wrap: pretty; }
#sPoints .ico { margin-bottom: 0; }
.sfig { height: 46px; display: grid; place-items: center; font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--btn); font-variant-numeric: tabular-nums; }

/* picture beside text (the ginkgo claim, made for the region): the site's rounded picture and its heading */
.sduo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; max-width: 1080px; margin-inline: auto; word-break: keep-all; }
.sduo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; box-shadow: 0 6px 24px rgba(111, 38, 64, 0.1); }
.sduo.flip img { order: 2; object-position: 50% 30%; }
.sduo > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.stop .in { padding-block: 40px 120px; }
.sduo .eyebrow { color: var(--btn); }
.sduo .title { white-space: pre-line; text-align: left; }
.sduo em { font-size: clamp(20px, 2.4vw, 28px); font-weight: 300; letter-spacing: 0.02em; color: var(--btn); }
.sduo p { font-size: 16px; line-height: 28px; color: var(--muted); }
[data-s] mark { background: linear-gradient(transparent 62%, var(--soft) 62%); color: var(--ink); font-weight: 600; }
.sduo .title mark { background: none; color: var(--btn); font-weight: inherit; }
/* R&D Points: one tab per point, the claim on the left and its charts on the right */
.spts { background: linear-gradient(180deg, var(--bg) 0%, #fdf6f8 18%, #fdf6f8 82%, var(--bg) 100%); word-break: keep-all; }
.spts .title { white-space: pre-line; }
.spt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; max-width: 1080px; width: 100%; box-sizing: border-box; margin-inline: auto; padding: 44px; border-radius: 24px; background: var(--bg); box-shadow: 0 6px 24px rgba(111, 38, 64, 0.1); }
.sptl { display: flex; flex-direction: column; gap: 24px; }
.spt:nth-child(even) .spt-text { order: 2; }
.spt:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spt-text { display: flex; flex-direction: column; gap: 12px; }
.spt-no { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--btn); }
.spt-fig { font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--btn); font-variant-numeric: tabular-nums; }
.spt h3 { font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.spt-hook { white-space: pre-line; font-size: 16px; line-height: 28px; color: var(--fg); }
.spt-quote { padding-left: 14px; border-left: 2px solid var(--badge); font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.spt-end { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--btn); }
.spt small { font-size: 12px; color: var(--muted); }
.spt-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 14px; }
.spt-figs figure { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--soft); }
/* the client's charts are black on grey: screened over the brand rose, black turns rose and the grey ground turns white */
.spt-img { display: block; border-radius: 12px; overflow: hidden; background: var(--btn); isolation: isolate; }
.spt-figs img { display: block; width: 100%; mix-blend-mode: screen; filter: grayscale(1) brightness(0.82) contrast(1.9); }
.spt-figs figcaption { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: balance; }

/* concern tabs and the products they recommend */
.stabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stabs button { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 10px 22px; font-size: 14px; font-weight: 600; color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.stabs button:hover { border-color: var(--btn); }
.stabs button[aria-selected="true"] { background: var(--btn); border-color: var(--btn); color: var(--on); }
.sset-why { margin-inline: auto; max-width: 40em; text-align: center; font-size: 16px; line-height: 28px; color: var(--muted); text-wrap: balance; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 250px)); justify-content: center; gap: 16px 44px; }
.sgrid .card { animation: sin 0.5s ease both; }
.sgrid .card:nth-child(2) { animation-delay: 0.08s; }
.sgrid .card:nth-child(3) { animation-delay: 0.16s; }
@keyframes sin { from { opacity: 0; transform: translateY(18px); } }

/* routine: the order of use, one card per step */
.sroutine { background: linear-gradient(180deg, var(--bg) 0%, #fdf6f8 18%, #fdf6f8 82%, var(--bg) 100%); }
/* two rows: the four care steps, then sun care and base make-up centred under them */
.rsteps { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 36px; max-width: 1000px; margin-inline: auto; }
.rstep { flex: 0 0 calc((100% - 108px) / 4); box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 14px 20px; border-radius: 24px; background: var(--bg); box-shadow: 0 6px 24px rgba(111, 38, 64, 0.1); text-align: center; min-width: 0; transition: transform 0.3s ease, box-shadow 0.3s ease; }
/* the order as a flow: an arrow leads from each step to the next (down at the end of a row), and a highlight
   travels step by step through the numbers and arrows, over and over */
.rstep:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -29px; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; opacity: 0.35; animation: rarrow 4.9s ease-in-out infinite; animation-delay: calc(var(--i) * 0.7s + 0.35s); }
.rstep:nth-child(4)::after { top: auto; right: auto; bottom: -31px; left: 50%; margin: 0 0 0 -11px; rotate: 90deg; }
.rstep .rnum { animation: rnum 4.9s ease-in-out infinite; animation-delay: calc(var(--i) * 0.7s); }
@keyframes rnum { 0%, 16%, 100% { background: var(--ink); scale: 1; box-shadow: none; } 6% { background: var(--btn); scale: 1.3; box-shadow: 0 0 0 6px rgba(164, 74, 100, 0.18); } }
@keyframes rarrow { 0%, 16%, 100% { opacity: 0.35; translate: 0 0; } 6% { opacity: 1; translate: 4px 0; } }
.rstep:nth-child(4)::after { animation-name: rarrowd; }
@keyframes rarrowd { 0%, 16%, 100% { opacity: 0.35; translate: 0 0; } 6% { opacity: 1; translate: 0 4px; } }
.rstep:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(111, 38, 64, 0.16); }
.rstep img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; }
.rstep .rnum { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rstep { word-break: keep-all; }
.rstep b { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.rstep .rrole { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.rstep .rwhen { margin-top: auto; padding: 3px 11px; border-radius: 999px; background: var(--soft); color: var(--btn); font-size: 11px; font-weight: 700; }

@media (max-width: 820px) {
  .bdecl h2[data-s], .bdecl p[data-s] { white-space: normal; }
  #sPoints { grid-template-columns: minmax(0, 1fr); margin-top: 22px; gap: 12px; }
  .sduo { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sduo.flip img { order: 0; }
  .sduo .title, .spts .title, .spt-hook { white-space: normal; }
  .spt, .spt:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 18px; }
  .spt:nth-child(even) .spt-text { order: 0; }
  .spt-figs { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  #sPoints .step { padding: 28px 20px 26px; }
  .spoints { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
  .stabs button { padding: 8px 16px; font-size: 13px; }
  .sset-why { font-size: 14.5px; line-height: 24px; }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .rsteps { gap: 34px 30px; }
  .rstep { flex-basis: calc((100% - 30px) / 2); }
  .rstep:not(:last-child)::after { right: -26px; }
  .rstep:nth-child(even):not(:last-child)::after { top: auto; right: auto; bottom: -28px; left: 50%; margin: 0 0 0 -11px; rotate: 90deg; animation-name: rarrowd; }
}
@media (prefers-reduced-motion: reduce) {
  .sgrid .card { animation: none; }
  .rstep { transition: none; }
  .rstep .rnum, .rstep::after { animation: none; }
}
@media (max-width: 820px) { .stop .in { padding-block: 24px 64px; } }
@media (max-width: 820px) {
  /* phone: the shared step card is icon-left, text-right; a figure takes the icon's place. These are reasons, not steps: no arrow between them */
  #sPoints .step { padding: 24px 20px; column-gap: 18px; grid-template-columns: 62px minmax(0, 1fr); }
  #sPoints .sfig { grid-row: 1 / span 2; height: auto; font-size: 21px; letter-spacing: -0.03em; }
  #sPoints .ico { justify-self: center; }
  #sPoints .step h3 { margin-top: 0; }
  #sPoints .step::before { content: none; }
}
.spt-img { position: relative; container-type: inline-size; }
.spt-img i { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-style: normal; font-weight: 700; font-size: clamp(9.5px, 2.7cqw, 15px); line-height: 1; color: var(--ink); }
