/* R5: 릴마크 톤 전 페이지 통일 (색·모서리·그림자·버튼·로고) */
html body{--accent:#08482D;--accent-ink:#08482D;--accent-soft:#DAE7C7;--accent-2:#2f7d57;--radius:22px;--radius-sm:14px;--shadow:0 1px 2px rgba(8,72,45,.05),0 16px 34px -22px rgba(8,72,45,.28);--bg-soft:#F5F8EF}
html[data-theme="dark"] body{--accent:#6fdca4;--accent-ink:#6fdca4;--accent-soft:#17382a;--accent-2:#3fb27f;--shadow:0 1px 2px rgba(0,0,0,.4),0 16px 34px -22px rgba(0,0,0,.7);--bg-soft:#171f1a}
html[data-theme="wood"] body{--accent:#8a5a2b;--accent-ink:#6f4519;--accent-soft:#ead9bf;--accent-2:#b5651d}
html[data-theme="silver"] body{--accent:#2f4a3c;--accent-ink:#2f4a3c;--accent-soft:#dfe5ea;--accent-2:#4b6b5a}
.btn,.btn-lg{border-radius:999px}
.btn-solid,.btn-solid:hover{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 12px 24px -16px rgba(8,72,45,.7)}
html[data-theme="dark"] .btn-solid,html[data-theme="dark"] .btn-solid:hover{color:#06140d}
.btn-line,.btn-ghost{border-color:var(--accent);color:var(--accent)}
h1,h2{font-weight:800;letter-spacing:-.035em}
.eyebrow,.alt a,.lede a,.doc a,.ticks a,.notice a{color:var(--accent-ink)}
.card,.sub-card,.buy-box,.dk-card,.dk-pain-card,.fact,.stat,.step,.steps li{border-radius:22px;box-shadow:var(--shadow)}
.hero-points li,.chips li,.card-badge,.dk-tag{border-radius:999px}
.brand img,.foot-brand img,img[src$="/assets/logo.png"]{content:url(/assets/logo.png);width:30px;height:30px;object-fit:contain;border-radius:8px}
html[data-theme="dark"] .brand img,html[data-theme="dark"] .foot-brand img,html[data-theme="dark"] img[src$="/assets/logo.png"]{content:url(/assets/logo.png)}
.helper-btn svg,.helper-x svg{width:18px;height:18px;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.helper-btn svg{margin-right:6px}
/* 메이커·기능 카드: 같은 높이, 아이콘 정렬 */
.rm-grid{align-items:stretch}
.rm-grid article{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-height:150px;box-shadow:var(--shadow)}
.rm-g4 article{min-height:190px}
.rm-ico{width:44px;height:44px;border-radius:14px;background:var(--rm-mint);color:var(--rm-g);display:flex;align-items:center;justify-content:center;margin-bottom:14px;flex:none}
.rm-ico svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rm-grid article p{flex:1 1 auto}
.rm-tag{margin-top:12px;align-self:flex-start}
.rm-grid{gap:18px}
.pkg-cards{align-items:stretch}.pkg{height:100%}.pkg .card-more{margin-top:auto}
.sub-card,.product-grid .sub-card{background:var(--rm-card,var(--bg-soft))}
.rm-g7{grid-template-columns:repeat(12,1fr)}
.rm-g7 article{grid-column:span 3}
.rm-g7 article:nth-child(n+5){grid-column:span 4}
@media(max-width:1100px){.rm-g7{grid-template-columns:repeat(2,1fr)}.rm-g7 article,.rm-g7 article:nth-child(n+5){grid-column:auto}.rm-g7 article:last-child{grid-column:1/-1}}
@media(max-width:700px){.rm-g7{grid-template-columns:1fr}.rm-g7 article:last-child{grid-column:auto}}
.product-grid{display:grid;gap:16px}.dk-cards{gap:18px}

/* R6: 롤링 캐러셀, 글자 드러남, 빛 번짐, 움직이는 아이콘, 점→화살표 버튼 */
.rm-hero{position:relative;isolation:isolate}
.rm-hero>.wrap{position:relative;z-index:1}
.rm-glow{position:absolute;left:50%;top:-10%;width:70vw;max-width:900px;aspect-ratio:1;border-radius:50%;background:radial-gradient(closest-side,rgba(111,220,164,.55),rgba(111,220,164,0));z-index:0;pointer-events:none;transform:translate(calc(-50% + (var(--p,0) - .3)*40vw),calc(var(--p,0)*30vh)) scale(calc(.8 + var(--p,0)*1.4));opacity:calc(.9 - var(--p,0)*.5);transition:transform .15s linear}
html[data-theme="dark"] .rm-glow{background:radial-gradient(closest-side,rgba(63,178,127,.45),rgba(63,178,127,0))}
.rm-w{display:inline-block;white-space:nowrap}
.js-fx .rm-split .rm-ch{display:inline-block;opacity:0;transform:translateY(.45em);filter:blur(6px);transition:opacity .55s ease,transform .55s cubic-bezier(.2,.8,.2,1),filter .55s ease;transition-delay:calc(var(--i,0)*28ms)}
.js-fx .rm-split.in .rm-ch{opacity:1;transform:none;filter:none}
.rm-hero h1 span{display:block}
.rm-hero h1 .rm-w{display:inline-block}
/* 점 -> 화살표 */
.rm-dot{gap:10px;overflow:hidden}
.rm-dotp{display:inline-flex;align-items:center;justify-content:center;width:10px;height:10px;border-radius:50%;background:var(--rm-on);transition:width .3s cubic-bezier(.2,.8,.2,1),height .3s cubic-bezier(.2,.8,.2,1)}
.rm-dotp svg{width:14px;height:14px;fill:none;stroke:var(--rm-g);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .3s}
.rm-dot:hover .rm-dotp,.rm-dot:focus-visible .rm-dotp{width:24px;height:24px}
.rm-dot:hover .rm-dotp svg,.rm-dot:focus-visible .rm-dotp svg{opacity:1;transform:none}
/* 롤링 캐러셀 */
.rm-car{overflow:hidden;margin:6px 0 0;width:100%;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.rm-car-track{display:flex;width:max-content;animation:rmflow 48s linear infinite}
.rm-car:hover .rm-car-track,.rm-car:focus-within .rm-car-track{animation-play-state:paused}
.rm-car-set{display:flex;gap:16px;padding-right:16px}
@keyframes rmflow{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.rm-vc{margin:0;flex:0 0 auto;width:220px}
.rm-vc video{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:22px;background:#cfe0b8;box-shadow:var(--shadow)}
.rm-vc figcaption{margin-top:10px;font-size:.88rem;font-weight:600;color:var(--rm-sub)}
@media(hover:none){.rm-car{overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.rm-car-track{animation:none}.rm-vc{scroll-snap-align:center}}
@media(max-width:560px){.rm-vc{width:62vw}}
/* 움직이는 아이콘 */
.rm-ico{transition:transform .35s cubic-bezier(.3,1.6,.5,1),background .2s}
.rm-grid article:hover .rm-ico{transform:translateY(-4px) rotate(-8deg) scale(1.06)}
.js-fx .rm-ico svg *{stroke-dasharray:1;stroke-dashoffset:1}
.js-fx .rm-grid article.in .rm-ico svg *{animation:rmdraw 1s ease forwards}
.js-fx .rm-grid article{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease,box-shadow .2s}
.js-fx .rm-grid article.in{opacity:1;transform:none}
.js-fx .rm-grid article.in:hover{transform:translateY(-3px)}
.rm-grid article:hover .rm-ico svg *{animation:rmdraw .8s ease forwards}
@keyframes rmdraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
/* 기능 구간 머리말 */
.rm-intro{text-align:center;max-width:760px;margin:0 auto 18px}
.rm-intro h2{margin-bottom:12px}
.rm-intro-sub{color:var(--rm-sub);margin:0 0 22px}
.rm-flow{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.rm-flow li{display:flex;align-items:center;gap:10px;background:var(--rm-card);border:1px solid var(--line);border-radius:999px;padding:8px 18px 8px 8px;font-weight:600}
.rm-flow b{display:inline-flex;width:28px;height:28px;border-radius:50%;background:var(--rm-g);color:var(--rm-on);align-items:center;justify-content:center;font-size:.85rem}
@media(max-width:560px){.rm-flow{flex-direction:column;align-items:stretch}.rm-glow{width:120vw}}
@media(prefers-reduced-motion:reduce){.rm-car-track{animation:none}.rm-car{overflow-x:auto}.rm-glow{transition:none}}
