/* LineApp R3 kit · consent3.css — scan → choose → done */
.kcs { --kcs-accent: var(--lime); --kcs-ink: #0B0C0E; --kcs-card: #131518;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(24px, 5vw, 72px); align-items: center; color: #fff; }
.kcs__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.kcs__steps > li { margin: 0; }
.kcs__step { position: relative; width: 100%; display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; padding: 20px 22px 22px; border: 0; border-radius: 20px; overflow: hidden;
  background: transparent; color: rgba(255, 255, 255, .55); text-align: left; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.kcs__step:hover { color: rgba(255, 255, 255, .85); }
.kcs__step:focus-visible { outline: 2px solid var(--kcs-accent); outline-offset: 2px; }
.kcs__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 850; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.kcs__txt { display: grid; gap: 5px; padding-top: 1px; }
.kcs__txt b { font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; color: inherit; }
.kcs__txt span { font-size: 16px; line-height: 1.45; }
.kcs__steps > li.is-on .kcs__step { background: var(--kcs-card); color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--lime-rgb), .35); }
.kcs__steps > li.is-on .kcs__txt span { color: rgba(255, 255, 255, .78); }
.kcs__steps > li.is-on .kcs__num { background: var(--kcs-accent); color: var(--kcs-ink); box-shadow: none; }
.kcs__steps > li.is-past .kcs__num { box-shadow: inset 0 0 0 1.5px rgba(var(--lime-rgb), .7); color: var(--kcs-accent); }
.kcs__prog { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: var(--kcs-accent); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.kcs.is-ticking li.is-on .kcs__prog { opacity: 1; animation: kcs-prog var(--kcs-interval) linear forwards; }
@keyframes kcs-prog { to { transform: scaleX(1); } }

.kcs__stage { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; display: grid;
  background: radial-gradient(90% 70% at 50% 0%, rgba(var(--lime-rgb), .16), transparent 60%), #101215; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.kcs__panel { grid-area: 1 / 1; display: grid; place-items: center; padding: 28px; }
.kcs__panel[hidden] { display: none; }
.kcs__panel.is-on { animation: kcs-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes kcs-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.kcs__img { width: 100%; height: 100%; object-fit: contain; }
.kcs__art { display: grid; justify-items: center; gap: 18px; text-align: center; width: 100%; }

/* 1 · scan */
.kcs__finder { position: relative; width: 62%; aspect-ratio: 1; display: grid; place-items: center; }
.kcs__qr { width: 72%; height: auto; border-radius: 10px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8); }
.kcs__c { position: absolute; width: 22%; height: 22%; border: 3px solid var(--kcs-accent); }
.kcs__c1 { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.kcs__c2 { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.kcs__c3 { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.kcs__c4 { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.kcs__beam { position: absolute; left: 8%; right: 8%; top: 12%; height: 2px; border-radius: 2px; background: var(--kcs-accent); box-shadow: 0 0 14px 2px rgba(var(--lime-rgb), .7); opacity: 0; }
.kcs__panel.is-on .kcs__beam { animation: kcs-beam 1.6s .2s ease-in-out 2 alternate forwards; }
@keyframes kcs-beam { 0% { opacity: 1; top: 12%; } 100% { opacity: 1; top: 86%; } }
.kcs__panel.is-on .kcs__c { animation: kcs-lock .5s 2.4s cubic-bezier(.2, .8, .2, 1.3) forwards; }
@keyframes kcs-lock { to { transform: scale(.9); border-color: #fff; } }
.kcs__cue { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .7); }

/* 2 · choose */
.kcs__sheet { position: relative; width: 100%; max-width: 320px; padding: 26px 22px 20px; border-radius: 26px; background: #fff; color: var(--kcs-ink); text-align: left; display: grid; gap: 12px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); }
.kcs__grab { position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: #D8DAD5; }
.kcs__sheet b { font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.kcs__sheet p { margin: 0; font-size: 14px; line-height: 1.45; color: #5E6166; }
.kcs__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #F2F3EF; font-size: 15px; font-weight: 650; }
.kcs__switch { position: relative; width: 46px; height: 28px; border-radius: 28px; background: #D4D6D1; transition: background-color .3s ease; flex: none; }
.kcs__switch i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .32s cubic-bezier(.3, .9, .3, 1.2); }
.kcs__btn { display: grid; place-items: center; min-height: 46px; border-radius: 999px; background: #E6E8E3; color: #9A9DA0; font-weight: 800; font-size: 16px; transition: background-color .3s ease, color .3s ease; }
.kcs__no { text-align: center; font-size: 14px; font-weight: 650; color: #6B6E73; }
.kcs__panel.is-on .kcs__switch { animation: kcs-sw-bg .01s 1.1s forwards; }
.kcs__panel.is-on .kcs__switch i { animation: kcs-sw .32s 1.1s cubic-bezier(.3, .9, .3, 1.2) forwards; }
.kcs__panel.is-on .kcs__btn { animation: kcs-btn .3s 1.35s forwards; }
@keyframes kcs-sw-bg { to { background: var(--kcs-accent); } }
@keyframes kcs-sw { to { transform: translateX(18px); } }
@keyframes kcs-btn { to { background: var(--kcs-ink); color: #fff; } }

/* 3 · done */
.kcs__badge { width: 96px; height: 96px; }
.kcs__badge svg { width: 100%; height: 100%; display: block; }
.kcs__badge circle { fill: var(--kcs-accent); }
.kcs__badge path { stroke: var(--kcs-ink); stroke-dasharray: 1; stroke-dashoffset: 0; }
.kcs__panel.is-on .kcs__badge { animation: kcs-badge .5s cubic-bezier(.2, .9, .3, 1.35) both; }
.kcs__panel.is-on .kcs__badge path { animation: kcs-tick .4s .25s cubic-bezier(.55, 0, .25, 1) both; }
@keyframes kcs-badge { from { transform: scale(.4); opacity: 0; } }
@keyframes kcs-tick { from { stroke-dashoffset: 1; } }
.kcs__art--done b { font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.kcs__art--done p { margin: -8px 0 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.kcs__link { font-size: 15px; font-weight: 700; color: #fff; text-decoration: underline; text-decoration-color: rgba(var(--lime-rgb), .7); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.kcs__say { display: none; margin: 0; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .8); text-align: center; min-height: 2.9em; }
@media (max-width: 760px) {
  .kcs { grid-template-columns: 1fr; gap: 16px; }
  .kcs__steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .kcs__step { grid-template-columns: 1fr; gap: 8px; padding: 12px 10px 14px; border-radius: 16px; justify-items: center; text-align: center; }
  .kcs__num { width: 32px; height: 32px; font-size: 15px; }
  .kcs__txt b { font-size: 16px; }
  .kcs__txt span { display: none; }
  .kcs__prog { left: 10px; right: 10px; }
  .kcs__stage { aspect-ratio: auto; min-height: 380px; }
  .kcs__say { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .kcs__panel.is-on, .kcs__panel.is-on .kcs__badge, .kcs__panel.is-on .kcs__badge path { animation: none; }
  .kcs__panel.is-on .kcs__beam { animation: none; opacity: 1; top: 50%; }
  .kcs__panel.is-on .kcs__c { animation: none; }
  .kcs__panel .kcs__switch { background: var(--kcs-accent); } .kcs__panel .kcs__switch i { transform: translateX(18px); }
  .kcs__panel .kcs__switch, .kcs__panel .kcs__switch i, .kcs__panel .kcs__btn { animation: none !important; }
  .kcs__panel .kcs__btn { background: var(--kcs-ink); color: #fff; }
  .kcs__step, .kcs__num { transition: none; }
}
