/* A three-stop daily routine. One charcoal surface; the stars carry the color. */
.routine-section { --routine-accent: var(--phase-accent, #f44b46); padding-block: 80px; background: #101112; color: #f5f5f3; border-block: 1px solid #303236; }
.routine-section .routine-grid { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 72px; align-items: center; }
.routine-heading h2 { font-size: clamp(3.8rem,5.4vw,5.2rem); line-height: .96; margin-bottom: 26px; }
.routine-heading h2 br:nth-of-type(2) { display: none; }
.routine-heading h2 em { color: var(--routine-accent); transition: color .4s ease; }
.routine-heading > p:not(.eyebrow) { color: #babdc2; font-size: 1rem; line-height: 1.8; margin-bottom: 0; }
.routine-stars { display: flex; align-items: center; gap: 20px; height: 80px; margin-top: 12px; color: var(--routine-accent); transition: color .4s ease; }
.routine-stars svg { width: 60px; height: 60px; fill: currentColor; }
.routine-stars svg:nth-child(2) { width: 40px; height: 40px; }
.routine-stars svg:nth-child(3) { width: 25px; height: 25px; }
.routine-controls { margin-top: 22px; max-width: 500px; }
.routine-selector-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .8125rem; letter-spacing: .08em; font-weight: 800; margin-bottom: 21px; }
#routine-current-name { color: var(--routine-accent); text-transform: uppercase; transition: color .4s ease; }
.routine-section .routine-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; border: 0; }
.routine-section .routine-tabs button { min-height: 65px; margin: 0; padding: 0 0 10px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; border: 0; font-size: 1rem; color: #aaaeb5; transition: color .3s; }
.routine-section .routine-tabs button[aria-selected='true'] { color: var(--routine-accent); }
.routine-section .routine-tabs button:hover { color: #fff; }
.routine-section .routine-tabs .icon { width: 23px; height: 23px; }
.routine-section .routine-tabs button:last-child { justify-content: flex-end; }
.routine-section .routine-tabs button:nth-child(2) { justify-content: center; }
#routine-slider { display: block; width: 100%; min-height: 44px; height: 44px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; touch-action: pan-y; accent-color: var(--routine-accent); }
#routine-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 0; background: linear-gradient(90deg,#f44b46 0%,#45a6f5 50%,#b28bfa 100%); }
#routine-slider::-moz-range-track { height: 3px; border: 0; background: linear-gradient(90deg,#f44b46 0%,#45a6f5 50%,#b28bfa 100%); }
#routine-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; margin-top: -17px; border: 0; border-radius: 0; background: var(--routine-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 24 14 40 20 24 24 20 40 15 25 0 20 15 15Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 24 14 40 20 24 24 20 40 15 25 0 20 15 15Z'/%3E%3C/svg%3E") center/contain no-repeat; transition: background .35s; }
#routine-slider::-moz-range-thumb { width: 38px; height: 38px; border: 0; border-radius: 0; background: var(--routine-accent); clip-path: polygon(50% 0,60% 35%,100% 50%,60% 60%,50% 100%,37.5% 62.5%,0 50%,37.5% 37.5%); transition: background .35s; }
#routine-slider:focus-visible { outline: 2px solid #e9eaed; outline-offset: 8px; }
.routine-slider-hint { font-size: .875rem; color: #a9adb3; margin: 9px 0 0; }
.routine-section .routine-panel { padding: 28px 30px 0; margin: 0; min-height: 560px; color: #f5f5f3; background: #181a1d; border: 1px solid #36393e; border-top: 3px solid var(--routine-accent); transition: border-color .4s ease; overflow: hidden; touch-action: pan-y; }
.routine-section .routine-panel-top { margin-bottom: 19px; gap: 18px; }
.routine-section .routine-panel-top .eyebrow { color: #c4c7cc; font-size: .8125rem; letter-spacing: .1em; }
.routine-section .routine-symbol { stroke: var(--routine-accent); transition: stroke .4s ease; }
.routine-panel-inner { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 26px; align-items: center; min-height: 380px; }
.routine-product-stage { height: 340px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #101112; border: 1px solid #292c30; isolation: isolate; }
.routine-stage-star { position: absolute; width: 94%; height: 94%; color: var(--routine-accent); opacity: .15; z-index: -1; transition: color .4s ease; }
.routine-product-stage img { width: 100%; height: 100%; object-fit: contain; max-height: 310px; padding: 14px 8px 24px; }
.routine-stage-caption { position: absolute; left: 12px; right: 12px; bottom: 11px; text-align: center; font-size: .625rem; letter-spacing: .12em; font-weight: 800; color: #b9bdc5; }
.routine-section .routine-story h3 { margin: 0 0 20px; font-size: clamp(2.7rem,3.45vw,4rem); line-height: 1; }
.routine-story p { margin: 0; color: #bec1c7; font-size: .9375rem; line-height: 1.85; }
.routine-section .routine-product { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 22px; min-height: 116px; padding: 23px 0; border-color: #393c42; }
.routine-product > div { min-width: 0; }
.routine-product strong { font-size: 1.0625rem; font-weight: 800; color: #f5f5f3; }
.routine-product span { font-size: .875rem; color: #b4b8bf; line-height: 1.65; }
.routine-section .routine-product .button { background: var(--phase-button,#c62f2c); border-color: var(--phase-button,#c62f2c); min-width: 158px; flex-shrink: 0; font-size: .875rem; padding-inline: 18px; color: #fff; transition: background .35s,border-color .35s,transform .2s; }
.routine-section .routine-product .button:hover { filter: brightness(1.13); }
.routine-paging { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 20px; }
.routine-page-button { min-height: 44px; padding: 7px 0; font-size: .875rem; color: #bdc0c6; font-weight: 700; border-bottom: 1px solid #45494f; }
.routine-page-button:hover { color: #fff; border-color: #fff; }
.routine-paging-stars { display: flex; gap: 12px; align-items: center; color: #4e535b; }
.routine-paging-stars svg { color: #4e535b; width: 16px; height: 16px; transition: color .35s,transform .35s; }
[data-phase='morning'] .routine-paging-stars svg:nth-child(1), [data-phase='day'] .routine-paging-stars svg:nth-child(2), [data-phase='night'] .routine-paging-stars svg:nth-child(3) { color: var(--routine-accent); transform: scale(1.3); }
.routine-panel:focus-visible { outline-color: var(--routine-accent); }
@media(min-width:1500px) { .routine-panel-inner { min-height: 390px; } .routine-product-stage { height: 360px; } }
@media(max-width:1150px) { .routine-section .routine-grid { gap: 42px; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); } .routine-heading h2 { font-size: 5.4rem; } .routine-section .routine-panel { padding-inline: 24px; } .routine-panel-inner { gap: 20px; } .routine-section .routine-story h3 { font-size: 2.8rem; } .routine-section .routine-tabs { gap: 10px; } .routine-section .routine-tabs button { gap: 7px; font-size: .9375rem; } .routine-section .routine-product { gap: 14px; } }
@media(max-width:900px) { .routine-section { padding-block: 70px; } .routine-section .routine-grid { grid-template-columns: 1fr; gap: 40px; } .routine-heading { position: relative; } .routine-heading h2 { font-size: 5.2rem; } .routine-heading h2 br:nth-of-type(2) { display: none; } .routine-stars { position: absolute; right: 0; top: 40px; transform: rotate(-10deg); } .routine-stars svg { width: 48px; height: 48px; } .routine-controls { max-width: none; margin-top: 32px; } .routine-section .routine-tabs button { font-size: 1rem; } .routine-panel-inner { min-height: 330px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 35px; } .routine-product-stage { height: 320px; } .routine-section .routine-story h3 { font-size: 3.5rem; } .routine-section .routine-panel { min-height: 0; padding: 27px 30px 0; } .routine-section .routine-product { min-height: 105px; } }
@media(max-width:600px) { .routine-section { padding-block: 56px; } .routine-section .routine-grid { gap: 30px; } .routine-heading h2 { font-size: clamp(3.6rem,14vw,4.9rem); line-height: .95; margin-bottom: 22px; } .routine-heading h2 br:nth-of-type(2) { display: initial; } .routine-heading > p:not(.eyebrow) { max-width: 270px; } .routine-stars { position: static; transform: none; height: 68px; margin-top: 12px; gap: 17px; } .routine-stars svg { width: 42px; height: 42px; } .routine-stars svg:nth-child(2) { width: 30px; height: 30px; } .routine-stars svg:nth-child(3) { width: 20px; height: 20px; } .routine-controls { margin-top: 20px; } .routine-selector-heading { margin-bottom: 13px; font-size: .8125rem; } .routine-section .routine-tabs button { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 9px; font-size: .9375rem; min-height: 67px; } .routine-section .routine-tabs button:nth-child(2) { align-items: center; } .routine-section .routine-tabs button:last-child { align-items: flex-end; } .routine-slider-hint { font-size: .875rem; } .routine-section .routine-panel { padding: 22px 20px 0; } .routine-section .routine-panel-top { margin-bottom: 17px; } .routine-section .routine-panel-top .eyebrow { font-size: .75rem; line-height: 1.6; letter-spacing: .06em; } .routine-panel-inner { grid-template-columns: 1fr; gap: 24px; min-height: 0; } .routine-product-stage { height: 285px; } .routine-product-stage img { max-height: 270px; padding: 7px 25px 22px; } .routine-stage-star { width: 255px; height: 255px; } .routine-section .routine-story h3 { font-size: 3rem; margin-bottom: 17px; } .routine-story p { font-size: 1rem; line-height: 1.8; } .routine-story { min-height: 235px; } .routine-section .routine-product { margin-top: 24px; padding-block: 22px; align-items: stretch; flex-direction: column; gap: 19px; } .routine-product strong { font-size: 1.0625rem; } .routine-product span { font-size: .875rem; } .routine-section .routine-product .button { width: 100%; font-size: .9375rem; min-height: 53px; } .routine-paging { margin-top: 15px; } }
@media(prefers-reduced-motion:reduce) { .routine-section *, .routine-section *::before, .routine-section *::after { transition: none !important; animation: none !important; } }

.routine-section .routine-paging-stars svg:has(> use[href="#icon-star"]) { color: #4e535b; }
.routine-section[data-phase="morning"] .routine-paging-stars svg:nth-child(1), .routine-section[data-phase="day"] .routine-paging-stars svg:nth-child(2), .routine-section[data-phase="night"] .routine-paging-stars svg:nth-child(3) { color: var(--routine-accent); }
.routine-section .routine-paging-stars use[href="#icon-star"] { color: inherit; }
